/* Home, party edition: the giant wordmark the stickers land on, the sticker pile canvas,
   the name tag you get for poking a bot, and the sticker strip under the hero. */

.home main{overflow-x:clip}
.hero{position:relative;justify-content:space-between;gap:0;padding-bottom:0;overflow:hidden}
.hero-top{position:relative;z-index:3;display:flex;flex-direction:column;align-items:flex-start;gap:14px;padding-top:clamp(8px,5vh,56px);pointer-events:none}
.hero-top > *{pointer-events:auto}
.hero-top .hero-line{font-size:var(--step-3);line-height:1.08;max-width:14ch;font-weight:600}
.hero-hint{color:var(--mist)}

/* The welcome mat: giant letters along the floor. Each one is a ledge the stickers land on
   (data-toy-wall). The site's name stays small, above it, as the page title. */
.mat{position:relative;z-index:1;display:flex;align-items:flex-end;gap:.03em;margin:0 0 -.035em -.03em;font:400 clamp(96px,24.5vw,420px)/.8 var(--display);text-transform:uppercase;letter-spacing:0;color:var(--paper);pointer-events:none;user-select:none;-webkit-user-select:none}
.mat span{display:block;line-height:.8;animation:letter-up .9s cubic-bezier(.2,1.3,.3,1) both}
.mat i{display:block;width:.2em}
.mat span:nth-child(2){animation-delay:.06s}
.mat span:nth-child(3){animation-delay:.12s}
.mat span:nth-child(4){animation-delay:.18s}
.mat span:nth-child(6){animation-delay:.26s}
.mat span:nth-child(7){animation-delay:.32s}
.mat-in{color:var(--amber)}
@keyframes letter-up{from{translate:0 60%;opacity:0}}

.toybox-canvas{position:absolute;inset:0;z-index:2;width:100%;height:100%;display:block;pointer-events:none}
.toy-over,.toy-over body{cursor:grab}
.toy-held,.toy-held body{cursor:grabbing;user-select:none;-webkit-user-select:none}

.toy-tag{position:absolute;z-index:4;left:var(--x);top:var(--y);translate:-50% calc(-100% - 46px);display:flex;flex-direction:column;gap:2px;width:max-content;max-width:min(280px,80vw);padding:10px 14px;background:var(--paper);color:var(--amber-ink);border-radius:12px 12px 12px 2px;box-shadow:0 14px 40px rgba(0,0,0,.5);pointer-events:none;animation:tag-in .32s cubic-bezier(.2,1.6,.4,1) both}
.toy-tag-name{font:400 1.35rem/1 var(--display);text-transform:uppercase;letter-spacing:.01em}
.toy-tag-role{font-size:.8125rem;line-height:1.35}
@keyframes tag-in{from{opacity:0;scale:.6;translate:-50% calc(-100% - 20px)}}

/* The sticker strip: a loud band between the hero and the first act. */
.strip{position:relative;z-index:3;margin:0 -4vw;padding:14px 0;background:var(--amber);color:var(--amber-ink);rotate:-1.6deg;overflow:hidden;box-shadow:0 20px 60px rgba(0,0,0,.45)}
.strip-track{display:flex;align-items:center;gap:26px;width:max-content;animation:run 46s linear infinite}
.strip:hover .strip-track{animation-play-state:paused}
.strip-word{font:400 clamp(1.6rem,1rem + 2.6vw,3.1rem)/1 var(--display);text-transform:uppercase;white-space:nowrap}
.strip-bot{width:clamp(44px,5vw,72px);height:clamp(44px,5vw,72px);object-fit:contain;filter:drop-shadow(0 4px 6px rgba(0,0,0,.35));transition:scale .25s var(--ease),rotate .25s var(--ease)}
.strip-bot:nth-of-type(odd){rotate:-9deg}
.strip-bot:nth-of-type(even){rotate:7deg}
.strip-bot:hover{scale:1.35;rotate:0deg}

/* The play list gets a little more life. */
.plays a{position:relative}
.plays a::after{content:"\2192";position:absolute;right:4px;top:50%;translate:-12px -50%;opacity:0;color:var(--amber);font:600 1.25rem/1 var(--label);transition:translate .25s var(--ease),opacity .18s}
.plays a:hover::after,.plays a:focus-visible::after{translate:0 -50%;opacity:1}

@media (max-width:860px),(max-aspect-ratio:19/20){
  .hero{padding-bottom:0;gap:clamp(96px,15svh,150px)}
  .hero-top{padding-top:12px}
  .mat{font-size:min(40vw,34svh);margin-left:-.01em;flex-wrap:wrap;row-gap:.05em}
  .mat i{flex-basis:100%;width:auto;height:0}
  .hero-hint{display:block}
  .strip{padding:10px 0}
}
@media (prefers-reduced-motion:reduce){
  .mat span,.toy-tag{animation:none}
  .strip-track{animation:none}
  .strip{overflow-x:auto}
}
html[data-motion="off"] .mat span,html[data-motion="off"] .toy-tag{animation:none}
html[data-motion="off"] .strip-track{animation:none}
html[data-motion="off"] .strip{overflow-x:auto}

/* Each act's words rise in as the act scrolls into view (browsers without scroll timelines just show them). */
@supports (animation-timeline:view()){
  @media (prefers-reduced-motion:no-preference){
    .act-copy > *{animation:act-rise linear both;animation-timeline:view();animation-range:entry 5% entry 55%}
    .act-copy > h2{animation-name:act-title;animation-range:entry 0% entry 60%}
  }
}
@keyframes act-rise{from{opacity:0;translate:0 48px}}
@keyframes act-title{from{opacity:0;translate:-6vw 0;letter-spacing:.08em}}
html[data-motion="off"] .act-copy > *{animation:none}
