/* Diamond Spectre — website styles. Dark charcoal + the logo's metallic blue. No framework. */

/* ------------------------------------------------------------------ tokens */
:root {
  color-scheme: dark;
  --bg: #0d0f12;
  --bg-2: #121519;
  --panel: #171a1f;
  --panel-2: #1d2128;
  --panel-3: #232833;
  --line: rgba(183, 211, 250, 0.12);
  --line-2: rgba(183, 211, 250, 0.22);
  --text: #e9eef5;
  --text-2: #c3ccd8;
  --muted: #9aa6b5;
  /* brand palette (docs/BRAND.md in the game repo) */
  --navy: #0f2a5c;
  --royal: #1f4e9c;
  --steel: #6aa0e6;
  --ice: #b7d3fa;
  --metal-shadow: #06122b;
  --charcoal: #1d1f23;
  /* squads */
  --ghost: #3fa7ff;
  --raven: #ff7a2a;
  --gold: #e9b949;
  --soon: #c9a46a;

  --font-display: Rajdhani, "Arial Narrow", "Helvetica Neue", system-ui, sans-serif;
  --font-body: Inter, system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --radius: 10px;
  --radius-sm: 6px;
  --gutter: 16px;
  --wrap: 76rem;
  --header-h: 64px;
  --shadow: 0 18px 40px -18px rgba(0, 0, 0, 0.7);
}
@media (min-width: 700px) { :root { --gutter: 28px; } }
@media (min-width: 1200px) { :root { --gutter: 40px; } }

