/*
  Crown of Dungeons — design system
  Concept: an open page from a Game Master's leather campaign ledger,
  lit from below by a blue midnight glow. Gold marks anything you can
  act on; violet marks anything touched by magic. Blue is only ever
  the night the rest of the page happens in.
*/

:root {
  --color-bg-main: #18243a;
  --color-bg-dark: #111a2d;
  --color-bg-card: #22304a;
  --color-bg-card-hover: #2b3b58;

  --color-text: #f5f2e9;
  --color-text-muted: #aeb8c9;

  --color-primary: #d6ad4f;
  --color-primary-light: #f0cc72;
  --color-primary-dark: #a47d28;

  --color-secondary: #6f8fc4;
  --color-accent: #8d6ac9;
  --color-accent-light: #b39ae0;

  --color-border: #3b4d6c;

  --color-danger: #c1524a;
  --color-danger-light: #de7b70;

  --parchment: #ecdfc2;
  --ink: #211a10;
  --ink-muted: #5b5140;

  --shadow: rgba(4, 7, 14, 0.6);
  --glow-gold: rgba(214, 173, 79, 0.32);
  --glow-violet: rgba(141, 106, 201, 0.4);

  --font-display: 'Cinzel', Georgia, serif;
  --font-body: 'Spectral', Georgia, 'Times New Roman', serif;
  --font-ui: 'Work Sans', Arial, Helvetica, sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--color-text-muted);
  background-color: var(--color-bg-main);
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.7;
}
body.no-scroll { overflow: hidden; }
a { color: inherit; }
img { width: 100%; height: auto; display: block; }
button, input, textarea { font-family: var(--font-ui); font-size: inherit; }
button { cursor: pointer; }
::selection { background: var(--color-primary); color: var(--ink); }

.wrapper { width: 100%; display: flex; flex-direction: column; min-height: 100vh; }
.centered { width: 90%; max-width: 1240px; margin: 0 auto; }
.d-flex { display: flex; }
main { flex: 1 0 auto; }

/* A midnight sky, not a flat wash: faint stars, a whisper of violet magic low down */
body {
  background-image:
    radial-gradient(1.5px 1.5px at 8% 12%, rgba(245,242,233,0.5), transparent),
    radial-gradient(1px 1px at 22% 28%, rgba(245,242,233,0.35), transparent),
    radial-gradient(1.5px 1.5px at 38% 6%, rgba(214,173,79,0.5), transparent),
    radial-gradient(1px 1px at 61% 18%, rgba(245,242,233,0.3), transparent),
    radial-gradient(1.5px 1.5px at 77% 9%, rgba(245,242,233,0.4), transparent),
    radial-gradient(1px 1px at 92% 24%, rgba(214,173,79,0.4), transparent),
    radial-gradient(1.5px 1.5px at 15% 46%, rgba(245,242,233,0.3), transparent),
    radial-gradient(1px 1px at 85% 55%, rgba(245,242,233,0.28), transparent),
    radial-gradient(circle at 20% 15%, rgba(214, 173, 79, 0.06), transparent 30%),
    radial-gradient(circle at 85% 82%, rgba(141, 106, 201, 0.1), transparent 34%);
  background-attachment: fixed;
}

/* ---------- Typography ---------- */
h1, h2, h3 { margin-top: 0; line-height: 1.16; font-family: var(--font-display); font-weight: 700; text-wrap: balance; letter-spacing: 0.2px; }
h1 { font-size: clamp(34px, 4.6vw, 58px); margin-bottom: 22px; color: var(--color-text); }
h2 { font-size: clamp(26px, 3vw, 38px); margin-bottom: 18px; color: var(--color-primary-light); }
h3 { font-size: 21px; margin-bottom: 10px; color: var(--color-text); font-family: var(--font-body); font-weight: 600; }
p { margin: 0 0 1em; max-width: 62ch; }
p:last-child { margin-bottom: 0; }
.lead { font-size: 20px; color: var(--color-text); font-style: italic; }
.muted { color: var(--color-text-muted); }
.visually-hidden { position: absolute !important; width: 1px !important; height: 1px !important; padding: 0 !important; margin: -1px !important; overflow: hidden !important; clip: rect(0, 0, 0, 0) !important; clip-path: inset(50%) !important; white-space: nowrap !important; border: 0 !important; }
.eyebrow { display: inline-flex; align-items: center; gap: 9px; margin-bottom: 14px; font-family: var(--font-ui); font-size: 12.5px; font-weight: 700; text-transform: uppercase; letter-spacing: 2.2px; color: var(--color-secondary); }
.eyebrow::before { content: ''; width: 18px; height: 1px; background: var(--color-secondary); }

