/* Dunmorrow — a storyteller's hall of free tales
   Palette: basalt, panel, bone, moss, ember, gold-leaf. Fonts: Cormorant + Karla. */

:root {
  --basalt: #141311;
  --panel: #1f1c18;
  --panel-deep: #191714;
  --bone: #ece3cf;
  --bone-dim: #bfb49d;
  --moss: #6f8f5a;
  --ember: #c8642d;
  --gold: #b99a5b;
  --gold-soft: rgba(185, 154, 91, .38);
  --gold-faint: rgba(185, 154, 91, .16);
  --display: "Cormorant", "Cormorant Garamond", Georgia, "Times New Roman", serif;
  --body: "Karla", "Segoe UI", system-ui, sans-serif;
  --col: 42rem;
  --wide: 62rem;
  --braid-h: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='48' height='24' viewBox='0 0 48 24'%3E%3Cpath d='M0 .5H48M0 23.5H48' stroke='%23b99a5b' stroke-opacity='.5' stroke-width='1'/%3E%3Cpath d='M-1.5 18.38L0 18.5L1.5 18.38L3 18.01L4.5 17.4L6 16.6L7.5 15.61L9 14.49L10.5 13.27L12 12L13.5 10.73L15 9.51L16.5 8.39L18 7.4L19.5 6.6L21 5.99L22.5 5.62L24 5.5L25.5 5.62L27 5.99L28.5 6.6L30 7.4L31.5 8.39L33 9.51L34.5 10.73L36 12L37.5 13.27L39 14.49L40.5 15.61L42 16.6L43.5 17.4L45 18.01L46.5 18.38L48 18.5L49.5 18.38' fill='none' stroke='%23141311' stroke-width='5.6'/%3E%3Cpath d='M-1.5 18.38L0 18.5L1.5 18.38L3 18.01L4.5 17.4L6 16.6L7.5 15.61L9 14.49L10.5 13.27L12 12L13.5 10.73L15 9.51L16.5 8.39L18 7.4L19.5 6.6L21 5.99L22.5 5.62L24 5.5L25.5 5.62L27 5.99L28.5 6.6L30 7.4L31.5 8.39L33 9.51L34.5 10.73L36 12L37.5 13.27L39 14.49L40.5 15.61L42 16.6L43.5 17.4L45 18.01L46.5 18.38L48 18.5L49.5 18.38' fill='none' stroke='%23b99a5b' stroke-width='2.2'/%3E%3Cpath d='M-1.5 5.62L0 5.5L1.5 5.62L3 5.99L4.5 6.6L6 7.4L7.5 8.39L9 9.51L10.5 10.73L12 12L13.5 13.27L15 14.49L16.5 15.61L18 16.6L19.5 17.4L21 18.01L22.5 18.38L24 18.5L25.5 18.38L27 18.01L28.5 17.4L30 16.6L31.5 15.61L33 14.49L34.5 13.27L36 12L37.5 10.73L39 9.51L40.5 8.39L42 7.4L43.5 6.6L45 5.99L46.5 5.62L48 5.5L49.5 5.62' fill='none' stroke='%23141311' stroke-width='5.6'/%3E%3Cpath d='M-1.5 5.62L0 5.5L1.5 5.62L3 5.99L4.5 6.6L6 7.4L7.5 8.39L9 9.51L10.5 10.73L12 12L13.5 13.27L15 14.49L16.5 15.61L18 16.6L19.5 17.4L21 18.01L22.5 18.38L24 18.5L25.5 18.38L27 18.01L28.5 17.4L30 16.6L31.5 15.61L33 14.49L34.5 13.27L36 12L37.5 10.73L39 9.51L40.5 8.39L42 7.4L43.5 6.6L45 5.99L46.5 5.62L48 5.5L49.5 5.62' fill='none' stroke='%23b99a5b' stroke-width='2.2'/%3E%3Cpath d='M5 17.16L6.5 16.29L8 15.25L9.5 14.09L11 12.85L12.5 11.57L14 10.32L15.5 9.13L17 8.04L18.5 7.11' fill='none' stroke='%23141311' stroke-width='5.6'/%3E%3Cpath d='M5 17.16L6.5 16.29L8 15.25L9.5 14.09L11 12.85L12.5 11.57L14 10.32L15.5 9.13L17 8.04L18.5 7.11' fill='none' stroke='%23b99a5b' stroke-width='2.2'/%3E%3Cpath d='M29 17.16L30.5 16.29L32 15.25L33.5 14.09L35 12.85L36.5 11.57L38 10.32L39.5 9.13L41 8.04L42.5 7.11' fill='none' stroke='%23141311' stroke-width='5.6'/%3E%3Cpath d='M29 17.16L30.5 16.29L32 15.25L33.5 14.09L35 12.85L36.5 11.57L38 10.32L39.5 9.13L41 8.04L42.5 7.11' fill='none' stroke='%23b99a5b' stroke-width='2.2'/%3E%3C/svg%3E");
  --braid-v: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='48' viewBox='0 0 24 48'%3E%3Cpath d='M.5 0V48M23.5 0V48' stroke='%23b99a5b' stroke-opacity='.5' stroke-width='1'/%3E%3Cpath d='M18.38 -1.5L18.5 0L18.38 1.5L18.01 3L17.4 4.5L16.6 6L15.61 7.5L14.49 9L13.27 10.5L12 12L10.73 13.5L9.51 15L8.39 16.5L7.4 18L6.6 19.5L5.99 21L5.62 22.5L5.5 24L5.62 25.5L5.99 27L6.6 28.5L7.4 30L8.39 31.5L9.51 33L10.73 34.5L12 36L13.27 37.5L14.49 39L15.61 40.5L16.6 42L17.4 43.5L18.01 45L18.38 46.5L18.5 48L18.38 49.5' fill='none' stroke='%23141311' stroke-width='5.6'/%3E%3Cpath d='M18.38 -1.5L18.5 0L18.38 1.5L18.01 3L17.4 4.5L16.6 6L15.61 7.5L14.49 9L13.27 10.5L12 12L10.73 13.5L9.51 15L8.39 16.5L7.4 18L6.6 19.5L5.99 21L5.62 22.5L5.5 24L5.62 25.5L5.99 27L6.6 28.5L7.4 30L8.39 31.5L9.51 33L10.73 34.5L12 36L13.27 37.5L14.49 39L15.61 40.5L16.6 42L17.4 43.5L18.01 45L18.38 46.5L18.5 48L18.38 49.5' fill='none' stroke='%23b99a5b' stroke-width='2.2'/%3E%3Cpath d='M5.62 -1.5L5.5 0L5.62 1.5L5.99 3L6.6 4.5L7.4 6L8.39 7.5L9.51 9L10.73 10.5L12 12L13.27 13.5L14.49 15L15.61 16.5L16.6 18L17.4 19.5L18.01 21L18.38 22.5L18.5 24L18.38 25.5L18.01 27L17.4 28.5L16.6 30L15.61 31.5L14.49 33L13.27 34.5L12 36L10.73 37.5L9.51 39L8.39 40.5L7.4 42L6.6 43.5L5.99 45L5.62 46.5L5.5 48L5.62 49.5' fill='none' stroke='%23141311' stroke-width='5.6'/%3E%3Cpath d='M5.62 -1.5L5.5 0L5.62 1.5L5.99 3L6.6 4.5L7.4 6L8.39 7.5L9.51 9L10.73 10.5L12 12L13.27 13.5L14.49 15L15.61 16.5L16.6 18L17.4 19.5L18.01 21L18.38 22.5L18.5 24L18.38 25.5L18.01 27L17.4 28.5L16.6 30L15.61 31.5L14.49 33L13.27 34.5L12 36L10.73 37.5L9.51 39L8.39 40.5L7.4 42L6.6 43.5L5.99 45L5.62 46.5L5.5 48L5.62 49.5' fill='none' stroke='%23b99a5b' stroke-width='2.2'/%3E%3Cpath d='M17.16 5L16.29 6.5L15.25 8L14.09 9.5L12.85 11L11.57 12.5L10.32 14L9.13 15.5L8.04 17L7.11 18.5' fill='none' stroke='%23141311' stroke-width='5.6'/%3E%3Cpath d='M17.16 5L16.29 6.5L15.25 8L14.09 9.5L12.85 11L11.57 12.5L10.32 14L9.13 15.5L8.04 17L7.11 18.5' fill='none' stroke='%23b99a5b' stroke-width='2.2'/%3E%3Cpath d='M17.16 29L16.29 30.5L15.25 32L14.09 33.5L12.85 35L11.57 36.5L10.32 38L9.13 39.5L8.04 41L7.11 42.5' fill='none' stroke='%23141311' stroke-width='5.6'/%3E%3Cpath d='M17.16 29L16.29 30.5L15.25 32L14.09 33.5L12.85 35L11.57 36.5L10.32 38L9.13 39.5L8.04 41L7.11 42.5' fill='none' stroke='%23b99a5b' stroke-width='2.2'/%3E%3C/svg%3E");
  --medallion: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='-50 -50 100 100'%3E%3Ccircle r='23' fill='none' stroke='%23141311' stroke-width='8'/%3E%3Ccircle r='23' fill='none' stroke='%23b99a5b' stroke-width='4'/%3E%3Cpath d='M17.32 10A34.64 34.64 0 0 1 -34.64 -20A34.64 34.64 0 0 1 17.32 10ZM0 -20A34.64 34.64 0 0 1 0 40A34.64 34.64 0 0 1 0 -20ZM-17.32 10A34.64 34.64 0 0 1 34.64 -20A34.64 34.64 0 0 1 -17.32 10Z' fill='none' stroke='%23141311' stroke-width='8' stroke-linejoin='round'/%3E%3Cpath d='M17.32 10A34.64 34.64 0 0 1 -34.64 -20A34.64 34.64 0 0 1 17.32 10ZM0 -20A34.64 34.64 0 0 1 0 40A34.64 34.64 0 0 1 0 -20ZM-17.32 10A34.64 34.64 0 0 1 34.64 -20A34.64 34.64 0 0 1 -17.32 10Z' fill='none' stroke='%23b99a5b' stroke-width='4' stroke-linejoin='round'/%3E%3C/svg%3E");
}

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

