/* Option C: "In-world atlas". The site is a piece of the game: the carved bar, the floor ladder,
   the door medallions, the stone rings, the picker planks and the Obsidian Glass sheets, laid out as a
   descent you scroll down. Loaded AFTER /_shared/base.css; never redefines its tokens.
   Readability rule: text never sits on bare stone texture. Every line lives on a plate (.stone, .sheet,
   .plate) or a solid parchment panel (#1a1410), measured at 390 px. */

:root {
  --parch: #1a1410;
  --hp-red: #a3202b;
  --hp-red-2: #6e0f18;
  --ring-stone: #6f6656;
  --sec-pad: clamp(64px, 5vw + 40px, 128px);
}

/* ── the carved bar (stone/navbar-base, darkened so the gold logo and nav read on it) ───────── */
.topbar.carved {
  background:
    linear-gradient(180deg, rgba(14, 10, 7, 0.80), rgba(14, 10, 7, 0.88)),
    url("/_assets/stone/navbar-base.webp") center / 100% 100% no-repeat,
    #1b1510;
  -webkit-backdrop-filter: none; backdrop-filter: none;
  border-bottom: 1px solid rgba(201, 162, 39, 0.55);
  box-shadow: 0 1px 0 rgba(0, 0, 0, 0.6), 0 10px 30px rgba(0, 0, 0, 0.45);
}
.topbar.carved::after { content: ""; position: absolute; inset: auto 0 -4px 0; height: 3px; background: linear-gradient(90deg, transparent, rgba(226, 197, 115, 0.35), transparent); pointer-events: none; }
.topbar.carved .brand img { filter: drop-shadow(0 2px 3px rgba(0, 0, 0, 0.9)); }
.topbar.carved .nav a { color: var(--ink); }
.nav-cta.pill { min-height: 44px; padding: 4px 18px 4px 4px; font-size: 15px; gap: 10px; }
.nav-cta.pill .ring { width: 34px; height: 34px; }
@media (max-width: 600px) { .nav-cta.pill .lbl { font-size: 15px; } .nav-cta.pill { padding-right: 14px; } }
@media (max-width: 360px) { .nav-cta.pill .lbl { display: none; } .nav-cta.pill { padding-right: 4px; } }

/* ── shared section frame ─────────────────────────────────────────────────────────────────── */
section { position: relative; }
.sec { padding: var(--sec-pad) 0; }
.sec-head { text-align: center; display: grid; justify-items: center; gap: 14px; margin-bottom: clamp(36px, 4vw, 64px); }
.sec-head .lead { color: var(--ink); margin-inline: auto; }
.on-art .sec-head { text-shadow: 0 2px 12px rgba(0, 0, 0, 0.85); }

/* the engraved title plate used for section heads that sit over art (h2 always on its own backing) */
.plate {
  display: inline-grid; justify-items: center; gap: 10px;
  padding: 18px clamp(22px, 4vw, 44px) 20px;
  background: linear-gradient(180deg, rgba(31, 24, 17, 0.94), rgba(17, 13, 9, 0.95));
  border: 1px solid rgba(201, 162, 39, 0.6);
  border-radius: 14px;
  box-shadow: inset 0 1px 0 rgba(255, 240, 200, 0.12), inset 0 0 0 4px rgba(0, 0, 0, 0.35), inset 0 0 0 5px rgba(201, 162, 39, 0.22), 0 14px 40px rgba(0, 0, 0, 0.6);
  max-width: min(760px, 100%);
}
.plate .lead { font-size: var(--body); color: var(--ink-2); max-width: 36em; }

/* the in-game glass sheet (reward screen language): dark glass, gold rim, caps kicker, short gold underline */
.sheet {
  position: relative;
  background: rgba(22, 17, 12, 0.90);
  -webkit-backdrop-filter: var(--blur); backdrop-filter: var(--blur);
  border: 1px solid rgba(201, 162, 39, 0.62);
  border-radius: 22px;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08), inset 0 0 0 1px rgba(0, 0, 0, 0.4), 0 20px 50px rgba(0, 0, 0, 0.55);
  padding: clamp(20px, 3vw, 32px);
}
.sheet-title { font: 400 clamp(26px, 1.2rem + 1vw, 34px)/1.1 var(--display); color: var(--gold-ink); }
.sheet-title::after { content: ""; display: block; width: 72%; max-width: 220px; height: 1px; margin-top: 12px; background: linear-gradient(90deg, var(--gold), transparent); }
.sheet p { color: var(--ink-2); }

.more { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px 16px; margin-top: clamp(32px, 4vw, 48px); }