/* ---------- Header ---------- */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1200;
  background: rgba(17, 26, 45, 0.92);
  border-bottom: 1px solid var(--color-border);
  backdrop-filter: blur(10px);
}
.header__inner { min-height: 76px; align-items: center; justify-content: space-between; gap: 28px; }
.brand { text-decoration: none; align-items: center; gap: 12px; flex: 0 0 auto; }
.brand:has(.brand__logo) { width: 280px; }
.brand__mark { width: 42px; height: 42px; flex: 0 0 auto; object-fit: contain; filter: drop-shadow(0 0 6px var(--glow-gold)); }
.brand__text { font-family: var(--font-display); font-size: 19px; font-weight: 600; letter-spacing: 0.6px; color: var(--color-text); }
.brand__logo { display: block; width: 280px; height: 62px; object-fit: contain; object-position: left center; }
.nav { align-items: center; gap: 30px; }
.nav a { text-decoration: none; font-family: var(--font-ui); font-size: 14.5px; font-weight: 600; letter-spacing: 0.3px; color: var(--color-text-muted); position: relative; padding-bottom: 4px; }
.nav a::after { content: ''; position: absolute; left: 0; bottom: -8px; width: 0; height: 2px; background: var(--color-primary); transition: width 0.25s ease; }
.nav a:hover, .nav a[aria-current='page'] { color: var(--color-primary-light); }
.nav a:hover::after, .nav a[aria-current='page']::after { width: 100%; }
.burger { display: none; width: 42px; height: 42px; border: 1px solid var(--color-border); border-radius: 3px; background: var(--color-bg-card); padding: 10px; flex-direction: column; justify-content: center; gap: 5px; }
.burger span { display: block; width: 100%; height: 2px; background: var(--color-text); transition: transform 0.25s ease, opacity 0.25s ease; }
.burger.is-open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.burger.is-open span:nth-child(2) { opacity: 0; }
.burger.is-open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ---------- Notice strip + band ---------- */
.notice-strip { margin-top: 76px; background: #3a1618; border-bottom: 1px solid #5b2929; }
.notice-strip__inner { align-items: center; justify-content: center; gap: 16px; padding: 10px 0; text-align: center; }
.notice-strip__age { font-family: var(--font-display); font-size: 20px; line-height: 1; font-weight: 700; color: var(--color-danger-light); white-space: nowrap; }
.notice-strip p { margin: 0; font-family: var(--font-ui); font-size: 13px; font-weight: 500; color: var(--color-text-muted); }

.notice-band { background: var(--parchment); border: 0; }
.notice-band__inner { align-items: center; gap: 22px; padding: 20px 0; }
.notice-band__icon { position: relative; flex: 0 0 56px; width: 56px; height: 56px; align-items: center; justify-content: center; }
.notice-band__icon img { position: absolute; inset: -14px; width: calc(100% + 28px); height: calc(100% + 28px); object-fit: contain; }
.notice-band__icon span { position: relative; z-index: 1; color: var(--parchment); font-weight: 900; font-size: 15px; font-family: var(--font-display); text-shadow: 0 1px 2px rgba(0,0,0,0.6); }
.notice-band p { margin: 0; color: var(--ink); font-family: var(--font-ui); font-size: 14.5px; line-height: 1.6; }
.notice-band strong { color: var(--color-danger); font-family: var(--font-display); }

/* ---------- Buttons — carved plaques, not flat rectangles ---------- */
.button {
  position: relative;
  appearance: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 52px;
  padding: 0 30px;
  border: 0;
  background-color: transparent;
  text-decoration: none;
  font-family: var(--font-ui);
  font-size: 14.5px;
  font-weight: 700;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  clip-path: none;
  transition: transform 0.2s ease, box-shadow 0.2s ease, filter 0.2s ease;
}
.button::before { display: none; }
.button:hover { transform: translateY(-2px); }
.button:active { transform: translateY(0); }

/*
  Button artwork slot: once img/art/button-gold.webp (and button-steel.webp)
  exist, they paint on top of the carved-plaque fallback below and the
  buttons become fully custom textures with text laid over them. Until
  then the 404 is silently skipped and the gradient/rivet look underneath
  carries the button — no broken-image glyph, because <a>/<button> have
  no alt-text fallback to render.
*/
.button--primary {
  color: #160d04;
  background-image: url('../img/art/button-gold.webp');
  background-size: 100% 100%;
  background-repeat: no-repeat;
  font-size: 15.5px;
  font-weight: 800;
  text-shadow: 0 1px 0 rgba(255,255,255,.38), 0 0 1px rgba(0,0,0,.55);
  box-shadow: none;
}
.button--primary:hover { filter: brightness(1.08); box-shadow: none; }

.button--secondary {
  color: var(--color-text);
  background-image: url('../img/art/button-navy.webp');
  background-size: 100% 100%;
  background-repeat: no-repeat;
  box-shadow: none;
}
.button--secondary:hover { filter: brightness(1.12); background-image: url('../img/art/button-navy.webp'); }

/* ---------- Sections ---------- */
.section { padding: 88px 0; position: relative; border-bottom: 1px solid var(--color-border); }
.section:last-of-type { border-bottom: 0; }
.section::after {
  content: '◆';
  position: absolute;
  left: 50%;
  bottom: -9px;
  transform: translateX(-50%);
  font-size: 12px;
  color: var(--color-accent);
  background: var(--color-bg-main);
  padding: 0 10px;
  line-height: 1;
}
.section--panel { background: var(--color-bg-dark); }
.section--panel::after { background: var(--color-bg-dark); }
.section--parchment { background: var(--parchment); color: var(--ink); }
.section--parchment::after { background: var(--parchment); color: var(--color-accent); }
.section--parchment h2 { color: var(--color-danger); }
.section--parchment .eyebrow { color: var(--ink-muted); }
.section--parchment p { color: var(--ink-muted); }
.section__head { width: 68%; margin-bottom: 44px; }
.section__head p { color: var(--color-text-muted); font-size: 18px; max-width: 60ch; }
.section--parchment .section__head p { color: var(--ink-muted); }

/* ---------- Hero: full-bleed dungeon scene, centered text ---------- */
.hero {
  position: relative;
  display: flex;
  align-items: center;
  min-height: 680px;
  padding: 150px 0 90px;
  background:
    linear-gradient(180deg, rgba(17,26,45,0.42) 0%, rgba(17,26,45,0.66) 55%, var(--color-bg-main) 100%),
    url('../img/art/hero-bg.webp') center 34% / cover no-repeat;
}
.hero .centered { position: relative; z-index: 2; }
.hero__content { max-width: 740px; margin: 0 auto; text-align: center; }
.hero__content .eyebrow { justify-content: center; }
.hero__content .lead, .hero__content p { margin-left: auto; margin-right: auto; }
.hero__actions { margin-top: 30px; align-items: center; justify-content: center; gap: 14px; flex-wrap: wrap; }
.hero__actions .button {
  min-height: 66px;
  padding: 0 36px;
}

/* ---------- Recto/verso spread ---------- */
.spread { align-items: center; justify-content: space-between; gap: 7%; }
.spread--reverse { flex-direction: row-reverse; }
.spread__copy { flex: 0 0 46%; width: 46%; }
.spread__figure { flex: 0 0 40%; width: 40%; }

/* ---------- Illustration plate (placeholder-ready) ---------- */
.plate { position: relative; }
.plate__frame {
  position: relative;
  overflow: hidden;
  aspect-ratio: 4 / 3;
  padding: 10px;
  border: 1px solid var(--color-primary);
  background: linear-gradient(155deg, rgba(214,173,79,0.08), transparent 60%), var(--color-bg-card);
  box-shadow: 0 26px 60px var(--shadow), 0 0 0 1px rgba(0,0,0,0.2);
}
.plate--bleed .plate__frame { padding: 0; border-color: var(--color-border); }
.game-preview-frame {
  position: relative;
  z-index: 1;
  display: block;
  width: 100%;
  height: 100%;
  border: 0;
  background: #061421;
}
.plate__frame:has(.game-preview-frame) { height: clamp(420px, 38vw, 510px); aspect-ratio: auto; }
/* Waiting-for-art watermark: sits behind the <img>, so it's automatically
   covered once a real image loads, and shows through while the src 404s. */
.plate__frame::before {
  content: '⚜';
  position: absolute;
  inset: 4px;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--color-border);
  font-family: var(--font-display);
  font-size: clamp(34px, 10vw, 64px);
  color: var(--color-primary);
  opacity: 0.55;
  background:
    radial-gradient(circle at 30% 26%, rgba(214,173,79,0.14), transparent 42%),
    radial-gradient(circle at 74% 78%, rgba(141,106,201,0.16), transparent 40%);
  pointer-events: none;
}
.plate__frame img {
  position: relative;
  z-index: 2;
  width: 100%;
  height: 100%;
  object-fit: cover;
  background: transparent;
  color: var(--color-text-muted);
  font-family: var(--font-ui);
  font-size: 12px;
  line-height: 1.5;
  text-align: center;
  padding: 18px;
}
.plate__frame img.plate__image--cover {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  padding: 0;
}
.plate figcaption { margin-top: 12px; display: flex; align-items: baseline; gap: 10px; font-family: var(--font-ui); font-size: 12.5px; letter-spacing: 0.6px; color: var(--color-text-muted); }
.plate figcaption .plate__num { font-family: var(--font-display); color: var(--color-primary); font-size: 13px; }
.section--parchment .plate figcaption { color: var(--ink-muted); }

/* ---------- Ledger (numbered rule entries — real sequence) ---------- */
.ledger { border-top: 1px solid var(--color-border); }
.ledger__entry { display: flex; gap: 5%; padding: 30px 0; border-bottom: 1px solid var(--color-border); }
.ledger__num { flex: 0 0 90px; width: 90px; font-family: var(--font-display); font-size: 40px; color: var(--color-primary); line-height: 1; }
.ledger__body { flex: 1 1 auto; }
.ledger__body h3 { margin-bottom: 8px; }
.ledger__body p { color: var(--color-text-muted); margin: 0; max-width: 68ch; }
.section--parchment .ledger { border-top-color: rgba(193, 82, 74, 0.28); }
.section--parchment .ledger__entry { border-bottom-color: rgba(193, 82, 74, 0.22); }
.section--parchment .ledger__body p { color: var(--ink-muted); }
.ledger__entry--magic .ledger__num { color: var(--color-accent-light); text-shadow: 0 0 14px var(--glow-violet); }

/* ---------- Bento (one deliberate asymmetric moment) ---------- */
.bento { display: grid; grid-template-columns: repeat(6, 1fr); gap: 18px; }
.bento__tile {
  position: relative;
  display: flex;
  align-items: flex-start;
  gap: 18px;
  padding: 26px;
  border: 0;
  background: url('../img/art/rule-card-frame.webp') center / 100% 100% no-repeat;
  grid-column: span 2;
  transition: background 0.2s ease, border-color 0.2s ease;
}
.bento__tile:hover { filter: brightness(1.08); }
.bento__tile--wide { grid-column: span 3; }
.bento__tile::before, .bento__tile::after { display: none; }
.bento__tile__icon { flex: 0 0 56px; width: 56px; height: 56px; object-fit: contain; filter: drop-shadow(0 4px 10px rgba(0,0,0,0.5)); }
.bento__tile__body { flex: 1 1 auto; min-width: 0; }
.bento__tile h3 { margin-bottom: 10px; }
.bento__tile p { color: var(--color-text-muted); margin: 0; }
.bento__tile--magic { background: url('../img/art/rule-card-frame.webp') center / 100% 100% no-repeat; }
.bento__tile--magic::before, .bento__tile--magic::after { border-color: var(--color-accent); }
.bento__tile--magic h3 { color: var(--color-accent-light); }

