/* kingdomsofdominion.com. The page is the game's field: a pine-shadow ground under the game's own renders, the
   player's team blue for action, and Alegreya for the words (Cinzel only sets the game's name). */

@font-face { font-family: "Alegreya"; src: url("/fonts/alegreya-latin-wght-normal.woff2") format("woff2");
  font-weight: 400 900; font-style: normal; font-display: swap; }
@font-face { font-family: "Alegreya"; src: url("/fonts/alegreya-latin-wght-italic.woff2") format("woff2");
  font-weight: 400 900; font-style: italic; font-display: swap; }
@font-face { font-family: "Alegreya Sans"; src: url("/fonts/alegreya-sans-latin-400-normal.woff2") format("woff2");
  font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: "Alegreya Sans"; src: url("/fonts/alegreya-sans-latin-500-normal.woff2") format("woff2");
  font-weight: 500; font-style: normal; font-display: swap; }
@font-face { font-family: "Alegreya Sans"; src: url("/fonts/alegreya-sans-latin-700-normal.woff2") format("woff2");
  font-weight: 700; font-style: normal; font-display: swap; }
@font-face { font-family: "Alegreya Sans"; src: url("/fonts/alegreya-sans-latin-800-normal.woff2") format("woff2");
  font-weight: 800; font-style: normal; font-display: swap; }
@font-face { font-family: "Cinzel"; src: url("/fonts/cinzel-latin-wght-normal.woff2") format("woff2");
  font-weight: 400 900; font-style: normal; font-display: swap; }

:root {
  color-scheme: dark;
  --field: #16201b;          /* pine shadow: the ground of the page */
  --field-2: #1d2a23;        /* a band of the same ground in light */
  --field-3: #26352d;
  --lime: #eee8da;           /* limewash: text */
  --lichen: #a9b5a9;         /* secondary text */
  --hair: rgba(238, 232, 218, .14);
  --blue: #296bdb;           /* Palette.Team blue, the player's colour */
  --blue-hi: #8db1f2;        /* the same blue lifted for text on the ground */
  --orange: #ed7d1a;         /* the rival's colour */
  --valeborn: #2f6fd8; --aurelian: #e8801e; --jade: #2e9e52; --sahir: #8a44b0;
  --display: "Alegreya", "Iowan Old Style", Georgia, serif;
  --text: "Alegreya", "Iowan Old Style", Georgia, serif;
  --ui: "Alegreya Sans", "Gill Sans", system-ui, sans-serif;
  --mark: "Cinzel", "Trajan Pro", Georgia, serif;
  --ease-out: cubic-bezier(.23, 1, .32, 1);
  --ease-in-out: cubic-bezier(.77, 0, .175, 1);
  --header-h: 68px;
  --gutter: 16px;
}
@media (min-width: 720px) { :root { --gutter: 32px; } }

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; background: var(--field); overflow-x: clip;
  scrollbar-color: var(--field-3) var(--field); }
body { margin: 0; background: var(--field); color: var(--lime); font: 400 1.0625rem/1.62 var(--text);
  -webkit-font-smoothing: antialiased; overflow-x: clip; }
