/* The game landing page owns its composition; shared reading and account pages
   retain game.css. Content, module visibility and ordering remain CMS-owned. */
[data-theme=game] .game-home-page {
  --home-dark: #30251f;
  --home-dark-soft: #3d3026;
  --home-gold: #dfb855;
  --home-paper: #f5e9cb;
  --home-space: clamp(64px, 7vw, 112px);
  background: var(--home-paper);
}
[data-theme=game] .game-home-page .site-header {
  min-height: 96px;
  padding-block: 8px;
  background: var(--home-dark);
  border-bottom: 1px solid #83633c;
}
[data-theme=game] .game-home-page .brand-logo { width: 100px; }
[data-theme=game] .game-home-page .site-header nav a { padding-block: 10px; }
.game-home-module { scroll-margin-top: 24px; }
[data-theme=game] .game-home-module--hero { background: var(--home-dark); color: #f9edd3; }
[data-theme=game] .game-home .game-home-hero {
  width: min(1440px, 100%);
  grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr);
  padding: 0;
  gap: 0;
  min-height: 580px;
  align-items: stretch;
}
[data-theme=game] .game-home-hero .hero-copy {
  padding: 72px 48px 64px max(40px, calc((1440px - 1200px) / 2));
  align-self: center;
}
[data-theme=game] .game-home-hero .hero-copy h1 {
  color: #fff0cf;
  font-size: clamp(2.3rem, 3.6vw, 3.8rem);
  line-height: 1.4;
  letter-spacing: -.02em;
  margin-bottom: 24px;
}
[data-theme=game] .game-home-hero .hero-copy p {
  color: #dac4a4;
  font-size: 1rem;
  line-height: 2;
  max-width: 37ch;
  margin-bottom: 32px;
}
[data-theme=game] .game-home-hero .button { padding: 16px 28px; gap: 32px; }
[data-theme=game] .game-home-hero .button:hover { color: #392817; }
[data-theme=game] .game-home .game-home-cover {
  width: 100%;
  max-width: none;
  display: flex;
  flex-direction: column;
  position: relative;
  margin: 0;
}
[data-theme=game] .game-home-cover .hero-art {
  flex: 1;
  min-height: 520px;
  aspect-ratio: auto;
  box-shadow: none;
  border: 0;
  background: #4b3526;
}
[data-theme=game] .game-home-cover .hero-art::before { display: none; }
[data-theme=game] .game-home-cover .hero-image { object-position: center; }
[data-theme=game] .game-home-cover figcaption {
  margin: 0;
  padding: 8px 16px;
  color: #ead6b6;
  background: var(--home-dark-soft);
  font-size: .75rem;
}
[data-theme=game] .game-home-cover .realm-logo { width: min(72%, 412px); }
[data-theme=game] .game-home-wayfinding {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 48px;
  padding-block: 16px;
  border-top: 1px solid #80623e;
}
.game-home-wayfinding a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  color: #ead2a4;
  text-decoration: none;
  font-size: .9rem;
}
.game-home-wayfinding a:hover { color: #fff3d7; text-decoration: underline; }
.game-home-module--hero a:focus-visible { outline-color: #f5d88b; }
[data-theme=game] .game-home .game-home-section {
  padding-block: var(--home-space);
  border-top: 0;
}
[data-theme=game] .game-home-heading { max-width: 760px; margin-bottom: 48px; }
[data-theme=game] .game-home-heading h2,
[data-theme=game] .game-home .section-heading h2 {
  font-size: clamp(1.8rem, 3vw, 2.7rem);
  margin-bottom: 16px;
  color: #4e3525;
}
[data-theme=game] .game-home-heading p { max-width: 64ch; line-height: 1.9; }
[data-theme=game] .game-journey-steps { gap: 0; }
[data-theme=game] .game-journey-steps li { padding: 32px 32px 0 0; border-top: 1px solid #b68b4e; }
[data-theme=game] .game-journey-steps li:last-child { padding-right: 0; }
[data-theme=game] .game-journey-steps li::before {
  margin-top: -51px;
  margin-bottom: 28px;
  width: 38px;
  height: 38px;
  border: 1px solid #8c6534;
  background: var(--home-paper);
  color: #6e4827;
  font-size: 1.1rem;
  border-radius: 50%;
}
[data-theme=game] .game-journey-steps h3 { font-size: 1.5rem; }
[data-theme=game] .game-journey-steps p { padding-right: 12px; }
[data-theme=game] .game-journey-steps a { margin-top: 20px; }
[data-theme=game] .game-home-module--listing { background: #ebdbb8; }
[data-theme=game] .game-home-module--listing .section { padding-block: 56px; }
[data-theme=game] .game-home .editorial-list > a { padding-block: 24px; }
[data-theme=game] .game-home-module--shortcuts .section { padding-block: 56px; }
[data-theme=game] .game-home .shortcut-list { background: transparent; box-shadow: none; border: 0; }
[data-theme=game] .game-home .shortcut-list > a { padding: 16px; }
[data-theme=game] .game-home .intro-section { padding-block: 48px 64px; border-top: 1px solid #b88a50; }
[data-theme=game] .game-home-page .site-footer { margin-block: 0; }
@media (min-width: 1441px) {
  [data-theme=game] .game-home-hero .hero-copy { padding-left: 120px; }
}
@media (max-width: 1100px) {
  [data-theme=game] .game-home-hero .hero-copy { padding: 48px 32px 48px 24px; }
  [data-theme=game] .game-home .game-home-hero { min-height: 520px; }
  [data-theme=game] .game-home-cover .hero-art { min-height: 460px; }
}
@media (max-width: 800px) {
  [data-theme=game] .game-home-page .site-header { min-height: 80px; }
  [data-theme=game] .game-home-page .brand-logo { width: 80px; }
  [data-theme=game] .game-home .game-home-hero { grid-template-columns: 1fr; }
  [data-theme=game] .game-home-hero .hero-copy { padding: 40px 24px; }
  [data-theme=game] .game-home-hero .hero-copy h1 { font-size: clamp(2.1rem, 5.5vw, 3rem); }
  [data-theme=game] .game-home-hero .hero-copy p { max-width: 58ch; }
  [data-theme=game] .game-home-cover .hero-art { min-height: 0; aspect-ratio: 4/3; max-height: 500px; }
  [data-theme=game] .game-home-wayfinding { gap: 16px 28px; flex-wrap: wrap; padding-block: 12px; }
  [data-theme=game] .game-home-heading { margin-bottom: 40px; }
  [data-theme=game] .game-journey-steps { gap: 0; }
  [data-theme=game] .game-journey-steps li:nth-child(n) { padding: 0 0 36px 60px; border-top: 0; }
  [data-theme=game] .game-journey-steps li:last-child { padding-bottom: 0; }
  [data-theme=game] .game-journey-steps li::before { position: absolute; top: 0; left: 0; margin: 0; }
  [data-theme=game] .game-journey-steps li:not(:last-child)::after { content: ''; position: absolute; top: 46px; bottom: 8px; left: 19px; border-left: 1px solid #b68b4e; }
}
@media (max-width: 500px) {
  [data-theme=game] .game-home-hero .hero-copy { padding: 36px 18px; }
  [data-theme=game] .game-home-wayfinding { gap: 8px 20px; }
  [data-theme=game] .game-home-wayfinding a { font-size: .8rem; }
  [data-theme=game] .game-home .shortcut-list > a { padding: 20px 0; }
  [data-theme=game] .game-home .section-heading { align-items: baseline; flex-wrap: wrap; }
}

/* ---------------------------------------------------------------- 2026-11-28 redesign
   Cinematic dark-wood bands alternate with parchment reading bands. Every effect is an
   enhancement: no-script, phones and reduced motion keep the poster, all text and links. */
[data-theme=game] .game-home-page {
  --wood: #21160f;
  --wood-2: #2e2016;
  --wood-3: #3d2b1d;
  --parch: #f1dfb3;
  --ink: #3a2617;
  --ink-soft: #6b5038;
  --gold: #e9b949;
  --gold-hi: #ffe08a;
  --gold-lo: #9a6a22;
  --gold-ink: #7a5216;
  --on-wood: #f3e4c2;
  --on-wood-soft: #c9b28a;
}
[data-theme=game] .game-home-page .site-header { background: var(--wood); border-bottom-color: var(--wood-3); }
[data-theme=game] .game-home-module--hero { background: var(--wood); }
.game-eyebrow {
  margin: 0 0 10px;
  font: 700 .95rem/1.4 var(--display);
  letter-spacing: .12em;
  color: var(--gold-ink);
}
.game-tag {
  display: inline-block;
  font: 700 .8rem/1.4 var(--display);
  letter-spacing: .1em;
  color: var(--gold-ink);
}
.game-image-note { margin: 28px 0 0; font-size: .8rem; color: var(--ink-soft); }

/* Hero */
.game-hero-cinematic {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  display: grid;
  align-items: end;
  min-height: clamp(540px, 78vh, 760px);
  color: var(--on-wood);
  background: #000;
}
.game-hero-media { position: absolute; inset: 0; z-index: -3; }
.game-hero-poster, .game-hero-video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.game-hero-video { opacity: 0; transition: opacity .6s; }
.game-hero-cinematic.is-playing .game-hero-video { opacity: 1; }
.game-hero-cinematic::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -2;
  background:
    linear-gradient(90deg, rgba(18, 11, 7, .92) 0%, rgba(18, 11, 7, .58) 46%, rgba(18, 11, 7, .1) 78%),
    linear-gradient(0deg, var(--wood) 0%, rgba(33, 22, 15, 0) 34%);
}
.game-hero-embers { position: absolute; inset: 0; z-index: -1; width: 100%; height: 100%; pointer-events: none; }
.game-hero-inner { padding-block: 72px 40px; }
.game-hero-copy { max-width: 620px; display: grid; gap: 20px; justify-items: start; }
.game-hero-logo {
  width: min(260px, 60vw);
  height: auto;
  image-rendering: pixelated;
  filter: drop-shadow(0 6px 24px rgba(182, 92, 255, .4));
}
[data-theme=game] .game-hero-cinematic h1 {
  margin: 0;
  color: #fff4d6;
  font-size: clamp(2.2rem, 5vw, 4rem);
  font-weight: 900;
  line-height: 1.18;
  letter-spacing: .01em;
  text-shadow: 0 2px 0 #000, 0 0 40px rgba(233, 185, 73, .25);
}
.game-hero-lede { margin: 0; max-width: 34em; font-size: 1.06rem; line-height: 1.85; color: var(--on-wood); }
.game-hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  max-width: 100%;
  margin: 0;
  padding: 6px 12px;
  font: 600 .85rem/1.5 var(--body);
  letter-spacing: .04em;
  color: var(--gold-hi);
  background: rgba(20, 13, 8, .78);
  border: 1px solid var(--gold-lo);
}
.game-hero-badge span {
  flex: none;
  width: 8px;
  height: 8px;
  background: #8fdc6a;
  box-shadow: 0 0 0 2px rgba(143, 220, 106, .25);
}
.game-home-hero .game-hero-badge { margin-bottom: 20px; }
.game-hero-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 14px; }
[data-theme=game] .game-hero-cta { padding: 14px 28px; }
.game-hero-footnote {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 8px 20px;
  padding-bottom: 14px;
  min-height: 30px;
}
.game-hero-caption { margin: 0 0 0 auto; font-size: .75rem; color: var(--on-wood-soft); }
/* The render carries the same notice in its corner: while that corner is fully on screen the page text
   stays for screen readers only, and the bottom fade is lightened so the baked notice stays legible. */
.game-hero-cinematic.is-watermark-visible .game-hero-caption {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}
.game-hero-cinematic.is-watermark-visible::after {
  background:
    linear-gradient(90deg, rgba(18, 11, 7, .92) 0%, rgba(18, 11, 7, .58) 46%, rgba(18, 11, 7, .1) 78%),
    linear-gradient(0deg, rgba(33, 22, 15, .55) 0%, rgba(33, 22, 15, 0) 26%);
}
[data-theme=game] .game-motion-toggle {
  min-height: 32px;
  padding: 4px 12px;
  font-size: .75rem;
  color: var(--on-wood);
  background: rgba(33, 22, 15, .7);
  border: 1px solid var(--gold-lo);
  box-shadow: none;
}
[data-theme=game] .game-motion-toggle:hover { color: var(--wood); background: var(--gold); }
.game-hero-cinematic a:focus-visible, .game-hero-cinematic button:focus-visible { outline-color: var(--gold-hi); }

/* Copy field (server address, QQ number) */
.game-copy-field {
  display: inline-flex;
  align-items: stretch;
  max-width: 100%;
  background: rgba(0, 0, 0, .55);
  border: 1px solid var(--gold-lo);
}
.game-copy-value {
  padding: 11px 14px;
  font: 700 1rem/1.4 Consolas, "SFMono-Regular", Menlo, monospace;
  color: var(--gold-hi);
  user-select: all;
  overflow-wrap: anywhere;
  min-width: 0;
}
[data-theme=game] .game-copy-button {
  min-height: 44px;
  padding: 0 16px;
  gap: 0;
  font-size: .85rem;
  color: var(--on-wood);
  background: var(--wood-3);
  border: 0;
  border-left: 1px solid var(--gold-lo);
  border-radius: 0;
  box-shadow: none;
}
[data-theme=game] .game-copy-button:hover { color: var(--wood); background: var(--gold); }
.game-home-hero .game-copy-field { margin-top: 20px; }
.game-copy-field--large { flex-direction: column; align-items: flex-start; gap: 14px; background: none; border: 0; }
.game-copy-field--large .game-copy-value {
  padding: 0;
  font-size: clamp(1.8rem, 5vw, 2.6rem);
  letter-spacing: .06em;
}
[data-theme=game] .game-copy-field--large .game-copy-button {
  border: 1px solid #71533a;
  background: var(--gold);
  color: var(--wood);
  box-shadow: inset 0 0 0 2px #f5d98e, inset 0 -4px 0 #b6884d;
  padding: 0 24px;
}
[data-theme=game] .game-copy-field--large .game-copy-button:hover { background: var(--gold-hi); }

/* Wayfinding under the cinematic hero */
[data-theme=game] .game-home-module--hero .game-home-wayfinding { border-top-color: var(--wood-3); }

/* Section headings on dark bands */
[data-theme=game] .game-join .game-home-heading h2,
[data-theme=game] .game-features .game-home-heading h2,
[data-theme=game] .game-gallery .game-home-heading h2 { color: #fff1cf; }
[data-theme=game] .game-join .game-home-heading p,
[data-theme=game] .game-features .game-home-heading p,
[data-theme=game] .game-gallery .game-home-heading p { color: var(--on-wood-soft); }
.game-join .game-eyebrow, .game-features .game-eyebrow, .game-gallery .game-eyebrow,
.game-boss .game-eyebrow, .game-community-card .game-eyebrow { color: var(--gold); }
.game-join .game-tag, .game-features .game-tag { color: var(--gold); }
.game-features .game-image-note, .game-gallery .game-image-note { color: var(--on-wood-soft); }

/* Join: horizontal steps */
[data-theme=game] .game-home-module--steps { background: var(--wood-2); border-block: 1px solid var(--wood-3); color: var(--on-wood); }
[data-theme=game] .game-home .game-join { padding-block: 56px; }
[data-theme=game] .game-join .game-home-heading { margin-bottom: 32px; }
.game-steps {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: minmax(0, 1fr);
  gap: 24px;
  list-style: none;
  margin: 0;
  padding: 0;
}
.game-step { display: grid; gap: 6px; align-content: start; min-width: 0; padding-top: 16px; border-top: 1px solid var(--gold-lo); }
.game-step-index { font: 700 1.9rem/1 var(--display); color: var(--gold); filter: drop-shadow(2px 2px 0 #120a05); }
[data-theme=game] .game-step h3 { margin: 4px 0 0; font-family: var(--display); font-size: 1.15rem; color: #fff1cf; }
.game-step p { margin: 0; font-size: .9rem; line-height: 1.7; color: var(--on-wood-soft); }
[data-theme=game] .game-step a { display: inline-flex; align-items: center; min-height: 44px; font-size: .85rem; font-weight: 600; color: var(--gold); }
[data-theme=game] .game-step a:hover { color: var(--gold-hi); }
.game-home-module--steps a:focus-visible { outline-color: var(--gold-hi); }

/* Journey: illustrated route */
[data-theme=game] .game-home-module--route {
  background-color: var(--parch);
  background-image: radial-gradient(circle at 18% 8%, rgba(255, 255, 255, .35), transparent 40%),
    radial-gradient(circle at 82% 92%, rgba(154, 106, 34, .18), transparent 45%);
  color: var(--ink);
}
.game-route { position: relative; }
.game-route-line { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; pointer-events: none; }
.game-route-track { fill: none; stroke: rgba(58, 38, 23, .28); stroke-width: 3; stroke-dasharray: 2 10; stroke-linecap: round; }
.game-route-glow { fill: none; stroke: var(--gold-lo); stroke-width: 4; stroke-linecap: round; }
.game-route:not(.is-enhanced) .game-route-line { display: none; }
.game-route-stops {
  position: relative;
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: minmax(0, 1fr);
  gap: 20px;
  list-style: none;
  margin: 0;
  padding: 0;
}
.game-route-stop { display: grid; gap: 10px; align-content: start; justify-items: center; min-width: 0; text-align: center; }
.game-route-stop:nth-child(even) { margin-top: 72px; }
.game-route-node {
  width: 18px;
  height: 18px;
  background: var(--parch);
  border: 3px solid var(--ink-soft);
  transform: rotate(45deg);
  transition: background .4s, border-color .4s, box-shadow .4s;
}
.game-route:not(.is-enhanced) .game-route-node, .game-route-stop.is-lit .game-route-node {
  background: var(--gold);
  border-color: var(--gold-lo);
  box-shadow: 0 0 0 4px rgba(233, 185, 73, .25), 0 0 18px var(--gold);
}
.game-route-thumb {
  width: 100%;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  display: grid;
  place-items: center;
  background: var(--wood-3);
  box-shadow: 0 0 0 2px var(--gold-lo), 0 0 0 4px var(--parch), 0 0 0 6px var(--ink-soft);
  transition: transform .3s, box-shadow .3s;
}
.game-route-thumb img { width: 100%; height: 100%; object-fit: cover; }
/* Stops without a scene render get a chapter emblem instead of an invented scene. */
.game-route-thumb--emblem {
  position: relative;
  background:
    radial-gradient(circle at 50% 46%, rgba(233, 185, 73, .22), transparent 58%),
    repeating-linear-gradient(45deg, rgba(255, 224, 138, .04) 0 6px, transparent 6px 12px),
    linear-gradient(160deg, #3d2b1d, #1d130c);
}
.game-route-thumb--emblem::before {
  content: "";
  position: absolute;
  inset: 8px;
  border: 1px solid rgba(233, 185, 73, .55);
  box-shadow: inset 0 0 0 3px rgba(33, 22, 15, .6), inset 0 0 0 4px rgba(154, 106, 34, .5);
  pointer-events: none;
}
.game-route-emblem { position: relative; display: grid; justify-items: center; gap: 6px; padding: 0 14px; }
.game-route-emblem::before {
  content: "";
  width: 10px;
  height: 10px;
  margin-bottom: 2px;
  background: var(--gold);
  transform: rotate(45deg);
  box-shadow: 0 0 12px rgba(233, 185, 73, .6);
}
.game-route-emblem-mark {
  font-family: var(--display);
  font-size: clamp(1.25rem, 2.1vw, 1.7rem);
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: .06em;
  color: var(--gold-hi);
  text-shadow: 0 2px 0 #000, 0 0 18px rgba(233, 185, 73, .35);
  text-align: center;
}
.game-route-emblem-name {
  padding-top: 6px;
  border-top: 1px solid rgba(233, 185, 73, .45);
  font-size: .78rem;
  letter-spacing: .12em;
  color: var(--on-wood-soft);
  text-align: center;
}
.game-route-stop:hover .game-route-thumb {
  transform: translateY(-4px) scale(1.03);
  box-shadow: 0 0 0 2px var(--gold), 0 0 0 4px var(--parch), 0 0 0 6px var(--gold-lo), 0 12px 24px rgba(58, 38, 23, .3);
}
[data-theme=game] .game-route-stop h3 { margin: 2px 0 0; font-family: var(--display); font-size: 1.2rem; color: #4e3525; }
.game-route-stop p { margin: 0; font-size: .88rem; line-height: 1.65; color: var(--ink-soft); }
[data-theme=game] .game-route-stop a { display: inline-flex; align-items: center; min-height: 44px; font-size: .85rem; font-weight: 600; color: #6e4827; }

/* Journey cards keep their 10-23 look; optional thumbnails sit above the title. */
.game-journey-thumb { margin-bottom: 16px; aspect-ratio: 4 / 3; overflow: hidden; box-shadow: 0 0 0 2px #b68b4e; }
.game-journey-thumb img { width: 100%; height: 100%; object-fit: cover; }

/* Feature cards */
[data-theme=game] .game-home-module--feature_grid { background: var(--wood); color: var(--on-wood); }
.game-feature-cards {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 22px;
  list-style: none;
  margin: 0;
  padding: 0;
}
.game-feature-card {
  position: relative;
  display: grid;
  grid-template-rows: auto 1fr;
  min-width: 0;
  background: var(--wood-2);
  transition: transform .25s;
}
.game-feature-card::before {
  content: "";
  position: absolute;
  inset: -1px;
  z-index: 2;
  border: 2px solid transparent;
  pointer-events: none;
  transition: border-color .25s, box-shadow .25s;
}
.game-feature-card:hover, .game-feature-card:focus-within { transform: translateY(-4px); }
.game-feature-card:hover::before, .game-feature-card:focus-within::before {
  border-color: var(--gold);
  box-shadow: 0 0 24px rgba(233, 185, 73, .35), inset 0 0 24px rgba(233, 185, 73, .12);
}
.game-feature-art { position: relative; aspect-ratio: 16 / 9; overflow: hidden; }
.game-feature-art::after { content: ""; position: absolute; inset: 0; background: linear-gradient(0deg, var(--wood-2), transparent 60%); }
.game-feature-art img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s; }
.game-feature-card:hover .game-feature-art img { transform: scale(1.07); }
.game-feature-art--icon { display: grid; place-items: center; background: radial-gradient(circle at 50% 60%, var(--wood-3), var(--wood)); }
.game-feature-art--icon img.game-feature-icon {
  position: relative;
  z-index: 1;
  width: 64px;
  height: 64px;
  image-rendering: pixelated;
  filter: drop-shadow(0 0 16px rgba(233, 185, 73, .5));
  transition: none;
}
.game-feature-card:hover .game-feature-art--icon img { transform: none; }
.game-feature-text { display: grid; gap: 8px; align-content: start; padding: 6px 22px 22px; }
[data-theme=game] .game-feature-text h3 { margin: 0; font-family: var(--display); font-size: 1.3rem; color: #fff1cf; }
.game-feature-text p { margin: 0; font-size: .9rem; line-height: 1.7; color: var(--on-wood-soft); }
[data-theme=game] .game-feature-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 44px;
  font-size: .85rem;
  font-weight: 600;
  color: var(--gold);
  text-decoration: none;
}
.game-feature-link::after { content: ""; position: absolute; inset: 0; z-index: 3; }
[data-theme=game] .game-feature-link:hover { color: var(--gold-hi); }
.game-feature-link:focus-visible { outline: none; }
.game-feature-card:has(.game-feature-link:focus-visible) { outline: 3px solid var(--gold-hi); outline-offset: 3px; }

/* Boss band */
.game-boss { position: relative; isolation: isolate; overflow: hidden; color: var(--on-wood); background: var(--wood); }
.game-boss-media { position: absolute; inset: -12% 0; z-index: -3; will-change: transform; }
.game-boss-image { width: 100%; height: 100%; object-fit: cover; }
.game-boss::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -2;
  background: linear-gradient(90deg, rgba(18, 11, 7, .12), rgba(18, 11, 7, .86) 62%);
}
.game-boss-flash {
  position: absolute;
  inset: 0;
  z-index: -1;
  background: #dfe9ff;
  opacity: 0;
  mix-blend-mode: screen;
  animation: game-flash 8s infinite;
  pointer-events: none;
}
.game-boss-inner { display: grid; justify-items: end; padding-block: 120px 96px; }
.game-boss-copy { max-width: 460px; display: grid; gap: 16px; justify-items: start; }
.game-boss-stats { display: flex; flex-wrap: wrap; gap: 4px 18px; margin: 0; color: var(--on-wood); font-size: 1rem; }
.game-boss-stats strong {
  margin-right: 6px;
  font: 900 clamp(2.8rem, 6vw, 4.4rem)/1 var(--display);
  color: var(--gold-hi);
  text-shadow: 3px 3px 0 #120a05;
}
[data-theme=game] .game-boss h2 { margin: 0; color: #fff1cf; font-size: clamp(1.8rem, 3vw, 2.6rem); }
.game-boss-copy p { margin: 0; line-height: 1.85; }
.game-boss-caption { margin: 0 auto; padding-bottom: 14px; text-align: right; font-size: .75rem; color: var(--on-wood-soft); }
.game-boss a:focus-visible { outline-color: var(--gold-hi); }

/* Gallery */
[data-theme=game] .game-home-module--gallery { background: var(--wood); color: var(--on-wood); }
.game-gallery-strip {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: min(420px, 78vw);
  gap: 16px;
  margin: 0;
  padding: 4px 4px 14px;
  list-style: none;
  overflow-x: auto;
  overscroll-behavior-x: contain;
  scroll-snap-type: x mandatory;
  scrollbar-color: var(--gold-lo) var(--wood-2);
}
.game-gallery-strip li { scroll-snap-align: start; min-width: 0; }
.game-gallery-strip figure { margin: 0; }
.game-gallery-shot {
  display: block;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background: var(--wood-3);
  box-shadow: 0 0 0 2px var(--wood-3);
  cursor: zoom-in;
  transition: box-shadow .25s;
}
.game-gallery-shot img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s; }
.game-gallery-shot:hover { box-shadow: 0 0 0 2px var(--gold); }
.game-gallery-shot:hover img { transform: scale(1.05); }
.game-gallery-shot:focus-visible { outline: 3px solid var(--gold-hi); outline-offset: 3px; }
.game-gallery-strip figcaption { margin-top: 8px; font-size: .82rem; color: var(--on-wood-soft); }
.game-lightbox { max-width: min(1200px, 94vw); padding: 0; border: 0; background: transparent; color: var(--on-wood); }
.game-lightbox::backdrop { background: rgba(10, 6, 3, .9); }
.game-lightbox figure { margin: 0; }
.game-lightbox img { width: 100%; max-height: calc(100vh - 150px); object-fit: contain; box-shadow: 0 0 0 3px var(--gold); }
.game-lightbox figcaption { margin-top: 10px; font-size: .9rem; color: var(--on-wood); }
.game-lightbox form { margin-top: 10px; text-align: right; }
.game-lightbox-close:focus-visible { outline-color: var(--gold-hi); }

/* Community */
[data-theme=game] .game-home-module--community {
  background-color: var(--parch);
  background-image: radial-gradient(circle at 85% 20%, rgba(255, 255, 255, .35), transparent 40%);
  color: var(--ink);
}
.game-community-inner { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); gap: 40px; align-items: center; }
[data-theme=game] .game-community .game-home-heading { margin-bottom: 0; }
.game-community-card {
  display: grid;
  gap: 4px;
  padding: 28px;
  min-width: 0;
  color: var(--on-wood);
  background: var(--wood);
  box-shadow: 0 0 0 2px var(--gold-lo), 0 0 0 4px var(--wood), 0 0 0 6px var(--gold);
}
.game-community-card .game-copy-field { width: 100%; }

/* Motion */
@keyframes game-blink { 50% { opacity: .3; } }
@keyframes game-flash {
  0%, 88%, 100% { opacity: 0; }
  89% { opacity: .32; }
  92% { opacity: .08; }
  95% { opacity: 0; }
}
.game-motion-paused .game-boss-flash, .game-motion-paused .game-hero-badge span { animation-play-state: paused; }
@media (prefers-reduced-motion: reduce) {
  .game-boss-flash, .game-hero-badge span { animation: none; }
  .game-hero-video, .game-hero-embers { display: none; }
  .game-route-node, .game-route-thumb, .game-feature-card, .game-feature-art img, .game-gallery-shot img { transition: none; }
  .game-route-stop:hover .game-route-thumb, .game-feature-card:hover, .game-feature-card:focus-within,
  .game-feature-card:hover .game-feature-art img, .game-gallery-shot:hover img { transform: none; }
}

/* Responsive */
@media (max-width: 1000px) {
  .game-steps { grid-auto-flow: row; grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .game-step:last-child:nth-child(odd) { grid-column: 1 / -1; }
}
@media (max-width: 900px) {
  .game-route-stops { grid-auto-flow: row; grid-template-columns: 1fr; gap: 24px; padding-left: 36px; }
  .game-route-stops::before { content: ""; position: absolute; left: 12px; top: 8px; bottom: 8px; border-left: 3px dotted rgba(58, 38, 23, .35); }
  .game-route-stop {
    position: relative;
    grid-template-columns: 128px minmax(0, 1fr);
    justify-items: start;
    align-items: start;
    column-gap: 16px;
    row-gap: 4px;
    text-align: left;
  }
  .game-route-stop:nth-child(even) { margin-top: 0; }
  .game-route-node { position: absolute; left: -32px; top: 40px; }
  .game-route-thumb { grid-row: 1 / span 4; }
  .game-route-emblem { gap: 4px; padding: 0 8px; }
  .game-route-emblem-mark { font-size: 1rem; letter-spacing: .02em; }
  .game-route-emblem-name { font-size: .68rem; letter-spacing: .04em; padding-top: 4px; }
  .game-route-stop > :not(.game-route-thumb):not(.game-route-node) { grid-column: 2; }
  .game-route-line { display: none; }
  .game-feature-cards { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .game-community-inner { grid-template-columns: 1fr; }
  .game-boss::before { background: linear-gradient(0deg, rgba(18, 11, 7, .9) 30%, rgba(18, 11, 7, .45)); }
  .game-boss-inner { justify-items: start; padding-block: 96px 64px; }
}
@media (max-width: 760px) {
  .game-hero-cinematic { min-height: 0; }
  .game-hero-cinematic::after {
    background: linear-gradient(0deg, var(--wood) 0%, rgba(18, 11, 7, .8) 48%, rgba(18, 11, 7, .35) 100%);
  }
  .game-hero-inner { padding-block: 120px 24px; }
  .game-hero-footnote { justify-content: flex-start; }
  .game-hero-caption { margin-left: 0; }
}
@media (max-width: 560px) {
  .game-steps { grid-template-columns: 1fr; }
  .game-feature-cards { grid-template-columns: 1fr; }
  .game-route-stop { grid-template-columns: 96px minmax(0, 1fr); }
  .game-route-node { top: 28px; }
  .game-copy-field { display: flex; width: 100%; }
  .game-copy-value { flex: 1; }
  .game-community-card { padding: 22px; }
}

/* ---------------------------------------------------------------- 2026-11-28 polish
   The page is made of the world's own materials: dark oak bands with grain, map parchment
   with fibre, gold trim. Where wood meets parchment the edge is cut in block steps. The one
   loud moment is the hero title, set like a game title, with a single sheen on load.
   The logo's demon purple is reserved for the enchant glint on hover. */
[data-theme=game] .game-home-page {
  --enchant: #9b5cf0;
  --tex-grain: url("data:image/svg+xml,%3Csvg%20xmlns=%27http://www.w3.org/2000/svg%27%20width=%27200%27%20height=%27200%27%3E%3Cfilter%20id=%27n%27%3E%3CfeTurbulence%20type=%27fractalNoise%27%20baseFrequency=%27.85%27%20numOctaves=%272%27%20stitchTiles=%27stitch%27/%3E%3CfeColorMatrix%20values=%270%200%200%200%201%200%200%200%200%20.86%200%200%200%200%20.62%200%200%200%20.07%200%27/%3E%3C/filter%3E%3Crect%20width=%27100%25%27%20height=%27100%25%27%20filter=%27url(%23n)%27/%3E%3C/svg%3E");
  --tex-wood: url("data:image/svg+xml,%3Csvg%20xmlns=%27http://www.w3.org/2000/svg%27%20width=%27500%27%20height=%27240%27%3E%3Cfilter%20id=%27n%27%3E%3CfeTurbulence%20type=%27fractalNoise%27%20baseFrequency=%27.004%20.1%27%20numOctaves=%273%27%20seed=%277%27%20stitchTiles=%27stitch%27/%3E%3CfeColorMatrix%20values=%270%200%200%200%20.05%200%200%200%200%20.02%200%200%200%200%200%200%200%200%20-.7%20.42%27/%3E%3C/filter%3E%3Crect%20width=%27100%25%27%20height=%27100%25%27%20filter=%27url(%23n)%27/%3E%3C/svg%3E");
  --tex-paper: url("data:image/svg+xml,%3Csvg%20xmlns=%27http://www.w3.org/2000/svg%27%20width=%27220%27%20height=%27220%27%3E%3Cfilter%20id=%27n%27%3E%3CfeTurbulence%20type=%27fractalNoise%27%20baseFrequency=%27.7%27%20numOctaves=%273%27%20stitchTiles=%27stitch%27/%3E%3CfeColorMatrix%20values=%270%200%200%200%20.36%200%200%200%200%20.22%200%200%200%200%20.1%200%200%200%20.09%200%27/%3E%3C/filter%3E%3Crect%20width=%27100%25%27%20height=%27100%25%27%20filter=%27url(%23n)%27/%3E%3C/svg%3E");
  --step-edge: url("data:image/svg+xml,%3Csvg%20xmlns=%27http://www.w3.org/2000/svg%27%20width=%27160%27%20height=%2712%27%3E%3Cpolygon%20points=%270,0%200,6%208,6%208,12%2016,12%2016,12%2024,12%2024,6%2032,6%2032,6%2040,6%2040,0%2048,0%2048,6%2056,6%2056,6%2064,6%2064,12%2072,12%2072,6%2080,6%2080,0%2088,0%2088,0%2096,0%2096,6%20104,6%20104,12%20112,12%20112,12%20120,12%20120,6%20128,6%20128,0%20136,0%20136,6%20144,6%20144,6%20152,6%20152,0%20160,0%20160,0%27/%3E%3C/svg%3E");
}
[data-theme=game] .game-home-page .site-header {
  background-image: var(--tex-grain);
  border-bottom: 1px solid var(--gold-lo);
  box-shadow: 0 1px 0 #120a05;
}
[data-theme=game] .game-home .game-tone-wood:not(.game-home-module--hero):not(.game-home-module--boss_band) {
  background-image: var(--tex-grain), var(--tex-wood);
}
[data-theme=game] .game-home .game-tone-paper {
  background-image: var(--tex-paper),
    radial-gradient(ellipse at 12% 0%, rgba(255, 255, 255, .32), transparent 46%),
    radial-gradient(ellipse at 90% 100%, rgba(154, 106, 34, .16), transparent 50%);
}

/* Block-step edge where a wood band meets a parchment band (either way). Browsers without
   :has() keep the straight edge. */
.game-home-module { position: relative; }
.game-tone-wood:has(+ .game-tone-paper)::after,
.game-tone-paper:has(+ .game-tone-wood)::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -11px;
  z-index: 4;
  height: 12px;
  pointer-events: none;
  background-color: var(--edge, var(--wood));
  -webkit-mask: var(--step-edge) repeat-x 0 0 / 160px 12px;
  mask: var(--step-edge) repeat-x 0 0 / 160px 12px;
}
.game-home-module--steps { --edge: var(--wood-2); }
.game-home-module--feature_grid, .game-home-module--gallery { --edge: var(--wood); }
.game-home-module--route, .game-home-module--community { --edge: var(--parch); }
.game-home-module--listing { --edge: #ebdbb8; }
.game-home-module--cards, .game-home-module--shortcuts, .game-home-module--text { --edge: var(--parch); }
[data-theme=game] .game-home-module--cards,
[data-theme=game] .game-home-module--shortcuts,
[data-theme=game] .game-home-module--text { background-color: var(--parch); }
[data-theme=game] .game-home-module--community + .game-home-module--cards { box-shadow: inset 0 1px 0 rgba(154, 106, 34, .3); }

/* Hero title: gold leaf with a hard pixel shadow; one sheen crosses it after load. */
[data-theme=game] .game-hero-cinematic h1 {
  color: #ffe6a0;
  text-shadow: none;
  background-image:
    linear-gradient(105deg, transparent 42%, rgba(255, 251, 236, .95) 50%, transparent 58%),
    linear-gradient(180deg, #fff3cc 0%, #f4cf6e 52%, #dca543 100%);
  background-size: 250% 100%, 100% 100%;
  background-repeat: no-repeat;
  background-position: 0% 0, 0 0;
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  filter: drop-shadow(3px 3px 0 #120a05) drop-shadow(0 0 30px rgba(155, 92, 240, .28));
  animation: game-sheen 1.9s .6s cubic-bezier(.45, 0, .2, 1) 1 both;
}
@keyframes game-sheen {
  from { background-position: 100% 0, 0 0; }
  to { background-position: 0% 0, 0 0; }
}
.game-hero-logo { filter: drop-shadow(0 6px 24px rgba(155, 92, 240, .45)) drop-shadow(2px 3px 0 rgba(18, 10, 5, .7)); }
.game-hero-lede { text-shadow: 0 1px 2px rgba(0, 0, 0, .6); }

/* Buttons read as pressed gold plates, the same plate everywhere on this page. */
[data-theme=game] .game-home .button,
[data-theme=game] .game-copy-field--large .game-copy-button {
  color: #2a1a0c;
  background: linear-gradient(180deg, #f6d27a, #e2ab45);
  border: 1px solid #5a3b17;
  border-radius: 0;
  box-shadow: inset 0 2px 0 #fff0bf, inset 0 -4px 0 #a8742c, 0 3px 0 #120a05;
  text-shadow: 0 1px 0 rgba(255, 240, 200, .5);
}
[data-theme=game] .game-home .button:hover,
[data-theme=game] .game-copy-field--large .game-copy-button:hover {
  color: #2a1a0c;
  background: linear-gradient(180deg, #ffe39a, #edbb55);
}
[data-theme=game] .game-home .button:active,
[data-theme=game] .game-copy-field--large .game-copy-button:active {
  transform: translateY(2px);
  box-shadow: inset 0 2px 0 #fff0bf, inset 0 -2px 0 #a8742c, 0 1px 0 #120a05;
}
.game-copy-field { box-shadow: inset 0 2px 6px rgba(0, 0, 0, .5); }
.game-copy-field--large { box-shadow: none; }

/* Wayfinding: a quiet chapter strip. */
[data-theme=game] .game-home-wayfinding { gap: 0; }
[data-theme=game] .game-home-wayfinding a { padding-inline: 22px; font-family: var(--display); font-size: .98rem; letter-spacing: .06em; }
[data-theme=game] .game-home-wayfinding a + a::before {
  content: "";
  width: 5px;
  height: 5px;
  margin-right: 22px;
  margin-left: -24px;
  background: var(--gold-lo);
  transform: rotate(45deg);
}
[data-theme=game] .game-home-wayfinding a:hover { text-decoration: none; color: var(--gold-hi); }

/* Section headings: a short gold rule under each title instead of a label above it. */
[data-theme=game] .game-home-heading h2,
[data-theme=game] .game-home .section-heading h2 { letter-spacing: .02em; }
[data-theme=game] .game-home-heading h2::after {
  content: "";
  display: block;
  width: 56px;
  height: 3px;
  margin-top: 14px;
  background: linear-gradient(90deg, var(--gold), rgba(233, 185, 73, 0));
}
[data-theme=game] .game-join .game-home-heading h2,
[data-theme=game] .game-features .game-home-heading h2,
[data-theme=game] .game-gallery .game-home-heading h2 { text-shadow: 2px 2px 0 #120a05; }

/* Join steps: a real sequence, so the numerals lead. */
.game-step { border-top: 2px solid var(--gold-lo); padding-top: 18px; }

/* Feature cards: oak panels with a gold top edge; icon art sits in an inventory slot. */
.game-feature-card {
  background-color: var(--wood-2);
  background-image: var(--tex-grain);
  box-shadow: inset 0 1px 0 rgba(255, 224, 138, .14), 0 0 0 1px #120a05, 0 10px 24px rgba(0, 0, 0, .35);
}
.game-feature-card:hover, .game-feature-card:focus-within { transform: none; }
.game-feature-card:hover .game-feature-art img { transform: none; }
.game-feature-art--icon {
  background-color: #1a110b;
  background-image:
    radial-gradient(circle at 50% 55%, rgba(233, 185, 73, .14), transparent 55%),
    linear-gradient(rgba(233, 185, 73, .055) 1px, transparent 1px),
    linear-gradient(90deg, rgba(233, 185, 73, .055) 1px, transparent 1px);
  background-size: auto, 36px 36px, 36px 36px;
  background-position: center, center, center;
}
.game-feature-slot {
  position: relative;
  z-index: 1;
  display: grid;
  place-items: center;
  width: 108px;
  height: 108px;
  background: #140d08;
  box-shadow: inset 4px 4px 0 #0a0603, inset -4px -4px 0 #4a3424, 0 0 0 2px #0a0603, 0 0 0 4px #5c4128;
  transition: box-shadow .3s;
}
.game-feature-art--icon img.game-feature-icon { width: 72px; height: 72px; filter: drop-shadow(0 0 10px rgba(233, 185, 73, .35)); }
.game-feature-card:hover .game-feature-slot, .game-feature-card:focus-within .game-feature-slot {
  box-shadow: inset 4px 4px 0 #0a0603, inset -4px -4px 0 #4a3424, 0 0 0 2px #0a0603, 0 0 0 4px #5c4128, 0 0 28px rgba(155, 92, 240, .55);
}
.game-feature-card:hover::before, .game-feature-card:focus-within::before {
  border-color: var(--gold);
  box-shadow: inset 0 0 24px rgba(233, 185, 73, .1);
}

/* Route: thumbnails stay put on hover; the nodes carry the light. */
.game-route-stop:hover .game-route-thumb { transform: none; }

/* Boss band */
.game-boss-stats span { display: inline-flex; align-items: baseline; gap: 6px; font-family: var(--display); font-size: 1.1rem; }
[data-theme=game] .game-boss h2 { text-shadow: 2px 2px 0 #120a05; }

/* Community card: a framed notice pinned to the parchment. */
.game-community-card {
  background-color: var(--wood);
  background-image: var(--tex-grain), var(--tex-wood);
  box-shadow: 0 0 0 2px var(--gold-lo), 0 0 0 4px var(--wood), 0 0 0 6px var(--gold), 0 18px 36px rgba(58, 38, 23, .35);
}

/* The four reading bands below (first steps, notices, portal shortcuts, current stage). */
[data-theme=game] .game-home .game-journey-steps li::before {
  background: var(--wood-2);
  color: var(--gold-hi);
  border: 1px solid var(--gold-lo);
  box-shadow: 0 0 0 3px var(--parch), 0 0 0 4px rgba(154, 106, 34, .55);
  font-weight: 700;
}
[data-theme=game] .game-home .game-journey-steps li { border-top-color: rgba(154, 106, 34, .55); }
[data-theme=game] .game-home .intro-section { border-top-color: rgba(154, 106, 34, .45); }

@media (prefers-reduced-motion: reduce) {
  [data-theme=game] .game-hero-cinematic h1 { animation: none; }
  .game-feature-slot { transition: none; }
  [data-theme=game] .game-home .button:active { transform: none; }
}
@media (max-width: 760px) {
  [data-theme=game] .game-home-wayfinding { gap: 0 22px; }
  [data-theme=game] .game-home-wayfinding a { padding-inline: 0; font-size: .9rem; }
  [data-theme=game] .game-home-wayfinding a + a::before { content: none; }
}
@media (max-width: 500px) {
  [data-theme=game] .game-home-wayfinding a { font-size: .85rem; }
}

/* site buttons are display:inline-flex; keep the hidden attribute authoritative for enhancement-only controls */
.game-home [hidden] { display: none !important; }
