/* ===========================================================================
   MoosePlaying — Low-Poly Wilderness & Ambient Emerald Glow

   One hand-written stylesheet, no build step. The whole surface language is
   one idea: nothing is a rounded rectangle. Panels are faceted — two opposite
   corners cut on a 45° bevel — and the cut edge is a real 1px emerald line,
   built from two nested clip-paths (outer = edge colour, inner = fill inset by
   1px). That is the only approach that keeps the diagonal edge crisp.

   Two rules keep the palette coherent as it grows:
     • Neo-Mint is the only *interactive* accent — if it glows, you can use it.
     • Sunset Copper is the only *editorial* accent — headings, kickers, warmth.
   =========================================================================== */

:root {
  /* Ground */
  --obsidian: #0a110d;
  --obsidian-deep: #070c09;
  --obsidian-raised: #0c1712;

  /* Emerald substrate */
  --forest: #051c12;
  --forest-mesh: #0b2519;
  --forest-lit: #123626;

  /* Accents */
  --mint: #00ff87;
  --mint-soft: #7cffc0;
  --mint-deep: #00c46a;
  --copper: #e07a5f;
  --copper-soft: #f0a488;
  --lake: #4fd8c6;
  --sap: #f2c14e;
  --dusk: #8b7be8;
  --alert: #ff5c6c;

  /* Type */
  --mist: #e4f4ea;
  --mist-dim: #a9c4b4;
  --mist-faint: #6b8878;

  --font-display: Bahnschrift, 'DIN Alternate', Oswald, 'Segoe UI Variable Display', 'Segoe UI',
    system-ui, sans-serif;
  --font-sans: Inter, 'Segoe UI Variable Text', 'Segoe UI', system-ui, -apple-system, sans-serif;
  --font-mono: ui-monospace, SFMono-Regular, 'Cascadia Mono', Consolas, monospace;

  /* Facet geometry */
  --cut: 0.9rem;
  --facet-clip: polygon(
    var(--cut) 0%,
    100% 0%,
    100% calc(100% - var(--cut)),
    calc(100% - var(--cut)) 100%,
    0% 100%,
    0% var(--cut)
  );
  --facet-clip-inner: polygon(
    calc(var(--cut) - 1.4px) 0%,
    100% 0%,
    100% calc(100% - var(--cut) + 1.4px),
    calc(100% - var(--cut) + 1.4px) 100%,
    0% 100%,
    0% calc(var(--cut) - 1.4px)
  );

  --edge: rgba(0, 255, 135, 0.2);
  --edge-strong: rgba(0, 255, 135, 0.42);
  --edge-copper: rgba(224, 122, 95, 0.3);

  --shell-max: 84rem;
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);

  /* Per-card accent; overridden inline from the catalog. */
  --accent: var(--mint);
}

/* ── Reset ────────────────────────────────────────────────────────────────── */

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

* {
  margin: 0;
}

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

