:root {
  --bg: #07080a;
  --bg-2: #0b0c0f;
  --panel: #0e1014;
  --line: rgba(201, 162, 74, .16);
  --line-strong: rgba(201, 162, 74, .38);
  --text: #ece6d8;
  --muted: #a39b8a;
  --faint: #6c665c;
  --gold: #cfa552;
  --gold-2: #e6c272;
  --gold-ink: #15110a;
  --red: #e3101a;
  --red-glow: rgba(227, 16, 26, .55);
  --head: 'Orbitron', system-ui, sans-serif;
  --body: 'Inter', system-ui, -apple-system, 'Segoe UI', sans-serif;
  color-scheme: dark;
}
* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { scroll-behavior: smooth; }
body {
  margin: 0; color: var(--text); font: 16px/1.6 var(--body); overflow-x: hidden;
  background:
    radial-gradient(900px 600px at 85% -10%, rgba(201, 162, 74, .10), transparent 60%),
    radial-gradient(800px 700px at -10% 100%, rgba(227, 16, 26, .14), transparent 60%),
    var(--bg);
}
a { color: var(--gold-2); }
code { font: 13px ui-monospace, Menlo, monospace; }
h1, h2, h3 { font-family: var(--head); margin: 0; }

/* Brand devices: spaced caps and the short red rule. */
.kicker { font: 500 11px var(--head); letter-spacing: .32em; text-transform: uppercase; color: var(--muted); }
.rule { display: block; width: 56px; height: 2px; background: var(--red); box-shadow: 0 0 10px var(--red-glow); margin: 14px 0 22px; }
.center .rule { margin-left: auto; margin-right: auto; }

#globe { position: fixed; inset: 0; width: 100%; height: 100%; z-index: 0; touch-action: pan-y; cursor: grab; }
#globe.hot { cursor: pointer; }
#globe.grabbing { cursor: grabbing; }
.tip {
  position: fixed; z-index: 4; pointer-events: none; max-width: 260px;
  background: rgba(7, 8, 10, .94); border: 1px solid var(--line-strong); border-left: 3px solid var(--tip-c, var(--red)); border-radius: 6px;
  padding: 10px 12px; backdrop-filter: blur(10px); box-shadow: 0 10px 30px rgba(0, 0, 0, .6); font-size: 13px; line-height: 1.4;
}
.tip.pinned { pointer-events: auto; }
.tip h4 { margin: 0 0 2px; font: 700 14px var(--head); letter-spacing: .04em; }
.tip h4 span { font-size: 20px; margin-right: 6px; }
.tip .st { color: var(--muted); }
.tip .st b { color: var(--text); }
.tip a { color: var(--gold-2); pointer-events: auto; }
.tip .cl { display: inline-block; margin-top: 8px; color: var(--gold-ink); background: linear-gradient(180deg, var(--gold-2), var(--gold)); border-radius: 4px; padding: 7px 10px; text-decoration: none; font: 700 10.5px var(--head); letter-spacing: .12em; text-transform: uppercase; }
.tip .free { color: var(--gold-2); font-weight: 600; }

/* ---------- nav ---------- */

.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 5;
  display: flex; align-items: center; gap: 24px;
  padding: calc(12px + env(safe-area-inset-top)) 22px 12px;
  background: linear-gradient(rgba(7, 8, 10, .92), rgba(7, 8, 10, 0));
}
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; white-space: nowrap; }
.brand .em { width: 34px; height: 37px; object-fit: contain; filter: drop-shadow(0 0 8px rgba(227, 16, 26, .25)); }
.brand .wm { height: 30px; width: auto; display: block; }
.nav nav { display: none; gap: 26px; margin-left: auto; }
.nav nav a { color: var(--muted); text-decoration: none; font: 500 10.5px var(--head); letter-spacing: .22em; text-transform: uppercase; }
.nav nav a:hover { color: var(--gold-2); }
.nav .btn.small { margin-left: auto; }
@media (min-width: 900px) { .nav nav { display: flex; } .nav .btn.small { margin-left: 0; } }
@media (max-width: 420px) { .brand .wm { height: 24px; } .brand .em { width: 28px; height: 30px; } .nav { gap: 12px; padding-left: 14px; padding-right: 14px; } }
@media (max-width: 340px) { .nav .btn.small { display: none; } }

