@font-face { font-family: Fredoka; src: url('/assets/fredoka.woff2') format('woff2'); font-weight: 300 700; font-display: swap; }
:root { --ink: #382652; --purple: #7350a6; --paper: #eee7fc; --mint: #d9f1de; --yellow: #ffe27d; --display: Fredoka, 'Arial Rounded MT Bold', sans-serif; }
* { box-sizing: border-box; }
body { margin: 0; background: var(--paper); color: var(--ink); font-family: var(--display); -webkit-font-smoothing: antialiased; }
button, a { -webkit-tap-highlight-color: transparent; }
button { font: inherit; color: inherit; cursor: pointer; touch-action: manipulation; }
button:focus-visible, a:focus-visible { outline: 4px solid #8c3bc7; outline-offset: 6px; }
a { color: inherit; }
button svg { width: 1.35rem; height: 1.35rem; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.party-page { min-height: 100svh; overflow: hidden; display: flex; flex-direction: column; background-image: linear-gradient(#a38aba0b 1px, transparent 1px), linear-gradient(90deg, #a38aba0b 1px, transparent 1px); background-size: 38px 38px; }
.topbar { height: 10vh; min-height: 75px; max-height: 120px; display: flex; align-items: center; justify-content: space-between; margin: 0 4.3vw; border-bottom: 1px solid #baa5cf66; gap: 2rem; }
.brand { text-decoration: none; display: flex; align-items: center; gap: .65rem; font-size: clamp(1rem, 1.13vw, 1.5rem); letter-spacing: .11em; font-weight: 500; white-space: nowrap; }
.brand-star { font-size: 2.25em; line-height: 1; color: var(--purple); }
.top-note { font-size: clamp(.95rem, 1.1vw, 1.5rem); color: #745f8c; letter-spacing: .03em; }
.view-controls { display: flex; gap: .65rem; }
.icon-button { width: 2.9rem; height: 2.9rem; border: 1px solid #baa5cf99; background: #ffffff50; border-radius: 50%; display: grid; place-items: center; transition: background .2s; }
.icon-button:hover { background: white; }
.icon-button[aria-pressed=true] { background: var(--yellow); }
main { flex: 1; }
.birthday { position: relative; display: grid; grid-template-columns: 1fr 1fr; min-height: 59vh; padding: 3.6vh 4.3vw 2.6vh; max-width: 2300px; margin: auto; }
.birthday-copy { z-index: 2; padding-top: .4vh; }
.eyebrow { font-size: clamp(.9rem, 1.03vw, 1.5rem); letter-spacing: .15em; font-weight: 500; margin: 0 0 1.9vh; }
.birthday-copy .eyebrow { display: flex; align-items: center; gap: .6em; }
.eyebrow > span { color: #ab689c; font-size: 1.5em; }
.happy { font-weight: 400; font-size: clamp(2rem, 3.15vw, 5rem); margin: 0 0 -.3em; line-height: 1.35; }
h1 { font-size: clamp(5rem, 9.6vw, 15rem); letter-spacing: -.055em; font-weight: 600; line-height: 1.12; margin: 0; width: max-content; text-shadow: 0 4px 0 #fff8; }
.name-dot { color: #b17cbb; display: inline-block; transform: rotate(10deg); margin-left: .02em; }
.age-sticker { display: flex; align-items: center; justify-content: center; gap: .45em; width: max-content; padding: .18em .85em .25em; background: var(--yellow); border: 1.5px solid var(--ink); border-radius: 7px; box-shadow: 3px 4px 0 var(--ink); font-size: clamp(1.1rem, 1.35vw, 2rem); letter-spacing: .09em; transform: rotate(-4deg); margin: .45vh 0 2.7vh 1.2vw; }
.age-sticker strong { font-size: 1.45em; font-weight: 600; line-height: 1.25; }
.age-sticker > span { font-size: 1.2em; }
.birthday-wish { font-size: clamp(1.75rem, 2.65vw, 4rem); line-height: 1.13; font-weight: 500; margin: 0 0 1.1vh; letter-spacing: -.015em; }
.intro { font-size: clamp(1rem, 1.28vw, 1.9rem); color: #735c88; margin: 0; }
.hero-actions { display: flex; align-items: center; gap: 2vw; margin-top: 2.5vh; }
.surprise-button { display: flex; align-items: center; gap: .8em; background: var(--ink); color: #fff7fc; border: 2px solid var(--ink); border-radius: 100px; padding: .75em 1.35em; font-size: clamp(1.1rem, 1.4vw, 2rem); font-weight: 500; box-shadow: 0 5px 0 #c3aedb; transition: transform .2s, box-shadow .2s; }
.surprise-button > span { color: var(--yellow); font-size: 1.3em; }
.surprise-button:hover { transform: translateY(-3px); box-shadow: 0 8px 0 #c3aedb; }
.surprise-button:active { transform: translateY(3px); box-shadow: 0 2px 0 #c3aedb; }
.hand-note { font-size: clamp(.95rem, 1.08vw, 1.6rem); color: #826592; line-height: 1.15; transform: rotate(-6deg); position: relative; }
.hand-note span { padding-left: .7em; }
.hand-note svg { position: absolute; left: -2.3vw; top: 70%; width: 4.6vw; height: 2vw; stroke: #826592; stroke-width: 1.7; fill: none; }

/* The illustration stays separate from the greeting so both remain visible on a TV. */
.birthday-scene { position: relative; align-self: stretch; min-width: 0; isolation: isolate; }
.scene-halo { position: absolute; z-index: -2; width: 78%; aspect-ratio: 1; left: 12%; top: 4%; border-radius: 50% 47% 44% 49%; background: #ffe6a7; transform: rotate(-15deg); }
.scene-halo:after { content: ''; position: absolute; inset: 6%; border-radius: 50%; border: 1px dashed #b77f5866; }
.orbit { position: absolute; z-index: -1; inset: 2% 2% 4% 3%; border: 1px solid #ac8fc444; border-radius: 50%; transform: rotate(-23deg); }
.dragon { padding: 0; border: 0; background: none; position: absolute; width: 106%; left: -1%; top: -4%; height: 110%; display: flex; align-items: center; justify-content: center; z-index: 1; }
.dragon img { width: 100%; height: 100%; object-fit: contain; filter: drop-shadow(0 13px 6px #573b6a16); animation: bob 5s ease-in-out infinite; }
.dragon:hover img { filter: drop-shadow(0 13px 9px #573b6a30); }
.dragon.squish img { animation: squish .65s ease-in-out; }
.dragon-bubble { position: absolute; right: 0; top: .5%; font-size: clamp(1rem, 1.35vw, 2rem); line-height: 1.2; padding: .7em 1em; background: #fffaf4; border: 1.5px solid #bda4ca; border-radius: 25px 25px 25px 4px; transform: rotate(6deg); z-index: 3; box-shadow: 3px 4px 0 #bda4ca40; }
.scene-spark { position: absolute; font-size: 3.6vw; z-index: 2; line-height: 1; }
.spark-one { left: 6%; top: 14%; color: #ac7ab7; transform: rotate(12deg); }
.spark-two { right: 1%; top: 44%; color: #6e947c; }
.spark-three { left: 1%; bottom: 13%; color: #ac7ab7; font-size: 2.3vw; }
.dragon-label { position: absolute; left: 7%; bottom: 1%; font-size: clamp(1rem, 1.3vw, 2rem); line-height: 1.2; transform: rotate(-7deg); z-index: 3; }
.dragon-label strong { font-weight: 400; color: #826592; }
.ten-badge { position: absolute; right: 0; bottom: 5%; width: 8.2vw; height: 8.2vw; max-width: 170px; max-height: 170px; min-width: 100px; min-height: 100px; background: #f7a9c0; clip-path: polygon(50% 0%,60% 8%,73% 6%,78% 18%,91% 22%,92% 36%,100% 46%,94% 58%,96% 72%,82% 78%,77% 91%,63% 92%,51% 100%,40% 92%,26% 94%,21% 81%,8% 77%,8% 63%,0 52%,7% 40%,5% 27%,18% 21%,23% 9%,37% 8%); display: flex; flex-direction: column; align-items: center; justify-content: center; transform: rotate(12deg); z-index: 3; }
.ten-badge strong { font-size: clamp(1.5rem, 2.4vw, 3.3rem); font-weight: 500; line-height: 1.2; }
.ten-badge span { font-size: clamp(.62rem, .7vw, 1rem); letter-spacing: .07em; }

.surprise-shelf { position: relative; display: grid; grid-template-columns: 36% 64%; align-items: center; background: var(--mint); border-top: 1px solid #a6c9ae; border-bottom: 1px solid #a6c9ae; padding: 1.6vh 4.3vw 1.9vh; min-height: 24vh; }
.surprise-shelf:before { content: ''; position: absolute; top: -8px; left: 0; right: 0; height: 8px; background: radial-gradient(circle at 8px 8px, var(--mint) 7px, transparent 7.8px) 0 0/16px 9px repeat-x; }
.shelf-intro .eyebrow { font-size: clamp(.8rem, .85vw, 1.25rem); color: #597361; margin-bottom: 1vh; }
.shelf-intro h2 { font-size: clamp(1.45rem, 2.15vw, 3rem); letter-spacing: -.025em; line-height: 1.12; margin: 0 0 1.6vh; font-weight: 500; }
.autoplay-controls { display: flex; gap: .8em; align-items: center; flex-wrap: wrap; color: #597361; font-size: clamp(.8rem, .85vw, 1.25rem); }
#pause { display: flex; align-items: center; gap: .45em; border: 1px solid #86a68d; border-radius: 100px; background: transparent; padding: .35em .65em; font-size: inherit; white-space: nowrap; }
#pause:hover { background: #fff7; }
#pause-icon { font-size: .8em; }
.capsules { display: grid; grid-template-columns: repeat(3,1fr); gap: 1vw; align-items: end; }
.capsule { background: none; border: 0; padding: 0; text-align: center; --cap: #f5a7bf; --cap-dark: #e38eab; --toy: #f6b4ce; --toy-edge: #d58ba7; min-width: 0; }
.capsule.lavender { --cap: #bda7e8; --cap-dark: #a58ad7; --toy: #c1a5eb; --toy-edge: #9478ba; }
.capsule.peach { --cap: #f9be8d; --cap-dark: #eda46e; --toy: #8ccdbb; --toy-edge: #6baf9c; }
.capsule-window { width: clamp(92px, 8.6vw, 180px); height: clamp(100px, 9.3vw, 194px); margin: 0 auto; position: relative; display: block; }
.capsule-window:after { content: ''; position: absolute; bottom: 0; left: -7%; width: 114%; height: 10%; border-radius: 50%; background: #64846e19; z-index: 0; }
.capsule-lid { display: block; position: absolute; left: 0; top: 3%; width: 100%; height: 55%; border-radius: 100% 100% 12% 12%; background: var(--cap); border: 1px solid var(--cap-dark); box-shadow: inset 0 -7px 0 #ffffff22, inset -10px 0 0 #00000004; z-index: 3; transition: transform .65s cubic-bezier(.22,.7,.3,1), opacity .4s .05s; }
.question { position: absolute; font-size: clamp(2rem, 3.2vw, 4rem); color: #ffffffdf; font-weight: 500; left: 0; right: 0; top: 2%; text-shadow: 0 2px #00000009; }
.lid-shine { position: absolute; top: 19%; left: 15%; width: 20%; height: 30%; border-radius: 50%; background: #ffffff40; transform: rotate(35deg); }
.capsule-base { position: absolute; left: 0; bottom: 6%; height: 44%; width: 100%; border-radius: 10% 10% 48% 48%; background: linear-gradient(#fff8ed,#eee8dd); border: 1px solid #d3cec1; box-shadow: inset -9px -4px 0 #b8b2a512, inset 2px 2px 0 #fff; z-index: 4; display: flex; align-items: center; justify-content: center; }
.capsule-base:before { content: ''; position: absolute; top: 4px; left: 7%; right: 7%; height: 2px; background: #dad3c5; border-radius: 50%; }
.base-star { font-size: clamp(1rem, 1.45vw, 2rem); color: var(--cap-dark); }
.capsule-caption { display: block; font-size: clamp(.95rem, 1.18vw, 1.6rem); font-weight: 500; margin-top: .4vh; white-space: nowrap; }
.guest-name { display: block; font-size: clamp(.8rem, .9vw, 1.3rem); color: #5b7664; margin-top: .3em; min-height: 1.3em; }
.capsule:hover .capsule-lid { transform: rotate(-8deg) translateY(-4%); }
.capsule.is-open .capsule-lid { transform: translateY(-65%) rotate(-22deg) scale(.7); opacity: 0; }
.guest { position: absolute; width: 66%; height: 76%; left: 17%; bottom: 12%; transform: translateY(35%) scale(.4); opacity: 0; z-index: 2; transition: transform .6s cubic-bezier(.25,1.5,.5,1), opacity .25s .08s; }
.is-open .guest { transform: translateY(-23%) scale(1); opacity: 1; }
.guest-body { position: absolute; left: 0; bottom: 0; width: 100%; height: 72%; background: var(--toy); border: 1px solid var(--toy-edge); border-radius: 35% 35% 22% 22%; box-shadow: inset -7px -3px 0 #00000006; }
.paper .guest-body { clip-path: polygon(5% 0,95% 0,100% 100%,0 100%); border-radius: 0; background: linear-gradient(90deg,#ef9dbe 0 48%,#fac1d8 49% 100%); }
.ear { position: absolute; background: var(--toy); border: 1px solid var(--toy-edge); width: 26%; height: 55%; top: -1%; border-radius: 40% 40% 0 0; }
.ear-left { left: 9%; transform: rotate(-12deg); }
.ear-right { right: 9%; transform: rotate(12deg); }
.paper .ear { border-radius: 2px; background: linear-gradient(90deg,#f1a2c1 50%,#fac9dc 50%); }
.fold { position: absolute; bottom: 0; left: 0; right: 0; height: 30%; background: #e194b3; clip-path: polygon(0 100%,50% 0,100% 100%); }
.squishy .guest-body { height: 91%; border-radius: 45% 45% 33% 33%; background: radial-gradient(ellipse at 28% 25%,#e4d0ff70,transparent 45%),var(--toy); }
.squishy .guest-body:after { content: ''; position: absolute; width: 25%; height: 14%; left: -9%; top: 50%; border-radius: 50%; background: var(--toy); }
.mini-dragon .ear { height: 35%; top: 0; background: #f9d59f; border-color: #d9b88a; clip-path: polygon(0 0,100% 100%,0 100%); }
.mini-dragon .ear-right { transform: scaleX(-1) rotate(-12deg); }
.mini-dragon .guest-body { border-radius: 40% 40% 32% 32%; height: 85%; background: repeating-linear-gradient(0deg,transparent 0 4px,#6aaa981e 4px 5px),var(--toy); }
.mini-dragon .guest-body:before { content: ''; position: absolute; left: 22%; bottom: -3%; width: 56%; height: 40%; background: #fff0ae; border-radius: 45% 45% 25% 25%; }
.face { position: absolute; left: 20%; top: 33%; width: 60%; height: 30%; z-index: 1; }
.face i { position: absolute; background: var(--ink); width: 13%; height: 45%; border-radius: 50%; top: 0; }
.face i:first-child { left: 5%; }
.face i:nth-child(2) { right: 5%; }
.face i:after { content: ''; position: absolute; width: 40%; height: 35%; background: white; border-radius: 50%; top: 13%; left: 20%; }
.face b { position: absolute; width: 23%; height: 30%; left: 38%; top: 45%; border: 2px solid var(--ink); border-top: 0; border-radius: 0 0 100px 100px; }
.face:before, .face:after { content: ''; position: absolute; top: 35%; width: 25%; height: 25%; background: #ed869e80; border-radius: 50%; }
.face:before { left: -14%; }
.face:after { right: -14%; }
.burst { position: absolute; right: -30%; top: 10%; color: #bb8b44; font-size: 2.4rem; opacity: 0; transform: scale(0); transition: transform .4s,opacity .4s; }
.is-open .burst { opacity: 1; transform: scale(1) rotate(20deg); }

footer { min-height: 6.5vh; display: flex; align-items: center; justify-content: space-between; gap: 1.5rem; padding: 1.2vh 4.3vw; color: #806b91; }
footer > span:first-child { font-size: clamp(.7rem, .77vw, 1rem); letter-spacing: .09em; max-width: 30%; }
footer p { font-size: clamp(.95rem, 1.1vw, 1.6rem); margin: 0; text-align: center; }
.footer-star { font-size: 2.1rem; color: #9d79ac; }
#confetti { position: fixed; inset: 0; pointer-events: none; overflow: hidden; z-index: 10; }
.confetto { position: absolute; left: var(--x); top: -4vh; width: var(--size); height: calc(var(--size)*.52); background: var(--color); border-radius: 2px; animation: fall var(--duration) var(--delay) ease-in forwards; }
.confetto:nth-child(3n) { border-radius: 50%; height: var(--size); }
.notice { position: fixed; bottom: 2rem; left: 50%; transform: translateX(-50%); background: var(--ink); color: white; padding: 1rem 1.5rem; border-radius: 12px; z-index: 20; font-size: 1rem; max-width: 90%; text-align: center; }
.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; }
@keyframes bob { 0%,100% { transform: translateY(0) rotate(-1deg); } 50% { transform: translateY(-1.5%) rotate(1deg); } }
@keyframes squish { 0%,100% { transform: scale(1); } 35% { transform: scale(1.09,.89); } 65% { transform: scale(.96,1.05); } }
@keyframes fall { to { transform: translate3d(var(--drift),110vh,0) rotate(var(--rotation)); } }

@media (min-width: 2200px) {
  .birthday { min-height: 60vh; max-width: none; }
  .brand { font-size: 1.13vw; }
  .top-note { font-size: 1.1vw; }
  .hand-note { font-size: 1.08vw; }
  .question { font-size: 3.2vw; }
  .base-star { font-size: 1.45vw; }
  .ten-badge strong { font-size: 2.4vw; }
  .ten-badge span { font-size: .7vw; }
  footer > span:first-child { font-size: .77vw; }
  footer p { font-size: 1.1vw; }
  .topbar { max-height: none; }
  .icon-button { width: 3.6rem; height: 3.6rem; }
  .icon-button svg { width: 1.7rem; height: 1.7rem; }
  .capsule-window { max-width: none; }
  .ten-badge { max-width: none; max-height: none; }
}
@media (max-width: 1100px) and (min-width: 761px) {
  .top-note { display: none; }
  .birthday { min-height: 60vh; }
  .birthday-wish { font-size: 2.7vw; }
  .intro { max-width: 90%; }
  .capsule-caption { font-size: 1.25vw; }
  .autoplay-controls { gap: .4rem; }
  .dragon-bubble { right: -3%; top: 5%; }
  .birthday-scene .dragon { top: 0; }
  .hand-note { font-size: 1.2vw; }
  .shelf-intro h2 { font-size: 2.3vw; }
}
@media (max-width: 760px) {
  .topbar { min-height: 72px; height: auto; margin: 0 6vw; gap: 1rem; }
  .brand { font-size: .74rem; gap: .35rem; letter-spacing: .07em; }
  .brand-star { font-size: 2.3em; }
  .top-note { display: none; }
  .icon-button { width: 2.4rem; height: 2.4rem; }
  .view-controls { gap: .4rem; }
  .birthday { display: flex; flex-direction: column; padding: 2rem 6vw 1.3rem; min-height: 0; }
  .birthday-copy { padding: 0; }
  .eyebrow { font-size: .8rem; margin-bottom: .8rem; }
  .happy { font-size: 2.1rem; margin-bottom: -.25em; }
  h1 { font-size: clamp(4.7rem,17vw,8rem); }
  .age-sticker { margin: .5rem 0 1.7rem 1%; font-size: .92rem; }
  .birthday-wish { font-size: 1.8rem; }
  .intro { font-size: 1rem; max-width: 95%; margin-top: .6rem; }
  .hero-actions { margin-top: 1.4rem; gap: 1.5rem; }
  .surprise-button { font-size: 1.05rem; padding: .7em 1.2em; }
  .hand-note { font-size: .9rem; }
  .hand-note svg { display: none; }
  .birthday-scene { width: 100%; height: 370px; margin-top: .5rem; }
  .birthday-scene .dragon { width: 105%; height: 110%; left: -3%; top: -4%; }
  .scene-halo { width: 75%; height: auto; max-height: 100%; top: 3%; left: 14%; }
  .dragon-bubble { top: 5%; right: -1%; font-size: .95rem; padding: .6em .8em; }
  .dragon-label { font-size: 1rem; left: 0; bottom: 2%; }
  .ten-badge { right: 1%; bottom: 4%; min-width: 90px; min-height: 90px; }
  .ten-badge strong { font-size: 1.5rem; }
  .ten-badge span { font-size: .58rem; }
  .scene-spark { font-size: 2.5rem; }
  .spark-one { top: 19%; }
  .spark-three { font-size: 1.7rem; }
  .surprise-shelf { display: block; padding: 1.7rem 5vw 1.5rem; }
  .shelf-intro { text-align: center; }
  .shelf-intro .eyebrow { font-size: .73rem; }
  .shelf-intro h2 { font-size: 1.75rem; margin-bottom: 1rem; }
  .autoplay-controls { justify-content: center; font-size: .8rem; gap: .7rem; }
  .capsules { margin-top: 2rem; gap: 1.5vw; align-items: start; }
  .capsule-window { width: 84px; height: 95px; }
  .capsule-caption { font-size: .88rem; white-space: normal; max-width: 110px; margin: .5rem auto 0; line-height: 1.15; }
  .guest-name { font-size: .75rem; line-height: 1.2; max-width: 110px; min-height: 2.6em; margin: .35rem auto 0; }
  .question { font-size: 2.1rem; }
  .burst { font-size: 1.7rem; right: -15%; }
  footer { padding: 1.2rem 6vw; flex-wrap: wrap; justify-content: center; gap: .6rem; }
  footer p { font-size: .95rem; order: -1; width: 100%; }
  footer > span:first-child { max-width: 90%; font-size: .6rem; }
  .footer-star { font-size: 1.4rem; }
}
@media (max-height: 700px) and (min-width: 761px) {
  .topbar { min-height: 58px; height: 9vh; }
  .birthday { min-height: 59vh; padding-top: 2vh; padding-bottom: 2vh; }
  .birthday-copy .eyebrow { margin-bottom: .5vh; }
  .happy { font-size: 2.6vw; }
  h1 { font-size: 8vw; }
  .age-sticker { margin: 0 0 2vh; font-size: 1vw; }
  .birthday-wish { font-size: 2.15vw; }
  .intro { font-size: 1.05vw; }
  .hero-actions { margin-top: 2vh; }
  .surprise-button { font-size: 1.15vw; padding: .55em 1.3em; }
  .surprise-shelf { min-height: 25vh; }
  .capsule-window { width: 6.5vw; height: 7vw; }
  .capsule-caption { font-size: 1vw; }
  .guest-name { font-size: .8vw; }
  .shelf-intro h2 { font-size: 1.8vw; }
  .scene-halo { width: 70%; left: 17%; }
  .dragon-bubble { font-size: 1.1vw; }
  .ten-badge { width: 7vw; height: 7vw; min-width: 80px; min-height: 80px; }
  .ten-badge strong { font-size: 2vw; }
  .ten-badge span { font-size: .6vw; }
  .dragon-label { font-size: 1.1vw; }
}
/* A landscape party is a complete screen, including its surprise shelf. */
@media (min-width: 761px) and (min-aspect-ratio: 4/3) {
  .topbar { height: 9vh; min-height: 0; max-height: none; }
  .birthday { height: 61vh; min-height: 0; padding-top: 2vh; padding-bottom: 2vh; }
  .birthday-copy { padding-top: 0; }
  .birthday-copy .eyebrow { font-size: min(1.03vw,1.8vh); margin-bottom: 1.1vh; }
  .happy { font-size: min(3.15vw,4.5vh); }
  h1 { font-size: min(9.6vw,14vh); }
  .age-sticker { font-size: min(1.35vw,2.2vh); margin: .4vh 0 2.2vh 1.2vw; }
  .birthday-wish { font-size: min(2.65vw,4vh); margin-bottom: 1vh; }
  .intro { font-size: min(1.28vw,2vh); }
  .hero-actions { margin-top: 2vh; }
  .surprise-button { font-size: min(1.4vw,2.2vh); padding: .6em 1.35em; }
  .scene-halo { width: 74%; left: 13%; }
  .dragon { height: 106%; top: -3%; }
  .dragon-bubble { font-size: min(1.35vw,2.2vh); }
  .dragon-label { font-size: min(1.3vw,2.1vh); }
  .surprise-shelf { height: 24vh; min-height: 0; padding-top: 1.4vh; padding-bottom: 1.4vh; }
  .capsule-window { width: min(8.6vw,14vh); height: min(9.3vw,15.2vh); }
  .capsule-caption { font-size: min(1.18vw,2vh); }
  .guest-name { font-size: min(.9vw,1.6vh); }
  .shelf-intro h2 { font-size: min(2.15vw,3.5vh); }
  .shelf-intro .eyebrow { font-size: min(.85vw,1.5vh); }
  .autoplay-controls { font-size: max(.875rem,min(.85vw,1.5vh)); }
  footer { height: 6vh; min-height: 0; padding-top: 1vh; padding-bottom: 1vh; }
}
@media (prefers-reduced-motion: reduce) {
  *, *:before, *:after { animation: none !important; transition: none !important; }
  .confetto { display: none; }
}
