/* Layout: full-bleed desert hero, then a brass HUD gauge rail, then sections on soot plate with riveted brass edges. Single dark look by choice. */
:root {
  --soot: #14100c;
  --iron: #1e1812;
  --plate: #2a2119;
  --rivet: #4a3a26;
  --brass: #d6ad55;
  --brass-dim: #9a7836;
  --sand: #e9a25a;
  --copper: #c0602f;
  --ember: #ff4b25;
  --gauge: #a6e8a2;
  --ink: #f1e6cf;
  --muted: #bba98a;
  --display: "Cinzel", "Trajan Pro", "Times New Roman", serif;
  --body: "Alegreya Sans", "Gill Sans", "Segoe UI", sans-serif;
  --mono: "Share Tech Mono", "Consolas", "Courier New", monospace;
  --gutter-l: max(16px, env(safe-area-inset-left, 0px));
  --gutter-r: max(16px, env(safe-area-inset-right, 0px));
  color-scheme: dark;
}
* { box-sizing: border-box; }
body { margin: 0; }
img { max-width: 100%; }
[hidden] { display: none !important; }
html { scroll-behavior: smooth; }
body {
  background: var(--soot);
  color: var(--ink);
  font-family: var(--body);
  font-size: 18px;
  line-height: 1.6;
}
a { color: var(--brass); }
a:focus-visible, button:focus-visible { outline: 2px solid var(--gauge); outline-offset: 3px; }
h1, h2, h3 { font-family: var(--display); text-wrap: balance; margin: 0; line-height: 1.1; }
p { margin: 0; }
.wrap { max-width: 1160px; margin: 0 auto; padding-left: var(--gutter-l); padding-right: var(--gutter-r); }
.eyebrow {
  font-family: var(--mono); font-size: 13px; letter-spacing: .18em; text-transform: uppercase; color: var(--sand);
}

/* ---------- top bar ---------- */
body::before { content: ""; position: fixed; inset: 0 0 auto; height: env(safe-area-inset-top, 0px); z-index: 10; background: var(--soot); }
.bar {
  position: sticky; top: env(safe-area-inset-top, 0px); z-index: 9;
  background: color-mix(in srgb, var(--soot) 88%, transparent);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--rivet);
}
.bar .wrap { display: flex; align-items: center; gap: 24px; padding-block: 10px; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--ink); }
.brand img { width: 38px; height: 38px; }
.brand span { font-family: var(--display); font-weight: 700; letter-spacing: .12em; font-size: 18px; }
.bar nav { display: flex; gap: 22px; margin-left: auto; }
.bar nav a { color: var(--muted); text-decoration: none; font-size: 15px; letter-spacing: .04em; }
.bar nav a:hover { color: var(--brass); }

/* ---------- buttons: the molten-red hover from the in-game menus ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 10px;
  font-family: var(--display); font-weight: 700; font-size: 15px; letter-spacing: .14em; text-transform: uppercase;
  text-decoration: none; color: var(--soot);
  background: linear-gradient(180deg, #ecc874, var(--brass) 45%, var(--brass-dim));
  border: 1px solid #f3d98f; border-radius: 3px;
  padding: 13px 22px;
  box-shadow: inset 0 -2px 0 rgba(0,0,0,.25), 0 0 0 3px var(--iron), 0 0 0 4px var(--brass-dim);
  transition: box-shadow .25s, color .25s, background .25s;
}
.btn.ghost { background: var(--iron); color: var(--brass); border-color: var(--brass-dim); }
.btn:hover {
  color: #fff3e6;
  background: linear-gradient(180deg, #ff8a52, var(--ember) 50%, #a3200b);
  border-color: #ffb48a;
  box-shadow: inset 0 -2px 0 rgba(0,0,0,.25), 0 0 0 3px var(--iron), 0 0 0 4px var(--ember), 0 0 26px 4px rgba(255,75,37,.55);
}
.bar .btn { padding: 9px 16px; font-size: 13px; }

/* ---------- hero ---------- */
.hero { position: relative; overflow: hidden; border-bottom: 2px solid var(--brass-dim); }
.hero > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 60% 50%; }
.hero::after {
  content: ""; position: absolute; inset: 0;
  background:
    linear-gradient(90deg, rgba(20,16,12,.94) 0%, rgba(20,16,12,.72) 38%, rgba(20,16,12,.05) 72%),
    linear-gradient(0deg, rgba(20,16,12,.85) 0%, rgba(20,16,12,0) 35%);
}
.hero .wrap { position: relative; z-index: 1; padding-block: clamp(72px, 12vw, 150px) clamp(56px, 8vw, 96px); }
.hero h1 {
  font-size: clamp(56px, 11vw, 132px); font-weight: 900; letter-spacing: .04em; color: var(--brass);
  text-shadow: 0 2px 0 #5b4219, 0 8px 30px rgba(0,0,0,.6);
}
.hero .tag { font-family: var(--display); font-weight: 500; letter-spacing: .3em; text-transform: uppercase; color: var(--ink); font-size: clamp(14px, 2vw, 19px); margin-top: 10px; }
.hero .lede { max-width: 30em; margin-top: 26px; font-size: 20px; color: var(--ink); }
.hero .ctas { display: flex; flex-wrap: wrap; gap: 18px; margin-top: 34px; }
.status {
  display: inline-flex; align-items: center; gap: 10px; margin-bottom: 22px;
  font-family: var(--mono); font-size: 13px; letter-spacing: .12em; text-transform: uppercase; color: var(--gauge);
  background: rgba(10,22,12,.75); border: 1px solid #3c5a3a; border-radius: 2px; padding: 5px 12px;
}
.status i { width: 8px; height: 8px; border-radius: 50%; background: var(--gauge); box-shadow: 0 0 8px var(--gauge); animation: blink 2.4s infinite; }
@keyframes blink { 50% { opacity: .35; } }

