/* Flight Bulb Games — palette pulled from the logo: warm black, filament amber, bulb-glass brown, wing cream. */
:root {
  --bg: #0e0a07;
  --bg-raised: #17110c;
  --card: #1d150e;
  --line: rgba(243, 226, 200, 0.12);
  --line-strong: rgba(243, 226, 200, 0.22);
  --text: #f4ebde;
  --muted: #bcaa92;
  --amber: #f6c933;
  --amber-glow: rgba(246, 201, 51, 0.45);
  --ember: #d9861c;
  --glass: #8c4518;
  --wing: #ded7cc;
  --ink-on-amber: #1a1006;
  --radius: 18px;
  --max: 1120px;
  --display: "Fraunces", Georgia, "Times New Roman", serif;
  --body: "DM Sans", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  color-scheme: dark;
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: 80px;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--body);
  font-size: 1.0625rem;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

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

a {
  color: inherit;
}

:focus-visible {
  outline: 2px solid var(--amber);
  outline-offset: 3px;
  border-radius: 4px;
}

.wrap {
  width: min(var(--max), 100% - 2.5rem);
  margin-inline: auto;
}

.skip-link {
  position: absolute;
  left: 1rem;
  top: -100px;
  z-index: 100;
  padding: 0.6rem 1rem;
  background: var(--amber);
  color: var(--ink-on-amber);
  border-radius: 8px;
  font-weight: 600;
  text-decoration: none;
}

.skip-link:focus {
  top: 1rem;
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

/* ---------- Header ---------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  background: rgba(14, 10, 7, 0.75);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  height: 64px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  font-family: var(--display);
  font-size: 1.1rem;
  font-weight: 600;
  text-decoration: none;
  white-space: nowrap;
}

.brand img {
  width: 36px;
}

.nav-links {
  display: flex;
  gap: clamp(1rem, 3vw, 2rem);
  margin: 0;
  padding: 0;
  list-style: none;
  font-size: 0.95rem;
}

.nav-links a {
  color: var(--muted);
  text-decoration: none;
  transition: color 0.2s;
}

.nav-links a:hover {
  color: var(--amber);
}

@media (max-width: 560px) {
  .brand span {
    display: none;
  }
}

/* ---------- Buttons ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.85rem 1.5rem;
  border-radius: 999px;
  font-weight: 600;
  text-decoration: none;
  transition: transform 0.2s, box-shadow 0.2s, border-color 0.2s, color 0.2s;
}

.btn-primary {
  background: var(--amber);
  color: var(--ink-on-amber);
  box-shadow: 0 10px 32px -10px var(--amber-glow);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 14px 40px -8px var(--amber-glow);
}

.btn-ghost {
  border: 1px solid var(--line-strong);
}

.btn-ghost:hover {
  border-color: var(--amber);
  color: var(--amber);
}

/* ---------- Hero ---------- */

.hero {
  position: relative;
  isolation: isolate;
  padding: clamp(2.5rem, 7vw, 5rem) 0 clamp(4rem, 10vw, 7rem);
  text-align: center;
}

/* Sparse star field */
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -2;
  background-image:
    radial-gradient(1.5px 1.5px at 8% 18%, rgba(255, 240, 210, 0.7), transparent 60%),
    radial-gradient(1px 1px at 22% 62%, rgba(255, 240, 210, 0.5), transparent 60%),
    radial-gradient(1.5px 1.5px at 35% 9%, rgba(255, 240, 210, 0.55), transparent 60%),
    radial-gradient(1px 1px at 64% 14%, rgba(255, 240, 210, 0.6), transparent 60%),
    radial-gradient(1.5px 1.5px at 78% 46%, rgba(255, 240, 210, 0.5), transparent 60%),
    radial-gradient(1px 1px at 91% 22%, rgba(255, 240, 210, 0.65), transparent 60%),
    radial-gradient(1px 1px at 86% 78%, rgba(255, 240, 210, 0.45), transparent 60%),
    radial-gradient(1.5px 1.5px at 14% 84%, rgba(255, 240, 210, 0.4), transparent 60%),
    radial-gradient(1px 1px at 52% 92%, rgba(255, 240, 210, 0.35), transparent 60%);
}

.flight-path {
  position: absolute;
  inset: 0;
  z-index: -1;
  width: 100%;
  height: 100%;
  pointer-events: none;
}

