/*
  Warlord Arenas: the section's one stylesheet, shared by the launch, privacy and support pages.
  The look is the game's own UI, Vigil: Ink, Bone and Mist, hairlines, one Ember accent, Marcellus SC for titles and
  Sofia Sans Semi Condensed for the rest. No frames, bevels or ornament.

  Every page opens on a dark "stage" (header and title) in both themes, as the game's screens do; the reading
  sections below it follow the system's light or dark setting.

  The CSP allows styles from this file only: no style attributes or <style> blocks in the pages.
  Assets are root-absolute under /warlordarenas/. Bump the ?v= query on every page when this file changes.
*/

@font-face {
  font-family: "Marcellus SC";
  src: url("/warlordarenas/assets/fonts/MarcellusSC-Regular.ttf") format("truetype");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Sofia Sans Semi Condensed";
  src: url("/warlordarenas/assets/fonts/SofiaSansSemiCondensed-Regular.ttf") format("truetype");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Sofia Sans Semi Condensed";
  src: url("/warlordarenas/assets/fonts/SofiaSansSemiCondensed-SemiBold.ttf") format("truetype");
  font-weight: 600;
  font-style: normal;
  font-display: swap;
}

:root {
  color-scheme: light dark;

  /* Vigil's tokens (Assets/Warlord/View/UI/Vigil.cs in the game) */
  --ink: #0d1117;
  --bone: #ede3cf;
  --mist: #9aa3b2;
  --ember: #f2763a;
  --stage-line: rgba(233, 225, 208, 0.22);
  --stage-line-2: rgba(233, 225, 208, 0.11);

  /* Light: parchment, ink, a darker ember for text contrast */
  --bg: #f4efe5;
  --band: #ece5d7;
  --surface: #fbf8f1;
  --text: #151a21;
  --text-2: #4d5462;
  --line: rgba(21, 26, 33, 0.18);
  --line-2: rgba(21, 26, 33, 0.09);
  --accent: #a8471b;
  --shot-edge: rgba(21, 26, 33, 0.24);

  --title: "Marcellus SC", "Iowan Old Style", Georgia, serif;
  --ui: "Sofia Sans Semi Condensed", "Avenir Next Condensed", "Arial Narrow", system-ui, sans-serif;
  --wrap: 1120px;
  --gutter: 20px;
  --stage-tail: 72px;
  --ease: cubic-bezier(0.2, 0.7, 0.2, 1);
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0d1117;
    --band: #111720;
    --surface: #141a23;
    --text: #ede3cf;
    --text-2: #9aa3b2;
    --line: rgba(233, 225, 208, 0.22);
    --line-2: rgba(233, 225, 208, 0.11);
    --accent: #f2763a;
    --shot-edge: rgba(233, 225, 208, 0.18);
  }
}

@media (min-width: 720px) {
  :root {
    --gutter: 32px;
    --stage-tail: 120px;
  }
}

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

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 400 18px/1.55 var(--ui);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

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

a {
  color: var(--accent);
  text-decoration-thickness: 1px;
  text-underline-offset: 0.22em;
}
a:hover {
  text-decoration-thickness: 2px;
}
:focus-visible {
  outline: 2px solid var(--ember);
  outline-offset: 3px;
  border-radius: 2px;
}

h1,
h2,
h3 {
  font-family: var(--title);
  font-weight: 400;
  line-height: 1.12;
  letter-spacing: 0.01em;
  text-wrap: balance;
}

p {
  text-wrap: pretty;
}

.wrap {
  width: min(100% - 2 * var(--gutter), var(--wrap));
  margin-inline: auto;
}

.skip-link {
  position: absolute;
  left: 12px;
  top: -64px;
  z-index: 10;
  padding: 10px 16px;
  background: var(--bone);
  color: var(--ink);
  font-weight: 600;
  text-decoration: none;
  border-radius: 2px;
  transition: top 180ms var(--ease);
}
.skip-link:focus {
  top: 12px;
}

.eyebrow {
  margin: 0 0 12px;
  color: var(--accent);
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

/* ---------- The stage: always dark ---------- */

.stage {
  position: relative;
  isolation: isolate;
  background: var(--ink);
  color: var(--bone);
}
.stage::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    radial-gradient(56% 46% at 50% 22%, rgba(242, 118, 58, 0.13), transparent 72%),
    radial-gradient(90% 70% at 50% 0%, rgba(154, 163, 178, 0.08), transparent 70%);
  pointer-events: none;
}
/* The header is plain Ink: the glow belongs to the title or hero below it. */
.site-header.stage::before {
  display: none;
}
.stage .eyebrow {
  color: var(--ember);
}
/* The launch page's stage ends partway down the hero shot, which then sits across into the page. */
.stage-launch {
  background: linear-gradient(to bottom, var(--ink) calc(100% - var(--stage-tail)), var(--bg) calc(100% - var(--stage-tail)));
}
.stage-launch::before {
  bottom: var(--stage-tail);
}

