/* Chumpys v3 progressive motion. The unenhanced document stays visible. */
:root {
  --ease-settle: cubic-bezier(.34, 1.4, .64, 1);
  --ease-ui: cubic-bezier(.2, 0, 0, 1);
  --ease-exit: cubic-bezier(.3, 0, 1, 1);
  --dur-quick: 160ms;
  --dur-std: 320ms;
  --dur-slow: 700ms;
}

.motion-home-letter { display: inline-block; white-space: pre; vertical-align: baseline; }
html.js-motion .sprite { pointer-events: auto; }
/* The transparent, full-height hero copy layer must not intercept its minis. */
html.js-motion .home-hero .hero-content { pointer-events: none; }
html.js-motion .home-hero .hero-content h1,
html.js-motion .home-hero .home-rules,
html.js-motion .home-hero .home-quick a { pointer-events: auto; }
.motion-mini-label {
  position: fixed; z-index: 95; padding: 4px 10px 6px; max-width: calc(100vw - 20px);
  border: 1px solid #111; border-radius: 50%; background: #f4ead3; color: #111;
  font: 23px/1 Caveat, cursive; text-align: center; pointer-events: none;
  transform: translate(-50%, -100%); white-space: nowrap;
}
.look.motion-look-named figcaption { text-shadow: .45px 0 currentColor, -.3px 0 currentColor; }

/* Fixed shadow layers crossfade; only the print's transform moves. */
html.js-motion .motion-print {
  transform: var(--motion-print-rest) !important;
  transition: transform 220ms var(--ease-ui);
}
html.js-motion .motion-print-static { position: relative; }
html.js-motion .motion-print::after {
  content: ""; position: absolute; inset: 0; z-index: -1; border-radius: inherit;
  box-shadow: 8px 12px 0 #111; opacity: 0; pointer-events: none;
  transition: opacity var(--dur-std) var(--ease-ui);
}
html.js-motion .motion-print.motion-lifted {
  transform: var(--motion-print-lift) !important;
  transition-duration: var(--dur-std);
}
html.js-motion .motion-print.motion-lifted::after { opacity: 1; }
html.js-motion .polaroid.motion-lifted::before { animation: motion-tape 360ms var(--ease-ui) both; }
@keyframes motion-tape { 0% { transform: rotate(2deg); } 55% { transform: rotate(8deg); } 100% { transform: rotate(6deg); } }

.motion-scene-background {
  position: absolute; inset: 0; z-index: -2; pointer-events: none;
  background-repeat: no-repeat; transform: none; transform-origin: center;
}
.v3-footer.motion-peek-host { position: relative; overflow: hidden; }
.motion-peek {
  position: absolute; z-index: 4; right: -44px; bottom: 180px; width: 110px; height: 145px;
  border: 0; padding: 0; background: transparent; color: inherit; cursor: pointer;
  transform-origin: 58% 82%;
}
.motion-peek[hidden] { display: none; }
.motion-peek img { width: 110px; height: 145px; object-fit: contain; pointer-events: none; }
.motion-peek:focus-visible { outline-offset: -8px !important; }
.rules-list li { position: relative; }
.motion-stamp {
  position: absolute; right: -23px; top: 50%; color: #f04b2f; font: 30px/1 Caveat, cursive;
  transform: translateY(-50%) rotate(-8deg); pointer-events: none;
}
.motion-stamp[hidden] { display: none; }
.motion-looks-heading { position: relative; display: flex; align-items: center; flex-wrap: wrap; gap: 24px; }
.motion-shuffle {
  position: static; flex: none; padding: 3px 8px 5px;
  border: 0; border-bottom: 1px dashed #ffe91a; border-radius: 0;
  background: transparent; color: #ffe91a; font: 31px/1 Caveat, cursive !important;
  white-space: nowrap;
}
.motion-shuffle:hover { background: #ffe91a12; }
.motion-shuffle:focus-visible { outline: 3px solid #ffe91a; outline-offset: 4px; }
.motion-look-slot { min-width: 0; }
.motion-look-slot > .look { position: relative; }
.motion-sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden;
  clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0;
}

@media (max-width: 700px) {
  .motion-peek { width: var(--peek-size, 48px); height: var(--peek-size, 48px); right: calc(var(--peek-size, 48px) * -.4); bottom: auto; top: var(--peek-top, 112px); }
  .motion-peek img { width: 100%; height: 100%; }
  .motion-shuffle { font-size: 26px !important; }
  .motion-stamp { right: -17px; font-size: 25px; }
}

/* Review corrections: give the control a row and let the sign-off follow links. */
@media (max-width: 480px) {
  .motion-looks-heading { flex-direction: column; align-items: flex-start; gap: 16px; }
  .motion-looks-heading h2 { max-width: 100%; }
  .looks-section .motion-looks-heading + .looks-intro { margin-top: 16px; }
  .v3-footer .footer-inner { display: flex; flex-direction: column; align-items: stretch; }
  .v3-footer .footer-copy { order: 0; }
  .v3-footer .footer-nav { order: 1; width: 100%; }
  .v3-footer .footer-brand { position: static; order: 2; width: 100%; margin-top: 24px; }
  .v3-footer .footer-brand p { margin-top: 16px; }
  .v3-footer.bbo-footer {
    background-image: linear-gradient(180deg, #0b1a2e00 32%, #0b1a2ee6 68%, #0b1a2ef5 100%), url('/assets/v3/cartoon-seoul-evening.jpg');
  }
  .home-doors .door-minis .door-disco { bottom: calc(2% + 72px); }
}

@media (min-width: 351px) and (max-width: 480px) {
  .shop-hero .shop-tagline { margin-top: 12px; }
}

@media (prefers-reduced-motion: reduce) {
  html.js-motion .motion-print { transition: none; }
  html.js-motion .motion-print.motion-lifted { transform: var(--motion-print-rest) !important; }
  html.js-motion .motion-print::after { transition: opacity 80ms linear; }
  html.js-motion .polaroid.motion-lifted::before { animation: none; }
  .motion-scene-background { transform: none !important; }
  .motion-peek { display: none !important; }
}

/* TM sits beside the existing vector logo; its paths and colors are unchanged. */
.v3-logo::after,.footer-brand::after,.simple-footer::after{content:"TM";position:absolute;color:#f3ead3;font:700 11px/1 Arial,Helvetica,sans-serif;letter-spacing:-.03em;pointer-events:none}
.v3-logo::after{top:18px;right:-7px;font-size:10px}
.v3-footer .footer-brand{position:relative}
.footer-brand::after{top:45px;left:calc(50% + 174px)}
.simple-footer{position:relative}
.simple-footer::after{top:calc(50% - 87px);left:calc(50% + 144px)}
@media(max-width:700px){
  .v3-logo::after{top:12px;right:-5px;font-size:8px}
  .footer-brand::after{top:28px;left:calc(50% + 111px);font-size:9px}
  .simple-footer::after{top:calc(50% - 62px);left:calc(50% + 96px);font-size:9px}
}
