/* clubmc.world — design tokens.
   Single source of truth shared by the site and by map/style.json.
   Palette: gold #D4AF37 on absolute black #0A0A0A, cream #F5F0E6. */

:root {
  --ink:        #0A0A0A;
  --ink-2:      #141414;
  --ink-3:      #1F1F1F;
  --ink-4:      #2E2E2E;
  --gold:       #D4AF37;
  --gold-lo:    #8B6914;
  --gold-hi:    #F5F0E6;
  --cream:      #F5F0E6;
  --cream-dim:  #C9C4B8;
  --rule:       rgba(212, 175, 55, .22);
  --rule-soft:  rgba(212, 175, 55, .10);

  --verif:      #2ECC71;
  --contest:    #F1C40F;
  --unverif:    #E67E22;
  --excl:       #7F8C8D;
  --alert:      #8B0000;

  --font-display: "Cinzel", Georgia, "Times New Roman", serif;
  --font-ui:      "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-mono:    "IBM Plex Mono", ui-monospace, "SFMono-Regular", Consolas, monospace;

  --wrap: 1180px;
  --gap: 1.25rem;
  --radius: 2px;
  --header-h: 58px;
}

/* the gold edge: a metal gradient that reads as a lit sheet */
.metal-edge {
  border: 1px solid transparent;
  background:
    linear-gradient(var(--ink-2), var(--ink-2)) padding-box,
    linear-gradient(135deg, #8B6914 0%, #D4AF37 30%, #F5F0E6 50%, #D4AF37 70%, #8B6914 100%) border-box;
}

/* black leather: radial light + pre-generated grain tile (no runtime filter) */
.surface-leather {
  background:
    radial-gradient(ellipse at 30% 20%, #1a1a1a 0%, #0a0a0a 70%),
    var(--grain, none);
  background-blend-mode: normal, overlay;
}

/* the grain tile, generated at build time (64x64, 7 KB) */
:root {
  --grain: url("../img/grain.png");
}

/* form controls: dark surface, gold text — the native dropdown list inherits
   the option colours, so the whole control is specified, not just the box */
select, option, optgroup {
  background-color: #101010 !important;
  color: var(--gold) !important;
}
select {
  border: 1px solid var(--ink-4);
  border-radius: 2px;
}
select:focus { border-color: var(--gold-lo); outline: none; }
option:checked { background: var(--gold) !important; color: var(--ink) !important; }
input, textarea { color: var(--cream); }
input::placeholder, textarea::placeholder { color: #6f6f6f; }