/* ── 1. HERO ──────────────────────────────────────────────────────────────────────────────── */
.hero { position: relative; isolation: isolate; min-height: 100svh; display: grid; align-items: end; overflow: hidden; }
.hero-art img { object-position: 50% 30%; }
.hero::before {
  content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background: linear-gradient(180deg, transparent 0%, transparent 46%, rgba(13, 10, 8, 0.55) 62%, rgba(13, 10, 8, 0.90) 78%, #0d0a08 100%);
}
.hero-copy { width: min(860px, 100% - 40px); margin: 0 auto; padding: 0 0 clamp(28px, 5vh, 56px); text-align: center; display: grid; justify-items: center; gap: 14px; }
.hero-copy .kicker { font-size: 13px; color: var(--gold-hi); text-shadow: 0 1px 6px rgba(0, 0, 0, 0.95); white-space: pre-wrap; }
.hero-copy h1 { color: #fff6df; text-shadow: 0 2px 4px rgba(0, 0, 0, 0.9), 0 4px 28px rgba(0, 0, 0, 0.75); max-width: 13em; }
.hero-copy .sub { font-size: var(--lead); color: #fff6df; text-shadow: 0 1px 4px rgba(0, 0, 0, 0.95), 0 2px 18px rgba(0, 0, 0, 0.8); max-width: 30em; line-height: 1.45; }
.hero-cta { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px 14px; margin-top: 6px; }
.hero .badges { justify-content: center; margin-top: 4px; }
.hero > .ember { z-index: 0; pointer-events: none; }
.ember { position: absolute; width: var(--sz); height: var(--sz); border-radius: 50%; background: #ffb347; box-shadow: 0 0 6px 1px rgba(255, 150, 60, 0.7); animation: ember linear infinite; }
@media (max-width: 760px) {
  .hero::before { background: linear-gradient(180deg, transparent 0%, transparent 44%, rgba(13, 10, 8, 0.6) 56%, rgba(13, 10, 8, 0.92) 68%, #0d0a08 84%); }
  .hero-art img { object-position: 50% 0%; }
  .hero-copy { gap: 10px; padding-bottom: 22px; }
  .hero-copy .kicker { font-size: 11px; letter-spacing: 0.14em; }
  .hero-copy .sub { font-size: 16px; }
  .hero-cta { gap: 10px; }
  .hero-cta .pill-lg { min-height: 50px; font-size: 16px; padding-right: 18px; gap: 10px; }
  .hero-cta .pill-lg .ring { width: 38px; height: 38px; }
}

/* ── 2. THE WALL + the floor ladder ───────────────────────────────────────────────────────── */
.wall {
  background:
    linear-gradient(180deg, #0d0a08 0%, rgba(13, 10, 8, 0.70) 10%, rgba(13, 10, 8, 0.70) 90%, #0d0a08 100%),
    url("/_assets/walls/region-wall-cellars.webp") center top / 520px auto repeat,
    #13100c;
}
.descent { position: relative; display: grid; grid-template-columns: 76px 1fr; gap: 0 clamp(16px, 3vw, 40px); }
/* the stone rail of the map's ladder */
.rail {
  position: relative; grid-row: 1 / span 4;
  width: 52px; justify-self: center;
  background:
    linear-gradient(90deg, rgba(0, 0, 0, 0.55), transparent 22%, transparent 78%, rgba(0, 0, 0, 0.55)),
    repeating-linear-gradient(180deg, #5f574a 0 118px, #3b352c 118px 122px),
    #514a3e;
  border-radius: 10px;
  box-shadow: inset 0 0 0 2px rgba(20, 15, 10, 0.7), inset 0 0 0 3px rgba(201, 162, 39, 0.25), 0 8px 24px rgba(0, 0, 0, 0.6);
}
.rail::before { content: ""; position: absolute; left: 50%; top: 14px; bottom: 14px; width: 10px; transform: translateX(-50%); border-radius: 5px; background: #17120d; box-shadow: inset 0 0 6px rgba(0, 0, 0, 0.9); }
.rail .fill { position: absolute; left: 50%; top: 14px; width: 6px; transform: translateX(-50%); height: var(--fill, 0%); max-height: calc(100% - 28px); border-radius: 3px; background: linear-gradient(180deg, #f8e3a0, #c9a227); box-shadow: 0 0 10px rgba(240, 205, 120, 0.7); transition: height 0.9s ease; }
.beat { grid-column: 2; position: relative; display: grid; grid-template-columns: auto 1fr; gap: clamp(20px, 3vw, 48px); align-items: center; padding: clamp(28px, 3vw, 48px) 0; }
.rung {
  position: absolute; left: calc(-1 * (76px + clamp(16px, 3vw, 40px)) + 38px - 27px); top: 50%; transform: translateY(-50%);
  width: 54px; height: 54px; border-radius: 50%; display: grid; place-items: center;
  font: 400 24px/1 var(--display); color: #d9cfb8;
  background: radial-gradient(circle at 50% 35%, #6e6555, #3d362c);
  border: 2px solid #2a241c;
  box-shadow: inset 0 2px 0 rgba(255, 240, 210, 0.18), inset 0 -3px 0 rgba(0, 0, 0, 0.45), 0 4px 10px rgba(0, 0, 0, 0.6);
  transition: color 0.4s, border-color 0.4s, box-shadow 0.4s, background 0.4s;
  z-index: 2;
}
.rung.on { color: #1d1307; border-color: #f3dc8a; background: radial-gradient(circle at 50% 35%, #f8e3a0, #c99a2e); box-shadow: 0 0 0 3px rgba(201, 162, 39, 0.35), 0 0 22px rgba(240, 205, 120, 0.55); }
.door { display: grid; justify-items: center; gap: 0; width: 220px; }
.door-art { position: relative; width: 200px; aspect-ratio: 1; }
.door-art img { position: absolute; }
.door-art .frame { inset: 0; width: 100%; height: 100%; filter: drop-shadow(0 12px 18px rgba(0, 0, 0, 0.7)); }
.door-art .inside { left: 29.5%; top: 13.8%; width: 43%; height: 43%; border-radius: 50%; object-fit: cover; }
.nameplate {
  margin-top: -6px; position: relative; z-index: 1;
  padding: 9px 18px 10px; min-width: 150px; text-align: center;
  font: 400 17px/1.15 var(--display); letter-spacing: 0.06em; text-transform: uppercase; color: var(--gold-ink);
}
.nameplate small { display: block; font: 600 12px/1.2 var(--text); letter-spacing: 0.14em; color: var(--gold-2); margin-bottom: 4px; }
.beat-sheet { display: grid; grid-template-columns: 1fr auto; gap: 20px 28px; align-items: center; }
.beat-sheet h3 { font-size: clamp(24px, 1.2rem + 0.8vw, 30px); color: var(--gold-ink); }
.beat-sheet p { margin-top: 10px; font-size: var(--body); color: var(--ink); line-height: 1.6; }
.bezel { position: relative; width: 240px; border-radius: 26px; padding: 7px; background: linear-gradient(160deg, #3a2f22, #15100b); border: 1px solid rgba(201, 162, 39, 0.55); box-shadow: 0 16px 36px rgba(0, 0, 0, 0.6); }
.bezel img { width: 100%; height: auto; aspect-ratio: 585 / 760; object-fit: cover; border-radius: 20px; }
.bezel.top img { object-position: 50% 0%; }
.bezel.mid img { object-position: 50% 28%; }
.bezel.full img { aspect-ratio: 585 / 1266; }
@media (max-width: 1023px) {
  .beat { grid-template-columns: 1fr; justify-items: center; }
  .beat-sheet { width: 100%; }
}
@media (max-width: 760px) {
  .descent { grid-template-columns: 44px 1fr; gap: 0 14px; }
  .rail { width: 30px; }
  .rail::before { width: 6px; }
  .rail .fill { width: 4px; }
  .rung { left: calc(-1 * (44px + 14px) + 22px - 20px); top: 108px; transform: none; width: 40px; height: 40px; font-size: 19px; }
  .door { width: auto; }
  .door-art { width: 150px; }
  .nameplate { font-size: 15px; min-width: 140px; }
  .beat-sheet { grid-template-columns: 1fr; justify-items: center; text-align: center; }
  .bezel { width: min(240px, 100%); }
}

/* ── 3. GATEKEEPERS: the fight stage ──────────────────────────────────────────────────────── */
.stage {
  background:
    radial-gradient(60% 50% at 50% 40%, rgba(150, 60, 20, 0.22), transparent 70%),
    linear-gradient(180deg, #0d0a08, #120d0a 50%, #0d0a08);
}
.arena { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(28px, 4vw, 64px); align-items: center; }
.boss { display: grid; justify-items: center; gap: 0; }
.boss-name {
  position: relative; z-index: 2; margin-bottom: -18px;
  padding: 10px 28px 12px; font: 400 clamp(22px, 1rem + 1.2vw, 30px)/1 var(--display); letter-spacing: 0.08em; text-transform: uppercase; color: #fff6df;
  background: linear-gradient(180deg, #6d6555, #463f33);
  border: 2px solid #2a241c; border-radius: 14px 14px 10px 10px;
  box-shadow: inset 0 2px 0 rgba(255, 240, 210, 0.25), inset 0 -3px 0 rgba(0, 0, 0, 0.4), 0 0 0 1px rgba(201, 162, 39, 0.6), 0 8px 20px rgba(0, 0, 0, 0.6);
  text-shadow: 0 2px 2px rgba(0, 0, 0, 0.8);
}
.ring-xl, .ring-sm {
  position: relative; border-radius: 50%; overflow: hidden; flex: none;
  border: 10px solid var(--ring-stone);
  background: #0d0a08;
  box-shadow: 0 0 0 2px var(--gold), inset 0 0 0 2px var(--gold-2), inset 0 0 28px rgba(0, 0, 0, 0.75), 0 0 0 5px #2a241c, 0 18px 40px rgba(0, 0, 0, 0.6);
}
.ring-xl { width: 276px; height: 276px; }
.ring-xl img, .ring-sm img { width: 100%; height: 100%; object-fit: cover; }
.ring-xl::after, .ring-sm::after { content: ""; position: absolute; inset: 0; border-radius: 50%; box-shadow: inset 0 0 24px rgba(0, 0, 0, 0.7); pointer-events: none; }
.boss-sub { margin-top: 16px; font: 600 13px/1.2 var(--text); letter-spacing: 0.16em; text-transform: uppercase; color: var(--gold-2); text-align: center; }
.hp {
  position: relative; width: min(300px, 100%); height: 34px; margin-top: 12px; border-radius: 999px; overflow: hidden;
  background: rgba(20, 8, 8, 0.85); border: 2px solid #2a241c;
  box-shadow: 0 0 0 1px rgba(201, 162, 39, 0.6), inset 0 2px 6px rgba(0, 0, 0, 0.7);
}
.hp .bar { position: absolute; inset: 0; width: 0%; background: linear-gradient(180deg, #c7323d 0%, var(--hp-red) 50%, var(--hp-red-2) 100%); transition: width 1.2s cubic-bezier(.2, .7, .2, 1); }
.hp.in .bar, .reveal.in .hp .bar { width: 100%; }
.hp .num { position: absolute; inset: 0; display: grid; place-items: center; font: 700 17px/1 var(--text); letter-spacing: 0.04em; color: #fff; text-shadow: 0 1px 2px rgba(0, 0, 0, 0.9); }
.intent .kicker { margin-bottom: 12px; display: block; }
.intent h3 { font-size: clamp(26px, 1.2rem + 1vw, 34px); margin-bottom: 8px; }
.intent > p { color: var(--ink); margin-bottom: 18px; }
.chips { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.chip {
  display: grid; grid-template-columns: 34px 1fr auto; align-items: center; gap: 10px;
  padding: 8px 12px 8px 8px; border-radius: 14px;
  background: rgba(22, 17, 12, 0.92); border: 1px solid rgba(201, 162, 39, 0.5);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.06);
}
.chip .g { width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; background: radial-gradient(circle at 50% 35%, #4a1a1a, #1d0b0b); border: 1px solid rgba(226, 120, 110, 0.7); }
.chip .g.debuff { background: radial-gradient(circle at 50% 35%, #3a2a4a, #150e1d); border-color: rgba(200, 160, 255, 0.7); }
.chip .g svg { width: 18px; height: 18px; color: #fff0e6; }
.chip .t { font-size: 15px; line-height: 1.25; color: var(--ink); }
.chip .n { font: 700 17px/1 var(--text); color: var(--gold-hi); white-space: nowrap; }
.court { margin-top: clamp(40px, 5vw, 72px); }
.court ul { display: grid; grid-template-columns: repeat(auto-fill, minmax(118px, 1fr)); gap: 22px 12px; }
.court a { display: grid; justify-items: center; gap: 10px; text-decoration: none; padding: 6px 2px; border-radius: 14px; }
.ring-sm { width: 96px; height: 96px; border-width: 6px; box-shadow: 0 0 0 1px var(--gold), inset 0 0 0 1px var(--gold-2), 0 0 0 3px #2a241c, 0 8px 18px rgba(0, 0, 0, 0.55); transition: transform 0.2s, box-shadow 0.2s; }
.court a:hover .ring-sm { transform: translateY(-3px); box-shadow: 0 0 0 2px var(--gold-2), 0 0 0 4px #2a241c, 0 0 22px rgba(240, 205, 120, 0.35); }
.court .nm { font: 400 15px/1.2 var(--display); color: var(--gold-ink); text-align: center; padding: 4px 10px; border-radius: 8px; background: #17120d; border: 1px solid rgba(201, 162, 39, 0.3); }
@media (max-width: 900px) {
  .arena { grid-template-columns: 1fr; }
  .ring-xl { width: 236px; height: 236px; }
}
@media (max-width: 480px) {
  .chips { grid-template-columns: 1fr; }
  .court ul { grid-template-columns: repeat(3, 1fr); gap: 18px 8px; }
  .ring-sm { width: 84px; height: 84px; }
  .court .nm { font-size: 14px; padding: 3px 6px; }
}

/* ── 4. DECKS: the picker planks ──────────────────────────────────────────────────────────── */
.library-bg { background: linear-gradient(180deg, #0d0a08, #16110d 40%, #0d0a08); }
.planks { display: grid; grid-template-columns: 1fr 1fr; gap: 16px 20px; }
.plank {
  position: relative; overflow: hidden; display: grid; grid-template-columns: 72px 1fr; gap: 16px; align-items: center;
  min-height: 128px; padding: 16px 132px 16px 16px; text-decoration: none; border-radius: 16px;
}
.plank::before { content: ""; position: absolute; inset: 0 auto 0 0; width: 4px; background: var(--c, var(--gold)); opacity: 0.85; }
.plank .ic { width: 72px; height: 72px; border-radius: 50%; padding: 4px; background: radial-gradient(circle, #2a2118, #120d09); box-shadow: 0 0 0 2px var(--gold), 0 0 0 4px #2a241c, 0 4px 10px rgba(0, 0, 0, 0.5); }
.plank .ic img { width: 100%; height: 100%; border-radius: 50%; }
.plank h3 { font-size: 24px; color: var(--gold-ink); text-transform: uppercase; letter-spacing: 0.05em; display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.plank .verb { display: block; font: 700 13px/1.2 var(--text); letter-spacing: 0.14em; text-transform: uppercase; color: var(--gold-2); margin: 4px 0 6px; }
.plank p { font-size: 15.5px; line-height: 1.4; color: var(--ink-2); }
.plank .peek { position: absolute; right: -6px; top: 14px; width: 120px; height: auto; transform: rotate(8deg); transform-origin: 50% 0; filter: drop-shadow(-6px 8px 10px rgba(0, 0, 0, 0.6)); transition: transform 0.25s ease; }
.plank:hover .peek, .plank:focus-visible .peek { transform: rotate(8deg) translateY(-6px); }
.tag { font: 700 11px/1 var(--text); letter-spacing: 0.14em; text-transform: uppercase; color: #1d1307; background: linear-gradient(180deg, #d9cfb8, #a99c80); border: 1px solid #2a241c; border-radius: 6px; padding: 5px 7px; }
@media (max-width: 860px) { .planks { grid-template-columns: 1fr; } }
@media (max-width: 480px) {
  .plank { grid-template-columns: 56px 1fr; gap: 12px; padding: 14px 96px 14px 14px; min-height: 118px; }
  .plank .ic { width: 56px; height: 56px; }
  .plank h3 { font-size: 21px; }
  .plank .peek { width: 96px; right: -10px; }
  .plank p { font-size: 15px; }
}

/* ── 5. SEASON VIII: the codex page ───────────────────────────────────────────────────────── */
.codex { padding: 0; overflow: hidden; }
.codex-bar { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 18px clamp(20px, 3vw, 32px); background: linear-gradient(180deg, rgba(60, 46, 26, 0.6), rgba(30, 23, 15, 0.6)); border-bottom: 1px solid rgba(201, 162, 39, 0.6); }
.codex-bar h2 { font-size: clamp(26px, 1.2rem + 1.4vw, 40px); }
.codex-bar .numeral { font: 400 clamp(36px, 2rem + 1vw, 56px)/1 var(--display); color: var(--gold); opacity: 0.85; }
.codex-body { padding: clamp(20px, 3vw, 36px); }
.codex-body > .lead { margin-bottom: 8px; }
.entries { display: grid; }
.entry { display: grid; grid-template-columns: 64px 1fr auto; gap: 18px 24px; align-items: center; padding: 22px 0; border-top: 1px solid rgba(201, 162, 39, 0.22); }
.entry .num { font: 400 40px/1 var(--display); color: var(--gold); }
.entry h3 { color: var(--gold-ink); }
.entry p { margin-top: 6px; color: var(--ink); }
.entry .media { width: 180px; border-radius: 16px; overflow: hidden; border: 1px solid rgba(201, 162, 39, 0.5); background: #000; box-shadow: 0 10px 24px rgba(0, 0, 0, 0.5); }
.entry .media img, .entry .media video { width: 100%; height: auto; aspect-ratio: 9 / 12; object-fit: cover; object-position: 50% 20%; }
.entry .cards { display: flex; }
.entry .cards img { width: 84px; height: auto; margin-left: -22px; filter: drop-shadow(-4px 6px 8px rgba(0, 0, 0, 0.6)); }
.entry .cards img:first-child { margin-left: 0; transform: rotate(-6deg); }
.entry .cards img:last-child { transform: rotate(6deg); }
.shelf { display: grid; grid-template-columns: repeat(8, 1fr); gap: 12px; margin-top: 8px; padding-top: 24px; border-top: 1px solid rgba(201, 162, 39, 0.22); }
.charm { display: grid; justify-items: center; gap: 0; text-align: center; }
.charm img { width: 72px; height: 72px; object-fit: contain; position: relative; z-index: 1; filter: drop-shadow(0 6px 8px rgba(0, 0, 0, 0.6)); }
.charm .ped { width: 84px; height: 16px; margin-top: -6px; border-radius: 50% / 100% 100% 30% 30%; background: linear-gradient(180deg, #7a705e, #3e372c); box-shadow: inset 0 1px 0 rgba(255, 240, 210, 0.25), 0 0 0 1px rgba(201, 162, 39, 0.4), 0 6px 10px rgba(0, 0, 0, 0.5); }
.charm span { margin-top: 10px; font: 600 14px/1.25 var(--text); color: var(--ink); }
@media (max-width: 1023px) { .shelf { grid-template-columns: repeat(4, 1fr); row-gap: 22px; } }
@media (max-width: 760px) {
  .entry { grid-template-columns: 46px 1fr; }
  .entry .num { font-size: 32px; }
  .entry .media, .entry .cards { grid-column: 1 / -1; justify-self: center; }
  .entry .media { width: min(180px, 100%); }
  .entry .cards img { width: 78px; }
  .codex-bar .numeral { display: none; }
}
@media (max-width: 380px) { .shelf { grid-template-columns: repeat(2, 1fr); } }

/* ── 6. NEWS: the stone tablets ───────────────────────────────────────────────────────────── */
.tablets { display: grid; grid-template-columns: 1.3fr 1fr 1fr; gap: 20px; }
.tablet { display: grid; grid-template-rows: auto 1fr; padding: 10px; text-decoration: none; border-radius: 18px; transition: transform 0.2s, border-color 0.2s; }
.tablet:hover { transform: translateY(-3px); border-color: var(--rim-hot); }
.tablet .cover { width: 100%; height: auto; aspect-ratio: 16 / 9; object-fit: cover; object-position: 50% 22%; border-radius: 10px; }
.parch { margin-top: 10px; padding: 18px 18px 20px; background: var(--parch); border-radius: 10px; box-shadow: inset 0 0 0 1px rgba(201, 162, 39, 0.45); display: grid; align-content: start; gap: 8px; }
.parch .ver { font: 400 15px/1 var(--display); letter-spacing: 0.12em; color: var(--gold-2); }
.parch .date { font-size: 14px; color: var(--ink-3); }
.parch h3 { color: var(--gold-ink); }
.parch p { color: var(--ink-2); font-size: 16px; line-height: 1.5; }
.parch .go { margin-top: 4px; font-weight: 600; color: var(--gold-2); }
@media (max-width: 960px) { .tablets { grid-template-columns: 1fr; max-width: 560px; margin-inline: auto; } .tablets .tablet:not(:first-child) .cover { display: none; } }

/* ── 7. FINAL CALL: the Win monument ──────────────────────────────────────────────────────── */
.finale { text-align: center; background: radial-gradient(50% 60% at 50% 45%, rgba(201, 162, 39, 0.16), transparent 70%), #0d0a08; }
.monument { position: relative; width: min(420px, 100%); margin: 0 auto; container-type: inline-size; }
.monument img { width: 100%; height: auto; filter: drop-shadow(0 24px 40px rgba(0, 0, 0, 0.7)); }
.monument .inscription {
  position: absolute; left: 32%; width: 36%; top: 45.5%; height: 30.5%;
  display: grid; place-items: center; padding: 4%;
  background: linear-gradient(180deg, rgba(26, 20, 16, 0.92), rgba(18, 14, 10, 0.95)); border-radius: 2px;
  box-shadow: inset 0 0 0 1px rgba(201, 162, 39, 0.55), inset 0 4px 10px rgba(0, 0, 0, 0.6);
}
.monument h2 { font-size: 7.4cqi; line-height: 1.08; color: var(--gold-ink); }
.finale .sub { margin: 26px auto 22px; max-width: 30em; color: var(--ink); font-size: var(--lead); }
.finale .badges { justify-content: center; margin-top: 22px; }
@media (max-width: 600px) { .monument { width: 300px; } .monument h2 { font-size: 8cqi; } }

/* ── FOOTER: a dark stone band ────────────────────────────────────────────────────────────── */
.foot { background: linear-gradient(180deg, #17120d, #0d0a08); border-top: 1px solid rgba(201, 162, 39, 0.45); padding: 56px 0 40px; text-align: center; }
.foot .logo { width: 200px; height: auto; margin: 0 auto 32px; }
.foot-cols { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; max-width: 820px; margin: 0 auto; text-align: left; }
.foot-cols h4 { font: 400 15px/1 var(--display); letter-spacing: 0.12em; text-transform: uppercase; color: var(--gold-2); margin-bottom: 10px; }
.foot-cols a { display: block; padding: 10px 0; text-decoration: none; color: var(--ink-2); font-size: 15px; }
.foot-cols a:hover { color: var(--gold-hi); }
.foot .badges { justify-content: center; margin: 32px 0 22px; }
.foot .fair { max-width: 44em; margin: 0 auto 12px; color: var(--ink-2); font-size: 15px; }
.foot .copy { color: var(--ink-3); font-size: 13px; max-width: 44em; margin: 0 auto; }
@media (max-width: 640px) { .foot-cols { grid-template-columns: 1fr 1fr; padding-inline: 8px; } }

/* ── INNER PAGES ──────────────────────────────────────────────────────────────────────────── */
.inner-top { padding-top: calc(var(--bar-h) + 32px); }
.back { display: inline-flex; align-items: center; gap: 6px; min-height: 44px; color: var(--gold-2); text-decoration: none; font-weight: 600; }
.back:hover { color: var(--gold-hi); }

/* gatekeeper arena */
.arena-hero { position: relative; isolation: isolate; min-height: min(100svh, 980px); display: grid; align-items: end; overflow: hidden; }
.arena-hero .layer { position: absolute; inset: 0; z-index: -2; }
.arena-hero .layer img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 30%; }
.arena-hero::before { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, transparent 40%, rgba(13, 10, 8, 0.7) 66%, #0d0a08 92%); }
.arena-hero .who { display: grid; justify-items: center; gap: 12px; text-align: center; padding-bottom: clamp(28px, 5vh, 56px); }
.arena-hero .boss-name { margin: 0; font-size: clamp(28px, 1rem + 2.4vw, 52px); }
.arena-hero h1 { font-size: clamp(22px, 1rem + 1.2vw, 34px); color: var(--gold-hi); text-shadow: 0 2px 10px rgba(0, 0, 0, 0.9); }
.arena-hero .kicker { text-shadow: 0 1px 6px #000; }
.moves { display: grid; gap: 10px; }
.moves .chip { grid-template-columns: 34px 1fr auto; }
.two { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; align-items: start; }
.two-wide { display: grid; grid-template-columns: 1fr auto; gap: clamp(24px, 4vw, 56px); align-items: center; }
.quote { font: 400 clamp(22px, 1rem + 1vw, 30px)/1.3 var(--display); color: var(--gold-ink); }
.fig figcaption { margin-top: 12px; font-size: 14px; color: var(--ink-2); max-width: 260px; }
@media (max-width: 860px) { .two, .two-wide { grid-template-columns: 1fr; } .two-wide .fig { justify-self: center; } }

/* deck masthead */
.deck-mast { background: linear-gradient(180deg, #0d0a08, #1a130e); }
.mast-plank { display: grid; grid-template-columns: 140px 1fr; gap: clamp(18px, 3vw, 36px); align-items: center; padding: clamp(20px, 3vw, 32px); position: relative; overflow: hidden; }
.mast-plank::before { content: ""; position: absolute; inset: 0 auto 0 0; width: 5px; background: #e0566b; }
.mast-plank .ic { width: 140px; height: 140px; }
.mast-plank h1 { text-transform: uppercase; letter-spacing: 0.04em; }
.mast-plank .lead { margin-top: 10px; color: var(--ink); }
@media (max-width: 600px) { .mast-plank { grid-template-columns: 1fr; justify-items: center; text-align: center; } .mast-plank .ic { width: 112px; height: 112px; } }
.fan { display: flex; justify-content: center; align-items: flex-end; padding: 12px 0 6px; }
.fan figure { width: min(280px, 32vw); margin: 0 -14px; }
.fan figure:nth-child(1) { transform: rotate(-6deg) translateY(10px); }
.fan figure:nth-child(3) { transform: rotate(6deg) translateY(10px); }
.fan img { width: 100%; height: auto; filter: drop-shadow(0 12px 18px rgba(0, 0, 0, 0.6)); }
.kit-list { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin-top: 18px; }
.kit-list li, .sig li { color: var(--ink); font-size: 15.5px; line-height: 1.45; }
.kit-list b, .sig b { display: block; font: 400 18px/1.2 var(--display); color: var(--gold-ink); }
.cost { display: inline-grid; place-items: center; min-width: 26px; height: 26px; margin-right: 6px; border-radius: 50%; background: #1f4f8a; color: #fff; font: 700 14px/1 var(--text); border: 1px solid #a8c8f0; vertical-align: 2px; }
.sig { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 28px 20px; }
.sig li { display: grid; justify-items: center; text-align: center; gap: 10px; }
.sig img { width: 200px; height: auto; filter: drop-shadow(0 10px 16px rgba(0, 0, 0, 0.6)); }
.sig .rar { font: 600 12px/1 var(--text); letter-spacing: 0.14em; text-transform: uppercase; color: var(--gold-2); }
.kw { display: grid; grid-template-columns: 1fr 1fr; gap: 14px 28px; margin-top: 16px; }
.kw dt { font: 400 19px/1.2 var(--display); color: var(--gold-hi); }
.kw dd { margin: 4px 0 0; color: var(--ink); }
@media (max-width: 600px) { .kit-list, .kw { grid-template-columns: 1fr; } .fan figure { margin: 0 -18px; } }
.mini-planks { grid-template-columns: repeat(3, 1fr); }
.mini-planks .plank { min-height: 96px; padding: 12px 84px 12px 12px; grid-template-columns: 52px 1fr; gap: 12px; }
.mini-planks .plank .ic { width: 52px; height: 52px; }
.mini-planks .plank h3 { font-size: 19px; }
.mini-planks .plank .peek { width: 80px; }
@media (max-width: 960px) { .mini-planks { grid-template-columns: 1fr 1fr; } }
@media (max-width: 600px) { .mini-planks { grid-template-columns: 1fr; } }

/* season masthead */
.season-mast { position: relative; isolation: isolate; overflow: hidden; padding: calc(var(--bar-h) + 40px) 0 56px; }
.season-mast .bg { position: absolute; inset: 0; z-index: -2; }
.season-mast .bg img { width: 100%; height: 100%; object-fit: cover; filter: brightness(0.5) saturate(0.9); }
.season-mast::before { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, rgba(13, 10, 8, 0.4), #0d0a08 96%); }
.season-mast .grid { display: grid; grid-template-columns: 1fr auto; gap: clamp(24px, 4vw, 64px); align-items: center; }
.season-mast .numeral { font: 400 clamp(72px, 4rem + 4vw, 140px)/0.9 var(--display); color: var(--gold); text-shadow: 0 4px 30px rgba(0, 0, 0, 0.8); }
.season-mast .bezel { width: 280px; }
.season-mast .bezel img { aspect-ratio: 780 / 1688; }
@media (max-width: 760px) { .season-mast .grid { grid-template-columns: 1fr; justify-items: center; text-align: center; } .season-mast .bezel { width: 220px; } }

/* news letter */
.letter-frame { padding: clamp(10px, 1.6vw, 16px); border-radius: 22px; }
.letter-frame .cover { width: 100%; height: auto; aspect-ratio: 21 / 9; object-fit: cover; border-radius: 12px; }
.letter { margin-top: clamp(10px, 1.6vw, 16px); background: var(--parch); border-radius: 12px; box-shadow: inset 0 0 0 1px rgba(201, 162, 39, 0.45); padding: clamp(24px, 5vw, 56px) clamp(20px, 5vw, 64px); }
.letter .inner { max-width: 680px; margin: 0 auto; }
.letter h1 { font-size: clamp(40px, 1.6rem + 3vw, 72px); margin: 12px 0 14px; }
.letter .lead { color: var(--ink); }
.letter h2 { font-size: clamp(24px, 1.1rem + 1vw, 32px); margin: 36px 0 14px; }
.letter ul { display: grid; gap: 10px; }
.letter li { position: relative; padding-left: 26px; font-size: 18px; line-height: 1.6; color: var(--ink); }
.letter li::before { content: ""; position: absolute; left: 4px; top: 0.62em; width: 9px; height: 9px; transform: rotate(45deg); background: var(--gold); }
.notice { margin-top: 28px; padding: 22px 22px 24px; border-radius: 14px; background: #241b13; box-shadow: inset 0 0 0 1px rgba(201, 162, 39, 0.55); }
.notice h2 { margin-top: 0; }
.letter-nav { display: flex; flex-wrap: wrap; gap: 12px 24px; justify-content: space-between; align-items: center; margin-top: 40px; padding-top: 24px; border-top: 1px solid rgba(201, 162, 39, 0.3); }
.letter-nav a { color: var(--gold-2); font-weight: 600; min-height: 44px; display: inline-flex; align-items: center; }

/* ── motion + transparency floors for this option's own surfaces ──────────────────────────── */
@media (prefers-reduced-motion: reduce) {
  .hp .bar { width: 100% !important; }
  .rail .fill { transition: none; }
}
@media (prefers-reduced-transparency: reduce) {
  .sheet, .chip, .plate { background: #17110c !important; -webkit-backdrop-filter: none !important; backdrop-filter: none !important; }
}
.arena-hero .layer picture { display: contents; }

/* ── fix round 1 ── */
.gl-short { display: none; }
@media (max-width: 600px) {
  .gl-long { display: none; }
  .gl-short { display: inline; }
  .hero-copy h1 { font-size: 40px; line-height: 1.0; }
}
.monument { width: 320px; max-width: 100%; }
.monument::before { content: ""; position: absolute; inset: -12% -18%; z-index: -1; background: radial-gradient(closest-side, rgba(240, 205, 120, 0.28), transparent); }
.monument { isolation: isolate; }
.finale h2 { margin-top: 28px; }
.finale .sub { margin-top: 14px; }
@media (max-width: 600px) { .monument { width: 240px; } }
.entry .media, .tablet .cover, .entry .media img, .entry .media video { background: #15100c; }
.entry .media img, .entry .media video { aspect-ratio: 4 / 5; object-fit: cover; object-position: 50% 10%; }
.tablet .cover { aspect-ratio: 16 / 9; object-fit: cover; object-position: 50% 10%; }

/* ══════════════════════════════════════════════════════════════════════════════════════════
   CORE (owner, 2026-10-30): the hero everyone liked, assembled from the three options.
   From A: the pointer parallax (empty arch behind, the colossus cut-out in front) and the hourglass glow.
   From C: the rising embers, the centred message, the gold kicker with the stronger contrast.
   Headline from A. No "Also on iPhone and Android" label; the official badges stay.
   These rules come AFTER option C's hero rules and override them.
   ══════════════════════════════════════════════════════════════════════════════════════════ */
.hero { position: relative; isolation: isolate; height: 100svh; min-height: 640px; max-height: 1400px; display: grid; align-items: end; overflow: hidden; }
.hero::before { content: none; }
.hero-stage { position: absolute; inset: 0; z-index: -2; background: var(--bg); overflow: hidden; }
.hero-layer { position: absolute; inset: -14px; width: calc(100% + 28px); height: calc(100% + 28px); will-change: transform; }
.hero-layer img, img.hero-layer { width: 100%; height: 100%; object-fit: cover; object-position: 50% 40%; display: block; }
/* one bottom gradient, nothing else over the art */
.hero::after { content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background: linear-gradient(180deg, rgba(13, 10, 8, 0.28) 0%, transparent 14%, transparent 40%, rgba(13, 10, 8, 0.42) 54%, rgba(13, 10, 8, 0.7) 68%, rgba(13, 10, 8, 0.94) 84%, var(--bg) 100%); }
.hero-glow { position: absolute; left: 50%; top: 47%; width: min(16vw, 260px); aspect-ratio: 1; transform: translate(-50%, -50%); border-radius: 50%; pointer-events: none;
  background: radial-gradient(circle, rgba(255, 176, 70, 0.38) 0, rgba(255, 140, 40, 0.12) 45%, transparent 70%); mix-blend-mode: screen; animation: glow 4s ease-in-out infinite; }
.embers { position: absolute; inset: 0; pointer-events: none; overflow: hidden; }
.ember { position: absolute; width: var(--sz); height: var(--sz); border-radius: 50%; background: #ffb347; box-shadow: 0 0 6px 1px rgba(255, 160, 60, 0.7); animation: ember linear infinite; }
.hero-copy { position: relative; width: min(860px, 100% - 40px); margin: 0 auto; padding: 0 0 clamp(32px, 6vh, 64px); text-align: center; display: grid; justify-items: center; gap: 14px; }
.hero-copy .kicker { font-size: 13px; letter-spacing: 0.2em; color: var(--gold-hi); text-shadow: 0 1px 6px rgba(0, 0, 0, 0.95); }
.hero-copy h1 { color: #fff6df; text-shadow: 0 2px 4px rgba(0, 0, 0, 0.9), 0 4px 28px rgba(0, 0, 0, 0.75); max-width: 13em; margin: 0; }
.hero-copy .sub { font-size: var(--lead); color: #fff6df; text-shadow: 0 1px 4px rgba(0, 0, 0, 0.95), 0 2px 18px rgba(0, 0, 0, 0.8); max-width: 30em; line-height: 1.45; margin: 0; }
.hero-cta { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px 14px; margin-top: 6px; }
.hero .badges { justify-content: center; margin-top: 6px; }
@media (min-aspect-ratio: 2/1) { .hero-layer img, img.hero-layer { object-position: 50% 45%; } }
@media (max-width: 760px) {
  .hero { min-height: 100svh; }
  img.hero-layer.hero-boss { display: none; }   /* the phone master already holds the colossus (specificity beats img.hero-layer) */
  .hero-layer img { object-position: 50% 0%; }
  .hero::after { background: linear-gradient(180deg, rgba(13, 10, 8, 0.3) 0%, transparent 12%, transparent 44%, rgba(13, 10, 8, 0.6) 56%, rgba(13, 10, 8, 0.92) 68%, var(--bg) 84%); }
  .hero-glow { top: 45%; width: 46vw; }
  .hero-copy { gap: 10px; padding-bottom: calc(22px + env(safe-area-inset-bottom)); }
  .hero-copy .kicker { font-size: 11px; letter-spacing: 0.14em; }
  .hero-copy h1 { font-size: 40px; line-height: 1.0; }
  .hero-copy .sub { font-size: 16px; }
  .hero-cta { gap: 10px; }
  .hero-cta .pill-lg { min-height: 50px; font-size: 16px; padding-right: 18px; gap: 10px; }
  .hero-cta .pill-lg .ring { width: 38px; height: 38px; }
}
@media (prefers-reduced-motion: reduce) { .hero-layer { transform: none !important; } .embers { display: none; } .hero-glow { animation: none; } }
/* core v2 effects (2026-10-30): canvas embers + stronger parallax (hero.js) */
.ember-canvas { position: absolute; left: 0; right: 0; top: 50%; bottom: 0; width: 100%; height: 50%; pointer-events: none; z-index: 0; mix-blend-mode: screen; }
.hero-layer { transition: none; }

@media (prefers-reduced-motion: reduce) { .ember-canvas { display: none; } }

/* Owner 2026-10-30: "move this text halfway up" - desktop hero copy sits at the vertical middle, not the bottom. */
@media (min-width: 761px) {
  .hero { align-items: center; }
  .hero-copy { padding: clamp(64px, 9vh, 96px) 0 0; }
}

/* Owner 2026-10-30: "prefer the Option A top navigation bar" - option A's bar, copied verbatim
   (transparent over the hero, logo on a glass capsule, glass Play pill; solid once scrolled). */
.brand { padding: 6px 14px; border-radius: 999px; background: rgba(12, 9, 7, 0.55); -webkit-backdrop-filter: var(--blur); backdrop-filter: var(--blur); border: 1px solid var(--rim-soft); }
.brand img { height: 36px; filter: none; }
.topbar.is-scrolled .brand, .topbar.is-solid .brand { background: transparent; border-color: transparent; -webkit-backdrop-filter: none; backdrop-filter: none; }
.home .topbar:not(.is-scrolled) .nav-cta .pill-gold { background: rgba(14, 10, 7, 0.62); color: #fff6df; border-color: rgba(201, 162, 39, 0.75); box-shadow: var(--glass-shadow); }
.home .topbar:not(.is-scrolled) .nav-cta .pill-gold .ring { border-color: var(--gold-2); background: radial-gradient(circle at 50% 35%, rgba(255, 230, 160, 0.25), rgba(20, 14, 9, 0.6)); }
.nav-cta .pill { min-height: 44px; }
@media (max-width: 760px) { .brand img { height: 30px; } .nav-cta .pill .lbl { font-size: 14px; } }
@media (max-width: 380px) { .nav-cta .pill .lbl { display: none; } .nav-cta .pill { padding-right: 4px; } }
@media (prefers-reduced-transparency: reduce) {
  .brand { background: #17110c !important; -webkit-backdrop-filter: none !important; backdrop-filter: none !important; }
  .topbar.is-scrolled .brand, .topbar.is-solid .brand { background: transparent !important; }
}

/* Owner 2026-10-31: logo "almost not readable" - use the tightly cropped solid lettering (1067 px source,
   so it stays crisp at 2-3x DPR) at a larger size, with a dark halo so it reads over the bright arch. */
.brand { padding: 6px 16px; }
.brand img { height: 46px; width: auto; filter: drop-shadow(0 1px 1px rgba(0, 0, 0, 0.9)) drop-shadow(0 0 6px rgba(0, 0, 0, 0.6)); image-rendering: auto; }
@media (max-width: 760px) { .brand img { height: 38px; } }

/* Owner 2026-10-31: hero text "a little bit down, half or one-third of what you moved it up" - ~65 px lower on desktop. */
@media (min-width: 761px) { .hero-copy { padding-top: clamp(170px, 24vh, 260px); } }


/* ══════════════════════════════════════════════════════════════════════════════════════════
   CORE v2 (2026-10-31): fixes from the uiux-materialdesign audit. Owner decisions untouched.
   Revert point: ../core-v1-2026-10-31/. Each block names its proposal number.
   ══════════════════════════════════════════════════════════════════════════════════════════ */

/* P1 · small-label floor: no text under 13 px anywhere, 14 px for the legal line (reads at a glance at 390). */
.kicker, .nameplate small, .sig .rar { font-size: 13px; }
.tag { font-size: 12.5px; padding: 6px 8px; }
.foot .copy { font-size: 14px; }
.hero-copy .kicker { font-size: 14px; }
@media (max-width: 760px) { .hero-copy .kicker { font-size: 13px; letter-spacing: 0.16em; } }

/* P2 · touch targets: every link and button at least 48 px tall (M3 48dp; was 39 nav, 40 badges, 42 small pills). */
.nav a { padding-top: 16px; padding-bottom: 17px; }
.pill-sm { min-height: 48px; }
.badge, .badge img { height: 48px; }
@media (max-width: 760px) { .badge, .badge img { height: 48px; } }
.foot-cols a { min-height: 48px; display: flex; align-items: center; padding: 0; }
.skip { min-height: 48px; display: inline-flex; align-items: center; }

/* P3 · the hero kicker sits on a liquid-glass capsule so the gold line reads over the hourglass art
   (same gold, same words; only a plate behind it). Reduced transparency gets a solid plate. */
.hero-copy .kicker { padding: 8px 16px; border-radius: 999px; background: rgba(12, 9, 7, 0.55);
  -webkit-backdrop-filter: blur(10px) saturate(1.2); backdrop-filter: blur(10px) saturate(1.2);
  border: 1px solid rgba(201, 162, 39, 0.45); line-height: 1; }
@media (prefers-reduced-transparency: reduce) { .hero-copy .kicker { background: #120d09; -webkit-backdrop-filter: none; backdrop-filter: none; } }

/* P4 · content never depends on JavaScript: sections that fade in on scroll stay visible if the script fails. */
html:not(.js) .reveal { opacity: 1; transform: none; }

/* core-v2-logo (owner 2026-11-01): bare logo, no capsule behind it */
.brand, .topbar.is-scrolled .brand, .topbar.is-solid .brand { background: transparent !important; border: 0 !important; padding: 0 !important; -webkit-backdrop-filter: none !important; backdrop-filter: none !important; box-shadow: none !important; }
.brand img { height: 58px; filter: drop-shadow(0 2px 2px rgba(0,0,0,.95)) drop-shadow(0 0 10px rgba(0,0,0,.75)); }
@media (max-width: 760px) { .brand img { height: 44px; } }
/* 2026-11-01 b: no shadow, lower */
.brand img { filter: none !important; }
.brand { margin-top: 18px; }
@media (max-width: 760px) { .brand { margin-top: 10px; } }
/* 2026-11-01 c: margin-top removed (owner) */
.brand { margin-top: 0 !important; }

/* bg-1 */
/* A descent: each section a deeper biome, darker as you scroll */
#world{background:linear-gradient(180deg,#0d0a08 0%,rgba(13,10,8,0.62) 16%,rgba(13,10,8,0.62) 84%,#0d0a08 100%),url("bg/cellars.webp") center / cover no-repeat,#0d0a08}
@media (max-width:700px){#world{background:linear-gradient(180deg,#0d0a08 0%,rgba(13,10,8,0.62) 16%,rgba(13,10,8,0.62) 84%,#0d0a08 100%),url("bg/cellars-m.webp") center / cover no-repeat,#0d0a08}}
#gatekeepers{background:linear-gradient(180deg,#0d0a08 0%,rgba(13,10,8,0.68) 16%,rgba(13,10,8,0.68) 84%,#0d0a08 100%),url("bg/bone.webp") center / cover no-repeat,#0d0a08}
@media (max-width:700px){#gatekeepers{background:linear-gradient(180deg,#0d0a08 0%,rgba(13,10,8,0.68) 16%,rgba(13,10,8,0.68) 84%,#0d0a08 100%),url("bg/bone-m.webp") center / cover no-repeat,#0d0a08}}
#decks{background:linear-gradient(180deg,#0d0a08 0%,rgba(13,10,8,0.72) 16%,rgba(13,10,8,0.72) 84%,#0d0a08 100%),url("bg/silk.webp") center / cover no-repeat,#0d0a08}
@media (max-width:700px){#decks{background:linear-gradient(180deg,#0d0a08 0%,rgba(13,10,8,0.72) 16%,rgba(13,10,8,0.72) 84%,#0d0a08 100%),url("bg/silk-m.webp") center / cover no-repeat,#0d0a08}}
#season{background:linear-gradient(180deg,#0d0a08 0%,rgba(13,10,8,0.76) 16%,rgba(13,10,8,0.76) 84%,#0d0a08 100%),url("bg/verd.webp") center / cover no-repeat,#0d0a08}
@media (max-width:700px){#season{background:linear-gradient(180deg,#0d0a08 0%,rgba(13,10,8,0.76) 16%,rgba(13,10,8,0.76) 84%,#0d0a08 100%),url("bg/verd-m.webp") center / cover no-repeat,#0d0a08}}
#news{background:linear-gradient(180deg,#0d0a08 0%,rgba(13,10,8,0.8) 16%,rgba(13,10,8,0.8) 84%,#0d0a08 100%),url("bg/kiln.webp") center / cover no-repeat,#0d0a08}
@media (max-width:700px){#news{background:linear-gradient(180deg,#0d0a08 0%,rgba(13,10,8,0.8) 16%,rgba(13,10,8,0.8) 84%,#0d0a08 100%),url("bg/kiln-m.webp") center / cover no-repeat,#0d0a08}}
.finale{background:linear-gradient(180deg,#0d0a08 0%,rgba(13,10,8,0.78) 16%,rgba(13,10,8,0.78) 84%,#0d0a08 100%),url("bg/stair.webp") center / cover no-repeat,#0d0a08}
@media (max-width:700px){.finale{background:linear-gradient(180deg,#0d0a08 0%,rgba(13,10,8,0.78) 16%,rgba(13,10,8,0.78) 84%,#0d0a08 100%),url("bg/stair-m.webp") center / cover no-repeat,#0d0a08}}
.foot{background:linear-gradient(180deg,#0d0a08,#070504)}

/* ── v3: real in-game doors + fresh captures ── */
.door-art { aspect-ratio: 480 / 506; width: 210px; }
.door-art .real { position: static; display: block; width: 100%; height: auto; border-radius: 14px; filter: drop-shadow(0 12px 18px rgba(0,0,0,.7)); }
@media (max-width: 760px) { .door-art { width: 170px; } }
.tablet .cover { object-position: 50% 30%; }
.monument.real-door { width: 300px; }
.monument.real-door img { border-radius: 18px; }
@media (max-width: 600px) { .monument.real-door { width: 230px; } }
::selection { background: rgba(201,162,39,.45); color: #fff8e6; }
.tablet .cover[src*="win-"] { object-position: 50% 8%; }
.door-art { aspect-ratio: auto; }
.door-art .real, .monument.real-door img { border-radius: 0; filter: drop-shadow(0 10px 14px rgba(0,0,0,.55)); }

/* How a run works: AD glass zig-zag (2026-11-01) */
.zz-list { display: grid; gap: clamp(28px, 4vw, 48px); max-width: 1120px; margin: 0 auto; }
.zz { display: flex; align-items: center; justify-content: center; gap: 40px; }
.zz.rev { flex-direction: row-reverse; }
.zz-cap { flex: 0 1 340px; padding: 22px 26px; border-radius: 22px; background: linear-gradient(160deg, rgba(255,244,220,.10), rgba(255,244,220,.02) 40%), rgba(18,14,11,.72); -webkit-backdrop-filter: blur(16px) saturate(1.2); backdrop-filter: blur(16px) saturate(1.2); border: 1px solid rgba(227,200,115,.38); box-shadow: inset 0 1px 0 rgba(255,255,255,.14), 0 18px 40px rgba(0,0,0,.55); }
.zz-cap h3 { font: 600 26px/1.2 var(--text); color: #fff4dc; }
.zz-n { font-family: var(--display); color: var(--gold-hi, #e3c873); margin-right: 10px; }
.zz-cap p { margin-top: 6px; font-size: 18px; line-height: 1.4; color: #efe4cc; }
.zz-vis { display: flex; align-items: center; justify-content: center; gap: 24px; min-width: 0; }
.zz-shot { display: block; width: 380px; max-width: 100%; height: auto; border-radius: 16px; border: 1px solid rgba(227,200,115,.45); box-shadow: 0 18px 40px rgba(0,0,0,.6); }
.zz-panel { display: block; width: 240px; height: auto; filter: drop-shadow(0 14px 22px rgba(0,0,0,.6)); }
.zz-doors { display: grid; grid-template-columns: repeat(2, 130px); gap: 14px; }
.zz-doors img { width: 100%; height: auto; filter: drop-shadow(0 8px 12px rgba(0,0,0,.6)); }
@media (prefers-reduced-transparency: reduce) { .zz-cap { background: #1a1511; -webkit-backdrop-filter: none; backdrop-filter: none; } }
@media (max-width: 1100px) { .zz-vis { flex-wrap: wrap; } }
@media (max-width: 760px) {
  .zz, .zz.rev { flex-direction: column; gap: 14px; }
  .zz-cap { flex: none; width: 100%; padding: 14px 18px; text-align: center; }
  .zz-cap h3 { font-size: 21px; } .zz-cap p { font-size: 16px; }
  .zz-vis { flex-direction: column; width: 100%; gap: 14px; }
  .zz-shot { width: 100%; }
  .zz-panel { width: min(320px, 100%); }
  .zz-doors { grid-template-columns: repeat(2, minmax(0, 150px)); }
}

/* ══ UNIFIED LIQUID GLASS (owner 2026-11-01) ══════════════════════════════════════════════════
   ONE glass for every panel, plate, card frame and dialog on every core-v3 page. Tokens copied
   exactly from the game's Obsidian Glass (obsidian-glass-guideline.md + src/ui/stonePanel.css).
   Game screenshots keep their single border (no glass around captures). */
:root {
  --og-surface: rgba(26, 21, 16, 0.55);
  --og-surface-2: rgba(48, 40, 28, 0.55);
  --og-blur: blur(14px) saturate(125%);
  --og-rim: rgba(201, 162, 39, 0.40);
  --og-rim-soft: rgba(201, 162, 39, 0.16);
  --og-rim-hot: rgba(216, 178, 90, 0.80);
  --og-radius: 16px;
  --og-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.10), inset 0 0 0 1px rgba(201, 162, 39, 0.16), 0 16px 42px rgba(0, 0, 0, 0.5);
  --og-solid: #1a1510;
  --og-ink: #f0e8d6; --og-muted: #c4b89e; --og-accent-ink: #f3e6c2;
}
.glass, .glass-2, .stone, .plate, .sheet, .chip, .court .nm, .plank, .mast-plank, .codex-bar, .parch, .letter, .notice,
.zz-cap, .drawer, .hero-copy .kicker, .monument .inscription,
.gk5-card, .gk5-sheet, .gk5-move, dialog {
  background: var(--og-surface) !important;
  -webkit-backdrop-filter: var(--og-blur) !important; backdrop-filter: var(--og-blur) !important;
  border: 1px solid var(--og-rim) !important;
  border-radius: var(--og-radius) !important;
  box-shadow: var(--og-shadow) !important;
  color: var(--og-ink);
}
.gk5-sheet { border-radius: var(--og-radius) var(--og-radius) 0 0 !important; }
.hero-copy .kicker { border-radius: 999px !important; }
.gk5-move.late { border-style: dashed !important; }
@media (prefers-reduced-transparency: reduce), (prefers-contrast: more) {
  .glass, .glass-2, .stone, .plate, .sheet, .chip, .court .nm, .plank, .mast-plank, .codex-bar, .parch, .letter, .notice,
  .zz-cap, .drawer, .hero-copy .kicker, .monument .inscription,
  .gk5-card, .gk5-sheet, .gk5-move, dialog {
    background: var(--og-solid) !important; -webkit-backdrop-filter: none !important; backdrop-filter: none !important;
  }
}
/* footer: no glow logo, centred content (owner 11-01) */
.foot .logo{filter:none!important;box-shadow:none!important;display:block}
.foot-cols{text-align:center}
.foot-cols a{justify-content:center}

/* ── NEWS cards (2026-11-01): one glass border, equal heights, 16:9 screenshot on top ── */
#news .ncards { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; align-items: stretch; }
#news .ncard { display: flex; flex-direction: column; overflow: hidden; text-decoration: none; color: var(--og-ink, #f0e8d6);
  border-radius: 16px; border: 1px solid rgba(216, 178, 90, 0.55);
  background: linear-gradient(180deg, rgba(34, 27, 19, 0.86), rgba(20, 16, 12, 0.92));
  -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08), 0 18px 40px rgba(0, 0, 0, 0.45);
  transition: transform 0.2s, border-color 0.2s, box-shadow 0.2s; }
#news .ncard:hover { transform: translateY(-3px); border-color: rgba(232, 196, 104, 0.95); }
#news .ncard:focus-visible { outline: 3px solid #f2cf6b; outline-offset: 3px; }
#news .ncover { display: block; width: 100%; height: auto; aspect-ratio: 16 / 9; object-fit: cover; object-position: 50% 50%; background: #15100c; border-bottom: 1px solid rgba(216, 178, 90, 0.35); }
#news .nbody { flex: 1; display: flex; flex-direction: column; gap: 8px; padding: 16px 18px 18px; }
#news .nmeta { display: flex; justify-content: space-between; align-items: baseline; margin: 0; font-size: 14px; color: #cbbfa6; }
#news .nmeta .ver { font: 400 15px/1 var(--display); letter-spacing: 0.12em; color: #f2cf6b; }
#news .ncard h3 { margin: 0; color: #f6e2a8; }
#news .nsum { margin: 0; color: #e6dccb; font-size: 16px; line-height: 1.5; }
#news .go { margin-top: auto; padding-top: 6px; font-weight: 600; color: #f2cf6b; }
@media (max-width: 960px) { #news .ncards { grid-template-columns: 1fr; max-width: 560px; margin-inline: auto; } }
@media (prefers-reduced-transparency: reduce) { #news .ncard { background: #1a1510; -webkit-backdrop-filter: none; backdrop-filter: none; } }
@media (prefers-reduced-motion: reduce) { #news .ncard { transition: none; } #news .ncard:hover { transform: none; } }
/* drawer opens below the top bar, so it never covers the logo or "Get the app" (owner 11-01) */
@media (max-width: 960px){ .drawer:not([hidden]){ top: var(--bar-h) !important; height: calc(100% - var(--bar-h)); padding-top: 20px !important; border-top: 1px solid var(--rim); } }
