/* Home: scroll intro (riso zine) + hold-to-stop (kinetic poster) */
.hero { display: flex; flex-wrap: wrap; align-items: center; gap: clamp(24px, 4vw, 56px); padding-block: 24px clamp(56px, 7vw, 96px); }
.phone-wrap { flex: 0 0 300px; height: 640px; display: grid; place-items: center; position: relative; }
.speed { position: absolute; left: -24px; top: 120px; display: grid; gap: 18px; opacity: 0; transition: opacity .3s; }
.speed i { display: block; height: 6px; border-radius: 3px; background: var(--pink); width: 90px; }
.speed i:nth-child(2) { width: 60px; background: var(--blue); margin-left: 24px; }
.speed i:nth-child(3) { width: 110px; }
.hero.fast .speed { opacity: 1; }
.phone { width: 290px; height: 590px; padding: 14px; border-radius: 46px; background: var(--ink); box-shadow: 10px 12px 0 var(--pink); transition: transform .5s cubic-bezier(.3,1.4,.5,1); }
.hero.shake .phone { animation: shake .3s linear; }
.hero.tilt .phone { transform: rotate(-7deg) scale(.96); }
@keyframes shake { 0%,100% { transform: translate(0) } 20% { transform: translate(-6px,3px) rotate(-1deg) } 40% { transform: translate(6px,-3px) rotate(1deg) } 60% { transform: translate(-5px,-2px) } 80% { transform: translate(4px,3px) } }
.screen { width: 100%; height: 100%; border-radius: 34px; overflow: hidden; background: var(--sheet); padding: 0 8px; }
.feed { display: grid; gap: 8px; padding-top: 8px; will-change: transform; }
.tile { height: 214px; border-radius: 22px; position: relative; overflow: hidden; }
.tile .bar { position: absolute; left: 14px; bottom: 16px; width: 120px; height: 10px; border-radius: 5px; background: var(--ink); }
.tile .bar + .bar { bottom: 34px; width: 76px; opacity: .45; }
.tile .heart { position: absolute; right: 14px; bottom: 14px; width: 30px; height: 28px; animation: beat 1.1s ease-in-out infinite; }
@keyframes beat { 0%,100% { transform: scale(1) } 30% { transform: scale(1.25) } }
.tile i { position: absolute; display: block; }

/* mini videos inside the phone */
.t-cat { background-color: var(--tint-pink); }
.t-cat .head { left: 70px; top: 46px; width: 112px; height: 96px; border-radius: 50% 50% 46% 46%; background: var(--blue); }
.t-cat .ear { top: 26px; border-left: 20px solid transparent; border-right: 20px solid transparent; border-bottom: 38px solid var(--blue); }
.t-cat .ear.l { left: 76px; transform: rotate(-14deg); } .t-cat .ear.r { left: 136px; transform: rotate(14deg); }
.t-cat .eye { top: 84px; width: 14px; height: 14px; border-radius: 50%; background: var(--sheet); animation: blink 3s infinite; }
.t-cat .eye.l { left: 98px; } .t-cat .eye.r { left: 140px; }
@keyframes blink { 0%,92%,100% { transform: scaleY(1) } 96% { transform: scaleY(.1) } }
.t-cat .tail { left: 172px; top: 108px; width: 58px; height: 14px; border-radius: 7px; background: var(--blue); transform-origin: left center; animation: wag .7s ease-in-out infinite alternate; }
@keyframes wag { from { transform: rotate(-42deg) } to { transform: rotate(-8deg) } }