/* ---------- buttons ---------- */

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px; white-space: nowrap;
  min-height: 48px; padding: 0 22px; border-radius: 4px; text-decoration: none;
  font: 700 12px var(--head); letter-spacing: .14em; text-transform: uppercase;
  border: 1px solid var(--line-strong); color: var(--gold-2); background: rgba(7, 8, 10, .6); backdrop-filter: blur(8px);
  transition: transform .15s ease, box-shadow .15s ease, background .15s ease;
}
.btn:hover { transform: translateY(-1px); box-shadow: 0 0 0 1px var(--line-strong), 0 8px 30px rgba(201, 162, 74, .12); }
.btn.primary { background: linear-gradient(180deg, var(--gold-2), var(--gold) 60%, #b48c3c); border-color: #e9cd84; color: var(--gold-ink); box-shadow: 0 0 24px rgba(201, 162, 74, .18); }
.btn.primary:hover { box-shadow: 0 0 34px rgba(201, 162, 74, .32); }
.btn.ghost { background: rgba(7, 8, 10, .55); }
.btn.small { min-height: 38px; padding: 0 14px; font-size: 10.5px; }
.btn.big { min-height: 58px; padding: 0 34px; font-size: 13px; }

/* ---------- hero ---------- */

.hero { position: relative; z-index: 1; min-height: 100svh; display: flex; align-items: flex-end; padding: 120px 22px 110px; isolation: isolate; }
.hero::before {
  /* The general's face, once public/brand/hero-general.png is dropped in. */
  content: ''; position: absolute; left: 0; top: 0; bottom: 0; width: min(58vw, 760px); z-index: -1; pointer-events: none;
  background: url('/brand/hero-general.png') left center / contain no-repeat;
  opacity: .72;
  -webkit-mask-image: linear-gradient(90deg, rgba(0, 0, 0, .9), rgba(0, 0, 0, .5) 55%, transparent);
  mask-image: linear-gradient(90deg, rgba(0, 0, 0, .9), rgba(0, 0, 0, .5) 55%, transparent);
}
.hero-inner { max-width: 640px; min-width: 0; }
.live-pill {
  display: inline-flex; align-items: center; gap: 10px; margin-bottom: 22px;
  padding: 7px 12px; border: 1px solid var(--line); border-radius: 3px;
  background: rgba(7, 8, 10, .7); backdrop-filter: blur(8px); font: 500 10px var(--head); letter-spacing: .26em; text-transform: uppercase; color: var(--muted);
}
.blink { width: 7px; height: 7px; border-radius: 50%; background: var(--red); box-shadow: 0 0 10px var(--red); animation: blink 1.4s ease-in-out infinite; }
@keyframes blink { 50% { opacity: .3; } }
.hero h1 {
  font-size: clamp(22px, 3.4vw, 40px); line-height: 1.32; font-weight: 500; letter-spacing: .2em; text-transform: uppercase;
  color: var(--gold-2); text-shadow: 0 0 30px rgba(201, 162, 74, .18), 0 2px 30px rgba(0, 0, 0, .8); overflow-wrap: anywhere;
}
.hero h1 .problem { color: var(--text); }
.hero .rule { margin: 22px 0 26px; }
.lede { font-size: clamp(15px, 1.6vw, 17px); color: #cdc5b4; max-width: 560px; margin: 0 0 26px; text-shadow: 0 1px 12px rgba(0, 0, 0, .8); }
.pillars { list-style: none; margin: 0 0 26px; padding: 0; display: grid; grid-template-columns: repeat(2, max-content); gap: 8px 32px; }
.pillars li { font: 500 10.5px var(--head); letter-spacing: .28em; text-transform: uppercase; color: var(--muted); }
.pillars li::before { content: ''; display: inline-block; width: 6px; height: 6px; margin-right: 10px; background: var(--red); box-shadow: 0 0 8px var(--red); vertical-align: 1px; }
.cta { display: flex; flex-wrap: wrap; gap: 12px; }
.cta.center { justify-content: center; }
.yours { min-height: 1.4em; transition: opacity .3s; margin: 20px 0 0; color: var(--gold-2); font: 700 11px var(--head); letter-spacing: .14em; text-transform: uppercase; }
.switch { margin-top: 8px; }
.switch #switchBtn { background: none; border: 0; color: var(--muted); text-decoration: underline; font-size: 13px; padding: 0; cursor: pointer; }
.switch form { display: flex; gap: 8px; margin-top: 8px; max-width: 360px; }
.switch input { flex: 1; min-width: 0; background: rgba(7, 8, 10, .85); color: var(--text); border: 1px solid var(--line-strong); border-radius: 4px; padding: 10px 12px; font: 15px var(--body); }
.switch form button { border: 0; border-radius: 4px; padding: 0 14px; background: var(--gold); color: var(--gold-ink); font: 700 11px var(--head); letter-spacing: .12em; text-transform: uppercase; cursor: pointer; }
.hint-globe { margin: 10px 0 0; color: var(--faint); font-size: 12.5px; }
.ticker {
  position: absolute; left: 22px; right: 22px; bottom: 28px; z-index: 2; text-align: left; cursor: pointer;
  max-width: 640px; padding: 10px 14px; border-radius: 4px; border: 1px solid var(--line); border-left: 3px solid var(--red);
  background: rgba(7, 8, 10, .84); backdrop-filter: blur(10px); color: var(--text); font: 500 14px/1.4 var(--body);
  transition: opacity .35s ease;
}
.ticker.fade { opacity: 0; }
.ticker .tk { font: 600 9.5px var(--head); letter-spacing: .22em; text-transform: uppercase; color: var(--gold-2); margin-right: 10px; }
.ticker .tk.betrayal, .ticker .tk.capital_fallen, .ticker .tk.eliminated { color: var(--red); }
.scroll-hint { position: absolute; right: 24px; bottom: 34px; color: var(--faint); font: 500 9px var(--head); letter-spacing: .34em; text-transform: uppercase; writing-mode: vertical-rl; }
@media (max-width: 699px) {
  .scroll-hint { display: none; }
  .hero { align-items: flex-start; padding: 50svh 22px 36px; min-height: 100svh; flex-direction: column; justify-content: flex-start; }
  .hero::before { width: 100%; opacity: .28; -webkit-mask-image: linear-gradient(180deg, transparent 35%, #000 60%, transparent); mask-image: linear-gradient(180deg, transparent 35%, #000 60%, transparent); }
  .hero h1 { font-size: 18px; letter-spacing: .18em; }
  .lede { font-size: 15px; }
  .pillars { grid-template-columns: 1fr; gap: 8px; }
  .ticker { position: static; margin-top: 22px; max-width: none; }
}
@media (min-width: 1000px) { .ticker { right: auto; max-width: 560px; } }

/* ---------- sections ---------- */

main > section:not(.hero) { position: relative; z-index: 1; background: var(--bg); }
.strip { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1px; background: var(--line); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.strip div { background: var(--bg-2); padding: 18px 20px; }
.strip b { display: block; font: 700 24px var(--head); color: var(--gold-2); font-variant-numeric: tabular-nums; }
.strip span { font: 500 9.5px var(--head); color: var(--muted); text-transform: uppercase; letter-spacing: .24em; }
@media (min-width: 900px) { .strip { grid-template-columns: repeat(5, 1fr); } }

.block { padding: 84px 22px; max-width: 1140px; margin: 0 auto; }
main > section.dark { background: var(--bg-2); max-width: none; }
main > section.dark > * { max-width: 1096px; margin-left: auto; margin-right: auto; }
.block h2 { font-size: clamp(20px, 2.8vw, 30px); text-transform: uppercase; line-height: 1.25; font-weight: 700; letter-spacing: .08em; color: var(--text); margin-top: 10px; }
.sub { color: var(--muted); font-size: 16px; max-width: 640px; margin: 0 0 36px; }
.block .btn.primary { margin-top: 10px; }

.steps { display: grid; gap: 18px; }
@media (min-width: 800px) { .steps { grid-template-columns: repeat(3, 1fr); } }
.steps article, .cards article { background: var(--panel); border: 1px solid var(--line); border-radius: 6px; padding: 24px; position: relative; }
.steps article::after, .cards article::after { content: ''; position: absolute; left: 24px; right: 24px; bottom: 0; height: 1px; background: linear-gradient(90deg, transparent, rgba(227, 16, 26, .55), transparent); opacity: .7; }
.num { font: 700 26px var(--head); color: var(--red); text-shadow: 0 0 14px var(--red-glow); line-height: 1; }
.steps h3, .cards h3 { font-size: 12.5px; margin: 14px 0 10px; text-transform: uppercase; letter-spacing: .18em; font-weight: 700; color: var(--gold-2); }
.steps p, .cards p { margin: 0; color: var(--muted); font-size: 15px; }
.steps em { color: var(--text); font-style: italic; }
.cards { display: grid; gap: 14px; }
@media (min-width: 700px) { .cards { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1000px) { .cards { grid-template-columns: repeat(3, 1fr); } }

/* ---------- hall ---------- */

.hall { list-style: none; margin: 0 0 18px; padding: 0; border: 1px solid var(--line); border-radius: 6px; overflow: hidden; background: var(--panel); }
.hall li { display: grid; grid-template-columns: 38px 1fr auto; gap: 12px; align-items: center; padding: 12px 16px; border-top: 1px solid var(--line); }
.hall li:first-child { border-top: 0; }
.hall .rk { font: 700 14px var(--head); color: var(--faint); }
.hall li:nth-child(1) .rk { color: var(--gold-2); }
.hall .nm { font-weight: 600; display: flex; flex-direction: column; min-width: 0; }
.hall .nm small { color: var(--faint); font-weight: 400; font-size: 12.5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.hall .nm .flag { font-size: 22px; margin-right: 6px; }
.hall .st { text-align: right; font-variant-numeric: tabular-nums; font-size: 14px; color: var(--muted); white-space: nowrap; }
.hall .st b { color: var(--text); font: 700 13px var(--head); }
.hall .bar { grid-column: 1 / -1; height: 3px; border-radius: 2px; background: rgba(255, 255, 255, .06); overflow: hidden; }
.hall .bar i { display: block; height: 100%; }
.hall .muted { color: var(--faint); display: block; }
@media (max-width: 480px) { .hall li { grid-template-columns: 34px 1fr; } .hall .st { grid-column: 2; text-align: left; } }
.yours-row { padding: 14px 16px; border-radius: 6px; background: rgba(227, 16, 26, .06); border: 1px solid rgba(227, 16, 26, .35); margin: 0 0 22px; font-weight: 500; }

/* ---------- agents ---------- */

.agent-grid { display: grid; gap: 32px; }
@media (min-width: 960px) { .agent-grid { grid-template-columns: 1fr 1.1fr; align-items: start; } }
.agent-copy h3 { font-size: 11.5px; text-transform: uppercase; letter-spacing: .22em; margin: 22px 0 8px; color: var(--gold-2); font-weight: 700; }
.agent-copy h3:first-child { margin-top: 0; }
.agent-copy p { color: var(--muted); margin: 0 0 8px; }
.ways { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }
.ways li { padding: 12px 14px; background: var(--panel); border: 1px solid var(--line); border-radius: 6px; color: var(--muted); font-size: 15px; }
.ways b { color: var(--text); }
.ways code { color: var(--gold-2); }
.fine { font-size: 13px; color: var(--faint); }
.code-col { position: sticky; top: 80px; }
.code-tabs { display: flex; gap: 4px; margin-bottom: -1px; }
.code-tabs button { background: var(--panel); border: 1px solid var(--line); border-bottom: 0; color: var(--muted); font: 600 10px var(--head); letter-spacing: .2em; text-transform: uppercase; padding: 10px 16px; border-radius: 4px 4px 0 0; cursor: pointer; }
.code-tabs button.on { color: var(--gold-2); background: #050607; border-color: var(--line-strong); }
.code { margin: 0; background: #050607; border: 1px solid var(--line-strong); border-radius: 0 6px 6px 6px; padding: 18px; overflow-x: auto; font-size: 12.5px; line-height: 1.6; color: #cdc5b4; }
.code .o { color: var(--gold-2); }

.season { text-align: center; }
.season .sub { margin-left: auto; margin-right: auto; }
.season .wordmark { display: block; margin: 0 auto 16px; width: min(328px, 70vw); height: auto; filter: drop-shadow(0 0 24px rgba(201, 162, 74, .18)); }
.season .tagline { margin: 0 0 10px; color: var(--muted); font: 500 11px var(--head); letter-spacing: .3em; text-transform: uppercase; }

footer {
  position: relative; z-index: 1; background: var(--bg); border-top: 1px solid var(--line);
  padding: 26px 22px calc(26px + env(safe-area-inset-bottom)); color: var(--faint); font-size: 13px;
  display: flex; flex-wrap: wrap; gap: 14px; justify-content: space-between; align-items: center;
}
footer nav { display: flex; gap: 18px; }
footer a { color: var(--muted); text-decoration: none; font: 500 10px var(--head); letter-spacing: .22em; text-transform: uppercase; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .blink { animation: none; }
  .btn { transition: none; }
  .yours { transition: none; }
}

/* ---------- generals ---------- */

.gen-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; margin-top: 8px; }
.gen { margin: 0; border: 1px solid var(--line); border-radius: 8px; overflow: hidden; background: var(--panel); }
.gen img { display: block; width: 100%; height: auto; aspect-ratio: 1; object-fit: cover; }
.gen figcaption { padding: 10px 12px 12px; display: grid; gap: 5px; }
.gen b { font: 700 11px var(--head); letter-spacing: .14em; text-transform: uppercase; }
.gen em { font: 500 8.5px var(--head); letter-spacing: .16em; text-transform: uppercase; color: var(--muted); font-style: normal; }
.gen .tier { justify-self: start; padding: 2px 7px; border-radius: 2px; font: 700 8px var(--head); letter-spacing: .14em; text-transform: uppercase; }
.gen .tier.default { background: var(--accent); color: #15110a; }
.gen .tier.premium { background: var(--red); color: #fff; }
.gen .tier.ultra { background: #9b4dff; color: #fff; }
@media (max-width: 900px) { .gen-grid { grid-template-columns: repeat(2, 1fr); } }
