/* Not My Event: the look of the three "one venue, five hours" quinceañera invitations (Her Night, Game Day, Game Day Live; drawings /assets/xv-art.js, behaviour /assets/xv-show.js).
   They share a room, a rig of LED lights and live music, but NOT a structure (the user: "not everything is the same structure"):
     body.m-scroll  Her Night: the five acts are stacked and the guest scrolls DOWN; each act rises into view like a curtain going up.
     body.m-next    one scene at a time with Next and Back, and a broadcast wipe in the team colours (kept for later designs; Game Day now scrolls down with a team-colour reveal).
     body.m-pan     Game Day Live: the scenes sit side by side and the guest moves sideways with the big arrows (or a swipe); the first one is the playable penalty kick.
   The words of each scene sit in a different place (centred, left, right) while the drawings stay symmetrical. Anything that moves uses transform/opacity only, and a scene that is not on screen stops its animations. */
:root { --gold: #f0c95a; --gold2: #b8862a; --acc: #e0408a; --acc2: #ff9ad0; --ink: #3a0f4a; --paper: #fff8ee; --night: #12052a; --bar: 150px;
  --display: "Bodoni Moda", Didot, "Bodoni 72", Georgia, serif; --body: "Josefin Sans", system-ui, sans-serif; --chunk: "Fredoka", system-ui, sans-serif; }
