/* ==========================================================================
   W33D · retro design system · tokens
   One palette, one type scale, one set of surfaces for every page and tool.
   ========================================================================== */
:root {
  color-scheme: dark;

  /* palette — the sunset drive */
  --void: #07000f;            /* page background */
  --void-2: #0c0219;          /* lifted background */
  --ink: #130626;             /* panel base */
  --ink-2: #1b0b33;           /* panel hover / nested */
  --ink-3: #251245;           /* inputs, rows */
  --purple: #1a0033;
  --pink: #ff2a6d;
  --magenta: #d300c5;
  --cyan: #05d9e8;
  --violet: #7a2bff;
  --sun-1: #ffd23f;
  --sun-2: #ff5e00;
  --lime: #9eff3d;
  --red: #ff5c7a;
  --green: #3ddc97;
  --gold: #ffcc4d;

  /* text */
  --text: #f5f0ff;
  --text-2: #cfc3ea;          /* secondary copy */
  --dim: #a596c7;             /* labels */
  --muted: #7d6f9c;           /* hints */
  --faint: #4f4270;

  /* surfaces */
  --glass: rgba(19, 6, 38, .78);
  --glass-2: rgba(10, 2, 22, .9);
  --glass-3: rgba(30, 12, 58, .62);
  --line: rgba(255, 255, 255, .08);
  --line-2: rgba(255, 255, 255, .14);
  --edge: rgba(5, 217, 232, .28);
  --edge-pink: rgba(255, 42, 109, .34);
  --border-grad: linear-gradient(135deg, rgba(5,217,232,.7), rgba(255,255,255,.06) 35%, rgba(255,255,255,.04) 65%, rgba(255,42,109,.7));

  /* semantic */
  --ok: var(--green);
  --warn: var(--sun-1);
  --bad: var(--red);
  --info: var(--cyan);
  --accent: var(--cyan);
  --accent-ink: #04141a;
  --accent-2: var(--pink);
  --accent-2-ink: #2a0010;

  /* type */
  --display: "Orbitron", "Eurostile", "Bank Gothic", sans-serif;
  --ui: "Rajdhani", "Segoe UI", system-ui, sans-serif;
  --mono: "JetBrains Mono", "SFMono-Regular", Consolas, monospace;
  --script: "Mr Dafoe", "Brush Script MT", cursive;

  --fs-1: 12px; --fs-2: 13px; --fs-3: 15px; --fs-4: 17px; --fs-5: 20px; --fs-6: 24px; --fs-7: 30px; --fs-8: 40px; --fs-9: 56px;

  /* geometry */
  --r-1: 4px; --r-2: 8px; --r-3: 12px; --r-4: 18px;
  --cut: polygon(14px 0, 100% 0, 100% calc(100% - 14px), calc(100% - 14px) 100%, 0 100%, 0 14px);
  --cut-sm: polygon(8px 0, 100% 0, 100% calc(100% - 8px), calc(100% - 8px) 100%, 0 100%, 0 8px);
  --gap: 20px;
  --gutter: clamp(16px, 3vw, 40px);
  --header-h: 66px;
  --content-w: 1360px;

  /* depth */
  --shadow-1: 0 2px 10px rgba(0,0,0,.35);
  --shadow-2: 0 14px 40px rgba(0,0,0,.45);
  --glow-cyan: 0 0 18px rgba(5,217,232,.45);
  --glow-pink: 0 0 18px rgba(255,42,109,.45);

  /* motion */
  --ease: cubic-bezier(.2,.8,.2,1);
  --fast: .16s;
  --slow: .36s;

  /* z */
  --z-bg: 0; --z-page: 1; --z-sticky: 20; --z-menu: 30; --z-overlay: 40; --z-toast: 60;
}

