/* ═══════════════════════════════════════════════════
   tokens.css — Design system variables & reset
═══════════════════════════════════════════════════ */

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  /* Palette */
  --void:      #05080f;
  --deep:      #080c18;
  --surface:   #0c1220;
  --raised:    #111827;
  --rim:       #1a2540;
  --rim2:      #243058;
  --faint:     #1e2d48;
  --text:      #c8d8f4;
  --muted:     #4a6080;

  /* Accents */
  --phosphor:  #00ff88;
  --phosphor2: #00cc6a;
  --amber:     #f5a623;
  --red:       #ff4757;
  --blue:      #4a9eff;

  /* Typography */
  --font-mono: 'Syne Mono', monospace;
  --font-sans: 'Syne', sans-serif;
}

html, body {
  width: 100%; height: 100%;
  background: var(--void);
  color: var(--text);
  font-family: var(--font-sans);
  overflow: hidden;
  font-size: 18px;
}

/* Grain texture overlay */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.03'/%3E%3C/svg%3E");
  pointer-events: none;
  z-index: 1000;
  opacity: 0.4;
}

/* Shared form elements */
input[type="text"],
input[type="password"],
select,
textarea {
  width: 100%;
  background: var(--surface);
  border: 1px solid var(--rim);
  border-radius: 6px;
  color: var(--text);
  font-family: var(--font-mono);
  font-size: 0.9rem;
  padding: 10px 14px;
  outline: none;
  margin-bottom: 10px;
  transition: border-color 0.15s;
}
input:focus, select:focus, textarea:focus {
  border-color: var(--phosphor);
}
select option { background: var(--surface); }

.field-label {
  font-family: var(--font-mono);
  font-size: 0.62rem;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: 5px;
}

/* Scrollbar */
* {
  scrollbar-width: thin;
  scrollbar-color: var(--rim) transparent;
}
*::-webkit-scrollbar       { width: 3px; }
*::-webkit-scrollbar-thumb { background: var(--rim); border-radius: 2px; }
