.game { --theme-line: #00ff88; --theme-glow: #00cc6a; --theme-soft: #baffdc; --theme-rgb: 0, 255, 136; isolation: isolate; min-height: 100dvh; overflow: hidden; background: #020711; }
.game[data-theme="cyan"] { --theme-line: #65f4ff; --theme-glow: #00d8ff; --theme-soft: #9fffe2; --theme-rgb: 101, 244, 255; }
.game[data-theme="pink"] { --theme-line: #ff69c7; --theme-glow: #f347ad; --theme-soft: #ffd0ed; --theme-rgb: 255, 105, 199; }
.game[data-theme="yellow"] { --theme-line: #ffe16b; --theme-glow: #e8ba35; --theme-soft: #fff0a8; --theme-rgb: 255, 225, 107; }
.game :focus-visible { outline: 2px solid var(--theme-soft); outline-offset: 3px; }
.game::before { content: ""; position: fixed; inset: 0; z-index: 1; pointer-events: none; background: radial-gradient(circle at 50% 42%, rgba(var(--theme-rgb), .08), transparent 38%); transition: background .25s ease; }
.game::after { content: ""; position: fixed; inset: 0; z-index: 2; pointer-events: none; background: repeating-linear-gradient(0deg, rgba(255,255,255,.018) 0 1px, transparent 1px 4px); mix-blend-mode: screen; }
.game__canvas { position: fixed; inset: 0; width: 100%; height: 100%; z-index: 0; }
.hud { position: fixed; inset: 0 0 auto; z-index: 3; display: flex; align-items: center; gap: clamp(24px, 5vw, 90px); min-height: 96px; padding: 18px clamp(24px, 4vw, 58px); border-bottom: 1px solid rgba(var(--theme-rgb), .3); background: linear-gradient(180deg, rgba(2,7,17,.92), rgba(2,7,17,.58)); font-size: clamp(.7rem, 1.2vw, .84rem); letter-spacing: .12em; opacity: 0; pointer-events: none; transform: translateY(-112%); transition: transform .42s cubic-bezier(.2,.8,.2,1), opacity .2s ease; }.hud.hud--visible { opacity: 1; pointer-events: auto; transform: translateY(0); }.hud__metrics { display: grid; flex: 1; grid-template-columns: repeat(5, minmax(70px, 1fr)); gap: clamp(10px, 2vw, 34px); }.hud__actions { display: flex; align-items: center; gap: 10px; }
.hud__brand { font-family: var(--font-display); font-weight: 700; color: #d6faff; white-space: nowrap; }.hud__brand span { color: var(--theme-line); text-shadow: 0 0 13px var(--theme-glow); }.hud__metric { display: grid; gap: 5px; min-width: 0; text-align: center; }.hud__label { color: #86a4b5; font-size: clamp(.58rem, .9vw, .74rem); font-weight: 700; }.hud output { color: var(--theme-soft); font-size: clamp(.8rem, 1.3vw, 1.1rem); font-weight: 700; letter-spacing: .1em; text-shadow: 0 0 10px rgba(var(--theme-rgb), .35); }
.screen { position: fixed; inset: 0; z-index: 5; display: grid; place-content: center; justify-items: center; padding: 100px 24px 120px; text-align: center; background: radial-gradient(circle at center, rgba(var(--theme-rgb), .13), rgba(2,7,17,.88) 52%); }.screen[hidden] { display: none; }
.screen__eyebrow { margin: 0; color: var(--theme-line); font-size: .72rem; letter-spacing: .28em; text-shadow: 0 0 12px var(--theme-glow); }.screen h1, .screen h2 { margin: 12px 0 16px; font-family: var(--font-display); font-size: clamp(2.4rem, 8vw, 6.8rem); line-height: .9; letter-spacing: .06em; }.screen h1 span { color: var(--theme-line); text-shadow: 0 0 28px var(--theme-glow); }.screen h2 { font-size: clamp(2rem, 5vw, 4rem); }.screen__lede { max-width: 38ch; margin: 0; color: #adc2cf; }
.menu-actions { display: grid; gap: 9px; width: min(360px, 100%); margin-top: 28px; }.button { position: relative; display: flex; align-items: center; gap: 14px; width: 100%; min-height: 52px; padding: 14px 18px; border: 1px solid rgba(var(--theme-rgb), .38); background: linear-gradient(100deg, rgba(var(--theme-rgb), .1), rgba(2,7,17,.68)); color: #dff5ef; font-family: var(--font-primary); font-weight: 700; letter-spacing: .13em; cursor: pointer; text-align: left; transition: transform .15s ease, border-color .15s ease, background .15s ease, box-shadow .15s ease; clip-path: polygon(0 0, calc(100% - 13px) 0, 100% 13px, 100% 100%, 13px 100%, 0 calc(100% - 13px)); }.button:hover, .button:focus-visible { transform: translateX(5px); border-color: var(--theme-line); background: linear-gradient(100deg, rgba(var(--theme-rgb), .26), rgba(2,7,17,.8)); box-shadow: -5px 0 0 var(--theme-line), 0 0 24px rgba(var(--theme-rgb), .2); outline: none; }.button--primary { border-color: var(--theme-line); background: linear-gradient(100deg, rgba(var(--theme-rgb), .48), rgba(var(--theme-rgb), .16)); box-shadow: -5px 0 0 var(--theme-line), 0 0 26px rgba(var(--theme-rgb), .3); }.button__signal { display: grid; place-items: center; width: 22px; color: var(--theme-line); font-family: var(--font-display); font-size: .78rem; }.button--primary .button__signal { color: #06110c; background: var(--theme-line); border-radius: 1px; }.screen__controls { margin-top: 26px; color: #819cab; font-size: .75rem; line-height: 1.8; } kbd { padding: 2px 5px; border: 1px solid rgba(var(--theme-rgb), .5); border-radius: 2px; color: var(--theme-soft); font: inherit; }
.mission-picker { margin-top: 28px; }.mission-option { display: grid; grid-template-columns: 22px 1fr 22px; justify-items: center; gap: 0; text-align: center; }.mission-option .button__signal { width: 22px; }.mission-option__copy { display: grid; gap: 2px; justify-items: center; line-height: 1; }.mission-option__copy strong { font: inherit; }.mission-option__copy small { color: #98b1bd; font-size: .62rem; font-weight: 700; letter-spacing: .16em; }.mission-option__balance { width: 22px; }.mission-option:hover, .mission-option:focus-visible, .mission-option[aria-pressed="true"] { border-color: var(--theme-line); background: linear-gradient(100deg, rgba(var(--theme-rgb), .26), rgba(2,7,17,.8)); box-shadow: -5px 0 0 var(--theme-line), 0 0 24px rgba(var(--theme-rgb), .2); outline: none; }.menu-actions--settings { margin-top: .8rem; }
.theme-picker { display: grid; gap: 8px; width: min(420px, 100%); margin: 18px 0 0; padding: 16px; border: 1px solid rgba(var(--theme-rgb), .3); background: rgba(2,7,17,.58); text-align: left; }.theme-picker legend { padding: 0 8px; color: var(--theme-line); font-size: .7rem; letter-spacing: .16em; }.theme-option { display: flex; align-items: center; gap: 12px; width: 100%; min-height: 45px; padding: 9px 11px; border: 1px solid transparent; background: transparent; color: #dceff5; font: inherit; font-size: .78rem; letter-spacing: .08em; cursor: pointer; text-align: left; }.theme-option:hover, .theme-option:focus-visible, .theme-option[aria-pressed="true"] { border-color: var(--theme-line); background: rgba(var(--theme-rgb), .12); outline: none; }.theme-swatch { width: 16px; height: 16px; border-radius: 50%; box-shadow: 0 0 12px currentColor; }.theme-swatch--green { color: #00ff88; background: currentColor; }.theme-swatch--pink { color: #ff69c7; background: currentColor; }.theme-swatch--yellow { color: #ffe16b; background: currentColor; }.theme-option small { display: block; margin-top: 3px; color: #839fae; font-size: .62rem; letter-spacing: .04em; }
.theme-swatch--cyan { color: #65f4ff; background: currentColor; }
.audio-settings label { display: grid; grid-template-columns: minmax(120px, 1fr) minmax(120px, 1.4fr); align-items: center; gap: 12px; color: #dceff5; font-size: .7rem; letter-spacing: .08em; }.audio-settings input { width: 100%; accent-color: var(--theme-line); }
.pause, .audio-toggle { display: grid; place-items: center; width: 42px; height: 42px; border: 1px solid rgba(var(--theme-rgb), .62); border-radius: 50%; background: rgba(2,7,17,.7); color: var(--theme-soft); cursor: pointer; }.pause { font-size: 1.25rem; }.pause[hidden], .audio-toggle[hidden] { display: none; }.game__hint { position: fixed; top: 44%; left: 0; right: 0; z-index: 4; margin: 0; color: var(--theme-soft); font-family: var(--font-display); font-size: clamp(1rem, 3vw, 2rem); letter-spacing: .18em; text-align: center; text-shadow: 0 0 16px var(--theme-glow); pointer-events: none; }
.audio-toggle[aria-pressed="true"] { opacity: .55; }
.reinforcement-countdown { position: fixed; top: calc(44% + 48px); left: 50%; z-index: 4; margin: 0; padding: 6px 12px; transform: translateX(-50%); border: 1px solid rgba(var(--theme-rgb), .52); background: rgba(2,7,17,.72); color: var(--theme-line); font-family: var(--font-primary); font-size: clamp(.68rem, 1.3vw, .84rem); font-weight: 700; letter-spacing: .16em; text-shadow: 0 0 10px var(--theme-glow); pointer-events: none; }
.reinforcement-countdown:empty { display: none; }
.wave-intro { position: fixed; inset: 0; z-index: 6; display: grid; place-content: center; justify-items: center; gap: 8px; background: radial-gradient(circle, rgba(var(--theme-rgb), .14), rgba(2,7,17,.78) 48%); text-align: center; pointer-events: none; }.wave-intro[hidden] { display: none; }.wave-intro__count { margin: 0; color: var(--theme-soft); font-family: var(--font-display); font-size: clamp(5rem, 16vw, 10rem); line-height: .8; text-shadow: 0 0 36px var(--theme-glow); }.wave-intro__detail { margin: 0; color: var(--theme-line); font-size: .72rem; letter-spacing: .2em; }
.tutorial-hint { position: fixed; z-index: 5; bottom: 8rem; left: 50%; max-width: min(92vw, 42rem); margin: 0; padding: .8rem 1rem; transform: translateX(-50%); border: 1px solid rgba(var(--theme-rgb), .7); background: rgba(2, 7, 17, .86); color: var(--theme-soft); font: 700 .72rem/1.4 var(--font-primary); letter-spacing: .12em; text-align: center; box-shadow: 0 0 24px rgba(var(--theme-rgb), .18); pointer-events: none; }.tutorial-hint[hidden] { display: none; }
.upgrade-screen { align-content: center; gap: clamp(2rem, 4vh, 3.3rem); }.upgrade-screen h2 { margin: 0; }.upgrade-options { display: grid; width: min(92vw, 40rem); grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(1rem, 2vw, 1.5rem); justify-content: center; }.upgrade-option { display: grid; align-content: center; justify-items: center; min-height: 11.5rem; padding: 1.35rem; border: 1px solid rgba(var(--theme-rgb), .52); background: linear-gradient(145deg, rgba(var(--theme-rgb), .14), rgba(2, 7, 17, .86)); color: var(--theme-soft); font-family: var(--font-primary); text-align: center; cursor: pointer; transition: transform .16s ease, border-color .16s ease, box-shadow .16s ease; }.upgrade-option:hover, .upgrade-option:focus-visible { transform: translateY(-3px); border-color: var(--theme-line); box-shadow: 0 0 24px rgba(var(--theme-rgb), .32); outline: none; }.upgrade-option strong, .upgrade-option small { display: block; }.upgrade-option strong { margin: 0 0 1rem; color: var(--theme-line); font-family: var(--font-display); font-size: clamp(1.45rem, 2vw, 1.85rem); line-height: 1.05; letter-spacing: .045em; text-shadow: 0 0 14px rgba(var(--theme-rgb), .32); }.upgrade-option small { max-width: 25ch; color: var(--theme-soft); font-size: clamp(.72rem, 1vw, .82rem); line-height: 1.6; }
.victory-screen { overflow: hidden; perspective: 900px; }.victory-crawl { display: grid; justify-items: center; animation: victory-arrival 7s cubic-bezier(.16,.82,.22,1) both; }.victory-crawl .menu-actions { animation: victory-actions .7s ease 4.9s both; }.victory__status { color: var(--theme-line); font-family: var(--font-display); font-size: clamp(.95rem, 2vw, 1.35rem); letter-spacing: .12em; text-shadow: 0 0 16px var(--theme-glow); }.victory-crawl .screen__lede + .screen__lede { margin-top: .65rem; }@keyframes victory-arrival { 0% { opacity: 0; transform: translateY(82vh) scale(.72); } 14% { opacity: 1; } 78%, 100% { opacity: 1; transform: translateY(0) scale(1); } }@keyframes victory-actions { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: translateY(0); } }
@media (max-width: 680px) { .hud { min-height: 78px; gap: 16px; padding: 12px 16px; }.hud__brand { display: none; }.hud__metrics { gap: 8px; }.hud__metric { min-width: 0; }.hud__label { font-size: .48rem; }.hud output { font-size: .66rem; }.upgrade-options { grid-template-columns: 1fr; }.upgrade-option { min-height: auto; }.tutorial-hint { bottom: 6rem; font-size: .64rem; } }
.touch-controls { position: fixed; inset: auto 0 max(16px, env(safe-area-inset-bottom)); z-index: 4; display: none; align-items: end; justify-content: space-between; padding: 0 max(18px, env(safe-area-inset-right)) 0 max(18px, env(safe-area-inset-left)); pointer-events: none; }.flight-stick, .touch-action { pointer-events: auto; touch-action: none; -webkit-user-select: none; user-select: none; }.flight-stick { position: relative; display: grid; place-items: center; width: 132px; height: 132px; border: 1px solid rgba(var(--theme-rgb), .42); border-radius: 50%; background: radial-gradient(circle, rgba(var(--theme-rgb), .16), rgba(2,7,17,.3) 55%, rgba(2,7,17,.04) 71%); box-shadow: inset 0 0 22px rgba(var(--theme-rgb), .08), 0 0 20px rgba(var(--theme-rgb), .1); }.flight-stick::before { content: ""; position: absolute; inset: 13px; border: 1px solid rgba(var(--theme-rgb), .18); border-radius: 50%; }.flight-stick__label { position: absolute; top: 18px; color: rgba(var(--theme-rgb), .82); font-size: .55rem; font-weight: 700; letter-spacing: .2em; }.flight-stick__axis { position: absolute; background: rgba(var(--theme-rgb), .18); }.flight-stick__axis--horizontal { width: 70px; height: 1px; }.flight-stick__axis--vertical { width: 1px; height: 70px; }.flight-stick__thumb { position: absolute; width: 46px; height: 46px; border: 1px solid var(--theme-line); border-radius: 50%; background: rgba(var(--theme-rgb), .15); box-shadow: 0 0 14px rgba(var(--theme-rgb), .24); transition: transform .06s linear, background .12s ease, box-shadow .12s ease; }.flight-stick--active .flight-stick__thumb { background: rgba(var(--theme-rgb), .3); box-shadow: 0 0 22px rgba(var(--theme-rgb), .5); }.touch-actions { display: grid; gap: 12px; }.touch-action { display: grid; place-items: center; gap: 3px; width: 86px; height: 86px; border: 1px solid rgba(var(--theme-rgb), .62); border-radius: 50%; background: radial-gradient(circle, rgba(var(--theme-rgb), .26), rgba(3,26,42,.5) 65%); color: var(--theme-soft); box-shadow: inset 0 0 18px rgba(var(--theme-rgb), .12), 0 0 20px rgba(var(--theme-rgb), .12); font: inherit; cursor: pointer; }.touch-action span { color: var(--theme-line); font-family: var(--font-display); font-size: 1.55rem; line-height: 1; text-shadow: 0 0 13px var(--theme-glow); }.touch-action small { font-size: .5rem; font-weight: 700; letter-spacing: .12em; }.touch-boost { border-color: rgba(var(--theme-rgb), .42); background: radial-gradient(circle, rgba(var(--theme-rgb), .16), rgba(3,26,42,.43) 65%); }.touch-boost--active, .touch-fire--active { border-color: var(--theme-line); background: rgba(var(--theme-rgb), .43); box-shadow: 0 0 28px rgba(var(--theme-rgb), .48), inset 0 0 18px rgba(var(--theme-rgb), .24); transform: scale(.96); }
@media (max-width: 700px) { .hud { grid-template-columns: 1fr 1fr; gap: 12px; padding: 15px 16px; }.hud__brand { grid-column: 1 / -1; }.screen__controls { font-size: .67rem; }.game__hint { top: 38%; }.screen h1 { font-size: clamp(2.6rem, 17vw, 4rem); } }
.game--touch { touch-action: none; overscroll-behavior: none; }.game--touch .hud { top: max(8px, env(safe-area-inset-top)); right: 10px; left: 10px; min-height: 75px; padding: 9px 12px 11px; gap: 0; border: 1px solid rgba(var(--theme-rgb), .32); border-top-color: rgba(var(--theme-rgb), .68); background: linear-gradient(180deg, rgba(2,7,17,.9), rgba(2,7,17,.46)); clip-path: polygon(12px 0, calc(100% - 12px) 0, 100% 12px, 100% 100%, 0 100%, 0 12px); }.game--touch .hud::before, .game--touch .hud::after { content: ""; position: absolute; top: 100%; width: 27%; height: 20px; border-top: 1px solid rgba(var(--theme-rgb), .26); }.game--touch .hud::before { left: 0; border-left: 1px solid rgba(var(--theme-rgb), .18); }.game--touch .hud::after { right: 0; border-right: 1px solid rgba(var(--theme-rgb), .18); }.game--touch .hud__brand { display: none; }.game--touch .hud__metrics { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); grid-template-rows: repeat(2, auto); width: 100%; gap: 7px 4px; }.game--touch .hud__metric { gap: 2px; }.game--touch .hud__label { color: rgba(181,217,227,.72); font-size: clamp(.44rem, 1.8vw, .58rem); letter-spacing: .11em; }.game--touch .hud output { font-size: clamp(.64rem, 2.4vw, .84rem); letter-spacing: .04em; }.game--touch .touch-controls { display: flex; }.game--touch .pause { right: max(18px, env(safe-area-inset-right)); bottom: calc(max(16px, env(safe-area-inset-bottom)) + 214px); width: 45px; height: 45px; background: rgba(2,7,17,.45); }.game--touch .audio-toggle { left: max(18px, env(safe-area-inset-left)); bottom: calc(max(16px, env(safe-area-inset-bottom)) + 144px); background: rgba(2,7,17,.45); }.game--touch .tutorial-hint { bottom: 158px; max-width: calc(100vw - 42px); }.game--touch .reinforcement-countdown { top: 31%; }.game--touch .screen { padding: 94px 20px 34px; }.game--touch .screen__controls p:first-child, .game--touch .screen__controls p:nth-child(2) { display: none; }.game--touch .screen__controls p:last-child { font-size: .72rem; }
@media (orientation: landscape) { .game--touch .hud { right: max(12px, env(safe-area-inset-right)); left: max(12px, env(safe-area-inset-left)); padding: 7px 14px 9px; }.game--touch .hud__metrics { grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 8px; }.game--touch .flight-stick { width: 112px; height: 112px; }.game--touch .touch-action { width: 72px; height: 72px; }.game--touch .touch-actions { grid-auto-flow: column; gap: 10px; }.game--touch .touch-controls { bottom: max(12px, env(safe-area-inset-bottom)); }.game--touch .pause { bottom: 108px; }.game--touch .audio-toggle { bottom: 126px; }.game--touch .tutorial-hint { bottom: 116px; }.game--touch .screen { padding-top: 72px; }.game--touch .screen h1 { font-size: clamp(2.4rem, 10vw, 4.6rem); }.game--touch .menu-actions { margin-top: 16px; }.game--touch .screen__controls { margin-top: 14px; } }

/* Cabina táctil: la telemetría flota arriba y el estado de combate queda entre los mandos. */
.game--touch .hud { top: max(10px, env(safe-area-inset-top)); right: max(14px, env(safe-area-inset-right)); left: max(14px, env(safe-area-inset-left)); justify-content: space-between; align-items: flex-start; min-height: 0; padding: 0; border: 0; background: none; clip-path: none; }.game--touch .hud::before, .game--touch .hud::after { display: none; }.game--touch .hud__metrics { flex: 0 1 auto; width: auto; grid-template-columns: repeat(3, minmax(0, auto)); grid-template-rows: none; gap: 4px clamp(10px, 3vw, 18px); padding: 8px 10px; border: 1px solid rgba(var(--theme-rgb), .3); border-top-color: rgba(var(--theme-rgb), .68); background: linear-gradient(180deg, rgba(2,7,17,.9), rgba(2,7,17,.48)); clip-path: polygon(8px 0, 100% 0, 100% calc(100% - 8px), calc(100% - 8px) 100%, 0 100%, 0 8px); }.game--touch .hud__metric--combat { display: none; }.game--touch .hud__label { font-size: clamp(.42rem, 1.8vw, .56rem); }.game--touch .hud output { font-size: clamp(.62rem, 2.5vw, .8rem); }.game--touch .hud__actions { gap: 8px; }.game--touch .hud .pause, .game--touch .hud .audio-toggle { position: static; width: 39px; height: 39px; margin: 0; background: rgba(2,7,17,.78); }.game--touch .touch-controls { display: grid; grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr); align-items: end; }.game--touch .flight-stick { justify-self: start; }.game--touch .touch-actions { justify-self: end; }.touch-status { display: grid; align-self: center; justify-items: center; gap: 8px; min-width: 92px; color: var(--theme-soft); text-align: center; text-shadow: 0 0 10px rgba(var(--theme-rgb), .35); }.touch-status__metric { display: grid; gap: 2px; }.touch-status__metric span { color: rgba(181,217,227,.72); font-size: .48rem; font-weight: 700; letter-spacing: .13em; }.touch-status__metric output { color: var(--theme-soft); font-size: .76rem; font-weight: 700; letter-spacing: .08em; }.game--touch .pause, .game--touch .audio-toggle { bottom: auto; left: auto; right: auto; }.game--touch .audio-toggle { background: rgba(2,7,17,.78); }.game--touch .tutorial-hint { bottom: 208px; }
@media (orientation: landscape) { .game--touch .hud { top: max(8px, env(safe-area-inset-top)); right: max(12px, env(safe-area-inset-right)); left: max(12px, env(safe-area-inset-left)); padding: 0; }.game--touch .hud__metrics { grid-template-columns: repeat(3, auto); padding: 6px 10px; }.game--touch .hud__actions { gap: 7px; }.game--touch .hud .pause, .game--touch .hud .audio-toggle { width: 35px; height: 35px; }.game--touch .touch-controls { bottom: max(12px, env(safe-area-inset-bottom)); }.game--touch .touch-actions { grid-auto-flow: column; gap: 10px; }.game--touch .touch-status { grid-auto-flow: column; gap: 14px; }.game--touch .tutorial-hint { bottom: 132px; }
@media (prefers-reduced-motion: reduce) { .victory-crawl, .victory-crawl .menu-actions { animation-duration: .01ms; animation-delay: 0ms; } }
