/* ============================================================
   LEGEND — shared brand kit for the static family sites
   (legend.fun · play.legend.fun · shop.legend.fun)
   Matches the design system of configurator.legend.fun and
   maps.legend.fun: green-tinted near-black, gold accent,
   Bebas Neue display + Inter body + JetBrains Mono kickers.
   ============================================================ */
:root {
  --bg: #090f0c;
  --bg-1: #0b120e;
  --surface: #111c16;
  --surface-2: #16241d;

  --gold: #f0c63a;
  --gold-soft: #f7db78;
  --orange: #e89328;
  --red: #d94926;
  --blue: #47a0d8;
  --green-deep: #1f3a2e;

  --ink: #f5f0e2;
  --ink-dim: #d7dbd0;
  --muted: #9ba79d;
  --faint: #6c786f;

  --line: rgba(245, 240, 226, 0.09);
  --line-strong: rgba(245, 240, 226, 0.16);
  --line-gold: rgba(240, 198, 58, 0.22);

  --font-display: 'Bebas Neue', 'Arial Narrow', sans-serif;
  --font-body: 'Inter', system-ui, -apple-system, sans-serif;
  --font-mono: 'JetBrains Mono', ui-monospace, monospace;

  --r-md: 14px;
  --r-lg: 22px;
  --r-pill: 999px;
  --maxw: 1180px;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html, body { height: 100%; }

body {
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-body);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  display: flex;
  flex-direction: column;
  position: relative;
}

/* ambient: gold/orange glows + faint grid, same recipe as the app sites */
body::before {
  content: '';
  position: fixed; inset: 0; z-index: -2;
  background:
    radial-gradient(60% 42% at 78% -4%, rgba(232, 147, 40, 0.14), transparent 60%),
    radial-gradient(50% 40% at 8% 4%, rgba(240, 198, 58, 0.10), transparent 60%),
    radial-gradient(70% 60% at 50% 120%, rgba(45, 81, 65, 0.35), transparent 70%),
    var(--bg);
}
body::after {
  content: '';
  position: fixed; inset: 0; z-index: -1; pointer-events: none;
  background-image:
    linear-gradient(rgba(245, 240, 226, 0.028) 1px, transparent 1px),
    linear-gradient(90deg, rgba(245, 240, 226, 0.028) 1px, transparent 1px);
  background-size: 62px 62px;
  -webkit-mask-image: radial-gradient(circle at 50% 25%, #000 0%, transparent 72%);
  mask-image: radial-gradient(circle at 50% 25%, #000 0%, transparent 72%);
}

a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
::selection { background: var(--gold); color: #17130a; }

.container { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 clamp(14px, 4vw, 24px); }

/* ---- header ---- */
.site-header {
  flex: none;
  border-bottom: 1px solid var(--line);
  background: rgba(9, 15, 12, 0.72);
  backdrop-filter: blur(14px) saturate(140%);
}
.site-header .container {
  display: flex; align-items: center; justify-content: space-between;
  gap: 14px; min-height: 56px;
}
.brand { display: inline-flex; align-items: center; gap: 10px; }
.brand__logo { width: 62px; height: 35px; flex: none; filter: drop-shadow(0 0 14px rgba(240, 198, 58, 0.28)); }
.brand__sub {
  font-size: 0.62rem; letter-spacing: 0.3em; text-transform: uppercase;
  color: var(--muted); padding-left: 10px; border-left: 1px solid var(--line-strong); line-height: 1;
}
.kicker {
  display: inline-flex; align-items: center; gap: 8px;
  font-family: var(--font-mono); font-size: 0.66rem; font-weight: 600;
  letter-spacing: 0.18em; text-transform: uppercase; color: var(--gold);
}
.dot { width: 6px; height: 6px; border-radius: 50%; background: var(--gold); box-shadow: 0 0 10px 1px rgba(240,198,58,.8); }
.dot--live { background: #57d17a; box-shadow: 0 0 10px 1px rgba(87,209,122,.8); animation: pulse 2.2s infinite; }
@keyframes pulse { 0%,100% { opacity: 1 } 50% { opacity: .35 } }

/* ---- type ---- */
.display {
  font-family: var(--font-display); font-weight: 400;
  text-transform: uppercase; line-height: 0.92; letter-spacing: 0.01em;
}
.grad-gold {
  background: linear-gradient(100deg, var(--gold) 10%, var(--orange) 95%);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.lede { color: var(--muted); }

/* ---- buttons ---- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 9px;
  font-weight: 600; font-size: 0.92rem; padding: 12px 20px;
  border-radius: var(--r-pill); border: 1px solid transparent; white-space: nowrap;
  transition: transform .18s ease, box-shadow .25s ease, border-color .2s ease, background .2s ease;
}
.btn--primary { background: linear-gradient(180deg, var(--gold-soft), var(--gold)); color: #1a1405; box-shadow: 0 10px 30px -12px rgba(240,198,58,.7); }
.btn--primary:hover { transform: translateY(-2px); box-shadow: 0 16px 40px -12px rgba(240,198,58,.85); }
.btn--ghost { background: rgba(245,240,226,.03); border-color: var(--line-strong); color: var(--ink); }
.btn--ghost:hover { border-color: var(--line-gold); background: rgba(240,198,58,.07); transform: translateY(-2px); }

/* ---- cards ---- */
.card {
  background: linear-gradient(180deg, rgba(28,46,37,.42), rgba(17,28,22,.5));
  border: 1px solid var(--line); border-radius: var(--r-lg);
  transition: transform .22s ease, border-color .22s ease, background .22s ease;
}
.card:hover { transform: translateY(-3px); border-color: var(--line-gold); }

/* ---- footer ---- */
.site-footer {
  flex: none; border-top: 1px solid var(--line);
  background: rgba(9, 15, 12, 0.6);
  padding: 12px 0;
}
.site-footer .container {
  display: flex; align-items: center; justify-content: space-between;
  gap: 12px 20px; flex-wrap: wrap;
}
.foot-nav { display: flex; gap: 6px; flex-wrap: wrap; }
.foot-nav a {
  font-size: 0.7rem; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase;
  padding: 5px 11px; border-radius: var(--r-pill);
  border: 1px solid var(--line-strong); color: var(--muted); transition: .18s ease;
}
.foot-nav a:hover { color: var(--gold); border-color: var(--line-gold); }
.foot-nav a.current { color: var(--gold); border-color: var(--line-gold); background: rgba(240,198,58,.07); }
.copyright { font-size: 0.72rem; color: var(--faint); }
.copyright a:hover { color: var(--gold); }

@media (prefers-reduced-motion: reduce) {
  * { animation-duration: .001ms !important; transition-duration: .001ms !important; }
}