body {
  min-height: 100vh;
  overflow-x: hidden;
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.55;
  color: var(--mist);
  background-color: var(--obsidian);
  background-image: radial-gradient(1100px 620px at 12% -10%, rgba(0, 255, 135, 0.1), transparent 62%),
    radial-gradient(900px 520px at 88% 8%, rgba(224, 122, 95, 0.07), transparent 58%),
    linear-gradient(180deg, #0a110d 0%, #081410 46%, #070c09 100%);
  background-attachment: fixed;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

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

button,
input,
select {
  font: inherit;
  color: inherit;
}

a {
  color: inherit;
  text-decoration: none;
}

ul,
ol {
  list-style: none;
  padding: 0;
}

table {
  border-collapse: collapse;
  width: 100%;
}

code,
kbd {
  font-family: var(--font-mono);
  font-size: 0.86em;
}

/* Every focusable thing gets the same mint ring. Keyboard players are
   first-class here — all six games are playable without a pointer. */
:focus-visible {
  outline: 2px solid var(--mint);
  outline-offset: 2px;
  border-radius: 2px;
}

::selection {
  background: rgba(0, 255, 135, 0.26);
  color: #eafff4;
}

::-webkit-scrollbar {
  width: 10px;
  height: 10px;
}
::-webkit-scrollbar-track {
  background: #070c09;
}
::-webkit-scrollbar-thumb {
  background: #12341f;
  border: 2px solid #070c09;
}
::-webkit-scrollbar-thumb:hover {
  background: #1a4d2e;
}

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

.skip-link {
  position: absolute;
  top: -100%;
  left: 1rem;
  z-index: 100;
  padding: 0.6rem 1rem;
  background: var(--obsidian-raised);
  color: var(--mint);
  font-family: var(--font-mono);
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  box-shadow: inset 0 0 0 1px var(--edge-strong);
}
.skip-link:focus {
  top: 1rem;
}

/* ── The faceted glass panel ──────────────────────────────────────────────── */

.facet {
  position: relative;
  isolation: isolate;
  background-color: var(--edge);
  clip-path: var(--facet-clip);
}

.facet::before {
  content: '';
  position: absolute;
  inset: 1px;
  z-index: -1;
  clip-path: var(--facet-clip-inner);
  background-color: rgba(12, 23, 18, 0.82);
  background-image: linear-gradient(
    148deg,
    rgba(0, 255, 135, 0.055) 0%,
    rgba(0, 255, 135, 0.018) 42%,
    rgba(255, 255, 255, 0.012) 100%
  );
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
}

.facet-lit {
  background-color: var(--edge-strong);
}
.facet-copper {
  background-color: var(--edge-copper);
}
/* A denser fill for panels carrying small text over a busy background. */
.facet-solid::before {
  background-color: rgba(8, 17, 13, 0.94);
}
.facet-lg {
  --cut: 1.6rem;
}
.facet-sm {
  --cut: 0.55rem;
}

.pad {
  padding: 1.5rem;
}

/* ── Type ─────────────────────────────────────────────────────────────────── */

h1,
h2,
h3,
h4 {
  font-family: var(--font-display);
  font-weight: 600;
  line-height: 1.12;
  letter-spacing: -0.01em;
}

h2 {
  font-size: clamp(1.5rem, 3vw, 2rem);
}

h3 {
  font-size: 1.25rem;
}

h4 {
  font-size: 1.02rem;
}

p {
  text-wrap: pretty;
}

.wild-label {
  display: block;
  font-family: var(--font-mono);
  font-size: 0.58rem;
  line-height: 1;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  color: var(--mist-faint);
  overflow-wrap: anywhere;
}

.wild-kicker {
  display: block;
  font-family: var(--font-mono);
  font-size: 0.62rem;
  line-height: 1;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  color: var(--copper);
}

.glow-mint {
  color: var(--mint);
  text-shadow: 0 0 18px rgba(0, 255, 135, 0.55);
}

.tabular {
  font-family: var(--font-mono);
  font-variant-numeric: tabular-nums;
}

.muted {
  color: var(--mist-faint);
}

kbd {
  display: inline-block;
  padding: 0.15rem 0.4rem;
  background: rgba(0, 255, 135, 0.07);
  color: var(--mint);
  font-size: 0.62rem;
  box-shadow: inset 0 0 0 1px rgba(0, 255, 135, 0.2);
}

code {
  color: var(--mint);
}

/* ── Buttons ──────────────────────────────────────────────────────────────── */

.btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.65rem 1.25rem;
  font-family: var(--font-mono);
  font-size: 0.68rem;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  white-space: nowrap;
  cursor: pointer;
  border: 0;
  background: transparent;
  user-select: none;
  transition: background-color 0.2s, color 0.2s, box-shadow 0.2s;
  clip-path: polygon(
    0.55rem 0%,
    100% 0%,
    100% calc(100% - 0.55rem),
    calc(100% - 0.55rem) 100%,
    0% 100%,
    0% 0.55rem
  );
}

.btn-primary {
  background: rgba(0, 255, 135, 0.12);
  color: var(--mint);
  box-shadow: inset 0 0 0 1px rgba(0, 255, 135, 0.42);
}
.btn-primary:hover {
  background: rgba(0, 255, 135, 0.2);
  color: var(--mint-soft);
  box-shadow: inset 0 0 0 1px rgba(0, 255, 135, 0.7), 0 0 26px -6px rgba(0, 255, 135, 0.5);
}

.btn-ghost {
  background: rgba(255, 255, 255, 0.02);
  color: var(--mist-dim);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.09);
}
.btn-ghost:hover {
  background: rgba(255, 255, 255, 0.05);
  color: var(--mist);
  box-shadow: inset 0 0 0 1px rgba(0, 255, 135, 0.3);
}

.btn.danger:hover {
  color: var(--alert);
  box-shadow: inset 0 0 0 1px rgba(255, 92, 108, 0.5);
}

.btn.tight {
  padding: 0.4rem 0.75rem;
}
.btn.full {
  width: 100%;
  margin-top: 1.5rem;
}

.btn:disabled {
  cursor: not-allowed;
  opacity: 0.45;
}

.icon-button {
  display: grid;
  place-items: center;
  width: 2rem;
  height: 2rem;
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--mist-dim);
  cursor: pointer;
  transition: color 0.2s;
}
.icon-button:hover {
  color: var(--mint);
}
.icon-button svg {
  width: 1.25rem;
  height: 1.25rem;
}