/* ---------- gauge rail (the HUD strip) ---------- */
.rail { background: linear-gradient(180deg, var(--plate), var(--iron)); border-bottom: 1px solid var(--rivet); }
.rail .wrap { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; padding-block: 22px; }
.gauge {
  position: relative; background: #0d1410; border: 2px solid var(--brass-dim); border-radius: 4px;
  padding: 12px 16px 12px; box-shadow: inset 0 0 18px rgba(0,0,0,.8), 0 0 0 3px var(--iron), 0 0 0 4px #5a4523;
}
.gauge::before, .gauge::after { content: ""; position: absolute; top: 6px; width: 5px; height: 5px; border-radius: 50%; background: var(--brass-dim); }
.gauge::before { left: 6px; } .gauge::after { right: 6px; }
.gauge b { display: block; font-family: var(--mono); font-weight: 400; font-size: clamp(24px, 3.2vw, 34px); color: var(--gauge); text-shadow: 0 0 10px rgba(166,232,162,.45); font-variant-numeric: tabular-nums; line-height: 1.1; }
.gauge span { display: block; font-size: 14px; color: var(--muted); margin-top: 2px; }

/* ---------- sections ---------- */
section { padding-block: clamp(64px, 9vw, 112px); }
.head { display: grid; gap: 14px; max-width: 44em; margin-bottom: 44px; }
.head h2 { font-size: clamp(32px, 4.6vw, 50px); color: var(--ink); font-weight: 700; }
.head p { color: var(--muted); font-size: 19px; }

/* match clock timeline */
.clock { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 0; border-top: 2px solid var(--brass-dim); }
.phase { position: relative; padding: 28px 24px 0 0; min-width: 0; }
.phase::before {
  content: ""; position: absolute; top: -9px; left: 0; width: 16px; height: 16px; border-radius: 50%;
  background: var(--soot); border: 3px solid var(--brass);
}
.phase.sd::before { border-color: var(--ember); box-shadow: 0 0 12px var(--ember); }
.phase time { font-family: var(--mono); font-size: 22px; color: var(--sand); font-variant-numeric: tabular-nums; }
.phase.sd time { color: var(--ember); }
.phase h3 { font-size: 22px; margin: 6px 0 10px; color: var(--ink); }
.phase p { color: var(--muted); font-size: 17px; }
.phase .yield { margin-top: 14px; font-family: var(--mono); font-size: 14px; color: var(--gauge); }