.flight-path path {
  fill: none;
  stroke: rgba(246, 201, 51, 0.28);
  stroke-width: 2;
  stroke-linecap: round;
  stroke-dasharray: 1 14;
  vector-effect: non-scaling-stroke;
  animation: dash 30s linear infinite;
}

@keyframes dash {
  to {
    stroke-dashoffset: -300;
  }
}

.hero-art {
  position: relative;
  width: min(420px, 74vw);
  margin: 0 auto;
}

/* Filament glow behind the bulb */
.hero-art::before {
  content: "";
  position: absolute;
  left: 50%;
  top: 40%;
  z-index: -1;
  width: 62%;
  aspect-ratio: 1;
  transform: translate(-50%, -50%);
  border-radius: 50%;
  background: radial-gradient(circle, var(--amber-glow), rgba(217, 134, 28, 0.14) 48%, transparent 70%);
  filter: blur(18px);
  animation: flicker 7s ease-in-out infinite;
}

.hero-art img {
  animation: cruise 8s ease-in-out infinite;
}

@keyframes cruise {
  0%,
  100% {
    transform: translateY(0) rotate(0deg);
  }
  50% {
    transform: translateY(-12px) rotate(-0.6deg);
  }
}

@keyframes flicker {
  0%,
  100% {
    opacity: 0.85;
  }
  40% {
    opacity: 1;
  }
  43% {
    opacity: 0.65;
  }
  46% {
    opacity: 1;
  }
  75% {
    opacity: 0.9;
  }
}

.hero h1 {
  margin: clamp(1.75rem, 4vw, 2.5rem) auto 0;
  width: min(540px, 86vw);
}

.tagline {
  margin: 1.5rem 0 0.75rem;
  font-family: var(--display);
  font-size: clamp(1.7rem, 4.4vw, 2.75rem);
  font-weight: 500;
  line-height: 1.15;
  letter-spacing: -0.01em;
}

.tagline em {
  color: var(--amber);
}

.lede {
  max-width: 34rem;
  margin: 0 auto;
  color: var(--muted);
  font-size: clamp(1.05rem, 2vw, 1.2rem);
}

.cta {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.75rem;
  margin-top: 2rem;
}

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

.section {
  padding: clamp(4rem, 9vw, 7rem) 0;
  border-top: 1px solid var(--line);
}

