/* ==========================================================================
   combat-chess.web.app - one stylesheet for every page.

   The tokens are the app's own (src/styles.css :root and docs/BRAND.md):
   deep navy, gold, the two surfaces, muted slate. Ember and steel appear only
   as decoration - neither passes AA for small text on the navy.
   No script anywhere, and the CSP is style-src 'self': no inline styles.
   ========================================================================== */

@font-face {
  font-family: 'Poppins';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url(/fonts/poppins-latin-600-normal.woff2) format('woff2');
}
@font-face {
  font-family: 'Poppins';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url(/fonts/poppins-latin-700-normal.woff2) format('woff2');
}

:root {
  --bg: #0b0f1a;
  --surface: #141b2d;
  --surface-2: #1c2439;
  --line: #263149;
  --gold: #d4a24c;
  --gold-bright: #f0c878;
  --gold-deep: #a87a31;
  --ember: #b23a2f;
  --steel: #4a7db5;
  --sq-light: #e8d9b8;
  --sq-dark: #3e4a5c;
  --text: #f2efe7;
  --muted: #9aa3b2;
  --ink: #1a1408;

  --radius: 14px;
  --radius-lg: 22px;
  --shadow: 0 18px 44px rgba(0, 0, 0, 0.5);
  --wrap: 1120px;
  --gutter: 20px;

  --display: 'Poppins', system-ui, -apple-system, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
  --body: system-ui, -apple-system, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;

  color-scheme: dark;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  background: var(--bg);
}

body {
  margin: 0;
  min-height: 100vh;
  background: var(--bg);
  color: var(--text);
  font: 400 1rem/1.65 var(--body);
  -webkit-font-smoothing: antialiased;
  overflow-wrap: break-word;
  overflow-x: hidden;
}

img,
svg {
  display: block;
  max-width: 100%;
}
img {
  height: auto;
}

a {
  color: var(--gold-bright);
  text-underline-offset: 3px;
  text-decoration-thickness: 1px;
}
a:hover {
  color: var(--text);
}
/* Visible addresses carry a <wbr> after the @, so they break there and
   nowhere else. */
a[href^='mailto:'] {
  overflow-wrap: normal;
}
.nowrap {
  white-space: nowrap;
}
a:focus-visible,
.btn:focus-visible,
summary:focus-visible {
  outline: 2px solid var(--gold-bright);
  outline-offset: 3px;
  border-radius: 6px;
}

h1,
h2,
h3 {
  font-family: var(--display);
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: -0.01em;
  margin: 0;
  text-wrap: balance;
}
p {
  margin: 0 0 1em;
}
strong {
  color: var(--text);
  font-weight: 650;
}
code {
  font: 0.88em/1 ui-monospace, 'SFMono-Regular', Menlo, Consolas, monospace;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid var(--line);
  border-radius: 5px;
  padding: 2px 6px;
  overflow-wrap: anywhere;
}

.wrap {
  width: 100%;
  max-width: var(--wrap);
  margin: 0 auto;
  padding: 0 var(--gutter);
}
.wrap--narrow {
  max-width: 740px;
}

.skip {
  position: absolute;
  left: -9999px;
  top: 8px;
  z-index: 10;
  padding: 10px 14px;
  background: var(--gold);
  color: var(--ink);
  border-radius: 8px;
  font-weight: 700;
}
.skip:focus {
  left: 8px;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

/* --------------------------------------------------------------------------
   Header: the crossed-blades king and the wordmark, as on the app's menu.
   -------------------------------------------------------------------------- */

.site-header {
  position: relative;
  z-index: 2;
  border-bottom: 1px solid rgba(38, 49, 73, 0.7);
  background: rgba(11, 15, 26, 0.82);
}
.site-header .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-height: 64px;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--text);
  text-decoration: none;
}
.brand img {
  width: 28px;
  height: auto;
}
.brand-text {
  display: flex;
  flex-direction: column;
  line-height: 1;
  font-family: var(--display);
}
.brand-top {
  white-space: nowrap;
  font-weight: 700;
  font-size: 1.05rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}