/* Self-hosted fonts (fontsource builds, latin subset). No third-party requests. */
@font-face { font-family: "Orbitron"; font-style: normal; font-weight: 400; font-display: swap; src: url(/retro/fonts/orbitron-latin-400-normal.woff2) format("woff2"); }
@font-face { font-family: "Orbitron"; font-style: normal; font-weight: 500; font-display: swap; src: url(/retro/fonts/orbitron-latin-500-normal.woff2) format("woff2"); }
@font-face { font-family: "Orbitron"; font-style: normal; font-weight: 600; font-display: swap; src: url(/retro/fonts/orbitron-latin-600-normal.woff2) format("woff2"); }
@font-face { font-family: "Orbitron"; font-style: normal; font-weight: 700; font-display: swap; src: url(/retro/fonts/orbitron-latin-700-normal.woff2) format("woff2"); }
@font-face { font-family: "Orbitron"; font-style: normal; font-weight: 800; font-display: swap; src: url(/retro/fonts/orbitron-latin-800-normal.woff2) format("woff2"); }
@font-face { font-family: "Orbitron"; font-style: normal; font-weight: 900; font-display: swap; src: url(/retro/fonts/orbitron-latin-900-normal.woff2) format("woff2"); }
@font-face { font-family: "Rajdhani"; font-style: normal; font-weight: 400; font-display: swap; src: url(/retro/fonts/rajdhani-latin-400-normal.woff2) format("woff2"); }
@font-face { font-family: "Rajdhani"; font-style: normal; font-weight: 500; font-display: swap; src: url(/retro/fonts/rajdhani-latin-500-normal.woff2) format("woff2"); }
@font-face { font-family: "Rajdhani"; font-style: normal; font-weight: 600; font-display: swap; src: url(/retro/fonts/rajdhani-latin-600-normal.woff2) format("woff2"); }
@font-face { font-family: "Rajdhani"; font-style: normal; font-weight: 700; font-display: swap; src: url(/retro/fonts/rajdhani-latin-700-normal.woff2) format("woff2"); }
@font-face { font-family: "JetBrains Mono"; font-style: normal; font-weight: 400; font-display: swap; src: url(/retro/fonts/jetbrains-mono-latin-400-normal.woff2) format("woff2"); }
@font-face { font-family: "JetBrains Mono"; font-style: normal; font-weight: 500; font-display: swap; src: url(/retro/fonts/jetbrains-mono-latin-500-normal.woff2) format("woff2"); }
@font-face { font-family: "JetBrains Mono"; font-style: normal; font-weight: 700; font-display: swap; src: url(/retro/fonts/jetbrains-mono-latin-700-normal.woff2) format("woff2"); }
@font-face { font-family: "Mr Dafoe"; font-style: normal; font-weight: 400; font-display: swap; src: url(/retro/fonts/mr-dafoe-latin-400-normal.woff2) format("woff2"); }

/* GENERATED by tools/retokenize-legacy.py — the previous theme's component CSS, filtered to what still renders and
   recolored to the retro tokens. Do not hand-edit; put overrides in widgets.css. */
