/* LostIRC 2030: the shared look for every page. Tokens, the site header, buttons, panels and the footer.
   Pages add their own sheet on top (home.css, chat2030.css, idlerpg/map.css). Single dark theme on purpose. */
:root {
  --bg: #07090d;
  --bg-1: #0a0d12;
  --bg-2: #10151c;
  --bg-3: #141a22;
  --line: rgba(255,255,255,.07);
  --line-2: rgba(255,255,255,.12);
  --text: #ece6d8;
  --soft: #a7adb8;
  --dim: #8b93a1;
  --amber: #ffb547;
  --amber-dim: #a8783a;
  --cyan: #6fd3d8;
  --violet: #c38bff;
  --mint: #7dff9b;
  --rose: #ff7a7a;
  --gold: #e2b53e;
  --parch: #eadcc0;
  --display: "VT323", "Courier New", monospace;
  --ui: "Space Grotesk", system-ui, -apple-system, "Segoe UI", sans-serif;
  --mono: "IBM Plex Mono", ui-monospace, Menlo, Consolas, monospace;
  --head: 64px;
  color-scheme: dark;
}
* { box-sizing: border-box; }
[hidden] { display: none !important; }
:focus-visible { outline: 2px solid var(--cyan); outline-offset: 2px; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* ---------- the site header, identical on every page ---------- */
header.site { position: sticky; top: 0; z-index: 30; padding-top: env(safe-area-inset-top, 0px); background: rgba(7,9,13,.8); backdrop-filter: blur(14px) saturate(1.2); -webkit-backdrop-filter: blur(14px) saturate(1.2); border-bottom: 1px solid var(--line); font-family: var(--ui); }
.site-in { max-width: 1240px; height: var(--head); margin: 0 auto; display: flex; align-items: center; gap: 16px; padding: 0 max(16px, env(safe-area-inset-right, 0px)) 0 max(16px, env(safe-area-inset-left, 0px)); }
.site .brand { display: flex; align-items: center; gap: 10px; flex: none; text-decoration: none; color: var(--amber); font: 30px/1 var(--display); letter-spacing: .04em; text-shadow: 0 0 12px rgba(255,181,71,.4); }
.site .brand img, .site .brand svg { width: 28px; height: 28px; image-rendering: pixelated; shape-rendering: crispEdges; filter: drop-shadow(0 0 6px rgba(255,181,71,.55)); }
.site nav { flex: 1; min-width: 0; display: flex; gap: 2px; overflow-x: auto; scrollbar-width: none; }
.site nav::-webkit-scrollbar { display: none; }
.site nav a { flex: none; padding: 8px 12px; border-radius: 10px; color: var(--soft); text-decoration: none; font: 500 14px var(--ui); white-space: nowrap; transition: color .15s, background .15s; }
.site nav a:hover { color: var(--text); background: rgba(255,255,255,.05); }
.site nav a[aria-current="page"], .site nav a[aria-current="true"] { color: var(--amber); background: rgba(255,181,71,.1); }
.site nav a.play { color: #ffe14a; }
.site nav a.play::before { content: "\25D6  "; }
.site .cta { flex: none; }
@media (max-width: 720px) { .site-in { gap: 8px; } .site .brand span { display: none; } .site .cta { padding: 0 12px; height: 38px; font-size: 13px; } }

/* ---------- buttons ---------- */
.cta, .cta-2 { display: inline-flex; align-items: center; justify-content: center; gap: 10px; height: 44px; padding: 0 18px; border-radius: 14px; font: 700 15px var(--ui); text-decoration: none; cursor: pointer; white-space: nowrap; transition: transform .12s, box-shadow .2s, border-color .2s, background .2s; }
.cta { border: 0; background: var(--amber); color: var(--bg); box-shadow: inset 0 0 0 1px rgba(255,255,255,.2), 0 0 24px rgba(255,181,71,.35); }
.cta:hover { transform: translateY(-1px); box-shadow: inset 0 0 0 1px rgba(255,255,255,.3), 0 0 34px rgba(255,181,71,.55); }
.cta-2 { border: 1px solid var(--line-2); background: var(--bg-2); color: var(--text); }
.cta-2:hover { border-color: var(--amber); color: var(--amber); }
.cta svg, .cta-2 svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }
.cta.big, .cta-2.big { height: 56px; padding: 0 26px; border-radius: 18px; font-size: 17px; }

/* ---------- panels and type ---------- */
.eyebrow { margin: 0; font: 600 11px var(--ui); letter-spacing: .16em; text-transform: uppercase; color: var(--dim); }
.panel { border-radius: 24px; background: var(--bg-1); border: 1px solid var(--line); }
.glass { border-radius: 24px; background: rgba(16,21,28,.82); border: 1px solid var(--line); box-shadow: 0 30px 80px rgba(0,0,0,.45), inset 0 1px 0 rgba(255,255,255,.04); }
.chip-s { display: inline-flex; align-items: center; gap: 8px; height: 34px; padding: 0 12px; border-radius: 999px; background: rgba(255,255,255,.05); border: 1px solid var(--line); color: var(--soft); font: 500 13px var(--ui); }
.chip-s b { color: var(--text); font-weight: 600; }
.chip-s .dot { width: 8px; height: 8px; border-radius: 4px; background: var(--cyan); box-shadow: 0 0 8px var(--cyan); animation: breathe 2.4s ease-in-out infinite; }
@keyframes breathe { 50% { opacity: .35; } }
.bars { display: flex; align-items: flex-end; gap: 3px; }
.bars i { flex: 1; min-width: 2px; border-radius: 2px; background: #2a3440; }

/* ---------- footer ---------- */
footer.site-foot { border-top: 1px solid var(--line); padding: 28px max(16px, env(safe-area-inset-right, 0px)) 40px max(16px, env(safe-area-inset-left, 0px)); font: 14px var(--ui); color: var(--dim); }
.foot-in { max-width: 1240px; margin: 0 auto; display: flex; flex-wrap: wrap; align-items: center; gap: 12px 24px; justify-content: space-between; }
.foot-in .brand-s { display: flex; align-items: center; gap: 10px; color: var(--soft); }
.foot-in .brand-s img { width: 20px; height: 20px; image-rendering: pixelated; }
.foot-in a { color: var(--soft); }
.foot-in a:hover { color: var(--amber); }
.hidden-note { color: var(--bg); }
.hidden-note::selection { background: var(--amber); color: var(--bg); }

@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; } }