.eyebrow {
  margin: 0 0 0.75rem;
  color: var(--amber);
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.section h2 {
  margin: 0 0 1rem;
  font-family: var(--display);
  font-size: clamp(2rem, 5vw, 3.1rem);
  font-weight: 500;
  line-height: 1.1;
  letter-spacing: -0.015em;
}

.section-intro {
  max-width: 40rem;
  margin: 0;
  color: var(--muted);
}

/* ---------- Games: boarding pass card ---------- */

.passes {
  display: grid;
  gap: 1.5rem;
  margin-top: 2.5rem;
}

.pass {
  position: relative;
  display: grid;
  grid-template-columns: 1fr minmax(220px, 300px);
  overflow: hidden;
  background: linear-gradient(135deg, #22180f, var(--bg-raised));
  border: 1px solid var(--line-strong);
  border-radius: var(--radius);
}

.pass-main,
.pass-stub {
  padding: clamp(1.5rem, 4vw, 2.5rem);
}

/* Artwork panel on the left of a pass (on top below 720px). The art fills the
   whole panel edge to edge, cropped to fit; the panel is kept near square.
   --art-bg (default: the card colour) shows only while an image loads. */
.pass:has(.pass-art) {
  grid-template-columns: minmax(200px, 400px) 1fr minmax(200px, 240px);
}

.pass-art {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  position: relative;
  min-height: 240px;
  overflow: hidden;
  background: var(--art-bg, var(--card));
  border-right: 1px solid var(--line);
}

.pass-art img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* A cut-out on a flat backdrop (a box render) shows whole instead, on --art-bg,
   which already reaches every edge of the panel. */
.pass-art.is-cutout img {
  object-fit: contain;
  padding: 1rem;
}

.pass-art.is-empty {
  gap: 0.75rem;
  padding: 1.5rem;
  background: repeating-linear-gradient(135deg, var(--card) 0 14px, var(--bg-raised) 14px 28px);
}

.pass-art.is-empty img {
  position: static;
  width: 72px;
  height: auto;
  opacity: 0.45;
}

.pass-art.is-empty p {
  margin: 0;
  color: var(--muted);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.pass-main h3 {
  margin: 0 0 0.6rem;
  font-family: var(--display);
  font-size: clamp(1.5rem, 3.5vw, 2rem);
  font-weight: 500;
  line-height: 1.2;
}

.pass-main p {
  margin: 0;
  color: var(--muted);
}

.pass-main .pass-label {
  margin-bottom: 0.9rem;
  color: var(--wing);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  opacity: 0.8;
}

.pass-stub {
  position: relative;
  border-left: 2px dashed var(--line-strong);
}

/* Ticket notches */
.pass-stub::before,
.pass-stub::after {
  content: "";
  position: absolute;
  left: -13px;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: var(--bg);
  border: 1px solid var(--line-strong);
}

.pass-stub::before {
  top: -13px;
}

.pass-stub::after {
  bottom: -13px;
}

.pass-stub dl {
  display: grid;
  gap: 1rem;
  margin: 0;
}

.pass-stub dt {
  color: var(--muted);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.pass-stub dd {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin: 0.15rem 0 0;
  font-weight: 600;
  white-space: nowrap;
}

.status-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--amber);
  box-shadow: 0 0 0 0 var(--amber-glow);
  animation: pulse 2.4s ease-out infinite;
}

@keyframes pulse {
  0% {
    box-shadow: 0 0 0 0 var(--amber-glow);
  }
  80%,
  100% {
    box-shadow: 0 0 0 10px rgba(246, 201, 51, 0);
  }
}

@media (max-width: 720px) {
  .pass,
  .pass:has(.pass-art) {
    grid-template-columns: 1fr;
  }

  .pass-art {
    height: auto;
    aspect-ratio: 1;
    max-height: 420px;
    min-height: 0;
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  .pass-stub {
    border-left: 0;
    border-top: 2px dashed var(--line-strong);
  }

  .pass-stub dl {
    grid-template-columns: repeat(auto-fit, minmax(110px, 1fr));
  }

  .pass-stub dl > div:first-child {
    grid-column: 1 / -1;
  }

  .pass-stub::before,
  .pass-stub::after {
    top: -13px;
    bottom: auto;
  }

  .pass-stub::before {
    left: -13px;
  }

  .pass-stub::after {
    left: auto;
    right: -13px;
  }
}

/* ---------- Games: from the vault ---------- */

.vault-heading {
  margin: clamp(3rem, 7vw, 4.5rem) 0 0.75rem;
  font-family: var(--display);
  font-size: clamp(1.5rem, 3.5vw, 2rem);
  font-weight: 500;
  line-height: 1.2;
}

.vault {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 0.75rem;
  margin: 2rem 0 0;
  padding: 0;
  list-style: none;
}

.vault li {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 0.6rem 1rem;
  padding: 1rem 1.25rem;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 12px;
}

.vault-name {
  font-family: var(--display);
  font-size: 1.15rem;
  font-weight: 500;
}

.vault-name small {
  display: block;
  color: var(--muted);
  font-family: var(--body);
  font-size: 0.8rem;
  font-weight: 400;
}

.vault-status {
  flex-shrink: 0;
  color: var(--muted);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.vault-status.is-active {
  color: var(--amber);
}

/* ---------- Games: the Kickstarter ballot ---------- */

.ballot-early,
.ballot-status {
  margin: 0.75rem 0 0;
  color: var(--muted);
  font-size: 0.9rem;
}

.ballot-note {
  margin: 0.5rem 0 0;
  color: var(--muted);
  font-size: 0.8rem;
}

.ballot-status:empty {
  display: none;
}

.ballot-status {
  color: var(--amber);
}

.vote {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin: 1.25rem 0 0;
}

.vote-btn {
  flex-shrink: 0;
  padding: 0.45rem 1.05rem;
  color: var(--text);
  font: inherit;
  font-size: 0.85rem;
  font-weight: 600;
  background: transparent;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  cursor: pointer;
  transition: border-color 0.2s, background-color 0.2s, color 0.2s;
}

.vote-btn:hover {
  border-color: var(--amber);
}

.vote-btn[aria-pressed="true"] {
  color: var(--ink-on-amber);
  background: var(--amber);
  border-color: var(--amber);
  cursor: default;
}

.vote-btn:disabled {
  opacity: 0.6;
}

.vote-meter {
  flex: 1;
  max-width: 220px;
  height: 6px;
  overflow: hidden;
  background: var(--line);
  border-radius: 999px;
}

.vote-fill {
  display: block;
  height: 100%;
  background: var(--amber);
  border-radius: inherit;
  transition: width 0.4s ease;
}

.vote-share {
  min-width: 3.5ch;
  color: var(--muted);
  font-size: 0.85rem;
  font-variant-numeric: tabular-nums;
}

.vote-mini {
  flex-basis: 100%;
  gap: 0.6rem;
  margin: 0;
}

.vote-mini .vote-btn {
  padding: 0.3rem 0.8rem;
  font-size: 0.75rem;
}

/* The call to play a game before voting for it, just before each vote for a game that can be played online. */
.play-first {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem 0.85rem;
  margin: 1.25rem 0 0;
  color: var(--muted);
  font-size: 0.85rem;
}

.play-first .btn {
  padding: 0.55rem 1.15rem;
  font-size: 0.9rem;
}

.play-first .btn svg {
  flex: none;
}

.play-first + .vote {
  margin-top: 0.85rem;
}

/* "Played it yet?", asked before a vote for a game that can be played online, until it has been (vote.js). */
.play-ask {
  margin: 0.85rem 0 0;
  padding: 0.9rem 1rem;
  background: var(--card);
  border: 1px solid var(--line-strong);
  border-radius: 12px;
  color: var(--muted);
  font-size: 0.9rem;
}

.play-ask p {
  margin: 0 0 0.75rem;
}

.play-ask strong {
  color: var(--text);
}

.play-ask-btns {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.6rem;
}

.play-ask .btn {
  padding: 0.5rem 1.05rem;
  font-size: 0.9rem;
}

.pass-link {
  display: inline-block;
  margin-top: 0.9rem;
  color: var(--amber);
  font-size: 0.9rem;
  font-weight: 600;
  text-decoration: none;
}

.pass-link:hover {
  text-decoration: underline;
}

/* "Read the full pitch" keeps its distance from the "Play it first" button under it (.pass-main p would otherwise
   take the button's margin away). */
.pass-main .play-first {
  margin-top: 1.5rem;
}

/* ---------- The Play page (/play/): every game that can be played in a browser ---------- */

.play-hero .lede {
  margin: 0;
}

.play-games {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 30rem), 1fr));
  gap: 1.5rem;
  margin-top: clamp(2rem, 5vw, 3rem);
}

.play-game {
  display: grid;
  grid-template-columns: minmax(120px, 170px) 1fr;
  overflow: hidden;
  background: linear-gradient(135deg, #22180f, var(--bg-raised));
  border: 1px solid var(--line-strong);
  border-radius: var(--radius);
}

.play-game-art {
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--art-bg, var(--card));
  border-right: 1px solid var(--line);
}

.play-game-art img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  padding: 0.85rem;
}