body {
  margin: 0;
  min-width: 320px;
  overflow-x: hidden;
  color: var(--bone);
  background-color: var(--basalt);
  /* grain: three offset speckle layers plus a faint candle glow from above */
  background-image:
    radial-gradient(ellipse 80% 50% at 50% -8%, rgba(185, 154, 91, .09), transparent 70%),
    radial-gradient(rgba(236, 227, 207, .035) 1px, transparent 1.4px),
    radial-gradient(rgba(0, 0, 0, .32) 1px, transparent 1.4px),
    radial-gradient(rgba(236, 227, 207, .022) 1px, transparent 1.4px);
  background-size: 100% 1400px, 7px 7px, 11px 11px, 13px 13px;
  background-position: 0 0, 0 0, 3px 5px, 6px 2px;
  background-repeat: no-repeat, repeat, repeat, repeat;
  font: 400 1.0625rem/1.72 var(--body);
}
html.gate-lock, html.gate-lock body { overflow: hidden; }

img, svg, iframe { max-width: 100%; }
p { margin: 0 0 1.1em; }
a { color: var(--gold); text-decoration-thickness: 1px; text-underline-offset: .2em; }
a:hover { color: var(--bone); }
:focus-visible { outline: 3px solid var(--ember); outline-offset: 3px; }
strong { color: var(--bone); font-weight: 700; }

