:root {
  --ink: #f4f0e5;
  --muted: #97998f;
  --dark: #0b0d12;
  --panel: #11151c;
  --line: rgba(244, 240, 229, .15);
  --acid: #d8ff3e;
  --pink: #ff557d;
  --field: #113b34;
  --field-light: #185247;
}

* { box-sizing: border-box; }
html { background: var(--dark); }
body {
  margin: 0;
  color: var(--ink);
  background: radial-gradient(circle at 70% 10%, #24252b 0, #0b0d12 38rem);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  min-height: 100vh;
}

button, a { font: inherit; }
button { cursor: pointer; }
.grain { position: fixed; inset: 0; opacity: .035; pointer-events: none; background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 160 160' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='.6'/%3E%3C/svg%3E"); mix-blend-mode: screen; }
.shell { width: min(1340px, calc(100% - 48px)); margin: 0 auto; padding: 28px 0 22px; }
.topbar, .footer { display: flex; align-items: center; justify-content: space-between; color: var(--muted); font-size: 10px; letter-spacing: .16em; }
.brand { display: inline-flex; align-items: center; gap: 10px; color: var(--ink); text-decoration: none; font-size: 11px; font-weight: 800; letter-spacing: .15em; }
.brand-mark { display: grid; place-items: center; width: 28px; height: 28px; color: var(--dark); background: var(--acid); font-weight: 950; letter-spacing: -.08em; }
.lab-tag { display: flex; align-items: center; gap: 8px; color: var(--acid); font-weight: 700; }
.live-dot { width: 7px; height: 7px; border-radius: 50%; background: var(--pink); box-shadow: 0 0 14px var(--pink); }
.hero { display: flex; align-items: end; justify-content: space-between; gap: 30px; padding: 84px 0 44px; }
.eyebrow, .panel-label, .overlay-kicker { margin: 0 0 14px; color: var(--acid); font-size: 10px; font-weight: 800; letter-spacing: .2em; }
h1 { margin: 0; font-size: clamp(50px, 7.5vw, 112px); line-height: .84; letter-spacing: -.08em; font-weight: 900; text-transform: uppercase; }
h1 em { color: var(--acid); font-style: normal; }
.lede { max-width: 440px; margin: 26px 0 0; color: #c8c8bf; font-size: 15px; line-height: 1.55; }
.hero-stamp { width: 126px; height: 126px; display: flex; flex-direction: column; align-items: center; justify-content: center; border: 1px solid var(--acid); color: var(--acid); transform: rotate(7deg); font-size: 9px; letter-spacing: .2em; line-height: 1.65; }
.hero-stamp strong { font-size: 20px; letter-spacing: -.04em; }
.game-layout { display: grid; grid-template-columns: minmax(0, 1.65fr) minmax(280px, .65fr); gap: 18px; align-items: stretch; }
.field-wrap, .stats-panel { background: var(--panel); border: 1px solid var(--line); }
.field-wrap { min-width: 0; padding: 14px; }
.field-hud, .field-footer, .result-top { display: flex; align-items: center; justify-content: space-between; color: var(--muted); font-size: 10px; font-weight: 800; letter-spacing: .17em; }
.field-hud { padding: 2px 3px 12px; }
.field-hud span:first-child { color: var(--acid); }
.canvas-frame { position: relative; overflow: hidden; background: var(--field); border: 1px solid rgba(255,255,255,.15); }
canvas { display: block; width: 100%; height: auto; touch-action: none; cursor: crosshair; }
.canvas-message { position: absolute; left: 50%; top: 18px; transform: translateX(-50%); padding: 9px 13px; background: var(--dark); border: 1px solid var(--acid); color: var(--acid); font-size: 11px; font-weight: 800; letter-spacing: .12em; white-space: nowrap; }
.hidden { display: none !important; }
.start-overlay { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; background: rgba(7, 12, 16, .63); backdrop-filter: blur(4px); }
.overlay-title { margin: 0 0 25px; font-size: clamp(36px, 6vw, 74px); line-height: .8; font-weight: 950; letter-spacing: -.09em; }
.overlay-title span { color: var(--acid); }
.start-overlay p { margin: 16px 0 0; color: #c3c5ba; font-size: 11px; letter-spacing: .08em; }
.primary-button, .secondary-button, .text-button { border: 0; font-weight: 850; letter-spacing: .1em; font-size: 10px; }
.primary-button { padding: 14px 17px; color: var(--dark); background: var(--acid); }
.primary-button span, .secondary-button span { margin-left: 10px; font-size: 16px; line-height: 0; }
.primary-button:hover, .secondary-button:hover:not(:disabled) { background: #efffa4; transform: translateY(-1px); }
.field-footer { padding: 12px 3px 0; gap: 12px; justify-content: flex-start; }
.field-footer span { white-space: nowrap; }
.drag-hint { margin-left: auto; color: #5e685f; }
.legend-dot { display: inline-block; width: 7px; height: 7px; margin-right: 5px; border-radius: 50%; }
.ball-dot { background: #fff; }.keeper-dot { background: var(--pink); }.target-dot { background: var(--acid); }
.stats-panel { padding: 25px 22px 20px; display: flex; flex-direction: column; }
.stat-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 7px; }
.stat { padding: 12px 8px; background: #191e26; border: 1px solid var(--line); }
.stat strong { display: block; color: var(--acid); font-size: 26px; letter-spacing: -.08em; }.stat span { color: var(--muted); font-size: 8px; font-weight: 800; letter-spacing: .15em; }
.divider { height: 1px; margin: 24px 0; background: var(--line); }
.brief { margin: 0; color: #c8c8bf; font-size: 13px; line-height: 1.55; }
.result-card { margin: 25px 0 18px; padding: 14px; background: #0b0d12; border: 1px solid var(--line); }
.result-top { color: var(--muted); font-size: 8px; }.result-main { margin-top: 19px; color: var(--acid); font-size: 19px; font-weight: 900; letter-spacing: -.04em; }.result-detail { min-height: 31px; margin-top: 6px; color: var(--muted); font-size: 11px; line-height: 1.4; }
.actions { display: grid; gap: 7px; margin-top: auto; }.secondary-button { padding: 13px 12px; text-align: left; color: var(--ink); background: #1a2028; border: 1px solid var(--line); }.secondary-button:disabled, .text-button:disabled { cursor: not-allowed; opacity: .32; }.secondary-button:first-child { color: var(--dark); background: var(--acid); border-color: var(--acid); }.text-button { padding: 9px 0 2px; color: var(--muted); background: transparent; text-align: left; font-size: 9px; }.text-button:hover:not(:disabled) { color: var(--acid); }
.game-link { display: flex; flex-direction: column; gap: 6px; margin-top: 26px; padding-top: 18px; color: var(--muted); text-decoration: none; border-top: 1px solid var(--line); font-size: 8px; letter-spacing: .15em; }.game-link strong { color: var(--ink); font-size: 10px; }.game-link:hover strong { color: var(--acid); }
.reset-progress { margin-top: 3px; text-align: center; }
.footer { padding-top: 28px; font-size: 8px; }
@media (max-width: 850px) { .shell { width: min(100% - 24px, 680px); padding-top: 18px; }.hero { padding: 65px 0 35px; }.hero-stamp { display: none; }.game-layout { grid-template-columns: 1fr; }.stats-panel { min-height: 0; }.actions { margin-top: 8px; }.footer { gap: 20px; line-height: 1.5; } }
@media (max-width: 480px) { h1 { font-size: 52px; }.stat-grid { grid-template-columns: repeat(2, 1fr); }.field-footer { flex-wrap: wrap; }.drag-hint { flex-basis: 100%; margin-left: 0; }.canvas-message { max-width: calc(100% - 20px); overflow: hidden; text-overflow: ellipsis; } }

