:root {
  --bg: #12100e;
  --bg-2: #1b1713;
  --bg-3: #261f18;
  --ink: #f7f1e6;
  --muted: #cbbba6;
  --gold: #f0b429;
  --gold-2: #ffe08a;
  --saffron: #e07a2f;
  --emerald: #1f8a70;
  --line: rgba(240, 180, 41, 0.32);
  --shadow: 0 22px 50px rgba(0, 0, 0, 0.35);
  --serif: "Iowan Old Style", Palatino, "Palatino Linotype", "Book Antiqua", Georgia, serif;
  --sans: "Segoe UI", "Noto Sans", "Helvetica Neue", Arial, sans-serif;
  --max: 1120px;
  --pad: 20px;
  color-scheme: dark;
}

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

html { scroll-behavior: smooth; }

body {
  margin: 0;
  /* Short pages (404, contact) would otherwise leave the viewport blank
     below the footer on a tall screen. */
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  background:
    radial-gradient(900px 420px at 90% -10%, rgba(224, 122, 47, 0.16), transparent 60%),
    radial-gradient(700px 380px at -10% 20%, rgba(31, 138, 112, 0.12), transparent 55%),
    var(--bg);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 1.05rem;
  line-height: 1.65;
}

main { flex: 1 0 auto; }

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

a { color: var(--gold-2); text-underline-offset: 3px; }

a:hover { color: white; }

:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 3px;
}

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

.skip:focus {
  width: auto;
  height: auto;
  margin: 0;
  clip: auto;
  overflow: visible;
  left: 12px;
  top: 12px;
  padding: 8px 12px;
  background: var(--gold);
  color: #1a140e;
  z-index: 40;
}

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 30;
  background: rgba(18, 16, 14, 0.92);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line);
}

.header-row {
  display: flex;
  align-items: center;
  gap: 18px;
  min-height: 74px;
}

.brand {
  display: flex;
  align-items: center;
  flex: 0 0 auto;
}

.brand img, .site-footer img { width: 210px; height: auto; }

.nav { margin-left: auto; }

.nav-list {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 2px 0;
  list-style: none;
  margin: 0;
  padding: 0;
}

.nav-list a,
.sub-toggle {
  color: var(--ink);
  text-decoration: none;
  font-size: 0.83rem;
  padding: 8px 5px;
  background: none;
  border: 0;
  font-family: inherit;
  white-space: nowrap;
  cursor: pointer;
}

.nav-list a[aria-current="page"] {
  color: var(--gold-2);
  box-shadow: inset 0 -2px 0 var(--gold);
}

.has-sub { position: relative; display: flex; align-items: center; }

.sub-toggle { color: var(--gold); min-width: 26px; min-height: 36px; line-height: 1; padding: 8px 5px; }

.has-sub.is-open > .sub-toggle { color: var(--gold-2); }

.sub {
  display: none;
  position: absolute;
  top: calc(100% - 2px);
  left: 0;
  min-width: 210px;
  margin: 0;
  padding: 8px;
  list-style: none;
  background: var(--bg-3);
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
}

.sub a { display: block; padding: 8px 10px; }

.has-sub.is-open > .sub { display: block; }

@media (min-width: 1160px) {
  .has-sub:hover > .sub,
  .has-sub:focus-within > .sub { display: block; }
}

.login-btn { margin-left: 8px; }

.nav-toggle {
  display: none;
  margin-left: auto;
  width: 46px;
  height: 46px;
  border: 1px solid var(--line);
  background: transparent;
  color: var(--ink);
  border-radius: 8px;
}

.nav-toggle .burger,
.nav-toggle .burger::before,
.nav-toggle .burger::after {
  display: block;
  width: 18px;
  height: 2px;
  background: var(--gold-2);
  position: relative;
}

.nav-toggle .burger::before,
.nav-toggle .burger::after {
  content: "";
  position: absolute;
  left: 0;
}

.nav-toggle .burger::before { top: -6px; }
.nav-toggle .burger::after { top: 6px; }

.brand { order: 1; flex: 0 0 auto; }
.nav { order: 2; }
.login-btn { order: 3; flex: 0 0 auto; }

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 10px 18px;
  border-radius: 999px;
  text-decoration: none;
  font-weight: 700;
  letter-spacing: 0.01em;
  border: 1px solid transparent;
}