body.d-gameday, body.d-live { --display: "Big Shoulders Display", Impact, "Arial Narrow", sans-serif; --acc: var(--ta, #1f5fff); --acc2: var(--tb, #ffc23d); --ink: #0b1426; --paper: #f6f8ff; --night: #050a18; }
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--night); color: #fff; font-family: var(--body); -webkit-font-smoothing: antialiased; }
h1, h2, h3, p { margin: 0; }
button { font: inherit; color: inherit; cursor: pointer; -webkit-tap-highlight-color: transparent; }
:focus-visible { outline: 3px solid #fff; outline-offset: 3px; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: fixed; left: 8px; top: -60px; z-index: 300; padding: 10px 14px; background: #fff; color: #000; border-radius: 8px; } .skip:focus { top: 8px; }
#net { position: fixed; left: 0; right: 0; top: 0; z-index: 250; padding: 10px 14px; text-align: center; background: #e0306a; color: #fff; font-size: 14px; } #net[hidden] { display: none; }

/* ---------- the three ways through the night ---------- */
.scene { position: relative; overflow: hidden; outline: none; }
.art-host, .art { position: absolute; inset: 0; width: 100%; height: 100%; }
.art { display: block; -webkit-user-select: none; user-select: none; }
/* scroll down (Her Night) */
html.m-scroll { scroll-snap-type: y proximity; }
body.m-scroll .scene { height: 100svh; min-height: 520px; scroll-snap-align: start; }
body.m-scroll .scene::before { content: ""; position: absolute; inset: 0; z-index: 8; pointer-events: none; background: repeating-linear-gradient(90deg, #5a0820 0 26px, #9a1238 26px 48px, #6a0a26 48px 70px); box-shadow: inset 0 -14px 0 #f0c95a; transform: translateY(0); transition: transform 1.1s cubic-bezier(.6, 0, .2, 1); }
body.m-scroll .scene.in::before { transform: translateY(-102%); }
/* Game Day scrolls down too, but each scene is revealed by a sweep of her team colours, not a theatre curtain */
body.m-scroll.d-gameday .scene::before { background: repeating-linear-gradient(-45deg, var(--ta, #1f5fff) 0 46px, var(--tb, #ffc23d) 46px 62px, #fff 62px 68px); box-shadow: none; }
body.m-scroll .scene .copy { opacity: .25; translate: 0 24px; transition: opacity .9s ease .5s, translate .9s ease .5s; }
body.m-scroll .scene.in .copy { opacity: 1; translate: 0 0; }
/* one at a time (Game Day) */
body.m-next, body.m-pan { overflow: hidden; height: 100svh; }
body.m-next #stage { position: fixed; inset: 0; }
body.m-next .scene { position: absolute; inset: 0; visibility: hidden; }
body.m-next .scene.on { visibility: visible; }
#wipe { position: fixed; inset: 0; z-index: 70; pointer-events: none; display: none; }
body.m-next #wipe { display: block; }
#wipe i { position: absolute; top: -20%; bottom: -20%; width: 34%; left: -40%; transform: skewX(-18deg); }
#wipe i:nth-child(1) { background: var(--ta, #1f5fff); } #wipe i:nth-child(2) { background: var(--tb, #ffc23d); width: 10%; } #wipe i:nth-child(3) { background: #fff; width: 4%; }
#wipe.go i { animation: wipe .78s cubic-bezier(.7, 0, .3, 1) both; } #wipe.go i:nth-child(2) { animation-delay: .06s; } #wipe.go i:nth-child(3) { animation-delay: .1s; }
@keyframes wipe { from { translate: 0 0; } to { translate: 420vw 0; } }
/* sideways (Game Day Live) */
body.m-pan #stage { position: fixed; inset: 0; display: flex; overflow-x: auto; overflow-y: hidden; scroll-snap-type: x mandatory; scroll-behavior: smooth; scrollbar-width: none; overscroll-behavior-x: contain; }
body.m-pan #stage::-webkit-scrollbar { display: none; }
body.m-pan .scene { flex: 0 0 100%; height: 100%; scroll-snap-align: start; scroll-snap-stop: always; }
.arw { position: fixed; z-index: 25; top: 46%; width: 54px; height: 54px; border-radius: 50%; border: 2px solid rgba(255, 255, 255, .7); background: rgba(5, 10, 24, .6); font-size: 30px; line-height: 1; display: none; place-items: center; }
body.m-pan .arw { display: grid; }
.arw[disabled] { opacity: .25; }
#arw-l { left: max(8px, env(safe-area-inset-left, 0px)); } #arw-r { right: max(8px, env(safe-area-inset-right, 0px)); }
/* a scene that is not on screen rests */
.scene:not(.cur) * { animation-play-state: paused !important; }

/* ---------- the words of each scene (centred, left or right, never the same twice in a row) ---------- */
.copy { position: absolute; z-index: 5; left: 0; right: 0; top: calc(64px + env(safe-area-inset-top, 0px)); padding: 0 18px; text-align: center; pointer-events: none; text-shadow: 0 2px 12px rgba(5, 2, 20, .9); }
.copy .eyebrow { font-weight: 600; font-size: clamp(11px, 2.7vw, 14px); letter-spacing: .3em; text-transform: uppercase; color: var(--acc2); }
.copy h1, .copy h2 { margin-top: 4px; font-family: var(--display); line-height: 1; color: var(--gold); text-wrap: balance; overflow-wrap: anywhere; }
.copy h1 { font-size: clamp(36px, 10vw, 76px); } .copy h2 { font-size: clamp(30px, 8vw, 60px); }
body.d-performer .copy h1, body.d-performer .copy h2 { font-style: italic; font-weight: 500; }
body.d-gameday .copy h1, body.d-gameday .copy h2, body.d-live .copy h1, body.d-live .copy h2 { text-transform: uppercase; font-weight: 800; letter-spacing: .01em; color: #fff; }
.copy .sub, .copy .lead { margin: 6px auto 0; max-width: 40ch; font-size: clamp(13px, 3.4vw, 18px); line-height: 1.35; color: #fff; text-wrap: balance; }
.copy .with { margin-top: 8px; font-size: clamp(12px, 3vw, 15px); letter-spacing: .12em; color: var(--acc2); }
.copy h1, .copy .sub, .copy .with span { pointer-events: auto; }
@media (min-width: 900px) and (min-aspect-ratio: 5/4) {
  .copy.pos-l, .copy.pos-r { top: 26svh; width: min(34vw, 460px); padding: 0; }
  .copy.pos-l { left: max(28px, 4vw); right: auto; text-align: left; } .copy.pos-l .sub, .copy.pos-l .lead { margin-left: 0; }
  .copy.pos-r { right: max(28px, 4vw); left: auto; text-align: right; } .copy.pos-r .sub, .copy.pos-r .lead { margin-right: 0; }
}

/* ---------- the top: the scene dots and one small label (the speaker sits at the top right, from speaker.js) ---------- */
.hud { position: fixed; z-index: 30; left: 0; right: 0; top: 0; display: flex; justify-content: center; padding: max(10px, env(safe-area-inset-top, 0px)) 64px 0; pointer-events: none; }
.hud > * { pointer-events: auto; }
.hudmid { display: grid; justify-items: center; gap: 6px; }
.dots { display: flex; gap: 12px; }
.dot { position: relative; width: 13px; height: 13px; padding: 0; border-radius: 50%; border: 2px solid var(--gold); background: transparent; }
.dot::after { content: ""; position: absolute; inset: -14px; }
.dot[aria-current="true"] { background: var(--gold); box-shadow: 0 0 10px var(--gold); }
.tag { padding: 4px 12px; border-radius: 999px; background: rgba(5, 3, 20, .62); border: 1px solid rgba(240, 201, 90, .55); font-size: 13px; font-weight: 600; letter-spacing: .06em; white-space: nowrap; }
#back { position: fixed; z-index: 31; left: max(10px, env(safe-area-inset-left, 0px)); top: max(10px, env(safe-area-inset-top, 0px)); min-height: 44px; padding: 0 14px; border-radius: 999px; border: 1px solid rgba(255, 255, 255, .35); background: rgba(5, 3, 20, .6); font-weight: 600; }
#back[hidden] { display: none; }

/* ---------- the bar at the bottom ---------- */
.bar { position: fixed; z-index: 20; left: 0; right: 0; bottom: 0; padding: 22px 14px max(12px, env(safe-area-inset-bottom, 0px)); background: linear-gradient(0deg, rgba(5, 3, 20, .94) 0%, rgba(5, 3, 20, .8) 62%, rgba(5, 3, 20, 0) 100%); text-align: center; }
.slogan { font-family: var(--display); font-size: clamp(22px, 6vw, 32px); line-height: 1.05; color: var(--gold); }
body.d-performer .slogan { font-style: italic; } body.d-gameday .slogan, body.d-live .slogan { text-transform: uppercase; font-weight: 800; color: #fff; }
.hintline { margin: 4px auto 10px; max-width: 48ch; min-height: 2.6em; font-size: clamp(13px, 3.4vw, 16px); line-height: 1.3; color: #ffeef7; text-wrap: balance; }
.hintline b { color: var(--gold); font-weight: 600; letter-spacing: .1em; text-transform: uppercase; font-size: .86em; }
.row { display: flex; align-items: center; justify-content: center; gap: 10px; }
.pill, .go { min-height: 48px; border-radius: 999px; font-weight: 700; letter-spacing: .03em; white-space: nowrap; }
.pill { padding: 0 18px; border: 2px solid rgba(240, 201, 90, .7); background: rgba(5, 3, 20, .55); }
.pill.pri { background: var(--acc); border-color: #fff; }
.go { flex: 1 1 auto; max-width: 260px; padding: 0 22px; border: 2px solid #fff1bd; background: linear-gradient(180deg, #fff1bd, #f0c95a); color: #3a0f4a; font-size: 17px; }
.go.ready { animation: readyp 1.4s ease-in-out infinite; }
@keyframes readyp { 0%, 100% { box-shadow: 0 0 0 0 rgba(240, 201, 90, .7); } 50% { box-shadow: 0 0 0 10px rgba(240, 201, 90, 0); } }
.go[hidden], .pill[hidden] { display: none; }
#cap { position: fixed; z-index: 40; left: 50%; bottom: calc(var(--bar) + 18px); width: min(86vw, 380px); padding: 12px 18px; border-radius: 6px; background: var(--paper); color: var(--ink); text-align: center; box-shadow: 0 12px 30px rgba(0, 0, 0, .5), inset 0 0 0 2px var(--gold); transform: translate(-50%, 20px) rotate(-1.5deg); opacity: 0; pointer-events: none; transition: opacity .35s ease, transform .5s cubic-bezier(.2, .9, .3, 1.2); }
#cap.on { opacity: 1; transform: translate(-50%, 0) rotate(-1.5deg); }
#cap small { display: block; font-size: 11px; letter-spacing: .3em; text-transform: uppercase; color: var(--acc); }
#cap b { display: block; font-family: var(--display); font-weight: 700; font-size: 28px; line-height: 1.1; color: var(--acc); }
body.d-performer #cap b { font-style: italic; }
#cap span { display: block; font-size: 15px; line-height: 1.3; font-style: italic; text-wrap: balance; }
.bub { position: fixed; z-index: 60; max-width: 220px; padding: 6px 12px; border-radius: 14px; background: #fff; color: #2a1a10; font: 700 14px / 1.25 system-ui, sans-serif; text-align: center; box-shadow: 0 6px 16px rgba(0, 0, 0, .35); pointer-events: none; transform: translate(-50%, calc(-100% - 8px)); animation: bub 2.4s ease both; }
@keyframes bub { 0% { opacity: 0; translate: 0 8px; } 12%, 80% { opacity: 1; translate: 0 0; } 100% { opacity: 0; translate: 0 -8px; } }
.fin { position: absolute; z-index: 6; left: 0; right: 0; top: 14svh; padding: 0 16px; text-align: center; pointer-events: none; opacity: 0; transform: scale(.85); transition: opacity .9s ease, transform 1.1s cubic-bezier(.2, .9, .3, 1.15); }
.fin.show { opacity: 1; transform: none; }
.fin h2 { font-family: var(--display); font-size: clamp(44px, 13vw, 110px); line-height: 1; color: var(--gold); text-shadow: 0 0 24px rgba(240, 201, 90, .6), 0 3px 12px rgba(5, 2, 20, .9); }
body.d-performer .fin h2 { font-style: italic; } body.d-gameday .fin h2, body.d-live .fin h2 { text-transform: uppercase; font-weight: 800; }
.fin p { margin-top: 6px; font-size: clamp(15px, 4vw, 22px); color: #fff; text-shadow: 0 2px 8px rgba(5, 2, 20, .9); }

/* ---------- the sheets: details and the reply ---------- */
.sheet-wrap { position: fixed; inset: 0; z-index: 100; display: grid; place-items: center; padding: 16px; background: rgba(5, 3, 20, .72); -webkit-backdrop-filter: blur(4px); backdrop-filter: blur(4px); }
.sheet-wrap[hidden] { display: none; }
.sheetp { position: relative; width: min(480px, 100%); max-height: calc(100svh - 32px); overflow-y: auto; padding: 28px 22px 22px; border-radius: 18px; background: var(--paper); color: var(--ink); box-shadow: 0 30px 80px -20px rgba(0, 0, 0, .7), inset 0 0 0 2px var(--gold); outline: none; text-align: left; }
.sheetp h2 { font-family: var(--display); font-weight: 700; font-size: 34px; line-height: 1.05; color: var(--acc); margin: 0 40px 6px 0; }
body.d-performer .sheetp h2 { font-style: italic; } body.d-gameday .sheetp h2, body.d-live .sheetp h2 { text-transform: uppercase; }
.sheetp .sub { margin: 0 0 14px; opacity: .8; line-height: 1.4; }
.x { position: absolute; top: 8px; right: 8px; width: 44px; height: 44px; border: 0; border-radius: 50%; background: transparent; color: var(--ink); font-size: 28px; line-height: 1; }
.det { display: grid; gap: 12px; margin: 0 0 16px; } .det div { display: grid; gap: 2px; }
.det dt { font-size: 12px; letter-spacing: .24em; text-transform: uppercase; color: var(--acc); font-weight: 600; }
.det dd { margin: 0; font-size: 17px; line-height: 1.35; overflow-wrap: anywhere; }
.actions { display: flex; flex-wrap: wrap; gap: 10px; }
.btn { min-height: 50px; padding: 0 22px; border-radius: 999px; border: 2px solid var(--gold2); background: var(--acc); color: #fff; font-weight: 800; font-size: 16px; }
.btn.ghost { background: transparent; color: var(--ink); }
.linkish { min-height: 44px; padding: 0 8px; border: 0; background: none; color: var(--ink); font-weight: 700; text-decoration: underline; text-underline-offset: 3px; }
.f { display: grid; gap: 6px; margin-bottom: 12px; font-size: 13px; font-weight: 800; opacity: .9; }
#g-name { width: 100%; min-height: 50px; padding: 10px 14px; border-radius: 12px; border: 1.5px solid #d9c3d6; background: #fff; color: var(--ink); font: inherit; font-size: 16px; font-weight: 500; }
.err { margin: 0 0 10px; color: #c0283c; font-weight: 700; font-size: 14px; } .err[hidden], #done[hidden], #rsvp-form[hidden], #plus-field[hidden], #more[hidden], #sample-note[hidden] { display: none; }
.ans { display: grid; gap: 8px; margin: 0 0 12px; padding: 0; border: 0; min-width: 0; }
.ans label { position: relative; display: block; } .ans input { position: absolute; opacity: 0; pointer-events: none; }
.ans span { display: flex; align-items: center; min-height: 50px; padding: 0 16px; border-radius: 12px; border: 1.5px solid #d9c3d6; font-weight: 700; cursor: pointer; background: #fff; }
.ans input:checked + span { border-color: var(--acc); box-shadow: inset 0 0 0 2px var(--acc); }
.ans input:focus-visible + span { outline: 3px solid var(--acc); outline-offset: 2px; }
.step { display: flex; align-items: center; gap: 16px; }
.step button { width: 48px; height: 48px; border-radius: 50%; border: 1.5px solid var(--gold2); background: #fff; color: var(--ink); font-size: 24px; line-height: 1; }
.step output { min-width: 2ch; text-align: center; font-size: 22px; font-weight: 800; }
#done { text-align: center; display: grid; gap: 10px; padding: 6px 0; } #done p { margin: 0; opacity: .8; line-height: 1.4; }
.crowd-h { margin: 18px 0 8px; font-size: 13px; font-weight: 800; letter-spacing: .2em; text-transform: uppercase; color: var(--acc); }
.crowd { display: flex; flex-wrap: wrap; gap: 8px; padding: 0; margin: 0; list-style: none; }
.gc { display: inline-flex; align-items: center; gap: 6px; padding: 6px 12px; border-radius: 999px; background: #fff; border: 1.5px solid var(--gold); font-weight: 700; font-size: 14px; }
.gc.new { animation: tap .7s ease 2; }
.gempty { opacity: .8; font-size: 14px; } #more { margin-top: 8px; border: 0; background: none; color: var(--ink); font-weight: 700; } #sample-note { margin-top: 10px; font-size: 12px; opacity: .75; }

/* ---------- the LED rig: two colours, four light shows ---------- */
.lc, .bm { transition: fill .5s ease; }
.fx-pulse .lc:not(.lg) { animation: lpulse 2.8s ease-in-out infinite; }
.fx-chase .lc:not(.lg), .fx-chase .bm { animation: lpulse 1.3s ease-in-out infinite; animation-delay: calc(var(--d) * 110ms); }
.fx-sparkle .lc:not(.lg) { animation: ltwk 2.2s steps(2) infinite; animation-delay: calc(var(--d) * -370ms); }
@keyframes lpulse { 50% { opacity: .35; } }
@keyframes ltwk { 0%, 100% { opacity: 1; } 50% { opacity: .3; } }
.fx-steady .bm { opacity: .11; }
.tile { animation: tile 1.8s steps(2) infinite; animation-delay: calc(var(--d) * -.45s); }
@keyframes tile { 50% { opacity: .5; } }
body.hora .tile { animation-duration: .6s; } body.hora .fx-chase .lc:not(.lg), body.hora .bm { animation-duration: .5s; }
.eq { fill: var(--la, #ff2fa0); animation: lpulse .6s ease-in-out infinite; }

/* ---------- the people and props that move (the same rules as Quince Velas: individual translate/rotate/scale on drawn groups) ---------- */
.hit { cursor: pointer; outline: none; }
.hit:focus-visible { outline: 3px solid #fff; outline-offset: 2px; }
.hit.tap { transform-box: fill-box; transform-origin: 50% 100%; animation: tap .45s ease; }
@keyframes tap { 0%, 100% { scale: 1; } 40% { scale: 1.08; } }
.led.tap { animation: none; }
.twk { animation: glint 3s ease-in-out infinite; animation-delay: var(--d, 0s); }
.crys { animation: glint 2.6s ease-in-out infinite; animation-delay: var(--d); }
.bulb { animation: glint 1.6s ease-in-out infinite alternate; animation-delay: var(--d); }
.chase .bulb { animation-duration: .35s; }
@keyframes glint { 0%, 100% { opacity: .35; } 50% { opacity: 1; } }
.skirt { transform-box: fill-box; transform-origin: 50% 0; animation: skirt 1.3s ease-in-out infinite alternate; }
@keyframes skirt { from { transform: scaleX(.9); } to { transform: scaleX(1.08); } }
.dnx { transform-box: fill-box; transform-origin: 50% 100%; animation: step 1.6s ease-in-out infinite; }
@keyframes step { 0%, 100% { transform: translateY(0) rotate(-2deg); } 50% { transform: translateY(-6px) rotate(2deg); } }
.kid { animation: krun var(--kt, 3.4s) ease-in-out infinite alternate; animation-delay: var(--kd, 0s); }
@keyframes krun { from { translate: calc(var(--kx, 40px) * -1) 0; } to { translate: var(--kx, 40px) 0; } }
.dancer, .court { transform-box: fill-box; transform-origin: 50% 100%; animation: sway 1.7s ease-in-out infinite alternate; }
.dancer.k1, .court + .court { animation-delay: -.8s; }
@keyframes sway { from { rotate: -2deg; } to { rotate: 2deg; } }
body.hora .dancer, body.hora .kid { animation-duration: .5s; }
.qn.twirl, .dancer.twirl, .court.twirl { animation: spin .9s ease-in-out; }
@keyframes spin { 0% { scale: 1 1; } 50% { scale: -1 1; translate: 0 -12px; } 100% { scale: 1 1; } }
.candle .fl { transform-box: fill-box; transform-origin: 50% 100%; transition: opacity .4s ease, scale .4s ease; }
.candle:not(.lit) .fl { opacity: 0; scale: .2; }
.candle.lit .fl { opacity: 1; scale: 1; animation: flick .5s ease-in-out infinite alternate; }
.candle.lit.out .fl { opacity: 0; scale: .3; animation: none; }
@keyframes flick { from { scale: .96 .9; } to { scale: 1.08 1.12; } }
.ring { transform-box: fill-box; transform-origin: 50% 50%; animation: ping 1.8s ease-out infinite; }
.candle.lit .ring { display: none; }
@keyframes ping { 0% { scale: .7; opacity: .95; } 100% { scale: 2.1; opacity: 0; } }
.chx { transform-origin: 0px -460px; } .chand.sway .chx { animation: swing 2.6s ease-out; }
@keyframes swing { 0% { rotate: 0deg; } 15% { rotate: 7deg; } 35% { rotate: -5deg; } 55% { rotate: 3deg; } 75% { rotate: -1.5deg; } 100% { rotate: 0deg; } }
.bsc { animation: bscroll 3.2s linear infinite; } @keyframes bscroll { from { transform: translateX(0); } to { transform: translateX(9px); } }
.spots { transform-box: fill-box; transform-origin: 50% 50%; animation: turn 34s linear infinite; } @keyframes turn { to { rotate: 360deg; } }
.onlit { opacity: 0; transition: opacity .8s ease; } body.hora .onlit { opacity: 1; } body.hora .spots { animation-duration: 3s; }
/* the band shows one size at a time */
.bl { display: none; } .lv0 .bl0, .lv1 .bl1, .lv2 .bl2 { display: inline; }
/* Her Night: the marquee, the curtain, the spotlight, the last doll, the bow, the sparklers */
.cl, .cr { transform-box: fill-box; transition: scale 1.1s cubic-bezier(.6, 0, .2, 1); } .cl { transform-origin: 0 50%; } .cr { transform-origin: 100% 50%; }
.scene.open .cl, .scene.open .cr { scale: .12 1; }
.spot { opacity: 0; transition: opacity .9s ease .4s; } .scene.open .spot { opacity: 1; }
.scene.open .cur-hit { pointer-events: none; }
.doll { transition: translate 1.3s cubic-bezier(.4, 0, .2, 1); } .scene.gave .doll { translate: var(--dx) var(--dy); }
.bowers > g, .bowers > g > g { transform-box: fill-box; transform-origin: 50% 100%; }
.bowing .bowers > g { animation: bowk 1.1s ease-in-out; }
.bowing .bowers > g:nth-child(odd) { animation-delay: .12s; }
@keyframes bowk { 40%, 60% { scale: 1 .9; translate: 0 6px; } }
.cheering .bowers > g { animation: jump .4s ease-in-out 4 alternate; } @keyframes jump { to { translate: 0 -14px; } }
.spk { transform-box: fill-box; transform-origin: 50% 50%; animation: turn 1.4s linear infinite; }
.sparklers { opacity: 0; transition: opacity .8s ease; } .wished .sparklers { opacity: 1; }
/* Game Day: the jersey, the tunnel, the banners, the medals, the confetti */
.jsy { transform-box: fill-box; transform-origin: 50% 50%; } .jspin .jsy { animation: jsp .9s ease-in-out; } @keyframes jsp { 50% { scale: -1 1; } }
.arch { animation: lpulse 2s ease-in-out infinite; animation-delay: calc(var(--d) * -.3s); } .chasing .arch { animation-duration: .4s; }
.runner { transform-box: fill-box; transform-origin: 50% 100%; transition: translate 1s cubic-bezier(.3, 1.4, .5, 1), scale 1s cubic-bezier(.3, 1.4, .5, 1); } .scene.out .runner { translate: 0 34px; scale: 1.14; }
.banner .ico { transform-box: fill-box; transform-origin: 50% 50%; transition: scale .5s cubic-bezier(.3, 1.6, .5, 1); } .banner .glow { transition: opacity .4s ease; }
.banner.on .ico { scale: 1.45; } .banner.on .glow { opacity: .28; }
.banner { transform-box: fill-box; transform-origin: 50% 0; animation: flag 3s ease-in-out infinite alternate; } .banner.k1, .banner.k4 { animation-delay: -1s; } .banner.k2, .banner.k5 { animation-delay: -2s; }
@keyframes flag { from { rotate: -2deg; } to { rotate: 2deg; } }
.mdl { transform-box: fill-box; transform-origin: 50% 0; } .medal.tap .mdl, .medal.hop .mdl { animation: hop .7s ease; } @keyframes hop { 40% { translate: 0 -16px; rotate: 12deg; } }
.cf { animation: cf 4s linear infinite; animation-delay: var(--d); } @keyframes cf { from { translate: 0 -120px; opacity: 0; } 15% { opacity: 1; } to { translate: 0 260px; opacity: 0; } }
.hball { transition: translate .5s ease-in; } .hoops.tap .hball { animation: shoot .8s ease-in-out; } @keyframes shoot { 50% { translate: 0 -64px; } 100% { translate: 0 -48px; } }
.bag { transform-box: fill-box; } .cornhole.tap .bag { animation: toss .7s ease-out; } @keyframes toss { 0% { translate: 0 30px; opacity: 0; } 60% { translate: 0 -30px; opacity: 1; } 100% { translate: 0 -18px; } }

/* ---------- Game Day Live: the penalty kick laid over the first scene, and the section standings ---------- */
.pk { position: absolute; z-index: 6; left: 50%; top: 40svh; width: min(92vw, 520px); translate: -50% 0; display: grid; gap: 8px; }
.pkfield { position: relative; aspect-ratio: 16 / 10; border-radius: 10px; overflow: hidden; border: 2px solid rgba(255, 255, 255, .5); background: repeating-linear-gradient(90deg, rgba(255, 255, 255, .05) 0 10%, transparent 10% 20%), linear-gradient(#0e2416, #1b5230); box-shadow: 0 18px 40px -12px rgba(0, 0, 0, .7); }
.pkfield::after { content: ""; position: absolute; left: 6%; right: 6%; top: 70%; border-top: 2px solid rgba(255, 255, 255, .7); }
.goal { position: absolute; left: 18%; top: 12%; width: 64%; height: 58%; z-index: 1; display: grid; grid-template-columns: repeat(3, 1fr); grid-template-rows: repeat(2, 1fr); border: 3px solid #fff; border-bottom: 0; background-color: rgba(255, 255, 255, .04); background-image: linear-gradient(rgba(255, 255, 255, .12) 1px, transparent 1px), linear-gradient(90deg, rgba(255, 255, 255, .12) 1px, transparent 1px); background-size: 9px 9px; }
.goal button { border: 1px dashed rgba(255, 255, 255, .18); background: transparent; padding: 0; cursor: crosshair; }
.goal button:hover:not(:disabled), .goal button:focus-visible { background: rgba(255, 210, 63, .28); }
.keeper { position: absolute; z-index: 2; left: 50%; top: 52%; width: 12%; height: 34%; translate: -50% -50%; transition: left .4s ease-out, rotate .4s ease-out; pointer-events: none; }
.keeper svg { width: 100%; height: 100%; display: block; overflow: visible; }
.ball { position: absolute; z-index: 3; left: 50%; top: 86%; width: 5%; aspect-ratio: 1; border-radius: 50%; translate: -50% -50%; pointer-events: none; background: radial-gradient(circle at 35% 30%, #fff, #c9c6d2 70%); box-shadow: 0 3px 6px rgba(0, 0, 0, .6); transition: left .42s cubic-bezier(.2, .7, .3, 1), top .42s cubic-bezier(.2, .7, .3, 1), scale .42s; }
.pkrow { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 8px 12px; border-radius: 12px; background: rgba(5, 10, 24, .78); font-size: 14px; }
.pkdots { display: flex; gap: 5px; } .pkdots span { width: 22px; height: 22px; border-radius: 50%; border: 1px solid rgba(255, 255, 255, .4); display: grid; place-items: center; font-size: 11px; }
.pkdots .r-goal { background: var(--tb, #ffc23d); color: #0b1426; border-color: transparent; }
.pkbtn { min-height: 40px; padding: 0 14px; border-radius: 999px; border: 2px solid #fff; background: transparent; font-weight: 700; white-space: nowrap; }
.pkfield.flash { animation: fieldf 1s ease-out; } @keyframes fieldf { 0%, 40% { box-shadow: 0 0 0 4px var(--tb, #ffc23d), 0 0 50px var(--tb, #ffc23d); } }
.stand { position: absolute; z-index: 6; right: max(22px, 3vw); top: 22svh; width: 250px; padding: 12px 14px; border-radius: 14px; background: rgba(5, 10, 24, .82); border: 1px solid rgba(255, 255, 255, .25); display: none; }
.stand h3 { font-size: 12px; letter-spacing: .2em; text-transform: uppercase; color: var(--tb, #ffc23d); margin-bottom: 6px; }
.stand ol { list-style: none; margin: 0; padding: 0; display: grid; gap: 3px; }
.stand li { display: grid; grid-template-columns: 18px 1fr auto; gap: 8px; padding: 4px 6px; border-radius: 8px; font-size: 14px; } .stand li.you { background: rgba(255, 210, 63, .2); }
.stand small { display: block; margin-top: 6px; font-size: 12px; opacity: .75; line-height: 1.3; }
@media (min-width: 900px) and (min-aspect-ratio: 5/4) { .stand { display: block; } .pk { top: 36svh; } }

/* a phone turned on its side: no slogan, smaller buttons, the words higher */
@media (max-height: 520px) { .slogan { display: none; } .hintline { margin-bottom: 6px; min-height: 0; } .bar { padding-top: 12px; } :root { --bar: 96px; } .pill, .go { min-height: 42px; } .copy { top: 48px; } .copy .lead { display: none; } .pk { top: 30svh; width: min(60vw, 420px); } }
@media (max-width: 380px) { .pill { padding: 0 12px; } .go { padding: 0 14px; font-size: 16px; } }
html.nme-edit .bar { display: none; }
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition-duration: .01ms !important; transition-delay: 0s !important; }
  body.m-scroll .scene::before { display: none; }
}

/* soccer (Game Day Live, scene 1): a shot at the crossbar, and dominadas (keeping the ball up) */
.cball { transform-box: fill-box; transform-origin: 50% 50%; } .crossbar.tap .cball { animation: bar .8s ease-out; }
@keyframes bar { 45% { translate: 0 -82px; } 60% { translate: 0 -78px; } 100% { translate: 0 0; } }
.jball { animation: juggle .7s ease-in-out infinite alternate; } .juggle.tap .jball { animation-duration: .2s; }
@keyframes juggle { from { translate: 0 0; } to { translate: 0 -26px; } }
.crest-pick { display: flex; gap: 8px; flex-wrap: wrap; margin: 0 0 12px; }

/* People never bob, sway, rock, slide back and forth or run in a loop (the user, 2026-11-09). They stand still; legs that step and a wave are fine. */
.dnx, .kid, .dancer, .court, body.hora .dancer, body.hora .kid, .qn.twirl, .dancer.twirl, .court.twirl { animation: none !important; }