:root{color-scheme:dark;font-family:var(--ui);color:#ffcc4d;background:#112949}
body{margin:0;background:radial-gradient(ellipse at top,#112949,transparent 70%);min-height:100vh}
main{max-width:1000px;margin:auto;padding:45px 24px}
a{color:#ffd23f;text-decoration:none}
.brand{display:block;font-weight:900;letter-spacing:.1em;margin-bottom:70px}
.tag{color:#05d9e8;font-size:12px;letter-spacing:.15em}
h1{font-size:clamp(40px,8vw,80px);line-height:1.1;margin:14px 0;color:#ffcc4d}
p{max-width:650px;line-height:1.8;white-space:pre-line;color:#cfc3ea}
h2{margin-top:50px}
section{display:grid;grid-template-columns:repeat(auto-fit,minmax(220px,1fr));gap:12px}
.member{padding:22px;border:1px solid #154167;border-radius:10px;background:#112949;color:#ffcc4d}
.member span{color:#05d9e8;margin-right:15px}
footer{margin-top:60px;padding-top:24px;border-top:1px solid #154167;color:#a596c7;font-size:13px;line-height:1.6}
footer a{display:block;margin-top:14px}
*{box-sizing:border-box}
body{margin:0;min-height:100vh;display:grid;place-items:center;padding:28px 16px;background:radial-gradient(ellipse at 10% 20%,rgba(21,65,103,0.20),transparent 45%),radial-gradient(ellipse at 90% 90%,rgba(60,22,122,0.20),transparent 50%),#07000f;color:#ffcc4d;font:16px/1.5 system-ui,sans-serif}
.join-card{width:min(100%,620px);padding:38px;border:2px solid #ffd23f;border-radius:18px;background:linear-gradient(145deg,#112949,#112949);box-shadow:0 8px 0 #46191d,0 0 80px rgba(5,217,232,0.08)}
.brand{display:block;text-decoration:none;color:#ffd23f;font-size:34px;font-weight:1000;text-shadow:0 3px #6a2821}
.brand small{display:block;color:#ffd23f;font-size:10px;letter-spacing:.18em;text-shadow:none}
.eyebrow{color:#05d9e8;letter-spacing:.15em;font-size:11px;font-weight:800;margin-top:34px}
h1{font-size:clamp(30px,7vw,52px);color:#ffd23f;line-height:1.1;margin:10px 0 18px}
.server-details{color:#05d9e8}
.players{font-weight:800;color:#05d9e8}
.join-button{display:block;width:100%;padding:17px 15px;border:1px solid #ffd23f;border-radius:8px;background:linear-gradient(#ffcc4d,#ffd23f 48%,#ffd23f 51%,#ffd23f);color:#112949;text-align:center;text-decoration:none;font-size:20px;font-weight:900;box-shadow:0 4px #6a2821;cursor:pointer}
.join-button:disabled{opacity:.55;cursor:default}
.status{min-height:48px;color:#a596c7;font-size:13px;margin-top:20px}
.code-panel{border-top:1px solid rgba(255,210,63,0.27);padding-top:22px;margin-top:20px}
.code-panel span{display:block;font-size:11px;letter-spacing:.14em;color:#ffd23f}
.code-panel code{display:block;overflow-wrap:anywhere;color:#ffcc4d;font:14px/1.8 ui-monospace,monospace;margin:8px 0}
.code-panel button{padding:9px 16px;border:1px solid rgba(255,210,63,0.40);background:#112949;color:#05d9e8;border-radius:6px;font-weight:800;cursor:pointer}
.code-panel p,.fine-print{font-size:12px;color:#a596c7}
.links{display:flex;flex-wrap:wrap;gap:20px;margin:25px 0 14px}
.links a{color:#ffd23f;font-size:14px;font-weight:700}
.fine-print{margin-bottom:0}
@media(max-width:480px){.join-card{padding:25px 20px}}
@media(prefers-reduced-motion:no-preference){.join-card{animation:drop-in .35s ease-out}
@keyframes drop-in{from{opacity:0;transform:translateY(12px)}to{opacity:1;transform:none}}}
:root{color-scheme:dark;font-family:var(--ui);background:#07000f;color:#ffcc4d}
*{box-sizing:border-box}
body{min-height:100svh;margin:0;display:grid;place-items:center;padding:28px 18px;background:radial-gradient(ellipse at 50% 0%,rgba(17,41,73,0.40),transparent 65%),radial-gradient(ellipse at 100% 100%,rgba(106,40,33,0.10),transparent 60%),#07000f}
body::before{content:"";position:fixed;inset:12px;border:1px solid rgba(255,210,63,0.22);pointer-events:none}
.login-card{position:relative;width:min(100%,500px);text-align:center;padding:36px 32px 0;background:linear-gradient(155deg,#112949,#112949);border:1px solid #ffd23f;border-top:3px solid #ffd23f;border-radius:18px;box-shadow:0 22px 80px rgba(7,0,15,0.53),0 0 55px rgba(255,210,63,0.06);overflow:hidden}
.crest{display:block;margin:0 auto 22px;filter:drop-shadow(0 0 20px rgba(255,210,63,0.15))}
.eyebrow{font-size:10px;font-weight:800;letter-spacing:.25em;color:#ffd23f;margin:0 0 18px}
h1{font-size:clamp(28px,7vw,40px);line-height:1.07;letter-spacing:-.035em;font-weight:900;color:#ffd23f;margin:0;text-shadow:0 3px 0 #46312e}
.intro{font-size:17px;line-height:1.6;color:#8ff0f7;margin:20px 0 27px}
.steam-login{display:flex;align-items:center;justify-content:center;gap:13px;min-height:60px;padding:16px 18px;border:1px solid #ffcc4d;border-radius:9px;background:linear-gradient(#ffcc4d,#ffd23f);color:#112949;text-decoration:none;font-size:13px;letter-spacing:.045em;font-weight:900;box-shadow:0 3px 0 #6a2821;transition:filter .15s,transform .15s}
.steam-login:hover{filter:brightness(1.1);transform:translateY(-1px)}
.steam-login:focus-visible{outline:3px solid #05d9e8;outline-offset:5px}
.steam-login svg{width:25px;height:25px;fill:currentColor;flex-shrink:0}
.steam-login span:last-child{margin-left:auto;font-size:23px}
.note{font-size:12px;line-height:1.8;color:#a596c7;margin:22px 0 30px}
.footer{border-top:1px solid rgba(255,210,63,0.20);padding:18px;margin:0 -32px;background:rgba(7,0,15,0.22);font-size:9px;font-weight:700;letter-spacing:.22em;color:#7d6f9c}
@media(max-width:400px){.login-card{padding:28px 20px 0}
.footer{margin:0 -20px}
.steam-login{gap:9px;font-size:12px}}
@media(prefers-reduced-motion:reduce){.steam-login{transition:none}}

/* ---------- standalone pages (sign in, join, clan HQ): same sky as the site ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; min-height: 100vh; font-family: var(--ui); color: var(--text); background: linear-gradient(180deg, #06000d 0%, #12033a 42%, #3a0a5e 62%, #7a1d6e 70%, #0b0118 70.4%, #07000f 100%) fixed; display: grid; place-items: center; padding: 24px; }
body::before { content: ""; position: fixed; left: 50%; top: 70%; width: 30vmin; height: 30vmin; transform: translate(-50%, -78%); border-radius: 50%; background: radial-gradient(circle at 50% 38%, #fff3b0 0%, #ffd23f 22%, #ff7a2a 48%, #ff2a6d 72%, rgba(255,42,109,0) 73%); opacity: .35; pointer-events: none; z-index: 0; }
body::after { content: ""; position: fixed; left: -60vw; right: -60vw; top: 70%; height: 60vh; background-image: linear-gradient(90deg, rgba(5,217,232,.22) 1px, transparent 1px), linear-gradient(180deg, rgba(255,42,109,.28) 1px, transparent 1px); background-size: 64px 100%, 100% 42px; transform-origin: 50% 0; transform: perspective(520px) rotateX(64deg); opacity: .3; pointer-events: none; z-index: 0; -webkit-mask: linear-gradient(180deg, #000, transparent 85%); mask: linear-gradient(180deg, #000, transparent 85%); }
main, .login-card, .join-card, .clan-page { position: relative; z-index: 1; }
.login-card, .join-card { width: min(520px, 100%); padding: 36px 34px; border: 1px solid var(--edge); border-radius: 16px; background: rgba(10,2,22,.9); backdrop-filter: blur(16px); box-shadow: 0 20px 60px rgba(0,0,0,.5), 0 0 30px rgba(5,217,232,.15); text-align: center; }
h1, h2, h3 { font-family: var(--display); font-weight: 900; letter-spacing: -.01em; color: var(--text); margin: 10px 0; }
.eyebrow { display: inline-block; font-family: var(--display); font-size: 10px; letter-spacing: .24em; text-transform: uppercase; color: var(--cyan); }
.crest, img.crest { display: none; }
.brand { display: inline-flex; flex-direction: column; font-family: var(--display); font-weight: 900; font-size: 20px; letter-spacing: .1em; color: var(--text); text-decoration: none; margin-bottom: 14px; }
.brand small { font-family: var(--ui); font-size: 10px; letter-spacing: .18em; color: var(--dim); }
.steam-login, .join-button, a.button, button.button { display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 48px; padding: 0 22px; margin: 14px 0; border: 0; border-radius: 10px; background: linear-gradient(135deg, var(--cyan), #0aa7c9); color: #04141a; font-family: var(--ui); font-weight: 700; font-size: 15px; letter-spacing: .08em; text-transform: uppercase; text-decoration: none; box-shadow: 0 0 0 1px rgba(5,217,232,.4), 0 0 18px rgba(5,217,232,.45); cursor: pointer; }
.steam-login svg { width: 20px; height: 20px; fill: currentColor; }
.join-button:disabled { background: rgba(255,255,255,.08); color: var(--dim); box-shadow: none; cursor: not-allowed; }
.note, .footer, .intro, p { color: var(--text-2); }
.footer { margin-top: 18px; font-family: var(--display); font-size: 9px; letter-spacing: .24em; color: var(--muted); }
code, .join-code { font-family: var(--mono); color: var(--cyan); }
a { color: var(--cyan); }