.play-game-body {
  display: flex;
  flex-direction: column;
  padding: clamp(1.25rem, 3vw, 1.75rem);
}

.play-game h3 {
  margin: 0 0 0.5rem;
  font-family: var(--display);
  font-size: 1.6rem;
  font-weight: 500;
  line-height: 1.2;
}

.play-game-body > p {
  margin: 0;
  color: var(--muted);
  font-size: 0.98rem;
}

.play-game .facts {
  margin-top: 1rem;
}

.play-game-body > .play-game-note {
  margin-top: 0.9rem;
  color: var(--wing);
  font-size: 0.88rem;
}

.play-game-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.75rem;
  margin-top: auto;
  padding-top: 1.5rem;
}

.play-game-actions .btn {
  padding: 0.6rem 1.2rem;
  font-size: 0.92rem;
}

.play-vote .cta {
  justify-content: flex-start;
}

@media (max-width: 560px) {
  .play-game {
    grid-template-columns: 1fr;
  }

  .play-game-art {
    height: 200px;
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }
}

/* ---------- Game pages (/games/ID/) ---------- */

.game-hero {
  padding: clamp(2rem, 6vw, 4rem) 0 clamp(3rem, 8vw, 6rem);
}

.back-link {
  display: inline-block;
  margin-bottom: clamp(1.5rem, 4vw, 2.5rem);
  color: var(--muted);
  font-size: 0.9rem;
  text-decoration: none;
}

