/* TERCER TIEMPO — estilos. Todo se mide en em: la pantalla central escala con su contenedor. */
@font-face { font-family: 'Big Shoulders Display'; font-weight: 700; font-display: swap; src: url('../fonts/big-shoulders-display-latin-700-normal.woff2') format('woff2'); }
@font-face { font-family: 'Big Shoulders Display'; font-weight: 900; font-display: swap; src: url('../fonts/big-shoulders-display-latin-900-normal.woff2') format('woff2'); }
@font-face { font-family: 'Barlow'; font-weight: 500; font-display: swap; src: url('../fonts/barlow-latin-500-normal.woff2') format('woff2'); }
@font-face { font-family: 'Barlow'; font-weight: 700; font-display: swap; src: url('../fonts/barlow-latin-700-normal.woff2') format('woff2'); }

:root {
  --night: #050a17; --night-2: #0a1327; --panel: #101c38; --panel-2: #172648; --line: rgba(243, 246, 238, .14);
  --pitch: #0d6e3b; --pitch-2: #0a5730; --pitch-3: #084526;
  --lime: #c8f31d; --lime-ink: #1a2400; --chalk: #f3f6ee; --mute: #93a3c4;
  --red: #ff4d5e; --yellow: #ffd23f; --gold: #ffc83d; --silver: #cfd8e6; --bronze: #e08a4f;
  --display: 'Big Shoulders Display', 'Arial Narrow', Impact, sans-serif; --body: 'Barlow', system-ui, 'Segoe UI', sans-serif;
  --ease: cubic-bezier(.2, .9, .25, 1); --spring: cubic-bezier(.3, 1.6, .5, 1);
}
* { box-sizing: border-box; margin: 0; }
html, body { height: 100%; background: var(--night); color: var(--chalk); font-family: var(--body); font-weight: 500; -webkit-font-smoothing: antialiased; overscroll-behavior: none; }
button, input { font: inherit; color: inherit; }
button { cursor: pointer; border: 0; background: none; -webkit-tap-highlight-color: transparent; touch-action: manipulation; }
:focus-visible { outline: .18em solid var(--lime); outline-offset: .15em; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
.num { font-variant-numeric: tabular-nums; }

#app { position: fixed; inset: 0; }
.stage { position: absolute; inset: 0; container-type: size; overflow: hidden; }

/* fondo: noche de estadio con la cancha asomando desde abajo */
.night { position: absolute; inset: 0; background:
  radial-gradient(120% 70% at 50% 118%, rgba(13, 110, 59, .55), transparent 62%),
  radial-gradient(60% 45% at 12% -8%, rgba(200, 243, 29, .10), transparent 70%),
  radial-gradient(60% 45% at 88% -8%, rgba(120, 160, 255, .12), transparent 70%),
  linear-gradient(180deg, var(--night), var(--night-2)); }
.night::after { content: ''; position: absolute; inset: 0; opacity: .5; mix-blend-mode: overlay; pointer-events: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2'/%3E%3CfeColorMatrix values='0 0 0 0 1 0 0 0 0 1 0 0 0 0 1 0 0 0 .22 0'/%3E%3C/filter%3E%3Crect width='160' height='160' filter='url(%23n)'/%3E%3C/svg%3E"); }
.turf { background: repeating-linear-gradient(90deg, var(--pitch) 0 3.2em, var(--pitch-2) 3.2em 6.4em); position: relative; overflow: hidden; }
.turf::before { content: ''; position: absolute; inset: 0; pointer-events: none; opacity: .35; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='120' height='120'%3E%3Cfilter id='g'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='1.4' numOctaves='2'/%3E%3CfeColorMatrix values='0 0 0 0 0 0 0 0 0 .2 0 0 0 0 0 0 0 0 .5 0'/%3E%3C/filter%3E%3Crect width='120' height='120' filter='url(%23g)'/%3E%3C/svg%3E"); }
.chalk-lines { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; }
.chalk-lines * { fill: none; stroke: rgba(243, 246, 238, .32); stroke-width: 2; vector-effect: non-scaling-stroke; }

/* piezas comunes */
.wordmark { font-family: var(--display); font-weight: 900; letter-spacing: .01em; line-height: .82; text-transform: uppercase; }
.wordmark i { font-style: normal; color: var(--lime); }
.btn { display: inline-flex; align-items: center; justify-content: center; gap: .5em; min-height: 3.1em; padding: .6em 1.5em; border-radius: .9em; font-family: var(--display); font-weight: 900; font-size: 1.35em; letter-spacing: .02em; text-transform: uppercase; transition: transform .12s var(--ease), filter .12s, background .15s; }
.btn:active { transform: translateY(.1em) scale(.985); }
.btn-lime { background: var(--lime); color: var(--lime-ink); box-shadow: 0 .28em 0 #8fae0a, 0 .9em 1.8em rgba(200, 243, 29, .22); }
.btn-lime:active { box-shadow: 0 .12em 0 #8fae0a; }
.btn-ghost { background: rgba(243, 246, 238, .08); box-shadow: inset 0 0 0 .1em var(--line); }
.btn-ghost:hover { background: rgba(243, 246, 238, .14); }
.btn[disabled] { opacity: .4; cursor: not-allowed; filter: grayscale(.6); }
.btn-s { font-size: 1em; min-height: 2.5em; padding: .4em 1em; border-radius: .7em; }
.iconbtn { width: 2.6em; height: 2.6em; border-radius: 50%; display: inline-grid; place-items: center; background: rgba(243, 246, 238, .08); box-shadow: inset 0 0 0 .08em var(--line); }
.iconbtn svg { width: 1.3em; height: 1.3em; }
.tag { display: inline-flex; align-items: center; gap: .4em; padding: .28em .75em; border-radius: 99em; background: rgba(243, 246, 238, .1); font-weight: 700; font-size: .85em; white-space: nowrap; }
.tag-lime { background: var(--lime); color: var(--lime-ink); }
.tag-demo { background: var(--yellow); color: #2a1f00; }
.jersey { display: block; width: 100%; height: auto; filter: drop-shadow(0 .25em .3em rgba(0, 0, 0, .35)); }
.toast { position: absolute; left: 50%; bottom: 1.4em; transform: translateX(-50%); z-index: 60; background: var(--chalk); color: #111a2e; padding: .7em 1.2em; border-radius: .8em; font-weight: 700; box-shadow: 0 .6em 2em rgba(0, 0, 0, .5); animation: rise .3s var(--ease); max-width: 90%; text-align: center; }
.netbar { position: absolute; top: 0; left: 0; right: 0; z-index: 70; background: var(--red); color: #fff; text-align: center; font-weight: 700; padding: .35em; font-size: .9em; }

/* anillo del temporizador */
.ring { position: relative; width: 7em; height: 7em; flex: none; }
.ring svg { width: 100%; height: 100%; transform: rotate(-90deg); }
.ring circle { fill: none; stroke-width: 9; }
.ring .rb { stroke: rgba(243, 246, 238, .12); }
.ring .rf { stroke: var(--lime); stroke-linecap: round; transition: stroke .3s; }
.ring b { position: absolute; inset: 0; display: grid; place-items: center; font-family: var(--display); font-weight: 900; font-size: 3.1em; font-variant-numeric: tabular-nums; }
.ring.hurry .rf { stroke: var(--red); } .ring.hurry b { color: var(--red); animation: pulse .5s infinite alternate; }

/* ───────────────────────── INICIO ───────────────────────── */
.home { position: absolute; inset: 0; display: grid; grid-template-rows: 1fr auto; font-size: clamp(14px, min(1.25cqw, 2.1cqh), 30px); }
.home-hero { position: relative; display: grid; align-content: center; justify-items: start; padding: 3em 6em 0; gap: 1.2em; z-index: 2; }
.home-hero .wordmark { font-size: 11.5em; text-shadow: 0 .04em 0 rgba(0, 0, 0, .35); }
.home-hero .wordmark span { display: block; }
.home-hero p { font-size: 1.5em; max-width: 26em; color: #c9d3e8; line-height: 1.35; }
.home-cta { display: flex; flex-wrap: wrap; gap: 1em; align-items: stretch; margin-top: .6em; }
.home-cta .btn { font-size: 1.7em; }
.joinbox { display: flex; gap: .5em; padding: .4em; border-radius: 1.1em; background: rgba(243, 246, 238, .08); box-shadow: inset 0 0 0 .08em var(--line); }
.joinbox input { width: 5.2em; background: none; border: 0; text-align: center; font-family: var(--display); font-weight: 900; font-size: 2.3em; letter-spacing: .12em; text-transform: uppercase; }
.joinbox input::placeholder { color: rgba(243, 246, 238, .3); }
.home-sub { display: flex; flex-wrap: wrap; gap: 1.2em; align-items: center; color: var(--mute); }
.link { color: var(--chalk); text-decoration: underline; text-underline-offset: .2em; text-decoration-color: var(--lime); font-weight: 700; }
.home-pitch { height: 16em; position: relative; margin-top: 1em; border-top: .2em solid rgba(243, 246, 238, .5); transform: perspective(40em) rotateX(38deg); transform-origin: 50% 0; }
.home-ball { position: absolute; right: 9%; top: 16%; width: 30em; z-index: 1; opacity: .95; animation: floaty 7s ease-in-out infinite; }
.home-note { background: rgba(255, 210, 63, .12); box-shadow: inset 0 0 0 .08em rgba(255, 210, 63, .5); color: #ffe69a; padding: .7em 1em; border-radius: .8em; max-width: 34em; line-height: 1.35; }

/* ───────────────────────── PANTALLA CENTRAL ───────────────────────── */
.tv { position: absolute; inset: 0; font-size: min(1.22cqw, 2.17cqh); display: grid; grid-template-rows: auto 1fr; }
.tv-top { display: flex; align-items: center; gap: 1.2em; padding: 1em 2em .6em; position: relative; z-index: 5; }
.tv-top .wordmark { font-size: 2.1em; display: flex; gap: .25em; }
.tv-top .sp { flex: 1; }
.tv-code { font-family: var(--display); font-weight: 900; font-size: 1.5em; letter-spacing: .08em; padding: .1em .55em; border-radius: .4em; background: rgba(243, 246, 238, .1); }
.tv-main { position: relative; min-height: 0; }
.scr { position: absolute; inset: 0; padding: .4em 2em 1.6em; }

/* lobby */
.lobby { display: grid; grid-template-columns: 23em 1fr; grid-template-rows: 1fr auto; gap: 1.2em; }
.lobby-join { background: var(--chalk); color: #0a1327; border-radius: 1.6em; padding: 1.3em; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: .6em; text-align: center; box-shadow: 0 1.2em 3em rgba(0, 0, 0, .45); }
.lobby-join h2 { font-family: var(--display); font-weight: 900; font-size: 2.2em; line-height: .95; text-transform: uppercase; }
.lobby-join .qr { width: 15em; height: 15em; } .lobby-join .qr svg { width: 100%; height: 100%; display: block; }
.lobby-join .code { font-family: var(--display); font-weight: 900; font-size: 5.6em; letter-spacing: .1em; line-height: .9; margin-right: -.1em; }
.lobby-join .url { font-weight: 700; font-size: 1.05em; word-break: break-all; }
.lobby-join small { color: #4a5772; font-size: .9em; }
.lobby-pitch { border-radius: 1.6em; padding: 1.2em 1.6em; display: flex; flex-direction: column; box-shadow: inset 0 0 0 .14em rgba(243, 246, 238, .25), 0 1.2em 3em rgba(0, 0, 0, .45); }
.lobby-pitch header { display: flex; align-items: baseline; gap: 1em; position: relative; z-index: 2; }
.lobby-pitch h2 { font-family: var(--display); font-weight: 900; font-size: 3em; text-transform: uppercase; line-height: 1; }
.lobby-pitch .count { font-weight: 700; font-size: 1.2em; opacity: .85; }
.squad { position: relative; z-index: 2; flex: 1; display: grid; grid-template-columns: repeat(6, 1fr); grid-auto-rows: 1fr; gap: .5em 1em; align-content: center; padding: .6em 0; }
.squad-empty { grid-column: 1 / -1; text-align: center; font-size: 1.7em; opacity: .85; line-height: 1.4; }
.pl { position: relative; display: grid; justify-items: center; align-content: start; gap: .25em; }
.pl .jw { width: 6.4em; } .pl.off .jw { opacity: .4; filter: grayscale(1); }
.pl .nm { font-family: var(--display); font-weight: 900; font-size: 1.55em; line-height: 1; background: rgba(5, 10, 23, .72); padding: .15em .5em .2em; border-radius: .35em; max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pl .bot { font-size: .7em; background: var(--yellow); color: #2a1f00; padding: .05em .4em; border-radius: .3em; font-weight: 700; position: absolute; top: 0; right: .4em; }
.pl .kick { position: absolute; top: -.2em; left: .2em; width: 1.9em; height: 1.9em; border-radius: 50%; background: rgba(5, 10, 23, .8); display: grid; place-items: center; opacity: 0; transition: opacity .15s; font-weight: 700; }
.pl:hover .kick, .pl .kick:focus-visible, .pl .kick.sure { opacity: 1; } .pl .kick.sure { background: var(--red); width: auto; padding: 0 .6em; border-radius: 1em; }
.pl.enter .jw { animation: dropIn .9s var(--spring) both; }
.pl.enter .nm { animation: rise .4s .45s var(--ease) both; }
.pl.enter::after { content: ''; position: absolute; top: 5.2em; left: 50%; width: 7em; height: 2em; margin-left: -3.5em; border-radius: 50%; border: .18em solid var(--chalk); animation: chalkRing .9s .35s ease-out both; }
.ticker { position: relative; z-index: 2; height: 2.4em; display: flex; align-items: center; justify-content: center; }
.ticker span { font-family: var(--display); font-weight: 900; font-size: 1.8em; background: var(--lime); color: var(--lime-ink); padding: .08em .7em .14em; border-radius: .3em; transform: skewX(-8deg); animation: tickerIn 3.2s var(--ease) both; }
.lobby-config { grid-column: 1 / -1; display: flex; align-items: center; gap: 1.1em; background: rgba(16, 28, 56, .85); border-radius: 1.4em; padding: .9em 1.2em; box-shadow: inset 0 0 0 .08em var(--line); flex-wrap: wrap; }
.cfg { display: grid; gap: .3em; } .cfg > span { font-size: .82em; color: var(--mute); font-weight: 700; }
.seg { display: flex; gap: .25em; background: rgba(5, 10, 23, .6); padding: .22em; border-radius: .7em; }
.seg button { padding: .32em .7em; border-radius: .5em; font-weight: 700; font-size: .98em; white-space: nowrap; color: #c9d3e8; }
.seg button[aria-pressed="true"] { background: var(--chalk); color: #0a1327; }
.lobby-config .go { margin-left: auto; display: grid; justify-items: end; gap: .3em; }
.lobby-config .avail { font-size: .85em; color: var(--mute); } .lobby-config .avail.warn { color: var(--yellow); }

/* intro de pregunta */
.intro { display: grid; place-items: center; text-align: center; }
.intro .slate { display: grid; gap: .1em; justify-items: center; animation: slam .5s var(--spring) both; }
.intro .n { font-family: var(--display); font-weight: 700; font-size: 2.6em; color: var(--lime); }
.intro .m { font-family: var(--display); font-weight: 900; font-size: 9em; line-height: .9; text-transform: uppercase; }
.intro .d { font-size: 1.7em; color: #c9d3e8; margin-top: .5em; }

/* pregunta */
.q { display: grid; grid-template-rows: auto 1fr auto; gap: 1em; }
.q-head { display: flex; align-items: center; gap: .8em; }
.scorebug { display: flex; align-items: stretch; font-family: var(--display); font-weight: 900; font-size: 1.7em; border-radius: .35em; overflow: hidden; transform: skewX(-8deg); box-shadow: 0 .4em 1em rgba(0, 0, 0, .35); }
.scorebug > * { padding: .12em .7em .18em; display: block; } .scorebug > * > i { display: block; transform: skewX(8deg); font-style: normal; }
.scorebug .a { background: var(--lime); color: var(--lime-ink); } .scorebug .b { background: var(--chalk); color: #0a1327; } .scorebug .c { background: var(--panel-2); }
.q-head .sp { flex: 1; }
.q-body { display: grid; align-content: center; gap: 1em; min-height: 0; padding-right: 9em; position: relative; }
.q-body .ring { position: absolute; right: 0; top: 50%; margin-top: -3.5em; }
.q-text { font-family: var(--display); font-weight: 900; font-size: 5.4em; line-height: .98; max-width: 14em; text-wrap: balance; }
.q-scope { font-size: 1.45em; color: #c9d3e8; max-width: 38em; line-height: 1.35; }
.q-scope b { color: var(--yellow); font-weight: 700; }
.bench { display: flex; gap: .6em; flex-wrap: wrap; align-items: center; min-height: 4.2em; }
.bp { display: flex; align-items: center; gap: .45em; padding: .3em .8em .3em .35em; border-radius: 99em; background: rgba(16, 28, 56, .9); box-shadow: inset 0 0 0 .08em var(--line); transition: background .25s, transform .25s var(--spring); }
.bp .jw { width: 2.3em; } .bp b { font-weight: 700; font-size: 1.1em; } .bp.off { opacity: .45; }
.bp .st { width: 1.25em; height: 1.25em; border-radius: 50%; border: .14em dashed var(--mute); display: grid; place-items: center; font-size: .9em; }
.bp.done { background: var(--lime); color: var(--lime-ink); transform: translateY(-.25em); box-shadow: 0 .3em .9em rgba(200, 243, 29, .3); }
.bp.done .st { border: 0; background: var(--lime-ink); color: var(--lime); }
.bench-note { color: var(--mute); margin-left: auto; font-size: 1.05em; }
/* ¿quién soy? */
.clues { display: grid; grid-template-columns: 1fr 1fr; gap: .8em; list-style: none; padding: 0; }
.clue { border-radius: 1em; padding: .9em 1.2em; background: rgba(16, 28, 56, .9); box-shadow: inset 0 0 0 .08em var(--line); display: grid; gap: .25em; min-height: 6.6em; align-content: center; }
.clue small { font-weight: 700; color: var(--mute); font-size: 1em; } .clue p { font-size: 1.7em; line-height: 1.2; font-weight: 700; }
.clue.locked p { opacity: .28; font-family: var(--display); font-size: 2.2em; }
.clue.now { background: var(--chalk); color: #0a1327; animation: slam .45s var(--spring) both; } .clue.now small { color: #0d6e3b; }
/* ¿jugó aquí? */
.vs { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 1.2em; }
.vs > div { border-radius: 1.2em; padding: 1.2em 1.4em; min-height: 11em; display: grid; align-content: center; gap: .3em; }
.vs .who { background: var(--chalk); color: #0a1327; } .vs .club { box-shadow: inset 0 0 0 .14em rgba(243, 246, 238, .3); }
.vs small { font-weight: 700; font-size: 1.1em; opacity: .7; } .vs strong { font-family: var(--display); font-weight: 900; font-size: 4.2em; line-height: .95; text-wrap: balance; }
.vs .mid { font-family: var(--display); font-weight: 900; font-size: 2.6em; color: var(--lime); min-height: 0; padding: 0; text-align: center; line-height: .95; }
/* ordena el podio */
.poditems { display: grid; grid-template-columns: repeat(4, 1fr); gap: .8em; }
.poditem { background: rgba(16, 28, 56, .9); box-shadow: inset 0 0 0 .08em var(--line); border-radius: 1em; padding: 1em; font-family: var(--display); font-weight: 900; font-size: 2.3em; line-height: 1; min-height: 3.6em; display: grid; align-content: center; text-wrap: balance; }

/* revelación */
.rv { display: grid; grid-template-rows: auto 1fr auto; gap: .8em; }
.rv-main { display: grid; grid-template-columns: 1.25fr 1fr; gap: 1.4em; min-height: 0; }
.rv-left { display: grid; align-content: center; gap: .8em; min-width: 0; }
.rv-q { font-size: 1.5em; color: #c9d3e8; font-weight: 700; line-height: 1.25; }
.rv-ans { font-family: var(--display); font-weight: 900; font-size: 11em; line-height: .85; color: var(--lime); font-variant-numeric: tabular-nums; }
.rv-ans.text { font-size: 6.4em; line-height: .92; text-wrap: balance; } .rv-ans small { font-size: .22em; color: var(--chalk); margin-left: .5em; }
.rv-ans.land { animation: slam .5s var(--spring); }
.rv-exp { background: rgba(16, 28, 56, .9); border-radius: 1em; padding: .8em 1.1em; box-shadow: inset 0 0 0 .08em var(--line); display: grid; gap: .3em; opacity: 0; transform: translateY(.6em); transition: .5s var(--ease); }
.rv-exp.show { opacity: 1; transform: none; }
.rv-exp p { font-size: 1.35em; line-height: 1.3; } .rv-exp small { color: var(--mute); font-size: .9em; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.rv-list { display: grid; gap: .4em; align-content: center; }
.rr { display: grid; grid-template-columns: 2.6em 1fr auto auto; align-items: center; gap: .7em; padding: .35em .9em .35em .5em; border-radius: .8em; background: rgba(16, 28, 56, .9); box-shadow: inset 0 0 0 .08em var(--line); opacity: 0; transform: translateX(2em); transition: opacity .4s, transform .5s var(--spring); }
.rr.show { opacity: 1; transform: none; }
.rr .jw { width: 2.6em; } .rr .nm { font-weight: 700; font-size: 1.3em; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.rr .det { font-size: 1.1em; color: #c9d3e8; text-align: right; } .rr .det em { font-style: normal; opacity: .75; }
.rr .pts { font-family: var(--display); font-weight: 900; font-size: 1.9em; min-width: 3.2em; text-align: right; font-variant-numeric: tabular-nums; }
.rr.best { background: var(--lime); color: var(--lime-ink); } .rr.best .det { color: inherit; }
.rr.zero .pts { opacity: .4; }
.dots { display: inline-flex; gap: .2em; } .dots i { width: .7em; height: .7em; border-radius: 50%; background: rgba(243, 246, 238, .25); } .dots i.on { background: currentColor; }
/* recta numérica */
.nline { position: relative; height: 15em; margin: 0 2em; }
.nline .axis { position: absolute; left: -2em; right: -2em; bottom: 2.6em; height: .22em; background: rgba(243, 246, 238, .5); border-radius: 1em; }
.nline .mark { position: absolute; bottom: 0; width: 5em; margin-left: -2.5em; display: grid; justify-items: center; gap: .1em; transition: transform .5s var(--spring), opacity .4s; }
.nline .mark .jw { width: 3em; } .nline .mark b { font-family: var(--display); font-weight: 900; font-size: 1.5em; line-height: 1; background: rgba(5, 10, 23, .8); padding: .05em .35em .1em; border-radius: .3em; font-variant-numeric: tabular-nums; }
.nline .mark i { display: block; width: .14em; background: rgba(243, 246, 238, .5); }
.nline .mark { opacity: 0; transform: translateY(-6em); } .nline .mark.show { opacity: 1; transform: none; }
.nline .mark.best b { background: var(--lime); color: var(--lime-ink); } .nline .mark.best { z-index: 3; } .nline .mark.best .jw { animation: hop .6s var(--spring) 2; }
.nline .mark.out b::after { content: ' ↗'; }
.nline .truth { position: absolute; left: 50%; bottom: 0; width: 0; top: 0; opacity: 0; transition: opacity .3s; }
.nline .truth.show { opacity: 1; }
.nline .truth::before { content: ''; position: absolute; left: -.12em; top: 0; bottom: 1.6em; width: .24em; background: var(--lime); border-radius: 1em; box-shadow: 0 0 1.2em var(--lime); }
.nline .truth::after { content: ''; position: absolute; left: -.9em; bottom: 1.7em; width: 1.8em; height: 1.8em; border-radius: 50%; background: var(--lime); box-shadow: 0 0 0 .4em rgba(200, 243, 29, .25); }
/* sello sí / no */
.stamp { justify-self: start; font-family: var(--display); font-weight: 900; font-size: 8em; line-height: .9; padding: .08em .3em .14em; border: .08em solid currentColor; border-radius: .14em; transform: rotate(-6deg) scale(3); opacity: 0; text-transform: uppercase; }
.stamp.show { transform: rotate(-6deg) scale(1); opacity: 1; transition: transform .35s cubic-bezier(.3, 1.4, .5, 1), opacity .12s; }
.stamp.si { color: var(--lime); } .stamp.no { color: var(--red); }
.var { font-family: var(--display); font-weight: 900; font-size: 3em; color: var(--yellow); animation: pulse .5s infinite alternate; }
.podfinal { display: grid; gap: .45em; list-style: none; padding: 0; }
.podfinal li { display: grid; grid-template-columns: 2em 1fr auto; gap: .6em; align-items: center; background: var(--chalk); color: #0a1327; border-radius: .7em; padding: .3em .9em; font-family: var(--display); font-weight: 900; font-size: 2.3em; opacity: 0; transform: translateY(.6em); transition: .45s var(--spring); }
.podfinal li.show { opacity: 1; transform: none; } .podfinal li span:first-child { color: #0d6e3b; } .podfinal li .v { font-variant-numeric: tabular-nums; }

/* ranking */
.rk { display: grid; grid-template-rows: auto 1fr; gap: .6em; }
.rk h2, .fin h2 { font-family: var(--display); font-weight: 900; font-size: 3.4em; text-transform: uppercase; line-height: 1; }
.rk-rows { position: relative; }
.rkrow { position: absolute; left: 0; right: 0; height: var(--rh); display: grid; grid-template-columns: 3em 3em 1fr auto 6.5em; align-items: center; gap: .8em; padding: 0 1.2em 0 .8em; border-radius: .8em; background: rgba(16, 28, 56, .92); box-shadow: inset 0 0 0 .08em var(--line); transition: transform 1.1s cubic-bezier(.5, 0, .2, 1), background .4s, box-shadow .4s; will-change: transform; }
.rkrow .pos { font-family: var(--display); font-weight: 900; font-size: 2.2em; text-align: center; }
.rkrow .jw { width: calc(var(--rh) * .78); max-width: 3em; } .rkrow .nm { font-weight: 700; font-size: 1.55em; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.rkrow .mv { font-weight: 700; font-size: 1.15em; display: flex; gap: .5em; align-items: center; }
.rkrow .mv .up { color: var(--lime); } .rkrow .mv .dn { color: var(--red); } .rkrow .mv .gain { color: #c9d3e8; }
.rkrow .sc { font-family: var(--display); font-weight: 900; font-size: 2.4em; text-align: right; font-variant-numeric: tabular-nums; }
.rkrow.lead { background: var(--chalk); color: #0a1327; } .rkrow.lead .mv .gain { color: #4a5772; } .rkrow.lead .mv .up { color: #0d6e3b; }
.rkrow.climb { z-index: 3; box-shadow: inset 0 0 0 .14em var(--lime), 0 0 2.4em rgba(200, 243, 29, .45); }
.rkrow .flame { background: var(--lime); color: var(--lime-ink); font-family: var(--display); font-weight: 900; padding: .05em .5em .1em; border-radius: .3em; transform: skewX(-8deg); animation: slam .5s var(--spring) both; }

/* final */
.fin { display: grid; grid-template-columns: 1.2fr 1fr; grid-template-rows: auto 1fr auto; gap: .8em 1.6em; }
.fin h2 { grid-column: 1 / -1; }
.podium { display: grid; grid-template-columns: 1fr 1.15fr 1fr; align-items: end; gap: .7em; min-height: 0; }
.pstep { display: grid; justify-items: center; gap: .3em; }
.pstep .jw { width: 7em; opacity: 0; transform: translateY(-3em); transition: .6s var(--spring); } .pstep.p1 .jw { width: 9em; }
.pstep .nm { font-family: var(--display); font-weight: 900; font-size: 2.2em; line-height: 1; opacity: 0; transition: opacity .4s .2s; text-align: center; }
.pstep .blk { width: 100%; border-radius: .8em .8em 0 0; display: grid; justify-items: center; align-content: start; padding-top: .4em; height: 0; transition: height .9s var(--ease); overflow: hidden; }
.pstep .blk b { font-family: var(--display); font-weight: 900; font-size: 4.6em; line-height: 1; } .pstep .blk span { font-weight: 700; font-size: 1.3em; font-variant-numeric: tabular-nums; }
.pstep.p1 .blk { background: var(--gold); color: #2a1f00; } .pstep.p2 .blk { background: var(--silver); color: #1b2436; } .pstep.p3 .blk { background: var(--bronze); color: #2b1505; }
.pstep.show .jw { opacity: 1; transform: none; } .pstep.show .nm { opacity: 1; } .pstep.p1.show .blk { height: 13em; } .pstep.p2.show .blk { height: 9.5em; } .pstep.p3.show .blk { height: 7em; }
.fin-side { display: grid; gap: .7em; align-content: start; min-height: 0; overflow: hidden; }
.award { display: grid; grid-template-columns: 3.2em 1fr; gap: .8em; align-items: center; background: rgba(16, 28, 56, .92); border-radius: 1em; padding: .7em 1em; box-shadow: inset 0 0 0 .08em var(--line); }
.award svg { width: 3.2em; height: 3.2em; color: var(--lime); } .award b { font-family: var(--display); font-weight: 900; font-size: 1.8em; line-height: 1; display: block; } .award span { color: #c9d3e8; font-size: 1.1em; }
.fin-table { display: grid; gap: .3em; font-size: 1.1em; } .fin-table div { display: grid; grid-template-columns: 2em 1fr 5em 4em; gap: .6em; padding: .25em .7em; border-radius: .5em; background: rgba(16, 28, 56, .7); } .fin-table div > :nth-child(n+3) { text-align: right; font-variant-numeric: tabular-nums; }
.fin-table .hd { background: none; color: var(--mute); font-size: .85em; font-weight: 700; }
.fin-actions { grid-column: 1 / -1; display: flex; gap: 1em; align-items: center; }
.hostbar { display: flex; gap: .6em; align-items: center; }
.confetti { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; z-index: 40; }

/* ───────────────────────── CELULAR ───────────────────────── */
.phone { position: absolute; inset: 0; font-size: clamp(15px, 4.3cqw, 19px); display: grid; grid-template-rows: auto 1fr; }
.ph-top { display: flex; align-items: center; gap: .6em; padding: .7em 1em; padding-top: max(.7em, env(safe-area-inset-top)); position: relative; z-index: 3; }
.ph-top .jw { width: 2.3em; } .ph-top b { font-weight: 700; flex: 1; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ph-top .sc { font-family: var(--display); font-weight: 900; font-size: 1.5em; font-variant-numeric: tabular-nums; }
.ph-main { position: relative; overflow-y: auto; -webkit-overflow-scrolling: touch; }
.ph { min-height: 100%; padding: .4em 1.1em calc(1.2em + env(safe-area-inset-bottom)); display: flex; flex-direction: column; gap: .9em; max-width: 30em; margin: 0 auto; }
.ph h1 { font-family: var(--display); font-weight: 900; font-size: 2.5em; line-height: .98; text-wrap: balance; }
.ph h1.big { font-size: 3.4em; text-transform: uppercase; }
.ph p { line-height: 1.4; color: #c9d3e8; } .ph .grow { flex: 1; } .ph .center { text-align: center; align-items: center; justify-content: center; }
.ph .btn { width: 100%; font-size: 1.5em; min-height: 3.2em; }
.ph-state { display: inline-flex; align-self: flex-start; }
.field { display: grid; gap: .35em; } .field > span { font-weight: 700; font-size: .9em; color: var(--mute); }
.input { width: 100%; padding: .7em .9em; border-radius: .8em; background: rgba(243, 246, 238, .08); border: .12em solid var(--line); font-size: 1.25em; font-weight: 700; }
.input:focus { border-color: var(--lime); outline: none; }
.jpreview { width: 9.5em; align-self: center; }
.swatches { display: grid; grid-template-columns: repeat(6, 1fr); gap: .5em; } .swatches button { aspect-ratio: 1; border-radius: 50%; box-shadow: inset 0 0 0 .12em rgba(255, 255, 255, .35); }
.swatches button[aria-pressed="true"] { box-shadow: 0 0 0 .18em var(--night), 0 0 0 .34em var(--lime); }
.patterns { display: grid; grid-template-columns: repeat(5, 1fr); gap: .4em; } .patterns button { border-radius: .7em; padding: .3em; background: rgba(243, 246, 238, .06); } .patterns button[aria-pressed="true"] { box-shadow: inset 0 0 0 .14em var(--lime); background: rgba(200, 243, 29, .12); }
.stepper { display: grid; grid-template-columns: 3em 1fr 3em; gap: .4em; align-items: center; } .stepper button { height: 3em; border-radius: .8em; background: rgba(243, 246, 238, .1); font-size: 1.3em; font-weight: 700; } .stepper output { text-align: center; font-family: var(--display); font-weight: 900; font-size: 2.4em; }
.ph-timer { display: flex; align-items: center; gap: .7em; } .ph-timer .bar { flex: 1; height: .55em; border-radius: 1em; background: rgba(243, 246, 238, .12); overflow: hidden; } .ph-timer .bar i { display: block; height: 100%; background: var(--lime); border-radius: 1em; transform-origin: 0 50%; }
.ph-timer b { font-family: var(--display); font-weight: 900; font-size: 1.6em; min-width: 1.6em; text-align: right; font-variant-numeric: tabular-nums; } .ph-timer.hurry .bar i { background: var(--red); } .ph-timer.hurry b { color: var(--red); }
.numdisp { font-family: var(--display); font-weight: 900; font-size: 4.4em; line-height: 1; text-align: center; padding: .15em; border-radius: .25em; background: rgba(243, 246, 238, .07); min-height: 1.3em; font-variant-numeric: tabular-nums; } .numdisp.empty { color: rgba(243, 246, 238, .3); }
.keypad { display: grid; grid-template-columns: repeat(3, 1fr); gap: .5em; } .keypad button { height: 3.3em; border-radius: .9em; background: rgba(243, 246, 238, .1); font-family: var(--display); font-weight: 900; font-size: 1.8em; } .keypad button:active { background: var(--chalk); color: #0a1327; }
.yn { display: grid; gap: .7em; flex: 1; } .yn button { border-radius: 1.2em; font-family: var(--display); font-weight: 900; font-size: 3em; text-transform: uppercase; min-height: 2.4em; background: rgba(243, 246, 238, .08); box-shadow: inset 0 0 0 .05em var(--line); transition: .15s; }
.yn .y[aria-pressed="true"] { background: var(--lime); color: var(--lime-ink); } .yn .n[aria-pressed="true"] { background: var(--red); color: #fff; }
.sort { display: grid; gap: .5em; position: relative; touch-action: none; }
.sitem { display: grid; grid-template-columns: 1.6em 1fr auto; align-items: center; gap: .6em; padding: .5em .5em .5em .8em; border-radius: .9em; background: var(--panel-2); box-shadow: inset 0 0 0 .08em var(--line); min-height: 3.9em; user-select: none; -webkit-user-select: none; transition: transform .18s var(--ease); cursor: grab; }
.sitem.drag { transition: none; z-index: 5; box-shadow: 0 .8em 2em rgba(0, 0, 0, .6), inset 0 0 0 .14em var(--lime); cursor: grabbing; }
.sitem .ix { font-family: var(--display); font-weight: 900; font-size: 1.7em; color: var(--lime); } .sitem .tx { font-weight: 700; font-size: 1.15em; line-height: 1.15; }
.sitem .ud { display: flex; gap: .3em; } .sitem .ud button { width: 2.7em; height: 2.7em; border-radius: .7em; background: rgba(243, 246, 238, .1); font-size: 1em; } .sitem .ud button:disabled { opacity: .25; }
.cluecard { background: var(--chalk); color: #0a1327; border-radius: 1em; padding: .9em 1em; display: grid; gap: .2em; } .cluecard small { color: #0d6e3b; font-weight: 700; } .cluecard p { color: inherit; font-size: 1.25em; font-weight: 700; line-height: 1.25; }
.prev-clues { display: grid; gap: .3em; font-size: .92em; color: var(--mute); }
.sent { display: grid; gap: .5em; justify-items: center; text-align: center; padding: 1.4em 1em; border-radius: 1.2em; background: rgba(200, 243, 29, .1); box-shadow: inset 0 0 0 .1em rgba(200, 243, 29, .5); }
.sent svg { width: 3em; height: 3em; color: var(--lime); } .sent strong { font-family: var(--display); font-weight: 900; font-size: 2.6em; line-height: 1; } .sent.bad { background: rgba(255, 77, 94, .1); box-shadow: inset 0 0 0 .1em rgba(255, 77, 94, .5); } .sent.bad svg { color: var(--red); }
.bigpts { font-family: var(--display); font-weight: 900; font-size: 6.5em; line-height: .9; color: var(--lime); font-variant-numeric: tabular-nums; animation: slam .5s var(--spring) both; } .bigpts.zero { color: var(--mute); }
.card { background: rgba(16, 28, 56, .92); border-radius: 1em; padding: .9em 1em; box-shadow: inset 0 0 0 .08em var(--line); display: grid; gap: .3em; text-align: left; align-self: stretch; } .card small { color: var(--mute); font-weight: 700; } .card b { font-size: 1.25em; }
.place { font-family: var(--display); font-weight: 900; font-size: 8em; line-height: .85; } .place sup { font-size: .4em; }

/* ───────────────────────── DEMO ───────────────────────── */
.demo { position: absolute; inset: 0; display: grid; grid-template-rows: auto 1fr; background: #02050d; }
.demo-bar { display: flex; align-items: center; gap: .8em; padding: .45em .9em; background: var(--yellow); color: #2a1f00; font-weight: 700; font-size: 14px; flex-wrap: wrap; }
.demo-bar .sp { flex: 1; } .demo-bar button { font-weight: 700; text-decoration: underline; } .demo-tabs { display: none; gap: .3em; } .demo-tabs button { text-decoration: none; padding: .2em .7em; border-radius: 1em; } .demo-tabs button[aria-pressed="true"] { background: #2a1f00; color: var(--yellow); }
.demo-split { position: relative; display: grid; grid-template-columns: 1fr auto; gap: 14px; padding: 14px; min-height: 0; }
.demo-tv { position: relative; border-radius: 14px; overflow: hidden; box-shadow: 0 0 0 2px #1a2748, 0 20px 60px rgba(0, 0, 0, .6); min-width: 0; }
.demo-phone { position: relative; width: min(340px, 30vw); border-radius: 30px; overflow: hidden; box-shadow: 0 0 0 3px #26355e, 0 0 0 9px #0c1326, 0 20px 60px rgba(0, 0, 0, .6); margin: 9px; }
@media (max-width: 860px) { .demo-tabs { display: flex; } .demo-split { grid-template-columns: 1fr; padding: 0; } .demo-tv, .demo-phone { border-radius: 0; box-shadow: none; margin: 0; width: auto; grid-area: 1 / 1; } .demo-split[data-tab="tv"] .demo-phone, .demo-split[data-tab="ph"] .demo-tv { visibility: hidden; } }

/* teléfonos y pantallas angostas en el inicio */
@container (max-width: 760px) {
  .home { font-size: 15px; } .home-hero { padding: 2em 1.3em 0; } .home-hero .wordmark { font-size: 5.6em; } .home-hero p { font-size: 1.15em; }
  .home-ball { width: 15em; right: -3em; top: 4%; opacity: .5; } .home-cta { flex-direction: column; align-self: stretch; width: 100%; } .home-cta .btn { font-size: 1.4em; } .joinbox input { flex: 1; width: auto; min-width: 0; } .home-pitch { height: 8em; }
}

@keyframes rise { from { opacity: 0; transform: translateY(.8em); } }
@keyframes pulse { to { opacity: .55; } }
@keyframes slam { from { opacity: 0; transform: scale(1.5); } }
@keyframes dropIn { 0% { opacity: 0; transform: translateY(-16em) rotate(-14deg); } 60% { opacity: 1; } 100% { transform: none; } }
@keyframes chalkRing { from { opacity: .9; transform: scale(.2); } to { opacity: 0; transform: scale(1.6); } }
@keyframes tickerIn { 0% { opacity: 0; transform: skewX(-8deg) translateX(-3em); } 10%, 85% { opacity: 1; transform: skewX(-8deg); } 100% { opacity: 0; transform: skewX(-8deg) translateX(3em); } }
@keyframes hop { 50% { transform: translateY(-1em); } }
@keyframes floaty { 50% { transform: translateY(-1.2em) rotate(8deg); } }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
  .ticker span { animation: none; } .home-ball { animation: none; }
}

/* ajustes tras revisar en pantalla */
.lobby { grid-template-rows: minmax(0, 1fr) auto; }
.lobby-join { padding: 1em; gap: .35em; min-height: 0; }
.lobby-join .qr { width: min(13em, 100%); height: auto; aspect-ratio: 1; flex: 0 1 auto; min-height: 0; }
.lobby-join .code { font-size: 4.8em; }
.lobby-config { gap: .7em 1em; padding: .7em 1em; }
.pl .jw { width: min(100%, 7.6em); }
.squad { align-content: center; }
.nline .mark { bottom: 2.72em; }
.nline .truth::before { bottom: 2.6em; } .nline .truth::after { bottom: 1.8em; }
.ph .jpreview { width: 7.2em; }
.ph form.ph, form.ph { gap: .7em; }
form.ph > .btn[type="submit"] { position: sticky; bottom: calc(.8em + env(safe-area-inset-bottom)); z-index: 4; }
.numdisp { font-size: 3.4em; }
.keypad { gap: .4em; } .keypad button { height: 2.75em; }
@container (max-height: 640px) { .keypad button { height: 2.3em; } .numdisp { font-size: 2.8em; } }

/* ═════════ TODO EN EL CELULAR: las escenas compartidas, en vertical ═════════ */
.wide-only { display: none; }
@container (min-width: 900px) { .wide-only { display: inline; } }
.ph-top b .tag { font-size: .7em; vertical-align: middle; margin-left: .3em; }
.phone .scr { position: relative; inset: auto; min-height: 100%; padding: .2em 1.1em calc(1.2em + env(safe-area-inset-bottom)); display: flex; flex-direction: column; gap: .7em; max-width: 30em; margin: 0 auto; }
.phone .scr > div:empty { display: none; }
.phone .scorebug { font-size: .95em; } .phone .q-head { flex-wrap: wrap; }
.myres { display: flex; align-items: center; gap: .7em; background: var(--lime); color: var(--lime-ink); border-radius: 1em; padding: .5em .9em; animation: slam .45s var(--spring) both; }
.myres b { font-family: var(--display); font-weight: 900; font-size: 2.7em; line-height: 1; } .myres span { font-weight: 700; line-height: 1.2; }
.myres.zero { background: var(--panel-2); color: var(--chalk); box-shadow: inset 0 0 0 .08em var(--line); }
.phone .rv-main { display: flex; flex-direction: column; gap: .8em; }
.phone .rv-left { gap: .55em; align-content: start; }
.phone .rv-q { font-size: 1.02em; }
.phone .rv-ans { font-size: 5.4em; } .phone .rv-ans.text { font-size: 3.1em; } .phone .rv-ans small { font-size: .2em; }
.phone .nline { font-size: .58em; margin: 0 2.6em; }
.phone .rv-exp { padding: .7em .9em; } .phone .rv-exp p { font-size: 1em; } .phone .rv-exp small { font-size: .78em; }
.phone .rv-list { gap: .35em; }
.phone .rr { grid-template-columns: 2.1em minmax(0, 1fr) auto auto; gap: .5em; padding: .3em .7em .3em .4em; }
.phone .rr .jw { width: 2.1em; } .phone .rr .nm { font-size: 1em; } .phone .rr .det { font-size: .82em; max-width: 9.5em; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; } .phone .rr .pts { font-size: 1.35em; min-width: 2.9em; }
.rr.me, .rkrow.me { box-shadow: inset 0 0 0 .14em var(--lime); }
.phone .stamp { font-size: 3.9em; } .phone .var { font-size: 1.7em; }
.phone .podfinal li { font-size: 1.25em; padding: .35em .8em; }
.phone .rk h2, .phone .fin h2 { font-size: 2.3em; }
.phone .rkrow { grid-template-columns: 1.5em 2em minmax(0, 1fr) auto auto; gap: .45em; padding: 0 .7em 0 .5em; }
.phone .rkrow .pos { font-size: 1.5em; } .phone .rkrow .jw { width: 2em; } .phone .rkrow .nm { font-size: 1em; } .phone .rkrow .mv { font-size: .78em; gap: .35em; } .phone .rkrow .sc { font-size: 1.5em; min-width: 2.6em; }
.phone .rkrow .flame { font-size: .95em; }
.phone .fin { display: flex; } .phone .fin-me { font-weight: 700; color: var(--chalk); }
.phone .podium { font-size: .5em; margin-top: .6em; } .phone .fin-side { gap: .5em; overflow: visible; }
.phone .award { grid-template-columns: 2.4em 1fr; padding: .6em .8em; } .phone .award svg { width: 2.4em; height: 2.4em; } .phone .award b { font-size: 1.4em; } .phone .award span { font-size: .92em; }
.phone .fin-table { font-size: .88em; } .phone .fin-table div { grid-template-columns: 1.4em minmax(0, 1fr) 4.6em 3.4em; }
.phone .fin-actions { flex-direction: column; align-items: stretch; position: sticky; bottom: calc(.6em + env(safe-area-inset-bottom)); z-index: 5; } .phone .fin-actions .btn { width: 100%; }
.ph-hostbar { position: sticky; bottom: calc(.6em + env(safe-area-inset-bottom)); z-index: 6; display: grid; grid-template-columns: 1fr 1.5fr; gap: .5em; margin-top: auto; padding-top: .6em; }
.ph-hostbar .btn { font-size: 1.15em; min-height: 2.9em; padding: .4em .6em; } .ph-hostbar .btn-ghost { background: var(--panel-2); }
.paused-note { text-align: center; font-weight: 700; color: var(--yellow); }
.phone .bench { gap: .3em; min-height: 0; flex-wrap: wrap; }
.phone .bp { padding: .16em; background: none; box-shadow: none; border-radius: 50%; opacity: .45; transform: none; } .phone .bp b, .phone .bp .st { display: none; } .phone .bp .jw { width: 1.75em; }
.phone .bp.done { opacity: 1; background: var(--lime); box-shadow: none; } .phone .bp.off { opacity: .2; }
.phone .bench-note { font-size: .8em; }
/* camarín en el celular */
.plobby { gap: .75em; }
.roomcard { background: var(--chalk); color: #0a1327; border-radius: 1.2em; padding: .7em .9em; display: grid; grid-template-columns: 1fr auto; align-items: center; gap: .5em; }
.roomcard small { font-weight: 700; color: #4a5772; font-size: .82em; } .roomcard .code { font-family: var(--display); font-weight: 900; font-size: 3.6em; letter-spacing: .1em; line-height: .9; }
.rc-btns { display: grid; gap: .35em; } .ph .rc-btns .btn { width: auto; font-size: .92em; min-height: 2.5em; background: #0a1327; color: var(--chalk); padding: .3em .9em; }
.roomcard .qr { grid-column: 1 / -1; display: grid; justify-items: center; gap: .4em; padding: .4em 0 .2em; } .roomcard .qr[hidden] { display: none; } .roomcard .qr svg { width: min(100%, 15em); height: auto; } .roomcard .qr small { text-align: center; }
.phone .lobby-pitch { padding: .7em .8em .4em; border-radius: 1.2em; min-height: 13.5em; box-shadow: inset 0 0 0 .12em rgba(243, 246, 238, .25); }
.phone .lobby-pitch h2 { font-size: 1.9em; } .phone .lobby-pitch .count { font-size: .9em; }
.phone .squad { grid-template-columns: repeat(4, 1fr); gap: .7em .2em; padding: .6em 0 .2em; align-content: start; }
.phone .squad-empty { font-size: 1.05em; }
.phone .pl .jw { width: min(100%, 4.1em); } .phone .pl .nm { font-size: .98em; padding: .12em .4em .16em; }
.phone .pl.enter::after { top: 3.1em; width: 4.4em; height: 1.3em; margin-left: -2.2em; }
.phone .pl .bot { font-size: .6em; right: 0; }
.phone .pl .kick { display: none; } .phone.is-host .pl:not(.self) .kick { display: grid; opacity: 1; top: -.5em; left: -.1em; width: 1.8em; height: 1.8em; } .phone.is-host .pl .kick.sure { font-size: .8em; }
.phone .ticker { height: 2em; } .phone .ticker span { font-size: 1.1em; }
.phone .lobby-config { flex-direction: column; align-items: stretch; gap: .65em; padding: .8em; border-radius: 1.1em; }
.phone .seg { flex-wrap: wrap; } .phone .seg button { flex: 1 1 auto; min-height: 2.75em; padding: .4em .6em; font-size: .95em; }
.ph-sticky { position: sticky; bottom: calc(.6em + env(safe-area-inset-bottom)); z-index: 5; display: grid; gap: .3em; }
.ph-sticky .avail { text-align: center; font-size: .82em; font-weight: 700; background: rgba(5, 10, 23, .88); border-radius: .6em; padding: .25em .6em; color: var(--mute); } .ph-sticky .avail.warn { color: var(--yellow); }
.card p { font-size: .92em; }
/* demo: solo el celular */
.demo-split { display: grid; grid-template-columns: 1fr; place-items: center; padding: 14px; }
.demo-phone { width: min(400px, 100%); height: min(820px, 100%); margin: 0; }
@media (max-width: 520px) { .demo-split { padding: 0; } .demo-phone { width: 100%; height: 100%; border-radius: 0; box-shadow: none; } }
/* pregunta en pantallas bajas: todo cabe sin scroll y Confirmar siempre a mano */
.ph { gap: .7em; }
.ph .btn { min-height: 2.9em; }
.ph > [data-act="confirm"], form.ph > .btn[type="submit"] { position: sticky; bottom: calc(.6em + env(safe-area-inset-bottom)); z-index: 4; margin-top: auto; }
.numdisp { font-size: min(3.4em, 7.5cqh); }
.keypad button { height: min(3em, 8.6cqh); font-size: min(1.8em, 4.4cqh); }
.yn button { min-height: min(2.4em, 20cqh); }
.sitem { min-height: min(3.9em, 9.5cqh); }
.phone.is-host .scr { padding-bottom: 5.5em; } .phone.is-host .plobby { padding-bottom: 1em; }
/* revelación: primero las respuestas de todos, después la explicación */
.phone .rv-main, .phone .rv-left { display: contents; }
.phone .rv-list { order: 4; } .phone .rv-exp { order: 5; } .phone .ph-hostbar, .phone .paused-note { order: 9; }
.phone .podium { margin-top: 1.4em; }
.ph-timer { position: sticky; top: 0; z-index: 4; background: linear-gradient(180deg, var(--night) 70%, transparent); padding: .25em 0 .45em; margin-bottom: -.3em; }
.phone .fin-actions { position: static; order: 2; } .phone .fin-side { order: 3; } .phone .podium { order: 1; }
.phone .fin-actions .btn-ghost { font-size: 1.05em; min-height: 2.6em; }
/* solo por invitación */
.home-invite { font-size: 1.1em !important; color: var(--mute) !important; }
.roomcard b { font-family: var(--display); font-weight: 900; font-size: 1.6em; line-height: 1; display: block; } .roomcard small { display: block; margin-top: .25em; line-height: 1.25; }
.ph .roomcard .btn { width: auto; font-size: 1em; min-height: 2.8em; background: #0a1327; color: var(--chalk); padding: .4em 1em; white-space: nowrap; }
.lobby-join .url { font-size: .95em; }
.toast { bottom: auto; top: 4.4em; }

/* ═════════ celular: cabecera y pie fijos, nada flota sobre el contenido ═════════ */
#app { inset: 0 0 auto 0; height: 100dvh; }
.phone { grid-template-rows: auto auto minmax(0, 1fr) auto; }
.ph-top { grid-row: 1; } .ph-head { grid-row: 2; } .ph-main { grid-row: 3; overscroll-behavior: contain; } .ph-foot { grid-row: 4; }
.ph-head, .ph-foot { width: 100%; max-width: 30em; margin: 0 auto; position: relative; z-index: 5; }
.ph-head:empty, .ph-foot:empty { display: none; }
.ph-head { padding: 0 1.1em .45em; display: grid; gap: .4em; }
.ph-head .ph-timer { position: static; background: none; padding: 0; margin: 0; }
.ph-foot { padding: .6em 1.1em calc(.7em + env(safe-area-inset-bottom)); display: grid; gap: .45em; background: var(--night-2); box-shadow: 0 -1px 0 var(--line), 0 -1em 1.6em rgba(5, 10, 23, .55); }
.ph-foot > * { position: static !important; margin: 0 !important; }
.ph-foot .btn { width: 100%; font-size: 1.4em; min-height: 2.8em; }
.ph-foot .ph-hostbar { padding: 0; } .ph-foot .ph-hostbar .btn { font-size: 1.15em; }
.ph-foot .fin-actions { display: grid; gap: .45em; } .ph-foot .fin-actions p { text-align: center; color: #c9d3e8; } .ph-foot .fin-actions .btn-ghost { font-size: 1.05em; min-height: 2.5em; }
.ph-foot .link { justify-self: center; padding: .3em; }
.ph-foot .avail { background: none; padding: 0; }
.phone.is-host .scr, .phone .scr { padding-bottom: 1.4em; } .phone.is-host .plobby { padding-bottom: 1.2em; }
.ph { padding-bottom: 1.4em; }
.ph .link, .ph-foot .link { min-height: 2.6em; }
/* controles táctiles cómodos */
.seg button, .stepper button, .sitem .ud button, .iconbtn { min-width: 2.75em; min-height: 2.75em; }
.phone .pl .kick { min-width: 0; min-height: 0; }
/* doble camiseta */
.duo { display: grid; grid-template-columns: 1fr auto 1fr; align-items: stretch; gap: .5em; } .duo > b { align-self: center; font-family: var(--display); font-weight: 900; font-size: 1.6em; color: var(--lime); }
.duo .cluecard { align-content: center; min-height: 5.2em; } .duo .cluecard p { font-family: var(--display); font-weight: 900; font-size: 1.55em; line-height: 1; text-wrap: balance; }
.turfcard { background: var(--pitch); color: var(--chalk); box-shadow: inset 0 0 0 .1em rgba(243, 246, 238, .3); } .turfcard small { color: var(--lime); }
.names { display: flex; flex-wrap: wrap; gap: .4em; } .names[hidden] { display: none; }
.names span { padding: .25em .7em; border-radius: 99em; background: rgba(243, 246, 238, .1); font-weight: 700; font-size: 1.25em; }
.names span.said { background: var(--lime); color: var(--lime-ink); }
.phone .names span { font-size: .95em; }
.q-body .vs + .vs, .q-text + .vs { margin-top: .2em; }
.home-hero { padding-top: max(3em, calc(env(safe-area-inset-top) + 1.5em)); }
