/* Gilded Towers Studios — "Midnight Court".
   Dark plum night, champagne gold, rose pink; the paintings carry the colour.
   One deliberate dark theme, so every colour is set explicitly. */
:root {
  --night: #140912;
  --wine: #200d1b;
  --wine-2: #2c1226;
  --ivory: #f8eee9;
  --soft: #e6d6dd;
  --muted: #cdb6c2;
  --rose: #f08cb2;
  --gold: #e4c27e;
  --line: rgba(228, 194, 126, 0.32);
  --line-soft: rgba(248, 238, 233, 0.14);
  --display: "Cormorant Garamond", Georgia, serif;
  --label: "Cinzel", Georgia, serif;
  --body: "Lora", Georgia, serif;
}

* { box-sizing: border-box; }
html { background: var(--night); scroll-behavior: smooth; }
body { margin: 0; min-height: 100vh; display: flex; flex-direction: column; background: var(--night); color: var(--ivory); font: 17px/1.7 var(--body); -webkit-font-smoothing: antialiased; overflow-x: hidden; }
main { flex: 1; }
/* full painted backdrop behind the whole page; it stays fixed while the content scrolls over it */
.backdrop { position: fixed; inset: 0; z-index: 0; pointer-events: none; background: var(--bg) center / cover no-repeat; }
.backdrop::after { content: ""; position: absolute; inset: 0; background: radial-gradient(120% 90% at 50% 45%, rgba(20, 9, 18, 0.42), rgba(20, 9, 18, 0.78) 80%); }
.site-header, main, .site-footer { position: relative; z-index: 1; }
img { display: block; max-width: 100%; height: auto; }
a { color: var(--rose); text-underline-offset: 3px; }
a:hover { color: var(--gold); }
:focus-visible { outline: 1px solid var(--gold); outline-offset: 4px; }
.wrap { width: min(1180px, 100% - 40px); margin-inline: auto; }
.narrow { width: min(760px, 100% - 40px); margin-inline: auto; }
.wrap .narrow { width: min(760px, 100%); }
p { margin: 0; }
p + p { margin-top: 12px; }

/* ---------- type ---------- */
h1, h2, h3 { font-family: var(--display); font-weight: 600; margin: 0; text-wrap: balance; color: var(--ivory); }
h1 { font-size: clamp(48px, 6.4vw, 92px); line-height: 0.98; letter-spacing: -0.01em; }
h2 { font-size: clamp(38px, 4.8vw, 62px); line-height: 1.04; }
h3 { font-size: 28px; line-height: 1.15; }
h1 em, h2 em, h3 em { color: var(--rose); font-style: italic; }
.label { display: flex; align-items: center; gap: 14px; margin: 0 0 18px; font: 600 12.5px/1.3 var(--label); letter-spacing: 0.28em; text-transform: uppercase; color: var(--gold); }
.label::before { content: ""; flex: 0 0 38px; height: 1px; background: var(--gold); }
.center { text-align: center; }
.center .label { justify-content: center; }
.center .label::after { content: ""; flex: 0 0 38px; height: 1px; background: var(--gold); }
.lede { font-size: 19px; color: var(--soft); max-width: 46ch; margin-top: 22px; text-wrap: pretty; }
.center .lede { margin-inline: auto; }
.muted { color: var(--muted); }
.note { font-size: 15.5px; color: var(--muted); }