@media (min-width: 720px) { body { font-size: 1.125rem; } }
img, video { display: block; max-width: 100%; }
a { color: var(--blue-hi); text-decoration-thickness: 1px; text-underline-offset: .2em; }
a:hover { color: var(--lime); }
::selection { background: var(--blue); color: #fff; }
:focus-visible { outline: 2px solid var(--blue-hi); outline-offset: 3px; border-radius: 3px; }
h1, h2, h3 { font-family: var(--display); font-weight: 800; line-height: 1.08; letter-spacing: -.015em; margin: 0 0 .5em;
  text-wrap: balance; }
h2 { font-size: clamp(2rem, 4.2vw, 3.5rem); }
h3 { font-size: 1.45rem; line-height: 1.2; }
p { margin: 0 0 1em; }
.lead { font-size: clamp(1.15rem, 1.8vw, 1.4rem); line-height: 1.5; color: var(--lime); max-width: 36rem; }
.note { font: 400 .95rem/1.5 var(--ui); color: var(--lichen); }
.center { text-align: center; }
.wrap { width: 100%; max-width: 1240px; margin: 0 auto; padding-inline: var(--gutter); }
.skip { position: absolute; left: 12px; top: -60px; z-index: 100; background: var(--lime); color: var(--field);
  padding: 10px 14px; font: 700 .95rem var(--ui); border-radius: 4px; }
.skip:focus { top: 12px; }

/* ---------------------------------------------------------------- controls */
.btn { display: inline-flex; align-items: center; gap: .5em; min-height: 48px; padding: 0 22px; border-radius: 6px;
  background: var(--blue); color: #fff; font: 700 1rem/1 var(--ui); text-decoration: none; border: 0; cursor: pointer;
  transition: transform 160ms var(--ease-out), background-color 160ms ease; white-space: nowrap; }
.btn:hover { background: #3b7be6; color: #fff; }
.btn:active { transform: scale(.97); }
.btn-sm { min-height: 38px; padding: 0 16px; font-size: .95rem; }
.text-link { font: 700 1rem/1.3 var(--ui); color: var(--lime); text-decoration: underline;
  text-decoration-color: var(--blue-hi); text-decoration-thickness: 2px; text-underline-offset: .3em; }
.text-link:hover { color: var(--blue-hi); }
.icon-btn { display: grid; place-items: center; width: 48px; height: 48px; border-radius: 50%; border: 1px solid var(--hair);
  background: rgba(22, 32, 27, .7); color: var(--lime); cursor: pointer; transition: transform 160ms var(--ease-out); }
.icon-btn:active { transform: scale(.94); }
.icon-btn svg { width: 22px; height: 22px; }

.stores { display: flex; flex-wrap: wrap; gap: 12px; }
.stores.center { justify-content: center; }
.store { display: inline-flex; align-items: center; gap: 10px; min-height: 52px; padding: 7px 18px 7px 14px;
  border-radius: 9px; background: #050706; color: #fff; border: 1px solid rgba(255, 255, 255, .32);
  text-decoration: none; transition: transform 160ms var(--ease-out); }
.store svg { width: 26px; height: 26px; flex: none; }
.store span { display: grid; line-height: 1.1; text-align: left; }
.store small { font: 500 .72rem/1.2 var(--ui); color: rgba(255, 255, 255, .78); }
.store strong { font: 700 1.15rem/1.1 var(--ui); letter-spacing: -.01em; }
a.store:active { transform: scale(.97); }
.store[aria-disabled] { cursor: default; }
.social { display: flex; flex-wrap: wrap; gap: 18px; margin: 18px 0 0; font: 500 .95rem var(--ui); }
.social a { display: inline-flex; align-items: center; gap: 8px; color: var(--lime); text-decoration: none; }
.social a:hover { color: var(--blue-hi); }
.social svg { width: 18px; height: 18px; }

/* ---------------------------------------------------------------- header */
.site-header { position: fixed; inset: 0 0 auto 0; z-index: 50; height: var(--header-h);
  transition: background-color 240ms ease, box-shadow 240ms ease; }
.site-header .wrap { height: 100%; display: flex; align-items: center; gap: 20px; max-width: 1400px; }
.plain .site-header, .site-header.is-solid, .menu-open .site-header { background: rgba(22, 32, 27, .96);
  box-shadow: 0 1px 0 var(--hair); }
.over-art .site-header:not(.is-solid) { background: linear-gradient(to bottom, rgba(10, 15, 12, .55), rgba(10, 15, 12, 0)); }
.brand { display: flex; align-items: center; gap: 10px; color: var(--lime); text-decoration: none; margin-right: auto; }
.brand img { width: 40px; height: 40px; }
.brand span { font: 700 1.05rem/1 var(--mark); letter-spacing: .04em; }
.nav { display: flex; align-items: center; gap: 4px; }
.nav a:not(.btn) { color: var(--lime); text-decoration: none; font: 500 1rem/1 var(--ui); padding: 10px 12px;
  border-radius: 4px; }
.nav a:not(.btn):hover { color: var(--blue-hi); }
.nav a[aria-current] { text-decoration: underline; text-decoration-color: var(--blue-hi); text-decoration-thickness: 2px;
  text-underline-offset: .45em; }
.nav .btn { margin-left: 10px; }
.menu-btn { display: none; width: 46px; height: 46px; border: 0; background: none; color: var(--lime); cursor: pointer;
  position: relative; }
.menu-btn span, .menu-btn span::before, .menu-btn span::after { position: absolute; left: 12px; width: 22px; height: 2px;
  background: currentColor; transition: transform 200ms var(--ease-out), opacity 120ms; content: ""; }
.menu-btn span { top: 22px; }
.menu-btn span::before { left: 0; top: -7px; }
.menu-btn span::after { left: 0; top: 7px; }
.menu-open .menu-btn span { background: transparent; }
.menu-open .menu-btn span::before { transform: translateY(7px) rotate(45deg); }
.menu-open .menu-btn span::after { transform: translateY(-7px) rotate(-45deg); }
@media (max-width: 1000px) {
  .menu-btn { display: block; }
  .nav { position: fixed; inset: var(--header-h) 0 auto 0; flex-direction: column; align-items: stretch; gap: 0;
    padding: 8px var(--gutter) 20px; background: rgba(22, 32, 27, .98); box-shadow: 0 1px 0 var(--hair);
    max-height: calc(100svh - var(--header-h)); overflow-y: auto; visibility: hidden; opacity: 0;
    transform: translateY(-8px); transition: opacity 180ms var(--ease-out), transform 180ms var(--ease-out), visibility 0s 180ms; }
  .menu-open .nav { visibility: visible; opacity: 1; transform: none; transition-delay: 0s; }
  .nav a:not(.btn) { padding: 14px 4px; font-size: 1.15rem; border-bottom: 1px solid var(--hair); border-radius: 0; }
  .nav .btn { margin: 16px 0 0; justify-content: center; }
}

/* ---------------------------------------------------------------- the film (home page hero) */
.film { position: relative; min-height: 100svh; display: flex; flex-direction: column; justify-content: flex-end;
  overflow: hidden; isolation: isolate; }
.film-media { position: absolute; inset: 0; z-index: -2; background: var(--field-2); }
.film-media img, .film-video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.film-video { opacity: 0; transition: opacity 900ms var(--ease-out); }
.film.is-playing .film-video { opacity: 1; }
.film-shade { position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background: linear-gradient(to top, rgba(22, 32, 27, .94) 0%, rgba(22, 32, 27, .62) 30%, rgba(22, 32, 27, 0) 58%); }
.film-copy { padding-top: calc(var(--header-h) + 40px); padding-bottom: 88px; }
.film h1 { font: 700 clamp(2.6rem, 7.2vw, 6rem)/.94 var(--mark); letter-spacing: .005em; max-width: 11ch; margin: 0 0 .32em;
  text-shadow: 0 2px 24px rgba(0, 0, 0, .35); }
.film .lead { max-width: 31rem; margin-bottom: 28px; }
.film-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 18px 26px; }
.film-meta { position: absolute; right: var(--gutter); bottom: 22px; left: var(--gutter); display: flex; justify-content: flex-end;
  align-items: center; gap: 16px; font: 400 .85rem/1.3 var(--ui); color: var(--lichen); }
.film-meta p { margin: 0; text-align: right; }
.film-toggle { display: inline-flex; align-items: center; gap: 8px; min-height: 36px; padding: 0 12px; border-radius: 18px;
  border: 1px solid var(--hair); background: rgba(22, 32, 27, .55); color: var(--lime); font: 500 .85rem var(--ui);
  cursor: pointer; transition: transform 160ms var(--ease-out); }
.film-toggle[hidden] { display: none; }
.film-toggle:active { transform: scale(.96); }
.film-toggle svg { width: 14px; height: 14px; }
.film-toggle svg + svg, .film-toggle[aria-pressed="true"] svg:first-child { display: none; }
.film-toggle[aria-pressed="true"] svg + svg { display: block; }
.film-copy > * { animation: arrive 900ms var(--ease-out) both; }
.film-copy > :nth-child(2) { animation-delay: 90ms; }
.film-copy > :nth-child(3) { animation-delay: 180ms; }
@keyframes arrive { from { opacity: 0; transform: translateY(14px); filter: blur(6px); } }
@media (max-width: 720px) {
  .film-media img, .film-video { object-position: 58% 50%; }
  .film-shade { background: linear-gradient(to top, rgba(22, 32, 27, .96) 0%, rgba(22, 32, 27, .7) 42%, rgba(22, 32, 27, 0) 70%); }
  .film-copy { padding-bottom: 92px; }
  .film-meta { justify-content: space-between; }
  .film-meta p { text-align: left; }
}

/* ---------------------------------------------------------------- the ages */
.ages { position: relative; background: var(--field); }
.ages-head { padding-top: clamp(72px, 10vw, 128px); padding-bottom: 32px; }
.ages-head p { color: var(--lichen); font-size: 1.15rem; max-width: 34rem; }
.ages-list { list-style: none; margin: 0; padding: 0 0 clamp(64px, 8vw, 112px); display: grid; gap: clamp(40px, 6vw, 80px); }
.age { display: grid; grid-template-columns: minmax(0, 1.7fr) minmax(0, 1fr); gap: 28px 40px; align-items: end;
  width: 100%; max-width: 1240px; margin: 0 auto; padding-inline: var(--gutter); }
.age-art { margin: 0; }
.age-art img { width: 100%; height: auto; border-radius: 4px; }
.age-copy h3 { font-size: clamp(1.8rem, 3vw, 2.6rem); margin-bottom: .2em; }
.age-cost { font: 700 .95rem/1.4 var(--ui); color: var(--blue-hi); }
.age-unlock { font: 400 1rem/1.5 var(--ui); color: var(--lichen); }
.age-between, .ages-rail { display: none; }
@media (max-width: 900px) { .age { grid-template-columns: 1fr; } }

.ages.is-scrub { height: 560svh; }
.ages.is-scrub .ages-pin { position: sticky; top: 0; height: 100svh; overflow: hidden; isolation: isolate; }
.ages.is-scrub .ages-pin::after { content: ""; position: absolute; inset: 0; z-index: 10; pointer-events: none;
  background: linear-gradient(to top, rgba(22, 32, 27, .92) 0%, rgba(22, 32, 27, .5) 26%, rgba(22, 32, 27, 0) 46%),
    linear-gradient(to bottom, rgba(22, 32, 27, .8) 0%, rgba(22, 32, 27, 0) 26%); }
.ages.is-scrub .ages-head { position: absolute; z-index: 20; top: 0; left: 0; right: 0; padding-top: calc(var(--header-h) + 18px); }
.ages.is-scrub .ages-head h2 { font-size: clamp(1.7rem, 3.2vw, 2.8rem); margin-bottom: .15em; }
.ages.is-scrub .ages-head p { font-size: 1rem; margin: 0; }
.ages.is-scrub .ages-list { position: absolute; inset: 0; display: block; padding: 0; }
.ages.is-scrub .age, .ages.is-scrub .age-between { position: absolute; inset: 0; display: block; max-width: none; padding: 0; }
.ages.is-scrub .age-art { position: absolute; inset: 0; opacity: 0; transform-origin: 50% 55%; }
.ages.is-scrub .age:first-child .age-art { opacity: 1; }
.ages.is-scrub .age-art img { width: 100%; height: 100%; object-fit: cover; border-radius: 0; }
.ages.is-scrub .age-copy { position: absolute; z-index: 20; left: max(var(--gutter), calc((100vw - 1240px) / 2 + var(--gutter)));
  bottom: 118px; width: min(30rem, calc(100vw - 2 * var(--gutter))); opacity: 0; transform: translateY(10px); filter: blur(4px);
  transition: opacity 420ms var(--ease-out), transform 420ms var(--ease-out), filter 420ms var(--ease-out);
  pointer-events: none; }
.ages.is-scrub .age.is-current .age-copy { opacity: 1; transform: none; filter: none; }
.ages.is-scrub .age-copy p { margin-bottom: .5em; }
.ages.is-scrub .ages-rail { position: absolute; z-index: 20; left: 0; right: 0; bottom: 40px; display: flex;
  list-style: none; margin: 0 auto; padding: 0; width: calc(100% - 2 * var(--gutter)); max-width: calc(1240px - 2 * var(--gutter));
  border-top: 2px solid rgba(238, 232, 218, .22); }
.ages-rail li { flex: 1; padding-top: 12px; font: 700 .95rem/1.2 var(--ui); color: var(--lichen); transition: color 200ms ease; }
.ages-rail li.is-on { color: var(--lime); }
.ages-rail .ages-rail-fill { position: absolute; left: 0; right: 0; top: -2px; height: 2px; padding: 0; background: var(--blue-hi);
  transform-origin: 0 50%; transform: scaleX(0); }
@media (max-width: 720px) {
  .ages.is-scrub { height: 460svh; }
  .ages.is-scrub .age-copy { bottom: 92px; }
  .ages.is-scrub .age-copy h3 { font-size: 1.7rem; }
  .ages.is-scrub .age-unlock { display: none; }
  .ages-rail li { font-size: .78rem; }
  .ages.is-scrub .ages-rail { bottom: 28px; }
}

/* ---------------------------------------------------------------- on the phone */
.hands { padding: clamp(80px, 10vw, 140px) 0; background: var(--field-2); }
.hands-grid { display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); gap: 48px; align-items: center; }
.hands-copy > p:first-of-type { color: var(--lichen); }
.hands-tabs { list-style: none; margin: 28px 0 14px; padding: 0; display: flex; flex-wrap: wrap; gap: 4px 6px; }
.hands-tabs button { min-height: 44px; padding: 0 14px; border: 0; border-radius: 22px; background: transparent;
  color: var(--lichen); font: 700 1rem var(--ui); cursor: pointer; transition: background-color 160ms ease, color 160ms ease, transform 160ms var(--ease-out); }