/* Sound icon: the mute cross and the waves are the same element, swapped by
   the pressed state, so the two never disagree about what is muted. */
[data-audio-toggle] .icon-mute {
  display: none;
}
[data-audio-toggle][aria-pressed='true'] .icon-waves {
  display: none;
}
[data-audio-toggle][aria-pressed='true'] .icon-mute {
  display: block;
}

/* ── Structure ────────────────────────────────────────────────────────────── */

.shell {
  width: 100%;
  max-width: var(--shell-max);
  margin-inline: auto;
  padding-inline: 1.25rem;
}

.section {
  padding-block: 3.5rem;
}

.narrow-page {
  max-width: 52rem;
}
.centred {
  text-align: center;
}
.centred .overlay-actions {
  justify-content: center;
}

.rule {
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(0, 255, 135, 0.24), transparent);
}
.rule.spacer {
  margin-block: 3rem;
}

.section-heading {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 1.5rem;
  margin-bottom: 2.5rem;
}
.section-heading > div {
  max-width: 46rem;
}
.section-heading h2 {
  margin-top: 0.85rem;
}

.section-lede {
  margin-top: 0.9rem;
  color: var(--mist-dim);
  font-size: 0.95rem;
  line-height: 1.65;
}
.section-lede.narrow {
  max-width: 42rem;
}

.sub-head {
  margin-top: 3rem;
  margin-bottom: 1.25rem;
  font-family: var(--font-display);
  font-size: 1.25rem;
}

.body-copy {
  margin-top: 0.9rem;
  color: var(--mist-dim);
  line-height: 1.7;
}

.page-title {
  margin-top: 0.9rem;
  font-size: clamp(2rem, 5vw, 3rem);
}

.fine-print {
  margin-top: 3rem;
  font-family: var(--font-mono);
  font-size: 0.6rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--mist-faint);
}

a.inline,
.body-copy a,
.section-lede a,
.callout a,
.contact-copy a,
.result-note a,
.spec-grid a {
  color: var(--mint);
  text-decoration: underline;
  text-decoration-color: rgba(0, 255, 135, 0.3);
  text-underline-offset: 4px;
}
.body-copy a:hover,
.section-lede a:hover,
.callout a:hover {
  text-decoration-color: var(--mint);
}

/* ── Ambient canvas ───────────────────────────────────────────────────────── */

.ambient-forest {
  position: fixed;
  inset: 0;
  z-index: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  opacity: 0.55;
}

.site-header,
main,
.site-footer {
  position: relative;
  z-index: 1;
}

/* ── Header ───────────────────────────────────────────────────────────────── */

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  padding-top: 0.75rem;
}

.navbar {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.6rem 0.9rem;
  transition: box-shadow 0.3s;
}
.site-header.is-scrolled .navbar {
  box-shadow: 0 18px 48px -24px rgba(0, 0, 0, 0.9), inset 0 1px 0 0 rgba(255, 255, 255, 0.045);
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  flex-shrink: 0;
}
.antler-mark {
  transition: transform 0.5s var(--ease-out), filter 0.35s;
}
.brand:hover .antler-mark {
  transform: rotate(-4deg) scale(1.06);
  filter: drop-shadow(0 0 10px rgba(0, 255, 135, 0.45));
}

.brand-text {
  display: flex;
  flex-direction: column;
  line-height: 1;
}
.brand-name {
  font-family: var(--font-display);
  font-size: 1.02rem;
  font-weight: 600;
  letter-spacing: 0.08em;
}
.brand-name em {
  font-style: normal;
  color: var(--mint);
}
.brand-tagline {
  display: none;
  margin-top: 0.3rem;
  font-family: var(--font-mono);
  font-size: 0.5rem;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  color: var(--mist-faint);
}

.navbar-divider {
  display: none;
  width: 1px;
  height: 1.75rem;
  background: rgba(0, 255, 135, 0.12);
}

.nav-links {
  display: none;
  align-items: center;
  gap: 0.15rem;
}
.nav-links a {
  position: relative;
  display: block;
  padding: 0.5rem 0.75rem;
  font-family: var(--font-mono);
  font-size: 0.62rem;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  color: var(--mist-faint);
  transition: color 0.2s;
}
.nav-links a:hover {
  color: var(--mist);
}
.nav-links a[aria-current='page'] {
  color: var(--mint);
}
.nav-links a[aria-current='page']::after {
  content: '';
  position: absolute;
  left: 0.6rem;
  right: 0.6rem;
  bottom: -0.1rem;
  height: 1px;
  background: var(--mint);
  box-shadow: 0 0 10px rgba(0, 255, 135, 0.9);
}