h1, h2, h3 { font-family: var(--display); font-weight: 600; line-height: 1.12; color: var(--bone); margin: 0 0 .5em; letter-spacing: .005em; }
h2 { font-size: clamp(1.9rem, 1.35rem + 2vw, 2.7rem); }
h3 { font-size: clamp(1.35rem, 1.15rem + .8vw, 1.65rem); }

.sc { display: block; font: 700 .72rem/1.3 var(--body); letter-spacing: .24em; text-transform: uppercase; color: var(--gold); }
.skip { position: absolute; left: -999px; top: 8px; z-index: 1200; background: var(--bone); color: var(--basalt); padding: .6rem 1rem; }
.skip:focus { left: 16px; }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5em;
  min-height: 46px; padding: .75em 1.35em;
  font: 700 .8rem/1.2 var(--body); letter-spacing: .14em; text-transform: uppercase; text-decoration: none;
  border: 1px solid var(--gold); border-radius: 2px; cursor: pointer;
  background: transparent; color: var(--bone);
  transition: background-color .2s, color .2s, border-color .2s;
}
.btn:hover { background: var(--gold-faint); color: var(--bone); }
.btn-ember { background: var(--ember); border-color: var(--ember); color: var(--basalt); }
.btn-ember:hover { background: #d9763f; border-color: #d9763f; color: var(--basalt); }
.btn-row { display: flex; flex-wrap: wrap; gap: .8rem; justify-content: center; }

/* ---------- masthead ---------- */
.masthead { position: relative; z-index: 50; border-bottom: 1px solid var(--gold-soft); background: rgba(20, 19, 17, .92); }
.mast-in { position: relative; max-width: 76rem; margin: 0 auto; padding: 14px 16px; display: flex; align-items: center; min-height: 76px; }
.crest { display: flex; align-items: center; gap: .65rem; color: var(--bone); text-decoration: none; }
.crest:hover { color: var(--bone); }
.crest-mark { width: 44px; height: 44px; flex: none; }
.crest-name { display: block; font: 600 1.7rem/1 var(--display); letter-spacing: .07em; }
.crest-tag { display: block; margin-top: .25rem; font: 700 .6rem/1 var(--body); letter-spacing: .26em; text-transform: uppercase; color: var(--gold); }

.menu-btn {
  margin-left: auto; display: inline-flex; align-items: center; gap: .55rem;
  min-height: 44px; padding: .5rem .9rem; background: transparent; color: var(--bone);
  border: 1px solid var(--gold-soft); border-radius: 2px; cursor: pointer;
  font: 700 .75rem/1 var(--body); letter-spacing: .2em; text-transform: uppercase;
}
.menu-btn .bars { display: inline-block; width: 18px; height: 2px; background: var(--gold); position: relative; }
.menu-btn .bars::before, .menu-btn .bars::after { content: ""; position: absolute; left: 0; width: 18px; height: 2px; background: var(--gold); }
.menu-btn .bars::before { top: -6px; }
.menu-btn .bars::after { top: 6px; }
.menu-btn[aria-expanded="true"] .bars { background: transparent; }
.menu-btn[aria-expanded="true"] .bars::before { top: 0; transform: rotate(45deg); }
.menu-btn[aria-expanded="true"] .bars::after { top: 0; transform: rotate(-45deg); }

.hall-nav ul { list-style: none; margin: 0; padding: 0; }
.hall-nav a { display: flex; flex-direction: column; text-decoration: none; color: var(--bone); }
.nl-main { font: 600 1.25rem/1.1 var(--display); letter-spacing: .02em; }
.nl-gloss { margin-top: .2rem; font: 700 .6rem/1 var(--body); letter-spacing: .22em; text-transform: uppercase; color: var(--bone-dim); }
.hall-nav a:hover .nl-main, .hall-nav a[aria-current="page"] .nl-main { color: var(--gold); }
.hall-nav a[aria-current="page"] .nl-gloss { color: var(--gold); }

@media (max-width: 899.98px) {
  .hall-nav { position: absolute; left: 0; right: 0; top: 100%; background: var(--panel); border-bottom: 1px solid var(--gold-soft); padding: .5rem 16px 1rem; }
  .js .hall-nav { display: none; }
  .js .hall-nav.is-open { display: block; }
  .no-js .hall-nav { position: static; width: 100%; }
  .no-js .mast-in { flex-wrap: wrap; }
  .no-js .menu-btn { display: none; }
  .hall-nav li a { padding: .75rem 0; border-bottom: 1px solid var(--gold-faint); }
  .nav-east li:last-child a { border-bottom: 0; }
}
@media (min-width: 900px) {
  .mast-in { min-height: 112px; }
  .menu-btn { display: none; }
  .mast-in .crest { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); flex-direction: column; gap: .35rem; text-align: center; }
  .mast-in .crest-mark { width: 40px; height: 40px; }
  .hall-nav { width: 100%; display: grid; grid-template-columns: 1fr 17rem 1fr; align-items: center; }
  .hall-nav ul { display: flex; gap: clamp(1.1rem, 2.4vw, 2.2rem); }
  .nav-west { grid-column: 1; justify-content: flex-end; }
  .nav-east { grid-column: 3; justify-content: flex-start; }
  .nav-west a { align-items: flex-end; text-align: right; }
  .hall-nav a { padding: .3rem 0; }
}