/* ---------- buttons ---------- */
.btns { display: flex; flex-wrap: wrap; align-items: center; gap: 14px; margin-top: 34px; }
.center .btns { justify-content: center; }
.btn { display: inline-flex; align-items: center; justify-content: center; max-width: 100%; text-align: center; overflow-wrap: anywhere; text-decoration: none; font: 600 13px/1.3 var(--label); letter-spacing: 0.16em; text-transform: uppercase; padding: 17px 28px; border-radius: 2px; transition: transform 0.25s, color 0.25s, border-color 0.25s; }
.btn.gold { color: #2a1020; background: linear-gradient(180deg, #f2d9a0, #d0a256); box-shadow: 0 10px 30px rgba(228, 194, 126, 0.22); }
.btn.gold:hover { color: #2a1020; transform: translateY(-2px); }
.btn.line { color: var(--ivory); border: 1px solid rgba(248, 238, 233, 0.45); }
.btn.line:hover { color: var(--gold); border-color: var(--gold); }
.more { display: inline-block; font: 600 12.5px/1.4 var(--label); letter-spacing: 0.18em; text-transform: uppercase; color: var(--gold); text-decoration: none; border-bottom: 1px solid var(--line); padding-bottom: 6px; }
.more:hover { color: var(--ivory); }

/* ---------- header ---------- */
.site-header { position: absolute; inset: 0 0 auto 0; z-index: 30; }
.site-header .wrap { display: flex; align-items: center; gap: 20px; padding: 20px 0; border-bottom: 1px solid var(--line-soft); }
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; color: var(--ivory); flex-shrink: 0; }
.brand:hover { color: var(--ivory); }
.brand img { height: 46px; width: auto; filter: drop-shadow(0 2px 8px rgba(0, 0, 0, 0.45)); }
.brand span { font: 600 13px/1.3 var(--label); letter-spacing: 0.22em; text-transform: uppercase; }
.site-nav { margin-left: auto; display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 6px 24px; }
.site-nav a { font: 600 12.5px/1 var(--label); letter-spacing: 0.16em; text-transform: uppercase; text-decoration: none; color: var(--muted); padding: 8px 0; border-bottom: 1px solid transparent; }
.site-nav a:hover, .site-nav a[aria-current="page"] { color: var(--ivory); border-color: var(--gold); }
.menu-toggle { display: none; margin-left: auto; font: 600 12.5px/1 var(--label); letter-spacing: 0.2em; text-transform: uppercase; color: var(--ivory); background: rgba(20, 9, 18, 0.5); border: 1px solid rgba(248, 238, 233, 0.4); padding: 12px 16px; cursor: pointer; }

/* ---------- heroes ---------- */
.hero { position: relative; isolation: isolate; overflow: hidden; display: flex; align-items: center; }
.hero .art { position: absolute; inset: 0; z-index: -2; background: var(--art) var(--pos, 60% 30%) / cover no-repeat; }
.hero::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(90deg, rgba(20, 9, 18, 0.9) 0%, rgba(20, 9, 18, 0.58) 36%, rgba(20, 9, 18, 0.05) 66%), linear-gradient(180deg, rgba(20, 9, 18, 0.55) 0%, transparent 22%, transparent 70%, rgba(20, 9, 18, 0.82) 100%); }
.hero .art, .hero::after { -webkit-mask-image: linear-gradient(180deg, #000 0, #000 68%, transparent 100%); mask-image: linear-gradient(180deg, #000 0, #000 68%, transparent 100%); }
.hero > .wrap { position: relative; z-index: 1; }
.petals { position: absolute; inset: 0; width: 100%; height: 100%; z-index: 0; pointer-events: none; }
.hero.home { min-height: max(660px, min(100vh, 940px)); }
.hero.home > .wrap { padding: 130px 0 90px; }
.hero.home h1 { max-width: 11.5ch; font-size: clamp(54px, 7.4vw, 104px); line-height: 0.95; }
.hero.home .lede { max-width: 40ch; }
.hero.page { min-height: clamp(460px, 64vh, 640px); }
.hero.page > .wrap { padding: 150px 0 70px; }
.hero.page h1 { max-width: 14ch; }
.hero.short { min-height: clamp(360px, 46vh, 460px); }
.hero.short > .wrap { padding: 140px 0 50px; }
.meta { display: flex; flex-wrap: wrap; gap: 8px 26px; margin-top: 22px; font: 600 12px/1.4 var(--label); letter-spacing: 0.2em; text-transform: uppercase; color: var(--muted); }
.meta b { color: var(--gold); font-weight: 600; }

.strip { position: relative; margin-top: -1px; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); background: rgba(32, 13, 27, 0.6); backdrop-filter: blur(6px); }
.strip .wrap { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px 40px; padding: 16px 0; font: 600 12px/1.4 var(--label); letter-spacing: 0.2em; text-transform: uppercase; color: var(--muted); text-align: center; }
.strip b { color: var(--gold); font-weight: 600; }

/* ---------- sections ---------- */
section.block { position: relative; padding: clamp(64px, 8vw, 108px) 0; overflow-x: clip; }
.tone { background: linear-gradient(180deg, rgba(32, 13, 27, 0), rgba(32, 13, 27, 0.72) 160px, rgba(32, 13, 27, 0.72) calc(100% - 160px), rgba(32, 13, 27, 0)); }
.glow { background: radial-gradient(60% 70% at 78% 50%, rgba(240, 140, 178, 0.13), transparent 70%); }
.head { display: flex; justify-content: space-between; align-items: end; gap: 24px 40px; flex-wrap: wrap; margin-bottom: 56px; }
.head > p { max-width: 40ch; color: var(--muted); }
.split { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 70px; align-items: center; }
.body { margin-top: 22px; color: var(--soft); max-width: 48ch; }

/* phones fanned like a hand of cards */
.fan { position: relative; height: 520px; }
.fan img { position: absolute; top: 50%; left: 50%; width: 230px; }
.fan img:nth-child(1) { transform: translate(-125%, -46%) rotate(-9deg); }
.fan img:nth-child(2) { transform: translate(-50%, -52%); width: 250px; z-index: 2; }
.fan img:nth-child(3) { transform: translate(25%, -46%) rotate(9deg); }
.facts { display: grid; grid-template-columns: repeat(3, auto); justify-content: start; gap: 34px; margin-top: 34px; padding-top: 26px; border-top: 1px solid var(--line); }
.facts strong { display: block; font: 600 42px/1 var(--display); color: var(--gold); }
.facts span { display: block; margin-top: 8px; font: 600 11.5px/1.5 var(--label); letter-spacing: 0.16em; text-transform: uppercase; color: var(--muted); }

/* screenshots row */
.shots { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 26px; }
.shots figure { margin: 0; text-align: center; }
/* game screenshots sit in a dark phone bezel with a hairline gold rim (no white outline) */
.device { border-radius: 30px; border: 7px solid #0a0307; background: #0a0307; box-shadow: 0 0 0 1px rgba(228, 194, 126, 0.4), 0 30px 60px rgba(0, 0, 0, 0.55); }
.shots figcaption { margin-top: 16px; font: italic 500 21px/1.3 var(--display); color: var(--soft); }

/* ---------- character showcase (pick a name, the portrait changes) ---------- */
.show { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: 70px; align-items: center; }
.portrait { position: relative; aspect-ratio: 2 / 3; width: 100%; max-width: 460px; justify-self: center; }
.portrait::before { content: ""; position: absolute; inset: -14px; border: 1px solid var(--line); pointer-events: none; }
.portrait img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0; transform: scale(1.03); transition: opacity 0.6s ease, transform 1.2s ease; box-shadow: 0 40px 80px rgba(0, 0, 0, 0.5); }
.portrait img.on { opacity: 1; transform: none; }
.names { list-style: none; margin: 0; padding: 0; display: grid; gap: 2px; }
.names button { all: unset; cursor: pointer; display: flex; align-items: baseline; flex-wrap: wrap; gap: 0 16px; font: 500 clamp(26px, 2.6vw, 34px)/1.3 var(--display); color: rgba(248, 238, 233, 0.4); transition: color 0.3s; }
.names button small { font: 600 11.5px/1 var(--label); letter-spacing: 0.18em; text-transform: uppercase; color: transparent; transition: color 0.3s; }
.names button:hover { color: rgba(248, 238, 233, 0.8); }
.names button[aria-selected="true"] { color: var(--ivory); font-style: italic; }
.names button[aria-selected="true"] small { color: var(--gold); }
.names button:focus-visible { outline: 1px solid var(--gold); outline-offset: 6px; }
.names.two { grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 30px; }
.names.two button { font-size: clamp(22px, 2.1vw, 28px); }
.names.two button small { display: none; }
.quote { margin-top: 34px; padding-top: 28px; border-top: 1px solid var(--line); }
.quote .q { font: italic 500 clamp(22px, 2.2vw, 28px)/1.4 var(--display); color: #f3e3ea; max-width: 32ch; }
.quote .role { display: block; margin-bottom: 10px; font: 600 12px/1 var(--label); letter-spacing: 0.2em; text-transform: uppercase; color: var(--gold); font-style: normal; }

.quote .more-text { margin-top: 16px; font: 400 17px/1.7 var(--body); color: var(--soft); max-width: 56ch; }
.bio[hidden] { display: none; }
.gallery { display: grid; grid-template-columns: repeat(2, minmax(0, 190px)); gap: 16px; margin-top: 28px; }
.gallery img { aspect-ratio: 2 / 3; object-fit: cover; box-shadow: 0 0 0 1px var(--line), 0 20px 40px rgba(0, 0, 0, 0.5); }
.show { align-items: start; }
.show .portrait { position: sticky; top: 30px; }
.origin-panel .body { margin-top: 14px; max-width: 60ch; }
.origin-panel .extra { margin-top: 22px; font: 600 12px/1.6 var(--label); letter-spacing: 0.14em; text-transform: uppercase; color: var(--gold); }

/* Seraphina beside "your own princess" */
.duo { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 70px; }
.duo article { display: grid; gap: 34px; align-content: start; }
.duo .frame { position: relative; aspect-ratio: 4 / 3.4; overflow: hidden; box-shadow: 0 34px 70px rgba(0, 0, 0, 0.55); }
.duo .frame::after { content: ""; position: absolute; inset: 12px; border: 1px solid rgba(248, 238, 233, 0.4); pointer-events: none; }
.duo .frame > img { width: 100%; height: 100%; object-fit: cover; object-position: center 14%; }
.duo .trio-faces { display: grid; grid-template-columns: repeat(3, 1fr); }
.duo .trio-faces img { object-position: center 20%; }
.duo .kicker { margin: 0 0 8px; font: 600 12px/1.4 var(--label); letter-spacing: 0.22em; text-transform: uppercase; color: var(--gold); }
.duo h3 { font-size: clamp(32px, 3.2vw, 44px); }
.duo .body { margin-top: 16px; max-width: none; }
.duo .list { margin-top: 22px; }

/* painted story scenes */
.scene-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 22px; }
.scene-card { position: relative; margin: 0; aspect-ratio: 2 / 3; overflow: hidden; box-shadow: 0 26px 50px rgba(0, 0, 0, 0.5); }
.scene-card::after { content: ""; position: absolute; inset: 10px; border: 1px solid rgba(228, 194, 126, 0.45); pointer-events: none; }
.scene-card img { width: 100%; height: 100%; object-fit: cover; transition: transform 1s ease; }
.scene-card:hover img { transform: scale(1.05); }
.scene-card figcaption { position: absolute; inset: auto 0 0 0; padding: 90px 22px 24px; background: linear-gradient(180deg, transparent, rgba(20, 9, 18, 0.94) 62%); }
.scene-card h3 { font-size: 26px; }
.scene-card p { margin-top: 6px; font-size: 15px; line-height: 1.5; color: var(--soft); }

.lore-cols img { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; object-position: center 22%; margin-bottom: 20px; box-shadow: 0 24px 50px rgba(0, 0, 0, 0.5); }
.wide-art { margin: clamp(60px, 8vw, 90px) 0 0; position: relative; box-shadow: 0 34px 70px rgba(0, 0, 0, 0.55); }
.wide-art::after { content: ""; position: absolute; inset: 12px; border: 1px solid rgba(248, 238, 233, 0.4); pointer-events: none; }
.wide-art img { width: 100%; aspect-ratio: 21 / 9; object-fit: cover; object-position: center 40%; }
.pair { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; width: 100%; }
.pair img { aspect-ratio: 2 / 3; object-fit: cover; box-shadow: 0 0 0 1px var(--line), 0 28px 56px rgba(0, 0, 0, 0.5); }
.pair img:last-child { margin-top: 44px; }

/* slogan bands */
.slogan { position: relative; padding: clamp(70px, 9vw, 120px) 0; text-align: center; }
.slogan .big { font: 500 clamp(40px, 6vw, 84px)/1.05 var(--display); color: var(--ivory); text-wrap: balance; max-width: 16ch; margin: 0 auto; }
.slogan .big em { color: var(--rose); }
.slogan .sub { margin: 26px auto 0; max-width: 46ch; font-size: 19px; color: var(--soft); text-wrap: pretty; }
.slogan::before, .slogan::after { content: ""; display: block; width: 1px; height: 54px; margin: 0 auto 30px; background: linear-gradient(180deg, transparent, var(--gold)); }
.slogan::after { margin: 30px auto 0; background: linear-gradient(180deg, var(--gold), transparent); }

/* Seraphina + Elarion lore */
.titles { margin-top: 14px; font: 600 12px/1.7 var(--label); letter-spacing: 0.16em; text-transform: uppercase; color: var(--gold); }
.row .body + .body { margin-top: 14px; }
.lore-cols { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 44px 60px; }
.lore-cols > div { padding-top: 0; }
.lore-cols p { margin-top: 10px; color: var(--soft); }
.pull { margin: clamp(60px, 8vw, 90px) auto 0; max-width: 22ch; text-align: center; font: italic 500 clamp(30px, 3.6vw, 46px)/1.25 var(--display); color: var(--rose); }

/* real playthroughs: one row of phone screens per player */
.tales { display: grid; gap: clamp(60px, 8vw, 100px); }
.tale-head { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.2fr); gap: 6px 50px; align-items: end; margin-bottom: 30px; padding-bottom: 22px; border-bottom: 1px solid var(--line); }
.tale-head h3 { font-size: clamp(32px, 3.2vw, 44px); font-style: italic; color: var(--rose); grid-row: 1; }
.tale-head .tags { grid-column: 1; margin: 0; font: 600 12px/1.6 var(--label); letter-spacing: 0.16em; text-transform: uppercase; color: var(--gold); }
.tale-head p:last-child { grid-column: 2; grid-row: 1 / span 2; margin: 0; color: var(--soft); }
.reel { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 22px; }
.reel figure { margin: 0; text-align: center; }
.reel figcaption { margin-top: 14px; font: 600 11.5px/1.4 var(--label); letter-spacing: 0.16em; text-transform: uppercase; color: var(--muted); }