/* armory */
.armory { background: var(--iron); border-block: 1px solid var(--rivet); }
.split { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); gap: 48px; align-items: start; }
.split + .split { margin-top: 72px; }
.shot { margin: 0; border: 2px solid var(--brass-dim); border-radius: 3px; box-shadow: 0 0 0 4px var(--soot), 0 0 0 5px var(--rivet), 0 20px 40px rgba(0,0,0,.5); overflow: hidden; }
.shot img { display: block; width: 100%; aspect-ratio: 16 / 9; object-fit: cover; }
.shot figcaption { font-family: var(--mono); font-size: 12px; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); background: var(--soot); padding: 8px 12px; }
.roster h3 { font-size: 15px; letter-spacing: .24em; text-transform: uppercase; color: var(--sand); margin-bottom: 8px; }
.roster ul { list-style: none; margin: 0; padding: 0; }
.roster li { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 4px 16px; padding: 16px 0; border-bottom: 1px dashed var(--rivet); }
.roster li:first-child { border-top: 1px dashed var(--rivet); }
.roster strong { font-family: var(--display); font-weight: 700; font-size: 19px; color: var(--ink); letter-spacing: .03em; }
.roster .spec { font-family: var(--mono); font-size: 14px; color: var(--gauge); white-space: nowrap; align-self: center; }
.roster li p { grid-column: 1 / -1; color: var(--muted); font-size: 16px; }
.roster .new { font-family: var(--mono); font-size: 11px; letter-spacing: .14em; color: var(--soot); background: var(--sand); padding: 1px 6px; border-radius: 2px; margin-left: 8px; vertical-align: 3px; }
.note { margin-top: 22px; font-size: 14px; color: var(--muted); font-style: italic; }

