:root {
  --bg: #141615;
  --panel: #1b1e1c;
  --glass: blur(22px) saturate(110%);
  --panel-solid: #1a1d1b;
  --sel: #1a2a1f;
  --line: #2b302d;
  --line-hi: #3a423d;
  --fg: #e4e9e5;
  --muted: #8b958e;
  --accent: #3dff7e;
  --ink: #0b0d0c;
  --mono: "JetBrains Mono", ui-monospace, Menlo, Consolas, monospace;
  --display: "Space Grotesk", system-ui, sans-serif;
  color-scheme: dark;
}
* { box-sizing: border-box; }
html, body { background: var(--bg); color: var(--fg); }
body { margin: 0; font-family: var(--mono); font-size: 14px; line-height: 1.6; -webkit-font-smoothing: antialiased; min-height: 100vh; display: flex; flex-direction: column; }
::selection { background: var(--accent); color: var(--ink); }
#field { position: fixed; inset: 0; width: 100%; height: 100%; z-index: 0; display: block; }
#coords { position: fixed; z-index: 2; pointer-events: none; font-size: 10px; color: var(--accent); opacity: 0; transition: opacity .3s; white-space: nowrap; transform: translate(14px, 14px); }
.wrap { position: relative; z-index: 1; width: 100%; max-width: 1040px; margin: 0 auto;
  padding-left: max(20px, env(safe-area-inset-left, 0px)); padding-right: max(20px, env(safe-area-inset-right, 0px)); }

header { position: relative; z-index: 1; padding-top: env(safe-area-inset-top, 0px); }
header .wrap { position: relative; display: flex; justify-content: center; gap: clamp(28px, 8vw, 72px); height: 64px; align-items: center; }
header a { color: var(--muted); text-decoration: none; font-size: 12px; font-weight: 500; letter-spacing: .22em; text-transform: uppercase; transition: color .2s; }
header a:hover, header a:focus-visible, header a[aria-current="page"] { color: var(--accent); outline: none; }

.btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; font-family: var(--mono); font-size: 12px; font-weight: 700; letter-spacing: .18em; text-transform: uppercase; text-decoration: none; color: var(--ink); background: var(--accent); padding: 12px 18px; border: 0; border-radius: 4px; cursor: pointer; transition: box-shadow .2s; }
.btn:hover { box-shadow: 0 0 0 4px rgba(61,255,126,.15), 0 0 24px rgba(61,255,126,.35); }
.btn:focus-visible, button:focus-visible, a:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
@media (prefers-reduced-motion: reduce) { * { transition: none !important; animation: none !important; } }

/* Discord: small, top right */
header a.discord { position: absolute; right: max(20px, env(safe-area-inset-right, 0px)); top: 50%; transform: translateY(-50%); background: #5865f2; color: #fff; font-size: 10px; font-weight: 700; letter-spacing: .16em; padding: 6px 10px; border-radius: 4px; display: inline-flex; align-items: center; gap: 6px; transition: background .2s, box-shadow .2s; }
header a.discord:hover, header a.discord:focus-visible { color: #fff; background: #4752c4; box-shadow: 0 0 18px rgba(88,101,242,.45); }
header a.discord svg { width: 13px; height: 13px; fill: currentColor; }
@media (max-width: 520px) { header .wrap { justify-content: flex-start; } }