.navbar-tail {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-left: auto;
}

.antler-tracker {
  display: none;
  flex-direction: column;
  gap: 0.25rem;
  min-width: 8rem;
  padding: 0.3rem 0.6rem;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.07);
  transition: box-shadow 0.2s;
}
.antler-tracker:hover {
  box-shadow: inset 0 0 0 1px rgba(0, 255, 135, 0.3);
}
.antler-tracker-rank {
  font-family: var(--font-mono);
  font-size: 0.62rem;
  color: var(--mint);
}
.antler-tracker-bar {
  display: block;
  height: 2px;
  background: rgba(255, 255, 255, 0.1);
}
.antler-tracker-bar > span {
  display: block;
  height: 100%;
  width: 0;
  background: var(--mint);
  transition: width 0.4s var(--ease-out);
}

.mobile-nav {
  margin-top: 0.5rem;
  padding: 0.5rem;
}
.mobile-nav a {
  display: block;
  padding: 0.75rem;
  font-family: var(--font-mono);
  font-size: 0.68rem;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  color: var(--mist-dim);
}
.mobile-nav a[aria-current='page'] {
  color: var(--mint);
}

/* ── Hero ─────────────────────────────────────────────────────────────────── */

.hero {
  position: relative;
  isolation: isolate;
  overflow: hidden;
}

.hero-terrain {
  position: absolute;
  inset: 0;
  z-index: -1;
  width: 100%;
  height: 100%;
  opacity: 0.9;
  /* Masked at the foot so the headline never fights the mesh for contrast. */
  -webkit-mask-image: linear-gradient(180deg, #000 0%, #000 58%, transparent 96%);
  mask-image: linear-gradient(180deg, #000 0%, #000 58%, transparent 96%);
  pointer-events: none;
}

.hero-inner {
  padding-block: 4rem;
  max-width: var(--shell-max);
}

.hero-flags {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.75rem;
}
.hero-phase {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.4rem 0.75rem;
}
.hero-count {
  color: var(--mint);
}

.pulse-dot {
  width: 6px;
  height: 6px;
  background: var(--mint);
  animation: mint-pulse 2.8s ease-in-out infinite;
}

.hero-title {
  margin-top: 1.5rem;
  max-width: 20ch;
  font-size: clamp(2.6rem, 8vw, 4.4rem);
  line-height: 0.98;
  letter-spacing: -0.02em;
  text-wrap: balance;
}

.hero-lede {
  margin-top: 1.5rem;
  max-width: 38rem;
  font-size: 1.02rem;
  line-height: 1.7;
  color: var(--mist-dim);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 2.25rem;
}

.hero-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  max-width: 32rem;
  margin-top: 3rem;
  background: rgba(0, 255, 135, 0.12);
}
.hero-stats > div {
  padding: 0.85rem 1rem;
  background: rgba(10, 17, 13, 0.7);
  backdrop-filter: blur(4px);
}
.hero-stats dd {
  margin-top: 0.4rem;
  font-size: 1.25rem;
  line-height: 1;
  color: var(--mint);
}

/* ── Game grid ────────────────────────────────────────────────────────────── */

.game-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 19rem), 1fr));
  gap: 1.25rem;
}
.game-grid.two-up {
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 22rem), 1fr));
}

.game-card {
  position: relative;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  transition: transform 0.35s var(--ease-out), background-color 0.35s;
  animation: poly-rise 0.55s var(--ease-out) both;
  animation-delay: var(--stagger, 0ms);
}
.game-card:hover {
  transform: translateY(-4px);
  background-color: var(--edge-strong);
}

/* One stretched link covers the card, so the whole surface is the hit target
   without nesting interactive elements. */
.game-card-link {
  position: absolute;
  inset: 0;
  z-index: 2;
}

.game-card-art {
  position: relative;
  aspect-ratio: 16 / 10;
  background: linear-gradient(160deg, rgba(0, 0, 0, 0.35), transparent 70%),
    radial-gradient(120% 90% at 50% 110%, color-mix(in srgb, var(--accent) 18%, transparent), transparent 70%);
  border-bottom: 1px solid rgba(0, 255, 135, 0.1);
}
.game-card-art .poly-icon {
  width: 100%;
  height: 100%;
}

.game-card-body {
  display: flex;
  flex-direction: column;
  flex: 1;
  padding: 1.25rem;
}
.game-card-kicker {
  font-family: var(--font-mono);
  font-size: 0.55rem;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  color: var(--accent);
}
.game-card-title {
  margin-top: 0.6rem;
  font-size: 1.2rem;
}
.game-card-tagline {
  margin-top: 0.5rem;
  font-size: 0.86rem;
  line-height: 1.55;
  color: var(--mist-dim);
}