/* ---------- oath ribbon (free-play reminder on every page) ---------- */
.oath { background: var(--panel); border-bottom: 1px solid var(--gold-soft); padding: .5rem 16px; }
.oath ul { list-style: none; margin: 0 auto; padding: 0; max-width: 70rem; display: flex; flex-wrap: wrap; justify-content: center; gap: .2rem .9rem; font: 700 .68rem/1.5 var(--body); letter-spacing: .16em; text-transform: uppercase; color: var(--bone-dim); }
.oath li { display: inline-flex; align-items: center; gap: .9rem; }
.oath li + li::before { content: ""; width: 5px; height: 5px; background: var(--gold); transform: rotate(45deg); }
.oath li:first-child { color: var(--ember); }

/* ---------- layout columns ---------- */
.folio { width: min(100% - 32px, var(--col)); margin-inline: auto; }
.wide { width: min(100% - 32px, var(--wide)); margin-inline: auto; }
main { display: block; padding-bottom: 1rem; }

/* ---------- title page (home hero) ---------- */
.title-page {
  position: relative;
  width: min(100% - 32px, 64rem);
  margin: 2.6rem auto 0;
  padding: clamp(3rem, 7vw, 4.6rem) clamp(2.4rem, 6vw, 4.5rem) clamp(2.4rem, 5vw, 3.4rem);
  text-align: center;
  background-color: var(--panel);
  background-image: var(--braid-h), var(--braid-h), var(--braid-v), var(--braid-v);
  background-size: 48px 24px, 48px 24px, 24px 48px, 24px 48px;
  background-position: left top, left bottom, left top, right top;
  background-repeat: repeat-x, repeat-x, repeat-y, repeat-y;
  box-shadow: 0 30px 80px rgba(0, 0, 0, .45);
}
.title-page::before { content: ""; position: absolute; inset: 34px; border: 1px solid var(--gold-faint); pointer-events: none; }
.tp-corner { position: absolute; width: 58px; height: 58px; }
.tp-tl { left: -17px; top: -17px; }
.tp-tr { right: -17px; top: -17px; }
.tp-bl { left: -17px; bottom: -17px; }
.tp-br { right: -17px; bottom: -17px; }
.title-page h1 { margin: 0; }
.tp-kicker { display: block; font: 700 .74rem/1.4 var(--body); letter-spacing: .3em; text-transform: uppercase; color: var(--gold); }
.tp-name {
  display: block; margin: .15em 0 .05em;
  font: 600 clamp(2.4rem, .6rem + 9vw, 6.4rem)/.95 var(--display); letter-spacing: .05em;
  color: var(--gold);
  background: linear-gradient(180deg, #e6d3a3 0%, #b99a5b 55%, #8c7140 100%);
  -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent;
}
.tp-sub { display: block; font: italic 500 clamp(1.3rem, 1.05rem + 1vw, 1.75rem)/1.3 var(--display); color: var(--bone-dim); }
.hillfort { display: block; width: 100%; max-width: 720px; height: auto; margin: 1.6rem auto 1.4rem; -webkit-mask-image: linear-gradient(90deg, transparent, #000 14%, #000 86%, transparent); mask-image: linear-gradient(90deg, transparent, #000 14%, #000 86%, transparent); }
.tp-lede { max-width: 36rem; margin: 0 auto 1.6rem; font-size: 1.08rem; }
.tp-fine { margin: 1.6rem auto 0; max-width: 34rem; font: 700 .7rem/1.6 var(--body); letter-spacing: .16em; text-transform: uppercase; color: var(--bone-dim); }
@media (prefers-reduced-motion: no-preference) {
  .hf-smoke { animation: drift 7s ease-in-out infinite alternate; transform-origin: 402px 100px; }
  .hf-halo { animation: glow 6s ease-in-out infinite alternate; }
  @keyframes drift { from { transform: translateX(-3px); opacity: .7; } to { transform: translateX(4px); opacity: 1; } }
  @keyframes glow { from { opacity: .7; } to { opacity: 1; } }
}
@media (max-width: 520px) {
  .title-page::before { inset: 28px; }
  .tp-kicker { letter-spacing: .18em; }
  .title-page .btn-row .btn { width: 100%; }
  .tp-corner { width: 44px; height: 44px; }
  .tp-tl, .tp-tr { top: -12px; } .tp-bl, .tp-br { bottom: -12px; }
  .tp-tl, .tp-bl { left: -12px; } .tp-tr, .tp-br { right: -12px; }
}

/* ---------- chapter marks, drop caps, rules ---------- */
.chapter { text-align: center; margin: 4.6rem auto 1.6rem; }
.chapter .sc { margin-bottom: .4rem; }
.ch-num { display: flex; align-items: center; justify-content: center; gap: 1rem; font: 600 2.6rem/1 var(--display); color: var(--gold); }
.ch-num::before, .ch-num::after { content: ""; flex: 0 1 5.5rem; height: 1px; background: linear-gradient(90deg, transparent, var(--gold)); }
.ch-num::after { background: linear-gradient(90deg, var(--gold), transparent); }
.chapter h2 { margin-top: .7rem; }
.chapter .theme { font: italic 500 1.3rem/1.35 var(--display); color: var(--bone-dim); margin: 0; }

.dropcap::first-letter {
  float: left;
  font: 600 4.3em/.82 var(--display);
  color: var(--gold);
  background: var(--panel);
  border: 1px solid var(--gold-soft);
  padding: .1em .14em .04em;
  margin: .08em .16em 0 0;
}

.rule { position: relative; height: 44px; width: min(100% - 32px, var(--col)); margin: 3.6rem auto; }
.rule::before {
  content: ""; position: absolute; left: 0; right: 0; top: 10px; height: 24px;
  background: var(--braid-h) center / 48px 24px repeat-x;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 18%, #000 82%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 18%, #000 82%, transparent);
}
.rule::after { content: ""; position: absolute; left: 50%; top: 0; width: 44px; height: 44px; transform: translateX(-50%); border-radius: 50%; background: var(--basalt) var(--medallion) center / 38px no-repeat; }

.pull {
  margin: 2.4rem 0; padding: 1.4rem .5rem; text-align: center;
  font: italic 500 clamp(1.5rem, 1.15rem + 1.5vw, 2.1rem)/1.3 var(--display); color: var(--gold);
  border-block: 1px solid var(--gold-soft);
}
.pull p { margin: 0; }

/* ---------- tales (chapters with emblems) ---------- */
.tale { display: grid; grid-template-columns: minmax(0, 15rem) minmax(0, 1fr); gap: clamp(1.6rem, 4vw, 3.6rem); align-items: center; }
.tale.flip { grid-template-columns: minmax(0, 1fr) minmax(0, 15rem); }
.tale.flip .emblem { order: 2; }
.tale-text h2 { margin-bottom: .2rem; }
.tale-text .theme { font: italic 500 1.3rem/1.35 var(--display); color: var(--bone-dim); margin-bottom: 1rem; }
.tale-head { text-align: left; margin: 0; }
.tale-head .ch-num { justify-content: flex-start; font-size: 2.2rem; }
.tale-head .ch-num::before { display: none; }
.tale.flip .tale-head { text-align: right; }
.tale.flip .tale-head .ch-num { justify-content: flex-end; }
.tale.flip .tale-head .ch-num::before { display: block; }
.tale.flip .tale-head .ch-num::after { display: none; }
.tale.flip .tale-text { text-align: right; }

.emblem {
  margin: 0; padding: 14px; background: var(--panel);
  border: 1px solid var(--gold-soft); outline: 1px solid var(--gold-faint); outline-offset: 6px;
}
.emblem-svg { display: block; width: 100%; height: auto; }

@media (max-width: 759.98px) {
  .tale, .tale.flip { grid-template-columns: minmax(0, 1fr); }
  .tale .emblem, .tale.flip .emblem { order: 0; width: min(100%, 12rem); margin: 0 auto; }
  .tale-head, .tale.flip .tale-head, .tale.flip .tale-text, .tale-text { text-align: center; }
  .tale-head .ch-num, .tale.flip .tale-head .ch-num { justify-content: center; }
  .tale-head .ch-num::before, .tale-head .ch-num::after { display: block !important; }
}

/* ---------- gilded game frame ---------- */
.gilt {
  width: min(100% - 32px, 60rem); margin: 2.2rem auto 0; padding: 10px;
  background: linear-gradient(135deg, #7d6436 0%, #d8bf86 20%, #8f733f 42%, #cdb173 66%, #75603a 100%);
  border-radius: 2px; box-shadow: 0 22px 60px rgba(0, 0, 0, .55);
}
.gilt-inner { position: relative; aspect-ratio: 16 / 9; background: #0b0a09; border: 3px solid #0b0a09; outline: 1px solid rgba(255, 240, 200, .4); }
.gilt-inner iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; display: block; }
.gilt figcaption { padding: .7rem .5rem .2rem; text-align: center; font: 700 .68rem/1.5 var(--body); letter-spacing: .16em; text-transform: uppercase; color: var(--basalt); }
@media (max-width: 700px) { .gilt-inner { aspect-ratio: 3 / 4; } .gilt { padding: 7px; } }

.center { text-align: center; }
.back-link { margin-top: 1.4rem; }
.email-line { margin: .6rem 0 0; }

/* ---------- illuminated list ---------- */
.illum { list-style: none; counter-reset: rule; margin: 1.5rem 0 0; padding: 0; }
.illum li { counter-increment: rule; display: grid; grid-template-columns: 3.4rem minmax(0, 1fr); gap: 1.1rem; padding: 1.15rem 0; border-bottom: 1px solid var(--gold-faint); }
.illum li::before {
  content: counter(rule, upper-roman);
  display: grid; place-items: center; width: 3.2rem; height: 3.2rem;
  font: 600 1.35rem/1 var(--display); color: var(--basalt);
  background: radial-gradient(circle at 35% 30%, #e0c88f, var(--gold) 60%, #8c7140);
  border: 3px double var(--basalt); outline: 1px solid var(--gold); outline-offset: 2px;
}
.illum b { display: block; font: 600 1.3rem/1.25 var(--display); color: var(--bone); margin-bottom: .2rem; }
.illum p { margin: 0; color: var(--bone-dim); }

/* ---------- hearth (FAQ) ---------- */
.hearth { margin-top: 1rem; border-top: 1px solid var(--gold-soft); }
.hearth details { border-bottom: 1px solid var(--gold-soft); }
.hearth summary {
  list-style: none; cursor: pointer; position: relative;
  padding: 1.05rem 2.6rem 1.05rem 0;
  font: 600 1.3rem/1.3 var(--display); color: var(--bone);
}
.hearth summary::-webkit-details-marker { display: none; }
.hearth summary::after {
  content: ""; position: absolute; right: .4rem; top: 50%; width: 12px; height: 12px; margin-top: -8px;
  border-right: 2px solid var(--gold); border-bottom: 2px solid var(--gold); transform: rotate(45deg);
  transition: transform .2s;
}
.hearth details[open] summary::after { transform: rotate(-135deg); margin-top: -2px; }
.hearth summary:hover { color: var(--gold); }
.hearth .answer { padding: 0 0 1.1rem; color: var(--bone-dim); }
.hearth .answer p:last-child { margin-bottom: 0; }

/* ---------- page heads, crumbs ---------- */
.page-head { text-align: center; padding: 2.6rem 16px .6rem; }
.page-head h1 { font-size: clamp(2.5rem, 1.6rem + 3.8vw, 4.3rem); margin: .4rem 0 .4rem; }
.standfirst { max-width: 38rem; margin: 0 auto; font: italic 500 clamp(1.25rem, 1.1rem + .6vw, 1.5rem)/1.4 var(--display); color: var(--bone-dim); }
.head-emblem { width: 7.5rem; margin: 1rem auto .4rem; }
.crumbs { width: min(100% - 32px, var(--wide)); margin: 1.4rem auto 0; }
.crumbs ol { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: .3rem .55rem; font: 700 .7rem/1.5 var(--body); letter-spacing: .16em; text-transform: uppercase; color: var(--bone-dim); }
.crumbs li + li::before { content: "\203A"; margin-right: .55rem; color: var(--gold); }
.crumbs a { text-decoration: none; }

/* ---------- prose ---------- */
.prose h2 { margin-top: 2.4rem; }
.prose h3 { margin-top: 1.8rem; }
.prose ul, .prose ol { padding-left: 1.3rem; margin: 0 0 1.2em; }
.prose li { margin-bottom: .45em; }
.prose ul li::marker { color: var(--gold); }
.prose .numbered h2 .n { display: inline-block; min-width: 2.2em; color: var(--gold); font-style: italic; }
.legal-date { text-align: center; font: 700 .72rem/1.4 var(--body); letter-spacing: .2em; text-transform: uppercase; color: var(--gold); margin-top: .8rem; }
.table-wrap { overflow-x: auto; margin: 0 0 1.4rem; border: 1px solid var(--gold-soft); }
table { border-collapse: collapse; width: 100%; min-width: 30rem; font-size: .95rem; }
th, td { text-align: left; vertical-align: top; padding: .7rem .8rem; border-bottom: 1px solid var(--gold-faint); }
th { font: 700 .7rem/1.4 var(--body); letter-spacing: .14em; text-transform: uppercase; color: var(--gold); background: var(--panel); }
code { font-family: Consolas, "Courier New", monospace; font-size: .9em; color: var(--bone); background: var(--panel); padding: .05em .35em; }

.seal { display: flex; gap: 1rem; align-items: flex-start; margin: 2.2rem 0; padding: 1.1rem 1.2rem; border: 1px solid var(--moss); background: rgba(111, 143, 90, .09); }
.seal p { margin: 0; }
.age-badge { flex: none; display: inline-grid; place-items: center; width: 2.7rem; height: 2.7rem; border-radius: 50%; border: 2px solid var(--ember); color: var(--ember); font: 700 .85rem/1 var(--body); letter-spacing: .02em; }

.panel { background: var(--panel); border: 1px solid var(--gold-soft); padding: clamp(1.2rem, 3vw, 1.8rem); margin: 1.8rem 0; }
.panel > :last-child { margin-bottom: 0; }

/* ---------- cards ---------- */
.card-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 17rem), 1fr)); gap: 1.6rem; margin-top: 2rem; }
.tale-card { position: relative; display: flex; flex-direction: column; padding: 1.7rem 1.5rem 1.5rem; background: var(--panel); border: 1px solid var(--gold-soft); }
.tale-card::before { content: ""; position: absolute; inset: 6px; border: 1px solid var(--gold-faint); pointer-events: none; }
.tale-card .ch-num { font-size: 1.7rem; }
.tale-card .emblem-svg { width: 9rem; margin: 1rem auto; }
.tale-card h2, .tale-card h3 { text-align: center; font-size: 1.75rem; margin-bottom: .2rem; }
.tale-card .theme { text-align: center; font: italic 500 1.15rem/1.35 var(--display); color: var(--bone-dim); }
.tale-card p { color: var(--bone-dim); }
.tale-card .btn { margin-top: auto; position: relative; }
.mini-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 15rem), 1fr)); gap: 1.2rem; margin-top: 1rem; }
.mini { display: flex; gap: 1rem; align-items: center; padding: 1rem; background: var(--panel); border: 1px solid var(--gold-soft); text-decoration: none; color: var(--bone); }
.mini:hover { border-color: var(--gold); color: var(--bone); }
.mini .emblem-svg { width: 4.5rem; flex: none; }
.mini b { display: block; font: 600 1.25rem/1.2 var(--display); }
.mini span { display: block; font-size: .9rem; color: var(--bone-dim); }