.site-header {
  border-bottom: 1px solid var(--stage-line-2);
}
.site-header .wrap {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 4px 24px;
  min-height: 64px;
  padding-block: 8px;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding-block: 8px;
  color: var(--bone);
  font-family: var(--title);
  font-size: 21px;
  line-height: 1;
  letter-spacing: 0.02em;
  text-decoration: none;
}
.brand img {
  width: 24px;
  height: 29px;
}
.site-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0 20px;
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}
.site-nav a {
  display: inline-block;
  padding-block: 12px;
  color: var(--mist);
  text-decoration: none;
  transition: color 160ms var(--ease);
}
.site-nav a:hover {
  color: var(--bone);
}
.site-nav a[aria-current="page"] {
  color: var(--bone);
  box-shadow: inset 0 -1px 0 var(--ember);
}

/* ---------- Launch hero ---------- */

.hero {
  padding: 32px 0 0;
  text-align: center;
}
.hero-emblem {
  width: 56px;
  margin: 0 auto 16px;
}
@media (min-width: 720px) {
  .hero {
    padding-top: 48px;
  }
  .hero-emblem {
    width: 80px;
    margin-bottom: 24px;
  }
}
.lockup {
  margin: 0;
  line-height: 1;
}
.lockup-main {
  display: block;
  font-size: clamp(54px, 15vw, 112px);
  letter-spacing: 0.015em;
}
.lockup-sub {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  margin-top: 10px;
  color: var(--bone);
  font-size: clamp(17px, 4.4vw, 26px);
  /* Marcellus SC draws lowercase as small caps: the game's small "Arenas". */
  text-transform: lowercase;
  letter-spacing: 0.42em;
  /* the tracking trails the last letter; pad the start to match so the word sits centred */
  padding-left: 0.42em;
}
.lockup-sub::before,
.lockup-sub::after {
  content: "";
  flex: 0 1 120px;
  min-width: 24px;
  height: 1px;
  background: linear-gradient(to left, rgba(233, 225, 208, 0.45), transparent);
}
.lockup-sub::after {
  background: linear-gradient(to right, rgba(233, 225, 208, 0.45), transparent);
}
.hero-lede {
  max-width: 16em;
  margin: 32px auto 12px;
  font-size: clamp(22px, 5vw, 30px);
  line-height: 1.28;
}
@media (min-width: 720px) {
  .hero-lede {
    max-width: 20em;
  }
}
.hero-sub {
  max-width: 44ch;
  margin: 0 auto;
  color: var(--mist);
  font-size: 18px;
}
.hero-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 8px 24px;
  margin-top: 28px;
}

/* The one primary action: bone, chamfered, as the game's Fight button. */
.button-primary {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  min-height: 48px;
  padding: 0 24px 0 20px;
  background: var(--bone);
  color: var(--ink);
  font-family: var(--title);
  font-size: 20px;
  line-height: 1;
  text-decoration: none;
  clip-path: polygon(0 0, 100% 0, 100% calc(100% - 12px), calc(100% - 12px) 100%, 0 100%);
  transition: background-color 180ms var(--ease);
}
.button-primary:hover {
  background: #fff6e4;
}
.status-dot {
  flex: none;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--ember);
  box-shadow: 0 0 0 4px rgba(242, 118, 58, 0.22);
}
.text-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 44px;
  color: var(--mist);
  font-size: 15px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  text-decoration: none;
}
.text-link:hover {
  color: var(--bone);
}

.hero .hero-shot {
  width: min(100% - 2 * var(--gutter), 1040px);
  margin: 32px auto 0;
}
@media (min-width: 720px) {
  .hero .hero-shot {
    margin-top: 48px;
  }
}

/* ---------- Screenshots ---------- */

.shot {
  margin: 0;
}
.shot img {
  width: 100%;
  aspect-ratio: 2622 / 1206;
  object-fit: cover;
  background: var(--ink);
  border: 1px solid var(--shot-edge);
  border-radius: 10px;
}
.stage .shot img {
  border-color: var(--stage-line);
  box-shadow: 0 32px 64px -32px rgba(0, 0, 0, 0.75);
}
.shot figcaption {
  margin-top: 12px;
  color: var(--text-2);
  font-size: 15px;
  line-height: 1.45;
}
.shot figcaption b {
  color: var(--text);
  font-weight: 600;
}

/* ---------- At a glance ---------- */