.hands-tabs button:hover { color: var(--lime); }
.hands-tabs button:active { transform: scale(.96); }
.hands-tabs button[aria-pressed="true"] { background: var(--lime); color: var(--field); }
.hands-caption { font: 400 1rem/1.5 var(--ui); color: var(--lime); min-height: 3em; }
.phone { position: relative; padding: 14px 22px; border-radius: 38px; background: #0b0f0d;
  box-shadow: 0 40px 80px -30px rgba(0, 0, 0, .7), inset 0 0 0 1.5px #3a463f, inset 0 0 0 7px #121815; }
.phone::before { content: ""; position: absolute; left: 9px; top: 50%; width: 7px; height: 7px; margin-top: -3.5px;
  border-radius: 50%; background: #1f2925; }
.phone-screen { border-radius: 20px; overflow: hidden; aspect-ratio: 16 / 9; background: #000; }
.phone-screen img { width: 100%; height: 100%; object-fit: cover; transition: opacity 260ms var(--ease-out), filter 260ms var(--ease-out); }
.phone-screen.is-swapping img { opacity: .15; filter: blur(8px); }
@media (max-width: 900px) {
  .hands-grid { grid-template-columns: 1fr; }
  .phone { padding: 9px 14px; border-radius: 26px; }
  .phone-screen { border-radius: 13px; }
  .phone::before { left: 4px; width: 5px; height: 5px; }
}

/* ---------------------------------------------------------------- civilizations */
.c-valeborn { --c: var(--valeborn); } .c-aurelian { --c: var(--aurelian); } .c-jade { --c: var(--jade); } .c-sahir { --c: var(--sahir); }
.civs { padding: clamp(80px, 10vw, 140px) 0; }
.civs-head { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 16px 48px; align-items: end; margin-bottom: 36px; }
.civs-head p { color: var(--lichen); }
.civ-tabs { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; margin-bottom: 8px; }
.civ-tabs button { display: flex; align-items: center; gap: 12px; padding: 10px 14px; min-height: 64px; border: 0;
  border-radius: 6px; background: var(--field-2); color: var(--lichen); font: 700 1.1rem var(--ui); cursor: pointer;
  text-align: left; transition: background-color 200ms ease, color 200ms ease, transform 160ms var(--ease-out); }
.civ-tabs button img { width: 40px; height: 40px; }
.civ-tabs button:hover { color: var(--lime); }
.civ-tabs button:active { transform: scale(.98); }
.civ-tabs button[aria-selected="true"] { background: color-mix(in oklab, var(--c) 34%, var(--field)); color: #fff; }
.civ-panels { display: grid; gap: 8px; }
.civ { display: grid; grid-template-columns: minmax(0, .85fr) minmax(0, 1.15fr); border-radius: 6px; overflow: hidden;
  background: var(--field-2); }
.civ-field { display: grid; place-items: center; padding: 40px; background: color-mix(in oklab, var(--c) 34%, var(--field)); }
.civ-field .emblem { width: min(240px, 60%); height: auto; filter: drop-shadow(0 18px 30px rgba(0, 0, 0, .35)); }
.civ-copy { padding: clamp(24px, 4vw, 48px); }
.civ-copy h3 { font-size: clamp(2rem, 3.4vw, 2.8rem); margin-bottom: .15em; }
.civ-tag { font: 700 1rem var(--ui); color: var(--lichen); }
.civ-copy ul { margin: 0 0 1.2em; padding-left: 1.1em; }
.civ-copy li { margin-bottom: .35em; }
.civ-copy li::marker { color: var(--c); }
.civ-unit span { font: 700 .95rem var(--ui); color: var(--lichen); }
.civ-panels .civ[hidden] { display: none; }
.civ.is-entering .civ-field { animation: wipe 560ms var(--ease-in-out) both; }
.civ.is-entering .civ-copy { animation: settle 420ms var(--ease-out) 120ms both; }
@keyframes wipe { from { clip-path: inset(0 100% 0 0); } to { clip-path: inset(0 0 0 0); } }
@keyframes settle { from { opacity: 0; transform: translateX(-10px); } }
@media (max-width: 900px) {
  .civs-head { grid-template-columns: 1fr; }
  .civ-tabs { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .civ { grid-template-columns: 1fr; }
  .civ-field { padding: 28px; }
  .civ-field .emblem { width: 150px; }
}

/* ---------------------------------------------------------------- war */
.war { position: relative; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); background: var(--field-2); }
.war-art { min-height: 100%; }
.war-art img { width: 100%; height: 100%; object-fit: cover; }
.war-grid { grid-column: 2; padding-top: clamp(64px, 8vw, 120px); padding-bottom: clamp(64px, 8vw, 120px);
  padding-left: clamp(24px, 4vw, 64px); max-width: 640px; margin: 0; }
.war-copy > p { color: var(--lichen); }
.counter-list { list-style: none; margin: 28px 0 0; padding: 0; }
.counter-list li { font: 700 clamp(1.2rem, 1.8vw, 1.5rem)/1.3 var(--display); padding: 16px 0; border-top: 1px solid var(--hair); }
@media (max-width: 900px) {
  .war { grid-template-columns: 1fr; }
  .war-art { aspect-ratio: 16 / 10; }
  .war-grid { grid-column: 1; padding-left: var(--gutter); }
}

/* ---------------------------------------------------------------- the campaign route */
.route-band { padding: clamp(80px, 10vw, 140px) 0; }
.route-head { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 16px 48px; align-items: end; margin-bottom: 44px; }
.route-head p { color: var(--lichen); }
.route-head .text-link { display: inline-block; margin-top: 10px; }
.route { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 40px 36px; }
.route li { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 16px; padding-top: 18px; border-top: 1px solid var(--hair); }
.route .n { font: 800 2.6rem/1 var(--display); color: var(--blue-hi); min-width: 1.2ch; }
.route h3 { font-size: 1.3rem; margin-bottom: .3em; }
.route p { font: 400 1rem/1.5 var(--ui); color: var(--lichen); margin: 0; }
@media (max-width: 900px) { .route-head { grid-template-columns: 1fr; } .route { grid-template-columns: 1fr; gap: 28px; } }

/* ---------------------------------------------------------------- online */
.online { padding: clamp(80px, 10vw, 140px) 0; background: var(--field-2); }
.online-grid { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); gap: 56px; align-items: center; }
.online-grid > div > p { color: var(--lichen); }
.screen { margin: 0; border-radius: 6px; overflow: hidden; box-shadow: 0 30px 60px -28px rgba(0, 0, 0, .7); }
.screen img { width: 100%; height: auto; }
.modes { display: grid; grid-template-columns: 1fr 1fr; gap: 0 28px; margin: 28px 0 0; }
.modes div { padding: 14px 0; border-top: 1px solid var(--hair); }
.modes dt { font: 700 1.05rem var(--ui); }
.modes dd { margin: 2px 0 0; font: 400 1rem/1.45 var(--ui); color: var(--lichen); }
@media (max-width: 900px) { .online-grid { grid-template-columns: 1fr; gap: 32px; } }
@media (max-width: 480px) { .modes { grid-template-columns: 1fr; } }

/* ---------------------------------------------------------------- the close */
.close { position: relative; isolation: isolate; overflow: hidden; padding: clamp(110px, 14vw, 200px) 0; text-align: center; }
.close-art { position: absolute; inset: 0; z-index: -2; }
.close-art img { width: 100%; height: 100%; object-fit: cover; }
.close::before { content: ""; position: absolute; inset: 0; z-index: -1; background: rgba(22, 32, 27, .78); }
.close-copy { max-width: 760px; }
.close-crest { width: 112px; height: 112px; margin: 0 auto 22px; }
.close p { color: var(--lime); max-width: 34rem; margin-inline: auto; margin-bottom: 30px; }
.close .social { justify-content: center; margin-top: 26px; }

/* ---------------------------------------------------------------- inner pages */
.page-head { position: relative; min-height: min(62svh, 620px); display: flex; align-items: flex-end; isolation: isolate; overflow: hidden; }
.page-head-art { position: absolute; inset: 0; z-index: -2; }
.page-head-art img { width: 100%; height: 100%; object-fit: cover; }
.page-head::after { content: ""; position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(to top, rgba(22, 32, 27, .97) 0%, rgba(22, 32, 27, .72) 38%, rgba(22, 32, 27, .1) 75%),
    linear-gradient(to bottom, rgba(10, 15, 12, .5), rgba(10, 15, 12, 0) 24%); }
.page-head-copy { padding-top: calc(var(--header-h) + 80px); padding-bottom: clamp(36px, 5vw, 64px); }
.page-head h1 { font-size: clamp(2.4rem, 5.6vw, 4.8rem); max-width: 16ch; }
.page-head .lead { margin-bottom: 0; }
.page-top { padding-top: calc(var(--header-h) + 56px); }
.section { padding: clamp(64px, 8vw, 112px) 0; }
.section-tight { padding: 40px 0; }
.band { background: var(--field-2); }
.section-head { max-width: 44rem; margin-bottom: 36px; }
.section-head p { color: var(--lichen); }
.split { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 56px; align-items: center; }
.split.top { align-items: start; }
.big-line { font: 700 clamp(1.4rem, 2.6vw, 2.1rem)/1.3 var(--display); max-width: 38rem; margin: 0 auto 28px; text-wrap: balance; }
.where { font: 700 .95rem var(--ui); color: var(--blue-hi); }
@media (max-width: 900px) { .split { grid-template-columns: 1fr; gap: 32px; } }

.civ-jump { display: flex; flex-wrap: wrap; gap: 8px 20px; margin-top: 22px; font: 700 1rem var(--ui); }
.civ-jump a { display: inline-flex; align-items: center; gap: 8px; color: var(--lime); text-decoration: none; }
.civ-jump a:hover { color: var(--blue-hi); }
.civ-jump img { width: 30px; height: 30px; }
.civ-page { display: grid; grid-template-columns: minmax(0, .55fr) minmax(0, 1.45fr); gap: 0; margin-bottom: 48px;
  border-radius: 6px; overflow: hidden; background: var(--field-2); scroll-margin-top: calc(var(--header-h) + 16px); }
.civ-page .civ-field { align-content: start; padding-top: 48px; }
.civ-page .civ-field .emblem { width: min(200px, 80%); }
.civ-body { padding: clamp(24px, 4vw, 48px); }
.civ-body h2 { margin-bottom: .1em; }
.civ-body h3 { font-size: 1.15rem; font-family: var(--ui); font-weight: 800; letter-spacing: 0; margin: 1.4em 0 .4em; }
.civ-bonuses { padding-left: 1.1em; margin: 0; }
.civ-bonuses li { margin-bottom: .4em; }
.civ-bonuses li::marker { color: var(--c); }
.civ-cols { display: grid; grid-template-columns: 1fr 1fr; gap: 0 36px; }
.civ-cols ul { padding-left: 1.1em; margin: 0; }
.civ-style { font-style: italic; font-size: 1.2rem; color: var(--lime); margin: 0; }
@media (max-width: 900px) { .civ-page { grid-template-columns: 1fr; } .civ-page .civ-field { padding: 28px; } .civ-cols { grid-template-columns: 1fr; } }

.trail { list-style: none; margin: 0 auto; padding: 0; max-width: 820px; }
.stop { position: relative; display: grid; grid-template-columns: 64px minmax(0, 1fr); gap: 20px; padding-bottom: 56px; }
.stop::before { content: ""; position: absolute; left: 31px; top: 64px; bottom: 8px; width: 2px; background: var(--hair); }
.stop:last-child::before { display: none; }
.stop .n { display: grid; place-items: center; width: 64px; height: 64px; border-radius: 50%;
  background: color-mix(in oklab, var(--c) 40%, var(--field)); font: 800 1.8rem/1 var(--display); }
.stop h2 { font-size: clamp(1.7rem, 3vw, 2.4rem); }
.stop .first { font-size: 1.2rem; font-style: italic; }

.gallery { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 36px 28px; }
.gallery figure { margin: 0; }
.gallery figcaption { margin-top: 12px; font: 400 1rem/1.5 var(--ui); color: var(--lichen); }
.gallery figcaption b { color: var(--lime); }
.shot { display: block; width: 100%; padding: 0; border: 0; background: none; cursor: zoom-in; border-radius: 4px; overflow: hidden; }
.shot img { width: 100%; height: auto; aspect-ratio: 16 / 9; object-fit: cover; transition: transform 500ms var(--ease-out); }
@media (hover: hover) and (pointer: fine) { .shot:hover img { transform: scale(1.025); } }
@media (max-width: 720px) { .gallery { grid-template-columns: 1fr; } }
.emblems { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; }
.emblems a { display: grid; justify-items: center; gap: 4px; padding: 32px 16px; border-radius: 6px; text-decoration: none;
  color: var(--lime); background: color-mix(in oklab, var(--c) 30%, var(--field)); text-align: center; }
.emblems img { width: 120px; height: 120px; margin-bottom: 12px; }
.emblems b { font: 800 1.3rem var(--display); }
.emblems span { font: 400 .95rem var(--ui); color: rgba(238, 232, 218, .8); }
@media (max-width: 720px) { .emblems { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

.figures { display: grid; grid-template-columns: 1.3fr 1fr 1fr; gap: 28px 44px; }
.figures > div { padding-top: 18px; border-top: 1px solid var(--hair); }
.fig { font: 800 clamp(2.6rem, 5vw, 4.2rem)/1 var(--display); margin: 0 0 .25em; font-variant-numeric: lining-nums tabular-nums; }
.figures p:not(.fig) { color: var(--lichen); font: 400 1rem/1.5 var(--ui); }
.bar { display: block; height: 6px; border-radius: 3px; background: var(--field-3); overflow: hidden; }
.bar.big { height: 8px; }
.bar i { display: block; height: 100%; width: var(--w); background: var(--blue-hi); border-radius: inherit; }
.bar i.full { background: #7cc58a; }
.dash-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 56px; }
.dash-grid h2 { font-size: clamp(1.6rem, 2.6vw, 2.2rem); }
.bars { list-style: none; margin: 18px 0 0; padding: 0; display: grid; gap: 14px; }
.bars li { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 6px 14px; font: 400 1rem/1.3 var(--ui); }
.bars .name i { font-style: normal; color: var(--lichen); margin-right: 4px; font-variant-numeric: tabular-nums; }
.bars .val { color: var(--lichen); font-variant-numeric: tabular-nums; }
.bars .bar { grid-column: 1 / -1; }
.roadmap { list-style: none; margin: 18px 0 20px; padding: 0; }
.roadmap li { padding: 14px 0 6px; border-top: 1px solid var(--hair); }
.roadmap h3 { font-size: 1.2rem; margin: 0 0 .2em; }
.roadmap .state { font: 700 .95rem var(--ui); color: var(--lichen); margin-bottom: .3em; }
.roadmap .done .state { color: #7cc58a; }
.roadmap .now .state { color: var(--blue-hi); }
.roadmap li p:last-child { font: 400 1rem/1.5 var(--ui); color: var(--lichen); }
.age-table, .facts { width: 100%; border-collapse: collapse; font: 400 1rem/1.4 var(--ui); margin: 10px 0 14px; }
.age-table th, .age-table td, .facts th, .facts td { text-align: left; padding: 10px 8px 10px 0; border-bottom: 1px solid var(--hair); vertical-align: top; }
.age-table th { color: var(--lichen); font-weight: 700; }
.age-table .num { text-align: right; font-variant-numeric: tabular-nums; }
.facts th { width: 38%; color: var(--lichen); font-weight: 700; padding-right: 16px; }
@media (max-width: 900px) { .figures, .dash-grid { grid-template-columns: 1fr; } }
@media (max-width: 520px) { .facts th, .facts td { display: block; width: auto; padding: 4px 0; border: 0; }
  .facts tr { display: block; padding: 10px 0; border-bottom: 1px solid var(--hair); } }

.support-grid { display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr); gap: 56px; align-items: start; }
.faq h2, .contact h2 { font-size: clamp(1.6rem, 2.6vw, 2.2rem); }
.contact h2 { font-size: 1.4rem; margin-top: 1.6em; }
.contact h2:first-child { margin-top: 0; }
.contact { padding: 28px; border-radius: 6px; background: var(--field-2); }
.faq details { border-top: 1px solid var(--hair); }
.faq details:last-child { border-bottom: 1px solid var(--hair); }
.faq summary { list-style: none; cursor: pointer; padding: 18px 40px 18px 0; position: relative; font: 700 1.15rem/1.35 var(--ui); }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: ""; position: absolute; right: 6px; top: 50%; width: 10px; height: 10px; margin-top: -7px;
  border-right: 2px solid var(--lichen); border-bottom: 2px solid var(--lichen); transform: rotate(45deg);
  transition: transform 200ms var(--ease-out); }
.faq details[open] summary::after { transform: translateY(4px) rotate(225deg); }
.faq details p { margin: 0 0 20px; color: var(--lichen); max-width: 40rem; }
@media (max-width: 900px) { .support-grid { grid-template-columns: 1fr; } }

.assets { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 28px 20px; }
.assets a { display: grid; gap: 4px; color: var(--lime); text-decoration: none; }
.assets .thumb { display: block; aspect-ratio: 16 / 10; border-radius: 4px; overflow: hidden; background: var(--field-3); margin-bottom: 8px; }
.assets .thumb img { width: 100%; height: 100%; object-fit: cover; }
.assets .thumb.contain img { object-fit: contain; padding: 14px; }
.assets b { font: 700 1.05rem var(--ui); }
.assets .size { font: 400 .95rem var(--ui); color: var(--lichen); }
.assets .get { display: inline-flex; align-items: center; gap: 6px; font: 700 .95rem var(--ui); color: var(--blue-hi); }
.assets .get svg { width: 16px; height: 16px; }
.assets a:hover .get { color: var(--lime); }

.prose { max-width: 46rem; margin: 0 auto; }
.prose h1 { font-size: clamp(2.2rem, 4.6vw, 3.6rem); }
.prose h2 { font-size: 1.6rem; margin-top: 2em; }
.prose ul { padding-left: 1.2em; }
.prose li { margin-bottom: .5em; }

.lost { position: relative; min-height: 100svh; display: flex; align-items: flex-end; isolation: isolate; overflow: hidden; }
.lost-art { position: absolute; inset: 0; z-index: -2; }
.lost-art img { width: 100%; height: 100%; object-fit: cover; filter: saturate(.7); }
.lost::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(to top, rgba(22, 32, 27, .96), rgba(22, 32, 27, .35) 70%); }
.lost-copy { padding-bottom: 96px; }
.lost h1 { font-size: clamp(2.4rem, 6vw, 4.6rem); max-width: 14ch; }

/* ---------------------------------------------------------------- lightbox */
.lightbox { width: 100vw; height: 100svh; max-width: none; max-height: none; margin: 0; padding: 0; border: 0;
  background: rgba(8, 12, 10, .96); color: var(--lime); }
.lightbox[open] { display: grid; place-items: center; animation: fade 200ms var(--ease-out); }
.lightbox::backdrop { background: transparent; }
.lightbox figure { margin: 0; padding: 64px 72px 24px; display: grid; justify-items: center; gap: 14px; max-width: 100%; max-height: 100%; }
.lightbox img { max-width: min(1600px, 100%); max-height: calc(100svh - 150px); width: auto; height: auto; border-radius: 4px;
  animation: grow 280ms var(--ease-out); }
.lightbox figcaption { font: 400 1rem/1.45 var(--ui); color: var(--lichen); max-width: 52rem; text-align: center; }
.lb-close { position: absolute; top: 14px; right: 14px; }
.lb-prev, .lb-next { position: absolute; top: 50%; margin-top: -24px; }
.lb-prev { left: 14px; } .lb-next { right: 14px; }
@keyframes fade { from { opacity: 0; } }
@keyframes grow { from { opacity: 0; transform: scale(.96); } }
@media (max-width: 720px) { .lightbox figure { padding: 64px 12px 80px; } .lb-prev, .lb-next { top: auto; bottom: 16px; margin: 0; } }

/* ---------------------------------------------------------------- footer */
.site-footer { background: #111915; padding: 64px 0 36px; font: 400 1rem/1.5 var(--ui); }
.foot-grid { display: grid; grid-template-columns: minmax(0, 1.6fr) repeat(3, minmax(0, 1fr)); gap: 36px; }
.foot-brand img { width: 64px; height: 64px; margin-bottom: 14px; }
.foot-brand p { color: var(--lichen); max-width: 28rem; margin: 0; }
.site-footer h2 { font: 800 1rem var(--ui); letter-spacing: 0; margin: 0 0 12px; color: var(--lime); }
.site-footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.site-footer nav a { color: var(--lichen); text-decoration: none; overflow-wrap: anywhere; }
.site-footer nav a:hover { color: var(--lime); }
.foot-base { margin-top: 48px; padding-top: 20px; border-top: 1px solid var(--hair); display: grid; gap: 4px;
  font-size: .9rem; color: var(--lichen); }
.foot-base p { margin: 0; }
@media (max-width: 900px) { .foot-grid { grid-template-columns: 1fr 1fr; } .foot-brand, .foot-grid nav:last-child { grid-column: 1 / -1; } }

/* ---------------------------------------------------------------- reduced motion */
@media (prefers-reduced-motion: reduce) {
  .film-copy > * { animation: fade 300ms ease both; }
  .civ.is-entering .civ-field, .civ.is-entering .civ-copy { animation: fade 200ms ease both; }
  .shot img, .btn, .store, .icon-btn { transition: none; }
  .lightbox img { animation: none; }
  .phone-screen.is-swapping img { filter: none; }
}