.t-ball { background-color: var(--tint-yel); }
.t-ball .rim { right: 30px; top: 22px; width: 84px; height: 10px; background: var(--red); }
.t-ball .net { right: 44px; top: 32px; width: 56px; height: 40px; border: 4px solid var(--red); border-top: 0; border-radius: 0 0 14px 14px; }
.t-ball .ball { left: 60px; top: 30px; width: 76px; height: 76px; border-radius: 50%; background: var(--red); box-shadow: inset 0 0 0 4px var(--ink); animation: bounce .62s cubic-bezier(.5,0,1,.5) infinite alternate; }
@keyframes bounce { from { transform: translateY(0) } to { transform: translateY(70px) scaleY(.9) } }
.t-ball .shadow { left: 62px; top: 176px; width: 72px; height: 10px; border-radius: 50%; background: rgba(30,42,110,.25); }

.t-skate { background-color: var(--tint-blue); }
.t-skate .rig { left: 40px; top: 70px; width: 180px; height: 60px; animation: ollie 1.4s ease-in-out infinite; }
.t-skate .deck { left: 0; top: 0; width: 180px; height: 24px; border-radius: 12px; background: var(--pink); }
.t-skate .wheel { top: 28px; width: 26px; height: 26px; border-radius: 50%; background: var(--ink); }
.t-skate .wheel.a { left: 24px; } .t-skate .wheel.b { left: 130px; }
@keyframes ollie { 0%,55%,100% { transform: translateY(40px) rotate(0) } 25% { transform: translateY(-10px) rotate(-22deg) } 40% { transform: translateY(-16px) rotate(8deg) } }
.t-skate .ground { left: 0; right: 0; top: 168px; height: 6px; background: var(--ink); opacity: .35; }

.t-pan { background-color: var(--tint-pink); }
.t-pan .pan { left: 60px; top: 118px; width: 110px; height: 26px; border-radius: 0 0 20px 20px; background: var(--ink); }
.t-pan .handle { left: 166px; top: 120px; width: 70px; height: 10px; border-radius: 5px; background: var(--ink); }
.t-pan .egg { left: 86px; top: 86px; width: 56px; height: 22px; border-radius: 50%; background: var(--yel); box-shadow: inset 0 0 0 4px var(--ink); animation: flip 1.2s ease-in-out infinite; }
@keyframes flip { 0%,100% { transform: translateY(8px) rotate(0) } 50% { transform: translateY(-52px) rotate(180deg) } }
.t-pan .steam { top: 40px; width: 8px; height: 30px; border-radius: 4px; background: var(--blue); opacity: .5; animation: steam 1.6s ease-in infinite; }
.t-pan .steam.a { left: 70px; } .t-pan .steam.b { left: 150px; animation-delay: .8s; }
@keyframes steam { from { transform: translateY(30px); opacity: .6 } to { transform: translateY(-20px); opacity: 0 } }

.t-eq { background-color: var(--tint-yel); }
.t-eq .b { bottom: 70px; width: 26px; height: 110px; border-radius: 8px 8px 0 0; background: var(--blue); transform-origin: bottom; animation: eq .5s ease-in-out infinite alternate; }
.t-eq .b:nth-child(1) { left: 40px; } .t-eq .b:nth-child(2) { left: 76px; animation-duration: .36s; background: var(--pink); }
.t-eq .b:nth-child(3) { left: 112px; animation-duration: .62s; } .t-eq .b:nth-child(4) { left: 148px; animation-duration: .42s; background: var(--pink); }
.t-eq .b:nth-child(5) { left: 184px; animation-duration: .55s; }
@keyframes eq { from { transform: scaleY(.25) } to { transform: scaleY(1) } }
.hero.stopped .tile i, .hero.stopped .tile .heart { animation-play-state: paused; }