/* ---------- Curio grid (small specimen plates) ---------- */
.curio-grid { display: grid; grid-template-columns: repeat(6, 1fr); gap: 16px; }
.curio { position: relative; margin: 0; text-align: center; }
.curio__frame { position: relative; overflow: hidden; aspect-ratio: 1 / 1; border: 1px solid var(--color-primary); background: var(--color-bg-card); padding: 8px; box-shadow: 0 10px 26px var(--shadow); transition: box-shadow 0.25s ease; }
.curio__frame::before { display: none; }
.curio__frame img {
  position: relative;
  z-index: 2;
  width: 100%;
  height: 100%;
  object-fit: contain;
  background: transparent;
  color: var(--color-text-muted);
  font-family: var(--font-ui);
  font-size: 10.5px;
  line-height: 1.4;
  text-align: center;
  padding: 10px;
}
.curio span { display: block; margin-top: 10px; font-family: var(--font-ui); font-size: 12.5px; letter-spacing: 0.3px; color: var(--color-text-muted); }
.curio--premium .curio__frame { border-color: var(--color-accent); box-shadow: 0 0 0 1px var(--color-accent), 0 0 30px var(--glow-violet); }
.curio--premium span { color: var(--color-accent-light); }

/* ---------- Triptych (three restrained columns) ---------- */
.triptych { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0; border-top: 1px solid var(--color-border); }
.triptych__col { padding: 30px 32px; border-right: 1px solid var(--color-border); }
.triptych__col:last-child { border-right: 0; }
.triptych__col p { color: var(--color-text-muted); margin: 0; }

/* ---------- Notes list (unordered facts — no numbering) ---------- */
.notes-list { display: grid; grid-template-columns: repeat(2, 1fr); gap: 30px 50px; }
.notes-list__item h3 { position: relative; padding-left: 0; }
.notes-list__item h3::before { display: none; }
.notes-list__item p { color: var(--color-text-muted); margin: 0; }

/* ---------- Tavern notes (pinned reviews) ---------- */
.tavern-notes { flex-wrap: wrap; gap: 26px 22px; align-items: flex-start; padding-top: 6px; }
.tavern-note {
  flex: 1 0 22%; width: 22%; min-width: 230px;
  padding: 24px 22px;
  background: var(--parchment);
  color: var(--ink);
  box-shadow: 0 16px 30px var(--shadow);
  position: relative;
}
.tavern-note:nth-child(2n) { transform: rotate(-0.9deg); }
.tavern-note:nth-child(2n+1) { transform: rotate(0.8deg); }
.tavern-note::before { display: none; content: none; }
.tavern-note__quote { font-family: var(--font-display); font-size: 30px; color: var(--color-primary); line-height: 1; display: block; margin-bottom: 4px; }
.tavern-note__head { display: flex; align-items: baseline; justify-content: space-between; margin-bottom: 8px; }
.tavern-note__head h3 { margin: 0; font-size: 17px; color: var(--ink); font-family: var(--font-body); font-weight: 700; }
.tavern-note__head span { font-family: var(--font-ui); font-size: 12px; color: var(--color-danger); font-weight: 700; }
.tavern-note p { color: var(--ink-muted); margin: 0; font-size: 15.5px; }

/* ---------- FAQ scroll ---------- */
.faq { position: relative; flex-direction: column; gap: 0; padding: 34px 42px; border: 0; background: url('../img/art/faq-archive.webp') center / 100% 100% no-repeat; }
.faq__item { border-bottom: 1px solid var(--color-border); transition: box-shadow 0.25s ease; }
.faq__item:last-child { border-bottom: 0; }
.faq__question { width: 100%; border: 0; background: transparent; color: var(--color-text); text-align: left; padding: 20px 24px; font-family: var(--font-body); font-size: 17.5px; font-weight: 600; align-items: center; justify-content: space-between; gap: 20px; }
.faq__question span:first-child { display: flex; align-items: center; gap: 15px; }
.faq__question span:last-child { display: inline-flex; align-items: center; justify-content: center; flex: 0 0 30px; width: 30px; height: 30px; border: 1px solid var(--color-border); color: var(--color-primary); font-size: 20px; line-height: 1; transition: transform 0.25s ease, background 0.25s ease, border-color 0.25s ease, color 0.25s ease; }
.faq__item.is-open { box-shadow: inset 3px 0 0 var(--color-accent); }
.faq__item.is-open .faq__question span:last-child { transform: rotate(45deg); color: var(--color-text); border-color: var(--color-accent); box-shadow: 0 0 12px var(--glow-violet); }
.faq__item.is-open .faq__question { color: var(--color-accent-light); }
.faq__answer { display: none; margin: 0 24px 22px; padding-top: 14px; border-top: 1px solid var(--color-border); color: var(--color-text-muted); font-family: var(--font-ui); font-size: 15px; line-height: 1.7; }
.faq__item.is-open .faq__answer { display: block; }

/* ---------- Responsible-play badges ---------- */
.responsible-links { flex-wrap: wrap; gap: 16px; align-items: stretch; }
.responsible-link { flex: 1 0 22%; width: 22%; min-height: 108px; padding: 18px; border: 0; background: var(--parchment); color: var(--ink); text-decoration: none; align-items: center; justify-content: center; flex-direction: column; gap: 10px; text-align: center; transition: transform 0.2s ease, filter 0.2s ease; }
.responsible-link:hover { transform: translateY(-4px); border-color: var(--color-primary); }
.responsible-link img { width: 72%; height: 40px; object-fit: contain; }
.responsible-link img.responsible-link__logo--peluuri { transform: scale(1.7); }
.responsible-link strong { display: none; }