/* the five kingdoms: a painting each, with its lore beside it */
.realms { display: grid; gap: clamp(50px, 6vw, 80px); }
.realm { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); gap: 56px; align-items: center; }
.realm:nth-child(even) .pic { order: 2; }
.realm .pic { position: relative; box-shadow: 0 34px 70px rgba(0, 0, 0, 0.55); }
.realm .pic::after { content: ""; position: absolute; inset: 12px; border: 1px solid rgba(248, 238, 233, 0.4); pointer-events: none; }
.realm .pic img { width: 100%; aspect-ratio: 1400 / 740; object-fit: cover; }
.realm h3 { font-size: clamp(32px, 3.2vw, 44px); }
.realm .line { margin-top: 10px; font: italic 500 22px/1.4 var(--display); color: var(--rose); }
.realm .txt p + p { margin-top: 14px; color: var(--soft); }

/* ---------- teaser cards (tap to reveal) ---------- */
.cards { --cols: 4; --gap: 26px; display: flex; flex-wrap: wrap; justify-content: center; gap: var(--gap); }
.cards > .tcard { flex: 0 0 calc((100% - (var(--cols) - 1) * var(--gap)) / var(--cols)); }
.tcard { position: relative; display: block; width: 100%; padding: 0; margin: 0; cursor: pointer; text-align: left; font: inherit; color: inherit; aspect-ratio: 2 / 3; overflow: hidden; border: 0; background: var(--wine-2); box-shadow: 0 26px 50px rgba(0, 0, 0, 0.45); }
.tcard::after { content: ""; position: absolute; inset: 10px; border: 1px solid rgba(228, 194, 126, 0.45); pointer-events: none; z-index: 3; }
.tcard img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: center 22%; transition: transform 1s ease; }
.tcard:hover img { transform: scale(1.04); }
.tcard .plate { position: absolute; inset: auto 0 0 0; z-index: 2; display: block; padding: 90px 24px 26px; background: linear-gradient(180deg, transparent, rgba(20, 9, 18, 0.92) 60%); transition: opacity 0.35s; }
.tcard .role { display: block; font: 600 11.5px/1.3 var(--label); letter-spacing: 0.18em; text-transform: uppercase; color: var(--gold); }
.tcard .name { display: block; margin-top: 4px; font: 600 28px/1.1 var(--display); color: var(--ivory); }
.tcard .hint { display: block; margin-top: 10px; font: 600 11px/1 var(--label); letter-spacing: 0.18em; text-transform: uppercase; color: var(--rose); }
.tcard .secret { position: absolute; inset: 0; z-index: 2; display: flex; flex-direction: column; justify-content: flex-end; padding: 30px 26px 30px; background: linear-gradient(180deg, rgba(20, 9, 18, 0.15), rgba(20, 9, 18, 0.95) 45%); opacity: 0; transition: opacity 0.4s; pointer-events: none; }
.tcard .secret b { font: 600 11.5px/1.3 var(--label); letter-spacing: 0.18em; text-transform: uppercase; color: var(--gold); }
.tcard .secret i { margin-top: 8px; font: italic 500 22px/1.35 var(--display); color: var(--ivory); }
.tcard[aria-expanded="true"] .secret { opacity: 1; }
.tcard[aria-expanded="true"] .plate { opacity: 0; }
@media (hover: hover) {
  .tcard:hover .secret, .tcard:focus-visible .secret { opacity: 1; }
  .tcard:hover .plate, .tcard:focus-visible .plate { opacity: 0; }
}