.game-card-meta {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.75rem;
  margin-top: 1.25rem;
  padding-top: 1rem;
  border-top: 1px solid rgba(0, 255, 135, 0.08);
}
.game-card-meta dd {
  margin-top: 0.35rem;
  font-size: 0.78rem;
  color: var(--mist);
}

.game-card-cta {
  margin-top: auto;
  padding-top: 1.25rem;
  font-family: var(--font-mono);
  font-size: 0.6rem;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  color: var(--mist-faint);
  transition: color 0.25s;
}
.game-card:hover .game-card-cta {
  color: var(--mint);
}

/* ── Splits, lists, stats ─────────────────────────────────────────────────── */

.split {
  display: grid;
  gap: 2.5rem;
}

.split-side {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.numbered {
  margin-top: 2.5rem;
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}
.numbered li {
  display: flex;
  gap: 1.25rem;
}
.numbered-n {
  flex-shrink: 0;
  margin-top: 0.15rem;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-variant-numeric: tabular-nums;
  color: var(--mint);
}
.numbered h3 {
  font-size: 1.05rem;
}
.numbered p {
  margin-top: 0.4rem;
  font-size: 0.9rem;
  line-height: 1.65;
  color: var(--mist-dim);
}

.stat-list {
  margin-top: 1.25rem;
}
.stat-list > div {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 1rem;
  padding-bottom: 0.75rem;
  margin-bottom: 0.75rem;
  border-bottom: 1px solid rgba(0, 255, 135, 0.07);
}
.stat-list > div:last-child {
  border-bottom: 0;
  margin-bottom: 0;
  padding-bottom: 0;
}
.stat-list dt {
  font-size: 0.85rem;
  color: var(--mist-dim);
}
.stat-list dd {
  font-size: 1.05rem;
  color: var(--mint);
}
.tight-list dd {
  font-size: 0.95rem;
}

.ambient-line {
  margin-top: 0.85rem;
  font-size: 0.95rem;
  line-height: 1.6;
}
.ambient-note {
  margin-top: 0.75rem;
  font-size: 0.78rem;
  line-height: 1.6;
  color: var(--mist-faint);
}

.callout {
  margin-top: 1.5rem;
}
.callout p {
  margin-top: 0.85rem;
  font-size: 0.92rem;
  line-height: 1.7;
  color: var(--mist-dim);
}

.tick-list {
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
  margin-top: 1rem;
}
.tick-list li {
  display: flex;
  gap: 0.75rem;
  font-size: 0.88rem;
  line-height: 1.6;
  color: var(--mist-dim);
}
.tick {
  flex-shrink: 0;
  width: 6px;
  height: 6px;
  margin-top: 0.5rem;
  background: var(--mint);
  transform: rotate(45deg);
}

.spec-grid {
  display: grid;
  gap: 1px;
  margin-top: 1.5rem;
  background: rgba(0, 255, 135, 0.1);
}
.spec-grid > div {
  padding: 1.15rem;
  background: rgba(12, 23, 18, 0.85);
}
.spec-grid dd {
  margin-top: 0.5rem;
  font-size: 0.85rem;
  line-height: 1.6;
  color: var(--mist-dim);
}

/* ── Tiers ────────────────────────────────────────────────────────────────── */

.tier-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 13rem), 1fr));
  gap: 1rem;
  margin-top: 1.75rem;
}
.tier-label {
  font-family: var(--font-display);
  font-size: 1.05rem;
  font-weight: 600;
}
.tier-mult {
  margin-top: 0.35rem;
  font-size: 1.5rem;
  color: var(--mint);
}
.tier-blurb {
  margin-top: 0.6rem;
  font-size: 0.82rem;
  line-height: 1.55;
  color: var(--mist-dim);
}

/* ── Trail page ───────────────────────────────────────────────────────────── */

.crumbs {
  display: flex;
  gap: 0.5rem;
  font-family: var(--font-mono);
  font-size: 0.58rem;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  color: var(--mist-faint);
}
.crumbs a:hover {
  color: var(--mint);
}

.trail-head {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 1.5rem;
  margin-top: 1.25rem;
  margin-bottom: 2rem;
}
.trail-kicker {
  color: var(--accent);
}
.trail-title {
  margin-top: 0.75rem;
  font-size: clamp(2rem, 5vw, 3rem);
}
.trail-tagline {
  margin-top: 0.6rem;
  max-width: 40rem;
  font-size: 1rem;
  color: var(--mist-dim);
}

.trail-facts {
  display: flex;
  gap: 1.75rem;
}
.trail-facts dd {
  margin-top: 0.4rem;
  font-size: 0.88rem;
}

