@import url('https://fonts.googleapis.com/css2?family=Barlow+Condensed:wght@400;500;600;700;800&family=Space+Mono:wght@400;700&display=swap');

:root { --ink: #f4f1ff; --muted: #9292b5; --bg: #080a18; --panel: #10132a; --line: rgba(151, 147, 221, .19); --cyan: #5df5ed; --pink: #ff4f9a; --yellow: #ffd166; --purple: #9a7bff; }
* { box-sizing: border-box; }
html, body { margin: 0; min-height: 100%; background: var(--bg); color: var(--ink); }
body { font-family: 'Barlow Condensed', sans-serif; background-image: radial-gradient(ellipse at 73% 9%, rgba(79, 53, 156, .24), transparent 34%), radial-gradient(ellipse at 16% 78%, rgba(12, 108, 137, .1), transparent 30%); }
button, input { font: inherit; }
button { cursor: pointer; }
.app-shell { width: min(1360px, calc(100% - 48px)); margin: 0 auto; padding: 32px 0 24px; }
.topbar { display: flex; justify-content: space-between; align-items: center; padding-bottom: 30px; border-bottom: 1px solid var(--line); }
.brand-lockup { display: flex; align-items: center; gap: 15px; }
.brand-mark { position: relative; width: 38px; height: 38px; transform: rotate(45deg); }
.brand-mark span { position: absolute; display: block; background: var(--cyan); box-shadow: 0 0 14px var(--cyan); }
.brand-mark span:nth-child(1) { width: 5px; height: 38px; left: 17px; }.brand-mark span:nth-child(2) { width: 38px; height: 5px; top: 17px; background: var(--pink); box-shadow: 0 0 14px var(--pink); }.brand-mark span:nth-child(3) { width: 12px; height: 12px; top: 13px; left: 13px; background: #fff; box-shadow: 0 0 18px #fff; }
.eyebrow { margin: 0 0 3px; color: var(--cyan); font: 700 10px/1.2 'Space Mono', monospace; letter-spacing: .18em; }
h1, h2, p { margin-top: 0; } h1 { margin: 0; font-size: 29px; line-height: .9; letter-spacing: .07em; font-weight: 800; } h1 em { color: var(--pink); font-style: normal; }
.icon-button { border: 1px solid var(--line); border-radius: 4px; color: var(--muted); background: rgba(16, 19, 42, .74); padding: 10px 13px; text-transform: uppercase; letter-spacing: .12em; font: 700 10px 'Space Mono', monospace; transition: border-color .2s, color .2s; }.icon-button strong { color: var(--cyan); margin-left: 4px; }.icon-button:hover, .icon-button[aria-pressed=true] { border-color: var(--cyan); color: var(--ink); }
.dashboard { display: grid; grid-template-columns: 1fr 1.35fr 1fr; gap: 12px; margin: 20px 0; }.stat-card { background: rgba(16, 19, 42, .75); border: 1px solid var(--line); border-left: 3px solid var(--purple); padding: 12px 18px 14px; display: flex; align-items: baseline; justify-content: space-between; min-height: 63px; }.stat-card:first-child { border-left-color: var(--cyan); }.lives-card { border-left-color: var(--pink); }.stat-label { color: var(--muted); font: 10px 'Space Mono', monospace; text-transform: uppercase; letter-spacing: .12em; }.stat-card strong { color: var(--ink); font: 700 22px 'Space Mono', monospace; letter-spacing: .06em; }.score-card strong { color: var(--cyan); }.lives-card strong { color: var(--pink); font-size: 17px; letter-spacing: .13em; }.wave-card strong { color: var(--yellow); }
.play-layout { display: grid; grid-template-columns: minmax(0, 1fr) 316px; gap: 20px; align-items: start; }.game-column { min-width: 0; }.canvas-frame { position: relative; overflow: hidden; padding: 4px; border: 1px solid rgba(93, 245, 237, .4); background: #090c20; box-shadow: 0 0 0 1px rgba(255, 79, 154, .12), 0 22px 80px rgba(0,0,0,.38); }.canvas-frame::before { content: ''; position: absolute; inset: 0; pointer-events: none; background: linear-gradient(120deg, rgba(93,245,237,.04), transparent 35%, rgba(255,79,154,.04)); }.canvas-frame canvas { display: block; width: 100%; height: auto; aspect-ratio: 8 / 5; background: #090c20; }
.frame-corner { position: absolute; width: 13px; height: 13px; z-index: 3; border-color: var(--cyan); border-style: solid; }.corner-tl { top: -1px; left: -1px; border-width: 2px 0 0 2px; }.corner-tr { top: -1px; right: -1px; border-width: 2px 2px 0 0; }.corner-bl { bottom: -1px; left: -1px; border-width: 0 0 2px 2px; }.corner-br { bottom: -1px; right: -1px; border-width: 0 2px 2px 0; }
.scanline { position: absolute; left: 5px; right: 5px; top: 5px; height: 1px; opacity: .18; background: var(--cyan); box-shadow: 0 0 7px var(--cyan); animation: scan 5s linear infinite; pointer-events: none; }.game-overlay { position: absolute; inset: 4px; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; background: radial-gradient(ellipse, rgba(15, 19, 52, .82), rgba(7, 9, 24, .96) 72%); }.game-overlay.is-hidden { display: none; }.overlay-kicker { margin-bottom: 13px; color: var(--cyan); font: 700 11px 'Space Mono', monospace; letter-spacing: .24em; }.overlay-kicker.danger { color: var(--pink); }.game-overlay h2 { margin: 0 0 13px; font-size: clamp(46px, 6vw, 70px); font-weight: 800; line-height: .83; letter-spacing: -.025em; text-transform: uppercase; }.game-overlay h2 span { color: var(--pink); text-shadow: 0 0 26px rgba(255,79,154,.55); }.overlay-copy { max-width: 300px; margin-bottom: 25px; color: #b4b1ce; font-size: 16px; line-height: 1.15; }.primary-button { border: 0; border-radius: 3px; background: var(--cyan); color: #08111d; padding: 13px 19px; font: 800 13px 'Space Mono', monospace; text-transform: uppercase; letter-spacing: .05em; box-shadow: 0 0 24px rgba(93,245,237,.26); transition: transform .18s, background .18s, box-shadow .18s; }.primary-button span { margin-left: 10px; font-size: 18px; }.primary-button:hover { background: #9bfff8; box-shadow: 0 0 31px rgba(93,245,237,.5); transform: translateY(-2px); }.primary-button:disabled { opacity: .55; cursor: wait; transform: none; }.control-hint { color: #777895; font: 10px 'Space Mono', monospace; margin: 20px 0 0; text-transform: uppercase; letter-spacing: .03em; }.control-hint kbd { color: var(--ink); padding: 4px 5px; border: 1px solid #4b4d72; border-radius: 2px; font-size: 9px; }.control-hint i { color: var(--pink); font-style: normal; padding: 0 6px; }
.final-line { margin: 0 0 23px; color: var(--muted); font: 11px 'Space Mono', monospace; text-transform: uppercase; letter-spacing: .1em; }.final-line strong { display: block; color: var(--yellow); font-size: 25px; line-height: 1.4; letter-spacing: .04em; }.gameover-overlay { justify-content: center; }.gameover-overlay h2 { font-size: clamp(42px, 5vw, 61px); }.gameover-overlay form { width: min(390px, 86%); text-align: left; }.gameover-overlay label { display: block; margin-bottom: 6px; color: var(--muted); font: 10px 'Space Mono', monospace; letter-spacing: .08em; text-transform: uppercase; }.name-row { display: flex; gap: 7px; }.name-row input { min-width: 0; flex: 1; border: 1px solid #44466e; border-radius: 3px; outline: 0; background: rgba(5, 7, 22, .85); color: var(--ink); padding: 11px; font: 12px 'Space Mono', monospace; text-transform: uppercase; }.name-row input:focus { border-color: var(--cyan); box-shadow: 0 0 0 2px rgba(93,245,237,.15); }.compact { padding: 10px 13px; font-size: 11px; }.form-note { min-height: 14px; margin: 7px 0 0; color: #777895; font: 9px 'Space Mono', monospace; }.form-note.error { color: #ff82af; }.form-note.success { color: var(--cyan); }.text-button { border: 0; background: transparent; color: var(--muted); padding: 13px; margin-top: 8px; font: 11px 'Space Mono', monospace; }.text-button:hover { color: var(--ink); }
.touch-controls { display: none; justify-content: space-between; align-items: center; padding: 14px 3px 2px; user-select: none; touch-action: none; }.touch-pad { text-align: center; }.touch-pad > button, .touch-pad div button { width: 38px; height: 34px; margin: 2px; border: 1px solid #373a66; border-radius: 4px; color: var(--cyan); background: #11142d; }.touch-pad div { display: flex; }.touch-pad button:active, .touch-pad button.is-pressed { background: #243453; border-color: var(--cyan); }.fire-button { width: 82px; height: 82px; border: 1px solid var(--pink); border-radius: 50%; color: var(--pink); background: rgba(70, 17, 55, .42); font: 700 11px 'Space Mono', monospace; box-shadow: inset 0 0 20px rgba(255,79,154,.13); }.fire-button span { display: block; font-size: 17px; margin-top: 3px; }.fire-button:active, .fire-button.is-pressed { background: var(--pink); color: #21091d; }
.status-strip { display: flex; align-items: center; gap: 8px; padding: 11px 4px; color: #70718f; font: 9px 'Space Mono', monospace; text-transform: uppercase; letter-spacing: .05em; }.live-dot { width: 6px; height: 6px; border-radius: 50%; background: var(--cyan); box-shadow: 0 0 8px var(--cyan); }.status-divider { color: var(--pink); }
.leaderboard-panel { min-height: 451px; padding: 23px 20px 18px; border: 1px solid var(--line); background: linear-gradient(145deg, rgba(23, 25, 56, .86), rgba(11, 13, 32, .9)); }.panel-heading { display: flex; justify-content: space-between; align-items: start; }.panel-heading h2 { margin: 0; font-size: 29px; line-height: 1; letter-spacing: .01em; }.online-pill { margin-top: 4px; color: var(--cyan); font: 9px 'Space Mono', monospace; letter-spacing: .07em; }.online-pill i { display: inline-block; width: 5px; height: 5px; margin-right: 4px; border-radius: 50%; background: var(--cyan); box-shadow: 0 0 8px var(--cyan); }.panel-intro { margin: 10px 0 18px; color: var(--muted); font-size: 15px; }.leaderboard-wrap { min-height: 282px; }.leaderboard-list { list-style: none; padding: 0; margin: 0; }.leaderboard-row { display: grid; grid-template-columns: 32px 1fr auto; gap: 7px; align-items: center; min-height: 42px; border-top: 1px solid rgba(151,147,221,.12); }.rank { color: #66678a; font: 11px 'Space Mono', monospace; }.leaderboard-row:nth-child(1) .rank, .leaderboard-row:nth-child(2) .rank, .leaderboard-row:nth-child(3) .rank { color: var(--pink); }.pilot { overflow: hidden; color: #dcdaed; font: 600 16px 'Space Mono', monospace; text-overflow: ellipsis; white-space: nowrap; }.leader-score { color: var(--cyan); font: 700 13px 'Space Mono', monospace; }.leaderboard-loading span { display: block; height: 34px; margin-bottom: 8px; background: linear-gradient(90deg, rgba(110,112,161,.1), rgba(110,112,161,.27), rgba(110,112,161,.1)); background-size: 200% 100%; animation: shimmer 1.4s infinite; }.empty-state, .error-state { padding: 68px 14px; text-align: center; color: var(--muted); font-size: 16px; }.error-state { color: #ff8cb4; }.leaderboard-footer { display: flex; justify-content: space-between; padding-top: 13px; color: #656682; font: 9px 'Space Mono', monospace; letter-spacing: .08em; }.privacy-note { margin: 11px 0 0; color: #565775; font: 9px 'Space Mono', monospace; }.footer { display: flex; justify-content: space-between; margin-top: 24px; color: #595a78; font: 9px 'Space Mono', monospace; letter-spacing: .09em; }.footer b { color: var(--pink); font-weight: 400; padding: 0 6px; }
@keyframes scan { from { transform: translateY(0); } to { transform: translateY(560px); } } @keyframes shimmer { to { background-position: -200% 0; } }
@media (max-width: 900px) { .app-shell { width: min(100% - 28px, 680px); padding-top: 20px; }.play-layout { grid-template-columns: 1fr; }.leaderboard-panel { min-height: 0; }.leaderboard-wrap { min-height: 260px; }.touch-controls { display: flex; }.footer { display: none; } }
@media (max-width: 520px) { .app-shell { width: calc(100% - 20px); }.topbar { padding-bottom: 20px; }.brand-mark { transform: scale(.8) rotate(45deg); margin-left: -4px; margin-right: -3px; }.eyebrow { font-size: 8px; }.brand-lockup h1 { font-size: 23px; }.icon-button { padding: 8px; font-size: 9px; }.dashboard { gap: 5px; margin: 12px 0; }.stat-card { display: block; padding: 8px 9px; min-height: 57px; }.stat-label { display: block; font-size: 8px; margin-bottom: 6px; }.stat-card strong { font-size: 15px; }.lives-card strong { font-size: 12px; }.status-strip { font-size: 7px; gap: 5px; }.game-overlay h2 { font-size: 44px; }.overlay-copy { max-width: 245px; font-size: 14px; margin-bottom: 17px; }.control-hint { margin-top: 15px; font-size: 8px; }.panel-heading h2 { font-size: 26px; } }