.back-link:hover {
  color: var(--text);
}

.game-hero-grid {
  display: grid;
  grid-template-columns: minmax(220px, 380px) 1fr;
  gap: clamp(2rem, 6vw, 4.5rem);
  align-items: center;
}

.game-hero-art {
  padding: clamp(1rem, 3vw, 2rem);
  background: var(--art-bg, var(--card));
  border: 1px solid var(--line-strong);
  border-radius: var(--radius);
}

.game-hero-art img {
  width: 100%;
}

.game-hero h1 {
  margin: 0;
  font-family: var(--display);
  font-size: clamp(2.8rem, 8vw, 4.75rem);
  font-weight: 500;
  line-height: 1;
  letter-spacing: -0.02em;
}

.game-tagline {
  margin: 0.75rem 0 1rem;
  font-family: var(--display);
  font-size: clamp(1.4rem, 3.5vw, 2rem);
  font-weight: 500;
  line-height: 1.2;
}

.game-tagline em {
  color: var(--amber);
}

.game-hero .lede {
  max-width: 36rem;
  margin: 0;
}

.facts {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin: 1.5rem 0 0;
  padding: 0;
  list-style: none;
}

.facts li {
  padding: 0.35rem 0.9rem;
  color: var(--wing);
  font-size: 0.85rem;
  font-weight: 500;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
}

.facts a {
  color: var(--amber);
  text-decoration: none;
}

.facts a:hover {
  text-decoration: underline;
}

/* Who made each game: a gear for its designer, a paintbrush for its artist (on the passes and the game pages). */
.icon-defs {
  position: absolute;
  width: 0;
  height: 0;
  overflow: hidden;
}

.credits {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem 1.1rem;
  margin: 0.9rem 0 0;
  padding: 0;
  color: var(--wing);
  font-size: 0.88rem;
  list-style: none;
}

.credits li {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
}

.credit-icons {
  display: inline-flex;
  gap: 0.2rem;
}

.credit-icon {
  flex: none;
  width: 1.05em;
  height: 1.05em;
  fill: var(--amber);
}

.facts + .credits {
  margin-top: 1rem;
}

.vote-hero {
  margin-top: 1.75rem;
}

.vote-hint {
  margin: 0.6rem 0 0;
  color: var(--muted);
  font-size: 0.85rem;
}

.reasons,
.variants {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1.25rem;
  margin: 2.5rem 0 0;
  padding: 0;
  list-style: none;
}