.btn-gold { background: var(--gold); color: #1a140e; }
.btn-gold:hover { background: var(--gold-2); color: #1a140e; }

.btn-ghost {
  background: transparent;
  color: var(--ink);
  border-color: var(--line);
}

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

.hero { padding: 0 0 4px; }

.hero-grid,
.split {
  display: grid;
  grid-template-columns: 1fr;
  gap: 20px;
  align-items: start;
}

.eyebrow {
  margin: 0 0 10px;
  color: var(--gold);
  letter-spacing: 0.16em;
  text-transform: uppercase;
  font-size: 0.78rem;
}

h1, h2, h3 { font-family: var(--serif); font-weight: 600; line-height: 1.15; }

h1 { font-size: clamp(2.1rem, 4vw, 3.5rem); margin: 0 0 16px; }

h2 { font-size: clamp(1.6rem, 2.4vw, 2.15rem); margin: 0 0 14px; }

h3 { font-size: 1.28rem; margin: 1.4em 0 0.4em; }

.lede { font-size: 1.14rem; color: var(--muted); }

.byline {
  margin: 8px 0 0;
  font-size: 0.85rem;
  color: var(--muted);
}

.hero-copy .byline {
  color: #e8ddcd;
  text-shadow:
    0 0 3px rgba(10, 8, 6, 0.95),
    0 1px 3px rgba(10, 8, 6, 0.95),
    0 0 10px rgba(10, 8, 6, 0.85);
}

.hero-actions, .cta-row { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 18px; }

.frame { position: relative; margin: 18px 0 0 16px; }

.hero .frame {
  order: -1;
  margin: 0;
  width: 100%;
}

.hero .frame::before { display: none; }

.frame::before {
  content: "";
  position: absolute;
  inset: 16px -16px -16px 16px;
  border: 1px solid var(--gold);
  border-radius: 8px 42px 8px 8px;
}

.frame img {
  position: relative;
  display: block;
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  border-radius: 8px 46px 8px 8px;
  box-shadow: var(--shadow);
}

.hero .frame img,
.hero .frame.hero-banner img {
  width: 100%;
  height: auto;
  max-height: none;
  aspect-ratio: 16 / 9;
  object-fit: contain;
  object-position: center center;
  border-radius: 0;
  box-shadow: none;
  display: block;
}

.crumbs { padding: 8px 0 0; color: var(--muted); font-size: 0.92rem; }

.crumbs ol { display: flex; flex-wrap: wrap; gap: 6px; list-style: none; margin: 0; padding: 0; }

.crumbs li:not(:last-child)::after { content: "/"; margin-left: 6px; color: var(--saffron); }

.band { padding: 14px 0; }

.band-alt {
  background: linear-gradient(180deg, rgba(240, 180, 41, 0.05), transparent 48%), var(--bg-2);
}

.prose > :first-child { margin-top: 0; }

.prose p { margin: 0 0 0.65em; }

.prose p:last-child { margin-bottom: 0; }

.prose::after {
  content: "";
  display: block;
  clear: both;
}

.prose h2 { clear: both; margin-top: 0.65em; }

.figure-wrap {
  width: 42%;
  max-width: 440px;
  margin: 0.2em 0 0.85em;
}

.figure-wrap img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 8px 28px 8px 8px;
  border: 1px solid var(--gold);
  box-shadow: var(--shadow);
}

.figure-wrap.figure-right {
  float: right;
  margin-left: 1.35rem;
}

.figure-wrap.figure-left {
  float: left;
  margin-right: 1.35rem;
}

.cta-band { clear: both; }

.toc, .note, .card, .faq details, .pay-card {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--line);
  border-radius: 14px;
}

.toc { padding: 10px 14px; }

.toc summary {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  cursor: pointer;
  font-weight: 700;
  list-style: none;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 8px 16px;
  min-height: 44px;
}

.toc summary::-webkit-details-marker { display: none; }

.toc .when-open { display: none; }

.toc[open] .when-closed { display: none; }

.toc[open] .when-open { display: inline; }

.toc ol { margin: 14px 0 6px; padding-left: 18px; }

.toc a { text-decoration: none; }

.grid-3, .grid-2 { display: grid; gap: 16px; }

.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-2 { grid-template-columns: repeat(2, 1fr); }

.card, .pay-card { padding: 16px; }

.card h3, .pay-card h3 { margin-top: 0; }

.card img {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  border-radius: 10px;
  margin-bottom: 10px;
}

.steps { margin: 0; padding: 0; list-style: none; display: grid; gap: 12px; }

.steps li {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 12px;
  align-items: start;
}

.steps b {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: var(--gold);
  color: #1a140e;
  font-family: var(--serif);
}

.note { padding: 14px 16px; color: var(--muted); }

.faq details { padding: 4px 16px; margin-bottom: 10px; }