.glance {
  padding: 32px 0 8px;
}
.glance-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0;
  margin-block: 0;
  border-top: 1px solid var(--line);
}
.glance-grid > div {
  display: flex;
  flex-direction: column-reverse;
  justify-content: flex-end;
  gap: 4px;
  padding: 20px 16px 20px 0;
  border-bottom: 1px solid var(--line);
}
.glance-grid dt {
  color: var(--text-2);
  font-size: 15px;
  line-height: 1.35;
}
.glance-grid dd {
  margin: 0;
  font-family: var(--title);
  font-size: 44px;
  line-height: 1;
}
@media (min-width: 840px) {
  .glance-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
  .glance-grid > div {
    padding: 24px 24px 24px 0;
  }
  .glance-grid > div + div {
    padding-left: 24px;
    border-left: 1px solid var(--line-2);
  }
}

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

.section {
  padding: 72px 0;
}
.section-head {
  max-width: 720px;
  margin-bottom: 48px;
}
.section-head h2 {
  margin: 0 0 16px;
  font-size: clamp(34px, 7vw, 56px);
}
.lede {
  margin: 0;
  color: var(--text-2);
  font-size: 20px;
  line-height: 1.5;
}

/* The pillars: copy beside its screenshot, alternating sides on wide screens. */
.pillars {
  display: grid;
  gap: 64px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.pillar {
  display: grid;
  gap: 24px;
  align-items: center;
}
.pillar-num {
  margin: 0 0 8px;
  color: var(--accent);
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}
.pillar h3 {
  margin: 0 0 12px;
  font-size: clamp(28px, 5.4vw, 38px);
}
.pillar-copy p:not(.pillar-num) {
  margin: 0 0 12px;
  max-width: 52ch;
}
@media (min-width: 900px) {
  .pillars {
    gap: 96px;
  }
  .pillar {
    grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
    gap: 56px;
  }
  .pillar:nth-child(even) .pillar-copy {
    order: 2;
  }
}

/* The duel: a band with the closing ring drawn behind it. */
.duel {
  position: relative;
  overflow: hidden;
  isolation: isolate;
  padding: 80px 0;
  background: var(--band);
  border-block: 1px solid var(--line-2);
}
.duel::before,
.duel::after {
  content: "";
  position: absolute;
  z-index: -1;
  top: 50%;
  right: -180px;
  width: 520px;
  aspect-ratio: 1;
  border-radius: 50%;
  border: 1px solid var(--accent);
  opacity: 0.55;
  transform: translateY(-50%);
}
.duel::after {
  right: -60px;
  width: 280px;
  border-color: var(--line);
  opacity: 1;
}
.duel-copy {
  max-width: 600px;
}
.duel h2 {
  margin: 0 0 16px;
  font-size: clamp(34px, 7vw, 56px);
}
.duel p:not(.eyebrow) {
  margin: 0 0 12px;
}
/* On a phone the ring would cross the copy: keep only an arc at the band's corner. */
@media (max-width: 719px) {
  .duel::before {
    top: -220px;
    right: -260px;
    width: 360px;
    transform: none;
    opacity: 0.45;
  }
  .duel::after {
    display: none;
  }
}

/* A light touch: the four taps. */
.taps {
  display: grid;
  gap: 0;
  margin: 32px 0 0;
  border-top: 1px solid var(--line);
}
.taps > div {
  display: grid;
  gap: 2px;
  padding: 16px 0;
  border-bottom: 1px solid var(--line);
}
.taps dt {
  font-weight: 600;
}
.taps dd {
  margin: 0;
  color: var(--text-2);
}
@media (min-width: 720px) {
  .taps > div {
    grid-template-columns: minmax(0, 2fr) minmax(0, 3fr);
    gap: 24px;
  }
}

/* Ways to play */
.modes {
  display: grid;
  gap: 16px;
}
.mode {
  padding: 24px;
  background: var(--surface);
  border: 1px solid var(--line-2);
  border-radius: 2px;
}
.mode h3 {
  margin: 0 0 8px;
  font-size: 28px;
}
.mode p {
  margin: 0;
  color: var(--text-2);
}
.mode .mode-tag {
  margin: 0 0 16px;
  color: var(--accent);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}
@media (min-width: 900px) {
  .modes {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

.media-note {
  margin: 48px 0 0;
  color: var(--text-2);
  font-size: 15px;
}

/* The beta: back on the stage. */
.beta {
  padding: 80px 0;
  text-align: center;
}
.beta::before {
  background: radial-gradient(48% 56% at 50% 44%, rgba(242, 118, 58, 0.12), transparent 78%);
}
.beta h2 {
  margin: 0 auto 16px;
  font-size: clamp(36px, 8vw, 60px);
}
.beta p {
  max-width: 46ch;
  margin: 0 auto 12px;
  color: var(--mist);
}
.beta .beta-status {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  margin: 0 0 24px;
  padding: 8px 16px;
  border: 1px solid var(--stage-line);
  border-radius: 2px;
  color: var(--bone);
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}
.beta .devices {
  margin-top: 24px;
  color: var(--bone);
  font-size: 15px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}
.beta a {
  color: var(--bone);
}

/* ---------- Document pages: privacy and support ---------- */

.page-title {
  padding: 48px 0 56px;
  border-bottom: 1px solid var(--stage-line-2);
}
.page-title h1 {
  margin: 0;
  font-size: clamp(40px, 9vw, 72px);
}
.page-title .intro {
  max-width: 56ch;
  margin: 16px 0 0;
  color: var(--mist);
  font-size: 19px;
}
.page-title .updated {
  margin: 16px 0 0;
  color: var(--mist);
  font-size: 15px;
}

.doc {
  padding: 56px 0 80px;
}
.doc .wrap {
  max-width: 760px;
}
.doc h2 {
  margin: 48px 0 12px;
  padding-top: 24px;
  border-top: 1px solid var(--line-2);
  font-size: clamp(26px, 5vw, 32px);
}
.doc h2:first-child {
  margin-top: 0;
  padding-top: 0;
  border-top: 0;
}
.doc h3 {
  margin: 28px 0 8px;
  font-family: var(--ui);
  font-size: 19px;
  font-weight: 600;
  letter-spacing: 0;
}
.doc p,
.doc li {
  max-width: 68ch;
}
.doc p {
  margin: 0 0 14px;
}
.doc ul {
  margin: 0 0 16px;
  padding-left: 1.2em;
}
.doc li {
  margin: 0 0 10px;
}
.doc li::marker {
  color: var(--accent);
}
.doc strong {
  font-weight: 600;
}
.doc .path {
  font-weight: 600;
  white-space: nowrap;
}

/* Contact cards (support) */
.contact {
  display: grid;
  gap: 16px;
  margin: 0 0 16px;
}
.contact > div {
  padding: 24px;
  background: var(--surface);
  border: 1px solid var(--line-2);
  border-radius: 2px;
}
.contact h3 {
  margin: 0 0 8px;
}
.contact p {
  margin: 0 0 12px;
  color: var(--text-2);
}
.contact .email {
  font-size: 19px;
  font-weight: 600;
  overflow-wrap: anywhere;
}
@media (min-width: 720px) {
  .contact {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

/* FAQs: native details, no script */
.faq {
  margin: 0 0 16px;
  border-top: 1px solid var(--line);
}
.faq details {
  border-bottom: 1px solid var(--line);
}
.faq summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 56px;
  padding: 12px 0;
  font-weight: 600;
  cursor: pointer;
  list-style: none;
}
.faq summary::-webkit-details-marker {
  display: none;
}
.faq summary::after {
  content: "+";
  flex: none;
  width: 24px;
  color: var(--accent);
  font-size: 24px;
  font-weight: 400;
  line-height: 1;
  text-align: center;
  transition: transform 180ms var(--ease);
}
.faq details[open] summary::after {
  transform: rotate(45deg);
}
.faq details > div {
  padding: 0 0 16px;
}
.faq details > div p:last-child,
.faq details > div ul:last-child {
  margin-bottom: 0;
}

/* Ranked tiers table */
.tiers {
  width: 100%;
  margin: 8px 0 16px;
  border-collapse: collapse;
  font-variant-numeric: tabular-nums;
}
.tiers th,
.tiers td {
  padding: 8px 0;
  border-bottom: 1px solid var(--line-2);
  text-align: left;
}
.tiers th {
  color: var(--text-2);
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}
.tiers td:last-child,
.tiers th:last-child {
  text-align: right;
}
.tiers td:first-child {
  font-family: var(--title);
  font-size: 20px;
}

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

.site-footer {
  padding: 40px 0 48px;
  border-top: 1px solid var(--line-2);
  color: var(--text-2);
  font-size: 15px;
}
.site-footer .wrap {
  display: grid;
  gap: 20px;
}
.footer-brand {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 0;
  color: var(--text);
}
.footer-brand img {
  width: 36px;
  height: 36px;
  border-radius: 8px;
}
.footer-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0 24px;
}
.footer-nav a {
  display: inline-block;
  padding-block: 10px;
  color: var(--text);
  font-weight: 600;
  text-decoration: none;
}
.footer-nav a:hover {
  color: var(--accent);
}
.footer-nav a[aria-current="page"] {
  color: var(--accent);
}
.site-footer p {
  margin: 0;
}
@media (min-width: 900px) {
  .site-footer .wrap {
    grid-template-columns: auto 1fr;
    align-items: center;
  }
  .footer-nav {
    justify-content: flex-end;
  }
  .site-footer .legal {
    grid-column: 1 / -1;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  *,
  *::before,
  *::after {
    transition-duration: 0.01ms !important;
  }
}
