/* Troopstorm: the site's one stylesheet. */

/* The fonts, from site/fonts (OFL 1.1, the licenses are beside them). */
@font-face { font-family: 'Baloo 2'; font-style: normal; font-weight: 700; font-display: swap;
  src: url(../fonts/baloo-2-latin-700-normal.woff2) format('woff2');
  unicode-range: U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD; }
@font-face { font-family: 'Baloo 2'; font-style: normal; font-weight: 700; font-display: swap;
  src: url(../fonts/baloo-2-latin-ext-700-normal.woff2) format('woff2');
  unicode-range: U+0100-02BA,U+02BD-02C5,U+02C7-02CC,U+02CE-02D7,U+02DD-02FF,U+0304,U+0308,U+0329,U+1D00-1DBF,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF; }
@font-face { font-family: 'Baloo 2'; font-style: normal; font-weight: 800; font-display: swap;
  src: url(../fonts/baloo-2-latin-800-normal.woff2) format('woff2');
  unicode-range: U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD; }
@font-face { font-family: 'Baloo 2'; font-style: normal; font-weight: 800; font-display: swap;
  src: url(../fonts/baloo-2-latin-ext-800-normal.woff2) format('woff2');
  unicode-range: U+0100-02BA,U+02BD-02C5,U+02C7-02CC,U+02CE-02D7,U+02DD-02FF,U+0304,U+0308,U+0329,U+1D00-1DBF,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF; }
@font-face { font-family: 'Chakra Petch'; font-style: normal; font-weight: 400; font-display: swap;
  src: url(../fonts/chakra-petch-latin-400-normal.woff2) format('woff2');
  unicode-range: U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD; }
@font-face { font-family: 'Chakra Petch'; font-style: normal; font-weight: 400; font-display: swap;
  src: url(../fonts/chakra-petch-latin-ext-400-normal.woff2) format('woff2');
  unicode-range: U+0100-02BA,U+02BD-02C5,U+02C7-02CC,U+02CE-02D7,U+02DD-02FF,U+0304,U+0308,U+0329,U+1D00-1DBF,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF; }
@font-face { font-family: 'Chakra Petch'; font-style: normal; font-weight: 600; font-display: swap;
  src: url(../fonts/chakra-petch-latin-600-normal.woff2) format('woff2');
  unicode-range: U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD; }
@font-face { font-family: 'Chakra Petch'; font-style: normal; font-weight: 600; font-display: swap;
  src: url(../fonts/chakra-petch-latin-ext-600-normal.woff2) format('woff2');
  unicode-range: U+0100-02BA,U+02BD-02C5,U+02C7-02CC,U+02CE-02D7,U+02DD-02FF,U+0304,U+0308,U+0329,U+1D00-1DBF,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF; }


/* The new look (NewDesignExample/frontline-rush-redesign, HANDOFF.md): a near-black field, gold
   titles in Baloo 2 with a dark drop, small text and labels in Chakra Petch, one orange button.
   HUD motifs: chamfered corners (.chamf), gold brackets in two corners (.brk), faint scanlines over
   pictures (.scan). Layout: full-width bands, content in a 1280 px column with a 40 px gutter
   (16 px on a phone). One dark look, on purpose, like the game. */
:root {
  --bg: #0a0c07;
  --bg-2: #0e110a;
  --bg-3: #070905;
  --panel: #10140b;
  --panel-2: #0f130a;
  --panel-hi: #1a1f10;
  --line: rgba(255, 207, 74, 0.14);
  --line-2: rgba(255, 207, 74, 0.22);
  --line-3: rgba(255, 207, 74, 0.35);
  --text: #ece6d3;
  --text-hi: #fbf6e6;
  --soft: #c4bfa8;
  --soft-2: #b9b49c;
  --muted: #a9a58e;
  --dim: #8f8b75;
  --faint: #6f6c5c;
  --gold: #ffcf4a;
  --gold-hi: #ffe08a;
  --gold-drop: #3d2805;
  --orange: #f08a2b;
  --ok: #7fd34e;
  --legion: #6b7f3a;
  --legion-hi: #c8d98a;
  --dominion: #4a78b8;
  --dominion-hi: #9fc0f2;
  --red: #d04a3a;
  --air: #8fc3ff;
  --display: 'Baloo 2', 'Segoe UI', system-ui, sans-serif;
  --font: 'Chakra Petch', 'Segoe UI', system-ui, sans-serif;
  --gutter-l: max(40px, env(safe-area-inset-left, 0px));
  --gutter-r: max(40px, env(safe-area-inset-right, 0px));
  --head-h: 76px;
  color-scheme: dark;
}
@media (max-width: 720px) {
  :root { --gutter-l: max(16px, env(safe-area-inset-left, 0px)); --gutter-r: max(16px, env(safe-area-inset-right, 0px)); --head-h: 64px; }
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: calc(var(--head-h) + 12px); }
body { margin: 0; background: var(--bg); color: var(--text); font: 400 16px/1.6 var(--font); overflow-x: hidden; }
a { color: var(--gold); text-decoration: none; }
a:hover { color: var(--gold-hi); text-decoration: underline; text-underline-offset: 3px; }
:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; }
img, svg, video { max-width: 100%; }
h1, h2, h3, p { margin: 0; }
h1, h2, h3 { text-wrap: balance; }
strong { font-weight: 600; }
.wrap { width: 100%; max-width: 1280px; margin: 0 auto; padding-left: var(--gutter-l); padding-right: var(--gutter-r); }
.disp { font-family: var(--display); font-weight: 800; letter-spacing: -0.01em; }
.sr-only { position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }

/* ---- HUD motifs ---- */
.chamf { clip-path: polygon(16px 0, 100% 0, 100% calc(100% - 16px), calc(100% - 16px) 100%, 0 100%, 0 16px); }
.chamf-s { clip-path: polygon(10px 0, 100% 0, 100% calc(100% - 10px), calc(100% - 10px) 100%, 0 100%, 0 10px); }
.brk { position: relative; }
.brk::before, .brk::after { content: ""; position: absolute; width: 22px; height: 22px; pointer-events: none; z-index: 3; }
.brk::before { top: -1px; left: -1px; border-top: 2px solid var(--gold); border-left: 2px solid var(--gold); }
.brk::after { bottom: -1px; right: -1px; border-bottom: 2px solid var(--gold); border-right: 2px solid var(--gold); }
.scan { position: absolute; inset: 0; pointer-events: none; background: repeating-linear-gradient(0deg, rgba(0, 0, 0, 0.18) 0, rgba(0, 0, 0, 0.18) 1px, transparent 1px, transparent 3px); mix-blend-mode: multiply; opacity: 0.5; }
.shot { transition: transform 0.6s ease; }
.shotbox:hover .shot { transform: scale(1.04); }

/* A section's label ("02 // Choose a battle"), its title and its lead line. */
.eyebrow { font: 600 13px/1.4 var(--font); letter-spacing: 0.3em; text-transform: uppercase; color: var(--orange); }
.h2 { margin-top: 14px; font-size: clamp(40px, 5vw, 68px); line-height: 1; color: var(--text-hi); }
.h2.sm { font-size: clamp(40px, 5vw, 64px); }
.lead { margin-top: 22px; font-size: 18px; color: var(--soft); }
.lead strong { color: var(--gold); }
.side-note { max-width: 420px; color: var(--soft-2); }
.sec-head { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 24px; }
.sec-head > :first-child { max-width: 680px; }
@media (max-width: 720px) { .h2, .h2.sm { font-size: clamp(32px, 9vw, 40px); } .lead { font-size: 17px; } }