.faq summary {
  cursor: pointer;
  font-weight: 700;
  display: flex;
  align-items: center;
  min-height: 44px;
  padding: 10px 0;
}

.faq details p { margin-top: 0; }

.cta-band {
  margin: 8px 0 16px;
  padding: 16px 18px;
  border-radius: 18px;
  background:
    linear-gradient(135deg, rgba(224, 122, 47, 0.2), rgba(31, 138, 112, 0.18)),
    var(--bg-3);
  border: 1px solid var(--line);
}

.site-footer {
  border-top: 1px solid var(--line);
  background: #0e0c0a;
  padding: 20px 0 12px;
  color: var(--muted);
  font-size: 0.95rem;
}

.foot-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr);
  align-items: start;
  gap: 20px 48px;
}

/* One link column left, so it runs two-up to match the height of the brand
   block instead of leaving a tall gap beside it. */
.foot-grid > div + div ul {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0 24px;
}

.site-footer h2 { font-size: 1rem; font-family: var(--sans); letter-spacing: 0.08em; text-transform: uppercase; color: var(--gold); }

.site-footer ul { list-style: none; margin: 0; padding: 0; }

.site-footer li { margin: 6px 0; }

/* footer player-help organisations */
.help-strip {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 16px;
  margin-top: 14px;
}

.help-strip-title {
  flex: 0 0 auto;
  margin: 0;
  font-size: 0.74rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(240, 180, 41, 0.78);
}

.help-orgs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.site-footer .help-orgs li { margin: 0; }

.help-org {
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 5px 13px 5px 7px;
  border: 1px solid rgba(240, 180, 41, 0.18);
  border-radius: 999px;
  background: #15120f;
  color: var(--muted);
  text-decoration: none;
  transition: border-color 0.2s ease, background 0.2s ease, color 0.2s ease;
}

.help-org-mark {
  display: grid;
  place-items: center;
  flex: 0 0 auto;
  width: 28px;
  height: 28px;
  border: 1px solid rgba(240, 180, 41, 0.3);
  border-radius: 50%;
  background: #1b1713;
  color: var(--gold);
  font-size: 0.72rem;
  font-weight: 700;
}

.help-org-body { display: grid; line-height: 1.25; }

.help-org-body strong { font-size: 0.86rem; font-weight: 600; color: var(--ink); }

.help-org-body span { font-size: 0.7rem; letter-spacing: 0.03em; color: rgba(203, 187, 166, 0.78); }

.help-org:hover,
.help-org:focus-visible {
  border-color: var(--gold);
  background: #1f1a14;
}

.help-org:hover .help-org-body strong,
.help-org:focus-visible .help-org-body strong,
.help-org:hover .help-org-mark,
.help-org:focus-visible .help-org-mark { color: var(--gold-2); }

.help-org:hover .help-org-mark,
.help-org:focus-visible .help-org-mark { border-color: var(--gold); }

.legal {
  margin-top: 14px;
  padding-top: 14px;
  padding-inline-end: 4.5rem;
  border-top: 1px solid rgba(240, 180, 41, 0.15);
  font-size: 0.88rem;
}

.to-top {
  position: fixed;
  right: max(16px, env(safe-area-inset-right, 0px));
  bottom: max(16px, env(safe-area-inset-bottom, 0px));
  z-index: 25;
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  margin: 0;
  padding: 0;
  border-radius: 50%;
  border: 1px solid var(--line);
  background: #1b1713;
  color: var(--gold);
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.45);
  cursor: pointer;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transform: translateY(6px);
  transition: opacity 0.2s ease, transform 0.2s ease, border-color 0.2s ease, color 0.2s ease, background 0.2s ease, visibility 0s linear 0.2s;
}

.to-top.is-visible {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transform: none;
  transition: opacity 0.2s ease, transform 0.2s ease, border-color 0.2s ease, color 0.2s ease, background 0.2s ease, visibility 0s linear 0s;
}

.to-top:hover,
.to-top:focus-visible {
  color: var(--gold-2);
  border-color: var(--gold);
  background: #261f18;
}

.to-top svg {
  display: block;
  width: 20px;
  height: 20px;
}

.form { display: grid; gap: 12px; max-width: 640px; }

.form label { display: grid; gap: 6px; font-weight: 700; }

.form input, .form select, .form textarea {
  width: 100%;
  padding: 12px 14px;
  border-radius: 10px;
  border: 1px solid var(--line);
  background: #100e0c;
  color: var(--ink);
  font: inherit;
}

.posts { display: grid; gap: 16px; }

.post-card {
  display: grid;
  grid-template-columns: 220px 1fr;
  gap: 16px;
  text-decoration: none;
  color: inherit;
  border: 1px solid var(--line);
  border-radius: 14px;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.03);
}