/* ------------------------------------------------------------------ base */
*, *::before, *::after { box-sizing: border-box; }
html {
  font-size: clamp(16px, 0.25vw + 14.4px, 20px);
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scroll-padding-top: calc(var(--header-h) + 12px);
}
/* very wide screens (1440p and 4K at 100% zoom): keep the layout's proportions instead of a narrow column */
@media (min-width: 2200px) { html { font-size: clamp(20px, 0.55vw + 4px, 28px); } }
@media (prefers-reduced-motion: no-preference) { html { scroll-behavior: smooth; } }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}
img { display: block; max-width: 100%; height: auto; }
a { color: var(--ice); text-underline-offset: 0.18em; text-decoration-thickness: 1px; }
a:hover { color: #fff; }
:focus-visible { outline: 3px solid var(--ice); outline-offset: 3px; border-radius: 4px; }
::selection { background: var(--royal); color: #fff; }
h1, h2, h3, h4 { font-family: var(--font-display); font-weight: 700; line-height: 1.08; margin: 0; letter-spacing: 0.01em; }
p { margin: 0 0 1em; }
p:last-child { margin-bottom: 0; }
ul, ol { margin: 0; padding: 0; }
kbd {
  display: inline-block; min-width: 1.7em; padding: 0.06em 0.45em; margin: 0.08em 0;
  font-family: var(--font-display); font-weight: 700; font-size: 0.92em; line-height: 1.35; text-align: center;
  color: var(--text); background: var(--panel-3); border: 1px solid var(--line-2); border-bottom-width: 2px; border-radius: 5px;
}
.visually-hidden {
  position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden;
  clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap; border: 0;
}
.skip-link {
  position: absolute; left: var(--gutter); top: -100px; z-index: 100; padding: 10px 16px;
  background: var(--royal); color: #fff; font-weight: 600; border-radius: var(--radius-sm); text-decoration: none;
}
.skip-link:focus { top: 10px; }
.wrap { width: 100%; max-width: calc(var(--wrap) + 2 * var(--gutter)); margin: 0 auto; padding: 0 var(--gutter); }

/* ------------------------------------------------------------------ buttons */
.btn {
  --btn-bg: var(--panel-3);
  display: inline-flex; align-items: center; justify-content: center; gap: 0.55em;
  min-height: 48px; padding: 0.7em 1.35em;
  font-family: var(--font-display); font-weight: 700; font-size: 1.05rem; letter-spacing: 0.1em; text-transform: uppercase;
  color: var(--text); text-decoration: none; line-height: 1.1;
  background: var(--btn-bg); border: 1px solid var(--line-2); border-radius: var(--radius-sm);
  cursor: pointer; transition: background-color 0.15s, border-color 0.15s, transform 0.15s, box-shadow 0.15s;
}
.btn:hover { color: #fff; border-color: var(--steel); }
.btn svg { width: 1.1em; height: 1.1em; flex: none; }
.btn-primary {
  color: #fff;
  background: linear-gradient(180deg, #3f78d2 0%, var(--royal) 52%, #183f80 100%);
  border-color: var(--steel);
  box-shadow: inset 0 1px 0 rgba(183, 211, 250, 0.45), 0 10px 30px -10px rgba(31, 78, 156, 0.85);
}
.btn-primary:hover { background: linear-gradient(180deg, #4d86e0 0%, #2659ae 52%, #1c468d 100%); border-color: var(--ice); }
.btn-lg { min-height: 56px; padding: 0.85em 1.7em; font-size: 1.2rem; }
.btn-sm { min-height: 40px; padding: 0.45em 1em; font-size: 0.95rem; }
.btn-ghost { background: rgba(13, 15, 18, 0.55); }
@media (max-width: 479px) {
  .hero-actions .btn { width: 100%; }
  .btn-lg { font-size: 1.05rem; letter-spacing: 0.07em; padding-left: 1em; padding-right: 1em; }
}
@media (prefers-reduced-motion: no-preference) {
  .btn-primary:hover { transform: translateY(-1px); }
}

/* ------------------------------------------------------------------ header */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(13, 15, 18, 0.82);
  -webkit-backdrop-filter: saturate(140%) blur(12px);
  backdrop-filter: saturate(140%) blur(12px);
  border-bottom: 1px solid var(--line);
}
.header-inner { display: flex; align-items: center; gap: 16px; min-height: var(--header-h); }
.brand { display: inline-flex; align-items: center; gap: 10px; color: var(--text); text-decoration: none; flex: none; }
.brand img { width: 40px; height: 40px; }
.site-nav { margin-left: auto; }
.site-nav ul { list-style: none; display: flex; align-items: center; gap: 2px; }
.site-nav a {
  display: block; padding: 8px 10px; border-radius: var(--radius-sm);
  font-family: var(--font-display); font-weight: 600; font-size: 1rem; letter-spacing: 0.08em; text-transform: uppercase;
  color: var(--text-2); text-decoration: none; white-space: nowrap;
}
.site-nav a:hover { color: #fff; background: rgba(183, 211, 250, 0.07); }
.header-play { flex: none; }
.nav-toggle {
  display: none; align-items: center; justify-content: center; gap: 8px;
  min-height: 44px; min-width: 44px; padding: 0 12px; margin-left: auto;
  font: 600 0.95rem/1 var(--font-display); letter-spacing: 0.1em; text-transform: uppercase;
  color: var(--text); background: transparent; border: 1px solid var(--line-2); border-radius: var(--radius-sm); cursor: pointer;
}
.nav-toggle svg { width: 20px; height: 20px; }
@media (max-width: 1139px) {
  .js .nav-toggle { display: inline-flex; }
  .js .site-nav {
    position: absolute; left: 0; right: 0; top: 100%;
    background: rgba(13, 15, 18, 0.97); border-bottom: 1px solid var(--line);
    padding: 8px var(--gutter) 16px; display: none;
  }
  .js .site-nav.is-open { display: block; }
  .js .site-nav ul { flex-direction: column; align-items: stretch; }
  .js .site-nav a { padding: 12px 10px; font-size: 1.1rem; }
  .js .header-play { margin-left: 0; }
  /* without JS the links stay visible as a scrollable row */
  .no-js .header-inner { flex-wrap: wrap; padding-bottom: 6px; }
  .no-js .site-nav { order: 3; width: 100%; overflow-x: auto; margin-left: 0; }
}
@media (max-width: 479px) {
  .header-play .label-long { display: none; }
}
@media (min-width: 480px) { .header-play .label-short { display: none; } }

/* ------------------------------------------------------------------ hero + trailer */
.hero {
  position: relative; isolation: isolate; overflow: hidden;
  min-height: calc(100vh - var(--header-h));
  min-height: calc(100svh - var(--header-h));
  display: flex; align-items: center;
  padding: clamp(18px, 4vh, 64px) 0 clamp(76px, 8vh, 110px);
  background: #08090b;
}
.trailer { position: absolute; inset: 0; z-index: -2; overflow: hidden; }
.trailer-slide {
  position: absolute; inset: 0; width: 100%; height: 100%;
  object-fit: cover; object-position: 60% 50%;
  opacity: 0;
}
.trailer-slide:first-child { opacity: 1; }
.hero::before {
  /* legibility: dark on the text side and at the bottom, image clear on the right */
  content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background:
    linear-gradient(90deg, rgba(8, 9, 11, 0.94) 0%, rgba(8, 9, 11, 0.86) 30%, rgba(8, 9, 11, 0.45) 56%, rgba(8, 9, 11, 0.08) 80%),
    linear-gradient(0deg, var(--bg) 0%, rgba(13, 15, 18, 0) 26%),
    linear-gradient(180deg, rgba(8, 9, 11, 0.55) 0%, rgba(8, 9, 11, 0) 22%);
}
@media (max-width: 899px) {
  .hero::before {
    background:
      linear-gradient(180deg, rgba(8, 9, 11, 0.78) 0%, rgba(8, 9, 11, 0.7) 50%, rgba(8, 9, 11, 0.9) 100%),
      linear-gradient(0deg, var(--bg) 0%, rgba(13, 15, 18, 0) 20%);
  }
}
/* 18 s loop, three 6 s shots. Each shot fades in over 1 s on top of the one before, holds, and fades out underneath the
   next one; a slow push-in runs through it. Each caption shares its shot's timing and delay, so the two can never
   drift apart (nothing here is ever display:none, which would restart one animation and not the other). A caption
   fades in just after its shot arrives, stays readable for about 4 s and is gone 1 s before the next caption starts:
   never two at once. */
@media (prefers-reduced-motion: no-preference) {
  .trailer-slide, .trailer-caption-item { animation: trailer 18s linear infinite both; }
  .trailer-caption-item { animation-name: trailer-caption; }
  .trailer-slide:nth-child(1), .trailer-caption-item:nth-child(1) { animation-delay: -1s; }
  .trailer-slide:nth-child(2), .trailer-caption-item:nth-child(2) { animation-delay: 5s; }
  .trailer-slide:nth-child(3), .trailer-caption-item:nth-child(3) { animation-delay: 11s; }
  .hero.is-paused .trailer-slide, .hero.is-paused .trailer-caption-item,
  .hero.is-offscreen .trailer-slide, .hero.is-offscreen .trailer-caption-item { animation-play-state: paused; }
}
@keyframes trailer {
  /* z-index steps down when the next shot starts, so the incoming shot is always on top (also from the third shot back
     to the first): a clean crossfade with no dip to black; the outgoing shot then fades out underneath */
  0% { opacity: 0; transform: scale(1.01); z-index: 3; }
  5.556% { opacity: 1; }                      /* 1 s: in */
  33.333% { z-index: 3; }                     /* 6 s: the next shot starts fading in, on top */
  33.334% { z-index: 2; }
  38.889% { opacity: 1; }                     /* 7 s: the next shot is fully in */
  44.444% { opacity: 0; transform: scale(1.05); }
  100% { opacity: 0; transform: scale(1.05); z-index: 2; }
}
@keyframes trailer-caption {
  0%, 6.667% { opacity: 0; }      /* in from 1.2 s ... */
  9.444% { opacity: 1; }          /* ... to 1.7 s */
  30.556% { opacity: 1; }         /* readable to 5.5 s */
  33.333%, 100% { opacity: 0; }   /* out by 6 s, as the next shot starts; the next caption starts at 7.2 s */
}
.hero-inner { position: relative; width: 100%; }
.hero-copy { max-width: 44rem; }
.hero h1 { margin: 0; }
/* docs/BRAND.md: the full lockup is never drawn under 480 px wide (its tagline caps are 8.5 px there); below that the
   emblem stands alone (the <picture> in the HTML swaps the file at the same 520 px breakpoint) */
.hero-logo { display: block; --lockup-w: 480px; }
.hero-logo img { display: block; width: 136px; height: auto; max-width: none; margin: 0 0 18px -8px; filter: drop-shadow(0 14px 24px rgba(0, 0, 0, 0.55)); }
@media (min-width: 520px) {
  /* the square canvas has empty bands: content runs from 9.8 % to 89.1 % down and 18.1 % to 81.9 % across. The margins
     trim most of that, but keep the kit's clear space (the height of the S in SPECTRE, about 6 % of the canvas) below. */
  .hero-logo img {
    width: var(--lockup-w);
    margin: calc(var(--lockup-w) * -0.06) 0 calc(var(--lockup-w) * -0.045) calc(var(--lockup-w) * -0.14);
    filter: drop-shadow(0 18px 30px rgba(0, 0, 0, 0.55));
  }
}
@media (min-width: 700px) {
  .hero-logo { --lockup-w: clamp(480px, 34vw, 560px); }
  .hero-logo img { margin-left: calc(var(--lockup-w) * -0.17); }   /* the B lines up with the text below */
}
@media (min-width: 2200px) { .hero-logo { --lockup-w: clamp(560px, 26vw, 720px); } }
/* short laptop screens (1366 x 657, 1280 x 632 ...): a stacked 480 px lockup would push Play below the fold, and the
   lockup can't get smaller, so the text moves beside it */
@media (min-width: 1000px) and (max-height: 820px) {
  .hero-copy { max-width: none; display: grid; grid-template-columns: max-content minmax(0, 38rem); justify-content: start; align-items: center; column-gap: clamp(24px, 3vw, 48px); }
  .hero-logo { --lockup-w: 480px; }
  .hero-logo img { margin: calc(var(--lockup-w) * -0.075) calc(var(--lockup-w) * -0.13) calc(var(--lockup-w) * -0.09) calc(var(--lockup-w) * -0.17); }
  .hero::before {
    background:
      linear-gradient(90deg, rgba(8, 9, 11, 0.94) 0%, rgba(8, 9, 11, 0.88) 40%, rgba(8, 9, 11, 0.62) 66%, rgba(8, 9, 11, 0.12) 88%),
      linear-gradient(0deg, var(--bg) 0%, rgba(13, 15, 18, 0) 26%),
      linear-gradient(180deg, rgba(8, 9, 11, 0.55) 0%, rgba(8, 9, 11, 0) 22%);
  }
}
.hero-lead {
  font-size: clamp(1.1rem, 0.9rem + 0.45vw, 1.3rem); line-height: 1.5; color: var(--text);
  max-width: 34em; margin-bottom: 1.2em; text-shadow: 0 1px 12px rgba(0, 0, 0, 0.6);
}
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }
.hero-facts {
  list-style: none; display: flex; flex-wrap: wrap; gap: 8px 18px; margin-top: 18px;
  font-family: var(--font-display); font-weight: 600; font-size: 1rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--ice);
}
.hero-facts li { display: inline-flex; align-items: center; gap: 8px; }
.hero-facts li::before { content: ""; width: 6px; height: 6px; background: var(--steel); transform: rotate(45deg); flex: none; }
.hero-direct { margin-top: 12px; font-size: 0.9rem; color: var(--text-2); }
.hero-direct a { color: var(--ice); }
/* phones and tablets (touch, no hover): the game needs a computer, so the first action saves the link for later */
.only-touch { display: none; }
@media (hover: none) and (pointer: coarse) {
  .only-desktop { display: none !important; }
  .only-touch { display: block; }
  .hero-actions.only-touch { display: flex; }
}
.device-note { max-width: 32em; margin: 0 0 14px; padding: 10px 14px; border-left: 3px solid var(--steel); background: rgba(13, 15, 18, 0.6); border-radius: 0 var(--radius-sm) var(--radius-sm) 0; color: var(--text); font-size: 0.95rem; }
.send-status { min-height: 1.4em; margin: 10px 0 0; color: var(--ice); font-size: 0.92rem; }
.cta-band .only-touch { justify-content: center; }
.trailer-bar {
  position: absolute; right: var(--gutter); bottom: 22px; z-index: 2;
  display: flex; align-items: center; gap: 12px; max-width: calc(100% - 2 * var(--gutter));
}
.trailer-caption { display: grid; justify-items: end; text-align: right; min-width: 0; }
.trailer-caption-item {
  grid-area: 1 / 1; opacity: 0; white-space: nowrap; max-width: 100%; overflow: hidden; text-overflow: ellipsis;
  font-family: var(--font-display); font-weight: 600; font-size: 0.95rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--text-2);
  text-shadow: 0 1px 8px rgba(0, 0, 0, 0.8);
}
.trailer-caption-item:first-child { opacity: 1; }
.trailer-toggle {
  display: inline-flex; align-items: center; justify-content: center; width: 44px; height: 44px; flex: none;
  color: var(--text); background: rgba(13, 15, 18, 0.6); border: 1px solid var(--line-2); border-radius: 50%; cursor: pointer;
}
.trailer-toggle:hover { border-color: var(--steel); }
.trailer-toggle svg { width: 18px; height: 18px; }
.trailer-toggle .i-play { display: none; }
.hero.is-paused .trailer-toggle .i-play { display: block; }
.hero.is-paused .trailer-toggle .i-pause { display: none; }
.no-js .trailer-toggle { display: none; }
@media (prefers-reduced-motion: reduce) {
  .trailer-toggle { display: none; }
  .trailer-caption-item:not(:first-child) { visibility: hidden; }
}
/* phones: smaller caption type instead of hiding it (hiding with display:none would restart its animation) */
@media (max-width: 559px) { .trailer-caption-item { font-size: 0.78rem; letter-spacing: 0.08em; } .trailer-bar { bottom: 14px; } }
/* theme music switch: a quiet round button under the Play buttons. site.js reveals it (it stays hidden without JS or
   without AAC support). Its name stays "Theme music"; the small On / Off pill shows the state. Off: the equalizer bars
   sit low. On: they stand up, and sway while the music plays unless the visitor asks for reduced motion (the bars then
   stay still; the music itself is unaffected). */
.hero-sound { margin-top: 14px; }
.sound-toggle {
  display: inline-flex; align-items: center; gap: 10px; min-height: 44px; padding: 0 14px 0 0;
  font: 600 0.95rem/1 var(--font-display); letter-spacing: 0.12em; text-transform: uppercase;
  color: var(--text-2); background: none; border: 0; border-radius: 999px; cursor: pointer;
  text-shadow: 0 1px 8px rgba(0, 0, 0, 0.8);
}
.sound-toggle:focus-visible { border-radius: 999px; }
.sound-icon {
  display: inline-flex; align-items: center; justify-content: center; width: 44px; height: 44px; flex: none;
  color: var(--muted); background: rgba(13, 15, 18, 0.6); border: 1px solid var(--line-2); border-radius: 50%;
}
.sound-icon svg { width: 20px; height: 20px; }
.sound-toggle:hover { color: #fff; }
.sound-toggle:hover .sound-icon { color: var(--text); border-color: var(--steel); }
.sound-state {
  min-width: 3.4em; padding: 4px 8px; font-size: 0.78rem; letter-spacing: 0.14em; text-align: center;
  color: var(--muted); border: 1px solid var(--line-2); border-radius: 999px;
}
.sound-toggle[aria-pressed="true"] { color: var(--ice); }
.sound-toggle[aria-pressed="true"] .sound-state { color: var(--ice); border-color: var(--steel); }
.sound-toggle[aria-pressed="true"] .sound-icon { color: var(--ice); border-color: var(--steel); box-shadow: 0 0 0 4px rgba(106, 160, 230, 0.14); }
.sound-icon .eq { transform-box: fill-box; transform-origin: 50% 100%; }
.sound-toggle[aria-pressed="false"] .eq { transform: scaleY(0.55); }
@media (prefers-reduced-motion: no-preference) {
  .sound-icon { transition: color 0.2s, border-color 0.2s, box-shadow 0.3s; }
  .sound-icon .eq { transition: transform 0.4s ease; }
  .sound-toggle.is-live .eq { animation: sound-eq 1.6s ease-in-out infinite alternate; }
  .sound-toggle.is-live .eq-2 { animation-duration: 1.25s; animation-delay: -0.5s; }
  .sound-toggle.is-live .eq-3 { animation-duration: 1.9s; animation-delay: -1.1s; }
  .sound-toggle.is-live .eq-4 { animation-duration: 1.4s; animation-delay: -0.3s; }
  .hero.is-offscreen .sound-toggle .eq { animation-play-state: paused; }
  /* switched on, still loading: the ring breathes */
  .sound-toggle[aria-pressed="true"]:not(.is-live) .sound-icon { animation: sound-wait 1.2s ease-in-out infinite alternate; }
}
@keyframes sound-wait { to { box-shadow: 0 0 0 7px rgba(106, 160, 230, 0.06); } }
@keyframes sound-eq {
  0% { transform: scaleY(0.35); }
  45% { transform: scaleY(1); }
  100% { transform: scaleY(0.6); }
}

/* ------------------------------------------------------------------ sections */
.section { padding: clamp(56px, 7vw, 104px) 0; position: relative; }
.section-alt { background: var(--bg-2); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.section-head { max-width: 46rem; margin-bottom: clamp(28px, 4vw, 48px); }
.eyebrow {
  display: flex; align-items: center; gap: 10px; margin: 0 0 12px;
  font-family: var(--font-display); font-weight: 700; font-size: 0.95rem; letter-spacing: 0.2em; text-transform: uppercase; color: var(--steel);
}
.eyebrow::before { content: ""; width: 28px; height: 2px; background: linear-gradient(90deg, var(--steel), transparent); }
.section h2 { font-size: clamp(2rem, 1.3rem + 2.6vw, 3.4rem); text-transform: uppercase; letter-spacing: 0.03em; margin-bottom: 0.4em; }
.section-head p { color: var(--text-2); font-size: 1.08rem; }
.note { color: var(--muted); font-size: 0.95rem; margin-top: 22px; }

/* ------------------------------------------------------------------ features (what it is) */
.features { list-style: none; display: grid; gap: 14px; grid-template-columns: 1fr; }
@media (min-width: 640px) { .features { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1000px) { .features { grid-template-columns: repeat(3, 1fr); } }
.feature { padding: 22px 22px 24px; background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); }
.feature-icon {
  display: grid; place-items: center; width: 44px; height: 44px; margin-bottom: 14px; border-radius: 10px;
  color: var(--ice); background: linear-gradient(180deg, rgba(106, 160, 230, 0.22), rgba(31, 78, 156, 0.18)); border: 1px solid rgba(106, 160, 230, 0.35);
}
.feature-icon svg { width: 24px; height: 24px; }
.feature h3 { font-size: 1.35rem; text-transform: uppercase; letter-spacing: 0.05em; margin-bottom: 0.35em; }
.feature p { color: var(--text-2); font-size: 0.98rem; }

/* ------------------------------------------------------------------ modes */
.modes { list-style: none; display: grid; gap: 14px; grid-template-columns: 1fr; }
@media (min-width: 640px) { .modes { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1100px) { .modes { grid-template-columns: repeat(4, 1fr); } }
.mode {
  position: relative; display: flex; flex-direction: column; gap: 10px;
  padding: 22px; background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden;
}
.mode::before { content: ""; position: absolute; left: 0; top: 0; right: 0; height: 3px; background: linear-gradient(90deg, var(--ghost), var(--raven)); opacity: 0.85; }
.mode[data-kind="ffa"]::before { background: linear-gradient(90deg, var(--steel), var(--ice)); }
.mode[data-kind="gold"]::before { background: linear-gradient(90deg, #b8862b, var(--gold)); }
.mode h3 { font-size: 1.55rem; text-transform: uppercase; letter-spacing: 0.04em; }
.mode p { color: var(--text-2); font-size: 0.97rem; }
.mode .win { margin-top: auto; padding-top: 10px; border-top: 1px solid var(--line); font-size: 0.92rem; color: var(--text-2); }
.mode .win strong { font-family: var(--font-display); letter-spacing: 0.12em; text-transform: uppercase; color: var(--ice); font-weight: 700; margin-right: 6px; }
.tag {
  display: inline-flex; align-items: center; gap: 6px; align-self: flex-start; justify-self: start;
  padding: 3px 9px; border-radius: 999px; border: 1px solid var(--line-2);
  font-family: var(--font-display); font-weight: 700; font-size: 0.82rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--text-2);
}
.tag-squads { color: #d6e9ff; border-color: rgba(63, 167, 255, 0.45); }
.tag-squads::before { content: ""; width: 14px; height: 6px; border-radius: 3px; background: linear-gradient(90deg, var(--ghost) 50%, var(--raven) 50%); }
.tag-soon { color: #f3dcb6; border-color: rgba(201, 164, 106, 0.6); background: rgba(201, 164, 106, 0.1); }
.mode-featured { grid-column: 1 / -1; padding: 0; }
.mode-featured .mode-media { position: relative; aspect-ratio: 16 / 9; background: #0a0b0d; }
.mode-featured .mode-media img { width: 100%; height: 100%; object-fit: cover; }
.mode-featured .mode-body { display: flex; flex-direction: column; gap: 10px; padding: 22px; }
@media (min-width: 900px) {
  .mode-featured { display: grid; grid-template-columns: 1.25fr 1fr; }
  .mode-featured .mode-media { aspect-ratio: auto; min-height: 100%; }
  .mode-featured .mode-body { padding: 30px; justify-content: center; }
  .mode-featured h3 { font-size: 2.1rem; }
}
@media (min-width: 1100px) { .mode-featured { grid-column: span 4; } }
@media (min-width: 640px) { .mode-soon { grid-column: span 2; } }
.mode-soon { background: repeating-linear-gradient(135deg, rgba(201, 164, 106, 0.05) 0 12px, transparent 12px 24px), var(--panel); border-style: dashed; border-color: rgba(201, 164, 106, 0.45); }
.mode-soon::before { background: linear-gradient(90deg, #8a6a3a, var(--soon)); }
.modes-foot { margin-top: 22px; color: var(--muted); font-size: 0.95rem; }
.nw { white-space: nowrap; }

/* ------------------------------------------------------------------ maps */
.maps { display: grid; gap: clamp(28px, 4vw, 48px); }
.map {
  display: grid; gap: 0; background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden;
}
.map-media { position: relative; aspect-ratio: 16 / 9; background: #0a0b0d; overflow: hidden; }
.map-media img { width: 100%; height: 100%; object-fit: cover; }
.map-light {
  position: absolute; left: 14px; top: 14px; padding: 5px 11px; border-radius: 999px;
  font-family: var(--font-display); font-weight: 700; font-size: 0.85rem; letter-spacing: 0.16em; text-transform: uppercase;
  color: #fff; background: rgba(8, 9, 11, 0.72); border: 1px solid rgba(255, 255, 255, 0.18);
}
.map-body { padding: clamp(22px, 3vw, 36px); display: flex; flex-direction: column; justify-content: center; gap: 12px; }
.map-body h3 { font-size: clamp(1.8rem, 1.4rem + 1.4vw, 2.6rem); text-transform: uppercase; letter-spacing: 0.04em; }
.map-body p { color: var(--text-2); }
.map-spots { list-style: none; display: flex; flex-wrap: wrap; gap: 8px; }
.map-spots li {
  padding: 4px 10px; border-radius: var(--radius-sm); background: var(--panel-3); border: 1px solid var(--line);
  font-family: var(--font-display); font-weight: 600; font-size: 0.95rem; letter-spacing: 0.06em; color: var(--text);
}
@media (min-width: 900px) {
  .map { grid-template-columns: 1.45fr 1fr; }
  .map:nth-child(even) { grid-template-columns: 1fr 1.45fr; }
  .map:nth-child(even) .map-media { order: 2; }
  .map-media { aspect-ratio: auto; min-height: 340px; }
}
.map-teaser {
  position: relative; overflow: hidden; display: grid; gap: 10px;
  padding: clamp(24px, 4vw, 44px); border-radius: var(--radius); border: 1px dashed rgba(201, 164, 106, 0.5);
  background:
    repeating-linear-gradient(90deg, rgba(150, 165, 182, 0.09) 0 3px, transparent 3px 38px),
    linear-gradient(135deg, #2a2f36 0%, #1b1f25 55%, #14171b 100%);
}
.map-teaser::after {
  /* cell-bar shadow fading out to the right */
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(90deg, rgba(20, 23, 27, 0.92) 0%, rgba(20, 23, 27, 0.7) 50%, rgba(20, 23, 27, 0.2) 100%);
}
.map-teaser > * { position: relative; z-index: 1; max-width: 44rem; }
.map-teaser h3 { font-size: clamp(1.8rem, 1.4rem + 1.4vw, 2.6rem); text-transform: uppercase; letter-spacing: 0.06em; color: #e4e9f2; }
.map-teaser p { color: var(--text-2); }

/* ------------------------------------------------------------------ operators */
.operators { list-style: none; display: grid; gap: 14px; grid-template-columns: repeat(2, 1fr); }
@media (min-width: 640px) { .operators { grid-template-columns: repeat(3, 1fr); } }
@media (min-width: 1100px) { .operators { grid-template-columns: repeat(6, 1fr); } }
.operator { background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.operator img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; background: #343c47; }
.operator-body { padding: 12px 14px 14px; }
.operator h3 { font-size: 1.4rem; text-transform: uppercase; letter-spacing: 0.08em; }
.operator p { color: var(--muted); font-size: 0.9rem; font-family: var(--font-display); font-weight: 600; letter-spacing: 0.12em; text-transform: uppercase; }

/* ------------------------------------------------------------------ tables (weapons, controls) */
.table-wrap { background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
table { width: 100%; border-collapse: collapse; font-size: 0.98rem; }
caption { text-align: left; padding: 16px 18px 0; color: var(--muted); font-size: 0.92rem; caption-side: top; }
th, td { text-align: left; vertical-align: top; padding: 13px 18px; border-bottom: 1px solid var(--line); }
thead th {
  font-family: var(--font-display); font-weight: 700; font-size: 0.9rem; letter-spacing: 0.16em; text-transform: uppercase;
  color: var(--steel); background: var(--panel-2); border-bottom: 1px solid var(--line-2);
}
tbody tr:last-child th, tbody tr:last-child td { border-bottom: 0; }
tbody th { font-family: var(--font-display); font-weight: 700; font-size: 1.12rem; letter-spacing: 0.04em; color: var(--text); white-space: nowrap; }
tbody td { color: var(--text-2); }
tbody tr:nth-child(even) { background: rgba(255, 255, 255, 0.015); }
.cls {
  display: inline-block; padding: 2px 9px; border-radius: 999px; white-space: nowrap;
  font-family: var(--font-display); font-weight: 700; font-size: 0.82rem; letter-spacing: 0.14em; text-transform: uppercase;
  border: 1px solid var(--line-2); color: var(--text);
}
.cls-sidearm { border-color: rgba(183, 211, 250, 0.45); color: var(--ice); }
.cls-primary { border-color: rgba(106, 160, 230, 0.6); color: #cfe0fa; background: rgba(31, 78, 156, 0.25); }
.cls-gadget { border-color: rgba(255, 122, 42, 0.55); color: #ffd2b5; }
.arsenal-notes { display: grid; gap: 14px; margin-top: 22px; grid-template-columns: 1fr; }
@media (min-width: 800px) { .arsenal-notes { grid-template-columns: repeat(3, 1fr); } }
.arsenal-notes > div { padding: 18px 20px; border-radius: var(--radius); background: var(--panel); border: 1px solid var(--line); }
.arsenal-notes h3 { font-size: 1.2rem; text-transform: uppercase; letter-spacing: 0.06em; margin-bottom: 6px; }
.arsenal-notes p { color: var(--text-2); font-size: 0.95rem; }
@media (max-width: 639px) {
  /* stacked rows on phones: each row becomes a small card, labels from data-label */
  .stack-sm thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); clip-path: inset(50%); }
  .stack-sm tr { display: block; padding: 12px 16px; border-bottom: 1px solid var(--line); }
  .stack-sm tbody tr:last-child { border-bottom: 0; }
  .stack-sm th, .stack-sm td { display: block; padding: 2px 0; border: 0; }
  .stack-sm tbody th { white-space: normal; }
  .stack-sm td[data-label]::before {
    content: attr(data-label); display: block; margin-top: 6px;
    font-family: var(--font-display); font-weight: 700; font-size: 0.78rem; letter-spacing: 0.16em; text-transform: uppercase; color: var(--steel);
  }
  .stack-sm .cls { margin: 4px 0 2px; }
  .stack-sm td.cell-class::before { display: none; }
}
.controls-grid { display: grid; gap: 22px; }
.controls-notes { list-style: none; display: grid; gap: 10px; grid-template-columns: 1fr; color: var(--text-2); font-size: 0.97rem; }
@media (min-width: 800px) { .controls-notes { grid-template-columns: repeat(3, 1fr); } }
.controls-notes li { padding: 16px 18px; background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); }
.controls-notes strong { color: var(--text); }

/* ------------------------------------------------------------------ play with friends */
.squad { display: grid; gap: clamp(24px, 4vw, 48px); align-items: start; }
@media (min-width: 1000px) { .squad { grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr); } }
.steps { list-style: none; counter-reset: step; display: grid; gap: 12px; }
.steps li {
  counter-increment: step; position: relative; padding: 18px 20px 18px 74px;
  background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius);
}
.steps li::before {
  content: counter(step, decimal-leading-zero); position: absolute; left: 18px; top: 16px;
  font-family: var(--font-display); font-weight: 700; font-size: 2rem; line-height: 1; color: var(--steel);
}
.steps h3 { font-size: 1.3rem; text-transform: uppercase; letter-spacing: 0.06em; margin-bottom: 4px; }
.steps p { color: var(--text-2); font-size: 0.97rem; }
.code-chip {
  display: inline-block; padding: 0 0.4em; border-radius: 4px; background: var(--panel-3); border: 1px solid var(--line-2);
  font-family: var(--font-display); font-weight: 700; letter-spacing: 0.22em; color: var(--ice);
}
.figure { margin: 0; }
.figure img { width: 100%; border-radius: var(--radius); border: 1px solid var(--line); background: #0a0b0d; }
.figure figcaption { margin-top: 10px; color: var(--muted); font-size: 0.92rem; }
.figure-lobby > a { display: block; }
.figure-lobby img { aspect-ratio: 1640 / 1180; }
.solo { margin-top: 18px; padding: 16px 18px; border-left: 3px solid var(--steel); background: rgba(31, 78, 156, 0.12); border-radius: 0 var(--radius-sm) var(--radius-sm) 0; color: var(--text-2); }
.solo strong { color: var(--text); }

/* ------------------------------------------------------------------ gallery */
.gallery { list-style: none; display: grid; gap: 14px; grid-template-columns: 1fr; }
@media (min-width: 640px) { .gallery { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1200px) { .gallery { grid-template-columns: repeat(4, 1fr); } }
.gallery figure { margin: 0; height: 100%; background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.gallery a { display: block; }
.gallery img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; background: #0a0b0d; }
.gallery figcaption { padding: 12px 14px 14px; color: var(--text-2); font-size: 0.92rem; line-height: 1.5; }
@media (prefers-reduced-motion: no-preference) {
  .gallery img { transition: transform 0.4s ease; }
  .gallery a:hover img { transform: scale(1.03); }
}

/* ------------------------------------------------------------------ faq */
.faq { max-width: 52rem; display: grid; gap: 10px; }
.faq details { background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); }
.faq details[open] { border-color: var(--line-2); }
.faq summary {
  list-style: none; cursor: pointer; display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding: 18px 20px; font-family: var(--font-display); font-weight: 700; font-size: 1.25rem; letter-spacing: 0.03em;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: ""; flex: none; width: 10px; height: 10px; margin-right: 4px;
  border-right: 2px solid var(--steel); border-bottom: 2px solid var(--steel); transform: rotate(45deg) translate(-2px, -2px);
}
.faq details[open] summary::after { transform: rotate(-135deg) translate(-2px, -2px); }
.faq .answer { padding: 0 20px 20px; color: var(--text-2); }
.faq .answer ul { padding-left: 1.2em; margin: 0 0 1em; }
.faq .answer li { margin-bottom: 0.35em; }

/* ------------------------------------------------------------------ press */
.press { display: grid; gap: clamp(22px, 3vw, 36px); grid-template-columns: minmax(0, 1fr); }
@media (min-width: 1000px) { .press { grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); } }
.press-card { padding: clamp(20px, 3vw, 30px); background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); }
.press-card h3 { font-size: 1.4rem; text-transform: uppercase; letter-spacing: 0.06em; margin-bottom: 12px; }
.press-blurb { color: var(--text); }
.press-blurb-actions { margin-top: 14px; display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
.copy-status { color: var(--ice); font-size: 0.92rem; min-height: 1.4em; }
.facts { display: grid; grid-template-columns: max-content 1fr; gap: 8px 18px; margin: 18px 0 0; font-size: 0.97rem; }
.facts dt { font-family: var(--font-display); font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; color: var(--steel); }
.facts dd { margin: 0; color: var(--text-2); min-width: 0; overflow-wrap: anywhere; }
.logos { list-style: none; display: grid; gap: 12px; grid-template-columns: 1fr; }
@media (min-width: 520px) { .logos { grid-template-columns: repeat(2, 1fr); } }
.logo-item { display: flex; flex-direction: column; gap: 10px; padding: 14px; background: var(--charcoal); border: 1px solid var(--line); border-radius: var(--radius); }
.logo-item .preview { display: grid; place-items: center; height: 150px; border-radius: var(--radius-sm); background: radial-gradient(circle at 50% 40%, #2a2d33 0%, #111317 80%); }
.logo-item .preview img { max-height: 132px; width: auto; max-width: 92%; }
.logo-item h4 { font-size: 1.1rem; text-transform: uppercase; letter-spacing: 0.08em; }
.dl { display: flex; flex-wrap: wrap; gap: 8px; }
.dl a {
  display: inline-flex; align-items: center; gap: 6px; padding: 6px 11px; min-height: 36px; border-radius: var(--radius-sm);
  font-family: var(--font-display); font-weight: 700; font-size: 0.92rem; letter-spacing: 0.1em; text-transform: uppercase;
  color: var(--text); text-decoration: none; background: var(--panel-3); border: 1px solid var(--line-2);
}
.dl a:hover { border-color: var(--steel); color: #fff; }
.dl a svg { width: 14px; height: 14px; }
.dl small { font-family: var(--font-body); font-weight: 500; letter-spacing: 0; text-transform: none; color: var(--muted); }
.wallpapers { list-style: none; display: grid; gap: 12px; grid-template-columns: 1fr; margin-top: 12px; }
@media (min-width: 520px) { .wallpapers { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1100px) { .wallpapers { grid-template-columns: repeat(4, 1fr); } }
.wallpapers figure { margin: 0; background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.wallpapers img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; background: #0a0b0d; }
.wallpapers figcaption { display: flex; flex-direction: column; align-items: flex-start; gap: 8px; padding: 10px 12px 12px; font-size: 0.95rem; color: var(--text); font-family: var(--font-display); font-weight: 600; letter-spacing: 0.06em; }
.press-usage { margin-top: 14px; color: var(--muted); font-size: 0.92rem; }

/* ------------------------------------------------------------------ cta band + footer */
.cta-band { padding: clamp(56px, 8vw, 100px) 0; text-align: center; background: radial-gradient(ellipse at 50% 0%, rgba(31, 78, 156, 0.35) 0%, rgba(13, 15, 18, 0) 60%), var(--bg); border-top: 1px solid var(--line); }
.cta-band h2 { font-size: clamp(2rem, 1.3rem + 2.6vw, 3.2rem); text-transform: uppercase; letter-spacing: 0.04em; margin-bottom: 0.4em; }
.cta-band p { color: var(--text-2); margin: 0 auto 1.6em; max-width: 34rem; }
.cta-band .hero-actions { justify-content: center; }
.site-footer { padding: 44px 0 56px; background: #0a0b0d; border-top: 1px solid var(--line); color: var(--muted); font-size: 0.93rem; }
.footer-grid { display: grid; gap: 28px; grid-template-columns: 1fr; }
@media (min-width: 900px) { .footer-grid { grid-template-columns: 1.2fr 1fr 1.4fr; } }
.footer-brand { display: flex; gap: 14px; align-items: flex-start; }
.footer-brand img { width: 56px; height: 56px; flex: none; }
.footer-brand strong { display: block; font-weight: 600; font-size: 1rem; color: var(--text); margin-bottom: 4px; }
.footer-links { list-style: none; display: grid; gap: 8px; }
.footer-links a { color: var(--text-2); }
.footer-links a:hover { color: #fff; }
.site-footer h2 { font-size: 1rem; letter-spacing: 0.18em; text-transform: uppercase; color: var(--steel); margin-bottom: 10px; }
.legal { margin-top: 30px; padding-top: 20px; border-top: 1px solid var(--line); font-size: 0.86rem; }
.credit { margin-top: 6px; font-size: 0.86rem; }

/* ------------------------------------------------------------------ 404 */
.notfound { min-height: 100vh; min-height: 100svh; display: grid; place-items: center; text-align: center; padding: 40px var(--gutter);
  background: radial-gradient(ellipse at 50% 30%, rgba(31, 78, 156, 0.3) 0%, rgba(13, 15, 18, 0) 60%), var(--bg); }
.notfound img { width: 160px; height: 160px; margin: 0 auto 18px; }
.notfound h1 { font-size: clamp(2.4rem, 1.6rem + 3vw, 4rem); text-transform: uppercase; letter-spacing: 0.04em; margin-bottom: 0.3em; }
.notfound p { color: var(--text-2); max-width: 30rem; margin: 0 auto 1.6em; }
.notfound .hero-actions { justify-content: center; }

/* ------------------------------------------------------------------ print */
@media print {
  .site-header, .trailer, .trailer-bar, .hero-sound, .cta-band, .hero::before { display: none !important; }
  body { background: #fff; color: #000; }
}