/* ── Run harness ──────────────────────────────────────────────────────────── */

.stage {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.hud {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.75rem 1.5rem;
  padding: 0.75rem 1.15rem;
}

.hud-fields {
  display: contents;
}

.readout {
  min-width: 4.5rem;
  overflow-wrap: anywhere;
}
.readout-wide {
  min-width: 6rem;
}
.readout-value {
  display: block;
  margin-top: 0.25rem;
  font-size: 1rem;
  color: var(--mist);
}
.readout-wide .readout-value {
  font-size: 1.35rem;
}
.readout-bar {
  display: block;
  height: 2px;
  margin-top: 0.35rem;
  background: rgba(255, 255, 255, 0.1);
  overflow: hidden;
}
.readout-bar > span {
  display: block;
  height: 100%;
  transition: width 0.15s linear;
}

.tone-mint {
  color: var(--mint);
}
.tone-copper {
  color: var(--copper);
}
.tone-lake {
  color: var(--lake);
}
.tone-sap {
  color: var(--sap);
}
.tone-dusk {
  color: var(--dusk);
}
.tone-alert {
  color: var(--alert);
}
.tone-mist {
  color: var(--mist);
}

.bar-mint {
  background: var(--mint);
}
.bar-copper {
  background: var(--copper);
}
.bar-lake {
  background: var(--lake);
}
.bar-sap {
  background: var(--sap);
}
.bar-dusk {
  background: var(--dusk);
}
.bar-alert {
  background: var(--alert);
}
.bar-mist {
  background: var(--mist-dim);
}

.hud-tail {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-left: auto;
}
.hud-hint {
  display: none;
  font-family: var(--font-mono);
  font-size: 0.52rem;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  color: var(--mist-faint);
}

.board {
  position: relative;
  aspect-ratio: 16 / 10;
  width: 100%;
  overflow: hidden;
}
.board-canvas {
  width: 100%;
  height: 100%;
  touch-action: none;
  outline: none;
}

.overlay {
  position: absolute;
  inset: 0;
  z-index: 10;
  display: grid;
  place-items: center;
  overflow-y: auto;
  padding: 2rem 1.25rem;
  background: rgba(10, 17, 13, 0.9);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  animation: fade-in 0.26s ease both;
}
.overlay[hidden] {
  display: none;
}

.overlay-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 100%;
  max-width: 28rem;
  text-align: center;
  animation: poly-rise 0.42s var(--ease-out) both;
}
.overlay-wide {
  max-width: 32rem;
}
.overlay-title {
  margin-top: 0.75rem;
  font-size: clamp(1.5rem, 4vw, 1.9rem);
}
.overlay-sub {
  margin-top: 0.6rem;
  font-family: var(--font-mono);
  font-size: 0.6rem;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  color: var(--mist-faint);
}
.overlay-cta {
  margin-top: 1.75rem;
}
.overlay-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.75rem;
  margin-top: 1.75rem;
}

.briefing {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  max-width: 46ch;
  margin-top: 1.25rem;
  text-align: left;
}
.briefing li {
  display: flex;
  gap: 0.65rem;
  font-size: 0.86rem;
  line-height: 1.6;
  color: var(--mist-dim);
}
.briefing li::before {
  content: '';
  flex-shrink: 0;
  width: 6px;
  height: 6px;
  margin-top: 0.45rem;
  background: var(--mint);
  transform: rotate(45deg);
}

.tier-picker {
  margin-top: 1.5rem;
}
.tier-buttons {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.4rem;
  margin-top: 0.65rem;
}
.tier-button {
  padding: 0.4rem 0.75rem;
  border: 0;
  background: transparent;
  color: var(--mist-faint);
  font-family: var(--font-mono);
  font-size: 0.58rem;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  cursor: pointer;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.08);
  transition: color 0.2s, background-color 0.2s, box-shadow 0.2s;
}
.tier-button:hover {
  color: var(--mist-dim);
}
.tier-button.is-active {
  background: rgba(0, 255, 135, 0.14);
  color: var(--mint);
  box-shadow: inset 0 0 0 1px rgba(0, 255, 135, 0.5);
}

.final-score {
  margin-top: 1rem;
  font-size: 3rem;
  line-height: 1;
}

.badge-pill {
  display: inline-block;
  margin-top: 0.75rem;
  padding: 0.25rem 0.75rem;
  background: rgba(224, 122, 95, 0.12);
  color: var(--copper);
  font-family: var(--font-mono);
  font-size: 0.56rem;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  box-shadow: inset 0 0 0 1px rgba(224, 122, 95, 0.45);
}
.badge-line {
  margin-top: 0.5rem;
  font-family: var(--font-mono);
  font-size: 0.56rem;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  color: var(--mint);
}