.brand-sub {
  margin-top: 4px;
  font-weight: 600;
  font-size: 0.6rem;
  letter-spacing: 0.26em;
  text-transform: uppercase;
  color: var(--gold);
}
.site-nav {
  display: flex;
  gap: 4px;
}
.site-nav a {
  padding: 8px 10px;
  border-radius: 8px;
  color: var(--muted);
  font-size: 0.9rem;
  text-decoration: none;
  white-space: nowrap;
}
@media (max-width: 480px) {
  .brand-sub {
    display: none;
  }
  .site-nav a {
    padding: 8px 8px;
  }
}
.site-nav a:hover,
.site-nav a[aria-current='page'] {
  color: var(--text);
  background: var(--surface);
}
.nav-extra {
  display: none;
}
@media (min-width: 720px) {
  .nav-extra {
    display: inline-block;
  }
}

/* --------------------------------------------------------------------------
   Buttons
   -------------------------------------------------------------------------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  min-height: 52px;
  padding: 10px 22px;
  border-radius: 14px;
  border: 1px solid transparent;
  font: 600 1rem/1.2 var(--display);
  text-decoration: none;
  transition: transform 160ms ease, filter 160ms ease, background-color 160ms ease;
}
.btn:hover {
  transform: translateY(-1px);
}
.btn--gold {
  background: linear-gradient(180deg, var(--gold-bright), var(--gold) 70%);
  color: var(--ink);
  box-shadow: 0 10px 28px rgba(212, 162, 76, 0.28), inset 0 1px 0 rgba(255, 255, 255, 0.35);
}
.btn--gold:hover {
  color: var(--ink);
  filter: brightness(1.05);
}
.btn--ghost {
  background: var(--surface);
  border-color: var(--line);
  color: var(--text);
}
.btn--ghost:hover {
  color: var(--text);
  background: var(--surface-2);
}
.btn svg {
  flex: none;
}

/* The Play call to action. The official badge cannot be fetched from this
   build machine; this is a styled button until it is dropped in (see
   docs/PRIVACY_HOSTING.md, "Play badge"). */
.play-cta {
  min-height: 60px;
  padding: 10px 24px 10px 18px;
  text-align: left;
}
.play-cta .play-cta-small {
  display: block;
  font: 600 0.68rem/1.1 var(--body);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  opacity: 0.8;
}
.play-cta .play-cta-big {
  display: block;
  font: 700 1.2rem/1.15 var(--display);
}

/* --------------------------------------------------------------------------
   Kicker chips: a board square holding a coordinate, then the label.
   -------------------------------------------------------------------------- */