/* ---- Buttons ---- */
.btn-p {
  display: inline-flex; align-items: center; justify-content: center; gap: 12px; min-height: 56px; padding: 0 30px;
  background: linear-gradient(180deg, #ffa950 0%, var(--orange) 55%, #d9711a 100%); color: #1c1105;
  font: 800 19px/1 var(--display); letter-spacing: 0.04em; text-transform: uppercase; text-decoration: none;
  box-shadow: inset 0 1px 0 rgba(255, 230, 180, 0.7), inset 0 -3px 0 rgba(120, 50, 0, 0.45), 0 10px 40px rgba(240, 137, 43, 0.35);
  transition: transform 0.15s ease, box-shadow 0.2s ease, filter 0.2s ease;
}
.btn-p:hover { color: #1c1105; text-decoration: none; filter: brightness(1.08); transform: translateY(-2px); box-shadow: inset 0 1px 0 rgba(255, 230, 180, 0.7), inset 0 -3px 0 rgba(120, 50, 0, 0.45), 0 14px 54px rgba(255, 160, 60, 0.55); }
.btn-p svg { flex: none; }
.btn-p.sm { min-height: 44px; padding: 0 20px; font-size: 15px; }
.btn-p.lg { min-height: 64px; padding: 0 40px; font-size: 21px; }
.btn-g {
  display: inline-flex; align-items: center; justify-content: center; gap: 12px; min-height: 56px; padding: 0 26px;
  background: rgba(20, 24, 14, 0.55); color: var(--text); border: 1px solid rgba(255, 207, 74, 0.45);
  font: 600 15px/1 var(--font); letter-spacing: 0.14em; text-transform: uppercase; text-decoration: none;
  -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); transition: border-color 0.2s, background 0.2s, color 0.2s;
}
.btn-g:hover { color: var(--gold); text-decoration: none; border-color: var(--gold); background: rgba(40, 36, 14, 0.7); }
.btn-g.lg { min-height: 64px; }

/* ---- The header: fixed, a dark gradient over the hero, solid once the page scrolls ---- */
.site-head {
  position: fixed; top: 0; left: 0; right: 0; z-index: 20;
  padding-top: env(safe-area-inset-top, 0px);
  border-bottom: 1px solid var(--line);
  background: linear-gradient(180deg, rgba(8, 10, 6, 0.92), rgba(8, 10, 6, 0.55));
  transition: background 0.25s ease;
}
.site-head.solid, .site-head.open { background: rgba(8, 10, 6, 0.96); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); }
.site-head > .wrap { display: flex; align-items: center; justify-content: space-between; gap: 24px; min-height: var(--head-h); }
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; flex: none; }
.brand:hover { text-decoration: none; }
.brand img { width: 40px; height: 40px; flex: none; display: block; }
.brand span { font: 800 25px/1 var(--display); letter-spacing: -0.01em; color: var(--gold); text-shadow: 0 2px 0 #4a2f06; white-space: nowrap; }
.navlinks { display: flex; align-items: center; gap: 30px; }
.nl { color: #cfc9b4; text-decoration: none; font: 600 14px/1 var(--font); letter-spacing: 0.14em; text-transform: uppercase; padding: 10px 2px; border-bottom: 2px solid transparent; transition: color 0.2s, border-color 0.2s; }
.nl:hover, .nl[aria-current="page"] { color: var(--gold); text-decoration: none; border-bottom-color: var(--orange); }
.head-end { display: flex; align-items: center; gap: 16px; }
.lang { display: flex; align-items: center; gap: 4px; font: 600 13px/1 var(--font); letter-spacing: 0.12em; }
.lang a, .lang span { padding: 10px 6px; text-decoration: none; }
.lang a { color: var(--muted); }
.lang a:hover { color: var(--gold); }
.lang [aria-current] { color: var(--gold); }
.lang i { font-style: normal; color: var(--faint); }
.menu-btn { display: none; width: 44px; height: 44px; padding: 0; border: 1px solid var(--line-3); background: rgba(20, 24, 14, 0.55); color: var(--gold); cursor: pointer; align-items: center; justify-content: center; }
.menu-btn svg { width: 22px; height: 22px; }
.menu-btn .x { display: none; }
.site-head.open .menu-btn .bars { display: none; }
.site-head.open .menu-btn .x { display: block; }
.nav-lang { display: none; }
@media (max-width: 1180px) {
  .menu-btn { display: inline-flex; }
  .navlinks {
    display: none; position: absolute; top: 100%; left: 0; right: 0; flex-direction: column; align-items: stretch; gap: 0;
    padding: 8px var(--gutter-r) 20px var(--gutter-l); background: rgba(8, 10, 6, 0.98); border-bottom: 1px solid var(--line-2);
    max-height: calc(100vh - var(--head-h)); overflow-y: auto;
  }
  .site-head.open .navlinks { display: flex; }
  .navlinks .nl { padding: 15px 2px; border-bottom: 1px solid var(--line); font-size: 15px; }
  .navlinks .nl:hover, .navlinks .nl[aria-current="page"] { border-bottom-color: var(--line); }
  .nav-lang { display: flex; padding-top: 10px; }
}
@media (max-width: 720px) {
  .head-end > .lang { display: none; }
  .brand img { width: 34px; height: 34px; }
  .brand span { font-size: 21px; }
}
@media (max-width: 560px) { .head-end > .btn-p { display: none; } }

/* ---- Home: the hero ---- */
.hero { position: relative; min-height: min(940px, 100vh); display: flex; align-items: flex-end; padding-top: 120px; }
@media (min-width: 981px) and (max-height: 860px) { .hero { padding-top: 104px; } .hero-inner { padding-bottom: 64px; } }
.hero-img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: center 40%; filter: saturate(1.05) contrast(1.05); }
.hero-shade {
  position: absolute; inset: 0;
  background:
    linear-gradient(180deg, rgba(10, 12, 7, 0) calc(100% - 320px), var(--bg) 100%),
    linear-gradient(90deg, rgba(10, 12, 7, 0.94) 0%, rgba(10, 12, 7, 0.72) 38%, rgba(10, 12, 7, 0) 70%),
    radial-gradient(120% 90% at 70% 30%, rgba(10, 12, 7, 0) 0%, rgba(10, 12, 7, 0.55) 55%, rgba(10, 12, 7, 0.95) 100%);
}
.hero-inner { position: relative; z-index: 2; padding-bottom: 96px; display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 48px; }
.hero-copy { flex: 1 1 560px; max-width: 760px; min-width: 0; }
.tagline { display: inline-flex; align-items: center; gap: 12px; padding: 8px 16px; border: 1px solid var(--line-3); background: rgba(10, 12, 7, 0.6); font: 600 13px/1.3 var(--font); letter-spacing: 0.22em; text-transform: uppercase; color: var(--gold); }
.tagline::before { content: ""; width: 8px; height: 8px; flex: none; background: var(--ok); box-shadow: 0 0 10px var(--ok); border-radius: 50%; }
.hero h1 { margin-top: 28px; font-size: clamp(54px, 7.4vw, 112px); line-height: 0.92; color: var(--text-hi); text-shadow: 0 6px 40px rgba(0, 0, 0, 0.6); }
.hero h1 span { color: var(--gold); text-shadow: 0 4px 0 #5a3a08, 0 10px 60px rgba(240, 137, 43, 0.35); }
.hero-lede { margin-top: 28px; max-width: 580px; font-size: 19px; line-height: 1.6; color: #d8d2bd; }
.btn-row { display: flex; flex-wrap: wrap; gap: 16px; margin-top: 40px; }
.hero-meta { margin-top: 22px; font-size: 14px; color: var(--muted); letter-spacing: 0.04em; }
.hero-meta i { font-style: normal; color: var(--faint); }
.online { display: inline-flex; align-items: center; gap: 8px; margin-top: 14px; padding: 5px 12px 5px 10px; border: 1px solid rgba(127, 211, 78, 0.35); background: rgba(127, 211, 78, 0.08); color: #b5e89a; font: 600 12px/1.4 var(--font); letter-spacing: 0.14em; text-transform: uppercase; }
.online::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--ok); box-shadow: 0 0 8px var(--ok); }
.fair { flex: 0 1 340px; padding: 24px 26px; background: rgba(12, 15, 9, 0.78); border: 1px solid var(--line-2); -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); }
.fair .label { font: 600 12px/1.4 var(--font); letter-spacing: 0.24em; text-transform: uppercase; color: var(--orange); }
.fair .disp { margin-top: 8px; font-size: 26px; line-height: 1.1; color: var(--text-hi); }
.fair > p:last-child { margin-top: 10px; font-size: 15px; color: var(--soft-2); }
.hero h1.long { font-size: clamp(48px, 5.8vw, 86px); }
@media (max-width: 980px) {
  .hero { min-height: 0; padding-top: calc(var(--head-h) + 120px); }
  .hero-shade { background: linear-gradient(180deg, rgba(10, 12, 7, 0.35) 0%, rgba(10, 12, 7, 0.82) 55%, var(--bg) 100%); }
}
@media (max-width: 720px) {
  .hero { padding-top: calc(var(--head-h) + 72px); }
  .hero-inner { padding-bottom: 56px; }
  .hero h1 { font-size: clamp(42px, 12vw, 54px); }
  .hero h1.long { font-size: clamp(34px, 9.6vw, 46px); }
  .tagline { letter-spacing: 0.14em; padding: 8px 12px; }
  .hero-lede { font-size: 17px; }
  .fair { display: none; }
  .btn-row .btn-p, .btn-row .btn-g { flex: 1 1 100%; }
}

/* ---- Home: the strip of figures ---- */
.stats { border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); background: var(--bg-2); }
.stats-grid { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 1px; background: rgba(255, 207, 74, 0.1); margin: 0; }
.stat { padding: 30px 20px; background: var(--bg-2); }
.stat dd { margin: 0; font: 800 46px/1 var(--display); color: var(--gold); }
.stat dt { margin-top: 6px; font: 600 13px/1.4 var(--font); letter-spacing: 0.18em; text-transform: uppercase; color: var(--muted); }
.stat { display: flex; flex-direction: column-reverse; justify-content: flex-end; }
.stat.hot dd { color: var(--orange); }
@media (max-width: 900px) {
  .stats-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .stat:last-child { grid-column: 1 / -1; }
  .stat { padding: 22px 16px; }
  .stat dd { font-size: 40px; }
}

