/* ============================================================================
   LQN · WORLD 0 · SECTOR ORIGINACIÓN — Escuadrón Comercial
   Arte original CSS/JS de LQN. Mecánicas inspiradas en el vuelo espacial
   de Nintendo (escudo, anillos, tonel, formación, modo cierre), sin usar
   sprites, tipografías ni recursos de terceros.
   ========================================================================= */

:root {
  --pixel: "Press Start 2P", monospace;
  --void: #040720;
  --void-2: #080d2c;
  --hull: #dfe9ff;
  --hull-dark: #8ea4d8;
  --cyan: #38d9ff;
  --cyan-dim: #1a86a8;
  --gold: #ffd63d;
  --gold-dark: #c27900;
  --green: #7dff9b;
  --red: #ff4d5a;
  --red-dark: #8f1714;
  --amber: #ffb03a;
  --ink: #050914;
}

* { box-sizing: border-box; }

body.comercial-arcade {
  margin: 0;
  padding: 0 0 60px;
  font-family: Inter, system-ui, -apple-system, sans-serif;
  color: var(--hull);
  background:
    radial-gradient(1200px 600px at 80% -10%, #16225c 0%, transparent 70%),
    radial-gradient(900px 500px at 10% 20%, #1b0f42 0%, transparent 65%),
    linear-gradient(180deg, #040720 0%, #060b28 55%, #03050f 100%);
  background-attachment: fixed;
}

main { max-width: 1400px; margin: 0 auto; padding: 0 18px; }

/* ---------------------------- HUD superior ------------------------------- */
.game-hud {
  position: sticky; top: 0; z-index: 40;
  display: flex; flex-wrap: wrap; gap: 14px; align-items: center; justify-content: space-between;
  padding: 12px 20px; margin-bottom: 18px;
  background: rgba(4, 7, 32, .93);
  border-bottom: 3px solid var(--cyan-dim);
  box-shadow: 0 6px 0 rgba(56, 217, 255, .12);
  backdrop-filter: blur(6px);
}
.hud-brand { display: grid; gap: 6px; text-decoration: none; color: inherit; }
.hud-world { font-family: var(--pixel); font-size: 8px; color: var(--cyan); letter-spacing: .08em; }
.hud-brand strong { font-family: var(--pixel); font-size: 12px; color: var(--hull); }
.hud-stats { display: flex; flex-wrap: wrap; gap: 10px; }
.hud-stat {
  display: grid; gap: 5px; padding: 7px 11px; min-width: 120px;
  background: rgba(56, 217, 255, .07); border: 2px solid rgba(56, 217, 255, .35); border-radius: 3px;
}
.hud-stat span { font-family: var(--pixel); font-size: 6.5px; color: #9fc6e8; letter-spacing: .05em; }
.hud-stat b { font-family: var(--pixel); font-size: 11px; color: var(--gold); font-variant-numeric: tabular-nums; }
.hud-stat-timer b { color: var(--green); }
.hud-nav { display: flex; gap: 8px; flex-wrap: wrap; }
.hud-nav a {
  font-family: var(--pixel); font-size: 7px; text-decoration: none; color: var(--ink);
  background: var(--cyan); padding: 8px 10px; border: 2px solid #0a2b3a; border-radius: 3px;
}
.hud-nav a:hover { background: var(--gold); }

/* --------------------- Escena viva: Sector Originación ------------------- */
.escena-sector {
  position: relative; overflow: hidden; isolation: isolate;
  min-height: 520px; margin: 0 0 22px; padding: 26px 24px 0;
  border: 3px solid #12204e; border-radius: 8px;
  background:
    radial-gradient(700px 380px at 78% 78%, rgba(56, 217, 255, .16) 0%, transparent 70%),
    linear-gradient(180deg, #030618 0%, #071043 58%, #0a1a5c 100%);
  box-shadow: inset 0 0 90px rgba(0, 0, 0, .6), 6px 6px 0 rgba(4, 7, 32, .5);
}
.esc-copy {
  position: relative; z-index: 9; max-width: 1340px; margin: 0 auto;
  display: grid; grid-template-columns: 1.25fr .75fr; gap: 24px;
}
.escena-sector .kicker {
  font-family: var(--pixel); font-size: 8px; color: var(--cyan); letter-spacing: .07em; margin-bottom: 12px;
}
.escena-sector h1 {
  margin: 0 0 12px; font-family: var(--pixel); font-size: clamp(15px, 2.5vw, 25px); line-height: 1.6;
  color: #fff; text-shadow: 0 0 18px rgba(56, 217, 255, .55), 3px 3px 0 #0a1140;
}
.escena-sector p { margin: 0 0 8px; font-size: 13.5px; line-height: 1.65; color: #cfe0ff; max-width: 660px; }
.escena-sector b { color: #fff; }
.esc-briefing { text-align: right; }
.esc-briefing .k { font-family: var(--pixel); font-size: 7.5px; color: #9fc6e8; }
.esc-briefing .cuenta {
  font-family: var(--pixel); font-size: clamp(22px, 3vw, 36px); color: var(--green);
  margin: 10px 0 6px; font-variant-numeric: tabular-nums; text-shadow: 0 0 16px rgba(125, 255, 155, .5);
}
.esc-briefing small { font-size: 11px; color: #b9cdf0; display: block; line-height: 1.55; }

/* Estrellas y campo de vuelo */
.estrellas { position: absolute; inset: 0; z-index: 1; }
.estrellas i {
  position: absolute; width: 2px; height: 2px; background: #fff; border-radius: 50%;
  opacity: .8; animation: estrellaFuga linear infinite;
}
.estrellas.lejos i { animation-duration: 9s; }
.estrellas.medio i { width: 3px; height: 3px; animation-duration: 5.5s; }
.estrellas.cerca i { width: 4px; height: 2px; background: #bfe4ff; animation-duration: 2.6s; }
@keyframes estrellaFuga {
  from { transform: translateX(0) scaleX(1); opacity: 0; }
  12%  { opacity: .9; }
  to   { transform: translateX(-120vw) scaleX(3); opacity: 0; }
}

/* Rejilla del sector (piso de vuelo) */
.rejilla {
  position: absolute; left: -10%; right: -10%; bottom: 0; height: 190px; z-index: 2;
  background:
    repeating-linear-gradient(90deg, rgba(56, 217, 255, .22) 0 2px, transparent 2px 78px),
    repeating-linear-gradient(0deg, rgba(56, 217, 255, .16) 0 2px, transparent 2px 34px);
  transform: perspective(320px) rotateX(66deg);
  transform-origin: bottom center;
  animation: rejillaAvance 1.5s linear infinite;
  mask-image: linear-gradient(180deg, transparent 0%, #000 55%);
}
@keyframes rejillaAvance { from { background-position-y: 0, 0; } to { background-position-y: 0, 34px; } }

/* Planeta del sector */
/* Planeta Desembolso: el destino del sector, al fondo del corredor de vuelo. */
.planeta {
  position: absolute; z-index: 2; right: 10px; top: 30px; width: 104px; height: 104px; border-radius: 50%;
  background: radial-gradient(circle at 32% 28%, #4f8cff 0%, #1c3f9e 45%, #0b1a4d 100%);
  border: 3px solid #0a1140;
  box-shadow: inset -18px -14px 34px rgba(0, 0, 0, .6), 0 0 46px rgba(56, 217, 255, .3);
}
.planeta:after {
  content: ""; position: absolute; left: -22px; right: -22px; top: 58%; height: 11px;
  background: linear-gradient(90deg, transparent, rgba(255, 214, 61, .55), transparent);
  transform: rotate(-14deg); border-radius: 50%;
}
.planeta-nombre {
  position: absolute; z-index: 6; right: 6px; top: 2px;
  font-family: var(--pixel); font-size: 7px; color: #cfe0ff;
  background: rgba(4, 7, 32, .8); border: 2px solid rgba(56, 217, 255, .4); padding: 6px 8px;
}

/* Pista de vuelo del escuadrón */
.pista { position: relative; z-index: 6; max-width: 1340px; margin: 14px auto 0; height: 296px; }

/* Nave nodriza LQN (a la izquierda: de ahí sale el escuadrón) */
.nodriza { position: absolute; left: 0; top: 8px; z-index: 5; width: 216px; }
.nodriza .casco {
  position: relative; height: 62px; border-radius: 8px 26px 26px 8px;
  background: linear-gradient(180deg, #9fb4e2 0%, #5f7bb5 48%, #2b3f74 100%);
  border: 3px solid #0a1140; box-shadow: inset 0 8px 0 rgba(255, 255, 255, .22);
}
.nodriza .casco:before {
  content: ""; position: absolute; left: 22px; top: 16px; width: 118px; height: 12px;
  background: repeating-linear-gradient(90deg, var(--cyan) 0 8px, transparent 8px 18px); opacity: .85;
}
.nodriza .ala {
  position: absolute; left: 46px; width: 130px; height: 15px;
  background: #47598f; border: 3px solid #0a1140;
}
.nodriza .ala.sup { top: -12px; transform: skewX(-24deg); }
.nodriza .ala.inf { bottom: -12px; transform: skewX(24deg); }
.nodriza .motor {
  position: absolute; right: -26px; top: 18px; width: 26px; height: 26px; border-radius: 4px;
  background: var(--cyan); box-shadow: 0 0 22px var(--cyan);
  animation: motorPulso 1.1s ease-in-out infinite;
}
.nodriza .letrero {
  position: absolute; left: 0; bottom: -30px;
  font-family: var(--pixel); font-size: 6.5px; color: #cfe0ff;
  background: rgba(4, 7, 32, .85); border: 2px solid rgba(56, 217, 255, .4); padding: 5px 7px; white-space: nowrap;
}
@keyframes motorPulso { 0%, 100% { transform: scaleX(1); opacity: .9; } 50% { transform: scaleX(1.5); opacity: 1; } }

/* Cazas del escuadrón: un ala por director */
.formacion { position: absolute; left: 236px; right: 276px; top: 0; bottom: 0; }
.caza {
  position: absolute; width: 78px; height: 46px; z-index: 7;
  animation: cazaFlota 3.4s ease-in-out infinite;
}
.caza .fuselaje {
  position: absolute; left: 18px; top: 15px; width: 52px; height: 16px;
  background: linear-gradient(180deg, #f7faff 0%, #cbd9f6 48%, #7b90c6 100%);
  border: 2px solid #0a1140;
  clip-path: polygon(0 0, 74% 0, 100% 50%, 74% 100%, 0 100%);
}
.caza .fuselaje:after {
  content: ""; position: absolute; left: 26px; top: 3px; width: 13px; height: 9px;
  background: var(--cyan); border: 1px solid #0a1140; border-radius: 3px; opacity: .9;
}
.caza .ala-sup, .caza .ala-inf {
  position: absolute; left: 26px; width: 30px; height: 12px;
  background: #2f60d6; border: 2px solid #0a1140;
}
.caza .ala-sup { top: 3px; clip-path: polygon(24% 0, 100% 0, 100% 100%, 0 100%); }
.caza .ala-inf { bottom: 3px; clip-path: polygon(0 0, 100% 0, 100% 100%, 24% 100%); }
.caza .llama {
  position: absolute; left: 8px; top: 17px; width: 16px; height: 10px; border-radius: 6px 2px 2px 6px;
  background: linear-gradient(90deg, transparent, var(--cyan)); box-shadow: 0 0 14px var(--cyan);
  animation: motorPulso .8s ease-in-out infinite;
}
.caza .placa {
  position: absolute; left: 50%; top: -18px; transform: translateX(-50%);
  font-family: var(--pixel); font-size: 6px; color: var(--ink); background: var(--cyan);
  padding: 3px 5px; white-space: nowrap; border: 2px solid #0a2b3a;
}
.caza .escudo-mini {
  position: absolute; left: 50%; bottom: -16px; transform: translateX(-50%);
  width: 62px; height: 7px; background: rgba(4, 7, 32, .8); border: 2px solid #0a1140;
}
.caza .escudo-mini i { display: block; height: 100%; background: var(--green); }
.caza.tone-warn .escudo-mini i { background: var(--amber); }
.caza.tone-bad .escudo-mini i { background: var(--red); }
.caza.tone-bad { animation: cazaFlota 3.4s ease-in-out infinite, cazaAlerta 1s steps(2) infinite; }
.caza.lider .placa { background: var(--gold); }
.caza.reserva .fuselaje { filter: saturate(.35); }
@keyframes cazaFlota { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-11px); } }
@keyframes cazaAlerta { 0%, 100% { filter: none; } 50% { filter: drop-shadow(0 0 8px var(--red)); } }

/* Anillos de radicación: viajan por el corredor de vuelo, no sobre el radar */
.anillos { position: absolute; left: 214px; right: 264px; top: 38%; z-index: 4; height: 120px; }
.anillo {
  position: absolute; width: 46px; height: 62px; border-radius: 50%;
  border: 5px solid var(--gold); box-shadow: 0 0 18px rgba(255, 214, 61, .55), inset 0 0 12px rgba(255, 214, 61, .35);
  animation: anilloAcerca linear infinite;
}
@keyframes anilloAcerca {
  from { right: -8%; transform: scale(.35); opacity: 0; }
  10%  { opacity: 1; }
  85%  { opacity: 1; }
  to   { right: 104%; transform: scale(1.5); opacity: 0; }
}

/* Cazas enemigos: devoluciones */
.devolucion { position: absolute; z-index: 6; width: 34px; height: 26px; animation: devAcerca linear infinite; }
.devolucion .cuerpo {
  position: absolute; inset: 6px 0; background: #6b1220; border: 2px solid #2a0409; border-radius: 4px;
  box-shadow: inset -4px 0 0 #3d0a12;
}
.devolucion .ala { position: absolute; left: 4px; width: 26px; height: 7px; background: var(--red); border: 2px solid #2a0409; }
.devolucion .ala.a { top: 0; } .devolucion .ala.b { bottom: 0; }
.devolucion .ojo {
  position: absolute; left: 4px; top: 11px; width: 7px; height: 7px; border-radius: 50%;
  background: var(--gold); animation: ojoLate .9s steps(2) infinite;
}
@keyframes devAcerca {
  from { right: -6%; opacity: 0; }
  12% { opacity: 1; }
  88% { opacity: 1; }
  to { right: 100%; opacity: 0; }
}
@keyframes ojoLate { 0%, 100% { opacity: 1; } 50% { opacity: .3; } }

/* El Estrecho: el jefe del sector */
.jefe { position: absolute; right: 12px; bottom: 46px; z-index: 6; width: 240px; }
.jefe .masa {
  position: relative; height: 132px; border-radius: 50% 50% 46% 46%;
  background: radial-gradient(circle at 40% 32%, #4a1d6b 0%, #2a0b46 55%, #120327 100%);
  border: 3px solid #1e0637; box-shadow: 0 0 46px rgba(148, 45, 210, .4);
  animation: jefeRespira 3.6s ease-in-out infinite;
}
.jefe .ojo {
  position: absolute; top: 40px; width: 34px; height: 20px; border-radius: 50%;
  background: var(--red); box-shadow: 0 0 22px var(--red);
  animation: ojoLate 1.6s ease-in-out infinite;
}
.jefe .ojo.izq { left: 46px; } .jefe .ojo.der { right: 46px; }
.jefe .boca {
  position: absolute; left: 50%; bottom: 22px; transform: translateX(-50%);
  width: 96px; height: 16px; background: #12030f; border: 3px solid #35104b; border-radius: 0 0 40px 40px;
  box-shadow: inset 0 -6px 0 rgba(255, 77, 90, .35);
}
.jefe .letrero {
  position: absolute; left: 50%; bottom: -34px; transform: translateX(-50%); text-align: center;
  font-family: var(--pixel); font-size: 7px; line-height: 1.7; color: #ffd9de;
  background: rgba(24, 4, 20, .9); border: 2px solid #6a1230; padding: 6px 9px; white-space: nowrap;
}
@keyframes jefeRespira { 0%, 100% { transform: scale(1); } 50% { transform: scale(1.05); } }

/* Carteles de datos vivos: banda propia, para no tapar al escuadrón */
.marcadores-vuelo {
  position: relative; z-index: 9; max-width: 1340px; margin: 16px auto 0;
  display: grid; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); gap: 12px;
}
.cartel {
  z-index: 8; padding: 10px 12px; text-align: center;
  background: rgba(4, 7, 32, .88); border: 2px solid var(--cyan-dim); border-radius: 3px;
  box-shadow: 0 0 18px rgba(56, 217, 255, .18);
}
.cartel .k { display: block; font-family: var(--pixel); font-size: 6.5px; color: var(--cyan); line-height: 1.7; }
.cartel .v { display: block; font-family: var(--pixel); font-size: 12px; color: var(--gold); margin-top: 6px; }
.cartel .s { display: block; font-size: 9.5px; color: #b9cdf0; margin-top: 5px; line-height: 1.45; }
.cartel.alerta { border-color: #8f1c30; }
.cartel.alerta .v { color: #ff8a95; }

/* Radar */
.radar {
  position: absolute; left: 24px; bottom: 10px; z-index: 8; width: 132px; height: 132px; border-radius: 50%;
  background: radial-gradient(circle, rgba(125, 255, 155, .12) 0%, rgba(4, 7, 32, .9) 70%);
  border: 3px solid rgba(125, 255, 155, .45); overflow: hidden;
}
.radar:before, .radar:after { content: ""; position: absolute; background: rgba(125, 255, 155, .3); }
.radar:before { left: 50%; top: 0; bottom: 0; width: 2px; }
.radar:after { top: 50%; left: 0; right: 0; height: 2px; }
.radar .barrido {
  position: absolute; left: 50%; top: 50%; width: 50%; height: 2px; transform-origin: left center;
  background: linear-gradient(90deg, rgba(125, 255, 155, .9), transparent);
  animation: radarGira 3s linear infinite;
}
.radar .blip { position: absolute; width: 7px; height: 7px; border-radius: 50%; background: var(--green); box-shadow: 0 0 10px var(--green); }
.radar .blip.rojo { background: var(--red); box-shadow: 0 0 10px var(--red); }
.radar-titulo { position: absolute; left: 24px; bottom: 150px; z-index: 8; font-family: var(--pixel); font-size: 6.5px; color: var(--green); }
@keyframes radarGira { from { transform: rotate(0); } to { transform: rotate(360deg); } }

/* ---------------------------- Paneles ----------------------------------- */
.arcade-panel {
  margin: 0 0 22px; padding: 22px;
  background: rgba(6, 11, 40, .78); border: 3px solid #16265c; border-radius: 8px;
  box-shadow: 0 0 40px rgba(0, 0, 0, .45);
}
.panel-titlebar { display: flex; flex-wrap: wrap; gap: 14px; align-items: flex-start; justify-content: space-between; margin-bottom: 16px; }
.world-number { font-family: var(--pixel); font-size: 7.5px; color: var(--cyan); letter-spacing: .07em; }
.panel-titlebar h2 { margin: 9px 0 8px; font-family: var(--pixel); font-size: clamp(11px, 1.6vw, 15px); line-height: 1.6; color: #fff; }
.panel-titlebar p { margin: 0; max-width: 780px; font-size: 13px; line-height: 1.65; color: #b9cdf0; }
.pixel-badge {
  font-family: var(--pixel); font-size: 7px; padding: 8px 10px; white-space: nowrap;
  color: var(--ink); background: var(--gold); border: 2px solid #6b4a00;
}
.pixel-badge-shadow { background: #2a3670; color: #cfe0ff; border-color: #4d5ea8; }

/* Leyenda del escudo */
.score-legend { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 16px; }
.tone-chip {
  display: inline-flex; align-items: center; gap: 6px;
  font-family: var(--pixel); font-size: 6.5px; padding: 7px 9px;
  background: rgba(56, 217, 255, .08); border: 2px solid rgba(56, 217, 255, .3); color: #cfe0ff;
}
.tone-chip.tone-good { border-color: rgba(125, 255, 155, .5); color: var(--green); }
.tone-chip.tone-warn { border-color: rgba(255, 176, 58, .5); color: var(--amber); }
.tone-chip.tone-bad { border-color: rgba(255, 77, 90, .5); color: #ff8a95; }
.score-min-demo { display: inline-block; width: 4px; height: 12px; background: var(--gold); }

/* Marcador */
.matrix-layout { display: grid; grid-template-columns: 1.55fr .95fr; gap: 18px; align-items: start; }
.scoreboard { display: grid; gap: 8px; }
.score-row {
  display: grid; grid-template-columns: 46px minmax(150px, 1.5fr) minmax(120px, 2fr) 74px minmax(126px, auto);
  gap: 10px; align-items: center; width: 100%; text-align: left; cursor: pointer;
  padding: 11px 12px; color: inherit; font: inherit;
  background: rgba(10, 18, 54, .8); border: 2px solid #1d2f68; border-radius: 4px;
}
.score-row:hover { border-color: var(--cyan); }
.score-row.selected { border-color: var(--gold); box-shadow: 0 0 0 2px rgba(255, 214, 61, .25); }
.score-rank { font-family: var(--pixel); font-size: 9px; color: var(--cyan); }
.score-name { display: grid; gap: 4px; font-size: 13px; font-weight: 700; color: #fff; }
.score-name small { font-weight: 600; font-size: 10px; color: #93aad8; }
.score-track { position: relative; height: 15px; background: rgba(4, 7, 32, .9); border: 2px solid #1d2f68; overflow: hidden; }
.score-fill { position: absolute; inset: 0 auto 0 0; background: linear-gradient(90deg, #1a86a8, var(--green)); }
.tone-warn .score-fill, .score-fill.tone-fill-warn { background: linear-gradient(90deg, #8a5c10, var(--amber)); }
.tone-bad .score-fill, .score-fill.tone-fill-bad { background: linear-gradient(90deg, #6b1220, var(--red)); }
.score-min-mark { position: absolute; top: -2px; bottom: -2px; left: 60%; width: 3px; background: var(--gold); box-shadow: 0 0 8px var(--gold); }
.score-value { font-family: var(--pixel); font-size: 14px; color: #fff; text-align: right; }
.score-value small { font-size: 7px; color: #93aad8; }
.score-state { font-family: var(--pixel); font-size: 6.5px; line-height: 1.6; color: #cfe0ff; }
.tone-good .score-state { color: var(--green); }
.tone-warn .score-state { color: var(--amber); }
.tone-bad .score-state { color: #ff8a95; }
.score-row.reserva { border-style: dashed; opacity: .92; }

/* Consola del piloto */
.player-console {
  display: grid; gap: 14px; padding: 18px;
  background: linear-gradient(180deg, rgba(20, 32, 82, .9), rgba(6, 11, 40, .9));
  border: 2px solid var(--cyan-dim); border-radius: 4px;
}
.console-top { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.console-avatar {
  display: grid; place-items: center; width: 52px; height: 52px;
  font-family: var(--pixel); font-size: 11px; color: var(--ink);
  background: var(--cyan); border: 3px solid #0a2b3a;
}
.console-rank { text-align: right; }
.console-rank span { display: block; font-family: var(--pixel); font-size: 6.5px; color: #93aad8; }
.console-rank b { font-family: var(--pixel); font-size: 15px; color: var(--gold); }
.player-console h3 { margin: 0 0 6px; font-size: 15px; color: #fff; }
.console-team { display: inline-block; font-family: var(--pixel); font-size: 6.5px; color: var(--cyan); margin-bottom: 6px; }
.player-console > div > small { display: block; font-size: 11px; color: #93aad8; margin-bottom: 12px; }
.console-score { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-bottom: 10px; }
.console-score span { display: block; font-family: var(--pixel); font-size: 6.5px; color: #93aad8; margin-bottom: 6px; }
.console-score b { font-family: var(--pixel); font-size: 12px; color: #fff; }
.console-track { height: 18px; margin-bottom: 10px; }
.console-gap { margin: 0 0 10px; font-size: 12.5px; line-height: 1.6; color: #cfe0ff; }
.axis-card { margin-bottom: 10px; }
.axis-card-head { display: flex; justify-content: space-between; gap: 10px; margin-bottom: 6px; }
.axis-card-head span { font-family: var(--pixel); font-size: 6.5px; color: #93aad8; }
.axis-card-head b { font-family: var(--pixel); font-size: 9px; color: #fff; }
.mini-track { height: 10px; background: rgba(4, 7, 32, .9); border: 2px solid #1d2f68; }
.mini-track span { display: block; height: 100%; background: linear-gradient(90deg, #1a86a8, var(--cyan)); }
.mini-track.originacion span { background: linear-gradient(90deg, #8a5c10, var(--gold)); }
.console-mission { padding-top: 12px; border-top: 2px dashed #2b3d7a; }
.console-mission b { display: block; font-family: var(--pixel); font-size: 7.5px; color: var(--gold); margin-bottom: 10px; }
.today-list { margin: 0; padding-left: 18px; display: grid; gap: 8px; }
.today-list li { font-size: 12.5px; line-height: 1.6; color: #dbe7ff; }

/* --------------------- Misión del día: anillos --------------------------- */
.mision-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 14px; }
.mision-card {
  display: grid; gap: 11px; padding: 15px;
  background: rgba(10, 18, 54, .82); border: 2px solid #1d2f68; border-radius: 4px;
}
.mision-card.cumplida { border-color: var(--green); box-shadow: 0 0 0 2px rgba(125, 255, 155, .2); }
.mision-card.reserva { border-style: dashed; }
.mision-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 10px; }
.mision-head strong { font-size: 13.5px; color: #fff; }
.mision-head small { display: block; font-family: var(--pixel); font-size: 6px; color: var(--cyan); margin-top: 5px; }
.medalla { font-family: var(--pixel); font-size: 6.5px; color: var(--ink); background: var(--gold); border: 2px solid #6b4a00; padding: 5px 6px; white-space: nowrap; }
.medalla.pendiente { background: #2a3670; color: #cfe0ff; border-color: #4d5ea8; }
.mision-meta { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.mision-meta div { padding: 8px 9px; background: rgba(4, 7, 32, .7); border: 2px solid #1d2f68; }
.mision-meta span { display: block; font-family: var(--pixel); font-size: 6px; color: #93aad8; margin-bottom: 6px; line-height: 1.5; }
.mision-meta b { font-family: var(--pixel); font-size: 10px; color: var(--gold); }
.mision-meta b.verde { color: var(--green); }
.mision-meta b.rojo { color: #ff8a95; }
.anillo-track { display: flex; flex-wrap: wrap; gap: 5px; align-items: center; }
.anillo-pip {
  width: 15px; height: 15px; border-radius: 50%; border: 3px solid rgba(255, 214, 61, .28);
}
.anillo-pip.on { border-color: var(--gold); box-shadow: 0 0 9px rgba(255, 214, 61, .55); }
.anillo-cuenta { font-family: var(--pixel); font-size: 7px; color: #cfe0ff; margin-left: 4px; }
.mision-nota { margin: 0; font-size: 12px; line-height: 1.6; color: #cfe0ff; }
.mision-nota b { color: #fff; }

/* Tonel: los seis candados */
.tonel-bar { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; margin-bottom: 14px; }
.tonel-btn {
  font-family: var(--pixel); font-size: 7px; cursor: pointer;
  color: var(--ink); background: var(--gold); border: 2px solid #6b4a00; padding: 9px 11px;
}
.tonel-btn:hover { background: var(--cyan); }
.tonel-hint { font-size: 12px; color: #b9cdf0; }
.tonel-panel { display: none; gap: 8px; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); }
.tonel-panel.abierto { display: grid; }
.tonel-panel div { padding: 10px; background: rgba(4, 7, 32, .7); border: 2px solid #1d2f68; }
.tonel-panel b { display: block; font-family: var(--pixel); font-size: 7px; color: var(--gold); margin-bottom: 6px; }
.tonel-panel p { margin: 0; font-size: 11.5px; line-height: 1.55; color: #cfe0ff; }
.tonel-girando .caza { animation: tonelGira .9s linear 1, cazaFlota 3.4s ease-in-out infinite; }
@keyframes tonelGira { from { transform: rotate(0); } to { transform: rotate(360deg); } }

/* Notas y avisos */
.method-note { margin: 14px 0 0; font-size: 11.5px; line-height: 1.7; color: #93aad8; }
.avisos { margin: 12px 0 0; padding-left: 18px; display: grid; gap: 6px; }
.avisos li { font-size: 11.5px; line-height: 1.6; color: #b9cdf0; }
.error-state { padding: 18px; font-size: 13px; color: #ff8a95; border: 2px dashed #8f1c30; }

@media (max-width: 1080px) {
  .esc-copy { grid-template-columns: 1fr; }
  .esc-briefing { text-align: left; }
  .matrix-layout { grid-template-columns: 1fr; }
  .pista { height: 340px; }
  .jefe { transform: scale(.8); transform-origin: right bottom; }
  .radar { display: none; }
  .radar-titulo { display: none; }
}
@media (max-width: 720px) {
  main { padding: 0 10px; }
  .game-hud { padding: 10px 12px; }
  .hud-stats { width: 100%; }
  .hud-stat { flex: 1 1 100px; min-width: 100px; }
  .escena-sector { padding: 20px 14px 0; min-height: 0; }
  .escena-sector p { max-width: 100%; }
  .arcade-panel { padding: 16px 14px; }
  .score-row { grid-template-columns: 38px 1fr 66px; }
  .score-track, .score-state { display: none; }
  .nodriza { display: none; }
  .pista { height: 400px; }
  .formacion { left: 8px; right: 8px; bottom: 130px; }
  .anillos { left: 8px; right: 8px; }
  /* El Estrecho baja al pie del nivel: su cifra de fuga no vive en ningún otro lado. */
  .jefe { left: 50%; right: auto; bottom: 46px; transform: translateX(-50%) scale(.78); transform-origin: bottom center; }
  .planeta, .planeta-nombre { display: none; }
  .mision-meta { grid-template-columns: 1fr; }
}
@media (prefers-reduced-motion: reduce) {
  .escena-sector *, .caza, .anillo, .devolucion, .radar .barrido, .rejilla { animation: none !important; }
}