.reasons,
.variants.pairs {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.reasons li,
.variants li {
  padding: 1.5rem 1.75rem;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.reasons h3,
.variants h3 {
  margin: 0 0 0.4rem;
  font-family: var(--display);
  font-size: 1.3rem;
  font-weight: 500;
}

.reasons p,
.variants p {
  margin: 0;
  color: var(--muted);
}

.variants .variant-players {
  margin-top: 0.75rem;
  color: var(--amber);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.figure {
  margin: 2.5rem 0 0;
}

.figure img {
  width: 100%;
  border-radius: 12px;
}

.figure.is-narrow {
  max-width: 720px;
}

.figure figcaption {
  margin-top: 0.6rem;
  color: var(--muted);
  font-size: 0.85rem;
}

.figure.is-small {
  max-width: 480px;
}

/* Two diagrams side by side, one under the other below 640px. */
.figure-pair {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1.5rem;
  align-items: start;
  max-width: 900px;
  margin-top: 2.5rem;
}

.figure-pair .figure {
  margin: 0;
}

/* A dictionary entry, as a game's booklet opens with one. */
.definition {
  max-width: 40rem;
  margin: 1.5rem 0;
  padding: 1rem 1.25rem;
  color: var(--wing);
  font-family: var(--display);
  font-size: 1.1rem;
  line-height: 1.5;
  background: var(--card);
  border-left: 3px solid var(--amber);
  border-radius: 0 12px 12px 0;
}

.definition dfn {
  color: var(--text);
  font-style: normal;
  font-weight: 600;
}

.definition .pron {
  color: var(--muted);
}

.contents {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 0.5rem 2rem;
  margin: 2rem 0 0;
  padding: 0;
  list-style: none;
  color: var(--muted);
}

.contents li {
  padding-left: 1.1rem;
  text-indent: -1.1rem;
}

.contents li::before {
  content: "✦ ";
  color: var(--amber);
}

.contents strong {
  color: var(--text);
}

.downloads {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 1.75rem;
}

.download-size {
  font-size: 0.8rem;
  font-weight: 500;
  opacity: 0.7;
}

.download-note {
  margin: 0.75rem 0 0;
  color: var(--muted);
  font-size: 0.85rem;
}

.section-intro a {
  color: var(--amber);
}

.game-story {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: clamp(2rem, 6vw, 4rem);
}

@media (max-width: 720px) {
  .game-hero-grid {
    grid-template-columns: 1fr;
  }

  .reasons,
  .variants.pairs {
    grid-template-columns: 1fr;
  }

  .game-hero-art {
    max-width: 320px;
  }
}

/* Placeholder art: every picture on a page still in design says so. */
.placeholder-tag {
  display: inline-block;
  margin-right: 0.4rem;
  padding: 0.05rem 0.5rem;
  color: var(--amber);
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  vertical-align: 0.1em;
  border: 1px solid rgba(246, 201, 51, 0.5);
  border-radius: 999px;
}

figure.game-hero-art {
  margin: 0;
}

.game-hero-art figcaption,
.figure-note {
  margin: 0.75rem 0 0;
  color: var(--muted);
  font-size: 0.85rem;
}

.art-notice {
  max-width: 36rem;
  margin: 1.5rem 0 0;
  padding: 0.75rem 1rem;
  color: var(--wing);
  font-size: 0.9rem;
  background: var(--card);
  border-left: 3px solid var(--amber);
  border-radius: 0 12px 12px 0;
}

.art-notice strong {
  color: var(--text);
}

/* Song of Avenir: the five colors of dice, the Guild's thirty, and the six heirs. */
.voices {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 1rem;
  margin: 2rem 0;
  padding: 0;
  list-style: none;
}

.voices li {
  padding: 1.25rem;
  text-align: center;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.voices img {
  width: 64px;
  margin: 0 auto 0.75rem;
}

.voices h3 {
  margin: 0;
  font-family: var(--display);
  font-size: 1.2rem;
  font-weight: 500;
}

.voices h3 span {
  display: block;
  color: var(--muted);
  font-family: var(--body);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.voices p {
  margin: 0.5rem 0 0;
  color: var(--muted);
  font-size: 0.95rem;
}

.roster-wrap {
  max-width: 760px;
  margin-top: 2.5rem;
  overflow-x: auto;
}

.roster {
  width: 100%;
  border-collapse: separate;
  border-spacing: 4px;
  table-layout: fixed;
}

.roster th,
.roster td {
  padding: 0.55rem 0.25rem;
  text-align: center;
  border-radius: 10px;
}

.roster thead th {
  color: var(--muted);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.roster thead th:first-child {
  width: 7.5rem;
}

.roster img {
  width: 36px;
  margin: 0 auto 0.3rem;
}

.roster tbody th {
  color: var(--wing);
  font-size: 0.85rem;
  font-weight: 500;
  background: var(--bg-raised);
}

.roster tbody th img {
  width: 30px;
}

.roster td {
  color: var(--text);
  font-family: var(--display);
  font-size: 1rem;
  background: var(--card);
  border: 1px solid var(--line);
}

.souls .soul-voices {
  display: flex;
  gap: 0.4rem;
  margin: 0 0 0.75rem;
}

.souls .soul-voices img {
  width: 32px;
}

.souls .soul-name {
  margin: 0 0 0.15rem;
  color: var(--amber);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.reason-icon {
  width: 40px;
  margin-bottom: 0.75rem;
}

.contents.endings {
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  max-width: 760px;
}

.contents.endings li {
  font-family: var(--display);
  font-size: 1.15rem;
}

@media (max-width: 520px) {
  .roster {
    border-spacing: 2px;
  }

  .roster thead th:first-child {
    width: 4rem;
  }

  .roster thead th {
    font-size: 0.6rem;
    letter-spacing: 0.04em;
  }

  .roster img {
    width: 26px;
  }

  .roster tbody th {
    font-size: 0.62rem;
  }

  .roster tbody th img {
    width: 22px;
  }

  .roster td {
    font-size: 0.78rem;
  }
}

/* ---------- About ---------- */

.promise {
  margin: 1.75rem 0 0;
  font-family: var(--display);
  font-size: clamp(1.5rem, 3.5vw, 2rem);
  font-weight: 500;
  line-height: 1.15;
}

.promise em {
  color: var(--amber);
}

.steps {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1.25rem;
  margin: 2.5rem 0 0;
  padding: 0;
  list-style: none;
}

.steps li {
  padding: 1.75rem;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  transition: border-color 0.25s, transform 0.25s;
}

.steps li:hover {
  border-color: rgba(246, 201, 51, 0.4);
  transform: translateY(-3px);
}

.step-num {
  display: block;
  margin-bottom: 1.25rem;
  color: var(--amber);
  font-family: var(--display);
  font-size: 0.95rem;
  font-weight: 600;
}

.steps h3 {
  margin: 0 0 0.4rem;
  font-family: var(--display);
  font-size: 1.4rem;
  font-weight: 500;
}

.steps p {
  margin: 0;
  color: var(--muted);
}

/* ---------- Contact ---------- */

.contact {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  text-align: center;
}

.contact::before {
  content: "";
  position: absolute;
  left: 50%;
  bottom: -40%;
  z-index: -1;
  width: min(900px, 140vw);
  aspect-ratio: 1;
  transform: translateX(-50%);
  border-radius: 50%;
  background: radial-gradient(circle, rgba(246, 201, 51, 0.16), rgba(140, 69, 24, 0.08) 45%, transparent 68%);
}

.contact .section-intro {
  margin: 0 auto 2rem;
}

.contact .btn {
  overflow-wrap: anywhere;
}

/* Thicket: the four forests' medallions, and rows of creature cards. */
.forests {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1rem;
  margin: 2rem 0 0;
  padding: 0;
  list-style: none;
}

.forests li {
  padding: 1.5rem 1.25rem;
  text-align: center;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.forests img {
  width: min(160px, 60%);
  margin: 0 auto 1rem;
  border-radius: 50%;
}

.forests h3 {
  margin: 0;
  font-family: var(--display);
  font-size: 1.3rem;
  font-weight: 500;
}

.forests h3 span {
  display: block;
  color: var(--muted);
  font-family: var(--body);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.forests p {
  margin: 0.5rem 0 0;
  color: var(--muted);
  font-size: 0.95rem;
}

.card-row {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
  max-width: 820px;
  margin: 2rem 0 0;
  padding: 0;
  list-style: none;
}

.card-row.is-three {
  grid-template-columns: repeat(3, 1fr);
  max-width: 620px;
}

.card-row img {
  width: 100%;
  height: auto;
  border-radius: 14px;
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.45);
}

@media (max-width: 560px) {
  .card-row {
    grid-template-columns: repeat(2, 1fr);
  }

  .card-row.is-three {
    grid-template-columns: repeat(3, 1fr);
    gap: 0.6rem;
  }
}

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

.site-footer {
  padding: 2rem 0 2.5rem;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 0.9rem;
}

.footer-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: 0.6rem;
}

.footer-brand img {
  width: 28px;
}

.footer-text {
  display: grid;
  gap: 0.1rem;
}

.footer-credit {
  font-size: 0.8rem;
}

.footer-inner a {
  color: var(--muted);
  text-decoration: none;
}

.footer-inner a:hover {
  color: var(--amber);
}

/* ---------- 404 ---------- */

.lost {
  display: grid;
  place-items: center;
  min-height: calc(100vh - 64px);
  padding: 3rem 0;
  text-align: center;
}

.lost img {
  width: min(220px, 50vw);
  margin: 0 auto 2rem;
  transform: rotate(28deg);
  filter: drop-shadow(0 0 40px rgba(246, 201, 51, 0.25));
}

.lost h1 {
  margin: 0 0 0.5rem;
  font-family: var(--display);
  font-size: clamp(2.2rem, 6vw, 3.5rem);
  font-weight: 500;
  line-height: 1.1;
}

.lost p {
  margin: 0 0 2rem;
  color: var(--muted);
}

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

  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
  }
}
