/* Órbita Turbo — marcador y pantallas. Claro, colorido y legible sobre el cielo; botones sólidos (sin degradados). */
@font-face { font-family: 'Lilita One'; src: url('/games/_vendor/fonts/lilita-one-latin.woff2') format('woff2'); font-display: block; }
@font-face { font-family: 'Lilita One'; src: url('/games/_vendor/fonts/lilita-one-latin-ext.woff2') format('woff2'); unicode-range: U+0100-024F; font-display: block; }
@font-face { font-family: 'Inter'; src: url('/games/_vendor/fonts/inter-latin.woff2') format('woff2'); font-weight: 100 900; font-display: swap; }

:root { --ink: #1b2140; --blue: #2f7cff; --orange: #ff9f1c; --yellow: #ffd23f; --pink: #ff5fa2; --cyan: #2fc6ff; --mint: #2ed39a; --violet: #9b6bff; --red: #ff4d5e; --card: #fffdf8; --soft: #eef4ff; }
* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
html, body { margin: 0; height: 100%; overflow: hidden; background: #05070f; touch-action: none; user-select: none; -webkit-user-select: none; }
body { font-family: 'Inter', system-ui, sans-serif; color: var(--ink); }
#stage { position: fixed; inset: 0; }
#stage canvas { display: block; width: 100%; height: 100%; }

/* ---------------------------------------------------------------- Marcador */
.hud { position: fixed; inset: 0; pointer-events: none; z-index: 5; }
.hud .bar { position: absolute; top: max(10px, env(safe-area-inset-top)); left: 10px; right: 10px; display: flex; justify-content: space-between; align-items: flex-start; gap: 8px; }
.hud .left, .hud .right { display: flex; flex-direction: column; gap: 6px; }
.hud .right { align-items: flex-end; }
.pill { background: var(--card); border-radius: 18px; padding: 7px 13px 8px; box-shadow: 0 6px 18px rgba(30, 40, 110, .22), inset 0 -3px 0 rgba(27, 33, 64, .08); min-width: 92px; }
.pill small { display: block; font-size: 10.5px; font-weight: 800; letter-spacing: .09em; text-transform: uppercase; color: #7c84a8; }
.pill b { display: block; font-family: 'Lilita One', sans-serif; font-weight: 400; font-size: 30px; line-height: 1.05; letter-spacing: .01em; color: var(--ink); white-space: nowrap; }
.pill.score b::before { content: ''; display: inline-block; width: 21px; height: 21px; margin-right: 6px; vertical-align: -2px; border-radius: 50%; background: radial-gradient(circle at 35% 30%, #fff 0 18%, #ffe27a 19% 58%, #ffb31a 59%); box-shadow: 0 0 10px rgba(255, 190, 40, .8); }
.pill.time { text-align: center; min-width: 84px; }
.pill.time.hot { background: var(--red); animation: pulse .5s ease-in-out infinite alternate; }
.pill.time.hot small, .pill.time.hot b { color: #fff; }
.pill.pos { text-align: right; min-width: 86px; }
.pill.pos b em { font-style: normal; font-size: 16px; color: #8a92b5; margin-left: 2px; }
.pill.pos.gold { background: var(--yellow); }
.pill.pos.silver { background: #e9eefc; }
.pill.pos.bronze { background: #ffd2b0; }
.pill.bump, .combo.bump { animation: bump .35s cubic-bezier(.2, 1.6, .4, 1); }
@keyframes bump { 0% { transform: scale(1); } 40% { transform: scale(1.16); } 100% { transform: scale(1); } }
@keyframes pulse { to { transform: scale(1.06); } }
.combo { align-self: flex-start; display: flex; align-items: center; gap: 7px; background: var(--ink); border-radius: 14px; padding: 4px 10px 5px 9px; box-shadow: 0 5px 14px rgba(30, 40, 110, .25); }
.combo b { font-family: 'Lilita One', sans-serif; font-weight: 400; font-size: 21px; color: #fff; min-width: 28px; }
.combo[data-m="2"] b { color: var(--cyan); } .combo[data-m="3"] b { color: var(--mint); } .combo[data-m="4"] b { color: var(--yellow); } .combo[data-m="5"] b { color: var(--pink); }
.combo[data-m="5"] { box-shadow: 0 0 0 3px var(--pink), 0 5px 18px rgba(255, 95, 162, .55); }
.combo .segs { display: flex; gap: 3px; }
.combo .segs i { width: 9px; height: 13px; border-radius: 4px; background: rgba(255, 255, 255, .18); transition: background .15s, transform .15s; }
.combo .segs i.on { background: var(--yellow); transform: scaleY(1.12); }
.mute { pointer-events: auto; width: 42px; height: 42px; border: 0; border-radius: 14px; background: var(--card); box-shadow: 0 5px 14px rgba(30, 40, 110, .22); display: grid; place-items: center; cursor: pointer; padding: 0; }
.mute svg { width: 22px; height: 22px; }

/* Llegada: solo los mensajes grandes */
.hud.outro .bar, .hud.outro .turbo, .hud.outro .speed, .hud.outro .edge, .hud.outro .vignette, .hud.outro .toasts, .hud.outro .banner { display: none; }

/* Rival más cercano y velocidad */
.next { display: none; align-items: center; gap: 6px; background: var(--ink); color: #fff; border-radius: 12px; padding: 5px 10px 6px 8px; font-size: 12.5px; font-weight: 800; box-shadow: 0 5px 14px rgba(10, 14, 50, .35); white-space: nowrap; }
.next.on { display: flex; }
.next i { width: 11px; height: 11px; border-radius: 50%; flex: none; box-shadow: 0 0 0 2px rgba(255, 255, 255, .25); }
.next b { font-family: 'Lilita One', sans-serif; font-weight: 400; font-size: 15px; color: var(--yellow); min-width: 46px; text-align: right; }
.next.back b { color: #ff8f9b; }
.speed { position: absolute; right: max(14px, env(safe-area-inset-right)); bottom: calc(max(18px, env(safe-area-inset-bottom)) + 112px); width: 104px; text-align: center; color: #fff; text-shadow: 0 2px 0 rgba(10, 14, 50, .55), 0 0 14px rgba(10, 14, 50, .8); }
.speed b { display: block; font-family: 'Lilita One', sans-serif; font-weight: 400; font-size: 31px; line-height: 1; -webkit-text-stroke: 5px var(--ink); paint-order: stroke fill; }
.speed small { font-size: 11px; font-weight: 800; letter-spacing: .06em; opacity: .9; }
.speed.hot b { color: #ff9fd8; }

/* Botón TURBO: anillo que se llena; late cuando está listo */
.turbo { pointer-events: auto; position: absolute; right: max(14px, env(safe-area-inset-right)); bottom: max(18px, env(safe-area-inset-bottom)); width: 104px; height: 104px; border-radius: 50%; border: 0; padding: 0; cursor: pointer;
  background: conic-gradient(var(--cyan) var(--p, 0%), rgba(27, 33, 64, .55) 0); box-shadow: 0 8px 22px rgba(30, 40, 110, .35); transition: transform .1s; }
.turbo .fill { position: absolute; inset: 9px; border-radius: 50%; background: var(--ink); }
.turbo .in { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; color: #9fb0e8; }
.turbo svg { width: 32px; height: 32px; fill: currentColor; }
.turbo b { font-family: 'Lilita One', sans-serif; font-weight: 400; font-size: 15px; letter-spacing: .06em; margin-top: 1px; }
.turbo.ready { background: conic-gradient(var(--yellow) 100%, transparent 0); animation: ready .55s ease-in-out infinite alternate; }
.turbo.ready .fill { background: var(--orange); }
.turbo.ready .in { color: var(--ink); }
.turbo.active { background: conic-gradient(var(--pink) var(--p, 0%), rgba(27, 33, 64, .55) 0); }
.turbo.active .fill { background: var(--pink); }
.turbo.active .in { color: #fff; }
.turbo:active { transform: scale(.94); }
@keyframes ready { from { transform: scale(1); box-shadow: 0 0 0 0 rgba(255, 210, 63, .7), 0 8px 22px rgba(30, 40, 110, .35); } to { transform: scale(1.08); box-shadow: 0 0 0 14px rgba(255, 210, 63, 0), 0 8px 22px rgba(30, 40, 110, .35); } }

/* Mensajes que saltan */
.pops { position: absolute; left: 0; right: 0; top: 20%; display: flex; flex-direction: column; align-items: center; gap: 2px; }
.banner.on + .pops { top: calc(12% + 92px); }             /* debajo del nombre del sector */
.pop { font-family: 'Lilita One', sans-serif; font-size: clamp(28px, 6.4vw, 50px); line-height: 1; color: #fff; text-align: center; -webkit-text-stroke: 7px var(--ink); paint-order: stroke fill; text-shadow: 0 6px 0 rgba(27, 33, 64, .35); animation: popIn 1s cubic-bezier(.2, 1.4, .4, 1) forwards; white-space: nowrap; }
.pop small { font-size: .62em; }
.pop.gold { color: var(--yellow); } .pop.cyan { color: var(--cyan); } .pop.pink { color: var(--pink); } .pop.mint { color: var(--mint); } .pop.red { color: var(--red); } .pop.orange { color: var(--orange); } .pop.violet { color: #c7b1ff; }
.pop.small { font-size: clamp(20px, 4.4vw, 32px); -webkit-text-stroke-width: 5px; }
@keyframes popIn { 0% { transform: translateX(var(--dx, 0)) scale(.3) translateY(20px); opacity: 0; } 16% { transform: translateX(var(--dx, 0)) scale(1.14); opacity: 1; } 28% { transform: translateX(var(--dx, 0)) scale(1); } 78% { opacity: 1; transform: translateX(var(--dx, 0)) translateY(-10px); } 100% { opacity: 0; transform: translateX(var(--dx, 0)) translateY(-34px) scale(.96); } }

/* Avisos de adelantamiento (debajo de la posición) */
.toasts { position: absolute; right: 10px; top: calc(max(10px, env(safe-area-inset-top)) + 152px); display: flex; flex-direction: column; align-items: flex-end; gap: 6px; }
.toast { background: var(--card); border-radius: 14px; padding: 6px 12px 7px; font-size: 13px; font-weight: 800; color: var(--ink); box-shadow: 0 5px 14px rgba(30, 40, 110, .22), inset 4px 0 0 var(--c, var(--mint)); display: flex; align-items: center; gap: 7px; animation: toastIn .35s cubic-bezier(.2, 1.4, .4, 1); transition: opacity .4s, transform .4s; }
.toast i { width: 10px; height: 10px; border-radius: 50%; flex: none; }
.toast.out { opacity: 0; transform: translateX(20px); }
@keyframes toastIn { from { transform: translateX(40px); opacity: 0; } to { transform: none; opacity: 1; } }

/* Banda del sector */
.banner { position: absolute; left: 50%; top: 12%; transform: translate(-50%, -30px) scale(.9); opacity: 0; transition: opacity .35s, transform .45s cubic-bezier(.2, 1.4, .4, 1); text-align: center; background: var(--ink); color: #fff; border-radius: 20px; padding: 8px 22px 10px; box-shadow: 0 10px 26px rgba(30, 40, 110, .35); white-space: nowrap; }
.banner.on { opacity: 1; transform: translate(-50%, 0) scale(1); }
.banner small { display: block; font-size: 11px; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; opacity: .75; }
.banner b { display: block; font-family: 'Lilita One', sans-serif; font-weight: 400; font-size: clamp(24px, 6vw, 36px); line-height: 1.05; }
.banner.t-rocks b { color: #ffc6a8; } .banner.t-mines b { color: #ff8fbd; } .banner.t-convoy b { color: var(--cyan); } .banner.t-sprint b { color: var(--yellow); } .banner.t-launch b { color: var(--mint); }

/* Turbo: bordes de luz que corren; últimos segundos: borde rojo; destellos */
.edge { position: absolute; inset: -12%; pointer-events: none; opacity: 0; transition: opacity .25s; background: repeating-conic-gradient(from 0deg at 50% 48%, rgba(255,255,255,0) 0deg 3.5deg, rgba(160,235,255,.75) 3.9deg 4.3deg, rgba(255,255,255,0) 4.7deg 8deg); -webkit-mask: radial-gradient(ellipse at 50% 48%, transparent 36%, #000 72%); mask: radial-gradient(ellipse at 50% 48%, transparent 36%, #000 72%); animation: spin 1s linear infinite; }
.edge.on { opacity: .8; }
@keyframes spin { to { transform: rotate(8deg); } }
.vignette { position: absolute; inset: 0; pointer-events: none; box-shadow: inset 0 0 0 0 rgba(255, 60, 80, 0); transition: box-shadow .3s; }
.vignette.hot { box-shadow: inset 0 0 90px 12px rgba(255, 60, 80, .4); }
.flash { position: absolute; inset: 0; pointer-events: none; background: #fff; opacity: 0; }
.flash.go { animation: flash .35s ease-out; }
.flash.go.red { background: radial-gradient(ellipse at center, rgba(255,77,94,0) 30%, rgba(255,77,94,.85) 100%); animation-duration: .5s; }
.flash.go.cyan { background: radial-gradient(ellipse at 50% 55%, rgba(140, 230, 255, 0) 42%, rgba(140, 230, 255, .95) 100%); animation-duration: .5s; }
.flash.go.gold { background: radial-gradient(ellipse at 50% 55%, rgba(255, 226, 122, 0) 42%, rgba(255, 226, 122, .95) 100%); animation-duration: .5s; }
.flash.go.tint { background: var(--tint, #fff); animation: tint .55s ease-out; }
@keyframes tint { 0% { opacity: .9; } 10% { opacity: .75; } 100% { opacity: 0; } }
.cut { position: fixed; inset: 0; z-index: 8; pointer-events: none; opacity: 0; }
.cut.go { animation: cut .6s ease-out; }
@keyframes cut { 0% { opacity: 1; } 15% { opacity: 1; } 100% { opacity: 0; } }
@keyframes flash { from { opacity: .65; } to { opacity: 0; } }

/* ---------------------------------------------------------------- Pantallas */
.screen { position: fixed; inset: 0; z-index: 10; display: grid; place-items: center; padding: 20px; transition: opacity .35s, visibility .35s; }
.screen.hide { opacity: 0; visibility: hidden; pointer-events: none; }
.countdown { pointer-events: none; }
.card { width: min(440px, 100%); background: var(--card); border-radius: 28px; padding: 24px 20px 20px; text-align: center; box-shadow: 0 24px 60px rgba(30, 40, 110, .35); animation: cardIn .5s cubic-bezier(.2, 1.3, .4, 1); }
@keyframes cardIn { from { transform: translateY(30px) scale(.94); opacity: 0; } to { transform: none; opacity: 1; } }
.logo { font-family: 'Lilita One', sans-serif; line-height: .9; letter-spacing: .01em; text-align: center; }
.logo span { display: block; color: #fff; -webkit-text-stroke: 10px var(--ink); paint-order: stroke fill; text-shadow: 0 8px 0 rgba(27, 33, 64, .3); }
.logo span:first-child { font-size: clamp(48px, 12vw, 92px); color: #fff; }
.logo span:last-child { font-size: clamp(60px, 15vw, 118px); color: var(--orange); margin-top: -4px; }
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; border: 0; border-radius: 18px; padding: 15px 28px 16px; font-family: 'Lilita One', sans-serif; font-size: 25px; letter-spacing: .02em; color: var(--ink); background: var(--orange); box-shadow: 0 7px 0 #c46f00, 0 12px 24px rgba(196, 111, 0, .35); cursor: pointer; transition: transform .08s, box-shadow .08s; min-width: 230px; }
.btn:active { transform: translateY(5px); box-shadow: 0 2px 0 #c46f00, 0 6px 14px rgba(196, 111, 0, .35); }
.btn:focus-visible { outline: 4px solid var(--cyan); outline-offset: 4px; }
.btn:disabled { opacity: .55; cursor: default; transform: none; }
.how { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin: 2px 0 16px; }
.how div { background: var(--soft); border-radius: 16px; padding: 10px 7px 9px; }
.how .ic { display: grid; place-items: center; width: 38px; height: 38px; margin: 0 auto 5px; border-radius: 12px; }
.how .ic svg { width: 24px; height: 24px; fill: none; stroke: #fff; stroke-width: 2.6; stroke-linecap: round; stroke-linejoin: round; }
.how .ic.c1 { background: var(--blue); } .how .ic.c2 { background: var(--pink); } .how .ic.c2 svg { fill: #fff; stroke: none; } .how .ic.c3 { background: var(--orange); } .how .ic.c3 svg { fill: #fff; stroke: none; }
.how b { display: block; font-family: 'Lilita One', sans-serif; font-weight: 400; font-size: 18px; color: var(--ink); }
.how p { margin: 3px 0 0; font-size: 11.5px; line-height: 1.35; color: #5f6788; }
.best-line { margin-top: 10px; font-size: 13px; font-weight: 800; color: #1aa87a; min-height: 1em; }
.best-line:empty { display: none; }
.hint { font-size: 12px; color: #7c84a8; margin-top: 10px; }
.toggles { display: flex; justify-content: center; gap: 8px; margin-top: 10px; }
.toggles button { pointer-events: auto; border: 0; border-radius: 12px; background: var(--soft); padding: 7px 11px 7px 8px; font-family: inherit; font-weight: 700; font-size: 12px; color: #7c84a8; cursor: pointer; display: inline-flex; align-items: center; gap: 7px; }
.toggles button i { width: 26px; height: 16px; border-radius: 9px; background: #c3cbe4; position: relative; transition: background .2s; flex: none; }
.toggles button i::after { content: ''; position: absolute; left: 2px; top: 2px; width: 12px; height: 12px; border-radius: 50%; background: #fff; transition: transform .2s cubic-bezier(.2, 1.4, .4, 1); }
.toggles button.on { color: var(--ink); }
.toggles button.on i { background: var(--mint); }
.toggles button.on i::after { transform: translateX(10px); }
.toggles button:focus-visible { outline: 3px solid var(--cyan); outline-offset: 2px; }
.count { font-family: 'Lilita One', sans-serif; font-size: clamp(90px, 28vw, 180px); color: #fff; -webkit-text-stroke: 12px var(--ink); paint-order: stroke fill; text-shadow: 0 10px 0 rgba(27, 33, 64, .3); animation: countIn .9s cubic-bezier(.2, 1.4, .4, 1); }
.count.go { color: var(--orange); }
@keyframes countIn { 0% { transform: scale(2.2); opacity: 0; } 25% { transform: scale(1); opacity: 1; } 85% { opacity: 1; } 100% { transform: scale(.8); opacity: 0; } }

/* Resultados */
.res-title { font-family: 'Lilita One', sans-serif; font-size: 26px; color: var(--blue); }
.place { display: inline-flex; flex-direction: column; align-items: center; margin: 8px auto 2px; padding: 6px 22px 8px; border-radius: 20px; background: var(--soft); }
.place small { font-size: 10.5px; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; color: #7c84a8; }
.place b { font-family: 'Lilita One', sans-serif; font-weight: 400; font-size: 46px; line-height: 1; color: var(--ink); }
.place.gold { background: var(--yellow); box-shadow: 0 0 0 4px #fff, 0 0 26px rgba(255, 210, 63, .9); }
.place.silver { background: #e3e9fb; }
.place.bronze { background: #ffd2b0; }
.big { font-family: 'Lilita One', sans-serif; font-size: clamp(54px, 15vw, 82px); line-height: 1; color: var(--ink); margin: 4px 0 2px; }
.stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 7px; margin: 14px 0 16px; }
.stats div { background: var(--soft); border-radius: 14px; padding: 8px 4px 7px; }
.stats b { display: block; font-family: 'Lilita One', sans-serif; font-weight: 400; font-size: 22px; color: var(--ink); white-space: nowrap; }
.stats small { font-size: 10px; color: #7c84a8; font-weight: 800; text-transform: uppercase; letter-spacing: .04em; }
.best { font-size: 13px; color: #7c84a8; }
.best.new { color: #1aa87a; font-weight: 800; }
.row { display: flex; gap: 10px; justify-content: center; flex-wrap: wrap; }

/* Resultados al lado del podio: a la derecha en pantallas anchas y abajo en vertical */
.results-screen { place-items: end center; padding: 12px 12px max(12px, env(safe-area-inset-bottom)); }
.results-screen .card { padding: 14px 16px 14px; }
.results-screen .top { display: flex; align-items: center; justify-content: center; gap: 16px; }
.results-screen .place { margin: 0; padding: 5px 18px 7px; }
@media (min-aspect-ratio: 23/20) {
  .results-screen { place-items: center end; padding: 16px clamp(16px, 5vw, 96px); }
  .results-screen .card { width: min(420px, 38vw); padding: 20px 20px 18px; }
}
.skip { position: fixed; left: 50%; bottom: max(22px, env(safe-area-inset-bottom)); transform: translateX(-50%); z-index: 9; background: var(--ink); color: #fff; font-size: 13px; font-weight: 800; border-radius: 14px; padding: 8px 16px 9px; opacity: 0; transition: opacity .3s; pointer-events: none; }
.skip.on { opacity: .85; }

/* Pantalla de inicio: logotipo arriba, la nave en medio (la escena 3D) y el panel abajo */
.title-screen { display: flex; flex-direction: column; justify-content: space-between; align-items: center; padding: max(24px, env(safe-area-inset-top)) 16px max(16px, env(safe-area-inset-bottom)); }
.title-screen .logo-wrap { animation: cardIn .6s cubic-bezier(.2, 1.3, .4, 1); }
.title-screen .panel { width: min(460px, 100%); padding: 16px 14px 12px; }
@media (min-aspect-ratio: 23/20) {
  .title-screen { align-items: flex-start; justify-content: center; gap: clamp(8px, 2.4vh, 26px); padding-left: clamp(20px, 6vw, 150px); }
  .title-screen .logo-wrap { width: min(440px, 40vw); padding: 0 10px; }
  .title-screen .logo-img { width: 100%; }
  .title-screen .panel { width: min(440px, 42vw); }
}
@media (max-height: 640px) { .title-screen .how { display: none; } }
@media (max-width: 520px) {
  .pill { min-width: 80px; padding: 6px 10px 7px; } .pill b { font-size: 25px; } .turbo { width: 92px; height: 92px; } .stats b { font-size: 19px; }
  .speed { width: 92px; bottom: calc(max(18px, env(safe-area-inset-bottom)) + 100px); }
  .results-screen .stats { gap: 5px; margin: 9px 0 10px; }
  .results-screen .stats div { padding: 5px 4px 5px; border-radius: 12px; }
  .results-screen .res-title { font-size: 21px; }
  .results-screen .big { font-size: 50px; margin: 1px 0; }
  .results-screen .place b { font-size: 36px; }
  .results-screen .btn { padding: 12px 26px 13px; font-size: 22px; }
}
@media (max-height: 560px) {
  .results-screen .card { padding: 10px 14px 10px; border-radius: 20px; }
  .results-screen .stats { gap: 4px; margin: 6px 0 8px; }
  .results-screen .stats div { padding: 3px 4px; border-radius: 10px; }
  .results-screen .stats b { font-size: 16px; }
  .results-screen .stats small { font-size: 8.5px; }
  .results-screen .res-title { font-size: 18px; }
  .results-screen .big { font-size: 38px; margin: 0; }
  .results-screen .place { padding: 2px 14px 4px; }
  .results-screen .place b { font-size: 28px; }
  .results-screen .btn { padding: 8px 22px 9px; font-size: 19px; box-shadow: 0 4px 0 #c46f00; }
  .speed b { font-size: 24px; }
}
/* Monitores grandes: todo el marcador crece */
@media (min-width: 1500px) and (min-height: 880px) {
  .hud .bar, .toasts, .banner, .speed, .turbo, .title-screen .panel, .results-screen .card { zoom: 1.28; }
}
@media (min-width: 2200px) and (min-height: 1200px) {
  .hud .bar, .toasts, .banner, .speed, .turbo, .title-screen .panel, .results-screen .card { zoom: 1.7; }
}

/* ---------------------------------------------------------------- Duelo (lo arma la página de BitGame Play) */
.duel-box { margin: 0 0 14px; }
.duel-tag { display: inline-block; font-family: 'Lilita One', sans-serif; font-size: 20px; letter-spacing: .04em; color: #fff; background: var(--violet); border-radius: 12px; padding: 4px 14px 5px; box-shadow: 0 4px 0 #6a4fcf; text-transform: uppercase; }
.duel-nums { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin: 12px 0 8px; }
.duel-nums div { background: var(--soft); border-radius: 16px; padding: 8px 6px 9px; }
.duel-nums small { display: block; font-size: 10.5px; font-weight: 800; color: #7c84a8; text-transform: uppercase; letter-spacing: .05em; }
.duel-nums b { display: block; font-family: 'Lilita One', sans-serif; font-weight: 400; font-size: 24px; color: var(--ink); margin-top: 2px; }
.duel-nums div + div b { color: #1aa87a; }
.duel-p { margin: 6px 4px 0; font-size: 12.5px; line-height: 1.4; color: #5f6788; }
.duel-p.small { font-size: 11.5px; color: #7c84a8; }
.duel-msg { margin: 8px 0 0; min-height: 1em; font-size: 13px; font-weight: 700; color: var(--violet); }
.duel-msg:empty { display: none; }
.title-screen.is-duel .how { display: none; }
.verify { display: inline-flex; align-items: center; gap: 8px; margin: 2px auto 4px; font-size: 13px; font-weight: 700; color: #7c84a8; }
.verify i { width: 14px; height: 14px; border-radius: 50%; border: 3px solid #dfe5f6; border-top-color: var(--violet); animation: verifySpin .8s linear infinite; flex: none; }
.verify.ok { color: #1aa87a; }
.verify.ok i { border: 0; animation: none; background: var(--mint); box-shadow: inset 0 0 0 3px #fff; }
.verify.bad { color: var(--red); }
.verify.bad i { border: 0; animation: none; background: var(--red); }
.duel-status { min-height: 1.3em; margin: 2px 4px 0; font-size: 14px; font-weight: 800; color: var(--ink); }
.duel-status.win { color: #1aa87a; } .duel-status.lose { color: #7c84a8; } .duel-status.wait { color: var(--violet); } .duel-status.bad { color: var(--red); }
@keyframes verifySpin { to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) { .edge { animation: none; } .pop, .count, .card, .turbo.ready { animation-duration: .01s; } }

/* Logo del juego en imagen (tools/gen-game-logos.php, 27-11-2026) */
.logo-img { display: block; width: min(86vw, 520px); height: auto; filter: drop-shadow(0 12px 22px rgba(0, 0, 0, .45)); animation: logoFloat 3.4s ease-in-out infinite; }
@keyframes logoFloat { 0%, 100% { transform: translateY(0) rotate(-1deg); } 50% { transform: translateY(-6px) rotate(1deg); } }
@media (max-height: 640px) { .logo-img { width: min(70vw, 360px); } }
@media (max-height: 460px) { .title-screen .logo-wrap { width: min(34vw, 230px); } .title-screen { padding-top: 8px; padding-bottom: 8px; } .title-screen .panel { padding: 8px 12px; } .title-screen .btn { padding: 8px 24px 9px; font-size: 20px; } .title-screen .hint { margin-top: 5px; } .title-screen .toggles { margin-top: 5px; } }
@media (min-width: 1500px) and (min-height: 880px) { .title-screen .logo-wrap { width: 560px; } }
@media (min-width: 2200px) and (min-height: 1200px) { .title-screen .logo-wrap { width: 740px; } }