/* gallery */
.gallery { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
.gallery button { padding: 0; border: 1px solid var(--rivet); border-radius: 3px; background: none; cursor: zoom-in; overflow: hidden; display: block; }
.gallery img { display: block; width: 100%; aspect-ratio: 2 / 1; object-fit: cover; transition: transform .5s; }
.gallery button:hover img { transform: scale(1.04); }
.gallery .wide { grid-column: span 2; }
.gallery .wide img { aspect-ratio: auto; height: 100%; }
.trailer {
  display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: 22px; align-items: center;
  margin-top: 28px; padding: 22px 26px; background: var(--iron); border: 1px solid var(--rivet); border-radius: 3px;
}
.trailer .play {
  width: 58px; height: 58px; border-radius: 50%; border: 2px solid var(--brass); display: grid; place-items: center;
}
.trailer .play::before { content: ""; border-left: 18px solid var(--brass); border-block: 11px solid transparent; margin-left: 5px; }
.trailer h3 { font-size: 22px; }
.trailer p { color: var(--muted); font-size: 16px; }
.shorts { display: flex; flex-wrap: wrap; gap: 10px 22px; margin-top: 18px; font-size: 16px; }
.shorts span { color: var(--muted); }

dialog { padding: 0; border: 2px solid var(--brass-dim); background: var(--soot); max-width: min(1400px, 94vw); }
dialog::backdrop { background: rgba(8,6,4,.88); }
dialog img { display: block; width: 100%; height: auto; }
dialog form { position: absolute; top: 10px; right: 10px; }
dialog button { font-family: var(--mono); background: var(--soot); color: var(--brass); border: 1px solid var(--brass-dim); padding: 6px 12px; cursor: pointer; }

/* community */
.community { background: linear-gradient(180deg, var(--iron), var(--soot)); border-top: 1px solid var(--rivet); }
.links { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }
.link {
  display: grid; gap: 6px; padding: 24px; text-decoration: none; color: var(--ink);
  background: var(--plate); border: 1px solid var(--rivet); border-radius: 3px; transition: border-color .25s, box-shadow .25s;
}
.link:hover { border-color: var(--ember); box-shadow: 0 0 22px rgba(255,75,37,.3); }
.link .eyebrow { color: var(--brass); }
.link strong { font-family: var(--display); font-size: 22px; }
.link span:last-child { color: var(--muted); font-size: 16px; }
.link.primary { background: linear-gradient(160deg, #3a2a17, var(--plate)); border-color: var(--brass-dim); }

footer { border-top: 1px solid var(--rivet); }
footer .wrap { display: flex; flex-wrap: wrap; gap: 12px 24px; align-items: center; padding-block: 28px; color: var(--muted); font-size: 14px; }
footer img { width: 30px; height: 30px; }
footer .right { margin-left: auto; font-family: var(--mono); letter-spacing: .08em; }

@media (max-width: 900px) {
  .rail .wrap, .clock { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .clock { border-top: none; gap: 32px 20px; }
  .phase { border-top: 2px solid var(--brass-dim); }
  .split { grid-template-columns: minmax(0, 1fr); gap: 28px; }
  .links { grid-template-columns: minmax(0, 1fr); }
  .gallery { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .gallery .wide { grid-column: span 2; }
  .bar nav { display: none; }
  .bar .btn { margin-left: auto; }
}
@media (max-width: 520px) {
  body { font-size: 17px; }
  .hero::after { background: linear-gradient(0deg, rgba(20,16,12,.95) 0%, rgba(20,16,12,.7) 60%, rgba(20,16,12,.35) 100%); }
  .clock { grid-template-columns: minmax(0, 1fr); }
  .gallery { grid-template-columns: minmax(0, 1fr); }
  .gallery .wide { grid-column: auto; }
  .trailer { grid-template-columns: minmax(0, 1fr); }
  .brand span { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  html { scroll-behavior: auto; }
}

/* ---------- download page ---------- */
.bar nav a[aria-current="page"] { color: var(--brass); }
.dl-hero { position: relative; overflow: hidden; border-bottom: 2px solid var(--brass-dim); }
.dl-hero > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 50% 40%; }
.dl-hero::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(20,16,12,.96) 0%, rgba(20,16,12,.82) 48%, rgba(20,16,12,.35) 100%); }
.dl-hero .wrap { position: relative; z-index: 1; padding-block: clamp(56px, 9vw, 104px); display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr); gap: 48px; align-items: center; }
.dl-hero h1 { font-size: clamp(40px, 6.4vw, 76px); font-weight: 900; color: var(--brass); text-shadow: 0 2px 0 #5b4219, 0 8px 30px rgba(0,0,0,.6); }
.dl-hero .lede { margin-top: 18px; max-width: 30em; font-size: 19px; }
.ticket {
  background: linear-gradient(180deg, var(--plate), var(--iron)); border: 2px solid var(--brass-dim); border-radius: 4px;
  box-shadow: 0 0 0 4px var(--soot), 0 0 0 5px var(--rivet), 0 24px 50px rgba(0,0,0,.55);
  padding: 26px; display: grid; gap: 18px; min-width: 0;
}
.ticket .row { display: flex; justify-content: space-between; gap: 12px; font-family: var(--mono); font-size: 14px; color: var(--muted); border-bottom: 1px dashed var(--rivet); padding-bottom: 8px; }
.ticket .row b { font-weight: 400; color: var(--gauge); text-align: right; }
.ticket .btn { justify-content: center; font-size: 17px; padding: 17px 22px; }
.ticket .btn svg { width: 20px; height: 20px; flex: none; }
.ticket small { color: var(--muted); font-size: 14px; }
.hash { font-family: var(--mono); font-size: 12px; color: var(--muted); overflow-wrap: anywhere; }
.steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 18px; counter-reset: step; }
.steps li { counter-increment: step; background: var(--iron); border: 1px solid var(--rivet); border-radius: 3px; padding: 22px; display: grid; gap: 8px; align-content: start; min-width: 0; }
.steps li::before { content: counter(step, decimal-leading-zero); font-family: var(--mono); font-size: 26px; color: var(--sand); }
.steps h3 { font-size: 19px; }
.steps p { color: var(--muted); font-size: 16px; }
.steps kbd { font-family: var(--mono); font-size: 14px; color: var(--ink); background: var(--soot); border: 1px solid var(--rivet); border-radius: 2px; padding: 0 5px; }
.two { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 48px; }
.specs { margin: 0; display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 0; }
.specs dt, .specs dd { margin: 0; padding: 12px 0; border-bottom: 1px dashed var(--rivet); }
.specs dt { font-family: var(--mono); font-size: 13px; letter-spacing: .12em; text-transform: uppercase; color: var(--sand); padding-right: 24px; }
.specs dd { color: var(--ink); }
.notes { margin: 0; padding: 0; list-style: none; display: grid; gap: 12px; }
.notes li { padding-left: 22px; position: relative; color: var(--ink); }
.notes li::before { content: ""; position: absolute; left: 0; top: .6em; width: 8px; height: 8px; transform: rotate(45deg); background: var(--copper); }
.notes li span { color: var(--muted); }
.sub { font-size: 15px; letter-spacing: .24em; text-transform: uppercase; color: var(--sand); margin-bottom: 14px; }
@media (max-width: 900px) {
  .dl-hero .wrap, .two { grid-template-columns: minmax(0, 1fr); }
  .steps { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 520px) { .steps { grid-template-columns: minmax(0, 1fr); } }
.keyform { display: grid; gap: 10px; }
.keyform label { font-family: var(--mono); font-size: 13px; letter-spacing: .14em; text-transform: uppercase; color: var(--sand); }
.keyform input {
  font-family: var(--mono); font-size: 22px; letter-spacing: .08em; text-align: center; color: var(--gauge);
  background: #0d1410; border: 2px solid var(--brass-dim); border-radius: 3px; padding: 12px 10px; width: 100%;
  box-shadow: inset 0 0 14px rgba(0,0,0,.8);
}
.keyform input::placeholder { color: #4f6a4d; }
.keyform input:focus { outline: none; border-color: var(--gauge); }
.keyform .btn { justify-content: center; font-size: 17px; padding: 17px 22px; cursor: pointer; }
.keyform .btn:disabled { opacity: .6; cursor: progress; }
.keyform .btn svg { width: 20px; height: 20px; flex: none; }
.msg { min-height: 1.4em; font-size: 15px; color: var(--muted); }
.msg.bad { color: var(--ember); }
.msg.good { color: var(--gauge); }

/* ---------- YouTube: trailer + shorts ---------- */
.watch { background: var(--iron); border-block: 1px solid var(--rivet); }
.watch-head { display: flex; flex-wrap: wrap; gap: 20px 40px; align-items: end; justify-content: space-between; margin-bottom: 36px; }
.watch-head .head { margin-bottom: 0; }
.btn.yt svg { width: 22px; height: 22px; flex: none; }
.player { border: 2px solid var(--brass-dim); border-radius: 3px; box-shadow: 0 0 0 4px var(--soot), 0 0 0 5px var(--rivet), 0 24px 50px rgba(0,0,0,.55); overflow: hidden; background: #000; }
.yt-embed, .yt-frame { display: block; width: 100%; aspect-ratio: 16 / 9; border: 0; padding: 0; margin: 0; background: #000; }
.yt-embed { position: relative; cursor: pointer; overflow: hidden; }
.yt-embed img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .6s, filter .3s; filter: brightness(.82); }
.yt-embed:hover img { transform: scale(1.03); filter: brightness(1); }
.yt-play {
  position: absolute; left: 50%; top: 50%; width: 92px; height: 92px; margin: -46px 0 0 -46px; border-radius: 50%;
  background: rgba(20,16,12,.72); border: 3px solid var(--brass); display: grid; place-items: center;
  box-shadow: 0 0 0 6px rgba(20,16,12,.4); transition: background .25s, border-color .25s, box-shadow .25s;
}
.yt-play::before { content: ""; border-left: 28px solid var(--brass); border-block: 17px solid transparent; margin-left: 8px; transition: border-color .25s; }
.yt-embed:hover .yt-play { background: var(--ember); border-color: #ffb48a; box-shadow: 0 0 30px 6px rgba(255,75,37,.55); }
.yt-embed:hover .yt-play::before { border-left-color: #fff3e6; }
.yt-label { position: absolute; left: 16px; bottom: 14px; font-family: var(--mono); font-size: 13px; letter-spacing: .12em; text-transform: uppercase; color: var(--ink); background: rgba(20,16,12,.8); padding: 5px 10px; border-radius: 2px; }
.shorts-title { margin-top: 56px; }
.shorts-row { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 22px; max-width: 900px; }
.shorts-row figure { margin: 0; display: grid; gap: 10px; min-width: 0; }
.yt-embed.tall, .yt-frame.tall { aspect-ratio: 9 / 16; border: 1px solid var(--rivet); border-radius: 3px; }
.yt-embed.tall .yt-play { width: 64px; height: 64px; margin: -32px 0 0 -32px; }
.yt-embed.tall .yt-play::before { border-left-width: 20px; border-block-width: 12px; margin-left: 6px; }
.shorts-row figcaption { color: var(--muted); font-size: 15px; }
.more { margin-top: 26px; }
footer .social { display: flex; gap: 18px; }
footer .social a { color: var(--brass); text-decoration: none; }
footer .social a:hover { color: var(--ember); }
@media (max-width: 640px) {
  .shorts-row { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
  .shorts-row figcaption { font-size: 13px; }
  .yt-play { width: 70px; height: 70px; margin: -35px 0 0 -35px; }
}