/* ---------- picture links ---------- */
.trio { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 30px; }
.trio a { display: block; text-decoration: none; color: var(--ivory); }
.trio figure { margin: 0; }
.trio .pic { position: relative; aspect-ratio: 4 / 5; overflow: hidden; }
.trio .pic::after { content: ""; position: absolute; inset: 10px; border: 1px solid rgba(248, 238, 233, 0.35); }
.trio .pic img { width: 100%; height: 100%; object-fit: cover; transition: transform 1s ease; }
.trio a:hover .pic img { transform: scale(1.05); }
.trio h3 { margin-top: 20px; }
.trio figcaption p { color: var(--muted); margin-top: 4px; }

/* three short ideas side by side, separated by hairlines */
.pillars { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 40px; }
.pillars > div { padding-top: 24px; border-top: 1px solid var(--line); }
.pillars p { margin-top: 10px; color: var(--muted); }
.steps .num { display: block; font: 600 64px/1 var(--display); color: var(--gold); margin-bottom: 12px; }

.lists { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 60px; margin-top: 70px; }
.list { list-style: none; margin: 18px 0 0; padding: 0; display: grid; gap: 12px; color: var(--soft); }
.list li { position: relative; padding-left: 24px; }
.list li::before { content: ""; position: absolute; left: 2px; top: 0.7em; width: 6px; height: 6px; background: var(--gold); transform: rotate(45deg); }
.list strong { color: var(--ivory); }

