/* Armageddon site. Layout: a framed "game screen" hero, then a feature grid of real in-game shots, tiers, steps and FAQ.
   One dark look, matching the client: near-black with blood red, crystal edges on the hero. */
:root {
  --bg: #0b0505;
  --panel: #150808;
  --raised: #1f0b0b;
  --line: #3a1212;
  --fg: #f3e6e6;
  --dim: #b89393;
  --accent: #e52222;
  --accent-hi: #ff6b6b;
  --accent-deep: #8b0000;
  --display: "Chakra Petch", "Segoe UI", system-ui, sans-serif;
  --body: "IBM Plex Sans", "Segoe UI", system-ui, sans-serif;
  --mono: "IBM Plex Mono", ui-monospace, Consolas, monospace;
  color-scheme: dark;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body {
  margin: 0;
  background: var(--bg);
  color: var(--fg);
  font-family: var(--body);
  font-size: 16px;
  line-height: 1.6;
}
img { max-width: 100%; display: block; }
a { color: var(--accent-hi); }
a:focus-visible, button:focus-visible { outline: 2px solid var(--accent-hi); outline-offset: 3px; }

.gutter {
  padding-left: max(18px, env(safe-area-inset-left, 0px));
  padding-right: max(18px, env(safe-area-inset-right, 0px));
}
.inner { max-width: 1120px; margin: 0 auto; }

/* Top bar */
.bar { position: sticky; top: env(safe-area-inset-top, 0px); z-index: 20; background: rgba(11, 5, 5, 0.86); backdrop-filter: blur(8px); border-bottom: 1px solid var(--line); }
body::before { content: ""; position: fixed; inset: 0 0 auto; height: env(safe-area-inset-top, 0px); z-index: 30; background: var(--bg); }
.bar .inner { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding-block: 10px; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--fg); font-family: var(--display); font-weight: 700; letter-spacing: 0.14em; }
.brand img { width: 26px; height: 26px; image-rendering: pixelated; }
.nav { display: flex; gap: 18px; flex-wrap: wrap; }
.nav a { color: var(--dim); text-decoration: none; font-size: 14px; }
.nav a:hover { color: var(--fg); }
@media (max-width: 640px) { .nav .hide-sm { display: none; } }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 12px 20px; border-radius: 4px;
  font-family: var(--display); font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; font-size: 15px;
  text-decoration: none; border: 1px solid transparent; cursor: pointer;
}
.btn.primary { background: linear-gradient(180deg, var(--accent), var(--accent-deep)); color: #fff; border-color: #ff7a7a55; box-shadow: 0 0 24px #e5222244; }
.btn.primary:hover { filter: brightness(1.12); }
.btn.ghost { color: var(--fg); border-color: var(--line); background: var(--panel); }
.btn.ghost:hover { border-color: var(--accent); }

/* Hero */
.hero { position: relative; overflow: hidden; border-bottom: 1px solid var(--line); }
.hero canvas { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; }
.hero .inner { position: relative; display: grid; gap: 28px; padding-block: 56px 64px; grid-template-columns: minmax(0, 1fr) minmax(0, 1.25fr); align-items: center; }
@media (max-width: 860px) { .hero .inner { grid-template-columns: 1fr; padding-block: 36px 44px; } }
.hero .star { width: 56px; height: 56px; image-rendering: pixelated; filter: drop-shadow(0 0 14px #e52222aa); }
.hero .logo { width: min(460px, 100%); }
.hero .star { display: block; margin: 6px 0 0 calc(min(460px, 100%) / 2 - 28px); }
.hero h1 { font-family: var(--display); font-size: clamp(20px, 2.6vw, 26px); font-weight: 600; line-height: 1.3; margin: 14px 0 0; text-wrap: balance; }
.hero p.lede { color: var(--dim); max-width: 46ch; margin: 10px 0 22px; }
.hero .cta { display: flex; gap: 12px; flex-wrap: wrap; }
.meta { margin-top: 18px; color: var(--dim); font-size: 13px; font-family: var(--mono); letter-spacing: 0.02em; }
.screen { border: 1px solid var(--line); border-radius: 6px; overflow: hidden; box-shadow: 0 20px 60px #000a, 0 0 0 1px #e5222222; background: #000; }
.screen img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; }

/* Hero: rotating feature showcase (text and icons, no screenshots) */
.showcase {
  position: relative; padding: 22px 22px 18px; border-radius: 10px; border: 1px solid var(--line);
  background: radial-gradient(120% 80% at 100% 0%, #e5222224, transparent 60%), linear-gradient(180deg, #1a0909, #110606);
  box-shadow: 0 24px 70px #000b, 0 0 0 1px #e5222218;
}
.show-head { display: flex; align-items: center; gap: 10px; font-family: var(--mono); font-size: 12px; letter-spacing: 0.16em; text-transform: uppercase; color: var(--dim); }
.show-count { margin-left: auto; color: var(--accent-hi); border: 1px solid #5e1e1e; border-radius: 999px; padding: 1px 10px; letter-spacing: 0.08em; }
.pulse { width: 8px; height: 8px; border-radius: 999px; background: var(--accent); box-shadow: 0 0 0 0 #e52222aa; animation: pulse 1.8s infinite; }
@keyframes pulse { 0% { box-shadow: 0 0 0 0 #e52222aa; } 80%, 100% { box-shadow: 0 0 0 10px #e5222200; } }
.show-stage { position: relative; min-height: 214px; margin-top: 18px; }
.show-card { position: absolute; inset: 0; opacity: 0; transform: translateY(10px); transition: opacity 0.45s ease, transform 0.45s ease; pointer-events: none; }
.show-card.is-on { opacity: 1; transform: none; pointer-events: auto; }
.show-top { display: flex; align-items: center; gap: 12px; }
.show-top svg { width: 40px; height: 40px; padding: 8px; border-radius: 10px; border: 1px solid #5e1e1e; background: #2a0c0c; fill: none; stroke: var(--accent-hi); stroke-width: 1.8; stroke-linejoin: round; stroke-linecap: round; filter: drop-shadow(0 0 10px #e5222255); }
.show-cat { font-family: var(--mono); font-size: 12px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--accent-hi); }
.show-card h3 { font-family: var(--display); font-size: clamp(24px, 2.6vw, 32px); letter-spacing: 0.03em; line-height: 1.1; margin: 16px 0 8px; }
.show-card p { color: var(--dim); margin: 0 0 14px; max-width: 46ch; }
.show-card ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.show-card li { font-size: 13px; border: 1px solid var(--line); background: var(--raised); border-radius: 999px; padding: 3px 11px; }
.show-tabs { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 6px; margin-top: 16px; padding-top: 14px; border-top: 1px solid var(--line); }
.show-tabs button { position: relative; overflow: hidden; text-align: left; font: inherit; font-size: 12.5px; color: var(--dim); background: transparent; border: 1px solid transparent; border-radius: 5px; padding: 7px 9px 9px; cursor: pointer; }
.show-tabs button span { display: block; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.show-tabs button:hover { color: var(--fg); border-color: var(--line); }
.show-tabs button.is-on { color: #fff; background: #2a0c0c; border-color: #5e1e1e; }
.show-tabs i { position: absolute; left: 0; bottom: 0; height: 2px; width: 0; background: var(--accent); }
.show-tabs button.is-on i { animation: fill var(--secs) linear forwards; }
.showcase.paused .show-tabs button.is-on i { animation-play-state: paused; }
@keyframes fill { to { width: 100%; } }
@media (max-width: 520px) { .show-tabs { grid-template-columns: repeat(2, minmax(0, 1fr)); } .show-stage { min-height: 270px; } }
@media (prefers-reduced-motion: reduce) { .show-card { transition: none; } .pulse { animation: none; } .show-tabs i { display: none; } }

/* Screenshots: full size and lossless, never shrunk into small cards */
.shot-row { margin-top: 44px; }
.shot-text h3 { font-family: var(--display); font-size: 22px; letter-spacing: 0.04em; margin: 0 0 6px; }
.shot-text p { color: var(--dim); margin: 0; max-width: 70ch; }
.shot-big { width: min(1280px, 100%); margin: 18px auto 0; border-radius: 8px; overflow: hidden; border: 1px solid var(--line); box-shadow: 0 30px 80px #000c, 0 0 0 1px #e5222218; background: #000; }
.shot-big img { width: 100%; height: auto; }

/* Sections */
section { padding-block: 64px; }
section + section { border-top: 1px solid var(--line); }
.eyebrow { font-family: var(--mono); font-size: 12px; letter-spacing: 0.16em; text-transform: uppercase; color: var(--accent-hi); margin: 0 0 8px; }
h2 { font-family: var(--display); font-size: clamp(26px, 3.6vw, 36px); letter-spacing: 0.04em; line-height: 1.15; margin: 0 0 10px; text-wrap: balance; }
.intro { color: var(--dim); max-width: 62ch; margin: 0 0 32px; }

/* Features */
.features { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 18px; }
.features.two { grid-template-columns: repeat(auto-fit, minmax(min(100%, 420px), 1fr)); }
.feature { background: var(--panel); border: 1px solid var(--line); border-radius: 6px; overflow: hidden; display: grid; grid-template-rows: auto 1fr; min-width: 0; }
.feature img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; border-bottom: 1px solid var(--line); }
.feature .txt { padding: 16px 18px 18px; }
.feature h3 { font-family: var(--display); font-size: 19px; letter-spacing: 0.04em; margin: 0 0 4px; }
.feature p { margin: 0; color: var(--dim); font-size: 15px; }
.chip { display: inline-block; font-family: var(--mono); font-size: 11px; color: var(--dim); border: 1px solid var(--line); border-radius: 3px; padding: 0 6px; margin-left: 6px; vertical-align: 2px; }

.also { margin-top: 26px; display: flex; flex-wrap: wrap; gap: 8px; }
.also span { background: var(--raised); border: 1px solid var(--line); border-radius: 999px; padding: 4px 12px; font-size: 14px; color: var(--fg); }

/* Tiers */
.tiers { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 18px; }
.tier { background: var(--panel); border: 1px solid var(--line); border-radius: 6px; padding: 20px; display: grid; gap: 10px; align-content: start; }
.tier.top { border-color: var(--accent); box-shadow: 0 0 30px #e522221f; }
.tier .num { font-family: var(--display); font-size: 30px; font-weight: 700; color: var(--accent-hi); letter-spacing: 0.06em; }
.tier ul { margin: 0; padding-left: 18px; color: var(--dim); display: grid; gap: 4px; }
.tier li strong { color: var(--fg); font-weight: 500; }

/* Steps */
.steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 18px; counter-reset: step; }
.steps li { counter-increment: step; background: var(--panel); border: 1px solid var(--line); border-radius: 6px; padding: 18px; }
.steps li::before { content: counter(step); display: block; font-family: var(--display); font-weight: 700; font-size: 26px; color: var(--accent); }
.steps h3 { font-family: var(--display); margin: 2px 0 4px; font-size: 18px; }
.steps p { margin: 0; color: var(--dim); font-size: 15px; }
code { font-family: var(--mono); font-size: 0.92em; background: var(--raised); border: 1px solid var(--line); border-radius: 3px; padding: 1px 5px; color: var(--fg); }

/* FAQ */
.faq { display: grid; gap: 10px; max-width: 820px; }
.faq details { background: var(--panel); border: 1px solid var(--line); border-radius: 6px; padding: 14px 18px; }
.faq summary { cursor: pointer; font-weight: 600; }
.faq details p { color: var(--dim); margin: 8px 0 0; }

footer { border-top: 1px solid var(--line); padding-block: 28px; color: var(--dim); font-size: 13px; }
footer .inner { display: flex; flex-wrap: wrap; gap: 12px 24px; justify-content: space-between; }
footer a { color: var(--dim); }

[hidden] { display: none !important; }

/* Hero: the big "apply for the beta" panel */
.apply-panel {
  position: relative; display: grid; gap: 2px; margin: 4px 0 16px; padding: 20px 64px 20px 22px;
  text-decoration: none; color: var(--fg); border-radius: 8px; border: 1px solid #ff7a7a66;
  background: linear-gradient(135deg, #e52222 0%, #8b0000 70%, #5a0000 100%);
  box-shadow: 0 0 40px #e5222255, inset 0 1px 0 #ffffff33;
  transition: transform 0.15s ease, box-shadow 0.15s ease, filter 0.15s ease;
}
.apply-panel:hover { transform: translateY(-2px); filter: brightness(1.08); box-shadow: 0 0 56px #e5222288, inset 0 1px 0 #ffffff33; }
.apply-tag { justify-self: start; font-family: var(--mono); font-size: 11px; letter-spacing: 0.16em; text-transform: uppercase; background: #0006; border: 1px solid #ffffff44; border-radius: 999px; padding: 1px 10px; margin-bottom: 6px; }
.apply-title { font-family: var(--display); font-weight: 700; font-size: clamp(22px, 2.6vw, 28px); letter-spacing: 0.04em; line-height: 1.15; text-transform: uppercase; }
.apply-sub { color: #ffe1e1; font-size: 15px; }
.apply-go { position: absolute; right: 22px; top: 50%; transform: translateY(-50%); font-size: 30px; font-weight: 700; transition: right 0.15s ease; }
.apply-panel:hover .apply-go { right: 16px; }
@media (prefers-reduced-motion: reduce) { .apply-panel, .apply-go { transition: none; } .apply-panel:hover { transform: none; } }
.nav a.nav-acct { color: var(--fg); border: 1px solid var(--line); border-radius: 4px; padding: 0 10px; }
.nav a.nav-acct:hover { border-color: var(--accent); }

/* Account page */
.acct .inner { padding-block: 44px 64px; }
.acct section { padding-block: 0; border-top: 0; }
.btn { white-space: nowrap; }
.form button:not(.wide) { justify-self: start; }
.card .fine + .form { margin-top: 16px; }
.loading { color: var(--dim); }
.card { background: var(--panel); border: 1px solid var(--line); border-radius: 8px; padding: 22px; min-width: 0; }
.card h2 { font-size: 22px; margin: 0 0 12px; }
.card h2.gap { margin-top: 28px; }
.fine { color: var(--dim); font-size: 14px; margin: 6px 0 0; }
.opt { color: var(--dim); font-weight: 400; font-size: 12px; margin-left: 4px; }

.auth { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 440px); gap: 36px; align-items: start; }
@media (max-width: 860px) { .auth { grid-template-columns: 1fr; gap: 20px; } }
.auth h1, .dash h1 { font-family: var(--display); font-size: clamp(30px, 4.4vw, 44px); letter-spacing: 0.04em; line-height: 1.1; margin: 0 0 12px; }
.perks { margin: 0; padding: 0; list-style: none; display: grid; gap: 10px; }
.perks li { padding-left: 26px; position: relative; }
.perks li::before { content: ""; position: absolute; left: 4px; top: 7px; width: 10px; height: 10px; background: var(--accent); transform: rotate(45deg); box-shadow: 0 0 10px var(--accent); }
.auth-card { box-shadow: 0 20px 60px #000a, 0 0 0 1px #e5222222; }

.tabs { display: grid; grid-template-columns: 1fr 1fr; gap: 4px; background: var(--bg); border: 1px solid var(--line); border-radius: 6px; padding: 4px; margin-bottom: 18px; }
.tabs button { font: inherit; font-family: var(--display); font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; font-size: 14px; color: var(--dim); background: transparent; border: 0; border-radius: 4px; padding: 9px; cursor: pointer; }
.tabs button { white-space: nowrap; }
@media (max-width: 420px) { .tabs button { letter-spacing: 0.02em; font-size: 13px; padding: 9px 4px; } }
.tabs button[aria-selected="true"] { color: #fff; background: linear-gradient(180deg, var(--accent), var(--accent-deep)); }

.form { display: grid; gap: 14px; }
.form label { display: grid; gap: 6px; font-size: 14px; font-weight: 600; }
.form small { color: var(--dim); font-weight: 400; font-size: 12.5px; }
.form input:not([type="checkbox"]), .form textarea {
  font: inherit; font-weight: 400; color: var(--fg); background: var(--bg); border: 1px solid var(--line); border-radius: 4px; padding: 10px 12px; width: 100%;
}
.form textarea { resize: vertical; min-height: 64px; }
.form input:focus, .form textarea:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px #e5222233; }
.form .check { display: flex; gap: 10px; align-items: flex-start; font-weight: 400; font-size: 14px; color: var(--fg); cursor: pointer; }
.check input, .switch input { accent-color: var(--accent); }
.check input { width: 18px; height: 18px; margin: 1px 0 0; flex: none; }
.form.inline { grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); align-items: end; }
.form.inline .full { grid-column: 1 / -1; }
.form.inline button { justify-self: start; }
.msg { margin: 0; min-height: 1.2em; font-size: 14px; color: var(--accent-hi); }
.msg:empty { display: none; }
.msg.good { color: #7ee2a0; }
.btn.wide { width: 100%; justify-content: center; }
.btn.small { padding: 7px 12px; font-size: 13px; }
.btn:disabled { opacity: 0.6; cursor: default; }
.btn.danger-btn { color: #fff; background: #3a0d0d; border-color: #e5222288; }
.btn.danger-btn:hover { background: #5a1010; }

.dash-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 16px; flex-wrap: wrap; margin-bottom: 24px; }
.grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; }
@media (max-width: 760px) { .grid { grid-template-columns: 1fr; } }
.span2 { grid-column: 1 / -1; }
.card-head { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; margin-bottom: 4px; }
.card-head h2 { margin: 0; }
.badge { font-family: var(--mono); font-size: 12px; letter-spacing: 0.06em; text-transform: uppercase; border: 1px solid var(--line); border-radius: 999px; padding: 2px 10px; color: var(--dim); }
.badge.wait { color: #ffcf6b; border-color: #6b5222; }
.badge.good { color: #7ee2a0; border-color: #1e5e37; background: #0d2416; }
.badge.bad { color: var(--accent-hi); border-color: #5e1e1e; }
#beta .form { margin-top: 16px; }
.keyrow { display: flex; gap: 10px; align-items: center; margin-top: 14px; }
.keyrow code { flex: 1; min-width: 0; overflow-x: auto; white-space: nowrap; padding: 10px 12px; font-size: 13px; }
.switch { display: flex; gap: 12px; align-items: center; cursor: pointer; font-weight: 600; }
.switch input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.switch .track { flex: none; width: 44px; height: 24px; border-radius: 999px; background: var(--raised); border: 1px solid var(--line); position: relative; transition: background 0.2s; }
.switch .track::after { content: ""; position: absolute; top: 3px; left: 3px; width: 16px; height: 16px; border-radius: 999px; background: var(--dim); transition: transform 0.2s, background 0.2s; }
.switch input:checked + .track { background: var(--accent-deep); border-color: var(--accent); }
.switch input:checked + .track::after { transform: translateX(20px); background: #fff; }
.switch input:focus-visible + .track { outline: 2px solid var(--accent-hi); outline-offset: 2px; }
.card.danger { border-color: #5e1e1e; }
.creator-wrap { display: grid; gap: 14px; }
.discord-status { margin-top: -4px; }
.discord-status.ok { color: #7ee2a0; }
.discord-status.wait { color: #ffcf6b; }

/* Legal pages: one readable column */
.doc .inner { max-width: 760px; padding-block: 48px 64px; }
.doc h1 { font-family: var(--display); font-size: clamp(30px, 4.5vw, 42px); letter-spacing: 0.04em; margin: 0 0 14px; }
.doc h2 { font-size: 22px; margin: 34px 0 8px; }
.doc h3 { font-size: 16px; margin: 20px 0 4px; color: var(--fg); }
.doc p, .doc li { color: var(--dim); }
.doc strong { color: var(--fg); }
.doc ul { padding-left: 20px; display: grid; gap: 6px; }