.result-card {
  width: 100%;
  margin-top: 1.5rem;
  padding: 1.15rem;
  text-align: left;
}
.result-note {
  margin-top: 1rem;
  font-family: var(--font-mono);
  font-size: 0.52rem;
  line-height: 1.7;
  letter-spacing: 0.08em;
  color: var(--mist-faint);
}

.trail-detail {
  display: grid;
  gap: 2rem;
  margin-top: 3rem;
}
.trail-copy {
  margin-top: 0.9rem;
  line-height: 1.7;
  color: var(--mist-dim);
}

.control-list {
  margin-top: 1rem;
}
.control-list > div {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 0.85rem;
  margin-bottom: 0.65rem;
}
.control-list > div:last-child {
  margin-bottom: 0;
}
.control-list dd {
  text-align: right;
  font-size: 0.8rem;
  color: var(--mist-dim);
}
.control-note {
  margin-top: 1rem;
  font-size: 0.78rem;
  line-height: 1.6;
  color: var(--mist-faint);
}

/* ── Crown Scores ─────────────────────────────────────────────────────────── */

.rank-panel {
  margin-bottom: 1rem;
}
.rank-head {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 1.5rem;
}
.rank-name {
  margin-top: 0.5rem;
  font-family: var(--font-display);
  font-size: 1.75rem;
  font-weight: 600;
  color: var(--mint);
}
.rank-blurb {
  margin-top: 0.35rem;
  font-size: 0.85rem;
  color: var(--mist-dim);
}
.rank-figures {
  display: flex;
  gap: 1.75rem;
}
.rank-figures .big {
  display: block;
  margin-top: 0.4rem;
  font-size: 1.35rem;
  color: var(--mint);
}
.rank-bar {
  height: 3px;
  margin-top: 1.5rem;
  background: rgba(255, 255, 255, 0.1);
  overflow: hidden;
}
.rank-bar-fill {
  display: block;
  height: 100%;
  background: var(--mint);
  box-shadow: 0 0 12px rgba(0, 255, 135, 0.6);
  transition: width 0.5s var(--ease-out);
}
.rank-next {
  margin-top: 0.65rem;
  font-family: var(--font-mono);
  font-size: 0.56rem;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  color: var(--mist-faint);
}

.board-table {
  overflow-x: auto;
}
.board-table table {
  min-width: 34rem;
}
.board-table th,
.board-table td {
  padding: 0.9rem 1.15rem;
  text-align: left;
  border-bottom: 1px solid rgba(0, 255, 135, 0.07);
}
.board-table thead th {
  font-family: var(--font-mono);
  font-size: 0.55rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  color: var(--mist-faint);
}
.board-table tbody tr:last-child th,
.board-table tbody tr:last-child td {
  border-bottom: 0;
}
.board-table tbody th {
  font-family: var(--font-sans);
  font-weight: 500;
}
.board-table tbody th a:hover {
  color: var(--mint);
}
.board-table .num {
  text-align: right;
}
.board-table td.num {
  color: var(--mint);
}
.row-kicker {
  display: block;
  margin-top: 0.2rem;
  font-family: var(--font-mono);
  font-size: 0.5rem;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  color: var(--mist-faint);
}
.row-link {
  font-family: var(--font-mono);
  font-size: 0.58rem;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  color: var(--mist-faint);
}
.row-link:hover {
  color: var(--mint);
}
.swatch {
  display: inline-block;
  width: 8px;
  height: 8px;
  margin-right: 0.5rem;
  transform: rotate(45deg);
}

.badge-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 15rem), 1fr));
  gap: 1rem;
}
.badge-card {
  padding: 1.15rem;
  opacity: 0.45;
  transition: opacity 0.3s;
}
.badge-card.is-earned {
  opacity: 1;
  background-color: var(--edge-strong);
}
.badge-card h4 {
  margin-top: 0.6rem;
}
.badge-card p {
  margin-top: 0.4rem;
  font-size: 0.8rem;
  line-height: 1.55;
  color: var(--mist-dim);
}
.badge-state {
  font-family: var(--font-mono);
  font-size: 0.52rem;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  color: var(--mist-faint);
}
.badge-card.is-earned .badge-state {
  color: var(--mint);
}

.danger-zone {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1.25rem;
  margin-top: 3rem;
}
.danger-copy {
  margin-top: 0.6rem;
  max-width: 40rem;
  font-size: 0.85rem;
  line-height: 1.6;
  color: var(--mist-dim);
}

/* ── Field guide ──────────────────────────────────────────────────────────── */