.post-card img { width: 100%; height: 100%; object-fit: cover; aspect-ratio: 16/9; }

.post-card div { padding: 14px 14px 14px 0; }

/* Ten top-level items plus two dropdown toggles stop fitting one row below 1160px. */
@media (max-width: 1159px) {
  .nav-toggle { display: inline-grid; place-items: center; order: 2; margin-left: auto; }
  .login-btn { order: 3; margin-left: 8px; }
  .header-row { flex-wrap: wrap; }
  .nav {
    display: none;
    order: 4;
    width: 100%;
    margin: 0 0 12px;
  }
  /* The header is sticky, so a tall open menu must scroll inside the
     viewport. Otherwise Payments sits below a short phone and cannot be reached. */
  .nav.is-open {
    display: block;
    max-height: calc(100dvh - 88px);
    overflow-y: auto;
    overscroll-behavior: contain;
  }
  .nav-list { flex-direction: column; align-items: stretch; justify-content: flex-start; flex-wrap: nowrap; }
  .nav-list > li { display: flex; align-items: stretch; }
  .nav-list > li > a,
  .sub a {
    display: flex;
    align-items: center;
    flex: 1 1 auto;
    min-height: 44px;
    padding: 10px 12px;
  }
  .has-sub { flex-wrap: wrap; }
  .sub-toggle { margin-left: auto; min-width: 44px; min-height: 44px; font-size: 1.1rem; }
  .sub { position: static; display: none; width: 100%; box-shadow: none; }
  .has-sub.is-open > .sub { display: block; }
}

@media (max-width: 980px) {
  .hero-grid, .split, .grid-3, .foot-grid { grid-template-columns: 1fr; }
  .grid-2 { grid-template-columns: 1fr; }
  .frame { margin: 8px 0 16px; }
  .post-card { grid-template-columns: 1fr; }
  .post-card div { padding: 0 14px 14px; }
}

@media (max-width: 800px) {
  .figure-wrap,
  .figure-wrap.figure-left,
  .figure-wrap.figure-right {
    float: none;
    width: 100%;
    max-width: 100%;
    margin: 0 0 1rem;
  }
}

@media (max-width: 640px) {
  .brand img, .site-footer img { width: 168px; }
  .foot-grid > div + div ul { grid-template-columns: 1fr; }
  /* Stacked badges look deliberate instead of ragged once they no longer
     share a row. */
  .help-orgs, .help-orgs li { width: 100%; }
  .help-org { width: 100%; }
  .site-footer .foot-grid a {
    display: inline-flex;
    align-items: center;
    min-height: 44px;
  }
  .hero { padding-top: 0; }
  .band { padding: 12px 0; }
  h1 { font-size: 2rem; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .to-top { transition: none; }
}

/* lobby-games */
.lobby-cat + .lobby-cat { margin-top: 14px; }

.lobby-cat h3 {
  margin: 0 0 6px;
  font-size: clamp(1.35rem, 2vw, 1.7rem);
}

.lobby-note {
  margin: 0 0 12px;
  color: var(--muted);
}

.lobby-grid {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 10px;
}

.game-card {
  min-width: 0;
  background: transparent;
  border: 0;
  border-radius: 10px;
  overflow: hidden;
}

.game-media { position: relative; }

.game-media img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  object-position: center;
  margin: 0;
  border-radius: 10px;
}

.game-name {
  position: absolute;
  left: 6px;
  right: 6px;
  bottom: 8px;
  z-index: 1;
  margin: 0;
  color: #fff;
  font-family: "Arial Black", "Segoe UI", sans-serif;
  font-size: clamp(0.68rem, 1vw, 0.92rem);
  font-weight: 900;
  letter-spacing: 0.02em;
  line-height: 1.05;
  text-align: center;
  text-transform: uppercase;
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.9), 0 0 2px #000;
}

.game-actions {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  flex-wrap: wrap;
  z-index: 2;
}

.game-actions .btn {
  min-width: 44px;
  min-height: 44px;
  padding: 8px 16px;
}

.game-actions .btn-ghost {
  color: var(--ink);
  border-color: var(--gold);
  background: rgba(18, 16, 14, 0.35);
}

@media (hover: hover) and (pointer: fine) and (min-width: 761px) {
  .game-actions {
    position: absolute;
    inset: 0;
    background: rgba(18, 16, 14, 0.62);
    opacity: 0;
    pointer-events: none;
    transform: translateY(10px);
    transition: opacity 0.18s ease, transform 0.18s ease;
  }

  .game-card:hover .game-actions,
  .game-card:focus-within .game-actions {
    opacity: 1;
    pointer-events: auto;
    transform: none;
  }
}