/* alternating feature rows */
.row h3 { font-size: clamp(32px, 3.2vw, 42px); }
.rows { display: grid; gap: clamp(70px, 9vw, 110px); }
.row { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 70px; align-items: center; }
.row:nth-child(even) > .media { order: 2; }
.row .media { display: flex; justify-content: center; }
.row .frame { position: relative; width: min(360px, 100%); }
.row .frame::before { content: ""; position: absolute; inset: -12px; border: 1px solid var(--line); }
.row .frame img { aspect-ratio: 2 / 3; object-fit: cover; width: 100%; box-shadow: 0 30px 60px rgba(0, 0, 0, 0.5); }
.tiles { display: grid; gap: 12px; width: 100%; }
.tiles.gowns { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.tiles.gowns img { aspect-ratio: 2 / 3; object-fit: contain; filter: drop-shadow(0 16px 24px rgba(0, 0, 0, 0.55)); }
.tiles.sigils { grid-template-columns: repeat(3, minmax(0, 1fr)); max-width: 420px; }
.tiles.pets { grid-template-columns: repeat(3, minmax(0, 1fr)); max-width: 420px; }
.tiles.pets img { aspect-ratio: 1; object-fit: contain; filter: drop-shadow(0 14px 24px rgba(0, 0, 0, 0.5)); }

/* "make it yours": every customizable part of the game, each in a gold-ringed medallion */
.yours-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 54px 36px; }
.yours-grid figure { margin: 0; text-align: center; }
.medal { width: 156px; aspect-ratio: 1; margin: 0 auto 20px; border-radius: 50%; overflow: hidden; background: radial-gradient(circle at 50% 40%, #3b1834, #1a0916); box-shadow: 0 0 0 1px var(--gold), 0 0 0 7px var(--night), 0 0 0 8px var(--line), 0 22px 44px rgba(0, 0, 0, 0.55); transition: transform 0.4s; }
.yours-grid figure:hover .medal { transform: translateY(-4px); }
.medal img { width: 100%; height: 100%; object-fit: cover; transform: scale(1.06); }
.medal.fit img { object-fit: contain; padding: 8px; transform: scale(1.12); }
.yours-grid h3 { font-size: 25px; }
.yours-grid p { margin-top: 8px; font-size: 15.5px; line-height: 1.6; color: var(--muted); }
.yours-grid strong { color: var(--soft); font-weight: 500; }
.badge-line { display: inline-flex; flex-wrap: wrap; justify-content: center; gap: 8px 22px; margin-top: 26px; font: 600 12px/1.4 var(--label); letter-spacing: 0.18em; text-transform: uppercase; color: var(--gold); }

/* origin picker */
.picker-tabs { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; margin-bottom: 50px; }
.picker-tabs button { display: flex; flex-direction: column; align-items: center; gap: 12px; padding: 0 0 12px; cursor: pointer; background: none; border: 0; border-bottom: 1px solid var(--line-soft); font: 600 13px/1.3 var(--label); letter-spacing: 0.14em; text-transform: uppercase; color: var(--muted); transition: color 0.3s, border-color 0.3s; }
.picker-tabs button img { width: 100%; max-width: 150px; aspect-ratio: 3 / 4; object-fit: cover; filter: saturate(0.6) brightness(0.7); transition: filter 0.3s; }
.picker-tabs button:hover img, .picker-tabs button[aria-selected="true"] img { filter: none; }
.picker-tabs button[aria-selected="true"] { color: var(--ivory); border-color: var(--gold); }
.origin-panel { display: grid; grid-template-columns: 300px minmax(0, 1fr); gap: 60px; align-items: center; }
.origin-panel > img { box-shadow: 0 30px 60px rgba(0, 0, 0, 0.5); }
.origin-panel blockquote { margin: 26px 0 0; padding-left: 20px; border-left: 1px solid var(--gold); font: italic 500 26px/1.4 var(--display); color: var(--rose); }
.js .origin-panel[hidden] { display: none; }
.origin-panel + .origin-panel { margin-top: 50px; }
.js .origin-panel + .origin-panel { margin-top: 0; }
.tag { display: inline-block; vertical-align: middle; margin-left: 12px; padding: 5px 10px; font: 600 11px/1 var(--label); letter-spacing: 0.16em; text-transform: uppercase; color: #2a1020; background: var(--gold); }
.picker-next { margin-top: 30px; text-align: right; }
.linkish { font: 600 12.5px/1 var(--label); letter-spacing: 0.18em; text-transform: uppercase; color: var(--gold); background: none; border: 0; cursor: pointer; padding: 8px 0; }
.linkish:hover { color: var(--ivory); }
.no-js-hide { display: none; }
.js .no-js-hide { display: block; }

.map { width: min(460px, 100%); justify-self: center; box-shadow: 0 30px 60px rgba(0, 0, 0, 0.5); }
.sigil-row { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 22px; }
.sigil-row figure { margin: 0; text-align: center; }
.sigil-row img { filter: drop-shadow(0 16px 26px rgba(0, 0, 0, 0.5)); transition: transform 0.4s; }
.sigil-row figure:hover img { transform: translateY(-5px); }
.sigil-row figcaption { margin-top: 14px; font: 600 12.5px/1.3 var(--label); letter-spacing: 0.16em; text-transform: uppercase; color: var(--soft); }

/* ---------- long form ---------- */
.prose h2 { font-size: clamp(30px, 3.4vw, 38px); margin: 44px 0 14px; }
.prose p, .prose li { color: var(--soft); }
.prose strong { color: var(--ivory); }
.prose ul { padding-left: 22px; display: grid; gap: 8px; }
.prose li::marker { color: var(--gold); }
address { font-style: normal; color: var(--soft); line-height: 1.8; }
address strong { color: var(--ivory); }
.notice { margin-top: 70px; padding: 34px 36px; border: 1px solid var(--line); background: rgba(44, 18, 38, 0.6); }

.faq details { border-bottom: 1px solid var(--line-soft); }
.faq details:first-child { border-top: 1px solid var(--line-soft); }
.faq summary { list-style: none; cursor: pointer; display: flex; justify-content: space-between; align-items: center; gap: 20px; padding: 24px 0; font: 600 clamp(22px, 2.2vw, 26px)/1.25 var(--display); color: var(--ivory); }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; flex-shrink: 0; font: 400 28px/1 var(--display); color: var(--gold); transition: transform 0.3s; }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq summary:hover { color: var(--gold); }
.faq details p { padding: 0 0 26px; color: var(--soft); max-width: 62ch; }

.contact-cols { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
.contact-cols > div { padding: 10px 50px 10px 0; }
.contact-cols > div + div { padding: 10px 0 10px 50px; border-left: 1px solid var(--line); }
.mail { display: inline-block; margin-top: 20px; font: italic 500 clamp(24px, 3vw, 36px)/1.25 var(--display); color: var(--rose); text-decoration: none; border-bottom: 1px solid rgba(240, 140, 178, 0.4); overflow-wrap: anywhere; }
.mail:hover { color: var(--gold); border-color: var(--gold); }

/* ---------- footer ---------- */
.site-footer { border-top: 1px solid var(--line); padding: 60px 0 34px; color: var(--muted); font-size: 15.5px; background: var(--night); }
.site-footer .cols { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 30px; }
.site-footer h4 { margin: 0 0 14px; font: 600 12.5px/1.3 var(--label); letter-spacing: 0.2em; text-transform: uppercase; color: var(--gold); }
.site-footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.site-footer a { color: var(--soft); text-decoration: none; }
.site-footer a:hover { color: var(--gold); }
.site-footer .brandline { font: italic 500 24px/1.3 var(--display); color: var(--ivory); }
.site-footer .legal { margin-top: 44px; padding-top: 22px; border-top: 1px solid var(--line-soft); font-size: 14.5px; }

/* ---------- small screens ---------- */
@media (max-width: 1000px) {
  .cards { --cols: 3; }
  .site-nav { gap: 6px 16px; }
  .site-nav a { font-size: 11.5px; letter-spacing: 0.12em; }
}
@media (max-width: 860px) {
  .site-header .wrap { padding: 14px 0; }
  .brand img { height: 40px; }
  .brand span { font-size: 12px; }
  .js .menu-toggle { display: block; }
  .site-nav { margin: 0; justify-content: center; gap: 4px 16px; }
  .js .site-nav { display: none; }
  .js .site-header.nav-open .site-nav { display: flex; flex-direction: column; align-items: stretch; gap: 0; position: absolute; inset: 100% 0 auto 0; padding: 8px 20px 18px; background: var(--night); box-shadow: 0 30px 60px rgba(0, 0, 0, 0.6); border-bottom: 1px solid var(--line); }
  .js .site-header.nav-open .site-nav a { padding: 16px 0; font-size: 13px; border-bottom: 1px solid var(--line-soft); }
  .site-header { position: absolute; }
  .site-header .wrap { position: static; flex-wrap: wrap; }
  .hero { align-items: flex-end; }
  .hero::after { background: linear-gradient(180deg, rgba(20, 9, 18, 0.7) 0%, rgba(20, 9, 18, 0.1) 26%, rgba(20, 9, 18, 0.72) 60%, rgba(20, 9, 18, 0.85) 100%); }
  .hero.home { min-height: 780px; }
  .hero.home > .wrap { padding: 240px 0 50px; }
  .hero.page { min-height: 560px; }
  .hero.page > .wrap { padding: 200px 0 40px; }
  .hero.short { min-height: 420px; }
  .hero.short > .wrap { padding: 170px 0 30px; }
  .lede { font-size: 18px; }
  .split, .show, .row, .lists, .origin-panel { grid-template-columns: minmax(0, 1fr); gap: 44px; }
  .row:nth-child(even) > .media { order: 0; }
  .fan { height: 420px; }
  .fan img { width: 170px; }
  .fan img:nth-child(2) { width: 186px; }
  .facts { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
  .facts strong { font-size: 34px; }
  .shots { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 30px 16px; }
  .shots figcaption { font-size: 18px; }
  .portrait { max-width: 300px; }
  .names { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 6px 16px; }
  .names button { font-size: 22px; }
  .names button small { display: none; }
  .quote { min-height: 0; }
  .cards { --cols: 2; --gap: 14px; }
  .tcard::after { inset: 6px; }
  .tcard .plate { padding: 60px 14px 16px; }
  .tcard .name { font-size: 21px; }
  .tcard .role, .tcard .secret b { font-size: 10px; letter-spacing: 0.12em; }
  .tcard .hint { font-size: 10px; letter-spacing: 0.12em; }
  .tcard .secret { padding: 16px 14px; }
  .tcard .secret i { font-size: 17px; }
  .trio, .pillars { grid-template-columns: minmax(0, 1fr); gap: 40px; }
  .lore-cols { grid-template-columns: minmax(0, 1fr); gap: 34px; }
  .show .portrait { position: relative; top: 0; }
  .gallery { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
  .duo { grid-template-columns: minmax(0, 1fr); gap: 70px; }
  .scene-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
  .scene-card::after { inset: 6px; }
  .scene-card figcaption { padding: 60px 12px 14px; }
  .scene-card h3 { font-size: 19px; }
  .scene-card p { font-size: 13.5px; line-height: 1.4; }
  .tale-head { grid-template-columns: minmax(0, 1fr); }
  .tale-head p:last-child { grid-column: 1; grid-row: auto; margin-top: 8px; }
  .reel { grid-template-columns: none; grid-auto-flow: column; grid-auto-columns: 58%; gap: 14px; overflow-x: auto; scroll-snap-type: x mandatory; padding-bottom: 12px; }
  .reel figure { scroll-snap-align: center; }
  .realm { grid-template-columns: minmax(0, 1fr); gap: 24px; }
  .realm:nth-child(even) .pic { order: 0; }
  .quote .more-text { font-size: 16px; }
  .yours-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 40px 18px; }
  .medal { width: 118px; margin-bottom: 14px; }
  .medal.fit img { padding: 6px; }
  .yours-grid h3 { font-size: 21px; }
  .yours-grid p { font-size: 14.5px; }
  .picker-tabs { gap: 8px; margin-bottom: 34px; }
  .picker-tabs button { font-size: 10.5px; letter-spacing: 0.06em; gap: 8px; }
  .origin-panel > img { width: min(220px, 64%); margin: 0 auto; }
  .origin-panel blockquote { font-size: 22px; }
  .sigil-row { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 26px 16px; }
  .tiles.gowns { grid-template-columns: repeat(2, minmax(0, 1fr)); max-width: 320px; margin: 0 auto; }
  .contact-cols { grid-template-columns: minmax(0, 1fr); }
  .contact-cols > div, .contact-cols > div + div { padding: 0; border: 0; }
  .contact-cols > div + div { margin-top: 50px; padding-top: 50px; border-top: 1px solid var(--line); }
  .notice { padding: 26px 22px; }
  .site-footer .cols { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 420px) {
  .btn { font-size: 12px; padding: 15px 18px; letter-spacing: 0.1em; }
  .btns .btn { flex: 1 1 100%; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .portrait img, .scene-card img, .tcard img, .tcard .secret, .tcard .plate, .trio .pic img, .btn, .sigil-row img, .faq summary::after { transition: none; }
}