.guide-section {
  margin-top: 3rem;
}
.guide-section h3 {
  font-size: 1.5rem;
}
.guide-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 20rem), 1fr));
  gap: 1.25rem;
  margin-top: 1.5rem;
}
.guide-card-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 0.75rem;
}
.guide-card-head h4 a:hover {
  color: var(--mint);
}
.guide-card-kicker {
  flex-shrink: 0;
  font-family: var(--font-mono);
  font-size: 0.5rem;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  color: var(--accent);
}
.guide-grid p {
  margin-top: 0.6rem;
  font-size: 0.87rem;
  line-height: 1.65;
  color: var(--mist-dim);
}
.guide-note {
  margin-top: 1.5rem;
  max-width: 52rem;
  font-size: 0.85rem;
  line-height: 1.7;
  color: var(--mist-faint);
}

/* ── Contact ──────────────────────────────────────────────────────────────── */

.contact-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 18rem), 1fr));
  gap: 1.25rem;
  margin-top: 2.5rem;
}
.contact-mail {
  margin-top: 0.75rem;
  font-family: var(--font-mono);
  font-size: 0.95rem;
  overflow-wrap: anywhere;
}
.contact-mail a {
  color: var(--mint);
  text-decoration: underline;
  text-decoration-color: rgba(0, 255, 135, 0.3);
  text-underline-offset: 4px;
}
.contact-mail a:hover {
  text-decoration-color: var(--mint);
}
.contact-copy {
  margin-top: 0.75rem;
  font-size: 0.85rem;
  line-height: 1.65;
  color: var(--mist-dim);
}

/* ── Footer ───────────────────────────────────────────────────────────────── */

.site-footer {
  margin-top: 5rem;
  border-top: 1px solid rgba(0, 255, 135, 0.1);
  background: rgba(7, 12, 9, 0.7);
  padding-block: 3.5rem;
}
.footer-grid {
  display: grid;
  gap: 2.5rem;
}
.footer-wordmark {
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-weight: 600;
  letter-spacing: 0.08em;
}
.footer-wordmark em {
  font-style: normal;
  color: var(--mint);
}
.footer-domain {
  margin-top: 0.3rem;
  font-family: var(--font-mono);
  font-size: 0.55rem;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  color: var(--mist-faint);
}
.footer-blurb {
  margin-top: 1rem;
  max-width: 22rem;
  font-size: 0.85rem;
  line-height: 1.65;
  color: var(--mist-dim);
}
.footer-mail {
  margin-top: 1rem;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  overflow-wrap: anywhere;
}
.footer-mail a {
  color: var(--mint);
}
.site-footer nav ul {
  margin-top: 1rem;
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
}
.site-footer nav a {
  font-size: 0.85rem;
  color: var(--mist-dim);
  transition: color 0.2s;
}
.site-footer nav a:hover {
  color: var(--mint);
}
.footer-base {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  margin-top: 3rem;
  padding-top: 1.5rem;
  border-top: 1px solid rgba(0, 255, 135, 0.1);
}
.footer-base p {
  font-family: var(--font-mono);
  font-size: 0.6rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--mist-faint);
}

/* ── Keyframes ────────────────────────────────────────────────────────────── */

@keyframes mint-pulse {
  0%,
  100% {
    opacity: 0.45;
  }
  50% {
    opacity: 1;
  }
}

@keyframes poly-rise {
  from {
    opacity: 0;
    transform: translateY(14px) scale(0.985);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

@keyframes fade-in {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

/* ── Breakpoints ──────────────────────────────────────────────────────────── */

@media (min-width: 40rem) {
  .shell {
    padding-inline: 1.75rem;
  }
  .brand-tagline {
    display: block;
  }
  .antler-tracker {
    display: flex;
  }
  .hud-hint {
    display: inline;
  }
  .footer-base {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
  }
  .footer-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .spec-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 64rem) {
  .shell {
    padding-inline: 2.5rem;
  }
  .section {
    padding-block: 5rem;
  }
  .hero-inner {
    padding-block: 6rem 5rem;
  }
  .navbar-divider,
  .nav-links {
    display: flex;
  }
  .nav-toggle {
    display: none;
  }
  .mobile-nav {
    display: none !important;
  }
  .board {
    aspect-ratio: 16 / 9;
  }
  .split {
    grid-template-columns: 1.1fr 1fr;
    gap: 4rem;
  }
  .trail-detail {
    grid-template-columns: 1.4fr 1fr;
    gap: 3rem;
  }
  .footer-grid {
    grid-template-columns: 1.4fr repeat(3, 1fr);
  }
  .spec-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

/* Respect the OS setting. Ambient motion is atmosphere, never information —
   nothing that moves here is load-bearing, so all of it can stop. */
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
  .ambient-forest {
    display: none;
  }
}