@media (max-width: 980px) {
  .lobby-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

@media (max-width: 760px), (hover: none) {
  .lobby-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
  }

  .game-actions {
    position: static;
    opacity: 1;
    pointer-events: auto;
    transform: none;
    background: transparent;
    padding: 8px 8px 0;
  }

  .game-actions .btn {
    flex: 1 1 0;
    padding: 8px 8px;
  }
}

@media (hover: none) and (min-width: 761px) {
  .lobby-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 10px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .game-actions { transition: none; }
}
/* /lobby-games */


/* full-bleed-hero */
.hero {
  display: grid;
  padding: 0;
}

/* Banner and copy share one grid cell, so the text sits on the picture
   and the section is never shorter than the words it holds. */
.hero > .frame.hero-banner,
.hero > .hero-copy,
.hero::after {
  grid-area: 1 / 1;
}

/* The only dark layer over the banner. It is full-bleed because .hero-copy is
   a .wrap, so a background on the copy would stop at the content column.
   It runs the full height because on narrow widths the copy is what sets the
   hero height, and a shorter scrim leaves the eyebrow on bare picture.
   Kept light on purpose: the picture has to read as a picture, so legibility
   comes from the halo on .hero-copy rather than from more opacity here. */
/* .frame img is positioned, so the scrim needs a z-index to sit above it. */
.hero::after {
  content: "";
  align-self: end;
  z-index: 1;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    to top,
    rgba(10, 8, 6, 0.78) 0%,
    rgba(10, 8, 6, 0.66) 28%,
    rgba(10, 8, 6, 0.48) 55%,
    rgba(10, 8, 6, 0.26) 83%,
    rgba(10, 8, 6, 0.16) 100%
  );
  pointer-events: none;
}

.hero .frame.hero-banner {
  margin: 0;
  width: 100%;
  max-width: none;
  align-self: stretch;
}

.hero .frame.hero-banner img {
  width: 100%;
  max-width: none;
  height: clamp(200px, 38vw, 500px);
  min-height: 100%;
  aspect-ratio: auto;
  object-fit: cover;
  object-position: center 68%;
  border-radius: 0;
  box-shadow: none;
  display: block;
}

.hero-copy {
  align-self: end;
  z-index: 2;
  padding-top: 28px;
  padding-bottom: 18px;
}

/* The scrim is kept light so the picture shows through, so legibility comes
   from a tight dark halo on the glyphs instead of a darker banner. */
.hero-copy .eyebrow {
  color: #ffd166;
  text-shadow:
    0 0 1px rgba(10, 8, 6, 1),
    0 0 3px rgba(10, 8, 6, 1),
    0 0 6px rgba(10, 8, 6, 0.95),
    0 1px 10px rgba(10, 8, 6, 0.85),
    0 0 20px rgba(10, 8, 6, 0.6);
}

.hero-copy h1,
.hero-copy .lede {
  text-shadow:
    0 0 3px rgba(10, 8, 6, 0.95),
    0 1px 3px rgba(10, 8, 6, 0.95),
    0 0 10px rgba(10, 8, 6, 0.85),
    0 0 24px rgba(10, 8, 6, 0.7);
}

.hero-copy h1 { margin-bottom: 10px; }

.hero-copy .lede { margin-bottom: 0; color: #e8ddcd; }

.hero-copy .hero-actions { margin-top: 12px; }

@media (max-width: 640px) {
  /* Keeps the eyebrow off the top edge of the picture. */
  .hero-copy { padding-top: 62px; }

  .hero-copy h1 { font-size: 1.7rem; }
  .hero-copy .lede { font-size: 1rem; }
}
/* /full-bleed-hero */

/* game-demo */
.game-demo { margin: 12px 0 0; }

/* The provider owns the game's own proportions, so the container holds a
   readable desktop shape and a taller one on a phone rather than a fixed
   pixel height that would letterbox at one width and overflow at another. */
.game-demo-frame {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 10;
  min-height: 400px;
  max-height: 76vh;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #0d0b09;
}

.game-demo-frame iframe {
  position: absolute;
  inset: 0;
  display: block;
  width: 100%;
  height: 100%;
  border: 0;
}

.game-demo-note {
  margin: 10px 0 0;
  color: var(--muted);
  font-size: 0.95rem;
}

@media (max-width: 760px) {
  .game-demo-frame {
    aspect-ratio: 3 / 4;
    max-height: 70vh;
  }
}
/* /game-demo */