/* the scroll */
.scroll { flex: 1 1 620px; min-width: 0; }
.rod { height: 30px; margin: 0 -14px; border-radius: 15px; background: var(--ink); }
.scroll-body { display: grid; grid-template-rows: 0fr; transition: grid-template-rows .8s cubic-bezier(.2,.8,.2,1); }
.hero.open .scroll-body { grid-template-rows: 1fr; }
.sheet { overflow: hidden; min-height: 0; background: var(--sheet); position: relative; }
.sheet-in { padding: clamp(28px, 4vw, 56px); display: flex; flex-wrap: wrap; gap: 32px 40px; align-items: center; position: relative; }
.sun { position: absolute; left: 22%; top: 30px; width: min(360px, 60%); aspect-ratio: 1; border-radius: 50%; background: var(--yel); mix-blend-mode: multiply; opacity: .85; }
.sheet-text { flex: 1 1 380px; min-width: 0; position: relative; }
.kicker { font-weight: 700; font-size: clamp(14px, 1.3vw, 18px); letter-spacing: .04em; margin-bottom: 12px; }
.hero h1 { font-size: clamp(64px, 10vw, 170px); line-height: .95; letter-spacing: -.04em; }
html[data-lang="en"] .hero h1 { font-size: clamp(56px, 8.4vw, 148px); line-height: .92; }
.strike { opacity: .45; text-decoration: line-through; text-decoration-thickness: .07em; text-decoration-color: var(--red); }
.sub-name { margin-top: 16px; font-family: var(--display); font-weight: 900; font-size: clamp(24px, 3.2vw, 50px); letter-spacing: .06em; line-height: 1; }
.tagline { margin-top: 24px; font-weight: 700; font-size: clamp(18px, 1.6vw, 22px); }
.intro { margin-top: 12px; font-size: clamp(16px, 1.3vw, 18px); max-width: 32em; }
.stamps { list-style: none; display: flex; flex-direction: column; gap: 22px; flex: 0 0 auto; position: relative; }
.stamps li { width: 128px; height: 128px; border-radius: 14px; background: var(--red); color: var(--sheet); display: grid; place-items: center; text-align: center; font-family: var(--display); font-weight: 900; font-size: 34px; line-height: 1.1; transform: rotate(var(--r)) scale(2.2); opacity: 0; }
html[data-lang="en"] .stamps li { font-size: 22px; }
.stamps li:nth-child(1) { --r: -6deg; } .stamps li:nth-child(2) { --r: 4deg; } .stamps li:nth-child(3) { --r: -3deg; }
.hero.open .stamps li { animation: stamp .16s ease-in forwards; }
.hero.open .stamps li:nth-child(1) { animation-delay: .75s; } .hero.open .stamps li:nth-child(2) { animation-delay: .92s; } .hero.open .stamps li:nth-child(3) { animation-delay: 1.09s; }
@keyframes stamp { from { transform: rotate(var(--r)) scale(2.2); opacity: 0 } to { transform: rotate(var(--r)) scale(1); opacity: 1 } }
@media (max-width: 720px) {
  .phone-wrap { flex: 1 1 100%; height: 300px; overflow: hidden; align-items: start; }
  .phone { transform-origin: top center; transform: scale(.62); }
  .hero.tilt .phone { transform: rotate(-5deg) scale(.6); }
  .hero.shake .phone { animation: none; }
  .speed { left: 4%; top: 60px; }
  .stamps { flex-direction: row; gap: 12px; }
  .stamps li { width: 88px; height: 88px; font-size: 22px; border-radius: 10px; }
  html[data-lang="en"] .stamps li { font-size: 15px; }
  .rod { height: 18px; margin: 0 -8px; }
}

