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

:root { color-scheme: dark; --ink: #f2f5f7; --muted: #91a0b2; --lime: #c9ff65; --panel: rgba(9, 18, 32, .74); }
* { box-sizing: border-box; }
html, body { margin: 0; min-height: 100%; background: #070e1a; font-family: 'Space Grotesk', sans-serif; color: var(--ink); overflow: hidden; overscroll-behavior: none; }
body { min-height: 100svh; }
.game-shell { position: relative; width: 100vw; height: 100svh; min-height: 560px; overflow: hidden; background: radial-gradient(circle at 50% 40%, #142b3c 0, #081321 42%, #050a12 100%); }
#arena { position: absolute; inset: 0; width: 100%; height: 100%; cursor: crosshair; touch-action: none; }
.grain { pointer-events: none; position: absolute; inset: 0; opacity: .09; background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 180 180' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.8' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='.3'/%3E%3C/svg%3E"); mix-blend-mode: screen; }
.hud { position: absolute; z-index: 2; top: 0; left: 0; width: 100%; display: flex; align-items: center; justify-content: space-between; padding: max(18px, env(safe-area-inset-top)) max(18px, env(safe-area-inset-right)) 18px max(18px, env(safe-area-inset-left)); pointer-events: none; }
.brand { display: flex; align-items: center; gap: 10px; font: 500 12px 'DM Mono', monospace; letter-spacing: .14em; }
.brand-dot { width: 10px; height: 10px; border-radius: 50%; background: var(--lime); box-shadow: 0 0 18px var(--lime); }
.hud-stats { display: flex; gap: 30px; text-align: right; }
.hud-stats div { display: flex; flex-direction: column; gap: 2px; }
.label, .controls, .eyebrow, .tip { font: 500 10px 'DM Mono', monospace; letter-spacing: .16em; color: var(--muted); }
.hud-stats strong { font-size: 18px; font-weight: 600; }
.combo-stat strong { color: var(--lime); }
.icon-button { pointer-events: auto; border: 1px solid rgba(255,255,255,.22); border-radius: 50%; background: rgba(5,12,22,.3); color: #fff; width: 38px; height: 38px; font: 16px 'DM Mono'; cursor: pointer; }
.overlay-card { position: absolute; z-index: 3; left: 50%; top: 50%; transform: translate(-50%, -48%); width: min(450px, calc(100% - 32px)); padding: 30px 26px 26px; border: 1px solid rgba(199, 255, 101, .26); border-radius: 20px; background: var(--panel); backdrop-filter: blur(16px); box-shadow: 0 25px 90px rgba(0,0,0,.38); text-align: left; }
.overlay-card h1, .overlay-card h2 { margin: 12px 0 20px; font-size: clamp(44px, 7vw, 72px); line-height: .91; letter-spacing: -.065em; font-weight: 600; }
.overlay-card h2 { font-size: clamp(34px, 6vw, 54px); }
.overlay-card em { color: var(--lime); font-style: normal; }
.intro-copy { max-width: 320px; margin: 0 0 28px; color: #bac6d2; line-height: 1.5; font-size: 14px; }
.primary-button { border: 0; padding: 15px 18px; border-radius: 6px; background: var(--lime); color: #0b1619; font: 600 12px 'DM Mono', monospace; letter-spacing: .08em; cursor: pointer; transition: transform .2s, box-shadow .2s; }
.primary-button:hover { transform: translateY(-2px); box-shadow: 0 10px 25px rgba(201,255,101,.2); }
.primary-button span { margin-left: 18px; font-size: 16px; }
.controls { margin: 28px 0 0; font-size: 9px; }
.controls span, .tip span { color: var(--lime); padding: 0 8px; }
.hidden { display: none; }
.result-line { color: var(--muted); font: 12px 'DM Mono', monospace; margin: -4px 0 26px; }.result-line strong { color: var(--lime); font-size: 24px; margin-left: 10px; }
.action-dock { position: absolute; z-index: 3; left: 50%; bottom: max(18px, env(safe-area-inset-bottom)); transform: translateX(-50%); display: flex; gap: 8px; pointer-events: none; }
.action-button { min-width: 76px; height: 48px; padding: 5px 9px; display: flex; align-items: center; justify-content: center; gap: 7px; border: 1px solid rgba(255,255,255,.18); border-radius: 9px; background: rgba(5, 13, 24, .8); color: #dce8ee; box-shadow: 0 8px 24px rgba(0,0,0,.22); font: 500 9px 'DM Mono', monospace; letter-spacing: .06em; pointer-events: auto; touch-action: manipulation; }
.action-button strong { color: var(--lime); font-size: 21px; line-height: 1; }.action-button:active { transform: scale(.94); }.boost-action strong { color: #ffb84d; }.eject-action strong { color: #66d9ef; }
.toast { position: absolute; z-index: 4; left: 50%; top: 18%; transform: translateX(-50%) translateY(-8px); padding: 9px 14px; border: 1px solid rgba(201,255,101,.38); border-radius: 999px; color: var(--lime); background: rgba(5,14,23,.78); font: 500 10px 'DM Mono', monospace; letter-spacing: .12em; opacity: 0; pointer-events: none; transition: opacity .2s, transform .2s; }.toast.visible { opacity: 1; transform: translateX(-50%) translateY(0); }
.tip { position: absolute; left: max(18px, env(safe-area-inset-left)); bottom: max(20px, env(safe-area-inset-bottom)); z-index: 2; }.minimap { position: absolute; right: max(18px, env(safe-area-inset-right)); bottom: max(18px, env(safe-area-inset-bottom)); width: 92px; height: 58px; border: 1px solid rgba(255,255,255,.16); background: rgba(6, 14, 25, .45); border-radius: 5px; z-index: 2; }.minimap:after { content: ''; position: absolute; inset: 7px; border: 1px solid rgba(201,255,101,.18); }.minimap span { position: absolute; width: 5px; height: 5px; left: 45px; top: 27px; border-radius: 50%; background: var(--lime); box-shadow: 0 0 8px var(--lime); z-index: 1; }
@media (max-width: 600px) { .game-shell { min-height: 100svh; }.hud-stats { gap: 8px; }.hud-stats strong { font-size: 14px; }.hud-stats .combo-stat { display: none; }.brand { font-size: 10px; }.icon-button { width: 42px; height: 42px; }.overlay-card { top: 49%; }.overlay-card h1 { font-size: clamp(43px, 15vw, 65px); }.intro-copy { font-size: 13px; }.controls { line-height: 1.7; }.tip { font-size: 8px; bottom: 84px; }.minimap { transform: scale(.82); transform-origin: bottom right; bottom: 78px; }.action-dock { bottom: max(15px, env(safe-area-inset-bottom)); width: calc(100% - 28px); justify-content: center; }.action-button { flex: 1; min-width: 0; height: 52px; flex-direction: column; gap: 2px; font-size: 8px; } }
@media (max-height: 650px) and (orientation: landscape) { .overlay-card { top: 53%; padding: 18px 24px; }.overlay-card h1 { font-size: 40px; margin: 8px 0 12px; }.intro-copy { margin-bottom: 14px; }.controls { margin-top: 14px; }.hud { padding-top: 12px; } }
