/* Wonder Reels Club — site styles. Self-hosted fonts only; no third-party requests. */
@font-face { font-family: "Bree"; src: url("../assets/fonts/BreeSerif-Regular.ttf") format("truetype"); font-display: swap; }
@font-face { font-family: "CinzelDeco"; src: url("../assets/fonts/CinzelDecorative-Bold.ttf") format("truetype"); font-display: swap; font-weight: 700; }

:root {
  --night: #120a1f;
  --night-2: #1b1030;
  --velvet: #2a1745;
  --plum: #3b1f5e;
  --ink: #f6ecd6;
  --ink-soft: rgba(246, 236, 214, .74);
  --ink-mute: rgba(246, 236, 214, .52);
  --gold: #e3bd6e;
  --gold-hi: #fbe2a3;
  --gold-lo: #9c7531;
  --line: rgba(227, 189, 110, .22);
  --accent: #a77bff;
  --display: "Bree", "Rockwell", "Georgia", serif;
  --deco: "CinzelDeco", "Bree", serif;
  --sans: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Helvetica Neue", "Segoe UI", Roboto, sans-serif;
  --r: 18px;
  --gutter: clamp(16px, 4vw, 40px);
  --max: 1180px;
}
body[data-host="crystal_colossus"] { --accent: #b18bff; }
body[data-host="elder_grove"]      { --accent: #a7d36a; }
body[data-host="velvet_panther"]   { --accent: #46d895; }
body[data-host="astral_goat"]      { --accent: #8b97ff; }
body[data-host="scarlet_showdown"] { --accent: #f07a45; }
body[data-host="gilded_tycoon"]    { --accent: #e0485f; }
body[data-host="emerald_coven"]    { --accent: #38e39a; }
body[data-host="siren_resonance"]  { --accent: #4fe3dc; }

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 84px; }
body {
  margin: 0; background: var(--night); color: var(--ink);
  font: 400 17px/1.6 var(--sans); -webkit-font-smoothing: antialiased; overflow-x: hidden;
}
img { max-width: 100%; display: block; }
a { color: var(--gold-hi); }
h1, h2, h3 { font-family: var(--display); font-weight: 400; line-height: 1.12; margin: 0; letter-spacing: .005em; }
p { margin: 0; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: 12px; top: -60px; background: var(--gold); color: var(--night); padding: 10px 14px; border-radius: 10px; z-index: 100; }
.skip:focus { top: 12px; }
:focus-visible { outline: 2px solid var(--gold-hi); outline-offset: 3px; border-radius: 6px; }

.eyebrow {
  font: 700 12px/1 var(--deco); letter-spacing: .22em; text-transform: uppercase; color: var(--gold);
  display: inline-flex; align-items: center; gap: 10px;
}
.eyebrow::before { content: ""; width: 22px; height: 1px; background: currentColor; opacity: .7; }

/* ---------- Top bar ---------- */
.topbar {
  position: sticky; top: 0; z-index: 50;
  background: linear-gradient(180deg, rgba(14, 7, 25, .94), rgba(14, 7, 25, .82));
  backdrop-filter: saturate(1.4) blur(14px); -webkit-backdrop-filter: saturate(1.4) blur(14px);
  border-bottom: 1px solid var(--line);
}
.topbar__inner { max-width: var(--max); margin: 0 auto; padding: 8px var(--gutter); display: flex; align-items: center; gap: 20px; min-height: 64px; }
.brand img { width: 96px; height: auto; filter: drop-shadow(0 2px 6px rgba(0,0,0,.5)); }
.primary-nav { margin-left: auto; display: flex; gap: 4px; }
.primary-nav a {
  color: var(--ink-soft); text-decoration: none; font: 600 14px/1 var(--sans); letter-spacing: .02em;
  padding: 10px 14px; border-radius: 999px; transition: color .2s, background .2s;
}
.primary-nav a:hover { color: var(--ink); background: rgba(227, 189, 110, .1); }
.primary-nav a[aria-current="page"] { color: var(--night); background: var(--gold); }
.menu-btn { display: none; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; min-height: 50px; padding: 0 24px;
  border-radius: 999px; font: 700 15px/1 var(--sans); letter-spacing: .04em; text-decoration: none; transition: transform .2s, box-shadow .2s, background .2s;
}
.btn--gold {
  color: #2a1606; background: linear-gradient(180deg, var(--gold-hi), var(--gold) 55%, var(--gold-lo));
  box-shadow: 0 1px 0 rgba(255,255,255,.55) inset, 0 -2px 0 rgba(0,0,0,.18) inset, 0 10px 28px -10px rgba(227,189,110,.7);
}
.btn--gold:hover { transform: translateY(-1px); box-shadow: 0 1px 0 rgba(255,255,255,.55) inset, 0 14px 30px -10px rgba(227,189,110,.9); }
.btn--ghost { color: var(--ink); border: 1px solid rgba(246,236,214,.3); background: rgba(255,255,255,.03); }
.btn--ghost:hover { border-color: var(--gold); color: var(--gold-hi); }

/* ---------- 1 · Curtain call ---------- */
.curtain {
  position: relative; overflow: hidden; isolation: isolate;
  padding: clamp(36px, 7vw, 80px) var(--gutter) 0;
  background:
    radial-gradient(120% 70% at 50% -10%, rgba(120, 70, 200, .45), transparent 60%),
    repeating-linear-gradient(90deg, rgba(0,0,0,.0) 0 38px, rgba(0,0,0,.22) 38px 40px, rgba(255,255,255,.025) 40px 42px, rgba(0,0,0,0) 42px 80px),
    linear-gradient(180deg, #2c1550 0%, #1a0d31 55%, #120a1f 100%);
}
.curtain__glow {
  position: absolute; inset: auto 0 0 0; height: 70%; z-index: -1;
  background: radial-gradient(60% 60% at 50% 100%, rgba(251, 226, 163, .28), transparent 70%);
}
.curtain__copy { max-width: 760px; margin: 0 auto; text-align: center; position: relative; z-index: 3; }
.curtain__copy .eyebrow::after { content: ""; width: 22px; height: 1px; background: currentColor; opacity: .7; }
.curtain__title { margin: 14px auto 8px; }
.curtain__title img { width: min(540px, 86vw); height: auto; margin: 0 auto; filter: drop-shadow(0 18px 30px rgba(0,0,0,.55)); }
.curtain__line { font: 400 clamp(24px, 3.4vw, 36px)/1.15 var(--display); color: var(--gold-hi); }
.curtain__sub { margin: 14px auto 0; max-width: 560px; color: var(--ink-soft); }
.curtain__cta { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; margin-top: 26px; }

.lineup {
  list-style: none; margin: clamp(26px, 5vw, 46px) auto 0; padding: 0; max-width: 1280px;
  display: grid; grid-template-columns: repeat(8, 1fr); align-items: end; position: relative; z-index: 2;
}
.lineup li { position: relative; margin: 0 -18%; transition: transform .45s cubic-bezier(.2,.8,.2,1), filter .45s; }
.lineup li:nth-child(odd) { z-index: 2; }
.lineup li:nth-child(even) { z-index: 1; transform: translateY(-4%) scale(.93); filter: brightness(.82); }
.lineup img { width: 100%; height: auto; filter: drop-shadow(0 20px 22px rgba(0,0,0,.55)); }
.lineup span {
  position: absolute; left: 50%; bottom: 10px; transform: translateX(-50%); white-space: nowrap; pointer-events: none;
  font: 700 10px/1 var(--deco); letter-spacing: .16em; text-transform: uppercase; color: var(--gold-hi);
  background: rgba(18,10,31,.82); border: 1px solid var(--line); padding: 7px 10px; border-radius: 999px; opacity: 0; transition: opacity .3s;
}
.lineup li:hover, .lineup li:focus-within { transform: translateY(-3%) scale(1.04); filter: none; z-index: 4; }
.lineup li:hover span { opacity: 1; }
.curtain__stage {
  position: relative; z-index: 3; height: 60px; margin: -40px calc(var(--gutter) * -1) 0;
  background: linear-gradient(180deg, rgba(18,10,31,0), var(--night) 70%);
}

/* ---------- Section heads ---------- */
section { position: relative; }
.sec-head { max-width: var(--max); margin: 0 auto 32px; padding: 0 var(--gutter); }
.sec-head h2 { font-size: clamp(32px, 4.6vw, 52px); margin-top: 14px; }
.sec-head__note { color: var(--ink-soft); max-width: 600px; margin-top: 12px; }
.sec-head--row { display: flex; flex-wrap: wrap; align-items: end; justify-content: space-between; gap: 16px 40px; }
.sec-head--row .sec-head__note { max-width: 420px; margin: 0; }

/* ---------- 2 · Directory ---------- */
.directory { padding: clamp(56px, 9vw, 110px) 0; }
.directory__body { max-width: var(--max); margin: 0 auto; padding: 0 var(--gutter); display: grid; grid-template-columns: minmax(280px, 380px) 1fr; gap: 28px; align-items: start; }
.board-list {
  position: sticky; top: 88px;
  background: linear-gradient(180deg, #23123b, #170c2a); border: 1px solid var(--line); border-radius: var(--r);
  padding: 10px; box-shadow: 0 30px 60px -30px rgba(0,0,0,.8), inset 0 1px 0 rgba(255,255,255,.04);
}
.board-list button {
  width: 100%; display: grid; grid-template-columns: 34px auto 1fr auto; align-items: baseline; gap: 10px;
  padding: 13px 12px; border: 0; background: none; color: var(--ink-soft); cursor: pointer; border-radius: 12px; text-align: left;
  font: 500 15px/1.2 var(--sans); transition: background .2s, color .2s;
}
.board-list button + button { border-top: 1px dashed rgba(227,189,110,.12); }
.board-list b { font: 700 13px/1 var(--deco); color: var(--gold); letter-spacing: .08em; }
.board-list .nm { font-family: var(--display); font-size: 17px; color: var(--ink); white-space: nowrap; }
.board-list i { border-bottom: 2px dotted rgba(227,189,110,.28); transform: translateY(-4px); }
.board-list em { font-style: normal; font-size: 12.5px; color: var(--ink-mute); white-space: nowrap; }
.board-list button:hover { background: rgba(255,255,255,.04); }
.board-list button[aria-selected="true"] { background: linear-gradient(90deg, color-mix(in srgb, var(--accent) 22%, transparent), transparent); box-shadow: inset 3px 0 0 var(--accent); }
.board-list button[aria-selected="true"] em { color: var(--accent); }

.rooms { min-width: 0; }
.room {
  position: relative; overflow: hidden; border-radius: 24px; min-height: 560px;
  display: grid; grid-template-columns: 0.9fr 1.1fr; align-items: end;
  border: 1px solid color-mix(in srgb, var(--accent) 35%, transparent);
  box-shadow: 0 40px 80px -40px rgba(0,0,0,.9), 0 0 0 6px rgba(255,255,255,.015);
  background: #140b22;
}
.room[hidden] { display: none; }
.room__scene { position: absolute; inset: 0; background: var(--scene) center/cover no-repeat; opacity: .55; transform: scale(1.04); }
.room__scene::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(90deg, rgba(18,10,31,.05) 0%, rgba(18,10,31,.55) 42%, rgba(18,10,31,.94) 62%), linear-gradient(0deg, rgba(18,10,31,.85), transparent 40%);
}
.room__host { position: relative; z-index: 1; width: 100%; max-width: 360px; height: auto; align-self: end; justify-self: center; margin-top: 30px; filter: drop-shadow(0 20px 30px rgba(0,0,0,.6)); animation: rise .6s cubic-bezier(.2,.8,.2,1); }
.room__info { position: relative; z-index: 2; padding: 30px 30px 30px 6px; align-self: center; }
.room__logo { width: min(300px, 80%); height: auto; filter: drop-shadow(0 8px 14px rgba(0,0,0,.5)); }
.room__intro { margin-top: 12px; color: var(--ink-soft); font-size: 15.5px; }
.facts { margin: 18px 0 0; display: grid; gap: 1px; background: rgba(227,189,110,.14); border-radius: 12px; overflow: hidden; }
.facts div { display: grid; grid-template-columns: 112px 1fr; gap: 12px; padding: 10px 14px; background: rgba(18,10,31,.82); }
.facts dt { font: 700 10.5px/1.7 var(--deco); letter-spacing: .14em; text-transform: uppercase; color: var(--gold); }
.facts dd { margin: 0; font-size: 15px; }
.room .minigrid { margin-top: 18px; }
.rule-cards { list-style: none; padding: 0; margin: 18px 0 0; display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.rule-cards li { padding: 14px; border-radius: 14px; background: rgba(255,255,255,.04); border: 1px solid rgba(255,255,255,.07); font-size: 14px; color: var(--ink-soft); line-height: 1.5; }
.rule-cards strong { display: block; margin-bottom: 4px; font: 700 11px/1.4 var(--deco); letter-spacing: .14em; text-transform: uppercase; color: var(--accent); }
@keyframes rise { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: none; } }

/* ---------- Mini boards (built by site.js from data-cols) ---------- */
.minigrid { --cell: 16px; display: inline-flex; align-items: center; gap: 3px; padding: 8px; border-radius: 10px; background: rgba(0,0,0,.35); border: 1px solid rgba(227,189,110,.2); }
.minigrid .col { display: flex; flex-direction: column; gap: 3px; }
.minigrid .c { width: var(--cell); height: var(--cell); border-radius: 4px; background: linear-gradient(160deg, color-mix(in srgb, var(--accent) 70%, #fff 0%), color-mix(in srgb, var(--accent) 40%, #000)); opacity: .85; }
.minigrid .c.ghost { background: none; border: 1px dashed color-mix(in srgb, var(--accent) 70%, transparent); opacity: .7; }
.minigrid .c.lock { background: radial-gradient(circle at 50% 40%, var(--gold-hi), var(--gold-lo)); box-shadow: 0 0 10px rgba(251,226,163,.6); }
.minigrid .c.coin { background: radial-gradient(circle, var(--gold-hi) 30%, var(--gold-lo) 72%); border-radius: 50%; }
.minigrid .c.wave { background: linear-gradient(180deg, #bff8f4, var(--accent)); animation: wave 2.4s ease-in-out infinite; }
.minigrid .c.line { box-shadow: 0 0 0 2px var(--gold-hi); }
@keyframes wave { 50% { opacity: .35; transform: translateY(-2px); } }

/* ---------- 3 · Shelf ---------- */
.shapes { padding: clamp(40px, 7vw, 90px) 0; background: linear-gradient(180deg, transparent, rgba(59,31,94,.35) 30%, rgba(59,31,94,.35) 70%, transparent); }
.shelf {
  list-style: none; margin: 0 auto; padding: 0 var(--gutter); max-width: var(--max);
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px;
}
.shelf li {
  display: grid; justify-items: center; align-content: end; gap: 6px; text-align: center; min-height: 210px; padding: 22px 12px 18px;
  border-radius: var(--r); background: linear-gradient(180deg, rgba(255,255,255,.035), rgba(255,255,255,.01)); border: 1px solid rgba(255,255,255,.06);
  position: relative;
}
.shelf li::after { content: ""; position: absolute; left: 14%; right: 14%; bottom: 0; height: 2px; background: var(--host-accent); border-radius: 2px; opacity: .8; }
.shelf .minigrid { --cell: 14px; margin-bottom: 8px; --accent: var(--host-accent); }
.shelf b { font: 400 18px/1.2 var(--display); }
.shelf span { font-size: 13px; color: var(--ink-mute); }
[data-host="crystal_colossus"] { --host-accent: #b18bff; }
[data-host="elder_grove"]      { --host-accent: #a7d36a; }
[data-host="velvet_panther"]   { --host-accent: #46d895; }
[data-host="astral_goat"]      { --host-accent: #8b97ff; }
[data-host="scarlet_showdown"] { --host-accent: #f07a45; }
[data-host="gilded_tycoon"]    { --host-accent: #e0485f; }
[data-host="emerald_coven"]    { --host-accent: #38e39a; }
[data-host="siren_resonance"]  { --host-accent: #4fe3dc; }

/* ---------- 4 · Console ---------- */
.console {
  max-width: var(--max); margin: 0 auto; padding: clamp(56px, 9vw, 110px) var(--gutter);
  display: grid; grid-template-columns: minmax(260px, 380px) 1fr; gap: clamp(30px, 6vw, 80px); align-items: center;
}
.console__phone { position: relative; border-radius: 44px; padding: 10px; background: linear-gradient(145deg, #3a2a52, #0d0716); box-shadow: 0 50px 90px -40px rgba(0,0,0,.95), inset 0 0 0 1px rgba(255,255,255,.08); }
.console__screen { position: relative; }
.console__phone img { border-radius: 34px; width: 100%; height: auto; }
.pin {
  position: absolute; left: var(--x); top: var(--y);
  width: 24px; height: 24px; margin: -12px 0 0 -12px; border-radius: 50%; display: grid; place-items: center;
  font: 700 12px/1 var(--sans); color: #2a1606; background: var(--gold-hi); box-shadow: 0 0 0 4px rgba(251,226,163,.25), 0 6px 14px rgba(0,0,0,.5);
}
.console__copy h2 { font-size: clamp(32px, 4.6vw, 52px); margin: 14px 0 14px; }
.console__copy > p { color: var(--ink-soft); max-width: 520px; }
.legend { list-style: none; padding: 0; margin: 26px 0 0; display: grid; grid-template-columns: 1fr 1fr; gap: 12px 22px; }
.legend li { display: grid; grid-template-columns: 30px 1fr; gap: 12px; align-items: start; font-size: 14.5px; color: var(--ink-soft); }
.legend b { width: 28px; height: 28px; border-radius: 50%; display: grid; place-items: center; font: 700 13px/1 var(--sans); color: var(--gold-hi); border: 1px solid var(--gold); }
.legend strong { display: block; color: var(--ink); font: 400 17px/1.3 var(--display); margin-bottom: 2px; }

/* ---------- 5 · Month ---------- */
.month { padding: clamp(56px, 9vw, 110px) 0; background: radial-gradient(80% 60% at 20% 0%, rgba(59,31,94,.5), transparent 70%); }
.month__grid { max-width: var(--max); margin: 0 auto; padding: 0 var(--gutter); display: grid; grid-template-columns: 1fr 1fr; gap: 28px; align-items: start; }
.cal { padding: 22px; border-radius: 22px; background: #f3e6c8; color: #2b1a10; box-shadow: 0 30px 60px -30px rgba(0,0,0,.9), inset 0 0 0 1px rgba(156,117,49,.5); position: relative; }
.cal::before { content: ""; position: absolute; inset: 8px; border: 1px solid rgba(156,117,49,.45); border-radius: 16px; pointer-events: none; }
.cal__head { display: none; }
.cal__days { display: grid; grid-template-columns: repeat(7, 1fr); gap: 8px; }
.cal__days span {
  aspect-ratio: 1; border-radius: 10px; display: grid; place-items: center; position: relative;
  font: 700 13px/1 var(--sans); color: rgba(43,26,16,.55); background: rgba(156,117,49,.12);
}
.cal__days span.played { background: rgba(156,117,49,.28); color: #2b1a10; }
.cal__days span.mark { background: linear-gradient(160deg, #3b1f5e, #1b1030); color: var(--gold-hi); box-shadow: 0 6px 14px -6px rgba(59,31,94,.8); }
.cal__days span.mark::after { content: "★"; position: absolute; top: -7px; right: -5px; font-size: 13px; color: #c48a22; text-shadow: 0 1px 0 #fff; }
.cal__days span.rest { background: transparent; border: 1px dashed rgba(156,117,49,.4); }
.cal__legend { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 16px; font-size: 12.5px; color: rgba(43,26,16,.75); }
.cal__legend i { display: inline-block; width: 12px; height: 12px; border-radius: 4px; vertical-align: -1px; margin-right: 6px; }
.milestones { list-style: none; padding: 0; margin: 0; display: grid; gap: 12px; counter-reset: ms; }
.milestones li {
  display: grid; grid-template-columns: 78px 1fr auto; gap: 16px; align-items: center; padding: 16px 18px;
  border-radius: 16px; background: linear-gradient(90deg, rgba(255,255,255,.05), rgba(255,255,255,.015)); border: 1px solid rgba(255,255,255,.07);
}
.ms__day { font: 700 12px/1.2 var(--deco); letter-spacing: .1em; color: var(--gold); text-transform: uppercase; }
.milestones strong { font: 400 19px/1.2 var(--display); }
.milestones p { font-size: 14px; color: var(--ink-soft); margin-top: 3px; }
.milestones em { font-style: normal; font: 700 15px/1 var(--sans); color: var(--gold-hi); display: inline-flex; align-items: center; gap: 6px; white-space: nowrap; }
.milestones em::before { content: ""; width: 16px; height: 16px; border-radius: 50%; background: radial-gradient(circle at 35% 30%, var(--gold-hi), var(--gold-lo)); box-shadow: inset 0 0 0 2px rgba(0,0,0,.15); }
.dailies { max-width: var(--max); margin: 28px auto 0; padding: 0 var(--gutter); display: grid; grid-template-columns: 1.2fr 1fr; gap: 18px; }
.daily { padding: 24px; border-radius: 20px; background: linear-gradient(160deg, #24123c, #160c27); border: 1px solid var(--line); }
.daily h3 { font-size: 24px; }
.daily p { color: var(--ink-soft); font-size: 15px; margin-top: 6px; }
.streak { list-style: none; padding: 0; margin: 18px 0 0; display: grid; grid-template-columns: repeat(7, 1fr); gap: 6px; }
.streak li { text-align: center; padding: 10px 2px; border-radius: 12px; background: rgba(255,255,255,.04); font: 700 13px/1.2 var(--sans); color: var(--gold-hi); }
.streak li span { display: block; font: 600 10px/1.2 var(--sans); color: var(--ink-mute); text-transform: uppercase; letter-spacing: .06em; margin-bottom: 6px; }
.streak li.big { background: linear-gradient(180deg, rgba(227,189,110,.3), rgba(227,189,110,.08)); box-shadow: inset 0 0 0 1px var(--gold); }
.daily--wheel { display: grid; grid-template-columns: 150px 1fr; gap: 20px; align-items: center; }
.wheel {
  width: 150px; aspect-ratio: 1; border-radius: 50%; position: relative;
  background: conic-gradient(from -22.5deg, #5b2f93 0 45deg, #2c165a 0 90deg, #5b2f93 0 135deg, #2c165a 0 180deg, #5b2f93 0 225deg, #2c165a 0 270deg, #5b2f93 0 315deg, #8a2a3f 0 360deg);
  box-shadow: 0 0 0 6px var(--gold-lo), 0 0 0 8px var(--gold-hi), 0 18px 30px -10px rgba(0,0,0,.8);
  animation: turn 30s linear infinite;
}
.wheel::after { content: ""; position: absolute; inset: 40%; border-radius: 50%; background: radial-gradient(circle at 35% 30%, var(--gold-hi), var(--gold-lo)); }
.wheel span { position: absolute; left: 50%; top: 50%; font: 700 11px/1 var(--sans); color: var(--gold-hi); transform: rotate(calc(var(--k) * 45deg)) translateY(-56px) translateX(-50%); transform-origin: 0 0; }
@keyframes turn { to { transform: rotate(360deg); } }

/* ---------- 6 · Screens ---------- */
.screens { padding: clamp(56px, 9vw, 110px) 0; overflow: hidden; }
.reel-strip {
  display: flex; gap: 22px; overflow-x: auto; scroll-snap-type: x mandatory; padding: 10px var(--gutter) 30px;
  max-width: calc(var(--max) + 2 * var(--gutter)); margin: 0 auto; scrollbar-width: thin; scrollbar-color: var(--gold-lo) transparent;
}
.reel-strip figure { flex: 0 0 auto; width: clamp(190px, 21vw, 230px); margin: 0; scroll-snap-align: start; }
.reel-strip figure:nth-child(even) { margin-top: 36px; }
.reel-strip img { width: 100%; height: auto; border-radius: 26px; border: 6px solid #0c0614; box-shadow: 0 0 0 1px rgba(227,189,110,.3), 0 30px 50px -24px rgba(0,0,0,.9); }
.reel-strip figcaption { margin-top: 12px; font: 700 11px/1.3 var(--deco); letter-spacing: .16em; text-transform: uppercase; color: var(--gold); text-align: center; }

/* ---------- 7 · Nightcap ---------- */
.nightcap { text-align: center; padding: clamp(56px, 9vw, 100px) var(--gutter) clamp(70px, 10vw, 120px); background: radial-gradient(50% 70% at 50% 100%, rgba(227,189,110,.16), transparent 70%); }
.nightcap__icon { width: 104px; height: 104px; border-radius: 24px; margin: 0 auto 22px; box-shadow: 0 20px 40px -14px rgba(0,0,0,.9), 0 0 0 1px rgba(227,189,110,.4); }
.nightcap h2 { font-size: clamp(28px, 4vw, 44px); max-width: 640px; margin: 0 auto; }
.nightcap p { color: var(--ink-soft); margin-top: 12px; }

/* ---------- Footer ---------- */
.footer { border-top: 1px solid var(--line); background: #0d0717; }
.footer__inner { max-width: var(--max); margin: 0 auto; padding: 30px var(--gutter) calc(30px + env(safe-area-inset-bottom)); display: flex; flex-wrap: wrap; align-items: center; gap: 16px 28px; }
.footer img { width: 84px; height: auto; }
.footer nav { display: flex; flex-wrap: wrap; gap: 6px 20px; }
.footer nav a { color: var(--ink-soft); text-decoration: none; font-size: 14px; }
.footer nav a:hover { color: var(--gold-hi); }
.footer p { margin-left: auto; color: var(--ink-mute); font-size: 13px; }

/* ---------- Reveal ---------- */
.js .reveal { opacity: 0; transform: translateY(22px); transition: opacity .7s ease, transform .7s cubic-bezier(.2,.8,.2,1); }
.js .reveal.in { opacity: 1; transform: none; }

/* ---------- Responsive ---------- */
@media (max-width: 1020px) {
  .directory__body { grid-template-columns: 1fr; }
  .board-list { position: static; display: flex; overflow-x: auto; gap: 6px; padding: 8px; scroll-snap-type: x proximity; scrollbar-width: none; }
  .board-list::-webkit-scrollbar { display: none; }
  .board-list button { flex: 0 0 auto; width: auto; grid-template-columns: auto auto; scroll-snap-align: start; padding: 10px 14px; }
  .board-list button + button { border-top: 0; }
  .board-list i, .board-list em { display: none; }
  .board-list button[aria-selected="true"] { box-shadow: inset 0 -3px 0 var(--accent); }
  .shelf { grid-template-columns: repeat(2, 1fr); }
  .console { grid-template-columns: 1fr; }
  .console__phone { max-width: 340px; margin: 0 auto; }
  .month__grid, .dailies { grid-template-columns: 1fr; }
}
@media (max-width: 860px) {
  .menu-btn {
    display: grid; place-content: center; gap: 6px; margin-left: auto; width: 44px; height: 44px; border-radius: 12px;
    background: rgba(255,255,255,.05); border: 1px solid var(--line); cursor: pointer;
  }
  .menu-btn span:not(.sr) { width: 20px; height: 2px; background: var(--gold-hi); border-radius: 2px; transition: transform .25s; }
  .menu-btn[aria-expanded="true"] span:nth-child(1) { transform: translateY(4px) rotate(45deg); }
  .menu-btn[aria-expanded="true"] span:nth-child(2) { transform: translateY(-4px) rotate(-45deg); }
  .primary-nav {
    position: absolute; left: 0; right: 0; top: 100%; flex-direction: column; gap: 0; padding: 8px var(--gutter) 16px;
    background: rgba(14,7,25,.98); border-bottom: 1px solid var(--line); display: none;
  }
  .primary-nav.open { display: flex; }
  .primary-nav a { padding: 15px 6px; border-radius: 0; border-bottom: 1px solid rgba(255,255,255,.06); font-size: 16px; }
  .primary-nav a[aria-current="page"] { background: none; color: var(--gold-hi); }
  .room { grid-template-columns: 1fr; min-height: 0; }
  .room__host { max-width: 230px; margin: 18px auto -40px; grid-row: 1; }
  .room__info { padding: 0 18px 22px; }
  .room__scene::after { background: linear-gradient(180deg, rgba(18,10,31,.1) 0%, rgba(18,10,31,.75) 38%, rgba(18,10,31,.96) 55%); }
  .rule-cards { grid-template-columns: 1fr; }
  .legend { grid-template-columns: 1fr; }
  .lineup { grid-template-columns: repeat(4, 1fr); row-gap: 0; }
  .lineup li { margin: 0 -10%; }
  .lineup li:nth-child(n+5) { margin-top: -28%; }
  .lineup li:nth-child(even) { transform: none; filter: brightness(.86); }
  .footer p { margin-left: 0; width: 100%; }
}
@media (max-width: 520px) {
  body { font-size: 16px; }
  .shelf { gap: 10px; }
  .shelf li { min-height: 180px; padding: 16px 8px 14px; }
  .shelf .minigrid { --cell: 10px; gap: 2px; padding: 6px; }
  .shelf .minigrid .col { gap: 2px; }
  .facts div { grid-template-columns: 1fr; gap: 2px; }
  .milestones li { grid-template-columns: 1fr auto; }
  .ms__day { grid-column: 1 / -1; }
  .daily--wheel { grid-template-columns: 1fr; justify-items: center; text-align: center; }
  .streak { grid-template-columns: repeat(4, 1fr); }
  .streak li.big { grid-column: span 1; }
  .cal { padding: 16px; }
  .cal__days { gap: 5px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .js .reveal { opacity: 1; transform: none; }
}

/* ---------- Document pages (How to Play, Privacy, Terms, Contact) ---------- */
.doc-page { background: radial-gradient(90% 50% at 50% 0%, rgba(59,31,94,.7), transparent 70%), var(--night); }
.doc__hero { max-width: var(--max); margin: 0 auto; padding: clamp(40px, 7vw, 80px) var(--gutter) clamp(24px, 4vw, 40px); }
.doc__hero h1 { font-size: clamp(40px, 6vw, 68px); margin-top: 14px; }
.doc__meta { margin-top: 12px; color: var(--ink-mute); font-size: 14.5px; }
.doc__layout { max-width: var(--max); margin: 0 auto; padding: 0 var(--gutter) clamp(60px, 9vw, 110px); display: grid; grid-template-columns: 230px 1fr; gap: 40px; align-items: start; }
.doc__toc { position: sticky; top: 92px; }
.doc__toc p { font: 700 11px/1 var(--deco); letter-spacing: .2em; text-transform: uppercase; color: var(--gold); margin-bottom: 12px; }
.doc__toc ol { list-style: none; margin: 0; padding: 0; border-left: 1px solid var(--line); counter-reset: toc; }
.doc__toc li { counter-increment: toc; }
.doc__toc a { display: block; padding: 7px 0 7px 16px; margin-left: -1px; border-left: 2px solid transparent; color: var(--ink-soft); text-decoration: none; font-size: 14.5px; }
.doc__toc a::before { content: counter(toc, decimal-leading-zero) "  "; font: 700 10px/1 var(--deco); color: var(--gold-lo); }
.doc__toc a:hover, .doc__toc a.on { color: var(--ink); border-left-color: var(--gold); }
.doc__body { min-width: 0; display: grid; gap: 16px; }
.doc-card {
  padding: clamp(20px, 3vw, 32px); border-radius: 20px; background: linear-gradient(170deg, rgba(42,23,69,.75), rgba(22,12,39,.75));
  border: 1px solid rgba(227,189,110,.14); scroll-margin-top: 90px;
}
.doc-card--lead { background: #f3e6c8; color: #2b1a10; border-color: rgba(156,117,49,.6); }
.doc-card--lead h2 { color: #3b1f5e; }
.doc-card--lead a { color: #6b3fa8; }
.doc-card h2 { font-size: clamp(24px, 2.6vw, 30px); margin-bottom: 12px; }
.doc-card p, .doc-card li, .doc-card dd { font-size: 16px; line-height: 1.68; }
.doc-card p + p { margin-top: 12px; }
.doc-card ul, .doc-card ol { margin: 12px 0; padding-left: 22px; }
.doc-card li + li { margin-top: 6px; }
.doc-card li::marker { color: var(--gold); }
.doc-card em { font-style: normal; color: var(--gold-hi); font-weight: 600; }
.doc-card--lead em { color: #6b3fa8; }
.ticks { list-style: none; padding: 0 !important; display: grid; gap: 8px; }
.ticks li { padding-left: 30px; position: relative; font-weight: 600; }
.ticks li::before { content: ""; position: absolute; left: 0; top: 4px; width: 18px; height: 18px; border-radius: 50%; background: #3b1f5e; }
.ticks li::after { content: ""; position: absolute; left: 6px; top: 8px; width: 5px; height: 8px; border: solid var(--gold-hi); border-width: 0 2px 2px 0; transform: rotate(45deg); }
.steps { counter-reset: st; list-style: none; padding: 0 !important; display: grid; gap: 12px; }
.steps li { counter-increment: st; position: relative; padding: 14px 16px 14px 58px; border-radius: 14px; background: rgba(255,255,255,.035); }
.steps li::before { content: counter(st); position: absolute; left: 14px; top: 14px; width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center; font: 700 14px/1 var(--sans); color: #2a1606; background: var(--gold); }
.steps strong { color: var(--ink); }
.terms { margin: 0; display: grid; gap: 10px; }
.terms div { display: grid; grid-template-columns: 110px 1fr; gap: 16px; padding: 12px 0; border-top: 1px dashed rgba(227,189,110,.18); }
.terms dt { font: 400 19px/1.3 var(--display); color: var(--gold-hi); }
.terms dd { margin: 0; color: var(--ink-soft); }
.world-table { display: grid; border-radius: 14px; overflow: hidden; border: 1px solid rgba(227,189,110,.18); }
.world-table [role="row"] { display: grid; grid-template-columns: 1fr 1.25fr 1.75fr; gap: 14px; padding: 13px 16px; font-size: 14.5px; line-height: 1.5; color: var(--ink-soft); border-top: 1px solid rgba(255,255,255,.06); position: relative; }
.world-table [role="row"][data-host]::before { content: ""; position: absolute; left: 0; top: 10px; bottom: 10px; width: 3px; border-radius: 3px; background: var(--host-accent); }
.world-table .wt-head { border-top: 0; background: rgba(227,189,110,.1); font: 700 10.5px/1.4 var(--deco); letter-spacing: .14em; text-transform: uppercase; color: var(--gold); }
.world-table b { font: 400 17px/1.3 var(--display); color: var(--ink); }
.world-table--four [role="row"] { grid-template-columns: 1fr 1.8fr auto; }
.world-table--four [role="row"] > span:last-child { font-weight: 700; color: var(--gold-hi); text-align: right; }
.mail { font-weight: 700; word-break: break-all; }

.doc--contact { min-height: calc(100vh - 200px); display: grid; align-items: center; padding: clamp(40px, 7vw, 90px) var(--gutter) clamp(60px, 9vw, 110px); }
.letter { max-width: 980px; margin: 0 auto; display: grid; grid-template-columns: 1.3fr .7fr; align-items: end; gap: 0; }
.letter__card {
  position: relative; z-index: 2; padding: clamp(26px, 5vw, 48px); border-radius: 26px; background: #f3e6c8; color: #2b1a10;
  box-shadow: 0 40px 80px -40px rgba(0,0,0,.95), inset 0 0 0 1px rgba(156,117,49,.55);
}
.letter__card::before { content: ""; position: absolute; inset: 10px; border: 1px solid rgba(156,117,49,.45); border-radius: 18px; pointer-events: none; }
.letter__card .eyebrow { color: #8a5d1c; }
.letter__card h1 { font-size: clamp(34px, 5vw, 52px); margin: 14px 0 14px; color: #3b1f5e; }
.letter__card > p { color: rgba(43,26,16,.82); }
.letter__mail {
  display: inline-flex; margin-top: 22px; padding: 14px 22px; border-radius: 14px; text-decoration: none; font-size: 18px;
  color: var(--gold-hi); background: linear-gradient(160deg, #3b1f5e, #1b1030); box-shadow: 0 12px 24px -12px rgba(59,31,94,.9);
}
.letter__tips { margin-top: 28px; padding-top: 22px; border-top: 1px dashed rgba(156,117,49,.5); }
.letter__tips h2 { font-size: 22px; color: #3b1f5e; }
.letter__tips ul { margin: 10px 0; padding-left: 20px; }
.letter__tips p { font-size: 14.5px; color: rgba(43,26,16,.7); }
.letter__host { width: 100%; max-width: 330px; margin-left: -40px; filter: drop-shadow(0 30px 30px rgba(0,0,0,.6)); }

@media (max-width: 1020px) {
  .doc__layout { grid-template-columns: 1fr; gap: 20px; }
  .doc__toc { position: static; }
  .doc__toc ol { display: flex; flex-wrap: wrap; gap: 6px; border: 0; }
  .doc__toc a { border: 1px solid var(--line); border-radius: 999px; padding: 7px 12px; margin: 0; font-size: 13.5px; }
}
@media (max-width: 760px) {
  .world-table [role="row"] { grid-template-columns: 1fr; gap: 4px; padding: 14px 16px 14px 20px; }
  .world-table .wt-head { display: none; }
  .world-table--four [role="row"] > span:last-child { text-align: left; }
  .terms div { grid-template-columns: 1fr; gap: 4px; }
  .letter { grid-template-columns: 1fr; }
  .letter__host { display: none; }
}