/* ---------- Game panel (frames the real embedded game) ---------- */
.game-panel { position: relative; padding: 18px; border: 1px solid var(--color-primary); background: var(--color-bg-card); box-shadow: 0 26px 60px var(--shadow); }
.game-panel::before { content: ''; position: absolute; top: 10px; left: 10px; width: 26px; height: 26px; border-top: 2px solid var(--color-primary); border-left: 2px solid var(--color-primary); }
.game-panel::after { content: ''; position: absolute; bottom: 10px; right: 10px; width: 26px; height: 26px; border-bottom: 2px solid var(--color-primary); border-right: 2px solid var(--color-primary); }
.game-panel__topbar { position: relative; z-index: 2; display: flex; align-items: stretch; gap: 12px; margin-bottom: 14px; }
.game-panel__notice { flex: 1 1 auto; display: grid; place-items: center; padding: 11px 16px; border: 1px solid #6b3430; background: #3a1618; color: #d8c4ba; font-family: var(--font-ui); font-weight: 600; font-size: 12.5px; text-align: center; }
.game-fullscreen-button { flex: 0 0 210px; min-height: 54px; padding: 8px 16px; display: inline-flex; align-items: center; justify-content: center; border: 1px solid var(--color-primary); background: #071725; color: var(--color-primary-light); font-family: var(--font-ui); font-weight: 700; text-align: center; text-decoration: none; text-transform: uppercase; cursor: pointer; }
.game-fullscreen-button:hover { background: #0c2435; }
.game-fullscreen-button span { margin-right: 6px; font-size: 20px; vertical-align: -1px; }
.game-frame { width: 100%; height: clamp(520px, calc(100dvh - 205px), 760px); border: 0; background: var(--color-bg-dark); display: block; }
.game-frame:fullscreen { width: 100vw; height: 100vh; background: #07080b; }

/* ---------- Page hero: the same dungeon entrance across the whole site ---------- */
.page-hero {
  position: relative;
  display: flex;
  align-items: center;
  min-height: 480px;
  padding: 82px 0 76px;
  overflow: hidden;
  border-bottom: 1px solid rgba(184, 137, 50, .42);
  background:
    linear-gradient(180deg, rgba(3, 11, 18, .24) 0%, rgba(3, 11, 18, .46) 52%, rgba(4, 15, 25, .94) 100%),
    url('../img/art/hero-bg.webp') center 48% / cover no-repeat;
}
.page-hero::after {
  content: '';
  position: absolute;
  inset: auto 0 0;
  height: 30%;
  pointer-events: none;
  background: linear-gradient(180deg, transparent, rgba(3, 13, 22, .82));
}
.page-hero .centered { position: relative; z-index: 1; }
.page-hero__inner { width: min(760px, 100%); margin: 0 auto; text-align: center; }
.page-hero__inner .eyebrow { justify-content: center; color: #d8bd82; }
.page-hero__inner .eyebrow::before,
.page-hero__inner .eyebrow::after { display: none; }
.page-hero h1 { color: #f1e2bd; text-shadow: 0 3px 18px rgba(0,0,0,.95); }
.page-hero p { max-width: 650px; margin-inline: auto; font-size: 18px; color: #e3d9c3; text-shadow: 0 2px 8px #000; }

/* ---------- Policy / legal reading pages ---------- */
.policy { width: 76%; }
.policy__section { margin-bottom: 40px; padding-bottom: 30px; border-bottom: 1px solid var(--color-border); }
.policy__section:last-child { border-bottom: 0; }
.policy__section h2 { font-size: 23px; position: relative; padding-left: 18px; }
.policy__section h2::before { content: ''; position: absolute; left: 0; top: 0.15em; bottom: 0.15em; width: 3px; background: var(--color-primary); }
.policy__section p, .policy__section li { color: var(--color-text-muted); font-family: var(--font-body); }
.policy__section ul { padding-left: 20px; }
.policy__contact { padding: 22px 24px; border: 1px solid var(--color-border); background: var(--color-bg-card); }

/* ---------- Contact ---------- */
.contact-layout { align-items: flex-start; justify-content: space-between; gap: 7%; }
.contact-copy { flex: 0 0 44%; width: 44%; }
.contact-form { flex: 0 0 46%; width: 46%; padding: 30px; border: 1px solid var(--color-border); background: var(--color-bg-card); }
.contact-help-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; align-items: stretch; }
.contact-help-card { position: relative; min-width: 0; min-height: 235px; padding: 30px 26px 26px; border: 1px solid rgba(184,137,50,.56); background: linear-gradient(145deg, rgba(14,38,56,.96), rgba(4,18,30,.96)); box-shadow: 0 16px 30px rgba(0,0,0,.3); }
.contact-help-card::after { content: ''; position: absolute; inset: 8px; border: 1px solid rgba(184,137,50,.18); pointer-events: none; }
.contact-help-card__num { display: block; margin-bottom: 20px; color: var(--color-primary); font-family: var(--font-display); font-size: 13px; letter-spacing: .14em; }
.contact-help-card h3 { position: relative; z-index: 1; min-height: 2.4em; margin-bottom: 12px; color: #e0c47f; font-size: 18px; line-height: 1.2; }
.contact-help-card p { position: relative; z-index: 1; margin: 0; color: #c8bea9; font-size: 14px; line-height: 1.5; }

/* ---------- Full-width information calls to action ---------- */
.section--cta { padding-block: 48px; }
.info-cta { position: relative; min-height: 330px; display: flex; align-items: center; overflow: hidden; padding: 58px 8%; border: 1px solid rgba(184,137,50,.72); box-shadow: inset 0 0 48px rgba(0,0,0,.68), 0 18px 34px rgba(0,0,0,.28); }
.info-cta::after { content: ''; position: absolute; inset: 10px; border: 1px solid rgba(214,173,79,.24); pointer-events: none; }
.info-cta--contact { background: linear-gradient(90deg, rgba(3,16,27,.97), rgba(4,18,30,.82), rgba(4,18,30,.45)), url('../img/art/footer-hall.webp') center / cover no-repeat; }
.info-cta--interface { background: linear-gradient(90deg, rgba(3,16,27,.96), rgba(4,18,30,.82), rgba(4,18,30,.54)), url('../img/art/faq-archive.webp') center / cover no-repeat; }
.info-cta__copy { position: relative; z-index: 1; width: min(690px, 78%); }
.info-cta__copy h2 { max-width: 650px; }
.info-cta__copy p { max-width: 680px; color: #d2c6ad; }
.info-cta__copy .button { margin-top: 12px; }
.form-row { margin-bottom: 20px; }
.form-row label { display: block; margin-bottom: 8px; font-family: var(--font-ui); font-size: 13.5px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.4px; color: var(--color-primary-light); }
.form-row input, .form-row textarea { width: 100%; border: 0; border-bottom: 1px solid var(--color-border); background: transparent; color: var(--color-text); padding: 10px 2px; outline: none; }
.form-row textarea { height: 150px; resize: vertical; }
.form-row input:focus, .form-row textarea:focus { border-color: var(--color-primary); }
.form-row.is-error input, .form-row.is-error textarea { border-color: var(--color-danger-light); }
.form-error { display: none; margin-top: 6px; color: var(--color-danger-light); font-family: var(--font-ui); font-size: 12.5px; font-weight: 600; }
.form-row.is-error .form-error { display: block; }

/* ---------- Footer ---------- */
.site-footer { background: var(--color-bg-dark); border-top: 1px solid var(--color-border); }
.footer__brand-bar { padding: 40px 0 30px; border-bottom: 1px solid var(--color-border); }
.footer__brand-bar .brand { pointer-events: none; }
.footer__brand-bar .brand__text { font-size: 26px; }
.footer__brand-bar p { max-width: 52ch; margin: 14px 0 0; color: var(--color-text-muted); font-family: var(--font-ui); font-size: 14px; }
.footer__links { padding: 34px 0; justify-content: space-between; gap: 24px; flex-wrap: wrap; }
.footer__column { flex: 1 1 0; min-width: 160px; }
.footer__column h3 { font-family: var(--font-ui); font-size: 13px; text-transform: uppercase; letter-spacing: 1px; margin-bottom: 16px; color: var(--color-secondary); }
.footer__column a { display: block; margin-bottom: 10px; color: var(--color-text-muted); text-decoration: none; font-family: var(--font-ui); font-size: 14px; }
.footer__column a:hover { color: var(--color-primary-light); }
.footer__bottom { border-top: 1px solid var(--color-border); padding: 18px 0 26px; font-family: var(--font-ui); font-size: 12.5px; color: var(--color-text-muted); }
.footer__bottom p { margin: 0; max-width: none; }

/* ---------- Age gate / cookie / form modal ---------- */
.age-gate, .form-modal { position: fixed; inset: 0; z-index: 3000; display: none; align-items: center; justify-content: center; padding: 24px; }
.age-gate { background: rgba(2, 7, 13, .46); backdrop-filter: none; }
.form-modal { background: rgba(2, 7, 13, .86); backdrop-filter: blur(6px); }
.age-gate.is-visible, .form-modal.is-visible { display: flex; }
.age-gate__card {
  width: min(600px, 100%);
  min-height: 570px;
  padding: 118px 78px 46px;
  border: 0;
  background: transparent url('../img/art/age-gate-panel-v2.webp') center / 100% 100% no-repeat;
  filter: drop-shadow(0 34px 46px rgba(0,0,0,.76));
  text-align: center;
}
.form-modal__card { width: 500px; padding: 36px; border: 1px solid var(--color-primary); background: var(--color-bg-card); box-shadow: 0 30px 80px rgba(0,0,0,0.6); text-align: center; }
.age-gate__card h2, .form-modal__card h2 { font-size: 26px; }
.age-gate__card p { color: #d8ccb2; font-size: 15px; line-height: 1.55; }
.age-gate__age { display: inline-flex; align-items: center; justify-content: center; width: 104px; height: 104px; margin-bottom: 10px; }
.age-gate__age img { width: 100%; height: 100%; margin-top: 40px; object-fit: contain; }
.age-gate__actions { margin-top: 26px; justify-content: center; gap: 12px; flex-wrap: wrap; }
.age-gate__actions .button { flex: 1 1 190px; min-height: 58px; padding-inline: 22px; font-size: 13px; }

.cookie-banner {
  position: fixed;
  left: 24px;
  bottom: 24px;
  z-index: 2200;
  display: none;
  width: 460px;
  min-height: 310px;
  padding: 55px 54px 38px;
  border: 0;
  background: transparent url('../img/art/cookie-parchment-v2.webp') center / 100% 100% no-repeat;
  filter: drop-shadow(0 18px 28px rgba(0,0,0,.55));
  text-align: center;
}
.cookie-banner.is-visible { display: block; }
.cookie-banner h3 { margin-bottom: 8px; font-size: 19px; color: #372313; text-shadow: none; }
.cookie-banner p { margin-bottom: 14px; font-family: var(--font-ui); font-size: 12px; line-height: 1.45; color: #5b4834; }
.cookie-banner__actions { position: static; margin-top: 12px; flex-direction: column; justify-content: center; gap: 8px; flex-wrap: nowrap; }
.cookie-banner .button { flex: 0 0 auto; width: 100%; min-width: 0; min-height: 48px; padding: 0 18px; font-size: 11px; }
.cookie-banner .button--primary { color: #160d04; }
.cookie-banner [data-cookie-choice='necessary'] { color: #110902; font-weight: 900; text-shadow: 0 1px 0 rgba(255,255,255,.62), 0 0 1px rgba(255,255,255,.48); }
.cookie-banner .button--secondary { color: #f1e4c5; }

.reveal { opacity: 0; transform: translateY(16px); transition: opacity 0.6s ease, transform 0.6s ease; }
.reveal.is-visible { opacity: 1; transform: translateY(0); }

/* ---------- Responsive ---------- */
@media (max-width: 980px) {
  .centered { width: 92%; }
  .nav { position: fixed; top: 76px; right: -100%; width: 78%; height: 100vh; padding: 36px 26px; background: var(--color-bg-card); flex-direction: column; align-items: flex-start; gap: 22px; transition: right 0.3s ease; border-left: 1px solid var(--color-border); }
  .nav.is-open { right: 0; }
  .nav a { font-size: 18px; }
  .burger { display: flex; }
  .hero { padding: 130px 0 60px; min-height: 560px; }
  .spread, .contact-layout { flex-direction: column; gap: 44px; }
  .spread__copy, .spread__figure, .contact-copy, .contact-form { flex: 0 0 100%; width: 100%; }
  .spread--reverse { flex-direction: column; }
  .section__head, .page-hero__inner, .policy { width: 100%; }
  .bento { grid-template-columns: repeat(2, 1fr); }
  .bento__tile, .bento__tile--wide { grid-column: span 1; }
  .curio-grid { grid-template-columns: repeat(3, 1fr); }
  .triptych { grid-template-columns: 1fr; }
  .triptych__col { border-right: 0; border-bottom: 1px solid var(--color-border); }
  .notes-list { grid-template-columns: 1fr; gap: 26px; }
  .footer__links { flex-direction: column; }
  .contact-help-grid { grid-template-columns: 1fr; }
  .contact-help-card { min-height: 0; }
  .info-cta__copy { width: 100%; }
  .game-panel__topbar { flex-direction: column; }
  .game-fullscreen-button { flex-basis: auto; }
  .tavern-note { flex: 1 0 100%; width: 100%; transform: none !important; }
  .game-frame { height: clamp(480px, calc(100dvh - 145px), 680px); }
  .brand__logo { width: 250px; height: 56px; }
}

@media (max-width: 640px) {
  html, body, .wrapper { width: 100%; max-width: 100%; overflow-x: clip; }
  body { font-size: 16px; }
  .header__inner { min-height: 68px; }
  .nav { top: 68px; width: 100%; }
  .notice-strip { margin-top: 68px; }
  .notice-strip__inner { align-items: flex-start; gap: 8px; }
  .notice-strip__age { font-size: 17px; }
  .notice-strip p { font-size: 11.5px; text-align: left; }
  .lead { font-size: 18px; }
  .section { padding: 56px 0; }
  .page-hero { min-height: 430px; padding: 72px 0 58px; }
  .curio-grid { grid-template-columns: repeat(2, 1fr); }
  .responsible-link { flex: 0 0 100%; width: 100%; }
  .age-gate { padding: 10px; }
  .age-gate__card { width: min(430px, 100%); min-height: 520px; padding: 98px 44px 34px; }
  .age-gate__card h2 { font-size: 22px; }
  .age-gate__card p { font-size: 13px; line-height: 1.4; }
  .age-gate__age { width: 82px; height: 82px; }
  .age-gate__actions { margin-top: 16px; gap: 6px; }
  .age-gate__actions .button { flex-basis: 100%; min-height: 48px; }
  .form-modal__card { width: 100%; padding: 26px; }
  .cookie-banner { left: 2%; right: 2%; bottom: 8px; width: auto; min-height: 300px; padding: 46px 35px 34px; }
  .cookie-banner h3 { font-size: 17px; }
  .cookie-banner p { font-size: 11px; }
  .cookie-banner__actions { margin-top: 10px; gap: 7px; }
  .cookie-banner .button { width: 100%; min-height: 46px; padding-inline: 12px; font-size: 10px; }
  .button { width: 100%; }
  .hero__content, .section__head, .bento, .curio-grid, .notes-list, .tavern-notes, .faq, .responsible-links, .spread { min-width: 0; max-width: 100%; }
  .game-panel { padding: 12px; }
  .game-frame { height: clamp(420px, calc(100svh - 125px), 600px); }
  .info-cta { min-height: 310px; padding: 44px 28px; }
  .brand__logo { width: 235px; height: 52px; }
  .notice-band { background: transparent url('../img/art/notice-parchment-Photoroom.webp') center / auto 100% no-repeat; }
  .notice-band__inner { padding: 18px 5%; }
  .notice-band__icon { flex-basis: 48px; width: 48px; height: 48px; }
  .notice-band__icon img { position: static; inset: auto; width: 100%; height: 100%; }
  .notes-list__item { display: grid; grid-template-columns: 46px 1fr; gap: 12px; padding-left: 0; }
  .notes-list__item > img { width: 42px; height: 42px; object-fit: contain; }
  .section--parchment { background: transparent; color: var(--color-text-muted); }
  .section--parchment h2 { color: var(--color-primary-light); }
  .tavern-note { background: transparent url('../img/art/review-card-v2-Photoroom.webp') center / 100% 100% no-repeat; }
  .faq { padding: 20px 15px; background: url('../img/art/faq-archive.webp') center / cover no-repeat; }
  .site-footer { background: #020b12 url('../img/art/footer-hall.webp') center top / cover no-repeat; }
  .bento__tile, .bento__tile--wide, .bento__tile--magic { min-height: 180px; padding: 22px 18px; background: url('../img/art/rule-card-frame.webp') center / 100% 100% no-repeat; }
  .bento__tile__icon { width: 68px; height: 68px; flex-basis: 68px; object-fit: contain; }
  .curio { width: 100%; min-width: 0; aspect-ratio: 3 / 4; overflow: hidden; padding: 10% 9% 9%; display: grid; grid-template-rows: minmax(0, 1fr) 42px; background: url('../img/art/symbol-card-frame.webp') center / 100% 100% no-repeat; }
  .curio__frame { width: 100%; min-height: 0; aspect-ratio: auto; border: 0; padding: 2px; background: none; box-shadow: none; }
  .curio__frame img { width: 100%; height: 100%; padding: 0; object-fit: contain; }
  .curio span { min-height: 0; display: grid; place-items: center; margin: 0; padding: 20px 5px 0; font-family: var(--font-body); font-size: 12px; line-height: 1.1; color: #d8c59d; }
  .curio--premium .curio__frame { border: 0; box-shadow: none; }
}

@media (prefers-reduced-motion: reduce) {
  * { scroll-behavior: auto !important; animation: none !important; transition: none !important; }
  .reveal { opacity: 1; transform: none; }
}

/* Content remains available even when a browser throttles observers. */
body { overflow-x: hidden; }
.reveal { opacity: 1; transform: none; }

/* ---------- Reference-matched art direction (home page) ---------- */
@media (min-width: 981px) {
  :root {
    --color-bg-main: #071725;
    --color-bg-dark: #04111d;
    --color-bg-card: #0a1c2b;
    --color-bg-card-hover: #0e2638;
    --color-text: #efe2c0;
    --color-text-muted: #c4b99f;
    --color-border: rgba(181, 132, 45, .55);
    --color-primary: #b88932;
    --color-primary-light: #e1bd67;
  }

  body {
    font-size: 15px;
    line-height: 1.48;
    background-color: #061521;
    background-image:
      linear-gradient(rgba(4, 16, 27, .22), rgba(4, 16, 27, .22)),
      url('../img/art/midnight-stone-texture.webp');
    background-size: auto, 1600px auto;
    background-repeat: repeat, repeat-y;
    background-position: center top;
  }
  .reveal { opacity: 1; transform: none; }

  .centered { width: 84%; max-width: 1120px; }
  h1 { font-size: 50px; line-height: 1.05; margin-bottom: 18px; text-shadow: 0 2px 10px #000; }
  h2 { font-size: 31px; margin-bottom: 10px; }
  h3 { font-size: 18px; }
  .eyebrow { margin-bottom: 7px; color: #b88c39; font-family: var(--font-display); font-size: 11px; letter-spacing: 1.5px; }
  .eyebrow::after { content: ''; width: 18px; height: 1px; background: currentColor; }

  .site-header { position: fixed; background: rgba(1, 10, 17, .96); border-bottom-color: rgba(184, 137, 50, .28); backdrop-filter: blur(10px); }
  .header__inner { min-height: 100px; }
  .brand__mark { width: 58px; height: 58px; }
  .brand__text { font-size: 25px; color: #d7ad52; }
  .brand:has(.brand__logo) { width: 360px; }
  .brand__logo { width: 100%; height: 90px; }
  .nav { gap: 42px; }
  .nav a { font-family: var(--font-body); font-size: 15px; color: #d5c9ae; }
  .nav a[aria-current='page'] { color: #d8a841; }

  .notice-strip { margin-top: 100px; background: #3a1618; border: 0; border-top: 1px solid #5b2929; border-bottom: 1px solid #5b2929; }
  .notice-strip__inner { min-height: 50px; padding: 8px 0; gap: 12px; }
  .notice-strip__age { display: grid; place-items: center; width: 29px; height: 29px; border: 1px solid #c28c62; border-radius: 50%; font-size: 12px; color: #e4b58b; }
  .notice-strip p { font-family: var(--font-body); font-size: 12px; color: #c9aaa0; }

  .hero { min-height: 535px; padding: 80px 0 45px; background:
    linear-gradient(180deg, rgba(3,11,18,.12) 0%, rgba(3,11,18,.16) 52%, rgba(4,15,25,.88) 100%),
    url('../img/art/hero-bg.webp') center 48% / cover no-repeat; }
  .hero__content { max-width: 670px; }
  .hero__content .eyebrow { font-size: 14px; color: #d8bd82; text-transform: none; letter-spacing: .2px; }
  .hero__content .eyebrow::before, .hero__content .eyebrow::after { display: none; }
  .hero__content .lead { max-width: 620px; font-size: 17px; line-height: 1.45; font-style: normal; color: #e3d9c3; }
  .hero__content > p:not(.lead) { display: none; }
  .hero__actions { margin-top: 26px; gap: 22px; }
  .button { min-height: 48px; padding: 0 28px; font-size: 12px; clip-path: none; }
  .button--primary { font-size: 14.5px; }

  .notice-band {
    min-height: 154px;
    border: 0;
    background: transparent url('../img/art/notice-parchment-Photoroom.webp') center / 100% 100% no-repeat;
  }
  .notice-band__inner { width: 70%; max-width: 960px; min-height: 154px; padding: 25px 0; gap: 28px; }
  .notice-band__icon { flex: 0 0 88px; width: 88px; height: 88px; }
  .notice-band__icon img { position: static; width: 100%; height: 100%; object-fit: contain; }
  .notice-band__icon span { display: none; }
  .notice-band p { max-width: 760px; font-family: var(--font-body); font-size: 15px; line-height: 1.42; }

  .section { padding: 38px 0; border: 0; }
  .section::after { display: none; }
  .section--panel { background: rgba(2, 13, 23, .34); }
  .section__head { width: 100%; margin: 0 auto 20px; text-align: center; }
  .section__head p { display: none; }
  .section__head .eyebrow { justify-content: center; }

  .bento { grid-template-columns: repeat(2, 1fr); gap: 14px 18px; max-width: 1000px; margin: 0 auto; }
  .bento__tile, .bento__tile--wide { grid-column: span 1; min-height: 148px; padding: 20px 24px; align-items: center; border-color: #8b6428; background:
    url('../img/art/rule-card-frame.webp') center / 100% 100% no-repeat; border: 0; box-shadow: 0 10px 22px rgba(0,0,0,.22); }
  .bento__tile--magic { grid-column: 1 / -1; min-height: 116px; }
  .bento__tile__icon { flex-basis: 108px; width: 108px; height: 100px; padding: 4px; object-fit: contain; }
  .bento__tile h3 { margin-bottom: 5px; color: #dfc37e; }
  .bento__tile p { font-size: 13.5px; line-height: 1.35; color: #c7bda9; }

  .spread { min-height: 430px; gap: 2%; padding: 34px 48px; border: 0; background:
    linear-gradient(90deg, rgba(4,18,30,.97) 0%, rgba(4,18,30,.92) 42%, rgba(4,18,30,.14) 70%),
    url('../img/art/dungeon-bg.webp') center / cover; box-shadow: inset 0 0 45px #020910, 0 0 0 1px #8c6529; }
  .spread__copy { flex-basis: 38%; width: 38%; }
  .spread__figure { flex-basis: 58%; width: 58%; }
  .plate__frame { aspect-ratio: 4 / 3; border: 0; padding: 12px; background: url('../img/art/rule-card-frame.webp') center / 100% 100% no-repeat; box-shadow: none; }
  .plate__frame img { object-fit: contain; padding: 0; filter: drop-shadow(0 12px 20px rgba(0,0,0,.7)); }
  .plate__frame:has(.game-preview-frame) { height: clamp(430px, 38vw, 510px); aspect-ratio: auto; padding: 8px; }
  .plate__frame img.plate__image--cover { object-fit: cover; object-position: center; padding: 0; }
  .plate figcaption { display: none; }
  .spread__copy h2 { font-size: 31px; }
  .spread__copy p { font-size: 14px; color: #d4c7aa; }

  .curio-grid { gap: 13px; max-width: 1040px; margin: auto; }
  .curio { width: 100%; min-width: 0; min-height: 0; aspect-ratio: 3 / 4; overflow: hidden; padding: 10% 9% 9%; display: grid; grid-template-rows: minmax(0, 1fr) 44px; background: url('../img/art/symbol-card-frame.webp') center / 100% 100% no-repeat; filter: drop-shadow(0 9px 14px rgba(0,0,0,.35)); }
  .curio__frame { width: 100%; aspect-ratio: auto; flex: 1 1 auto; border: 0; padding: 4px; background: none; box-shadow: none; }
  .curio__frame img { width: 100%; height: 100%; padding: 0; object-fit: contain; }
  .curio span { min-height: 0; display: grid; place-items: center; padding: 20px 6px 0; margin: 0; font-family: var(--font-body); font-size: 13.5px; line-height: 1.12; color: #d8c59d; text-wrap: balance; }
  .curio--premium .curio__frame { border: 0; box-shadow: none; }

  .notes-list { max-width: 980px; margin: 0 auto; gap: 21px 68px; }
  .notes-list__item { padding: 0; position: relative; display: grid; grid-template-columns: 52px 1fr; align-items: start; gap: 15px; }
  .notes-list__item::before { display: none; content: none; }
  .notes-list__item > img { width: 46px; height: 46px; object-fit: contain; filter: brightness(1.38) saturate(1.25) drop-shadow(0 3px 5px rgba(0,0,0,.65)); }
  .notes-list__item h3 { padding: 0; margin-bottom: 3px; font-size: 16px; color: #dfca9c; }
  .notes-list__item h3::before { display: none; }
  .notes-list__item p { font-size: 13px; line-height: 1.35; }

  .section--parchment { padding: 35px 0 43px; background: transparent; color: var(--color-text-muted); }
  .section--parchment h2 { color: var(--color-primary-light); }
  .section--parchment .eyebrow { color: #b88c39; }
  .tavern-notes { gap: 15px; flex-wrap: nowrap; }
  .tavern-note { min-width: 0; aspect-ratio: 4 / 3; padding: 30px 25px 48px; border: 0; background: transparent url('../img/art/review-card-v2-Photoroom.webp') center / 100% 100% no-repeat; box-shadow: none; transform: none !important; }
  .tavern-note::before, .tavern-note__quote { display: none; }
  .tavern-note::after { content: '★★★★★'; position: absolute; left: 0; right: 0; bottom: 17px; text-align: center; color: #8a2530; letter-spacing: 4px; font-size: 13px; }
  .tavern-note p { font-size: 13px; line-height: 1.35; }

  .faq { max-width: 1040px; margin: 0 auto; padding: 34px 42px; border: 0; background: url('../img/art/faq-archive.webp') center / 100% 100% no-repeat; box-shadow: 0 18px 35px rgba(0,0,0,.34); }
  .faq__item { border-bottom-color: rgba(184,137,50,.38); }
  .faq__question { padding: 9px 20px; font-size: 15px; color: #d8c8a9; }
  .faq__question span:last-child { border: 0; width: auto; height: auto; flex-basis: auto; font-size: 14px; }
  .faq__answer { margin-bottom: 14px; padding-top: 10px; font-size: 13px; }

  .responsible-links { max-width: 1040px; margin: 0 auto; gap: 24px; flex-wrap: nowrap; }
  .responsible-link { min-width: 0; min-height: 90px; padding: 12px; border: 0; background: #d9bd83 url('../img/art/review-frame.webp') center / 100% 100% no-repeat; }
  .responsible-link img { height: 34px; }
  .responsible-link strong { display: none; }

  .site-footer { border-top-color: #9a6e2c; background: #020b12 url('../img/art/footer-hall.webp') center top / cover no-repeat; box-shadow: inset 0 30px 55px rgba(0,0,0,.3); }
  .footer__brand-bar { padding: 31px 0 19px; }
  .footer__brand-bar .brand__text { font-size: 23px; }
  .footer__brand-bar .brand:has(.brand__logo) { width: 280px; }
  .footer__brand-bar .brand__logo { height: 74px; }
  .footer__brand-bar p { margin-top: 8px; font-family: var(--font-body); font-size: 13px; }
  .footer__links { padding: 23px 0; }
  .footer__bottom { padding: 14px 0 18px; text-align: center; }
}

/* ========================================================================== */
/* Mobile art direction — compact, image-rich and visually equal to desktop.  */
/* ========================================================================== */
@media (max-width: 760px) {
  :root {
    --mobile-gutter: 18px;
    --mobile-gold: #d8ae52;
    --mobile-paper: #efe0bd;
  }

  html { overflow-x: hidden; font-size: 16px; scroll-padding-top: 76px; -webkit-text-size-adjust: 100%; }
  body {
    min-width: 320px;
    overflow-x: hidden;
    color: #eadfc7;
    background: #04111c url('../img/art/midnight-stone-texture.webp') center top / 900px auto repeat-y;
  }
  .wrapper { overflow: clip; }
  .centered { width: calc(100% - (var(--mobile-gutter) * 2)); max-width: none; }
  h1 { font-size: clamp(32px, 10vw, 44px); line-height: 1.03; text-wrap: balance; }
  h2 { font-size: clamp(25px, 7.4vw, 33px); line-height: 1.08; text-wrap: balance; }
  h3 { font-size: 18px; }
  p { font-size: 15px; line-height: 1.55; }
  .eyebrow { justify-content: flex-start; font-size: 10px; letter-spacing: 1.5px; color: var(--mobile-gold); }
  .eyebrow::before, .eyebrow::after { width: 18px; }

  /* Header and navigation */
  .site-header { position: fixed; min-height: 76px; background: rgba(2,12,21,.96); border-bottom-color: rgba(184,137,50,.42); backdrop-filter: blur(12px); }
  .header__inner { min-height: 76px; padding-left: max(var(--mobile-gutter), env(safe-area-inset-left)); padding-right: max(var(--mobile-gutter), env(safe-area-inset-right)); gap: 12px; }
  .brand:has(.brand__logo) { width: 205px; max-width: calc(100vw - 92px); }
  .brand__logo { width: 100%; height: 66px; object-fit: contain; object-position: left center; }
  .burger { width: 44px; height: 44px; border-color: #8e672b; background: #0a1a29; }
  .nav { top: 76px; right: -110%; width: min(86vw, 340px); height: calc(100dvh - 76px); padding: 42px max(30px, env(safe-area-inset-right)) calc(42px + env(safe-area-inset-bottom)); gap: 26px; background: linear-gradient(rgba(3,17,29,.96),rgba(3,17,29,.98)), url('../img/art/footer-hall.webp') center / cover; border-left-color: #8e672b; box-shadow: -22px 0 50px rgba(0,0,0,.65); }
  .nav a { width: 100%; padding: 10px 0; border-bottom: 1px solid rgba(184,137,50,.28); font-family: var(--font-display); font-size: 17px; color: #e5d5b4; }

  .notice-strip { margin-top: 76px; background: #3a1719; border-top: 0; border-bottom: 1px solid #6b3430; }
  .notice-strip__inner { min-height: 62px; padding: 9px 0; align-items: center; gap: 10px; }
  .notice-strip__age { flex: 0 0 34px; display: grid; place-items: center; width: 34px; height: 34px; border: 1px solid #c38b61; border-radius: 50%; font-size: 13px; color: #e4b58b; }
  .notice-strip p { font-size: 11px; line-height: 1.4; color: #d0b8ae; }

  /* Hero scenes */
  .hero, .page-hero {
    min-height: 540px;
    padding: 72px 0 62px;
    display: flex;
    align-items: center;
    background:
      linear-gradient(180deg, rgba(3,11,18,.12), rgba(3,11,18,.28) 48%, rgba(3,14,23,.94)),
      url('../img/art/hero-bg.webp') 51% center / auto 100% no-repeat;
  }
  .hero__content, .page-hero__inner { width: 100%; max-width: none; text-align: center; }
  .hero__content .eyebrow, .page-hero__inner .eyebrow { justify-content: center; color: #e1c27d; }
  .hero__content .lead, .page-hero p { max-width: 34ch; font-size: 17px; line-height: 1.48; color: #eee2ca; text-shadow: 0 2px 8px #000; }
  .hero__actions { width: 100%; margin-top: 24px; gap: 10px; }
  .hero__actions .button { width: min(100%, 330px); min-height: 60px; }

  /* Buttons */
  .button { width: auto; min-height: 52px; padding: 0 25px; font-size: 12px; background-size: 100% 100%; }
  .button--primary { font-size: 13px; }

  /* Shared section rhythm */
  .section { padding: 52px 0; border-bottom: 1px solid rgba(184,137,50,.22); }
  .section::after { display: none; }
  .section--panel { background: rgba(3,15,26,.58); }
  .section__head { width: 100%; margin: 0 0 26px; text-align: left; }
  .section__head .eyebrow { justify-content: flex-start; }
  .section__head p { display: block; margin-top: 10px; font-size: 15px; color: #bfb49e; }

  /* Parchment age notice */
  .notice-band { min-height: 0; background: transparent; }
  .notice-band__inner { width: calc(100% - 20px); min-height: 178px; padding: 32px 30px; gap: 14px; background: url('../img/art/notice-parchment-Photoroom.webp') center / 100% 100% no-repeat; }
  .notice-band__icon { flex: 0 0 58px; width: 58px; height: 58px; }
  .notice-band__icon img { position: static; width: 100%; height: 100%; }
  .notice-band p { font-size: 12px; line-height: 1.4; color: #3f2b1d; }

  /* Rule cards: one readable horizontal card per row */
  .bento { display: grid; grid-template-columns: 1fr; gap: 12px; }
  .bento__tile, .bento__tile--wide, .bento__tile--magic {
    grid-column: 1;
    min-height: 148px;
    padding: 22px 20px;
    display: grid;
    grid-template-columns: 88px minmax(0,1fr);
    align-items: center;
    gap: 14px;
    border: 0;
    background: url('../img/art/rule-card-frame.webp') center / 100% 100% no-repeat;
  }
  .bento__tile__icon { width: 82px; height: 90px; flex-basis: auto; padding: 3px; object-fit: contain; }
  .bento__tile h3 { margin-bottom: 5px; color: #e2c67e; font-size: 17px; }
  .bento__tile p { margin: 0; font-size: 13px; line-height: 1.38; color: #c9bfaa; }

  /* Illustrated copy blocks */
  .section > .centered:has(> .spread) {
    width: 100%;
    max-width: none;
  }
  .spread, .spread--reverse {
    width: 100%;
    min-height: 0;
    margin-left: 0;
    padding: 27px 10px 34px;
    flex-direction: column;
    gap: 0;
    border: 0;
    background: #061725 url('../img/art/spread-panel-mobile.webp') center / 100% 100% no-repeat;
    box-shadow: 0 18px 36px rgba(0,0,0,.35);
  }
  .spread__figure, .spread__copy { width: calc(100% - 12px); flex: 0 0 auto; }
  .spread__figure { order: 1; }
  .spread__copy { order: 2; padding: 30px 18px 18px; }
  .spread__copy h2 { font-size: 27px; }
  .spread__copy p { font-size: 14px; color: #cfc3ab; }
  .plate__frame { width: 100%; height: clamp(245px, 72vw, 310px); aspect-ratio: auto; padding: 8px; border: 0; background: url('../img/art/rule-card-frame.webp') center / 100% 100% no-repeat; box-shadow: none; }
  .plate__frame img { padding: 0; object-fit: cover; }
  .plate figcaption { display: none; }
  .spread:has(.game-preview-frame) { padding-inline: 4px; }
  .spread:has(.game-preview-frame) .spread__figure { width: 100%; }
  .plate__frame:has(.game-preview-frame) { width: 100%; height: clamp(225px, 62vw, 270px); aspect-ratio: auto; padding: 5px; }

  /* Game symbols */
  .curio-grid { grid-template-columns: repeat(2, minmax(0,1fr)); gap: 10px; }
  .curio { aspect-ratio: 3/4; padding: 10% 9% 9%; grid-template-rows: minmax(0,1fr) 42px; background: url('../img/art/symbol-card-frame.webp') center / 100% 100% no-repeat; }
  .curio__frame { min-height: 0; padding: 2px; border: 0; background: none; }
  .curio__frame img { width: 100%; height: 100%; padding: 0; object-fit: contain; }
  .curio span { display: grid; place-items: center; padding: 20px 5px 0; margin: 0; color: #ddcba3; font-size: 12px; line-height: 1.12; text-align: center; }

  /* Benefits */
  .notes-list { grid-template-columns: 1fr; gap: 10px; }
  .notes-list__item { min-height: 104px; padding: 17px 16px; display: grid; grid-template-columns: 48px minmax(0,1fr); align-items: start; gap: 13px; border: 1px solid rgba(184,137,50,.25); background: rgba(5,24,38,.72); }
  .notes-list__item > img { width: 42px; height: 42px; object-fit: contain; }
  .notes-list__item h3 { margin: 0 0 4px; color: #dfca9c; font-size: 15px; }
  .notes-list__item p { margin: 0; font-size: 12.5px; line-height: 1.38; color: #bcb39f; }

  /* Review parchment cards */
  .section--parchment { padding: 48px 0; background: rgba(3,14,23,.38); }
  .section--parchment h2 { color: #e0bd68; }
  .tavern-notes { display: grid; grid-template-columns: 1fr; gap: 14px; }
  .tavern-note { width: 100%; min-height: 210px; aspect-ratio: auto; padding: 35px 34px 54px; color: #392718; background: url('../img/art/review-card-v2-Photoroom.webp') center / 100% 100% no-repeat; }
  .tavern-note p { color: #5a4733; font-size: 14px; }
  .tavern-note::after { bottom: 25px; }

  /* FAQ and support */
  .faq { width: 100%; padding: 30px 24px; border: 0; background: url('../img/art/faq-archive.webp') center / 100% 100% no-repeat; box-shadow: none; }
  .faq__question { min-height: 50px; padding: 10px 5px; gap: 10px; font-size: 13px; line-height: 1.3; }
  .faq__answer { padding: 10px 5px 2px; font-size: 12.5px; }
  .responsible-links { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 10px; }
  .responsible-link { width: 100%; min-height: 86px; padding: 12px 8px; border: 0; background: #d9bd83 url('../img/art/review-frame.webp') center / 100% 100% no-repeat; }
  .responsible-link img { width: 80%; height: 34px; }

  /* Internal page layouts */
  .contact-layout { gap: 24px; }
  .contact-copy, .contact-form { width: 100%; flex-basis: auto; }
  .contact-copy { padding: 28px 24px; border: 1px solid #886328; background: rgba(4,20,33,.8); }
  .contact-form { padding: 28px 22px; border-color: #886328; background: #0d2135; }
  .contact-form .button { width: 100%; }
  .contact-help-grid { grid-template-columns: 1fr; gap: 12px; }
  .contact-help-card { min-height: 0; padding: 25px 22px; }
  .contact-help-card h3 { min-height: 0; }
  .triptych { grid-template-columns: 1fr; border-top: 1px solid rgba(184,137,50,.25); }
  .triptych__col { padding: 24px 2px; border-right: 0; border-bottom: 1px solid rgba(184,137,50,.25); }
  .ledger__entry { gap: 16px; padding: 24px 0; }
  .ledger__num { flex-basis: 52px; width: 52px; font-size: 30px; }
  .ledger__body h3 { font-size: 16px; }
  .ledger__body p { font-size: 13px; }

  /* CTA blocks */
  .section--cta { padding: 42px 0; }
  .info-cta { min-height: 360px; padding: 44px 26px; align-items: flex-end; background-position: center; }
  .info-cta::before { content: ''; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(3,15,25,.28), rgba(3,15,25,.96) 78%); }
  .info-cta__copy { width: 100%; }
  .info-cta__copy h2 { font-size: 27px; }
  .info-cta__copy p { font-size: 14px; }
  .info-cta__copy .button { width: 100%; }

  /* Play page game */
  #peli.section { padding-top: 34px; }
  .game-panel { padding: 10px; }
  .game-panel::before, .game-panel::after { display: none; }
  .game-panel__topbar { gap: 8px; }
  .game-panel__notice { padding: 12px; font-size: 10px; line-height: 1.4; }
  .game-fullscreen-button { width: 100%; min-height: 50px; flex-basis: auto; font-size: 11px; }
  .game-frame { height: min(72svh, 610px); min-height: 480px; }

  /* Age gate and cookie */
  .age-gate { padding: 8px; }
  .age-gate__card { width: min(100%, 430px); min-height: 520px; padding: 96px 42px 32px; }
  .age-gate__age { width: 80px; height: 80px; }
  .age-gate__card h2 { font-size: 23px; }
  .age-gate__actions .button { width: 100%; min-height: 46px; }
  .cookie-banner { left: max(8px, env(safe-area-inset-left)); right: max(8px, env(safe-area-inset-right)); bottom: max(8px, env(safe-area-inset-bottom)); width: auto; min-height: 290px; padding: 43px 34px 32px; }
  .cookie-banner h3 { font-size: 17px; }
  .cookie-banner p { font-size: 10.5px; }
  .cookie-banner__actions { margin-top: 9px; }

  /* Footer: visual columns instead of one endless list */
  .site-footer { background: #020b12 url('../img/art/footer-hall.webp') center top / auto 100% no-repeat; }
  .footer__brand-bar { padding: 32px 0 22px; }
  .footer__brand-bar .brand:has(.brand__logo) { width: 220px; }
  .footer__brand-bar .brand__logo { height: 68px; }
  .footer__brand-bar p { font-size: 12px; }
  .footer__links { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 28px 20px; padding: 28px 0; }
  .footer__column { min-width: 0; }
  .footer__column h3 { margin-bottom: 12px; font-size: 11px; }
  .footer__column a { margin-bottom: 8px; font-size: 12px; }
  .footer__bottom { padding: 17px 0 24px; font-size: 10px; line-height: 1.5; text-align: center; }
}

@media (max-width: 370px) {
  :root { --mobile-gutter: 14px; }
  .brand:has(.brand__logo) { width: 185px; }
  .hero, .page-hero { min-height: 510px; }
  .bento__tile, .bento__tile--wide, .bento__tile--magic { grid-template-columns: 72px minmax(0,1fr); padding-inline: 16px; }
  .bento__tile__icon { width: 68px; height: 78px; }
  .curio span { font-size: 11px; }
  .responsible-links { grid-template-columns: 1fr; }
}