/* ---- Home: 01, the setting and the two armies ---- */
.story { padding: 140px 0 120px; }
.story-copy { max-width: 760px; }
.factions { margin-top: 64px; position: relative; display: flex; flex-wrap: wrap; gap: 24px; }
.faction { flex: 1 1 440px; position: relative; min-height: 460px; overflow: hidden; min-width: 0; }
.faction img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.faction .shade { position: absolute; inset: 0; }
.faction .bar { position: absolute; top: 0; bottom: 0; width: 6px; }
.faction .body { position: relative; padding: 40px; min-height: 460px; display: flex; flex-direction: column; justify-content: flex-end; }
.faction .who { font: 600 12px/1.4 var(--font); letter-spacing: 0.26em; text-transform: uppercase; }
.faction h3 { margin-top: 6px; font-size: 48px; line-height: 1; }
.faction p { margin-top: 14px; max-width: 440px; }
.faction .swatch { display: flex; gap: 8px; margin-top: 18px; }
.faction .swatch span { width: 28px; height: 10px; }
.legion { background: #1a2010; border: 1px solid var(--line-2); }
.legion .shade { background: linear-gradient(180deg, rgba(20, 26, 10, 0.1) 0%, rgba(14, 18, 8, 0.6) 45%, rgba(10, 12, 7, 0.97) 100%); }
.legion .bar { left: 0; background: var(--orange); }
.legion .who { color: var(--orange); }
.legion h3 { color: var(--legion-hi); }
.legion p { color: #d0cab4; }
.legion .swatch span:first-child { background: var(--legion); } .legion .swatch span:last-child { background: var(--orange); }
.dominion { background: #10182a; border: 1px solid rgba(110, 150, 220, 0.25); }
.dominion .shade { background: linear-gradient(180deg, rgba(10, 16, 30, 0.1) 0%, rgba(10, 14, 24, 0.6) 45%, rgba(8, 10, 16, 0.97) 100%); }
.dominion .bar { right: 0; background: var(--red); }
.dominion .body { align-items: flex-end; text-align: right; }
.dominion .who { color: #ff8a7a; }
.dominion h3 { color: var(--dominion-hi); }
.dominion p { color: #c9d2e2; }
.dominion .swatch span:first-child { background: var(--dominion); } .dominion .swatch span:last-child { background: var(--red); }
.vs { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%) rotate(45deg); width: 92px; height: 92px; background: var(--bg); border: 2px solid var(--gold); display: flex; align-items: center; justify-content: center; box-shadow: 0 0 40px rgba(255, 207, 74, 0.35); z-index: 4; }
.vs span { transform: rotate(-45deg); font-size: 34px; color: var(--gold); }
@media (max-width: 1000px) { .vs { display: none; } }
@media (max-width: 720px) {
  .story { padding: 88px 0 72px; }
  .factions { margin-top: 40px; }
  .faction, .faction .body { min-height: 380px; }
  .faction .body { padding: 28px 24px; }
  .faction h3 { font-size: 36px; }
}

/* ---- Home: 02, the battles (a tablist) ---- */
.modes { padding: 120px 0; background: linear-gradient(180deg, var(--bg), #11150c 50%, var(--bg)); }
.modes-ui { margin-top: 56px; display: flex; flex-wrap: wrap; gap: 24px; align-items: stretch; }
.tabs { flex: 1 1 300px; display: flex; flex-direction: column; gap: 8px; }
.tab {
  display: flex; align-items: center; gap: 16px; width: 100%; min-height: 72px; padding: 14px 20px; text-align: left; cursor: pointer;
  font-family: var(--font); color: var(--text); background: rgba(255, 255, 255, 0.02); border: 1px solid var(--line); transition: background 0.2s, border-color 0.2s;
}
.tab:hover { background: rgba(255, 207, 74, 0.07); }
.tab .n { font: 800 22px/1 var(--display); color: var(--faint); width: 34px; flex: none; }
.tab .t { display: flex; flex-direction: column; flex: 1; min-width: 0; }
.tab .t b { font: 600 18px/1.3 var(--font); letter-spacing: 0.06em; text-transform: uppercase; color: var(--text); }
.tab .t small { font-size: 13px; color: #9a967f; letter-spacing: 0.08em; }
.tab svg { width: 16px; height: 16px; flex: none; color: var(--faint); }
.tab[aria-selected="true"] { background: linear-gradient(90deg, rgba(240, 137, 43, 0.22), rgba(240, 137, 43, 0.04)); border-color: var(--orange); }
.tab[aria-selected="true"] .n, .tab[aria-selected="true"] .t b, .tab[aria-selected="true"] svg { color: var(--gold); }
.mode-view { flex: 999 1 560px; min-width: 0; }
.mode { background: #0d1009; border: 1px solid var(--line-2); height: 100%; }
.mode .pic { position: relative; aspect-ratio: 16 / 8; overflow: hidden; background: #000; }
.mode .pic img { width: 100%; height: 100%; object-fit: cover; display: block; }
.mode .pic .fade { position: absolute; inset: 0; background: linear-gradient(180deg, rgba(13, 16, 9, 0) 50%, rgba(13, 16, 9, 0.95) 100%); }
.mode .pic .tag { position: absolute; top: 18px; left: 18px; padding: 6px 12px; background: rgba(10, 12, 7, 0.8); border: 1px solid rgba(255, 207, 74, 0.4); font: 600 12px/1.4 var(--font); letter-spacing: 0.22em; text-transform: uppercase; color: var(--gold); }
.mode .body { position: relative; margin-top: -60px; padding: 8px 36px 36px; }
.mode h3 { font-size: 44px; line-height: 1.05; color: var(--gold); text-shadow: 0 3px 0 var(--gold-drop); }
.mode p { margin-top: 14px; font-size: 17px; color: #d4ceb8; max-width: 680px; }
.facts-row { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 12px; margin: 24px 0 0; padding: 0; list-style: none; }
.facts-row li { display: flex; align-items: center; gap: 10px; padding: 12px 14px; background: rgba(255, 207, 74, 0.06); border: 1px solid var(--line); font: 600 14px/1.35 var(--font); color: #e6dfc6; }
.facts-row li::before { content: ""; width: 10px; height: 10px; flex: none; background: var(--orange); transform: rotate(45deg); margin: 0 2px; }
@media (max-width: 720px) {
  .modes { padding: 80px 0; }
  .modes-ui { margin-top: 36px; }
  .tab { min-height: 56px; padding: 10px 14px; gap: 12px; }
  .tab .n { font-size: 18px; width: 28px; }
  .tab .t b { font-size: 16px; }
  .tab .t small { font-size: 12px; }
  .mode .body { padding: 8px 20px 24px; margin-top: -40px; }
  .mode h3 { font-size: 34px; }
  .mode p { font-size: 16px; }
}

/* ---- Home: 03, the war map and its markers ---- */
.map-sec { padding: 120px 0; }
.map-ui { margin-top: 52px; display: flex; flex-wrap: wrap; gap: 24px; align-items: flex-start; }
.map-frame { flex: 999 1 640px; min-width: 0; border: 1px solid var(--line-2); background: #0b1a24; padding: 10px; }
.map-frame .inner { position: relative; }
.map-frame img { width: 100%; height: auto; display: block; }
.pin {
  position: absolute; transform: translate(-50%, -50%); width: 44px; height: 44px; border-radius: 50%; padding: 0; cursor: pointer;
  display: flex; align-items: center; justify-content: center; font: 800 18px/1 var(--display);
  background: var(--gold); color: #1c1105; border: 2px solid #1c1105; box-shadow: 0 4px 16px rgba(0, 0, 0, 0.6); transition: transform 0.2s;
}
.pin:hover { transform: translate(-50%, -50%) scale(1.12); }
.pin[aria-pressed="true"] { background: var(--orange); }
.pin::before { content: ""; position: absolute; inset: -8px; border-radius: 50%; border: 2px solid rgba(255, 207, 74, 0.55); animation: ping 2.2s ease-out infinite; }
/* Where each marker sits on media/warmap.jpg, in percent of the picture. */
.pin.p1 { left: 14.8%; top: 52%; } .pin.p2 { left: 36.8%; top: 27%; } .pin.p3 { left: 24.4%; top: 45%; }
.pin.p4 { left: 71.6%; top: 5%; } .pin.p5 { left: 19%; top: 7%; } .pin.p6 { left: 75.4%; top: 93%; }
@keyframes ping { 0% { transform: scale(0.7); opacity: 1; } 100% { transform: scale(1.5); opacity: 0; } }
.intel-col { flex: 1 1 320px; display: flex; flex-direction: column; gap: 16px; min-width: 0; }
.intel { padding: 28px; background: linear-gradient(180deg, #1d2312, #131709); border: 1px solid rgba(255, 207, 74, 0.3); }
.intel .top { display: flex; align-items: center; gap: 14px; }
.intel .num { width: 44px; height: 44px; border-radius: 50%; background: var(--gold); color: #1c1105; display: flex; align-items: center; justify-content: center; font: 800 20px/1 var(--display); flex: none; }
.intel .label { font: 600 12px/1.4 var(--font); letter-spacing: 0.24em; text-transform: uppercase; color: var(--orange); }
.intel h3 { margin-top: 16px; font-size: 32px; line-height: 1.05; color: var(--text-hi); }
.intel p { margin-top: 12px; color: #cfc9b2; }
.mini { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.mini div { padding: 18px; border: 1px solid var(--line); background: var(--bg-2); }
.mini b { display: block; font: 800 30px/1 var(--display); color: var(--gold); }
.mini span { display: block; margin-top: 6px; font-size: 13px; color: var(--muted); }
@media (max-width: 720px) {
  .map-sec { padding: 80px 0; }
  .map-ui { margin-top: 36px; }
  .map-frame { padding: 6px; }
  .pin { width: 30px; height: 30px; font-size: 14px; border-width: 2px; }
  .pin::before { inset: -6px; }
  .intel { padding: 22px; }
  .intel h3 { font-size: 28px; }
}
@media (max-width: 420px) {
  .pin { width: 26px; height: 26px; font-size: 13px; }
  .pin::before { inset: -5px; }
}

/* ---- Home: 04, the base ---- */
.base-sec { padding: 120px 0; background: var(--bg-2); border-top: 1px solid rgba(255, 207, 74, 0.1); border-bottom: 1px solid rgba(255, 207, 74, 0.1); }
.split { display: flex; flex-wrap: wrap; gap: 56px; align-items: center; }
.split .copy { flex: 1 1 380px; max-width: 520px; min-width: 0; }
.split .copy .body-text { margin-top: 20px; font-size: 17px; color: var(--soft); }
.small-label { font: 600 12px/1.4 var(--font); letter-spacing: 0.24em; text-transform: uppercase; color: var(--muted); }
.tiers { margin-top: 34px; }
.tiers ol { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 6px; margin: 12px 0 0; padding: 0; list-style: none; }
.tiers li { padding: 14px 12px; min-width: 0; }
.tiers b { display: block; font: 800 18px/1 var(--display); }
.tiers span { display: block; font-size: 12px; margin-top: 4px; }
.tiers .wood { background: #3a2c18; border-top: 3px solid #a8783e; } .tiers .wood b { color: #f0d6aa; } .tiers .wood span { color: #c9b796; }
.tiers .stone { background: #2f2f2a; border-top: 3px solid #9b9a8c; } .tiers .stone b { color: #e3e1d4; } .tiers .stone span { color: #bdbbae; }
.tiers .concrete { background: #2c3034; border-top: 3px solid #c6ccd2; } .tiers .concrete b { color: #eef1f4; } .tiers .concrete span { color: #c2c8ce; }
.tiers .armored { background: #2a2f1a; border-top: 3px solid var(--gold); } .tiers .armored b { color: var(--gold); } .tiers .armored span { color: #d8cf9e; }
.ticks { list-style: none; margin: 30px 0 0; padding: 0; display: grid; gap: 10px; }
.ticks li { display: flex; gap: 14px; align-items: baseline; }
.ticks li::before { content: "▸"; color: var(--orange); font-weight: 600; flex: none; }
.ticks strong { color: var(--text); }
.ticks span { color: var(--muted); }
.fine { margin-top: 22px; font-size: 14px; color: var(--dim); }
.base-card { position: relative; z-index: 2; padding: 44px 44px 40px; background: linear-gradient(180deg, rgba(29, 35, 18, 0.97), rgba(16, 20, 11, 0.97)); border: 1px solid var(--line-2); box-shadow: 0 30px 80px rgba(0, 0, 0, 0.55); }
.base-card .h2 { font-size: clamp(36px, 3.6vw, 52px); }
@media (min-width: 1080px) {
  .base-sec .split { display: grid; grid-template-columns: minmax(0, 380px) minmax(0, 1fr); gap: 56px; align-items: center; }
  .base-sec .split .base-card { max-width: none; margin-right: -140px; }
}
@media (max-width: 1079px) {
  .base-sec .split { flex-direction: column; align-items: stretch; gap: 40px; }
  .base-sec .split .base-card { max-width: 760px; flex: none; }
  .base-sec .pics { flex: none; width: 100%; min-height: 0; }
  .base-sec .pics .front { position: relative; margin: -10% 0 0 auto; }
}
.pics { flex: 999 1 560px; min-width: 0; position: relative; min-height: 600px; }
.pics .back { position: relative; width: 88%; overflow: hidden; border: 1px solid rgba(255, 207, 74, 0.25); box-shadow: 0 30px 80px rgba(0, 0, 0, 0.6); }
.pics .front { position: absolute; right: 0; bottom: 0; width: 66%; overflow: hidden; border: 2px solid var(--gold); box-shadow: 0 30px 80px rgba(0, 0, 0, 0.75); }
.pics img { width: 100%; height: auto; display: block; }
.pics .front .cap { position: absolute; left: 0; bottom: 0; padding: 8px 14px; background: var(--gold); color: #1c1105; font: 600 12px/1.4 var(--font); letter-spacing: 0.2em; text-transform: uppercase; }
@media (max-width: 720px) {
  .base-sec { padding: 80px 0; }
  .split { gap: 40px; }
  .tiers ol { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .base-card { padding: 26px 22px 24px; }
}

/* ---- Home: 05, the army (a tablist of ten) ---- */
.troops-sec { padding: 120px 0; }
.troops-ui { margin-top: 52px; display: flex; flex-wrap: wrap; gap: 24px; align-items: stretch; }
.roster { flex: 999 1 560px; min-width: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 10px; align-content: start; }
.trp {
  min-height: 112px; padding: 16px; cursor: pointer; text-align: left; font-family: var(--font); color: var(--text);
  background: var(--panel); border: 1px solid var(--line); display: flex; flex-direction: column; justify-content: space-between; gap: 10px;
  transition: border-color 0.2s, background 0.2s, transform 0.15s;
}
.trp:hover { transform: translateY(-2px); border-color: rgba(255, 207, 74, 0.6); }
.trp .n { font: 600 12px/1 var(--font); letter-spacing: 0.2em; color: #77735f; }
.trp .name { font: 800 20px/1.05 var(--display); color: var(--text); }
.trp[aria-selected="true"] { background: linear-gradient(180deg, rgba(240, 137, 43, 0.24), rgba(240, 137, 43, 0.06)); border-color: var(--orange); }
.trp[aria-selected="true"] .n, .trp[aria-selected="true"] .name { color: var(--gold); }
.unit-view { flex: 1 1 340px; min-width: 0; display: flex; }
.unit { flex: 1; padding: 34px; background: linear-gradient(180deg, var(--panel-hi), #0f120a); border: 1px solid rgba(255, 207, 74, 0.28); display: flex; flex-direction: column; }
.unit .label { font: 600 12px/1.4 var(--font); letter-spacing: 0.24em; text-transform: uppercase; color: var(--orange); }
.unit h3 { margin-top: 10px; font-size: 44px; line-height: 1; color: var(--gold); text-shadow: 0 3px 0 var(--gold-drop); }
.unit .role { display: inline-flex; align-self: flex-start; margin-top: 16px; padding: 6px 12px; border: 1px solid rgba(200, 217, 138, 0.4); color: var(--legion-hi); font: 600 13px/1.3 var(--font); letter-spacing: 0.16em; text-transform: uppercase; }
.unit .text { margin-top: 18px; font-size: 17px; color: #d4ceb8; }
.unit .spacer { flex: 1; }
.unit .note { margin-top: 28px; padding-top: 18px; border-top: 1px dashed var(--line-2); font-size: 13px; color: var(--dim); }
@media (max-width: 720px) {
  .troops-sec { padding: 80px 0; }
  .troops-ui { margin-top: 36px; }
  .roster { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .trp { min-height: 76px; padding: 12px 14px; }
  .trp .name { font-size: 18px; }
  .unit { padding: 24px; }
  .unit h3 { font-size: 34px; }
}

/* ---- Home: 06, the commander cards ---- */
.cards-sec { padding: 110px 0 120px; background: radial-gradient(80% 60% at 50% 0%, #1b2010 0%, var(--bg) 70%); }
.center-head { text-align: center; max-width: 760px; margin: 0 auto; }
.center-head .lead { max-width: 600px; margin: 18px auto 0; font-size: 16px; color: var(--soft-2); }
.card-grid { margin: 56px 0 0; padding: 0; list-style: none; display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 16px; }
.card { position: relative; min-height: 220px; padding: 22px 20px; background: linear-gradient(180deg, #232913 0%, #151909 100%); border: 1px solid var(--line-2); display: flex; flex-direction: column; gap: 10px; transition: transform 0.25s ease, border-color 0.25s; }
.card:hover { transform: translateY(-6px) rotate(-1deg); border-color: var(--gold); }
.card .top { display: flex; justify-content: space-between; align-items: center; }
.card .dia { width: 36px; height: 36px; display: flex; align-items: center; justify-content: center; border: 1.5px solid var(--gold); transform: rotate(45deg); }
.card .dia span { transform: rotate(-45deg); font: 800 15px/1 var(--display); color: var(--gold); }
.card .kind { font: 600 11px/1.3 var(--font); letter-spacing: 0.18em; text-transform: uppercase; color: var(--orange); }
.card .kind.air { color: var(--air); }
.card h3 { margin-top: 10px; font: 800 23px/1.05 var(--display); color: var(--text-hi); }
.card p { font-size: 14px; line-height: 1.5; color: var(--soft-2); }
@media (max-width: 720px) {
  .cards-sec { padding: 80px 0; }
  .card-grid { margin-top: 36px; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
  .card { min-height: 0; padding: 18px 14px; }
  .card h3 { font-size: 20px; }
}

/* ---- Home: 07, the commander's road ---- */
.road-sec { padding: 120px 0; border-top: 1px solid rgba(255, 207, 74, 0.1); }
.road-pic { flex: 999 1 560px; min-width: 0; overflow: hidden; border: 1px solid rgba(255, 207, 74, 0.25); box-shadow: 0 30px 80px rgba(0, 0, 0, 0.6); }
.road-pic img { width: 100%; height: auto; display: block; }
.levels { margin-top: 30px; }
.levels .ends { display: flex; justify-content: space-between; gap: 12px; font: 600 12px/1.4 var(--font); letter-spacing: 0.18em; text-transform: uppercase; color: var(--muted); }
.levels .ends span:last-child { color: var(--gold); text-align: right; }
.levels .bar { position: relative; height: 14px; margin-top: 10px; background: #1a1e12; border: 1px solid var(--line-2); }
.levels .fill { position: absolute; left: 0; top: 0; bottom: 0; width: 40%; background: linear-gradient(90deg, #4fb7c9, #7fe0ea); }
.levels .ticks10 { position: absolute; inset: 0; display: grid; grid-template-columns: repeat(10, minmax(0, 1fr)); }
.levels .ticks10 span { border-right: 2px solid var(--bg); }
.levels .ticks10 span:last-child { border-right: 0; }
.levels .under { margin-top: 8px; font-size: 13px; color: var(--dim); }
.money { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; margin-top: 30px; }
.money div { padding: 20px; }
.money b { display: block; font: 800 24px/1.2 var(--display); }
.money span { display: block; margin-top: 6px; font-size: 14px; }
.money .usd { background: #121a0d; border: 1px solid rgba(127, 211, 78, 0.3); } .money .usd b { color: #9fe07a; } .money .usd span { color: #b3bfa4; }
.money .gold { background: #1d1a0b; border: 1px solid var(--line-3); } .money .gold b { color: var(--gold); } .money .gold span { color: #c9c09a; }
@media (max-width: 720px) { .road-sec { padding: 80px 0; } }
@media (max-width: 400px) { .money { grid-template-columns: 1fr; } }

/* ---- Home: fair play ---- */
.fair-sec { padding: 0 0 120px; }
.fair-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 16px; }
.fair-card { padding: 30px; background: var(--panel-2); border: 1px solid var(--line); }
.fair-card svg { width: 34px; height: 34px; display: block; }
.fair-card h3 { margin-top: 16px; font: 800 26px/1.15 var(--display); color: var(--text-hi); }
.fair-card p { margin-top: 8px; color: var(--muted); }
@media (max-width: 720px) { .fair-sec { padding-bottom: 80px; } .fair-grid { grid-template-columns: 1fr; } }

/* ---- Home: 03, day, night and weather ---- */
/* The night picture runs the width of the column, the front's clock laid over its right side (the
   picture grows to hold it); under them the five skies, then each region's odds. On a phone the clock
   goes under the picture. A faint night blue in the band. */
.sky-sec { padding: 120px 0; background: linear-gradient(180deg, var(--bg) 0%, #0b0d13 45%, var(--bg) 100%); }
.sky-stage { position: relative; margin-top: 56px; display: grid; grid-template-columns: minmax(0, 1fr); }
.sky-pic { grid-area: 1 / 1; align-self: stretch; position: relative; margin: 0; aspect-ratio: 3 / 1; max-width: 100%; overflow: hidden; background: #05060a; border: 1px solid var(--line-2); }
.sky-pic.brk::before { top: 0; left: 0; }
.sky-pic.brk::after { bottom: 0; right: 0; }
.sky-pic img { display: block; width: 100%; height: 100%; object-fit: cover; object-position: 70% 55%; }
.sky-pic .shade { position: absolute; inset: 0; background: linear-gradient(90deg, rgba(10, 12, 7, 0) 35%, rgba(10, 12, 7, 0.75) 100%); }
.sky-pic .tag { position: absolute; top: 18px; left: 18px; padding: 6px 12px; background: rgba(10, 12, 7, 0.8); border: 1px solid rgba(255, 207, 74, 0.4); font: 600 12px/1.4 var(--font); letter-spacing: 0.22em; text-transform: uppercase; color: var(--gold); }

.clock { grid-area: 1 / 1; align-self: center; justify-self: end; position: relative; z-index: 4; width: min(440px, 100%); margin: 32px; padding: 26px 28px 24px; background: linear-gradient(180deg, rgba(21, 25, 40, 0.97), rgba(11, 13, 21, 0.98)); border: 1px solid rgba(143, 195, 255, 0.28); }
.clock-top { display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.clock .label { font: 600 12px/1.4 var(--font); letter-spacing: 0.24em; text-transform: uppercase; color: var(--orange); }
.clock .state { padding: 4px 10px; border: 1px solid var(--line-3); font: 600 12px/1.4 var(--font); letter-spacing: 0.16em; text-transform: uppercase; color: var(--gold); white-space: nowrap; }
.clock .state.night { color: var(--air); border-color: rgba(143, 195, 255, 0.45); }
.clock .now { margin-top: 14px; display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 12px; }
.clock .now b { font: 800 52px/1 var(--display); color: var(--text-hi); font-variant-numeric: tabular-nums; }
.clock .now span { font-size: 14px; letter-spacing: 0.06em; color: var(--muted); }
/* The day from midnight to midnight: night blue deepening toward midnight, dusk purple, the orange
   half hour of twilight, the day in gold. site.js paints today's; this one is an autumn day. */
.day-bar { position: relative; margin-top: 18px; height: 14px; border: 1px solid rgba(255, 255, 255, 0.08);
  background: linear-gradient(90deg, #10142b 0%, #10142b 20.8%, #2b2a4f 27%, #e07a2e 28.5%, #c9a54a 30.6%, #c9a54a 70.8%, #e07a2e 72.9%, #5b3f6e 74.4%, #10142b 100%); }
.day-bar .mark { position: absolute; top: -6px; bottom: -6px; left: 50%; width: 3px; margin-left: -1.5px; background: var(--text-hi); box-shadow: 0 0 0 2px rgba(10, 12, 7, 0.85), 0 0 12px rgba(255, 255, 255, 0.55); }
.hours { display: flex; justify-content: space-between; margin-top: 8px; font: 600 11px/1 var(--font); letter-spacing: 0.08em; color: var(--faint); }
.sun { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; margin: 20px 0 0; }
.sun div { min-width: 0; }
.sun dt { font: 600 11px/1.4 var(--font); letter-spacing: 0.16em; text-transform: uppercase; color: var(--dim); }
.sun dd { margin: 4px 0 0; font: 800 22px/1.1 var(--display); color: var(--gold); font-variant-numeric: tabular-nums; }
.clock .fine { margin-top: 18px; font-size: 13px; line-height: 1.55; color: var(--muted); }

.wx-grid { margin: 48px 0 0; padding: 0; list-style: none; display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 14px; }
.wx { display: flex; flex-direction: column; gap: 10px; min-width: 0; padding: 24px 22px 26px; background: linear-gradient(180deg, #171c10, #10140a); border: 1px solid var(--line); }
.wx svg { width: 36px; height: 36px; display: block; }
.wx .kind { margin-top: 6px; font: 600 11px/1.3 var(--font); letter-spacing: 0.2em; text-transform: uppercase; color: var(--orange); }
.wx h3 { font: 800 24px/1.1 var(--display); color: var(--text-hi); }
.fx { display: grid; gap: 8px; margin: 4px 0 0; padding: 0; list-style: none; }
.fx li { display: flex; align-items: baseline; gap: 10px; font: 600 13px/1.35 var(--font); color: var(--soft); }
.fx b { flex: none; font: 800 21px/1 var(--display); color: var(--gold); font-variant-numeric: tabular-nums; }
.wx > p:last-child { font-size: 14px; line-height: 1.5; color: var(--muted); }
.wx.night { background: linear-gradient(180deg, #161b2f, #0d1020); border-color: rgba(143, 195, 255, 0.25); }
.wx.night .kind, .wx.night b { color: var(--air); }

.regions { margin-top: 16px; padding: 28px; background: var(--panel-2); border: 1px solid var(--line); }
.regions-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 12px 24px; }
.legend { display: flex; flex-wrap: wrap; gap: 8px 18px; margin: 0; padding: 0; list-style: none; font: 600 12px/1.4 var(--font); letter-spacing: 0.14em; text-transform: uppercase; color: var(--muted); }
.legend li { display: flex; align-items: center; gap: 8px; }
.legend li::before { content: ""; width: 10px; height: 10px; background: var(--c); }
.region-list { display: grid; gap: 18px; margin: 22px 0 0; padding: 0; list-style: none; }
.region-list li { display: grid; grid-template-columns: 210px minmax(0, 1fr); gap: 6px 24px; align-items: center; }
.region-list .name { font: 800 20px/1.1 var(--display); color: var(--text-hi); }
.region-list .why { grid-column: 2; font-size: 14px; color: var(--muted); }
.odds { display: flex; gap: 2px; height: 28px; min-width: 0; }
.odds span { flex: var(--p) 1 0; min-width: 0; display: flex; align-items: center; padding: 0 8px; overflow: hidden; white-space: nowrap; background: var(--c); color: #1c1105; font: 600 12px/1 var(--font); font-variant-numeric: tabular-nums; }
.wc { --c: #e3b84a; } .wr { --c: #4a78b8; } .wf { --c: #9a9682; } .ws { --c: #dfe7ee; }
.odds .wr { color: #eef4ff; }
.p10 { --p: 10; } .p12 { --p: 12; } .p13 { --p: 13; } .p15 { --p: 15; } .p18 { --p: 18; } .p25 { --p: 25; } .p30 { --p: 30; } .p50 { --p: 50; } .p55 { --p: 55; }

@media (max-width: 1180px) {
  .wx-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .wx.night { grid-column: span 2; }
}
@media (max-width: 900px) {
  .sky-pic { aspect-ratio: 16 / 9; }
  .sky-pic img { object-position: 50% 55%; }
  .clock { grid-area: 2 / 1; justify-self: stretch; width: auto; margin: -56px 14px 0; }
}
@media (max-width: 760px) {
  .wx-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 720px) {
  .sky-sec { padding: 80px 0; }
  .sky-stage { margin-top: 36px; }
  .clock { margin: -36px 0 0; padding: 22px 20px 20px; }
  .clock .now b { font-size: 44px; }
  .sun dd { font-size: 19px; }
  .wx-grid { margin-top: 32px; }
  .regions { padding: 22px 18px; }
  .region-list li { grid-template-columns: minmax(0, 1fr); }
  .region-list .why { grid-column: auto; }
}
@media (max-width: 480px) {
  .wx-grid { grid-template-columns: minmax(0, 1fr); }
  .wx.night { grid-column: auto; }
  .sun { gap: 8px; }
  .sun dt { letter-spacing: 0.1em; }
  .odds span { padding: 0 4px; font-size: 11px; }
}

/* ---- Home: 09, new on the front ---- */
.new-sec { padding: 120px 0; border-top: 1px solid rgba(255, 207, 74, 0.1); }
.new-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 16px; margin: 56px 0 0; padding: 0; list-style: none; }
.new-card { display: flex; flex-direction: column; align-items: flex-start; gap: 14px; min-width: 0; padding: 26px 24px 28px; background: var(--panel-2); border: 1px solid var(--line); }
.new-card h3 { font: 800 24px/1.1 var(--display); color: var(--text-hi); }
.new-card p { font-size: 15px; line-height: 1.55; color: var(--muted); }
.soon { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 20px; margin-top: 16px; padding: 18px 22px; border: 1px dashed rgba(240, 138, 43, 0.4); background: rgba(240, 138, 43, 0.04); }
.soon p { flex: 1 1 320px; min-width: 0; font-size: 15px; color: var(--soft-2); }
@media (max-width: 720px) { .new-sec { padding: 80px 0; } .new-grid { margin-top: 36px; } }

/* ---- The big download band (home) ---- */
.cta { position: relative; padding: 150px 0; overflow: hidden; }
.cta > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; filter: saturate(0.9) brightness(0.55); }
.cta .shade { position: absolute; inset: 0; background: radial-gradient(60% 80% at 50% 50%, rgba(10, 12, 7, 0.55), rgba(10, 12, 7, 0.96)); }
.cta .wrap { position: relative; text-align: center; }
.cta .crest { display: block; width: 80px; height: 80px; margin: 0 auto; filter: drop-shadow(0 12px 30px rgba(240, 138, 43, 0.35)); }
.cta h2 { margin-top: 22px; font-size: clamp(48px, 7vw, 96px); line-height: 0.95; color: var(--gold); text-shadow: 0 5px 0 #4a2f06, 0 20px 80px rgba(240, 137, 43, 0.4); }
.cta p { margin: 22px auto 0; max-width: 560px; font-size: 18px; color: #d8d2bd; }
.cta .btn-row { justify-content: center; }
.cta .meta { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px 28px; margin-top: 28px; font-size: 14px; color: var(--muted); letter-spacing: 0.06em; }
.cta .meta i { font-style: normal; color: #5c5a4b; }
@media (max-width: 720px) {
  .cta { padding: 96px 0; }
  .cta h2 { font-size: clamp(40px, 12vw, 48px); }
  .cta .meta { gap: 6px 14px; }
}

/* ---- The footer ---- */
.site-foot { border-top: 1px solid var(--line); background: var(--bg-3); padding: 56px 0 40px; padding-bottom: max(40px, env(safe-area-inset-bottom, 0px)); }
.foot-top { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 40px; }
.foot-brand { max-width: 320px; }
.foot-brand .brand img { width: 30px; height: 30px; }
.foot-brand .brand span { font-size: 20px; text-shadow: none; }
.foot-brand p { margin-top: 14px; font-size: 14px; color: var(--dim); }
.foot-links { display: grid; grid-template-columns: repeat(3, minmax(130px, auto)); gap: 10px 48px; font-size: 14px; }
.foot-links ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; align-content: start; }
.foot-links a { color: #cfc9b4; text-decoration: none; padding: 4px 0; display: inline-block; }
.foot-links a:hover { color: var(--gold); }
.foot-links i { font-style: normal; color: var(--faint); }
.foot-bottom { margin-top: 44px; padding-top: 22px; border-top: 1px solid rgba(255, 207, 74, 0.08); display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; font-size: 13px; color: var(--dim); }
.foot-bottom a { color: var(--dim); }
.foot-bottom a:hover { color: var(--gold); }
@media (max-width: 720px) {
  .foot-links { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px 24px; width: 100%; }
}

/* ---- The inner pages: a title band under the fixed header, then the content ---- */
.page { position: relative; padding-top: calc(var(--head-h) + 72px); padding-bottom: 8px; background: radial-gradient(80% 100% at 30% 0%, #1b2010 0%, var(--bg) 70%); border-bottom: 1px solid rgba(255, 207, 74, 0.08); }
.page .wrap { padding-bottom: 48px; }
.page h1 { margin-top: 14px; font: 800 clamp(40px, 6vw, 72px)/1 var(--display); color: var(--text-hi); }
.page .lede { max-width: 42em; margin-top: 20px; color: var(--soft); font-size: 18px; }
.page .meta { color: var(--dim); font-size: 13px; margin-top: 14px; letter-spacing: 0.04em; }
@media (max-width: 720px) { .page { padding-top: calc(var(--head-h) + 44px); } .page .wrap { padding-bottom: 32px; } .page .lede { font-size: 17px; } }
.content { padding: 48px 0 24px; }
.section { padding: 56px 0 8px; }
.section-title { display: flex; align-items: center; gap: 16px; margin: 0; font: 600 13px/1.4 var(--font); letter-spacing: 0.3em; text-transform: uppercase; color: var(--orange); }
.section-title::after { content: ""; flex: 1; height: 1px; background: linear-gradient(90deg, var(--line-3), transparent); }
.section-title.gap { margin-top: 56px; }
.more { margin-top: 24px; font-size: 15px; color: var(--muted); }
.center { text-align: center; }
.mt { margin-top: 24px; }

.prose { max-width: 72ch; min-width: 0; }
.prose h2 { font: 800 28px/1.1 var(--display); color: var(--gold); text-shadow: 0 2px 0 var(--gold-drop); margin-top: 52px; padding-bottom: 10px; border-bottom: 1px solid var(--line); }
.prose h2:first-child { margin-top: 0; }
.prose h3 { font: 800 21px/1.2 var(--display); color: var(--text-hi); margin-top: 28px; }
.prose p, .prose ul, .prose ol { margin-top: 14px; color: var(--soft); }
.prose ul, .prose ol { padding-left: 22px; }
.prose li { margin-top: 7px; }
.prose li::marker { color: var(--orange); }
.prose strong { color: var(--text); }
.prose em { color: var(--text); }
.prose .btn-p { margin-top: 28px; }
.table-wrap { overflow-x: auto; margin-top: 16px; max-width: 100%; border: 1px solid var(--line); }
table { border-collapse: collapse; width: 100%; font-size: 15px; }
th, td { text-align: left; padding: 11px 14px; border-bottom: 1px solid var(--line); vertical-align: top; color: var(--soft); }
tr:last-child td { border-bottom: 0; }
th { background: var(--bg-2); color: var(--orange); font: 600 12px/1.3 var(--font); letter-spacing: 0.16em; text-transform: uppercase; white-space: nowrap; }
td:first-child { color: var(--text); }

/* The draft notice on the legal pages, and the parts still to fill in. */
.draft { display: inline-flex; align-items: center; gap: 10px; margin-top: 18px; padding: 7px 14px; border: 1px dashed var(--line-3); color: var(--muted); font-size: 13px; letter-spacing: 0.04em; }
.draft::before { content: ""; width: 8px; height: 8px; flex: none; background: var(--orange); transform: rotate(45deg); }
.todo { color: var(--gold); background: rgba(255, 207, 74, 0.12); padding: 0 5px; }

/* A panel with content on it. */
.plate { padding: 28px; background: linear-gradient(180deg, #1a1f10, #10140b); border: 1px solid var(--line-2); min-width: 0; }
.plate h2, .plate h3 { font: 800 24px/1.15 var(--display); color: var(--text-hi); }
.plate p { color: var(--soft); margin-top: 10px; }
.plate ul { margin: 10px 0 0; padding-left: 20px; color: var(--soft); }
.plate li { margin-top: 6px; }
.plate li::marker { color: var(--orange); }
.plate strong { color: var(--text); }
.grid-2 { display: grid; grid-template-columns: 1fr; gap: 16px; margin-top: 16px; }
@media (min-width: 820px) { .grid-2 { grid-template-columns: 1fr 1fr; } }
@media (max-width: 720px) { .plate { padding: 22px; } }

/* The download panel: the one button with the facts around it. */
.dl { text-align: center; padding: 44px 28px 36px; }
.dl .btn-p { margin-top: 22px; }
.dl .note { margin-top: 18px; color: var(--muted); font-size: 14px; letter-spacing: 0.04em; }
.dl .note b { color: var(--text); font-weight: 600; }
.dl .alt { margin: 12px auto 0; max-width: 46em; font-size: 14px; color: var(--dim); }
.dl .alt strong { color: var(--soft); }
.facts { display: grid; grid-template-columns: max-content 1fr; gap: 10px 20px; margin: 16px 0 0; font-size: 15px; }
.facts dt { color: var(--orange); font: 600 12px/1.8 var(--font); letter-spacing: 0.16em; text-transform: uppercase; }
.facts dd { margin: 0; color: var(--soft); min-width: 0; }
@media (max-width: 480px) {
  .facts { grid-template-columns: 1fr; gap: 0; } .facts dd { margin-bottom: 10px; }
  .dl { padding: 32px 18px 28px; }
  .dl .btn-p { width: 100%; padding: 0 18px; font-size: 17px; }
}

/* A chip: a version, a roadmap state. */
.chip { display: inline-flex; align-items: center; gap: 8px; padding: 5px 12px 5px 10px; border: 1px solid var(--line-3); background: rgba(255, 207, 74, 0.08); color: var(--gold); font: 600 12px/1.4 var(--font); letter-spacing: 0.14em; text-transform: uppercase; white-space: nowrap; }
.chip::before { content: ""; width: 7px; height: 7px; flex: none; background: currentColor; transform: rotate(45deg); }
.chip.done { color: #9fe07a; border-color: rgba(127, 211, 78, 0.4); background: rgba(127, 211, 78, 0.08); }
.chip.next { color: var(--orange); border-color: rgba(240, 137, 43, 0.4); background: rgba(240, 137, 43, 0.08); }
.chip.later { color: var(--muted); border-color: var(--line); background: transparent; }

/* The roadmap: a panel per stage, its state on the left. */
.road { display: grid; gap: 14px; }
.road .plate { display: grid; grid-template-columns: 1fr; gap: 10px 28px; align-items: start; }
@media (min-width: 760px) { .road .plate { grid-template-columns: 160px 1fr; } }
.road .when { color: var(--dim); font-size: 13px; margin-top: 8px; }

/* Numbered steps (the account deletion). */
.steps { counter-reset: step; list-style: none; margin: 22px 0 0; padding: 0; display: grid; gap: 12px; }
.prose .steps { padding-left: 0; }
.steps li { position: relative; margin: 0; padding: 20px 20px 20px 76px; background: linear-gradient(180deg, #1a1f10, #10140b); border: 1px solid var(--line-2); color: var(--soft); min-width: 0; }
.steps li::before { counter-increment: step; content: counter(step); position: absolute; left: 22px; top: 22px; width: 34px; height: 34px; border: 1.5px solid var(--gold); color: var(--gold); font: 800 16px/31px var(--display); text-align: center; transform: rotate(45deg); }
.steps li::marker { content: ""; }
.steps li strong { display: block; color: var(--gold); font: 800 19px/1.3 var(--display); margin-bottom: 4px; }

/* An address shown as text, with a button that copies it. */
.email { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 14px; margin-top: 16px; }
.email a { font: 600 19px/1.3 var(--font); color: var(--gold); overflow-wrap: anywhere; }
.copy-btn { font: 600 12px/1 var(--font); letter-spacing: 0.14em; text-transform: uppercase; color: var(--text); background: rgba(20, 24, 14, 0.55); border: 1px solid rgba(255, 207, 74, 0.45); padding: 9px 14px; cursor: pointer; }
.copy-btn:hover { color: var(--gold); border-color: var(--gold); }

/* Questions and their answers. */
.faq { display: grid; gap: 10px; margin-top: 22px; max-width: 80ch; }
.faq details { border: 1px solid var(--line); background: var(--panel); padding: 0 20px; min-width: 0; }
.faq details[open] { border-color: var(--line-2); }
.faq summary { cursor: pointer; padding: 16px 0; font: 800 18px/1.3 var(--display); color: var(--text-hi); list-style: none; display: flex; justify-content: space-between; gap: 12px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; color: var(--orange); font-weight: 800; flex: none; }
.faq details[open] summary::after { content: "−"; }
.faq details p, .faq details ul { color: var(--soft); margin: 0 0 16px; font-size: 15px; }
.faq details ul { padding-left: 20px; }
.faq details li { margin-top: 4px; }

/* The press kit: the screenshots and the logo panels. */
.shots { display: grid; grid-template-columns: 1fr; gap: 14px; margin-top: 20px; }
@media (min-width: 560px) { .shots { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 900px) { .shots { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.press-shot { position: relative; display: block; aspect-ratio: 16 / 9; max-width: 100%; overflow: hidden; background: #000; border: 1px solid var(--line-2); }
.press-shot img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.press-shot:hover { border-color: var(--gold); }
.slot { position: absolute; inset: 10px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 8px; border: 2px dashed var(--line-3); color: var(--dim); font: 600 11px/1.3 var(--font); letter-spacing: 0.18em; text-transform: uppercase; text-align: center; padding: 8px; }
.slot small { font-weight: 400; letter-spacing: 0.06em; text-transform: none; font-size: 12px; }
.logos { display: grid; grid-template-columns: 1fr; gap: 14px; margin-top: 20px; }
@media (min-width: 560px) { .logos { grid-template-columns: 1fr 1fr; } }
.logo-plate { padding: 32px 20px; border: 1px solid var(--line); display: flex; flex-direction: column; align-items: center; gap: 14px; text-align: center; min-width: 0; }
.logo-plate.dark { background: var(--bg-3); }
.logo-plate.light { background: #f3e7c4; }
.logo-plate small { font-size: 12px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--dim); }
.logo-plate.light small { color: #6b6a52; }
.logo-plate.light a { color: #6b3a0c; }
.logo-plate a { font-size: 14px; }
.wordmark { display: inline-flex; align-items: center; gap: 12px; font: 800 30px/1 var(--display); color: var(--gold); text-shadow: 0 2px 0 #4a2f06; }
.wordmark img { width: 44px; height: 44px; flex: none; display: block; }
/* The game's icon (TS struck by lightning, on orange) where the site shows it on its own: the download panel, the press kit. */
.app-icon { display: block; filter: drop-shadow(0 10px 24px rgba(240, 138, 43, 0.25)); }
.dl .app-icon { width: 88px; height: 88px; margin: 0 auto 20px; }
.logo-plate.light .wordmark { color: #2c3418; text-shadow: none; }
@media (max-width: 400px) { .wordmark { font-size: 24px; } }

/* The press kit's gallery: a capture opened over the page, with the previous and next ones and a
   download button (site.js builds it; without JavaScript a capture opens on its own). */
html.lb-open { overflow: hidden; }
.lightbox { position: fixed; inset: 0; width: 100%; height: 100%; max-width: none; max-height: none; margin: 0; padding: 0; border: 0; background: transparent; color: var(--text); }
.lightbox::backdrop { background: rgba(5, 6, 4, 0.94); }
.lightbox[open] { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 14px; padding: max(64px, env(safe-area-inset-top, 0px)) var(--gutter-r) max(24px, env(safe-area-inset-bottom, 0px)) var(--gutter-l); }
.lb-stage { position: relative; width: min(1400px, 100%); }
.lb-stage img { display: block; width: 100%; height: auto; max-height: calc(100vh - 190px); object-fit: contain; background: #000; border: 1px solid var(--line-2); }
.lb-bar { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px 20px; width: min(1400px, 100%); }
.lb-cap { flex: 1 1 260px; min-width: 0; margin: 0; color: var(--soft); font-size: 14px; }
.lb-count { font: 600 12px/1 var(--font); letter-spacing: 0.2em; color: var(--muted); }
.lb-nav, .lb-close { display: inline-flex; align-items: center; justify-content: center; width: 48px; height: 48px; padding: 0; cursor: pointer; color: var(--gold); background: rgba(10, 12, 7, 0.78); border: 1px solid var(--line-3); }
.lb-nav:hover, .lb-close:hover { border-color: var(--gold); background: rgba(40, 36, 14, 0.85); }
.lb-nav svg, .lb-close svg { width: 20px; height: 20px; }
.lb-nav { position: absolute; top: 50%; transform: translateY(-50%); }
.lb-nav.prev { left: 10px; } .lb-nav.next { right: 10px; }
.lb-close { position: fixed; top: max(12px, env(safe-area-inset-top, 0px)); right: max(12px, env(safe-area-inset-right, 0px)); }
@media (max-width: 720px) {
  .lb-nav { width: 40px; height: 40px; }
  .lb-nav.prev { left: 6px; } .lb-nav.next { right: 6px; }
  .lb-bar .btn-p { flex: 1 1 100%; }
}

/* The store badges, hidden until each exists (site.js shows them). */
.badges { display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; margin-top: 18px; }
.badge { display: inline-flex; align-items: center; gap: 8px; padding: 12px 18px; border: 1px solid var(--line-3); color: var(--text); font: 600 14px/1.2 var(--font); background: var(--bg-3); }
.badge:hover { text-decoration: none; border-color: var(--gold); color: var(--gold); }

[hidden] { display: none !important; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .pin::before { animation: none; }
  .shot, .card, .btn-p, .trp, .pin, .site-head { transition: none; }
  .shotbox:hover .shot, .card:hover, .btn-p:hover, .trp:hover { transform: none; }
}