/* ---------- help wells (play safely) ---------- */
.wells { list-style: none; padding: 0 !important; display: grid; gap: 1rem; }
.wells li { margin: 0; padding: 1.1rem 1.2rem; background: var(--panel); border-left: 3px solid var(--moss); }
.wells b { display: block; font: 600 1.3rem/1.2 var(--display); }
.wells p { margin: .3rem 0 .4rem; color: var(--bone-dim); }
.selfcheck { counter-reset: q; list-style: none; padding: 0 !important; }
.selfcheck li { counter-increment: q; position: relative; padding: .55rem 0 .55rem 2.6rem; border-bottom: 1px dashed var(--gold-faint); margin: 0; }
.selfcheck li::before { content: counter(q, lower-roman) "."; position: absolute; left: 0; top: .5rem; font: italic 600 1.2rem/1.4 var(--display); color: var(--gold); }

/* ---------- contact ---------- */
.email-big { display: inline-block; font: 600 clamp(1.4rem, 1.1rem + 1.4vw, 2rem)/1.2 var(--display); overflow-wrap: anywhere; }
.form { display: grid; gap: 1.1rem; margin-top: 1rem; position: relative; }
.form label { display: block; font: 700 .72rem/1.4 var(--body); letter-spacing: .16em; text-transform: uppercase; color: var(--gold); margin-bottom: .35rem; }
.form input, .form textarea {
  width: 100%; padding: .8rem .9rem; font: 400 1rem/1.5 var(--body); color: var(--bone);
  background: var(--panel-deep); border: 1px solid var(--gold-soft); border-radius: 2px;
}
.form input:focus, .form textarea:focus { border-color: var(--gold); outline: 2px solid var(--ember); outline-offset: 1px; }
.form textarea { min-height: 10rem; resize: vertical; }
.form .hp { position: absolute; left: -10000px; top: auto; width: 1px; height: 1px; overflow: hidden; }
.form-note { font-size: .92rem; color: var(--bone-dim); }
.form-status { min-height: 1.5em; font-weight: 700; color: var(--moss); }
.form-status.err { color: var(--ember); }

