/* ============================================================
   CoreSquares - Fraunces + Inter, brass gold, live lit board.
   Design system ported from the game's real brand; KB component
   styles preserved via legacy token aliases.
   ============================================================ */

:root {
  /* core palette */
  --ink:        #07060a;
  --ink-2:      #0a090f;
  --raised:     #100e16;
  --card:       #15131d;

  --gold:       #c8a961;
  --gold-bright:#e6c679;
  --gold-cream: #fff6e0;
  --gold-deep:  #221a06;

  --text:       #efe9dd;
  --text-soft:  #c2bbad;
  --muted:      #8b857a;
  --faint:      #57524a;

  --hair:       rgba(232,224,208,0.10);
  --hair-gold:  rgba(200,169,97,0.22);

  --accent:     #c8a961;   /* per-world / global accent, driven by JS */
  --bloom:      0.6;

  --serif: "Fraunces", Georgia, "Times New Roman", serif;
  --sans:  "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --mono:  "Inter", ui-monospace, monospace;
  --ease:  cubic-bezier(.22,.61,.36,1);

  --max-w: 1180px;
  --max-w-narrow: 820px;

  /* legacy aliases so existing KB rules adopt the new palette */
  --bg:         var(--ink);
  --bg-raised:  var(--ink-2);
  --bg-card:    var(--card);
  --text-muted: var(--muted);
  --gold-dim:   var(--gold);
  --gold-glow:  rgba(200,169,97,0.20);
  --border:     var(--hair);
  --radius:     14px;
  --radius-sm:  9px;
  --font:       var(--sans);
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  font-family: var(--sans);
  background: var(--ink);
  color: var(--text);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
a { color: var(--gold); text-decoration: none; transition: color .15s; }
a:hover { color: var(--gold-bright); }
img { max-width: 100%; height: auto; display: block; }
::selection { background: var(--gold); color: var(--gold-deep); }

/* ── Type helpers ───────────────────────────────────────── */
.eyebrow {
  font-family: var(--mono); font-size: 12px; font-weight: 600;
  letter-spacing: 0.32em; text-transform: uppercase; color: var(--accent);
  display: inline-flex; align-items: center; gap: 12px;
}
.eyebrow::before { content: ""; width: 26px; height: 1px; background: currentColor; opacity: .6; }
.display {
  font-family: var(--serif); font-weight: 600; line-height: 1.04;
  letter-spacing: -0.012em; color: var(--text);
  font-size: clamp(32px, 5.2vw, 58px);
}
.display .em { font-style: italic; font-weight: 400; color: var(--gold-bright); }
.lede { color: var(--text-soft); font-size: clamp(16px, 1.7vw, 19px); max-width: 58ch; line-height: 1.7; }

/* ── Brand mark (2x2 center squares) ────────────────────── */
.mark { display: grid; grid-template-columns: 1fr 1fr; gap: 9%; aspect-ratio: 1; flex: none; }
.mark span { border-radius: 12%; }
.mark span:nth-child(1), .mark span:nth-child(4) { background: #f0f0f0; }
.mark span:nth-child(2), .mark span:nth-child(3) { background: linear-gradient(150deg, var(--gold-bright), var(--gold)); }

/* ── Nav ────────────────────────────────────────────────── */
.site-nav {
  position: sticky; top: 0; z-index: 100;
  background: transparent;
  border-bottom: 1px solid transparent;
  transition: background .3s var(--ease), border-color .3s var(--ease), backdrop-filter .3s;
}
.site-nav.scrolled {
  background: color-mix(in srgb, var(--ink) 82%, transparent);
  backdrop-filter: blur(18px) saturate(1.3); -webkit-backdrop-filter: blur(18px) saturate(1.3);
  border-bottom-color: var(--hair);
}
.nav-inner {
  max-width: var(--max-w); margin: 0 auto; padding: 0 1.5rem;
  display: flex; align-items: center; justify-content: space-between; height: 64px;
}
.nav-logo { display: flex; align-items: center; gap: 0.6rem; font-weight: 600; font-size: 1.1rem; color: var(--text); font-family: var(--serif); }
.nav-logo img { border-radius: 7px; }
.nav-toggle { display: flex; flex-direction: column; gap: 5px; background: none; border: none; cursor: pointer; padding: 8px; }
.nav-toggle span { width: 22px; height: 2px; background: var(--text); border-radius: 2px; transition: .25s var(--ease); }
.nav-links {
  display: none; position: absolute; top: 64px; left: 0; right: 0;
  background: var(--ink-2); border-bottom: 1px solid var(--hair); padding: 0.5rem 0;
}
.site-nav.open .nav-links { display: block; }
.nav-links a { display: block; padding: 0.85rem 1.5rem; color: var(--text-soft); font-size: 1.05rem; font-family: var(--serif); transition: .15s; }
.nav-links a:hover, .nav-links a.active { color: var(--gold-bright); }

@media (min-width: 860px) {
  .nav-toggle { display: none; }
  .nav-links {
    display: flex; position: static; background: none; border: none; padding: 0; gap: 0.25rem;
  }
  .nav-links a { padding: 0.5rem 0.85rem; border-radius: 999px; font-family: var(--sans); font-size: 0.92rem; font-weight: 500; color: var(--text-soft); }
  .nav-links a:hover { background: rgba(255,255,255,.05); color: var(--text); }
  .nav-links a.active { color: var(--gold-bright); background: rgba(200,169,97,.08); }
}
/* Early-access nav button: dark text on brass at every width (never gold-on-gold) */
.nav-links a.nav-cta, .nav-links a.nav-cta:hover, .nav-links a.nav-cta.active {
  color: var(--gold-deep); background: linear-gradient(180deg, #f3dda1, var(--gold));
  font-weight: 700; font-family: var(--sans); padding: 8px 18px; border-radius: 999px;
  box-shadow: 0 0 20px -6px rgba(200,169,97,.6);
}
.nav-links a.nav-cta:hover { filter: brightness(1.06); }

/* ── Footer ─────────────────────────────────────────────── */
.site-footer { border-top: 1px solid var(--hair); padding: 3.5rem 1.5rem 3rem; margin-top: 4rem; background: var(--ink-2); }
.footer-inner { max-width: var(--max-w); margin: 0 auto; }
.footer-links { display: flex; flex-wrap: wrap; gap: 0.75rem 1.6rem; margin-bottom: 1.5rem; }
.footer-links a { color: var(--text-soft); font-size: 0.9rem; }
.footer-links a:hover { color: var(--gold); }
.footer-meta { display: flex; flex-wrap: wrap; gap: 0.5rem 1.5rem; color: var(--muted); font-size: 0.85rem; }
.footer-meta a { color: var(--muted); }

/* ── Shared blocks ──────────────────────────────────────── */
.section-inner { max-width: var(--max-w); margin: 0 auto; padding: 0 1.5rem; }
.section-inner.narrow { max-width: var(--max-w-narrow); }
.section-title { font-family: var(--serif); font-size: clamp(1.6rem, 3.4vw, 2.2rem); font-weight: 600; letter-spacing: -0.01em; margin-bottom: 1rem; color: var(--text); }
.section-subtitle { color: var(--text-soft); max-width: 640px; margin-bottom: 1.5rem; }

/* ── Reveal ─────────────────────────────────────────────── */
.fade-in { opacity: 0; transform: translateY(24px); transition: opacity .7s var(--ease), transform .7s var(--ease); }
.fade-in.visible { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { .fade-in { opacity: 1; transform: none; } }

/* ── Atmosphere ─────────────────────────────────────────── */
.bloom { position: absolute; border-radius: 50%; pointer-events: none; filter: blur(12px);
  background: radial-gradient(circle, color-mix(in srgb, var(--accent) calc(var(--bloom)*70%), transparent) 0%, transparent 68%); }
.spark { position: absolute; width: 3px; height: 3px; border-radius: 50%; background: var(--gold-cream); box-shadow: 0 0 7px 1px rgba(230,198,121,.7); opacity: 0; animation: tw 6s var(--ease) infinite; pointer-events: none; }
@keyframes tw { 0%,100% { opacity: 0; transform: scale(.5); } 50% { opacity: .9; transform: scale(1); } }

/* ============================================================
   Playable board - faithful School theme (chalkboard tiles,
   gold star targets, golden beam lighting)
   ============================================================ */
.cb {
  position: relative; display: grid;
  grid-template-columns: repeat(var(--cb-cols), 1fr);
  grid-template-rows: repeat(var(--cb-rows), 1fr);
  aspect-ratio: var(--cb-cols) / var(--cb-rows);
  width: 100%; container-type: size;
  border-radius: 7px; overflow: hidden;
  border: 3px solid #c9a85a;
  box-shadow: 0 0 0 1px rgba(0,0,0,.5), inset 0 0 0 1px rgba(255,236,180,.25), 0 12px 34px -12px rgba(0,0,0,.7);
}
.cb-tile { position: relative; background-size: cover; background-position: center; }
.cb-tile.l { background-image: url(/images/game/tile_light.webp); }
.cb-tile.d { background-image: url(/images/game/tile_dark.webp); }
.cb-tile::before {
  content: ""; position: absolute; inset: 0;
  background: radial-gradient(circle, rgba(255,236,150,.62) 0%, rgba(245,205,90,.4) 55%, rgba(245,205,90,.16) 82%, transparent 100%);
  opacity: 0; transition: opacity .4s var(--ease); transition-delay: inherit;
}
.cb-tile.lit::before { opacity: 1; }
.cb-tile::after {
  content: ""; position: absolute; inset: 9%; border: 2px dashed rgba(255,232,150,.9); border-radius: 3px;
  opacity: 0; transition: opacity .4s var(--ease); transition-delay: inherit;
}
.cb-tile.lit::after { opacity: .85; }
.cb-tile.src::before { opacity: 1; background: radial-gradient(circle, #fff 0%, #ffe9a8 45%, rgba(245,205,90,.6) 80%, transparent 100%); }
.cb-tile.hint { animation: hintpulse 1.3s ease-in-out 2; }
@keyframes hintpulse { 0%,100% { box-shadow: inset 0 0 0 0 rgba(255,232,150,0); } 50% { box-shadow: inset 0 0 0 3px rgba(255,232,150,.95); } }

.cb-targets { position: absolute; inset: 0; pointer-events: none; z-index: 3; }
.cb-target {
  position: absolute; transform: translate(-50%,-50%);
  width: calc(100cqi / var(--cb-cols) * 0.74); height: calc(100cqi / var(--cb-cols) * 0.74);
  background: url(/images/game/star.webp) center / 80% no-repeat;
  filter: drop-shadow(0 1px 2px rgba(0,0,0,.5));
  transition: transform .35s cubic-bezier(.2,.9,.3,1.5), filter .35s var(--ease);
}
.cb-target::before {
  content: ""; position: absolute; inset: -8%; border-radius: 26%; z-index: -1;
  background: radial-gradient(circle, rgba(229,75,60,.95) 30%, rgba(150,30,24,.5) 70%, transparent 85%);
  transition: background .35s var(--ease);
}
.cb-target.solved { filter: brightness(1.05) drop-shadow(0 0 8px rgba(255,210,90,.9)); transform: translate(-50%,-50%) scale(1.12); }
.cb-target.solved::before { background: radial-gradient(circle, rgba(255,210,90,.85) 30%, rgba(245,180,60,.45) 70%, transparent 85%); }

.cb-pieces { position: absolute; inset: 0; pointer-events: none; z-index: 4; }
.cb-piece {
  position: absolute; transform: translate(-50%,-50%) scale(.55);
  opacity: 0; transition: opacity .3s var(--ease), transform .42s cubic-bezier(.2,.9,.3,1.45);
}
.cb-piece img { width: 100%; height: 100%; display: block; filter: drop-shadow(0 2px 4px rgba(0,0,0,.55)); }
.cb-piece.in { opacity: 1; transform: translate(-50%,-50%) scale(1); }

/* ============================================================
   Hero
   ============================================================ */
.hero { position: relative; overflow: hidden; padding: clamp(36px, 6vw, 80px) 0 clamp(56px, 8vw, 104px);
  background: radial-gradient(1000px 680px at 82% 8%, rgba(214,138,54,.12), transparent 58%), radial-gradient(900px 700px at 12% 90%, rgba(200,169,97,.06), transparent 60%); }
.hero .bloom { width: 760px; height: 760px; top: -220px; right: -120px; --bloom: .62; }
.hero-atmos { position: absolute; inset: 0; z-index: 0; pointer-events: none; overflow: hidden; }
.hero-atmos::before { content: ""; position: absolute; inset: -4%;
  background: url(/images/worlds/bg_lava.webp) right 30% / cover no-repeat;
  opacity: .18; filter: blur(3px) saturate(1.05);
  -webkit-mask-image: radial-gradient(125% 110% at 92% 28%, #000 0%, rgba(0,0,0,.5) 38%, transparent 66%);
  mask-image: radial-gradient(125% 110% at 92% 28%, #000 0%, rgba(0,0,0,.5) 38%, transparent 66%); }
.sparks { position: absolute; inset: 0; pointer-events: none; z-index: 1; }
.hero-grid { position: relative; z-index: 2; max-width: var(--max-w); margin: 0 auto; padding: 0 1.5rem; display: grid; grid-template-columns: 1fr; gap: clamp(40px, 6vw, 70px); align-items: center; }
.hero-copy { max-width: 620px; }
.hero-kicker { display: flex; align-items: center; gap: 14px; margin-bottom: 28px; }
.hero-kicker .mark { width: 32px; }
.hero-kicker .halo { position: relative; }
.hero-kicker .halo::after { content: ""; position: absolute; inset: -70%; border-radius: 50%; background: radial-gradient(circle, rgba(230,198,121,.45), transparent 70%); z-index: -1; }
.hero-kicker span { font-family: var(--mono); font-size: 12px; letter-spacing: .3em; text-transform: uppercase; color: var(--muted); }
.wordmark {
  font-family: var(--serif); font-weight: 600;
  font-size: clamp(48px, 7.6vw, 86px); line-height: 0.92; letter-spacing: -0.02em;
  background: linear-gradient(176deg, var(--gold-cream) 0%, var(--gold-bright) 55%, var(--gold) 100%);
  -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; color: transparent;
  filter: drop-shadow(0 6px 40px rgba(200,169,97,.22)); margin-bottom: 16px;
}
.hero-line { font-family: var(--serif); font-weight: 400; font-style: italic; font-size: clamp(20px, 3vw, 29px); color: var(--text); margin-bottom: 18px; line-height: 1.25; }
.hero-line b { font-style: normal; font-weight: 600; color: var(--gold-bright); }
.hero-desc { color: var(--text-soft); font-size: 17px; max-width: 46ch; margin-bottom: 30px; line-height: 1.7; }
.hero-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 20px; }
.play-badge img { height: 56px; transition: transform .2s var(--ease), filter .2s; }
.play-badge:hover img { transform: translateY(-2px); filter: brightness(1.08); }
.ghost-cta { font-size: 14px; font-weight: 600; padding: 13px 22px; border-radius: 999px; border: 1px solid var(--hair-gold); color: var(--text); transition: border-color .2s, background .2s, color .2s; }
.ghost-cta:hover { border-color: var(--gold); background: rgba(200,169,97,.08); color: var(--gold-bright); }
.hero-cta { display: inline-block; text-decoration: none; }
.platform-pill { display: inline-flex; align-items: center; gap: 8px; font-family: var(--mono); font-size: 12px; letter-spacing: .08em; text-transform: uppercase; color: var(--text-soft); border: 1px solid var(--hair-gold); border-radius: 999px; padding: 9px 15px; }
.platform-pill svg { color: var(--gold-bright); flex: none; }

.hero-stage { position: relative; }
.screen { position: relative; width: min(430px, 96%); margin: 0 auto; border-radius: 22px; overflow: hidden; padding: 0 0 14px;
  background: linear-gradient(180deg, #243029 0%, #1e2a24 46%, #2f2417 64%, #49351f 100%);
  box-shadow: 0 0 0 1px rgba(255,255,255,.05), 0 50px 120px -40px rgba(0,0,0,.9), 0 0 110px -26px color-mix(in srgb, var(--gold-bright) 34%, transparent); }
.screen::before { content: ""; position: absolute; inset: 0; pointer-events: none; background: radial-gradient(120% 80% at 50% 28%, transparent 55%, rgba(0,0,0,.45) 100%); }
.screen-head { position: relative; display: flex; align-items: baseline; gap: 10px; padding: 16px 18px 12px; }
.screen-back { color: var(--gold-bright); font-size: 22px; line-height: 1; }
.screen-title { font-family: var(--serif); font-weight: 700; font-size: 22px; letter-spacing: .01em; color: var(--gold-bright); }
.screen-sub { font-family: var(--mono); font-size: 11px; letter-spacing: .18em; text-transform: uppercase; color: var(--text-soft); }
.board-wrap { position: relative; padding: 4px 18px 14px; }
.demo-board.cb { width: 100%; cursor: pointer; }
/* onboarding tap-hand: points at the queen in the tray and taps on a
   loop until the visitor interacts (does NOT reveal the solution) */
.tap-hand { position: absolute; left: 50%; top: 50%; width: 40px; height: 40px; margin-left: 12px; margin-top: 4px; z-index: 6; pointer-events: none; color: #fdfcf8; transform-origin: 60% 0%; animation: taphand 1.6s ease-in-out infinite; filter: drop-shadow(0 2px 4px rgba(0,0,0,.7)); }
.tap-hand svg { width: 100%; height: 100%; }
@keyframes taphand {
  0%, 100% { transform: translate(0, 0) scale(1); }
  18% { transform: translate(-6px, -8px) scale(1.05); }
  40% { transform: translate(0, 0) scale(.9); }
  58% { transform: translate(0, 0) scale(1); }
}
.game.started .tap-hand { opacity: 0; transform: scale(.5); transition: opacity .3s, transform .3s; }
@media (prefers-reduced-motion: reduce) { .tap-hand { animation: none; } }
.cb-tile.drop-hover::after { opacity: .9; border-style: solid; }
.screen-tray { position: relative; display: flex; align-items: center; justify-content: center; min-height: 60px; padding: 2px 0; }
.demo-piece { width: 52px; height: 52px; display: grid; place-items: center; border-radius: 12px; background: rgba(0,0,0,.28); border: 1px solid var(--hair-gold); cursor: grab; touch-action: none; user-select: none; transition: transform .15s, opacity .2s; }
.demo-piece img { width: 80%; height: 80%; pointer-events: none; filter: drop-shadow(0 2px 4px rgba(0,0,0,.5)); }
.demo-piece.grabbing { cursor: grabbing; transform: scale(.92); }
.screen-tray.placed .demo-piece { opacity: .3; pointer-events: none; }
.demo-ghost { position: fixed; z-index: 9999; pointer-events: none; width: 52px; height: 52px; transform: translate(-50%,-50%); }
.demo-ghost img { width: 100%; height: 100%; filter: drop-shadow(0 4px 8px rgba(0,0,0,.6)); }
.screen-hud { position: relative; display: grid; grid-template-columns: 1fr 1fr; gap: 10px; padding: 4px 16px 0; }
.hud-btn { display: flex; flex-direction: column; align-items: center; gap: 5px; padding: 9px; border: 1px solid var(--hair-gold); border-radius: 10px; background: rgba(0,0,0,.22); color: var(--gold-bright); font-family: var(--mono); font-size: 10.5px; letter-spacing: .12em; text-transform: uppercase; cursor: pointer; transition: background .2s; }
.hud-btn:hover { background: rgba(200,169,97,.14); }
.hud-btn svg { width: 17px; height: 17px; }
.screen-hint { position: relative; text-align: center; color: var(--text-soft); font-family: var(--mono); font-size: 11px; letter-spacing: .04em; padding: 10px 16px 2px; min-height: 1.2em; }
.demo-win { position: absolute; inset: 0; display: grid; place-items: center; z-index: 6; padding: 1rem; background: rgba(5,8,6,.82); backdrop-filter: blur(7px); -webkit-backdrop-filter: blur(7px); opacity: 0; transition: opacity .4s var(--ease); }
.demo-win.show { opacity: 1; }
.demo-win[hidden] { display: none; }
.demo-win-card { text-align: center; max-width: 300px; background: rgba(8,11,9,.94); border: 1px solid var(--hair-gold); border-radius: 18px; padding: 26px 24px; box-shadow: 0 24px 60px -20px rgba(0,0,0,.8); }
.demo-win-check { display: inline-grid; place-items: center; width: 56px; height: 56px; border-radius: 50%; background: linear-gradient(180deg, #f3dda1, var(--gold)); color: var(--gold-deep); font-size: 28px; font-weight: 700; box-shadow: 0 0 30px -4px rgba(200,169,97,.7); margin-bottom: 14px; }
.demo-win-card h3 { font-family: var(--serif); font-weight: 600; font-size: 30px; color: var(--text); margin-bottom: 8px; }
.demo-win-card p { color: var(--text-soft); font-size: 14px; line-height: 1.6; margin-bottom: 18px; }
.demo-win-cta { display: inline-block; text-align: center; }
.demo-win-again { display: block; margin: 14px auto 0; background: none; border: 0; color: var(--text-soft); font-family: var(--sans); font-size: 13px; cursor: pointer; text-decoration: underline; }
.demo-win-again:hover { color: var(--gold-bright); }
.stage-cap { margin-top: 18px; text-align: center; font-family: var(--mono); font-size: 11.5px; letter-spacing: .2em; text-transform: uppercase; color: var(--text-soft); display: flex; align-items: center; justify-content: center; gap: 9px; }
.stage-cap .dot { width: 7px; height: 7px; border-radius: 50%; background: var(--gold-bright); box-shadow: 0 0 9px 1px var(--gold-bright); animation: pulse 2.4s ease-in-out infinite; }
@keyframes pulse { 0%,100% { opacity: .5; } 50% { opacity: 1; } }
@media (min-width: 940px) { .hero-grid { grid-template-columns: 1fr 0.92fr; } }

/* ── Marquee ────────────────────────────────────────────── */
.strip { border-top: 1px solid var(--hair); border-bottom: 1px solid var(--hair); background: var(--ink-2); overflow: hidden; padding: 18px 0;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 7%, #000 93%, transparent); mask-image: linear-gradient(90deg, transparent, #000 7%, #000 93%, transparent); }
.strip-track { display: flex; width: max-content; animation: marquee 44s linear infinite; }
.strip-track span { font-family: var(--serif); font-size: 18px; font-style: italic; color: var(--text-soft); display: inline-flex; align-items: center; }
.strip-track span i { font-style: normal; color: var(--gold); margin: 0 28px; font-size: 9px; }
@keyframes marquee { to { transform: translateX(-50%); } }
@media (prefers-reduced-motion: reduce) { .strip-track { animation: none; } }

/* ── Section scaffold ───────────────────────────────────── */
.section { padding: clamp(72px, 11vw, 130px) 0; position: relative; }
.section-head { max-width: 760px; }
.section-head .display { margin: 18px 0 16px; }

/* ── Mechanic explainer (prose + real screenshot) ───────── */
.mech { position: relative; overflow: hidden; }
.mech .bloom { width: 600px; height: 600px; left: -200px; top: 30%; --bloom: .3; }
.mech-grid { position: relative; z-index: 2; max-width: var(--max-w); margin: 0 auto; padding: 0 1.5rem; display: grid; gap: clamp(36px, 6vw, 70px); align-items: center; }
.mech-shot { position: relative; justify-self: center; }
.mech-shot img { width: min(300px, 78vw); border-radius: 22px; box-shadow: 0 40px 90px -40px rgba(0,0,0,.85), 0 0 70px -28px color-mix(in srgb, var(--gold-bright) 36%, transparent); }
.mech-copy p { color: var(--text-soft); font-size: 16.5px; line-height: 1.75; margin-bottom: 1rem; }
.mech-copy p:last-child { margin-bottom: 0; }
.mech-copy .em { color: var(--gold-bright); font-style: italic; font-family: var(--serif); }
@media (min-width: 860px) { .mech-grid { grid-template-columns: 0.8fr 1.05fr; } }

/* ── Worlds rail ────────────────────────────────────────── */
.worlds { position: relative; overflow: hidden; padding: clamp(72px, 11vw, 130px) 0 clamp(64px, 9vw, 110px);
  background: radial-gradient(1200px 600px at 80% 0%, color-mix(in srgb, var(--accent) 13%, transparent), transparent 70%), var(--ink);
  transition: background .6s var(--ease); }
.worlds .section-head { max-width: 820px; margin: 0 auto; padding: 0 1.5rem; }
.rail-head { display: flex; align-items: center; justify-content: space-between; gap: 20px; max-width: var(--max-w); margin: 44px auto 18px; padding: 0 1.5rem; }
.rail-progress { flex: 1; height: 2px; background: var(--hair); border-radius: 2px; position: relative; overflow: hidden; }
.rail-progress i { position: absolute; left: 0; top: 0; height: 100%; width: 14%; background: linear-gradient(90deg, var(--accent), var(--gold-bright)); border-radius: 2px; transition: left .25s var(--ease); }
.rail-arrows { display: flex; gap: 10px; }
.rail-arrows button { width: 46px; height: 46px; border-radius: 50%; border: 1px solid var(--hair-gold); background: transparent; color: var(--text); font-size: 18px; cursor: pointer; transition: background .2s, border-color .2s, transform .15s; display: grid; place-items: center; }
.rail-arrows button:hover { background: rgba(200,169,97,.1); border-color: var(--gold); }
.rail-arrows button:active { transform: scale(.94); }
.worlds-rail { display: flex; gap: 26px; overflow-x: auto; scroll-snap-type: x mandatory; padding: 14px 1.5rem 30px; scrollbar-width: none; -webkit-overflow-scrolling: touch; scroll-padding-left: 1.5rem; }
.worlds-rail::-webkit-scrollbar { display: none; }
.wpanel {
  flex: 0 0 auto; width: min(400px, 84vw); scroll-snap-align: start; border-radius: 20px; overflow: hidden; position: relative;
  background: linear-gradient(180deg, color-mix(in srgb, var(--wc) 16%, var(--card)), var(--ink-2));
  border: 1px solid rgba(255,255,255,.07); color: var(--text);
  transition: transform .35s var(--ease), border-color .35s, box-shadow .35s;
}
.wpanel:hover { transform: translateY(-6px); border-color: var(--wc); box-shadow: 0 30px 70px -34px color-mix(in srgb, var(--wc) 95%, transparent); color: var(--text); }
.wpanel-art { display: block; position: relative; aspect-ratio: 4 / 5; overflow: hidden; }
.wpanel-art img { width: 100%; height: 100%; object-fit: cover; object-position: center; transition: transform .6s var(--ease); }
.wpanel:hover .wpanel-art img { transform: scale(1.05); }
.wpanel-art::after { content: ""; position: absolute; inset: 0; background: radial-gradient(120% 90% at 50% 0%, transparent 40%, color-mix(in srgb, var(--wc) 30%, transparent) 100%); mix-blend-mode: screen; opacity: .8; }
.wpanel-num { position: absolute; top: 16px; left: 18px; font-family: var(--mono); font-size: 12px; letter-spacing: .15em; color: rgba(255,255,255,.85); text-shadow: 0 1px 6px rgba(0,0,0,.6); z-index: 2; }
.wpanel-body { padding: 22px 24px 26px; }
.wpanel-body h3 { font-family: var(--serif); font-weight: 600; font-size: 28px; line-height: 1; display: flex; align-items: baseline; gap: 12px; flex-wrap: wrap; }
.wpanel-body h3 .tag { font-family: var(--sans); font-style: normal; font-size: 13px; font-weight: 500; color: var(--wc); letter-spacing: .02em; }
.wpanel-mech { color: var(--text-soft); font-size: 15px; line-height: 1.6; margin: 14px 0 18px; min-height: 4.8em; }
.wpanel-stat { display: flex; align-items: center; gap: 10px; font-family: var(--mono); font-size: 11.5px; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); padding-top: 16px; border-top: 1px solid var(--hair); }
.wpanel-stat .pip { width: 8px; height: 8px; border-radius: 50%; background: var(--wc); box-shadow: 0 0 9px 1px var(--wc); }

/* ── Specs (editorial, no cards) ────────────────────────── */
.specs { background: var(--ink-2); border-top: 1px solid var(--hair); border-bottom: 1px solid var(--hair); }
.spec-list { margin-top: 44px; border-top: 1px solid var(--hair); }
.spec { display: grid; grid-template-columns: 56px 1fr; gap: 24px; align-items: baseline; padding: 26px 4px; border-bottom: 1px solid var(--hair); transition: padding-left .25s var(--ease), background .25s; color: var(--text); }
.spec:hover { padding-left: 16px; background: linear-gradient(90deg, rgba(200,169,97,.05), transparent 60%); color: var(--text); }
.spec .sn { font-family: var(--mono); font-size: 13px; color: var(--accent); letter-spacing: .05em; }
.spec-main { display: grid; grid-template-columns: 1fr; gap: 6px; }
.spec h3 { font-family: var(--serif); font-weight: 600; font-size: clamp(20px, 2.5vw, 28px); }
.spec p { color: var(--muted); font-size: 15.5px; max-width: 60ch; }
@media (min-width: 760px) { .spec-main { grid-template-columns: 0.9fr 1.1fr; align-items: baseline; gap: 8px 40px; } }

/* ── About ──────────────────────────────────────────────── */
.about { position: relative; overflow: hidden; }
.about .bloom { width: 540px; height: 540px; right: -180px; bottom: -200px; --bloom: .28; }
.about-body { position: relative; z-index: 2; }
.about-lead { font-family: var(--serif); font-weight: 600; font-size: clamp(24px, 3.4vw, 40px); line-height: 1.25; letter-spacing: -.01em; margin: 22px 0 34px; max-width: 18ch; }
.about-lead .em { font-style: italic; font-weight: 400; color: var(--gold-bright); }
.about-cols { display: grid; gap: 26px; }
.about-cols p { color: var(--text-soft); font-size: 17px; line-height: 1.8; }
.about-cols p:first-child::first-letter { font-family: var(--serif); font-weight: 600; font-size: 3.3em; line-height: .8; float: left; padding: 6px 12px 0 0; color: var(--gold-bright); }
.about-sig { margin-top: 34px; display: flex; align-items: center; gap: 14px; font-family: var(--mono); font-size: 12px; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); }
.about-sig .mark { width: 22px; }
.about-sig b { font-family: var(--serif); font-weight: 600; font-size: 15px; letter-spacing: 0; text-transform: none; color: var(--text); }
@media (min-width: 820px) { .about-cols { grid-template-columns: 1fr 1fr; gap: 40px; } }

/* ── Signup ─────────────────────────────────────────────── */
.signup { position: relative; overflow: hidden; text-align: center; }
.signup .bloom { width: 700px; height: 700px; top: -260px; left: 50%; transform: translateX(-50%); --bloom: .5; }
.signup-inner { position: relative; z-index: 2; max-width: var(--max-w-narrow); margin: 0 auto; padding: 0 1.5rem; }
.signup .mark { width: 40px; margin: 0 auto 24px; }
.signup .display { margin: 0 auto 14px; }
.signup .lede { margin: 0 auto; text-align: center; }
.signup-form { display: flex; flex-direction: column; gap: 12px; max-width: 440px; margin: 34px auto 0; }
.signup-form input { background: rgba(255,255,255,.045); border: 1px solid rgba(232,224,208,.22); border-radius: 13px; padding: 16px 18px; font-size: 16px; color: var(--text); font-family: var(--sans); transition: border-color .2s, box-shadow .2s; }
.signup-form input::placeholder { color: #9b9486; }
.signup-form input:focus { outline: none; border-color: var(--gold); box-shadow: 0 0 0 3px rgba(200,169,97,.16); }
.btn-primary { font-family: var(--sans); font-weight: 700; font-size: 15px; letter-spacing: .03em; color: var(--gold-deep); cursor: pointer; border: 0; border-radius: 13px; padding: 17px; background: linear-gradient(180deg, #f3dda1, var(--gold)); box-shadow: 0 0 30px -8px rgba(200,169,97,.5); transition: transform .12s var(--ease), box-shadow .2s; }
.btn-primary:hover { transform: translateY(-1px); box-shadow: 0 14px 34px -10px rgba(200,169,97,.6); }
.btn-primary:active { transform: translateY(0); }
.btn-primary:disabled { opacity: .6; cursor: default; transform: none; }
.signup-note { color: var(--text-soft); font-size: 13px; margin-top: 16px; }
.signup-msg { font-size: 14.5px; min-height: 1.3em; margin-top: 8px; }
.signup-msg.success { color: #7ad19a; }
.signup-msg.error { color: #e7896f; }

/* ============================================================
   KB pages
   ============================================================ */
.kb-page { padding: 2rem 0 4rem; }
.page-title { font-family: var(--serif); font-size: clamp(1.9rem, 4.4vw, 2.8rem); font-weight: 600; letter-spacing: -0.015em; margin-bottom: 0.75rem; }
.page-subtitle { color: var(--text-muted); margin-bottom: 2rem; }

.breadcrumb { font-family: var(--mono); font-size: 0.78rem; letter-spacing: .04em; text-transform: uppercase; color: var(--text-muted); margin-bottom: 1.5rem; }
.breadcrumb a { color: var(--text-muted); }
.breadcrumb a:hover { color: var(--gold); }

.kb-section-title { font-family: var(--serif); font-size: 1.4rem; font-weight: 600; margin: 2.5rem 0 0.75rem; color: var(--gold-bright); }

/* KB hub editorial index (hairline rows, no cards/emoji) */
.kb-index { border-top: 1px solid var(--hair); margin: 2rem 0 1rem; }
.kb-index-row { display: flex; align-items: center; justify-content: space-between; gap: 1.5rem; padding: 1.3rem 0.25rem; border-bottom: 1px solid var(--hair); color: var(--text); transition: padding-left .2s var(--ease), background .2s; }
.kb-index-row:hover { padding-left: 14px; background: linear-gradient(90deg, rgba(200,169,97,.06), transparent 65%); color: var(--text); }
.kb-index-title { display: block; font-family: var(--serif); font-weight: 600; font-size: 1.3rem; }
.kb-index-desc { display: block; color: var(--text-muted); font-size: 0.95rem; margin-top: 3px; max-width: 60ch; }
.kb-index-arrow { color: var(--gold); font-size: 1.3rem; flex: none; transition: transform .2s var(--ease); }
.kb-index-row:hover .kb-index-arrow { transform: translateX(4px); color: var(--gold-bright); }

.kb-browse-head { display: flex; align-items: baseline; justify-content: space-between; gap: 1rem; margin-top: 3rem; }
.kb-browse-head .kb-section-title { margin: 0; }
.kb-browse-head a { font-family: var(--mono); font-size: 0.78rem; letter-spacing: .06em; text-transform: uppercase; color: var(--gold); white-space: nowrap; }
.kb-browse-head a:hover { color: var(--gold-bright); }

.kb-featured { display: grid; gap: 1rem; margin-bottom: 1rem; }
@media (min-width: 640px) { .kb-featured { grid-template-columns: repeat(3, 1fr); } }
.kb-featured-card { background: var(--card); border: 1px solid var(--hair); border-radius: var(--radius); padding: 1.4rem; display: flex; flex-direction: column; gap: 0.4rem; color: var(--text); transition: border-color .2s, transform .2s; }
.kb-featured-card:hover { border-color: var(--hair-gold); transform: translateY(-3px); color: var(--text); }
.kb-featured-card strong { font-family: var(--serif); font-weight: 600; font-size: 1.2rem; }
.kb-featured-card span:last-child { color: var(--text-muted); font-size: 0.9rem; }

.kb-thumbs { display: flex; flex-wrap: wrap; gap: 0.75rem; margin: 1rem 0; }
.kb-thumb { display: flex; flex-direction: column; align-items: center; gap: 0.4rem; padding: 0.5rem; border-radius: var(--radius-sm); font-size: 0.8rem; color: var(--text-muted); transition: .2s; text-align: center; width: 92px; }
.kb-thumb:hover { color: var(--gold); background: var(--card); }
.kb-thumb img { border-radius: 8px; width: 72px; height: 72px; object-fit: cover; object-position: center; }
.piece-symbol { font-size: 2rem; line-height: 1; color: #f0ece2; }
.piece-thumb-img { width: 54px; height: 54px; }
.piece-inline-img { width: 22px; height: 22px; vertical-align: middle; margin-right: 7px; }
.piece-cell { display: inline-flex; align-items: center; }

.kb-more-links { display: flex; flex-direction: column; gap: 0.5rem; }
.kb-more-links a { display: flex; align-items: center; gap: 0.5rem; padding: 0.85rem 1.1rem; background: var(--card); border: 1px solid var(--hair); border-radius: var(--radius-sm); color: var(--text); transition: .2s; }
.kb-more-links a:hover { border-color: var(--hair-gold); color: var(--gold); }
.badge-count { font-size: 0.72rem; background: var(--gold); color: var(--gold-deep); padding: 0.15rem 0.5rem; border-radius: 999px; font-weight: 700; }

/* article */
.article h2 { font-family: var(--serif); font-weight: 600; font-size: 1.5rem; margin: 2.5rem 0 0.75rem; color: var(--text); border-bottom: 1px solid var(--hair); padding-bottom: 0.4rem; }
.article h3 { font-family: var(--serif); font-weight: 600; font-size: 1.18rem; margin: 1.5rem 0 0.5rem; }
.article p { margin-bottom: 1rem; }
.article ul, .article ol { margin: 0 0 1rem 1.5rem; }
.article li { margin: 0.35rem 0; }
.article-layout { display: grid; gap: 2rem; }
@media (min-width: 768px) { .article-layout { grid-template-columns: 1fr 280px; } }
.article-sidebar { order: -1; }
@media (min-width: 768px) { .article-sidebar { order: 1; } }
.info-box { background: var(--card); border: 1px solid var(--hair); border-radius: var(--radius); padding: 1.25rem; position: sticky; top: 80px; }
.info-box h3 { font-family: var(--serif); font-size: 1rem; color: var(--gold-bright); margin: 0 0 0.75rem; border: none; padding: 0; }
.info-box dl { display: grid; grid-template-columns: auto 1fr; gap: 0.5rem 1rem; font-size: 0.9rem; }
.info-box dt { color: var(--text-muted); font-weight: 600; }
.info-box dd { color: var(--text); }

.see-also { margin-top: 3rem; padding-top: 1.5rem; border-top: 1px solid var(--hair); }
.see-also h3 { font-family: var(--serif); color: var(--gold-bright); margin-bottom: 0.5rem; border: none; padding: 0; }
.see-also ul { list-style: none; margin: 0; padding: 0; }
.see-also li { margin: 0.4rem 0; }
.see-also li::before { content: "→ "; color: var(--text-muted); }

/* world article */
.world-header { padding: 2rem 0 1rem; margin-bottom: 1rem; }
.world-tagline { font-family: var(--serif); font-style: italic; font-size: 1.25rem; color: var(--text-soft); }
.world-hero-img { border-radius: var(--radius); margin-bottom: 2rem; max-width: 340px; }

.gameplay-screenshot { margin: 1.5rem 0; text-align: center; }
.gameplay-screenshot img { border-radius: var(--radius); box-shadow: 0 4px 24px rgba(0,0,0,0.4); max-width: 300px; margin: 0 auto; }
.img-caption { display: block; margin-top: 0.5rem; font-size: 0.85rem; color: var(--text-muted); font-style: italic; }
.gameplay-pair { display: grid; grid-template-columns: 1fr 1fr; gap: 1.5rem; margin: 1.5rem 0; }
@media (max-width: 640px) { .gameplay-pair { grid-template-columns: 1fr; } .gameplay-pair .gameplay-screenshot img { max-width: 240px; } }

.intro-text { border-left: 3px solid var(--gold); margin: 1.5rem 0; padding: 0.75rem 1.25rem; background: var(--card); border-radius: 0 var(--radius-sm) var(--radius-sm) 0; }
.intro-text p { margin: 0; font-style: italic; font-family: var(--serif); }
.intro-text cite { display: block; font-size: 0.8rem; color: var(--text-muted); margin-top: 0.5rem; font-style: normal; }

/* worlds list */
.world-list { display: flex; flex-direction: column; gap: 1rem; margin-top: 1.5rem; }
.world-row { display: flex; gap: 1.25rem; align-items: center; background: var(--card); border: 1px solid var(--hair); border-radius: var(--radius); padding: 1rem; transition: .2s; color: var(--text); border-left: 4px solid var(--world-color, var(--hair)); }
.world-row:hover { border-color: var(--world-color, var(--gold-dim)); transform: translateX(4px); color: var(--text); }
.world-row img { border-radius: var(--radius-sm); flex-shrink: 0; width: 96px; height: 120px; object-fit: cover; object-position: center; }
.world-row-info { display: flex; flex-direction: column; gap: 0.2rem; }
.world-row-info strong { font-family: var(--serif); font-weight: 600; font-size: 1.15rem; }
.world-row-info em { color: var(--text-muted); font-style: italic; font-size: 0.9rem; }
.world-row-meta { color: var(--text-muted); font-size: 0.8rem; }

/* piece cards */
.piece-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1rem; margin-top: 1.5rem; }
@media (min-width: 640px) { .piece-grid { grid-template-columns: repeat(3, 1fr); } }
.piece-card { background: var(--card); border: 1px solid var(--hair); border-radius: var(--radius); padding: 1.5rem; display: flex; flex-direction: column; align-items: center; text-align: center; gap: 0.5rem; color: var(--text); transition: .2s; }
.piece-card:hover { border-color: var(--hair-gold); transform: translateY(-3px); color: var(--text); }
.piece-card-symbol { width: 68px; height: 68px; }
.piece-card strong { font-family: var(--serif); font-weight: 600; font-size: 1.15rem; }
.piece-card span { color: var(--text-muted); font-size: 0.85rem; }
.piece-card-grade { font-size: 0.75rem; color: var(--gold); }
.piece-header { display: flex; align-items: center; gap: 1.25rem; margin-bottom: 2rem; }
.piece-hero-symbol { width: 76px; height: 76px; flex: none; }

/* tables */
.data-table { width: 100%; border-collapse: collapse; margin: 1rem 0 1.5rem; font-size: 0.9rem; }
.data-table th { text-align: left; padding: 0.6rem 0.75rem; border-bottom: 2px solid var(--hair); color: var(--text-muted); font-weight: 600; font-size: 0.75rem; text-transform: uppercase; letter-spacing: 0.04em; font-family: var(--mono); }
.data-table td { padding: 0.6rem 0.75rem; border-bottom: 1px solid var(--hair); }
.data-table tbody tr:hover { background: var(--card); }
.tier { display: inline-block; padding: 0.15rem 0.5rem; border-radius: 999px; font-size: 0.7rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.04em; }
.tier-bronze { background: #8b5e3c22; color: #cd7f32; border: 1px solid #cd7f3244; }
.tier-silver { background: #c0c0c022; color: #c0c0c0; border: 1px solid #c0c0c044; }
.tier-gold { background: #c8a96122; color: var(--gold-bright); border: 1px solid var(--gold-glow); }
.badge-condition { color: var(--text-muted); font-size: 0.85rem; }

/* faq */
.faq-entry { border: 1px solid var(--hair); border-radius: var(--radius-sm); margin-bottom: 0.5rem; overflow: hidden; }
.faq-entry summary { padding: 1rem 1.25rem; cursor: pointer; font-weight: 600; list-style: none; display: flex; align-items: center; justify-content: space-between; transition: background .15s; }
.faq-entry summary:hover { background: var(--card); }
.faq-entry summary::after { content: "+"; font-size: 1.25rem; color: var(--text-muted); transition: transform .2s; }
.faq-entry[open] summary::after { content: "−"; }
.faq-entry summary::-webkit-details-marker { display: none; }
.faq-answer { padding: 0 1.25rem 1.25rem; color: var(--text-muted); line-height: 1.7; }
.faq-answer a { color: var(--gold); }

/* privacy */
.privacy-page h1 { font-family: var(--serif); font-size: 1.9rem; }
.privacy-page h2 { font-family: var(--serif); font-size: 1.3rem; }
.privacy-page .meta { color: var(--text-muted); font-size: 0.9rem; margin-bottom: 1.5rem; }
.privacy-page blockquote { border-left: 3px solid var(--gold); margin: 1rem 0; padding: 0.5rem 1rem; color: var(--text-muted); font-size: 0.95rem; }
.privacy-page code { font-family: ui-monospace, "SF Mono", Menlo, Consolas, monospace; font-size: 0.92em; }
.privacy-page ul { padding-left: 1.3rem; }
.privacy-page li { margin: 0.3rem 0; }
.privacy-page a { color: var(--gold); }

/* responsive helpers */
@media (max-width: 640px) {
  .data-table { font-size: 0.8rem; }
  .data-table th, .data-table td { padding: 0.5rem; }
  .world-row img { width: 80px; }
}

/* ============================================================
   Cinematic pass - warm depth + scene atmosphere across the page
   (matches the share-card bar; warm gold light is the through-line,
   painterly world scenes appear at hero / mechanic / worlds / signup)
   ============================================================ */

/* more confident type + breathing room */
.display { font-size: clamp(34px, 5.7vw, 66px); letter-spacing: -0.018em; }
.section { padding: clamp(88px, 12vw, 156px) 0; }
.section-head .lede { font-size: clamp(17px, 1.8vw, 20px); }

/* gameplay-demo label above the hero board */
.demo-label { position: relative; z-index: 2; display: flex; align-items: center; justify-content: center; gap: 8px;
  margin: 0 auto 14px; font-family: var(--mono); font-size: 11px; letter-spacing: .24em; text-transform: uppercase; color: var(--gold-bright); }
.demo-label::before { content: "\25B6"; font-size: 8px; opacity: .9; }

/* richer warm glows in the prose sections */
.mech .bloom, .about .bloom { --bloom: .5; }

/* mechanic: faint forest haze behind the screenshot side for depth */
.mech::before { content: ""; position: absolute; inset: 0; z-index: 0; pointer-events: none;
  background: url(/images/worlds/bg_forest.webp) left 30% / cover no-repeat; opacity: .10; filter: blur(4px) saturate(1.05);
  -webkit-mask-image: radial-gradient(72% 95% at 14% 50%, #000 0%, transparent 60%);
  mask-image: radial-gradient(72% 95% at 14% 50%, #000 0%, transparent 60%); }

/* worlds: bolder cards + stronger accent flood */
.worlds { background: radial-gradient(1300px 700px at 80% 0%, color-mix(in srgb, var(--accent) 19%, transparent), transparent 66%), var(--ink); }
.wpanel { width: min(420px, 86vw); }

/* about: a faint cosmos drift for depth */
.about::before { content: ""; position: absolute; inset: 0; z-index: 0; pointer-events: none;
  background: url(/images/worlds/bg_cosmos.webp) right 40% / cover no-repeat; opacity: .12; filter: blur(4px);
  -webkit-mask-image: radial-gradient(70% 90% at 86% 60%, #000 0%, transparent 62%);
  mask-image: radial-gradient(70% 90% at 86% 60%, #000 0%, transparent 62%); }

/* signup: a dramatic cosmic close to bookend the molten hero */
.signup::before { content: ""; position: absolute; inset: 0; z-index: 0; pointer-events: none;
  background: url(/images/worlds/bg_cosmos.webp) center 28% / cover no-repeat; opacity: .17; filter: blur(3px) saturate(1.08);
  -webkit-mask-image: radial-gradient(85% 100% at 50% 42%, #000 0%, rgba(0,0,0,.5) 46%, transparent 72%);
  mask-image: radial-gradient(85% 100% at 50% 42%, #000 0%, rgba(0,0,0,.5) 46%, transparent 72%); }
.signup .bloom { --bloom: .66; }

/* ============================================================
   KB design revamp - cinematic world banners + warm page depth
   ============================================================ */
/* subtle warm glow at the top of every KB page */
.kb-page { background: radial-gradient(1000px 540px at 80% -8%, rgba(200,169,97,.07), transparent 62%); }

/* world article: full-width cinematic scene banner */
.world-article .world-banner { position: relative; overflow: hidden; margin-bottom: 1.6rem;
  padding: clamp(44px, 7vw, 96px) 0 clamp(26px, 4vw, 46px); border-bottom: 1px solid var(--hair); }
.world-banner-scene { position: absolute; inset: 0; background-size: cover; background-position: center 26%; opacity: .55; }
.world-banner::after { content: ""; position: absolute; inset: 0;
  background:
    linear-gradient(90deg, var(--ink) 16%, color-mix(in srgb, var(--ink) 50%, transparent) 58%, color-mix(in srgb, var(--world-color) 24%, transparent) 102%),
    linear-gradient(0deg, var(--ink) 3%, transparent 55%); }
.world-banner-inner { position: relative; z-index: 2; }
.world-banner-title { font-size: clamp(2.4rem, 6.2vw, 4.2rem); margin-bottom: 0.4rem; }
.world-banner .world-tagline { font-size: clamp(1.15rem, 2.2vw, 1.45rem); }
.world-banner-meta { margin-top: 16px; font-family: var(--mono); font-size: 12px; letter-spacing: .1em; text-transform: uppercase; color: var(--text-soft); }
/* the world's accent tints links + the quick-facts box on its page */
.world-article .info-box { box-shadow: 0 0 0 1px color-mix(in srgb, var(--world-color) 22%, transparent), 0 16px 40px -24px rgba(0,0,0,.7); }

/* piece page hero banner */
.piece-banner { position: relative; display: flex; align-items: center; gap: clamp(20px, 4vw, 44px); margin: 0.5rem 0 2.2rem; padding: clamp(24px, 4vw, 40px); border-radius: 20px; overflow: hidden;
  background: radial-gradient(120% 150% at 12% 18%, rgba(200,169,97,.16), transparent 58%), linear-gradient(180deg, var(--card), var(--ink-2)); border: 1px solid var(--hair-gold); }
.piece-banner-art { flex: none; width: clamp(92px, 17vw, 150px); height: clamp(92px, 17vw, 150px); display: grid; place-items: center; }
.piece-banner-art img { width: 100%; height: 100%; filter: drop-shadow(0 6px 18px rgba(0,0,0,.6)); }
.piece-banner-text .page-title { margin-bottom: .4rem; }
.piece-banner-sub { font-family: var(--serif); font-style: italic; font-size: clamp(1.1rem, 2vw, 1.45rem); color: var(--gold-bright); }
.piece-banner-meta { margin-top: 12px; font-family: var(--mono); font-size: 12px; letter-spacing: .1em; text-transform: uppercase; color: var(--text-soft); }
@media (max-width: 560px) { .piece-banner { flex-direction: column; text-align: center; } .piece-banner-art { margin: 0 auto; } }