.kicker {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin: 0 0 14px;
  color: var(--gold);
  font: 600 0.74rem/1 var(--display);
  letter-spacing: 0.22em;
  text-transform: uppercase;
}
.sq {
  display: inline-grid;
  place-items: center;
  min-width: 28px;
  height: 28px;
  padding: 0 5px;
  border-radius: 6px;
  background: linear-gradient(135deg, var(--sq-light), #cdbb94);
  color: var(--ink);
  font: 700 0.72rem/1 var(--display);
  letter-spacing: 0;
  text-transform: none;
  box-shadow: inset 0 -2px 0 rgba(0, 0, 0, 0.18);
}
.sq--dark {
  background: linear-gradient(135deg, #52607a, var(--sq-dark));
  color: var(--text);
}

/* --------------------------------------------------------------------------
   Hero
   -------------------------------------------------------------------------- */

.hero {
  position: relative;
  overflow: hidden;
  isolation: isolate;
  padding: 36px 0 56px;
  background:
    radial-gradient(ellipse 60% 45% at 70% 30%, rgba(212, 162, 76, 0.2), transparent 70%),
    radial-gradient(ellipse 50% 40% at 10% 0%, rgba(74, 125, 181, 0.14), transparent 70%),
    linear-gradient(180deg, #121a2b 0%, var(--bg) 100%);
}
/* A 3D board receding under the hero: the game's own two square colours. */
.hero::before {
  content: '';
  position: absolute;
  z-index: -1;
  left: -40%;
  right: -40%;
  bottom: 0;
  height: 55%;
  background: repeating-conic-gradient(var(--sq-light) 0 25%, var(--sq-dark) 0 50%) 50% 0 / 96px 96px;
  opacity: 0.18;
  transform: perspective(700px) rotateX(58deg);
  transform-origin: 50% 100%;
  mask-image: linear-gradient(180deg, transparent 0%, #000 55%);
  -webkit-mask-image: linear-gradient(180deg, transparent 0%, #000 55%);
}
.hero-grid {
  display: grid;
  gap: 36px;
  align-items: center;
}
.hero-copy {
  max-width: 600px;
}
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin: 0 0 18px;
  padding: 6px 12px 6px 8px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(20, 27, 45, 0.8);
  color: var(--muted);
  font-size: 0.82rem;
}
.eyebrow svg {
  color: var(--gold);
}
.wordmark {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.wordmark-top {
  font-size: clamp(2.7rem, 11vw, 4.6rem);
  letter-spacing: 0.08em;
  line-height: 0.95;
  text-transform: uppercase;
  background: linear-gradient(180deg, #fffaf0 30%, #d9d2c3);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
@media (forced-colors: active) {
  .wordmark-top {
    background: none;
    color: CanvasText;
  }
}
.wordmark-sub {
  font-weight: 600;
  font-size: clamp(0.84rem, 3.4vw, 1.2rem);
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--gold);
}
.pitch {
  margin: 22px 0 28px;
  font-size: clamp(1.08rem, 2.6vw, 1.3rem);
  line-height: 1.5;
  color: #dcdfe8;
}
.pitch strong {
  color: var(--gold-bright);
  font-weight: 600;
}
.cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
}
.stat-row {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.stat-row li {
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: rgba(20, 27, 45, 0.75);
  color: var(--muted);
  font-size: 0.84rem;
  line-height: 1.3;
}
.stat-row b {
  display: block;
  font: 700 1.5rem/1.1 var(--display);
  color: var(--text);
}
@media (min-width: 560px) {
  .stat-row {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}

/* The hero art: two dueling pieces either side of a phone. */
.hero-art {
  position: relative;
  display: grid;
  place-items: center;
  min-height: 420px;
}
.hero-art::before {
  content: '';
  position: absolute;
  inset: 8% 6%;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(240, 200, 120, 0.3), rgba(212, 162, 76, 0.08) 45%, transparent 70%);
  filter: blur(6px);
}
.hero-art .phone {
  position: relative;
  z-index: 1;
  width: min(58vw, 260px);
  margin-bottom: 64px;
}
.hero-fighter {
  position: absolute;
  z-index: 2;
  bottom: 0;
  width: min(40vw, 200px);
  filter: drop-shadow(0 18px 18px rgba(0, 0, 0, 0.7));
}
.hero-fighter--left {
  left: -4px;
}
.hero-fighter--right {
  right: -4px;
}
@media (min-width: 960px) {
  .hero {
    padding: 64px 0 84px;
  }
  /* Copy and stats on the left, the art spanning both rows on the right;
     on a phone the art comes straight after the buttons. */
  .hero-grid {
    grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr);
    grid-template-areas: 'copy art' 'stats art';
    column-gap: 48px;
    row-gap: 30px;
  }
  .hero-copy {
    grid-area: copy;
    align-self: end;
  }
  .hero-art {
    grid-area: art;
  }
  .hero-grid > .stat-row {
    grid-area: stats;
    align-self: start;
  }
  .hero-art {
    min-height: 620px;
  }
  .hero-art .phone {
    width: 290px;
    margin-bottom: 40px;
  }
  .hero-fighter {
    width: 250px;
  }
  .hero-fighter--left {
    left: -6%;
  }
  .hero-fighter--right {
    right: -6%;
  }
}

/* --------------------------------------------------------------------------
   Phone frame around a real screenshot
   -------------------------------------------------------------------------- */

.phone {
  margin: 0;
  padding: 9px;
  border-radius: 34px;
  background: linear-gradient(160deg, #2b3550, #0f1422 60%);
  border: 1px solid #334063;
  box-shadow: var(--shadow), inset 0 0 0 1px rgba(255, 255, 255, 0.04);
}
.phone img {
  width: 100%;
  border-radius: 26px;
  background: var(--surface);
}

/* --------------------------------------------------------------------------
   Sections
   -------------------------------------------------------------------------- */

.section {
  position: relative;
  padding: 64px 0;
  border-top: 1px solid rgba(38, 49, 73, 0.8);
}
.section--tint {
  background: linear-gradient(180deg, #0e1422, var(--bg));
}
.section-head {
  max-width: 680px;
  margin-bottom: 32px;
}
.section-head h2 {
  font-size: clamp(1.7rem, 5vw, 2.5rem);
}
.section-head p:not(.kicker) {
  margin: 14px 0 0;
  color: var(--muted);
  font-size: 1.05rem;
}
@media (min-width: 960px) {
  .section {
    padding: 96px 0;
  }
}

/* A capture in three frames. */
.duel {
  display: grid;
  gap: 32px;
  align-items: center;
}
.duel-frames {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
  margin: 0;
  padding: 0;
  list-style: none;
  counter-reset: frame;
}
.duel-frames li {
  position: relative;
  overflow: hidden;
  border-radius: 16px;
  border: 1px solid var(--line);
  background: var(--surface);
  box-shadow: var(--shadow);
}
.duel-frames li:nth-child(2) {
  transform: translateY(-14px);
  border-color: rgba(212, 162, 76, 0.6);
}
.duel-frames img {
  width: 100%;
}
.duel-frames span {
  position: absolute;
  left: 8px;
  top: 8px;
  padding: 3px 9px;
  border-radius: 999px;
  background: rgba(11, 15, 26, 0.88);
  color: var(--text);
  font: 600 0.74rem/1.4 var(--body);
  letter-spacing: 0.02em;
}
.duel-frames:focus-visible {
  outline: 2px solid var(--gold-bright);
  outline-offset: 2px;
  border-radius: 12px;
}
@media (max-width: 599px) {
  .duel-frames {
    grid-template-columns: none;
    grid-auto-flow: column;
    grid-auto-columns: 62vw;
    gap: 12px;
    margin: 0 calc(var(--gutter) * -1);
    padding: 22px var(--gutter) 10px;
    overflow-x: auto;
    overscroll-behavior-x: contain;
    scroll-snap-type: x mandatory;
    scroll-padding: 0 var(--gutter);
    scrollbar-width: thin;
    scrollbar-color: var(--line) transparent;
  }
  .duel-frames li {
    scroll-snap-align: start;
  }
}
.checklist {
  margin: 20px 0 0;
  padding: 0;
  list-style: none;
}
.checklist li {
  position: relative;
  margin: 0 0 12px;
  padding-left: 30px;
  color: #d6dae4;
}
.checklist li::before {
  content: '';
  position: absolute;
  left: 2px;
  top: 0.45em;
  width: 14px;
  height: 14px;
  border-radius: 3px;
  background: linear-gradient(135deg, var(--gold-bright), var(--gold-deep));
  transform: rotate(45deg) scale(0.72);
}
.duel-copy {
  order: -1;
}
@media (min-width: 900px) {
  .duel {
    grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr);
    gap: 56px;
  }
  .duel-copy {
    order: 0;
  }
}

.duel h2 {
  font-size: clamp(1.7rem, 5vw, 2.5rem);
}
.lede-sm {
  margin: 14px 0 0;
  color: #d6dae4;
  font-size: 1.05rem;
}

/* The armies roster. */
.armies {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin: 0;
  padding: 0;
  list-style: none;
}
/* Royal Court leads: full width on a phone, two rows tall from three columns
   up, so the other ten always fill whole rows. */
.army--lead {
  grid-column: span 2;
  border-color: rgba(212, 162, 76, 0.55);
}
.army--lead .army-art {
  aspect-ratio: 16 / 10;
}
/* The king is square: 58% of a 16:10 box's width is 93% of its height.
   (A percentage height would not resolve here and fall back to 512 px.) */
.army--lead .army-art img {
  width: 58%;
}
.army-note {
  margin-top: 10px;
}
@media (min-width: 600px) {
  .armies {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
  .army--lead {
    grid-column: auto;
    grid-row: span 2;
  }
  .army--lead .army-art {
    flex: 1;
    aspect-ratio: auto;
    min-height: 220px;
  }
  .army--lead .army-art img {
    width: 92%;
    height: auto;
  }
  .armies .army--lead h3 {
    font-size: 1.2rem;
  }
}
/* From 1000 px the lead is a full-width banner over a five-by-two grid. */
@media (min-width: 1000px) {
  .armies {
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 14px;
  }
  .armies .army--lead {
    grid-column: 1 / -1;
    grid-row: auto;
    flex-direction: row;
    align-items: center;
  }
  .army--lead .army-art {
    flex: 0 0 36%;
    min-height: 0;
    aspect-ratio: 16 / 10;
  }
  .army--lead .army-art img {
    width: 58%;
  }
  .army--lead .army-body {
    padding: 28px 36px;
    max-width: 640px;
  }
  /* .armies raises these over .army h3 and .army p, which come later. */
  .armies .army--lead h3 {
    font-size: 1.6rem;
  }
  .armies .army--lead p {
    font-size: 1rem;
  }
}
.army {
  position: relative;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: linear-gradient(180deg, var(--surface-2), var(--surface) 60%);
}
.army-art {
  position: relative;
  display: grid;
  place-items: center;
  aspect-ratio: 1 / 1;
  background:
    radial-gradient(circle at 50% 62%, rgba(240, 200, 120, 0.2), transparent 62%),
    repeating-conic-gradient(rgba(232, 217, 184, 0.05) 0 25%, transparent 0 50%) 0 0 / 34px 34px;
}
.army-art img {
  width: 82%;
  filter: drop-shadow(0 10px 10px rgba(0, 0, 0, 0.6));
  transition: transform 220ms ease;
}
@media (hover: hover) and (pointer: fine) {
  .army:hover .army-art img {
    transform: translateY(-4px) scale(1.04);
  }
}
.army-body {
  padding: 12px 14px 16px;
}
.army h3 {
  font-size: 0.98rem;
  letter-spacing: 0;
}
.army p {
  margin: 6px 0 0;
  color: var(--muted);
  font-size: 0.84rem;
  line-height: 1.45;
}
.tag {
  position: absolute;
  top: 10px;
  left: 10px;
  z-index: 1;
  padding: 3px 9px;
  border-radius: 999px;
  border: 1px solid rgba(240, 200, 120, 0.55);
  background: rgba(11, 15, 26, 0.85);
  color: var(--gold-bright);
  font: 600 0.66rem/1.5 var(--display);
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

/* Screens gallery: a scroll-snap strip on phones, a grid on desktop. */
.shots {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: min(66vw, 250px);
  gap: 16px;
  margin: 0 calc(var(--gutter) * -1);
  padding: 8px var(--gutter) 22px;
  list-style: none;
  overflow-x: auto;
  overscroll-behavior-x: contain;
  scroll-snap-type: x mandatory;
  scroll-padding: 0 var(--gutter);
  scrollbar-width: thin;
  scrollbar-color: var(--line) transparent;
}
.shots:focus-visible {
  outline: 2px solid var(--gold-bright);
  outline-offset: 2px;
  border-radius: 12px;
}
.shots li {
  scroll-snap-align: start;
}
.shots figcaption {
  margin-top: 12px;
  color: var(--muted);
  font-size: 0.88rem;
  line-height: 1.45;
}
.shots figcaption b {
  display: block;
  color: var(--text);
  font: 600 0.98rem/1.3 var(--display);
}
.shots figure {
  margin: 0;
}
/* Desktop: three phones across in two rows, the middle column offset. */
@media (min-width: 1000px) {
  .shots {
    grid-auto-flow: row;
    grid-template-columns: repeat(3, minmax(0, 290px));
    justify-content: center;
    gap: 56px 72px;
    margin: 0;
    padding: 8px 0 48px;
    overflow: visible;
  }
  .shots li:nth-child(3n + 2) {
    transform: translateY(48px);
  }
}

/* Feature cards. */
.features {
  display: grid;
  gap: 14px;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
}
/* Two by two between phone and desktop, never three and a leftover. */
@media (min-width: 600px) and (max-width: 1099px) {
  .features {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
.feature {
  position: relative;
  padding: 24px 22px;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: linear-gradient(180deg, var(--surface), rgba(20, 27, 45, 0.55));
}
.feature-icon {
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  margin-bottom: 16px;
  border-radius: 12px;
  background: radial-gradient(circle at 30% 25%, rgba(240, 200, 120, 0.28), rgba(212, 162, 76, 0.08));
  border: 1px solid rgba(212, 162, 76, 0.4);
  color: var(--gold-bright);
}
.feature h3 {
  font-size: 1.12rem;
  letter-spacing: 0;
}
.feature p {
  margin: 8px 0 0;
  color: var(--muted);
  font-size: 0.95rem;
}

/* Facts: what a player should know before installing. */
.facts {
  display: grid;
  gap: 12px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.facts li {
  display: grid;
  grid-template-columns: 40px minmax(0, 1fr);
  gap: 14px;
  align-items: start;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
}
.facts svg {
  color: var(--gold);
}
.facts b {
  display: block;
  font: 600 1rem/1.35 var(--display);
  margin-bottom: 4px;
}
.facts span {
  color: var(--muted);
  font-size: 0.93rem;
}
@media (max-width: 480px) {
  .facts li {
    grid-template-columns: 24px minmax(0, 1fr);
    gap: 12px;
    padding: 16px;
  }
}
@media (min-width: 820px) {
  .facts {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

.closing {
  display: grid;
  gap: 24px;
  justify-items: center;
  text-align: center;
  padding: 72px 0 80px;
  background:
    radial-gradient(ellipse 50% 60% at 50% 40%, rgba(212, 162, 76, 0.16), transparent 70%),
    var(--bg);
  border-top: 1px solid rgba(38, 49, 73, 0.8);
}
.closing img {
  width: 76px;
}
.closing h2 {
  font-size: clamp(1.6rem, 5vw, 2.3rem);
  max-width: 18ch;
}

/* --------------------------------------------------------------------------
   Documents: privacy, delete-data, discord, 404
   -------------------------------------------------------------------------- */

.doc-hero {
  position: relative;
  overflow: hidden;
  padding: 44px 0 34px;
  border-bottom: 1px solid var(--line);
  background:
    radial-gradient(ellipse 60% 70% at 85% 0%, rgba(212, 162, 76, 0.16), transparent 70%),
    linear-gradient(180deg, #121a2b, var(--bg));
}
.doc-hero::after {
  content: '';
  position: absolute;
  right: -40px;
  top: -40px;
  width: 260px;
  height: 260px;
  background: repeating-conic-gradient(var(--sq-light) 0 25%, var(--sq-dark) 0 50%) 0 0 / 52px 52px;
  opacity: 0.07;
  transform: rotate(12deg);
  border-radius: 24px;
}
.doc-hero h1 {
  font-size: clamp(2rem, 7vw, 3rem);
}
.doc-hero .lede {
  max-width: 640px;
  margin: 16px 0 0;
  color: #d6dae4;
  font-size: 1.08rem;
}
.updated {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin: 18px 0 0;
  color: var(--muted);
  font-size: 0.92rem;
}

.glance {
  display: grid;
  gap: 12px;
  margin: 32px 0 8px;
  padding: 0;
  list-style: none;
}
.glance li {
  display: grid;
  grid-template-columns: 36px minmax(0, 1fr);
  gap: 12px;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  font-size: 0.95rem;
  color: #d6dae4;
}
.glance svg {
  color: var(--gold);
}
@media (max-width: 480px) {
  .glance li {
    grid-template-columns: 24px minmax(0, 1fr);
    padding: 14px;
  }
}
@media (min-width: 720px) {
  .glance {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

.toc {
  margin: 28px 0 0;
  padding: 18px 20px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(20, 27, 45, 0.6);
}
.toc h2 {
  margin: 0 0 10px;
  font-size: 0.8rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--gold);
}
.toc ol {
  margin: 0;
  padding-left: 22px;
  columns: 1;
}
.toc li {
  margin: 0;
  padding: 5px 0;
  break-inside: avoid;
}
@media (min-width: 720px) {
  .toc ol {
    columns: 2;
    column-gap: 36px;
  }
}

.doc {
  padding-top: 8px;
  padding-bottom: 72px;
}
.doc > section {
  padding-top: 36px;
  scroll-margin-top: 16px;
}
.doc h2 {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 0 0 14px;
  font-size: 1.4rem;
}
.doc h3 {
  margin: 24px 0 8px;
  font-size: 1.05rem;
  letter-spacing: 0;
}
.doc p,
.doc li {
  color: #dde0e8;
}
.doc ul,
.doc ol {
  padding-left: 22px;
}
.doc li {
  margin: 6px 0;
}
.doc .muted {
  color: var(--muted);
}

.panel {
  margin: 20px 0;
  padding: 18px 20px;
  border: 1px solid var(--line);
  border-left: 3px solid var(--gold);
  border-radius: 12px;
  background: var(--surface);
}
.panel > :last-child {
  margin-bottom: 0;
}

.whois {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 4px 20px;
  margin: 18px 0;
  padding: 18px 20px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--surface);
}
.whois dt {
  color: var(--muted);
  font-size: 0.82rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.whois dd {
  margin: 0 0 10px;
  overflow-wrap: anywhere;
}
@media (min-width: 640px) {
  .whois {
    grid-template-columns: 170px minmax(0, 1fr);
  }
  .whois dd {
    margin: 0;
  }
}

/* Tables collapse into labelled cards on a phone. */
.table {
  width: 100%;
  margin: 18px 0;
  border-collapse: collapse;
  font-size: 0.93rem;
}
.table th,
.table td {
  padding: 12px 14px;
  text-align: left;
  vertical-align: top;
  border-bottom: 1px solid var(--line);
}
.table thead th {
  color: var(--gold);
  font: 600 0.78rem/1.3 var(--body);
  letter-spacing: 0.06em;
  text-transform: uppercase;
}
.table tbody th {
  font: 600 0.95rem/1.35 var(--display);
  color: var(--text);
}
@media (max-width: 719px) {
  .table thead {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0 0 0 0);
  }
  .table,
  .table tbody,
  .table tr,
  .table th,
  .table td {
    display: block;
    width: 100%;
  }
  .table tr {
    margin: 0 0 12px;
    padding: 6px 0;
    border: 1px solid var(--line);
    border-radius: 12px;
    background: var(--surface);
  }
  .table th,
  .table td {
    border: 0;
    padding: 6px 16px;
  }
  .table td::before {
    content: attr(data-label);
    display: block;
    color: var(--gold);
    font: 600 0.72rem/1.4 var(--body);
    letter-spacing: 0.06em;
    text-transform: uppercase;
  }
}

.steps,
.doc .steps {
  margin: 20px 0;
  padding: 0;
  list-style: none;
  counter-reset: step;
}
.steps > li {
  position: relative;
  margin: 0 0 16px;
  padding: 18px 16px 6px 62px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
}
.steps > li::before {
  counter-increment: step;
  content: counter(step);
  position: absolute;
  left: 16px;
  top: 16px;
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border-radius: 8px;
  background: linear-gradient(135deg, #52607a, var(--sq-dark));
  color: var(--text);
  font: 700 0.95rem/1 var(--display);
  box-shadow: inset 0 -2px 0 rgba(0, 0, 0, 0.22);
}
.steps h3 {
  margin: 4px 0 8px;
}
/* Small phones: the number sits beside the heading, and the text gets the
   card's full width. */
@media (max-width: 480px) {
  .steps > li {
    padding: 16px 16px 6px;
  }
  .steps > li::before {
    position: static;
    float: left;
    width: 30px;
    height: 30px;
    margin: 0 12px 4px 0;
  }
  .steps h3 {
    min-height: 30px;
    padding-top: 3px;
  }
}

.mail-card {
  display: grid;
  gap: 16px;
  justify-items: start;
  margin: 28px 0;
  padding: 22px 20px;
  border: 1px solid rgba(212, 162, 76, 0.45);
  border-radius: var(--radius-lg);
  background: radial-gradient(ellipse 80% 90% at 0% 0%, rgba(212, 162, 76, 0.14), transparent 70%), var(--surface);
}
.mail-card p {
  margin: 0;
  color: #d6dae4;
}
.address {
  font: 600 min(1rem, 3.6vw) / 1.4 var(--display);
  color: var(--text);
  white-space: nowrap;
}
.center-page .mail-card {
  width: 100%;
  justify-items: center;
}

.center-page {
  display: grid;
  place-items: center;
  min-height: calc(100vh - 65px - 160px);
  padding: 56px 0;
  text-align: center;
}
.center-page .wrap {
  display: grid;
  justify-items: center;
  gap: 14px;
}
.center-page h1 {
  font-size: clamp(2rem, 8vw, 3.2rem);
}
.center-page p:not(.kicker) {
  max-width: 560px;
  color: #d6dae4;
}
.big-square {
  position: relative;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  width: 168px;
  margin-bottom: 10px;
  border-radius: 14px;
  overflow: hidden;
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
}
.big-square span {
  aspect-ratio: 1;
  background: var(--sq-dark);
}
.big-square span:nth-child(8n + 1),
.big-square span:nth-child(8n + 3),
.big-square span:nth-child(8n + 6),
.big-square span:nth-child(8n + 8) {
  background: var(--sq-light);
}
.big-square img {
  position: absolute;
  inset: 16%;
  width: 68%;
  margin: auto;
}
.soon {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 12px;
  border-radius: 999px;
  border: 1px solid rgba(212, 162, 76, 0.5);
  color: var(--gold-bright);
  font: 600 0.74rem/1.3 var(--display);
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

/* --------------------------------------------------------------------------
   Footer
   -------------------------------------------------------------------------- */

.site-footer {
  padding: 40px 0 48px;
  border-top: 1px solid var(--line);
  background: #090c15;
  color: var(--muted);
  font-size: 0.9rem;
}
.footer-grid {
  display: grid;
  gap: 24px;
}
.footer-brand {
  display: flex;
  gap: 12px;
  align-items: flex-start;
}
.footer-brand img {
  width: 30px;
  flex: none;
}
.footer-brand p {
  margin: 0;
}
.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 18px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.footer-links a {
  display: inline-block;
  padding: 10px 0;
  color: var(--text);
}
.fine {
  margin: 20px 0 0;
  font-size: 0.8rem;
  color: #8b95a7;
}
@media (min-width: 820px) {
  .footer-grid {
    grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr);
    align-items: start;
  }
  .footer-links {
    justify-content: flex-end;
  }
}

/* --------------------------------------------------------------------------
   Motion: gentle, CSS only, and off for anyone who asks for less.
   -------------------------------------------------------------------------- */

@keyframes rise {
  from {
    opacity: 0;
    transform: translateY(14px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}
@keyframes sway-left {
  0%,
  100% {
    transform: translateX(0) rotate(0deg);
  }
  50% {
    transform: translateX(6px) rotate(1.2deg);
  }
}
@keyframes sway-right {
  0%,
  100% {
    transform: translateX(0) rotate(0deg);
  }
  50% {
    transform: translateX(-6px) rotate(-1.2deg);
  }
}
.hero-copy > * {
  animation: rise 600ms cubic-bezier(0.2, 0.7, 0.2, 1) both;
}
.hero-copy > :nth-child(2) {
  animation-delay: 80ms;
}
.hero-copy > :nth-child(3) {
  animation-delay: 160ms;
}
.hero-copy > :nth-child(4) {
  animation-delay: 240ms;
}
.hero-grid > .stat-row {
  animation: rise 600ms cubic-bezier(0.2, 0.7, 0.2, 1) 320ms both;
}
.hero-fighter--left {
  animation: sway-left 5s ease-in-out infinite;
}
.hero-fighter--right {
  animation: sway-right 5s ease-in-out 0.4s infinite;
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
    scroll-behavior: auto !important;
  }
  .btn:hover,
  .army:hover .army-art img {
    transform: none;
  }
}

/* The inline SVG icon sprite each page carries. */
.sprite {
  position: absolute;
  width: 0;
  height: 0;
  overflow: hidden;
}
.icon {
  width: 24px;
  height: 24px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.icon--fill {
  fill: currentColor;
  stroke: none;
}
.icon--sm {
  width: 18px;
  height: 18px;
}