/* hold to stop */
.hold { position: relative; overflow: hidden; background: var(--yel); padding: clamp(64px, 8vw, 104px) 16px; display: flex; flex-direction: column; align-items: center; gap: 26px; text-align: center; touch-action: pan-y; }
.rain { position: absolute; inset: 0; pointer-events: none; }
.rain span { position: absolute; left: 0; top: 0; padding: 10px 26px; border-radius: 999px; font-weight: 700; font-size: clamp(16px, 2vw, 26px); white-space: nowrap; will-change: transform; }
.rain .k0 { background: var(--ink); color: var(--yel); } .rain .k1 { background: var(--pink); color: var(--ink); }
.rain .k2 { background: var(--sheet); color: var(--ink); box-shadow: inset 0 0 0 3px var(--ink); } .rain .k3 { background: var(--red); color: var(--ink); }
.hold h2 { position: relative; font-size: clamp(28px, 4vw, 56px); max-width: 16em; }
.hold-btn-wrap { position: relative; width: 236px; height: 236px; display: grid; place-items: center; }
.hold-btn-wrap svg { position: absolute; inset: 0; width: 100%; height: 100%; }
#holdBtn { position: relative; width: 196px; height: 196px; border-radius: 50%; border: 0; background: var(--ink); color: var(--yel); font: 900 48px var(--display); user-select: none; -webkit-user-select: none; touch-action: none; transition: transform .12s; }
#holdBtn.down { transform: scale(.92); }
.hold .after { position: relative; display: none; flex-direction: column; align-items: center; gap: 20px; }
.hold.done .after { display: flex; }
.hold.done .before { display: none; }
.hold.done h2.after-title { font-size: clamp(40px, 7vw, 104px); letter-spacing: -.03em; animation: drop .6s cubic-bezier(.3,1.5,.5,1); }
@keyframes drop { from { transform: translateY(-120px) rotate(-6deg); opacity: 0 } to { transform: none; opacity: 1 } }
@media (max-width: 720px) { .hold-btn-wrap { width: 170px; height: 170px; } #holdBtn { width: 140px; height: 140px; font-size: 34px; } }

/* contents */
.toc li { display: flex; flex-wrap: wrap; align-items: center; gap: 16px 40px; padding: 32px 0; }
.toc .num { flex: 0 0 150px; font: 800 clamp(64px, 8vw, 104px)/1 var(--pop); }
.toc .body { flex: 1 1 380px; min-width: 0; }
.toc h3 { font-size: clamp(26px, 2.6vw, 36px); }
.toc p { margin-top: 8px; font-size: 18px; }
.toc .go { min-height: 44px; display: inline-flex; align-items: center; font-family: var(--display); font-weight: 900; font-size: 22px; }
@media (max-width: 720px) { .toc .num { flex-basis: 90px; } }
/* keep the hold text readable when a pill drifts behind it */
.hold h2 > span, .hold .before.note > span, .hold .lede > span { background: var(--yel); box-shadow: 0 0 0 6px var(--yel); -webkit-box-decoration-break: clone; box-decoration-break: clone; }
.earned { display: none; padding: 6px 14px; border: 4px solid var(--red-text); color: var(--red-text); border-radius: 8px; font-family: var(--display); font-weight: 900; font-size: 16px; transform: rotate(-8deg); letter-spacing: .08em; }
.earned.got { display: inline-block; }
.toc .when { flex: 0 0 auto; display: flex; flex-direction: column; font-weight: 700; font-size: 15px; line-height: 1.3; }
.toc .when b { font: 800 26px/1 var(--pop); }

/* interactive evening: the sky gets darker as you drag the moon */
.tonight { --night: 0; position: relative; overflow: hidden; color: var(--sheet); padding-block: clamp(56px, 7vw, 96px);
  background: color-mix(in srgb, #0B1136 calc(var(--night) * 100%), #3550B8); }
.tonight .stars { position: absolute; inset: 0; opacity: calc(.15 + var(--night) * .85); pointer-events: none;
  background-image: radial-gradient(#FFE800 1.6px, transparent 2px), radial-gradient(#F5F4EE 1.2px, transparent 1.6px), radial-gradient(#FF48B0 1.4px, transparent 1.8px);
  background-size: 173px 149px, 97px 113px, 251px 211px; background-position: 20px 30px, 60px 90px, 140px 10px; }
.tonight .wrap { position: relative; }
.tonight h2 { font-size: clamp(30px, 4vw, 56px); letter-spacing: -.02em; }
.tonight .lede { margin-top: 14px; }
.t-now { margin-top: 36px; display: flex; flex-wrap: wrap; align-items: baseline; gap: 6px 24px; }
.t-clock { font: 800 clamp(72px, 13vw, 170px)/.95 var(--pop); letter-spacing: -.03em; color: var(--yel); font-variant-numeric: tabular-nums; }
.t-count { font-weight: 700; font-size: clamp(16px, 1.6vw, 20px); padding: 6px 16px; border-radius: 999px; border: 3px solid currentColor; }
.t-story { margin-top: 14px; min-height: 3em; font-family: var(--display); font-weight: 900; font-size: clamp(20px, 2.6vw, 34px); line-height: 1.4; max-width: 26em; }
#tRange { --p: 0%; -webkit-appearance: none; appearance: none; display: block; width: 100%; height: 56px; margin: 18px 0 0; background: transparent; cursor: grab; touch-action: pan-y; }
#tRange:active { cursor: grabbing; }
#tRange::-webkit-slider-runnable-track { height: 12px; border-radius: 6px; background: linear-gradient(90deg, var(--yel) var(--p), rgba(245,244,238,.3) var(--p)); }
#tRange::-moz-range-track { height: 12px; border-radius: 6px; background: rgba(245,244,238,.3); }
#tRange::-moz-range-progress { height: 12px; border-radius: 6px; background: var(--yel); }
#tRange::-webkit-slider-thumb { -webkit-appearance: none; width: 52px; height: 52px; margin-top: -20px; border-radius: 50%; background: var(--yel); border: 4px solid var(--ink); box-shadow: inset -13px -6px 0 0 #E8B800, 0 0 0 5px rgba(255,232,0,.3); }
#tRange::-moz-range-thumb { width: 44px; height: 44px; border-radius: 50%; background: var(--yel); border: 4px solid var(--ink); box-shadow: inset -13px -6px 0 0 #E8B800; }
.t-stops { position: relative; height: 62px; margin-top: 2px; }
.t-stops button { position: absolute; top: 0; min-height: 48px; padding: 4px 12px; border: 0; background: none; color: var(--sheet); font-weight: 700; font-size: 14px; display: flex; flex-direction: column; align-items: flex-start; line-height: 1.3; border-left: 3px dashed rgba(245,244,238,.6); opacity: .75; }
.t-stops button b { font: 800 18px var(--pop); }
.t-stops button[aria-pressed="true"] { opacity: 1; color: var(--yel); border-left-color: var(--yel); }
.t-stops button:nth-child(1) { left: 0; } .t-stops button:nth-child(2) { left: 35.6%; } .t-stops button:nth-child(3) { left: 87%; }
@media (max-width: 720px) { .t-stops button:nth-child(3) { left: auto; right: 0; align-items: flex-end; border-left: 0; border-right: 3px dashed rgba(245,244,238,.6); } .t-stops button span { display: none; } }
.t-card { margin-top: 26px; padding: clamp(20px, 3vw, 32px); background: var(--sheet); color: var(--ink); border: 4px solid var(--ink); border-radius: 10px; box-shadow: 10px 10px 0 var(--pink); display: flex; flex-wrap: wrap; align-items: center; gap: 16px 32px; }
.t-card.flip { animation: tflip .35s cubic-bezier(.3,1.4,.5,1); }
@keyframes tflip { from { transform: translateY(14px) rotate(-1.5deg); opacity: .4 } to { transform: none; opacity: 1 } }
.t-card .num { font: 800 clamp(56px, 7vw, 96px)/1 var(--pop); }
.t-card .body { flex: 1 1 320px; min-width: 0; }
.t-card h3 { font-size: clamp(24px, 2.6vw, 36px); }
.t-card p { margin-top: 6px; font-size: 17px; }
.seal { padding: 6px 14px; border: 3px dashed rgba(30,42,110,.5); color: rgba(30,42,110,.75); border-radius: 8px; font-weight: 700; font-size: 14px; white-space: nowrap; }
.seal.got { border: 4px solid var(--red-text); color: var(--red-text); font-family: var(--display); font-weight: 900; font-size: 16px; letter-spacing: .08em; transform: rotate(-8deg); }