/* ---------- epilogue strip ---------- */
.epilogue { text-align: center; }
.epilogue .panel { padding: clamp(1.6rem, 4vw, 2.6rem); }

/* ---------- colophon (footer) ---------- */
.colophon { margin-top: 5rem; background: var(--panel); border-top: 1px solid var(--gold-soft); padding: 0 16px 2rem; }
.colophon .rule { margin: -22px auto 1.8rem; }
.colophon .rule::after { background-color: var(--panel); }
.colo-in { max-width: 70rem; margin: 0 auto; }
.colo-grid { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); gap: 2rem; }
@media (max-width: 759.98px) { .colo-grid { grid-template-columns: minmax(0, 1fr); } }
.colo-brand .crest { margin-bottom: .9rem; }
.colo-brand p { color: var(--bone-dim); font-size: .95rem; }
.colo-links ul { list-style: none; margin: 0; padding: 0; columns: 2; column-gap: 1.5rem; }
.colo-links li { margin-bottom: .55rem; break-inside: avoid; }
.colo-links a, .linkish { color: var(--bone); text-decoration: none; font-size: .95rem; }
.colo-links a:hover, .linkish:hover { color: var(--gold); text-decoration: underline; }
.linkish { background: none; border: 0; padding: 0; cursor: pointer; font-family: var(--body); text-align: left; }
.help-row { display: flex; flex-wrap: wrap; gap: 1rem 1.4rem; align-items: center; margin: 2rem 0 1.4rem; padding: 1.1rem 1.2rem; border: 1px solid var(--gold-soft); background: var(--panel-deep); }
.help-row p { margin: 0; font-weight: 700; font-size: .92rem; }
.help-row ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: .5rem 1.3rem; font-size: .92rem; }
.credit, .fine { font-size: .85rem; color: var(--bone-dim); margin: 0 0 .7rem; }
.fine strong { color: var(--bone); }

