:root {
  color-scheme: light;
  --night: #0d2b61;
  --night-panel: #15396f;
  --ink: #12213a;
  --muted: #475467;
  --gold: #ffca68;
  --primary: #175cd3;
  --paper: #f5f7fb;
  --line: #d9e0ea;
  --wrap: 73rem;
  --gutter: clamp(1rem, 4vw, 2rem);
  font-family: system-ui, -apple-system, "Segoe UI", sans-serif;
  line-height: 1.55;
  font-synthesis: none;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; color: var(--ink); background: var(--paper); }
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
:focus-visible { outline: 3px solid #175cd3; outline-offset: 4px; }
[tabindex="-1"]:focus { outline: none; }
section[id] { scroll-margin-top: 1rem; }

h1, h2, h3, p, dl, dd, figure { margin: 0; }
h2, h3 { line-height: 1.22; }
h2 {
  font-size: clamp(1.95rem, 4vw, 3rem);
  font-weight: 760;
  letter-spacing: -.043em;
}
h3 {
  font-size: clamp(1.12rem, 1.8vw, 1.4rem);
  font-weight: 750;
  letter-spacing: -.025em;
}
.wrap {
  width: min(calc(100% - 2 * var(--gutter)), var(--wrap));
  margin-inline: auto;
}
.section-spacing { padding-block: clamp(3rem, 6vw, 5.75rem); }

.skip-link {
  position: absolute;
  z-index: 10;
  top: .75rem;
  left: .75rem;
  transform: translateY(-160%);
  padding: .65rem 1rem;
  border-radius: .5rem;
  color: var(--night);
  background: var(--gold);
}
.skip-link:focus { transform: none; }

.site-header, .site-footer {
  color: #f5f8ff;
  background: var(--night);
}
.site-header { border-bottom: 1px solid #ffffff17; }
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 4.45rem;
  gap: 1rem;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: .65rem;
  color: #f5f8ff;
  font-size: 1.04rem;
  font-weight: 740;
  letter-spacing: -.025em;
  line-height: 1.2;
  text-decoration: none;
}
.brand strong { color: var(--gold); }
.brand-mark {
  flex: 0 0 auto;
  display: grid;
  place-items: center;
  width: 2.55rem;
  height: 2.55rem;
  border: 1px solid #ffdd8b32;
  border-radius: .7rem;
  background: #ffffff09;
}
.brand-mark img { width: 2.25rem; }
.site-nav {
  display: flex;
  align-items: center;
  gap: clamp(1.05rem, 2.5vw, 2.15rem);
}
.site-nav a {
  display: inline-flex;
  align-items: center;
  min-height: 2.6rem;
  font-size: .92rem;
  font-weight: 650;
  text-decoration: none;
  white-space: nowrap;
}
.section-link, .guide-link { color: #d1e2fb; }
.section-link:hover, .guide-link:hover, .guide-link[aria-current="page"] { color: #fff; }
.guide-link[aria-current="page"] { text-decoration: underline; text-underline-offset: .25em; }
.web-link {
  justify-content: center;
  gap: .55rem;
  padding: .35rem .85rem;
  border: 1px solid #ffffff55;
  border-radius: .55rem;
  color: #fff;
  background: var(--primary);
}
.web-link:hover { background: #124eb8; }

.arena-intro {
  color: #f9f9fb;
  background: var(--night);
  padding-bottom: clamp(2.4rem, 4.3vw, 4.25rem);
}
.hero {
  position: relative;
  isolation: isolate;
  display: grid;
  align-items: center;
  min-height: clamp(27rem, 36vw, 35rem);
  overflow: hidden;
  background: radial-gradient(ellipse at 40% 34%, #1954a9 0%, #123c80 38%, var(--night) 78%);
}
.hero-art {
  position: absolute;
  z-index: -2;
  inset: 0 0 0 auto;
  width: min(69%, 70rem);
}
.hero-art img { width: 100%; height: 100%; object-fit: cover; object-position: center 19%; }
.hero-art::after {
  position: absolute;
  inset: 0;
  content: "";
  background: linear-gradient(136deg, #276be873 0%, #2875e924 56%, #175cd351 100%);
  mix-blend-mode: screen;
  pointer-events: none;
}
.hero::before {
  position: absolute;
  z-index: -1;
  inset: 0;
  content: "";
  background:
    linear-gradient(0deg, var(--night), #0d2b6100 37%),
    linear-gradient(90deg, var(--night) max(27%, calc(100% - 65rem)), #16458d82 50%, #16458d00 76%);
  pointer-events: none;
}
.hero-inner { padding-block: 2.5rem 2.85rem; }
.hero-copy { width: min(100%, 42rem); }
.hero h1 {
  font-size: clamp(3.25rem, 6.25vw, 6rem);
  font-weight: 810;
  line-height: 1.04;
  letter-spacing: -.066em;
}
.hero h1 span {
  display: block;
  margin-top: .12em;
  color: var(--gold);
  font-size: .74em;
  letter-spacing: -.05em;
  line-height: 1.12;
}
.hero-description {
  max-width: 26rem;
  margin-top: 1.25rem;
  color: #dbe8ff;
  font-size: clamp(1rem, 1.65vw, 1.2rem);
}
.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: .7rem;
  margin-top: 1.6rem;
}
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .85rem;
  min-height: 3.1rem;
  padding: .65rem 1.1rem;
  border: 1px solid transparent;
  border-radius: .6rem;
  font-weight: 730;
  text-decoration: none;
}
.button--primary {
  color: #fff;
  background: var(--primary);
  border-color: #82b8ff8c;
  box-shadow: 0 .4rem 1.5rem #0c2d6030;
}
.button--primary:hover { background: #124eb8; }
.button--outline { color: #f5f7fb; border-color: #ffffff46; background: #ffffff08; }
.button--outline:hover { background: #ffffff18; }

.arena-stats { position: relative; }
.stats-heading {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: .35rem 1rem;
  margin-bottom: .8rem;
}
.stats-heading h2 {
  font-size: clamp(1.08rem, 2vw, 1.35rem);
  font-weight: 730;
  letter-spacing: -.025em;
}
.stats-status {
  display: inline-flex;
  align-items: center;
  gap: .55rem;
  color: #d7e5fc;
  font-size: .83rem;
  font-weight: 600;
}
.stats-status::before {
  flex: none;
  width: .45rem;
  height: .45rem;
  content: "";
  border-radius: 50%;
  background: #a8c5ef;
}
[data-state="live"] .stats-status { color: #c0e3ff; }
[data-state="live"] .stats-status::before {
  background: #8dd0ff;
  box-shadow: 0 0 0 .22rem #8dd0ff26;
}
[data-state="delayed"] .stats-status::before { background: var(--gold); }
.stats-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  overflow: hidden;
  border: 1px solid #ffffff20;
  border-radius: .8rem;
  background: var(--night-panel);
}
.stat {
  display: flex;
  flex-direction: column;
  gap: .5rem;
  min-width: 0;
  padding: clamp(.85rem, 2vw, 1.4rem) clamp(.85rem, 2.55vw, 2rem);
}
.stat + .stat { border-left: 1px solid #ffffff20; }
.stat dt { color: #d5e3fc; font-size: clamp(.81rem, 1.5vw, .98rem); line-height: 1.3; }
.stat dd {
  order: -1;
  font-size: clamp(1.7rem, 4.65vw, 3.6rem);
  font-weight: 740;
  line-height: 1.06;
  letter-spacing: -.057em;
  font-variant-numeric: tabular-nums;
}
.arena-intro :focus-visible, .guide-hero :focus-visible, .site-header :focus-visible, .site-footer :focus-visible {
  outline-color: #a0d4ff;
}

.section-heading {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: baseline;
  gap: .7rem 1.2rem;
}
.text-link {
  display: inline-flex;
  align-items: baseline;
  gap: .4rem;
  color: var(--primary);
  font-weight: 700;
  text-decoration: none;
}
.text-link:hover { text-decoration: underline; text-underline-offset: .2em; }

.mode-grid, .gallery-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(.85rem, 2.1vw, 1.5rem);
  margin-top: clamp(1.45rem, 3vw, 2.25rem);
}
.mode-card {
  display: flex;
  flex-direction: column;
  gap: .9rem;
  min-width: 0;
  padding: clamp(1.15rem, 2.6vw, 1.85rem);
  border: 1px solid var(--line);
  border-radius: .85rem;
  background: #fff;
}
.mode-card img { width: 3.15rem; }
.mode-content { display: flex; flex: 1; flex-direction: column; }
.mode-card h3 { margin-bottom: .5rem; }
.mode-card p, .mode-card li, .questions p { color: var(--muted); }
.mode-card ul { margin: .85rem 0 1.1rem; padding-left: 1.15rem; }
.mode-card li + li { margin-top: .45rem; }
.mode-card li::marker { color: var(--primary); }
.mode-content > .text-link { margin-top: auto; padding-top: .85rem; border-top: 1px solid var(--line); }

.gallery { background: #eaf1fc; }
.screen-card {
  display: grid;
  align-content: end;
  justify-items: center;
  padding: 1.15rem clamp(.85rem, 2.35vw, 1.5rem) 0;
  overflow: hidden;
  border: 1px solid #ceddf4;
  border-radius: 1rem;
  background: #dfe9fa;
}
.screen-card--question-screen { background: #e3edff; border-color: #cedcf8; }
.screen-card--explanation-screen { background: #e2e9fa; border-color: #ced9f5; }
.screen-card figcaption {
  margin-bottom: 1rem;
  text-align: center;
  font-size: clamp(.95rem, 1.5vw, 1.1rem);
  font-weight: 690;
}
.screen-card img {
  width: min(100%, 13rem);
  border-radius: 1rem 1rem 0 0;
  box-shadow: 0 .75rem 2rem #131c352d;
}

.questions-grid {
  display: grid;
  grid-template-columns: minmax(0, 4fr) minmax(0, 6fr);
  gap: clamp(1.5rem, 6vw, 4rem);
}
.questions h2 + p { margin-top: .6rem; }
.question-list { border-top: 1px solid var(--line); }
.question-list details { border-bottom: 1px solid var(--line); }
.question-list summary {
  cursor: pointer;
  padding: .85rem 0;
  font-weight: 690;
}
.question-list details p { padding: 0 0 1rem; }
.question-list a { text-underline-offset: .2em; }

.download-section { padding-bottom: clamp(3rem, 6vw, 5.75rem); }
.download-band {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem 2rem;
  padding: clamp(1.35rem, 4vw, 3rem);
  border: 1px solid var(--line);
  border-radius: 1rem;
  background: #e8f0ff;
}
.download-band h2 { font-size: clamp(1.65rem, 3.5vw, 2.6rem); }
.download-band p { margin-top: .55rem; color: var(--muted); }
.download-links {
  display: grid;
  flex: 0 0 auto;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: .7rem;
}
.store-link {
  display: inline-flex;
  align-items: center;
  gap: .65rem;
  min-height: 3.2rem;
  padding: .6rem .9rem;
  border: 1px solid #bdcde8;
  border-radius: .6rem;
  background: #ffffff;
  line-height: 1.25;
  text-decoration: none;
}
.store-link:hover { border-color: #175cd3; }
.store-link small, .store-link strong { display: block; white-space: nowrap; }
.store-link small { color: var(--muted); font-size: .73rem; }
.store-link strong { font-size: 1rem; }
.store-mark { flex: 0 0 1.05rem; }
.store-mark--play {
  width: 1.05rem;
  height: 1.15rem;
  clip-path: polygon(0 0, 100% 50%, 0 100%);
  background: #175cd3;
}
.store-mark--phone {
  width: 1rem;
  height: 1.35rem;
  border: 2px solid #175cd3;
  border-radius: .24rem;
  background: radial-gradient(circle at 50% 84%, #175cd3 .05rem, transparent .06rem);
}
.download-web { grid-column: 1 / -1; width: fit-content; font-size: .95rem; font-weight: 680; text-underline-offset: .2em; }

.footer-grid {
  display: grid;
  grid-template-columns: 1.55fr repeat(3, minmax(0, 1fr));
  gap: clamp(1.2rem, 3vw, 2.75rem);
  padding-block: 2.8rem 2.2rem;
}
.footer-brand p { max-width: 18rem; margin: .8rem 0 .55rem; }
.footer-brand p, .footer-brand small, .site-footer nav a, .footer-bottom { color: #cedcf5; }
.site-footer nav { display: grid; align-content: start; gap: .45rem; }
.site-footer nav h2 { margin-bottom: .2rem; font-size: 1rem; letter-spacing: 0; }
.site-footer nav a, .footer-bottom a { text-decoration: none; }
.site-footer nav a { font-size: .9rem; }
.site-footer a:hover { color: #fff; text-decoration: underline; text-underline-offset: .21em; }
.footer-bottom {
  display: flex;
  justify-content: space-between;
  gap: .75rem;
  padding-block: .9rem 1.2rem;
  border-top: 1px solid #ffffff20;
  font-size: .87rem;
}
.footer-bottom small { font-size: inherit; }

@media (max-width: 53rem) {
  .hero-art { width: 82%; right: -8%; }
  .hero::before {
    background:
      linear-gradient(0deg, var(--night), #0d2b6100 35%),
      linear-gradient(90deg, var(--night) 8%, #123c80dc 39%, #123c8000 84%);
  }
  .hero-copy { width: min(80%, 35rem); }
  .download-band { align-items: start; flex-direction: column; }
  .footer-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .footer-brand { grid-column: 1 / -1; }
}

@media (max-width: 40rem) {
  .header-inner { min-height: 3.6rem; gap: .55rem; }
  .brand { font-size: .87rem; gap: .45rem; }
  .brand-mark { width: 2rem; height: 2rem; }
  .brand-mark img { width: 1.75rem; }
  .site-nav { gap: .65rem; }
  .site-nav .section-link { display: none; }
  .site-nav a { min-height: 2.35rem; font-size: .82rem; }
  .site-nav .web-link { padding-inline: .6rem; }
  .site-nav .web-link span { display: none; }
  .hero { min-height: 0; }
  .hero-art { inset: 0 0 auto; width: 100%; height: clamp(12rem, 56vw, 18rem); }
  .hero-art img { object-position: center 28%; }
  .hero::before {
    background: linear-gradient(180deg, #0d2b6100 16%, #0d2b613b 35%, var(--night) 58%);
  }
  .hero-inner { padding-block: clamp(9.15rem, 42vw, 13rem) 2rem; }
  .hero-copy { width: 100%; }
  .hero h1 { font-size: clamp(2.55rem, 10vw, 3.65rem); }
  .hero h1 span { font-size: .78em; }
  .hero-description { margin-top: .8rem; }
  .hero-actions { margin-top: 1.15rem; }
  .button { min-height: 2.85rem; padding-inline: .85rem; gap: .55rem; font-size: .9rem; }
  .stats-heading { margin-bottom: .65rem; }
  .stats-status { font-size: .73rem; gap: .4rem; }
  .stats-status::before { width: .36rem; height: .36rem; }
  .stat { padding: .75rem clamp(.43rem, 2.25vw, .95rem) .9rem; }
  .stat dd { font-size: clamp(1.34rem, 6vw, 2.6rem); }
  .stat dt { font-size: clamp(.72rem, 2.8vw, .87rem); }

  .mode-grid, .questions-grid { grid-template-columns: 1fr; }
  .mode-card {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr);
    gap: .65rem .75rem;
  }
  .mode-card img { width: 2.5rem; }
  .mode-card h3 { margin-bottom: .35rem; }
  .gallery-grid {
    grid-template-columns: none;
    grid-auto-flow: column;
    grid-auto-columns: min(74vw, 18rem);
    padding: .15rem .15rem .65rem;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
  }
  .screen-card { scroll-snap-align: start; }
  .download-links { width: min(100%, 22rem); }
  .store-link { padding-inline: .6rem; gap: .45rem; }
  .footer-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 22rem) {
  .site-nav { gap: .45rem; }
  .site-nav a { font-size: .78rem; }
  .brand-mark { width: 1.8rem; height: 1.8rem; }
  .brand-mark img { width: 1.6rem; }
  .download-links { grid-template-columns: 1fr; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}