/* ---------- age gate ---------- */
.gate { position: fixed; inset: 0; z-index: 1000; display: grid; place-items: center; padding: 16px; overflow-y: auto; background: rgba(12, 11, 10, .95); }
.gate[hidden], html.age-ok .gate { display: none; }
.gate-card { width: 100%; max-width: 31rem; padding: 2.2rem clamp(1.1rem, 5vw, 2.2rem) 2rem; text-align: center; background: var(--panel); border: 1px solid var(--gold); outline: 1px solid var(--gold-soft); outline-offset: 6px; }
.gate-card .crest-mark { width: 56px; height: 56px; margin: 0 auto .8rem; display: block; }
.gate-card h2 { font-size: clamp(1.9rem, 1.5rem + 2vw, 2.5rem); }
.gate-card p { color: var(--bone-dim); }
.gate-card .btn-row { margin-top: 1.4rem; }

/* ---------- consent banner ---------- */
.consent { position: fixed; left: 0; right: 0; bottom: 0; z-index: 900; padding: 14px 16px; background: rgba(31, 28, 24, .98); border-top: 1px solid var(--gold); box-shadow: 0 -10px 40px rgba(0, 0, 0, .5); }
.consent[hidden] { display: none; }
.consent-in { max-width: 70rem; margin: 0 auto; display: flex; flex-wrap: wrap; gap: .9rem 1.6rem; align-items: center; justify-content: space-between; }
.consent-in p { margin: 0; flex: 1 1 26rem; font-size: .93rem; }
.consent-actions { display: flex; flex-wrap: wrap; gap: .7rem; }
.consent-actions .btn { flex: 1 1 auto; min-width: 11rem; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
}

@media (max-width: 600px) {
  .table-wrap { border: 0; overflow: visible; }
  .table-wrap table { min-width: 0; }
  .table-wrap thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
  .table-wrap table, .table-wrap tbody, .table-wrap tr, .table-wrap td { display: block; width: 100%; }
  .table-wrap tr { border: 1px solid var(--gold-soft); background: var(--panel-deep); margin-bottom: .8rem; padding: .3rem 0; }
  .table-wrap td { border: 0; padding: .35rem .9rem; }
  .table-wrap td::before { content: attr(data-label); display: block; font: 700 .64rem/1.4 var(--body); letter-spacing: .16em; text-transform: uppercase; color: var(--gold); }
}
