/* Classic to Modern: the RPG Guild Hall. All rules scoped to #rpg-hall / .rpgh-*. */
#rpg-hall { display: none; }
html[data-hub="rpg-hall"] #rpg-hall { display: block; }

/* ---------- own-site shell: hide Shadowblade chrome while inside ---------- */
html[data-hub="rpg-hall"] { background: #0d0907; color: #efe4cf; }
html[data-hub="rpg-hall"] body { background: #0d0907; color: #efe4cf; }
html[data-hub="rpg-hall"] .bg-stage,
html[data-hub="rpg-hall"] .hud-controls,
html[data-hub="rpg-hall"] .hero,
html[data-hub="rpg-hall"] .marquee,
html[data-hub="rpg-hall"] .hub-back-bar,
html[data-hub="rpg-hall"] .site-footer,
html[data-hub="rpg-hall"] .burn-rule,
html[data-hub="rpg-hall"] .visits,
html[data-hub="rpg-hall"] .ae-rays, html[data-hub="rpg-hall"] .ae-grain,
html[data-hub="rpg-hall"] .ae-bokeh, html[data-hub="rpg-hall"] .ae-progress,
html[data-hub="rpg-hall"] .ae-wipe { display: none !important; }
html[data-hub="rpg-hall"] .site { min-height: 100dvh; background: transparent; padding: 0; }
html[data-hub="rpg-hall"] #rpg-hall.section {
  position: relative; isolation: isolate; margin: 0; padding: 0 0 calc(2rem + env(safe-area-inset-bottom)); min-height: 100dvh;
  background:
    radial-gradient(90% 50% at 50% 0%, rgba(214, 160, 70, .16), transparent 60%),
    repeating-linear-gradient(90deg, rgba(255, 255, 255, .012) 0 2px, transparent 2px 9px),
    linear-gradient(180deg, #1a110b, #0d0907 40%, #0a0705);
}
body.rpgh-noscroll { overflow: hidden; }

.rpgh-root {
  --gold: #e3b964; --gold2: #f6dc9c; --ink: #efe4cf; --mute: #bfae90; --wood: #22160e; --line: rgba(227, 185, 100, .32);
  --read: "Spectral", Georgia, "Times New Roman", serif; --hall: "IM Fell English SC", "Cinzel", Georgia, serif;
  font-family: var(--read); color: var(--ink); max-width: 1240px; margin: 0 auto; padding: 0 .9rem; box-sizing: border-box;
}
.rpgh-root *, .rpgh-root *::before, .rpgh-root *::after { box-sizing: border-box; }
.rpgh-root a { color: var(--gold2); }
.rpgh-boot { text-align: center; padding: 30vh 1rem; font-family: var(--hall, Georgia); font-size: 1.3rem; color: #e3b964; }
.rpgh-sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
.rpgh-root [hidden] { display: none !important; }

/* ---------- top bar ---------- */
.rpgh-bar {
  position: sticky; top: 0; z-index: 30; display: flex; align-items: center; gap: .6rem; justify-content: space-between;
  margin: 0 -.9rem; padding: calc(.45rem + env(safe-area-inset-top)) .9rem .45rem;
  background: linear-gradient(180deg, rgba(20, 12, 7, .97), rgba(20, 12, 7, .86)); border-bottom: 1px solid var(--line);
  box-shadow: 0 8px 24px rgba(0, 0, 0, .45); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px);
}
.rpgh-leave {
  font: 700 .95rem/1 var(--hall); letter-spacing: .03em; color: #1b1108 !important; background: linear-gradient(180deg, #f6dc9c, #d9a446);
  padding: .7rem .9rem; border-radius: 8px; text-decoration: none; white-space: nowrap; box-shadow: 0 2px 0 #7a5418, 0 0 14px rgba(227, 185, 100, .3); min-height: 44px; display: inline-flex; align-items: center;
}
.rpgh-leave:focus-visible, .rpgh-leave:hover { outline: 2px solid #fff3cf; outline-offset: 2px; }
.rpgh-mark { margin: 0; display: flex; flex-direction: column; align-items: center; line-height: 1; }
.rpgh-yr { font: 700 1.5rem/1 "VT323", "IBM Plex Mono", monospace; color: var(--gold2); letter-spacing: .06em; text-shadow: 0 0 10px rgba(246, 220, 156, .45); font-variant-numeric: tabular-nums; }
.rpgh-mark-t { font: .7rem/1.2 var(--hall); color: var(--mute); letter-spacing: .14em; text-transform: uppercase; }
.rpgh-prog { margin: 0; font: 600 .82rem/1.1 "Chakra Petch", sans-serif; color: var(--mute); text-align: right; min-width: 74px; }
.rpgh-prog-n { color: var(--gold2); font-size: 1.05rem; }
.rpgh-prog-bar { display: block; height: 4px; background: rgba(255, 255, 255, .1); border-radius: 2px; margin-top: 4px; overflow: hidden; }
.rpgh-prog-bar b { display: block; height: 100%; width: 0; background: linear-gradient(90deg, #d9a446, #fff0b8); transition: width .6s; }

/* ---------- hero ---------- */
.rpgh-hero { position: relative; isolation: isolate; margin: 0 -.9rem; padding: 3.2rem 1.2rem 2.4rem; text-align: center; overflow: hidden; min-height: 78vh; display: flex; flex-direction: column; justify-content: center; align-items: center; }
.rpgh-hero-bg { position: absolute; inset: 0; z-index: -1; background-size: cover; background-position: center; transform: scale(1.08); filter: saturate(1.05); }
.rpgh-on .rpgh-hero-bg { animation: rpghKen 26s ease-in-out infinite alternate; }
.rpgh-hero::after { content: ""; position: absolute; inset: 0; z-index: -1; background: radial-gradient(80% 55% at 50% 50%, rgba(13, 9, 7, .55), rgba(13, 9, 7, .15) 80%), linear-gradient(180deg, rgba(13, 9, 7, .05) 60%, #0d0907 99%); }
@keyframes rpghKen { from { transform: scale(1.08) translate(0, 0); } to { transform: scale(1.18) translate(-2%, -2%); } }
.rpgh-kicker { font: .9rem/1.3 var(--hall); letter-spacing: .22em; text-transform: uppercase; color: var(--gold); margin: 0 0 .6rem; }
.rpgh-title { margin: 0; font-weight: 400; line-height: .95; text-shadow: 0 4px 30px rgba(0, 0, 0, .8); }
.rpgh-title span { display: inline-block; }
.rpgh-t1 { font: 2.4rem/1 "Press Start 2P", monospace; color: #9fe3ff; text-shadow: 3px 3px 0 #213d8a, 0 0 18px rgba(120, 200, 255, .5) !important; }
.rpgh-t2 { font: italic 2.2rem/1 "IM Fell English", Georgia, serif; color: var(--gold2); margin: .2rem .4rem; }
.rpgh-t3 { font: 600 3.4rem/1 "Outfit", "Josefin Sans", sans-serif; letter-spacing: .08em; background: linear-gradient(90deg, #ff6a5c, #ffd36b, #6ac8ff); -webkit-background-clip: text; background-clip: text; color: transparent; }
.rpgh-on .rpgh-t1 { animation: rpghIn .9s .1s both cubic-bezier(.2, .8, .2, 1); }
.rpgh-on .rpgh-t2 { animation: rpghIn .9s .45s both cubic-bezier(.2, .8, .2, 1); }
.rpgh-on .rpgh-t3 { animation: rpghIn .9s .8s both cubic-bezier(.2, .8, .2, 1), rpghShine 6s 2s linear infinite; background-size: 200% 100%; }
@keyframes rpghIn { from { opacity: 0; transform: translateY(18px) scale(.96); filter: blur(6px); } to { opacity: 1; transform: none; filter: none; } }
@keyframes rpghShine { to { background-position: 200% 0; } }
.rpgh-lede { max-width: 40rem; margin: 1.2rem auto 1rem; font-size: 1.12rem; line-height: 1.65; color: #f3e9d6; text-shadow: 0 1px 8px #000; }
.rpgh-stats { list-style: none; display: flex; flex-wrap: wrap; justify-content: center; gap: .5rem; padding: 0; margin: .4rem 0 1.4rem; }
.rpgh-stats li { font: 600 .85rem/1 "Chakra Petch", sans-serif; color: var(--mute); background: rgba(20, 12, 7, .7); border: 1px solid var(--line); border-radius: 999px; padding: .45rem .8rem; }
.rpgh-stats b { color: var(--gold2); font-size: 1.05rem; margin-right: .2rem; }
.rpgh-begin { display: inline-flex; flex-direction: column; align-items: center; gap: .2rem; font: 700 1.25rem/1.1 var(--hall); color: #1b1108; background: linear-gradient(180deg, #fff0b8, #e3b964 55%, #b98125); border: 0; border-radius: 12px; padding: 1rem 2rem; cursor: pointer; box-shadow: 0 4px 0 #6b4612, 0 0 30px rgba(227, 185, 100, .45); min-width: min(100%, 320px); }
.rpgh-begin small { font: 600 .75rem/1 "Chakra Petch", sans-serif; letter-spacing: .1em; text-transform: uppercase; opacity: .8; }
.rpgh-on .rpgh-begin { animation: rpghPulse 2.6s 1.6s ease-in-out infinite; }
@keyframes rpghPulse { 50% { box-shadow: 0 4px 0 #6b4612, 0 0 46px rgba(255, 220, 140, .75); } }

/* ---------- tabs ---------- */
.rpgh-tabs { position: sticky; top: 58px; z-index: 25; display: grid; grid-template-columns: repeat(4, 1fr); gap: .35rem; padding: .45rem 0; margin: 0 0 .6rem; background: linear-gradient(180deg, rgba(13, 9, 7, .96), rgba(13, 9, 7, .88)); }
.rpgh-tab { display: flex; flex-direction: column; align-items: center; gap: .1rem; min-height: 54px; padding: .45rem .2rem; border-radius: 10px; border: 1px solid var(--line); background: rgba(40, 26, 16, .75); color: var(--ink); cursor: pointer; font: 700 .9rem/1.1 var(--hall); }
.rpgh-tab small { font: 500 .66rem/1.1 "Chakra Petch", sans-serif; color: var(--mute); }
.rpgh-tab[aria-selected="true"] { background: linear-gradient(180deg, #f6dc9c, #d9a446); color: #1b1108; border-color: #fff0b8; box-shadow: 0 0 18px rgba(227, 185, 100, .35); }
.rpgh-tab[aria-selected="true"] small { color: #4a3210; }

/* ---------- filters ---------- */
.rpgh-filters { background: rgba(30, 20, 12, .82); border: 1px solid var(--line); border-radius: 14px; padding: .8rem; margin: .4rem 0 1rem; }
.rpgh-search input { width: 100%; font: 500 1.05rem/1.2 var(--read); padding: .85rem 1rem; border-radius: 10px; border: 2px solid var(--line); background: #120b07; color: var(--ink); min-height: 50px; }
.rpgh-search input:focus { outline: none; border-color: var(--gold); box-shadow: 0 0 0 3px rgba(227, 185, 100, .25); }
.rpgh-chips { display: flex; gap: .4rem; overflow-x: auto; padding: .55rem 0 .2rem; scrollbar-width: thin; -webkit-overflow-scrolling: touch; }
.rpgh-chip { flex: 0 0 auto; font: 600 .86rem/1 "Chakra Petch", sans-serif; color: var(--ink); background: rgba(60, 40, 22, .7); border: 1px solid var(--line); border-radius: 999px; padding: .6rem .85rem; min-height: 40px; cursor: pointer; white-space: nowrap; }
.rpgh-chip.on { background: var(--gold); color: #1b1108; border-color: #fff0b8; }
.rpgh-frow { display: flex; flex-wrap: wrap; gap: .5rem; align-items: center; padding-top: .45rem; }
.rpgh-sel { display: flex; align-items: center; gap: .45rem; font: 600 .86rem "Chakra Petch", sans-serif; color: var(--mute); }
.rpgh-sel select { font: 600 .95rem var(--read); padding: .55rem .7rem; min-height: 42px; border-radius: 8px; background: #120b07; color: var(--ink); border: 1px solid var(--line); }
.rpgh-gemtog.on { background: linear-gradient(180deg, #c9f3ff, #59b8e6); color: #06202c; }
.rpgh-count { margin: .55rem 0 0; font: 600 .86rem "Chakra Petch", sans-serif; color: var(--gold2); }

/* ---------- era rail (swipe) ---------- */
.rpgh-rail-wrap { margin: 0 -.9rem 1.2rem; }
.rpgh-rail-h { margin: 0 .9rem .35rem; font: 600 .8rem "Chakra Petch", sans-serif; letter-spacing: .1em; text-transform: uppercase; color: var(--mute); }
.rpgh-rail { display: flex; gap: .7rem; overflow-x: auto; scroll-snap-type: x mandatory; padding: .2rem .9rem .8rem; -webkit-overflow-scrolling: touch; scrollbar-width: thin; }
.rpgh-railc { position: relative; flex: 0 0 72%; max-width: 300px; scroll-snap-align: start; min-height: 150px; border-radius: 14px; overflow: hidden; border: 1px solid var(--line); background: #1a110b; color: #fff; text-align: left; padding: 4.6rem .85rem .8rem; cursor: pointer; display: flex; flex-direction: column; justify-content: flex-end; transition: transform .25s; }
.rpgh-railc:hover, .rpgh-railc:focus-visible { transform: translateY(-3px); }
.rpgh-railimg { position: absolute; inset: 0; background-size: cover; background-position: center; z-index: 0; }
.rpgh-railc::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 20%, rgba(0, 0, 0, .85)); z-index: 0; }
.rpgh-railc b, .rpgh-railc small, .rpgh-railc i { position: relative; z-index: 1; }
.rpgh-railc b { font: 700 1.05rem/1.2 var(--hall); }
.rpgh-railc small { font: 500 .8rem "Chakra Petch", sans-serif; color: #e8dcc2; }
.rpgh-railbar { display: block; height: 4px; background: rgba(255, 255, 255, .2); border-radius: 2px; margin-top: .45rem; overflow: hidden; }
.rpgh-railbar em { display: block; height: 100%; width: 0; background: var(--gold2); transition: width .6s; }
@media (min-width: 900px) { .rpgh-railc { flex-basis: 23%; } }

/* ---------- era sections ---------- */
.rpgh-era { margin: 0 0 2.6rem; }
.rpgh-era-banner { position: relative; height: 46vw; max-height: 380px; min-height: 200px; border-radius: 18px; overflow: hidden; margin: 0 0 1rem; display: flex; align-items: flex-end; }
.rpgh-era-banner.is-slim { height: 110px; min-height: 0; }
.rpgh-era-img { position: absolute; inset: -6% 0; background-size: cover; background-position: center; }
.rpgh-era-banner::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 35%, rgba(0, 0, 0, .85)); }
.rpgh-era-t { position: relative; z-index: 1; padding: 1rem 1.1rem; }
.rpgh-era-t h3 { margin: 0; font-size: clamp(1.6rem, 6vw, 2.8rem); line-height: 1.05; color: #fff; text-shadow: 0 3px 18px #000; }
.rpgh-era-y { margin: 0 0 .25rem; font: 700 .9rem "Chakra Petch", sans-serif; letter-spacing: .14em; color: var(--gold2); }
.rpgh-era-intro { max-width: 46rem; margin: 0 auto 1.3rem; }
.rpgh-era-intro p { font-size: 1.1rem; line-height: 1.75; margin: 0 0 .9rem; }
.rpgh-era-intro.is-slim { display: none; }
.rpgh-grid { display: grid; grid-template-columns: 1fr; gap: 1rem; }
@media (min-width: 620px) { .rpgh-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 980px) { .rpgh-grid { grid-template-columns: repeat(3, 1fr); } }
@media (min-width: 1200px) { .rpgh-grid { grid-template-columns: repeat(4, 1fr); } }

/* ---------- flip cards ---------- */
.rpgh-card { perspective: 1400px; height: 430px; }
.rpgh-flip { position: relative; width: 100%; height: 100%; transform-style: preserve-3d; transition: transform .7s cubic-bezier(.3, .8, .25, 1); }
.rpgh-card.is-flipped .rpgh-flip { transform: rotateY(180deg); }
.rpgh-face { position: absolute; inset: 0; backface-visibility: hidden; -webkit-backface-visibility: hidden; border-radius: 16px; overflow: hidden; }
.rpgh-front { display: block; width: 100%; padding: 0; border: 1px solid var(--line); background: #1b120b; color: var(--ink); cursor: pointer; text-align: left; font: inherit; box-shadow: 0 10px 28px rgba(0, 0, 0, .45); transition: box-shadow .3s, transform .3s; }
.rpgh-front:hover { box-shadow: 0 14px 34px rgba(0, 0, 0, .6), 0 0 0 2px var(--gold); }
.rpgh-front:focus-visible { outline: 3px solid var(--gold2); outline-offset: 2px; }
.rpgh-art { position: absolute; left: 0; right: 0; top: 0; height: 58%; background-size: cover; background-position: center 30%; }
.rpgh-art::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 50%, #1b120b); }
.rpgh-art[data-noimg] { filter: saturate(.85); }
.rpgh-art[data-noimg]::after { background: linear-gradient(180deg, rgba(0, 0, 0, .35), #1b120b); }
.rpgh-art-t { position: absolute; z-index: 1; inset: 0; display: flex; align-items: center; justify-content: center; text-align: center; padding: 1rem; font-size: 1.5rem; line-height: 1.15; color: #fff; text-shadow: 0 2px 14px #000, 0 0 2px #000; }
.rpgh-year { position: absolute; top: .7rem; left: .7rem; z-index: 2; font: 700 1.05rem/1 "VT323", monospace; background: rgba(0, 0, 0, .75); color: var(--gold2); padding: .35rem .55rem; border-radius: 6px; border: 1px solid var(--line); letter-spacing: .06em; }
.rpgh-gem { position: absolute; top: .7rem; right: 3.2rem; z-index: 2; font: 700 .72rem/1 "Chakra Petch", sans-serif; letter-spacing: .06em; text-transform: uppercase; background: linear-gradient(180deg, #d9f6ff, #5fbbe8); color: #062330; padding: .4rem .55rem; border-radius: 6px; box-shadow: 0 0 14px rgba(110, 200, 255, .6); }
.rpgh-check { position: absolute; top: .6rem; right: .6rem; z-index: 2; width: 2.1rem; height: 2.1rem; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 1.05rem; border: 2px dashed rgba(255, 255, 255, .35); background: rgba(0, 0, 0, .55); color: #fff; }
.rpgh-check-open { border-style: solid; border-color: var(--gold); color: var(--gold); font-size: .7rem; }
.rpgh-check-done { border-style: solid; border-color: #9fe39b; background: #2b6a2a; color: #eaffea; box-shadow: 0 0 12px rgba(150, 230, 140, .6); }
.rpgh-ct { position: absolute; left: 1rem; right: 1rem; top: 54%; font-size: 1.32rem; line-height: 1.15; font-weight: 700; color: #fff; }
.rpgh-cs { position: absolute; left: 1rem; right: 1rem; top: calc(54% + 3.2rem); font: 500 .88rem/1.25 "Chakra Petch", sans-serif; color: var(--mute); }
.rpgh-tags { position: absolute; left: 1rem; right: 1rem; bottom: 2.6rem; display: flex; flex-wrap: wrap; gap: .3rem; }
.rpgh-tags i, .rpgh-gh-tags i { font: 600 .72rem/1 "Chakra Petch", sans-serif; font-style: normal; letter-spacing: .04em; padding: .32rem .5rem; border-radius: 5px; background: rgba(227, 185, 100, .14); border: 1px solid var(--line); color: var(--gold2); }
.rpgh-hint { position: absolute; left: 0; right: 0; bottom: 0; padding: .6rem 1rem; font: 700 .82rem/1 "Chakra Petch", sans-serif; letter-spacing: .12em; text-transform: uppercase; color: #1b1108; background: linear-gradient(90deg, #d9a446, #f6dc9c); text-align: center; }
.rpgh-back { transform: rotateY(180deg); background: linear-gradient(180deg, #2a1b10, #160e08); border: 2px solid var(--gold); padding: 1rem; display: flex; flex-direction: column; gap: .5rem; overflow-y: auto; }
.rpgh-bk-t { margin: 0; font-size: 1.15rem; font-weight: 700; color: #fff; }
.rpgh-bk-t span { font: 700 1rem "VT323", monospace; color: var(--gold2); }
.rpgh-impact { margin: 0; font-size: .98rem; line-height: 1.5; color: #fff6e0; }
.rpgh-impact b { color: var(--gold2); }
.rpgh-bk-lead { margin: 0; font-size: .9rem; line-height: 1.5; color: var(--mute); }
.rpgh-facts { display: grid; grid-template-columns: auto 1fr; gap: .2rem .6rem; margin: 0; font-size: .82rem; }
.rpgh-facts dt { font: 700 .72rem "Chakra Petch", sans-serif; text-transform: uppercase; letter-spacing: .06em; color: var(--gold); }
.rpgh-facts dd { margin: 0; color: var(--ink); }
.rpgh-unflip { margin-top: auto; background: none; border: 1px solid var(--line); color: var(--mute); border-radius: 8px; padding: .55rem; font: 600 .85rem "Chakra Petch", sans-serif; cursor: pointer; min-height: 40px; }
.rpgh-card.is-gem .rpgh-front { border-color: rgba(110, 200, 255, .55); }
.rpgh-card.is-flag .rpgh-front { box-shadow: 0 10px 28px rgba(0, 0, 0, .45), inset 0 0 0 1px rgba(246, 220, 156, .45); }

/* ---------- BIG, BOLD, full-width "more" buttons ---------- */
.rpgh-more {
  display: flex; align-items: center; flex-wrap: wrap; gap: .1rem .6rem; width: 100%; min-height: 64px; margin: .5rem 0; padding: .9rem 3rem .9rem 1.1rem; position: relative;
  font: 800 1.12rem/1.2 var(--read); text-align: left; color: #1b1108 !important; text-decoration: none; cursor: pointer;
  background: linear-gradient(180deg, #fff0b8, #e3b964 55%, #c48a2c); border: 2px solid #fff3cf; border-radius: 12px;
  box-shadow: 0 4px 0 #6b4612, 0 0 22px rgba(227, 185, 100, .35); transition: transform .15s, box-shadow .15s;
}
.rpgh-more span { flex: 1 1 100%; }
.rpgh-more small { font: 700 .78rem/1.2 "Chakra Petch", sans-serif; letter-spacing: .05em; color: #4a3210; }
.rpgh-more b { position: absolute; right: 1rem; top: 50%; transform: translateY(-50%); font-size: 1.5rem; }
.rpgh-more:hover, .rpgh-more:focus-visible { transform: translateY(-2px); box-shadow: 0 6px 0 #6b4612, 0 0 32px rgba(255, 220, 140, .6); outline: none; }
.rpgh-more:active { transform: translateY(2px); box-shadow: 0 1px 0 #6b4612; }
.rpgh-back .rpgh-more { min-height: 60px; font-size: 1.05rem; }
.rpgh-linkbtn { background: none; border: 0; padding: .2rem 0; color: var(--gold2); font: 700 1rem var(--read); text-decoration: underline; text-underline-offset: 3px; cursor: pointer; min-height: 32px; }

/* ---------- reveals ---------- */
.rpgh-rv { opacity: 0; transform: translateY(26px); transition: opacity .7s ease, transform .7s cubic-bezier(.2, .8, .2, 1); transition-delay: calc(var(--d, 0) * 60ms); }
.rpgh-rv.is-in { opacity: 1; transform: none; }

/* ---------- gems / map / quiz heads ---------- */
.rpgh-gems-head, .rpgh-map-head, .rpgh-quiz-head { max-width: 46rem; margin: .4rem auto 1.4rem; text-align: center; }
.rpgh-gems-head h3, .rpgh-map-head h3, .rpgh-quiz-head h3 { font: 400 2rem/1.1 var(--hall); color: var(--gold2); margin: .4rem 0 .6rem; }
.rpgh-gems-head h3 { color: #bfefff; text-shadow: 0 0 20px rgba(110, 200, 255, .5); }
.rpgh-gems-head p, .rpgh-map-head p, .rpgh-quiz-head p { font-size: 1.06rem; line-height: 1.7; }
.rpgh-gemgrid .rpgh-card .rpgh-front { background: linear-gradient(180deg, #102330, #0b151d); }

/* ---------- impact map ---------- */
.rpgh-map-scroll { overflow-x: auto; overflow-y: hidden; margin: 0 -.9rem; padding: 0 .9rem 1rem; -webkit-overflow-scrolling: touch; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); background: repeating-linear-gradient(90deg, rgba(227, 185, 100, .05) 0 1px, transparent 1px 64px), #120b07; }
.rpgh-map { position: relative; }
.rpgh-map-svg { position: absolute; inset: 0; pointer-events: none; overflow: visible; }
.rpgh-edge { fill: none; stroke-width: 3; stroke-dasharray: 1; stroke-dashoffset: 1; opacity: .75; transition: opacity .3s, stroke-width .3s; }
.rpgh-edge-influence { stroke: #e3b964; }
.rpgh-edge-lineage { stroke: #6ac8ff; opacity: .55; }
.is-drawn .rpgh-edge { animation: rpghDraw 1.8s cubic-bezier(.4, 0, .2, 1) forwards; }
.is-drawn .rpgh-edge:nth-child(3n) { animation-delay: .25s; } .is-drawn .rpgh-edge:nth-child(3n+1) { animation-delay: .5s; }
@keyframes rpghDraw { to { stroke-dashoffset: 0; } }
.is-drawn .rpgh-edge-lineage { animation-name: rpghDrawDash; }
@keyframes rpghDrawDash { 0% { stroke-dashoffset: 1; } 99% { stroke-dashoffset: 0; stroke-dasharray: 1; } 100% { stroke-dashoffset: 0; stroke-dasharray: .012 .01; } }
.has-pick .rpgh-edge { opacity: .12; }
.has-pick .rpgh-edge.on { opacity: 1; stroke-width: 4; filter: drop-shadow(0 0 4px rgba(255, 220, 140, .8)); }
.rpgh-tick { position: absolute; top: 4px; font: 700 .95rem "VT323", monospace; color: var(--mute); transform: translateX(-50%); }
.rpgh-band { position: absolute; white-space: nowrap; font: 700 .72rem "Chakra Petch", sans-serif; letter-spacing: .14em; text-transform: uppercase; color: rgba(246, 220, 156, .55); }
.rpgh-node { position: absolute; height: 40px; display: flex; flex-direction: column; justify-content: center; padding: 0 .5rem; border-radius: 8px; border: 1px solid var(--line); background: #24170e; color: var(--ink); cursor: pointer; text-align: left; overflow: hidden; transition: transform .2s, box-shadow .2s, opacity .3s; z-index: 2; }
.rpgh-node b { font: 700 .78rem/1.1 var(--read); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.rpgh-node small { font: 600 .66rem/1.1 "Chakra Petch", sans-serif; color: var(--mute); }
.rpgh-node.is-gem { border-color: rgba(110, 200, 255, .6); }
.has-pick .rpgh-node { opacity: .35; }
.has-pick .rpgh-node.on, .has-pick .rpgh-node.rel { opacity: 1; }
.rpgh-node.on { background: var(--gold); color: #1b1108; transform: scale(1.08); box-shadow: 0 0 22px rgba(227, 185, 100, .8); z-index: 3; }
.rpgh-node.on small { color: #4a3210; }
.rpgh-node.rel { box-shadow: 0 0 0 2px var(--gold2); }
.rpgh-map-panel { margin: 1rem 0; padding: 1rem; border: 1px solid var(--line); border-radius: 14px; background: rgba(30, 20, 12, .85); min-height: 80px; }
.rpgh-map-tip { margin: 0; color: var(--mute); text-align: center; font-size: 1rem; }
.rpgh-links h4 { margin: 0 0 .4rem; font: 400 1.5rem var(--hall); color: var(--gold2); }
.rpgh-links h5 { margin: 1rem 0 .4rem; font: 700 .8rem "Chakra Petch", sans-serif; letter-spacing: .14em; text-transform: uppercase; color: var(--gold); }
.rpgh-links ul { list-style: none; margin: 0; padding: 0; display: grid; gap: .7rem; }
.rpgh-ev { border-left: 4px solid #e3b964; padding: .2rem 0 .2rem .8rem; }
.rpgh-ev-lineage { border-left-color: #6ac8ff; }
.rpgh-evg { background: rgba(227, 185, 100, .12); border: 1px solid var(--line); border-radius: 8px; padding: .65rem .8rem; color: var(--ink); cursor: pointer; font: inherit; text-align: left; width: 100%; min-height: 48px; }
.rpgh-evg b { font-size: 1.05rem; color: #fff; }
.rpgh-evg small { font: 600 .75rem "Chakra Petch", sans-serif; color: var(--mute); }
.rpgh-ev blockquote { margin: .5rem 0 0; font-style: italic; font-size: .96rem; line-height: 1.55; color: #eadfc8; }
.rpgh-ev cite { display: block; font: normal 600 .76rem "Chakra Petch", sans-serif; color: var(--mute); margin-top: .25rem; }
.rpgh-map-top { max-width: 40rem; margin: 1rem auto; }
.rpgh-map-top h4 { font: 400 1.4rem var(--hall); color: var(--gold2); }
.rpgh-map-top li { margin: .35rem 0; color: var(--mute); }

/* ---------- quiz ---------- */
.rpgh-quiz-eras { display: grid; grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); gap: .7rem; }
.rpgh-qera { position: relative; min-height: 120px; border-radius: 14px; overflow: hidden; border: 1px solid var(--line); background: #1a110b; color: #fff; text-align: left; padding: 3.4rem .8rem .8rem; cursor: pointer; display: flex; flex-direction: column; justify-content: flex-end; }
.rpgh-qera::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 10%, rgba(0, 0, 0, .88)); }
.rpgh-qera b, .rpgh-qera small { position: relative; z-index: 1; }
.rpgh-qera b { font: 700 1rem/1.2 var(--hall); }
.rpgh-qera small { font: 600 .78rem "Chakra Petch", sans-serif; color: var(--gold2); }
.rpgh-qall { background: linear-gradient(135deg, #5a3a12, #20140b); }
.rpgh-quiz-box { margin: 1.2rem 0; scroll-margin-top: 120px; }
.rpgh-q, .rpgh-qdone { background: rgba(30, 20, 12, .9); border: 2px solid var(--gold); border-radius: 16px; padding: 1.1rem; animation: rpghIn .45s both; }
.rpgh-qn { margin: 0; font: 700 .8rem "Chakra Petch", sans-serif; letter-spacing: .14em; text-transform: uppercase; color: var(--gold); }
.rpgh-qq { font-size: 1.25rem; line-height: 1.45; margin: .4rem 0 .9rem; color: #fff; }
.rpgh-qo { display: grid; gap: .55rem; }
.rpgh-qbtn { min-height: 54px; text-align: left; padding: .8rem 1rem; border-radius: 10px; border: 2px solid var(--line); background: #22160e; color: var(--ink); font: 600 1.05rem var(--read); cursor: pointer; transition: background .2s, border-color .2s, transform .2s; }
.rpgh-qbtn:hover:not([disabled]) { border-color: var(--gold); transform: translateX(4px); }
.rpgh-qbtn.ok { background: #245c27; border-color: #9fe39b; color: #fff; }
.rpgh-qbtn.no { background: #6a1f1a; border-color: #ff9a8a; color: #fff; animation: rpghShake .4s; }
@keyframes rpghShake { 25% { transform: translateX(-6px); } 75% { transform: translateX(6px); } }
.rpgh-qwhy { margin: .9rem 0 0; font-size: 1rem; line-height: 1.6; }
.rpgh-qscore { font: 2.6rem "Press Start 2P", monospace; color: var(--gold2); margin: .4rem 0; text-align: center; }
.rpgh-qdone p { text-align: center; font-size: 1.1rem; }

/* ---------- game page ---------- */
.rpgh-game { padding-bottom: 2rem; }
.rpgh-backbtn { display: inline-flex; align-items: center; min-height: 50px; margin: .8rem 0; padding: .7rem 1.1rem; border-radius: 10px; border: 2px solid var(--gold); background: rgba(40, 26, 16, .9); color: var(--gold2); font: 700 1.05rem var(--hall); cursor: pointer; }
.rpgh-gh { position: relative; isolation: isolate; margin: 0 -.9rem 1rem; padding: 5rem 1.1rem 1.6rem; overflow: hidden; min-height: 300px; display: flex; flex-direction: column; justify-content: flex-end; }
.rpgh-gh-bg { position: absolute; inset: 0; z-index: -1; background-size: cover; background-position: center; }
.rpgh-gh::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, rgba(13, 9, 7, .2), rgba(13, 9, 7, .7) 50%, #0d0907); }
.rpgh-gh-era { margin: 0; font: 700 .85rem "Chakra Petch", sans-serif; letter-spacing: .14em; text-transform: uppercase; color: var(--gold2); }
.rpgh-gh-t { margin: .3rem 0; font-size: clamp(2rem, 7vw, 3.6rem); line-height: 1.02; color: #fff; text-shadow: 0 4px 24px #000; }
.rpgh-gh-meta { margin: 0 0 .5rem; font: 600 1rem "Chakra Petch", sans-serif; color: #f0e2c4; }
.rpgh-gh-tags { display: flex; flex-wrap: wrap; gap: .35rem; margin: 0 0 .5rem; }
.rpgh-gemtag { background: linear-gradient(180deg, #d9f6ff, #5fbbe8) !important; color: #062330 !important; }
.rpgh-gh-read { margin: 0; font: 600 .9rem "Chakra Petch", sans-serif; color: var(--mute); }
.rpgh-gbody { max-width: 46rem; margin: 0 auto; }
.rpgh-facts-box { border: 1px solid var(--line); border-radius: 14px; padding: .9rem 1rem; background: rgba(30, 20, 12, .85); margin-bottom: 1rem; }
.rpgh-facts-box dl { display: grid; grid-template-columns: auto 1fr; gap: .35rem .9rem; margin: 0; font-size: .95rem; }
.rpgh-facts-box dt { font: 700 .74rem "Chakra Petch", sans-serif; text-transform: uppercase; letter-spacing: .08em; color: var(--gold); padding-top: .2rem; }
.rpgh-facts-box dd { margin: 0; }
.rpgh-impactbox { border-radius: 14px; padding: 1rem 1.1rem; margin-bottom: 1.2rem; background: linear-gradient(135deg, rgba(227, 185, 100, .22), rgba(227, 185, 100, .05)); border: 2px solid var(--gold); }
.rpgh-ib-h { margin: 0 0 .3rem; font: 700 .8rem "Chakra Petch", sans-serif; letter-spacing: .14em; text-transform: uppercase; color: var(--gold2); }
.rpgh-impactbox p:last-child { margin: 0; font-size: 1.15rem; line-height: 1.6; color: #fff; }
.rpgh-gal { display: flex; gap: .6rem; overflow-x: auto; scroll-snap-type: x mandatory; margin: 0 -.9rem; padding: 0 .9rem .5rem; -webkit-overflow-scrolling: touch; }
.rpgh-galb { flex: 0 0 78%; max-width: 360px; scroll-snap-align: start; padding: 0; border: 1px solid var(--line); border-radius: 12px; overflow: hidden; background: #000; cursor: zoom-in; position: relative; color: #fff; }
.rpgh-galb img { display: block; width: 100%; height: 220px; object-fit: cover; transition: transform .5s; }
.rpgh-galb:hover img { transform: scale(1.05); }
.rpgh-galb span { position: absolute; left: 0; right: 0; bottom: 0; padding: 1.4rem .7rem .55rem; font: 500 .8rem/1.3 "Chakra Petch", sans-serif; text-align: left; background: linear-gradient(180deg, transparent, rgba(0, 0, 0, .9)); }
.rpgh-gal-note { font: 600 .8rem "Chakra Petch", sans-serif; color: var(--mute); margin: .3rem 0 1.2rem; }
.rpgh-sec { margin: 0 0 1.6rem; }
.rpgh-sec h3 { font-size: 1.7rem; line-height: 1.2; margin: 1.6rem 0 .7rem; color: var(--gold2); border-bottom: 1px solid var(--line); padding-bottom: .35rem; }
.rpgh-sec h4 { font-size: 1.3rem; margin: 1.3rem 0 .5rem; color: #f6e6c0; }
.rpgh-sec p, .rpgh-sec li { font-size: 1.1rem; line-height: 1.78; }
.rpgh-sec p { margin: 0 0 1.05rem; }
.rpgh-sec blockquote { margin: 1rem 0; padding: .6rem 1rem; border-left: 4px solid var(--gold); background: rgba(227, 185, 100, .07); font-style: italic; }
.rpgh-lead p:first-of-type::first-letter { float: left; font: 400 3.6rem/.85 var(--hall); color: var(--gold); margin: .3rem .5rem 0 0; }
.rpgh-hcheck { display: inline-flex; width: 1.5rem; height: 1.5rem; border-radius: 50%; background: #2b6a2a; color: #eaffea; font-size: .85rem; align-items: center; justify-content: center; vertical-align: middle; }
.rpgh-hcheck.is-new { animation: rpghPop .5s cubic-bezier(.3, 1.6, .5, 1); }
@keyframes rpghPop { from { transform: scale(0); } }
.rpgh-toc { border: 1px solid var(--line); border-radius: 14px; padding: .9rem 1rem; background: rgba(30, 20, 12, .85); margin: 0 0 1.4rem; }
.rpgh-toc-h { margin: 0 0 .5rem; font: 700 .85rem "Chakra Petch", sans-serif; letter-spacing: .12em; text-transform: uppercase; color: var(--gold); }
.rpgh-toc-h span { float: right; color: #9fe39b; }
.rpgh-toc ol { list-style: none; margin: 0; padding: 0; }
.rpgh-tocb { width: 100%; text-align: left; background: none; border: 0; border-bottom: 1px solid rgba(227, 185, 100, .12); color: var(--ink); font: 600 1rem/1.3 var(--read); padding: .6rem .2rem; min-height: 44px; cursor: pointer; display: flex; align-items: center; gap: .5rem; }
.rpgh-tocb small { margin-left: auto; font: 600 .74rem "Chakra Petch", sans-serif; color: var(--mute); white-space: nowrap; }
.rpgh-tocb em { font: 700 .66rem "Chakra Petch", sans-serif; font-style: normal; text-transform: uppercase; color: #ff9a8a; border: 1px solid #ff9a8a; border-radius: 4px; padding: .1rem .3rem; }
.rpgh-toc-l3 .rpgh-tocb { padding-left: 1.4rem; font-size: .92rem; font-weight: 500; }
.rpgh-toc-l4 .rpgh-tocb { padding-left: 2.4rem; font-size: .88rem; font-weight: 500; }
.rpgh-tc { flex: 0 0 1.3rem; height: 1.3rem; border-radius: 50%; border: 1px dashed rgba(255, 255, 255, .3); display: inline-flex; align-items: center; justify-content: center; font-size: .75rem; color: #9fe39b; }
.rpgh-loading { color: var(--mute); margin: 0; }
.rpgh-seal { border: 2px dashed #ff9a8a; border-radius: 14px; padding: 1rem; background: repeating-linear-gradient(135deg, rgba(120, 30, 20, .25) 0 12px, rgba(60, 15, 10, .25) 12px 24px); }
.rpgh-seal p { margin: 0 0 .5rem; color: #ffd8cf; }
.rpgh-reveal { background: linear-gradient(180deg, #ffd8cf, #e06a55 55%, #a63a28); border-color: #ffe9e3; box-shadow: 0 4px 0 #5a1b10, 0 0 20px rgba(255, 120, 100, .35); }
.rpgh-reveal small { color: #4a1208; }
.rpgh-spoil.is-open .rpgh-sealed { animation: rpghIn .5s both; }
.rpgh-end { display: block; height: 1px; }
.rpgh-pn { display: grid; gap: .3rem; margin-top: 2rem; }
.rpgh-wiki { background: linear-gradient(180deg, #e8eef6, #b5c6da 55%, #8197b0); border-color: #fff; box-shadow: 0 4px 0 #3d4d60; }
.rpgh-gquiz .rpgh-quiz-box { margin: .4rem 0; }

/* ---------- lightbox ---------- */
.rpgh-lb { position: fixed; inset: 0; z-index: 200; background: rgba(5, 3, 2, .95); display: flex; align-items: center; justify-content: center; padding: env(safe-area-inset-top) .5rem env(safe-area-inset-bottom); }
.rpgh-lb-fig { margin: 0; max-width: min(1100px, 100%); display: flex; flex-direction: column; align-items: center; }
.rpgh-lb-fig img { max-width: 100%; max-height: 72vh; object-fit: contain; border-radius: 8px; opacity: 0; transform: scale(.97); transition: opacity .35s, transform .35s; }
.rpgh-lb-fig img.on { opacity: 1; transform: none; }
.rpgh-lb-fig figcaption { margin-top: .7rem; text-align: center; color: #efe4cf; font-size: 1rem; line-height: 1.45; max-width: 46rem; }
.rpgh-lb-fig figcaption small { display: block; margin-top: .35rem; font: 500 .78rem "Chakra Petch", sans-serif; color: #bfae90; }
.rpgh-lb-x { position: absolute; top: calc(.6rem + env(safe-area-inset-top)); right: .6rem; width: 52px; height: 52px; border-radius: 50%; border: 2px solid #e3b964; background: #1b1108; color: #f6dc9c; font-size: 2rem; line-height: 1; cursor: pointer; z-index: 2; }
.rpgh-lb-nav { position: absolute; top: 50%; transform: translateY(-50%); width: 52px; height: 72px; border-radius: 10px; border: 1px solid rgba(227, 185, 100, .5); background: rgba(27, 17, 8, .8); color: #f6dc9c; font-size: 2.4rem; cursor: pointer; z-index: 2; }
.rpgh-lb-prev { left: .4rem; } .rpgh-lb-next { right: .4rem; }

/* ---------- toast ---------- */
.rpgh-toast { position: fixed; left: 50%; bottom: calc(1.2rem + env(safe-area-inset-bottom)); transform: translate(-50%, 140%); z-index: 210; background: #245c27; color: #fff; border: 2px solid #9fe39b; border-radius: 12px; padding: .8rem 1.1rem; font: 700 1rem var(--read); box-shadow: 0 10px 30px rgba(0, 0, 0, .5); transition: transform .45s cubic-bezier(.3, 1.4, .5, 1); max-width: 92vw; }
.rpgh-toast.on { transform: translate(-50%, 0); }

/* ---------- footer ---------- */
.rpgh-foot { max-width: 46rem; margin: 2.5rem auto 0; border-top: 1px solid var(--line); padding-top: 1rem; }
.rpgh-foot p { font-size: .85rem; line-height: 1.6; color: var(--mute); }

/* =================== ERA STYLES: each era looks like its own age =================== */
/* Roots: green-screen terminal */
.rpgh-st-terminal .rpgh-era-t h3, .rpgh-game.rpgh-st-terminal .rpgh-gh-t { font-family: "VT323", monospace; color: #8dff9a; text-shadow: 0 0 12px rgba(120, 255, 140, .6); letter-spacing: .03em; }
.rpgh-era.rpgh-st-terminal .rpgh-era-intro p { font-family: "IBM Plex Mono", monospace; font-size: 1rem; color: #c8f5cd; }
.rpgh-card.rpgh-st-terminal .rpgh-front { background: #071209; border-color: rgba(120, 255, 140, .35); }
.rpgh-card.rpgh-st-terminal .rpgh-front::before { content: ""; position: absolute; inset: 0; z-index: 3; pointer-events: none; background: repeating-linear-gradient(180deg, rgba(0, 0, 0, .18) 0 1px, transparent 1px 3px); }
.rpgh-card.rpgh-st-terminal .rpgh-art::after { background: linear-gradient(180deg, transparent 50%, #071209); }
.rpgh-card.rpgh-st-terminal .rpgh-ct { font-family: "VT323", monospace; font-size: 1.7rem; color: #8dff9a; }
.rpgh-card.rpgh-st-terminal .rpgh-back { background: #061008; border-color: #5fe27a; font-family: "IBM Plex Mono", monospace; }
.rpgh-card.rpgh-st-terminal .rpgh-hint { background: #5fe27a; color: #031006; font-family: "VT323", monospace; font-size: 1.05rem; }
/* 8/16-bit: classic blue menu window, pixel type */
.rpgh-st-pixel .rpgh-era-t h3, .rpgh-game.rpgh-st-pixel .rpgh-gh-t { font-family: "Press Start 2P", monospace; font-size: clamp(1.05rem, 4.2vw, 1.9rem); line-height: 1.4; color: #fff; text-shadow: 3px 3px 0 #1a2a8a; }
.rpgh-card.rpgh-st-pixel .rpgh-front, .rpgh-card.rpgh-st-pixel .rpgh-back { background: linear-gradient(180deg, #2a3fb8, #0c1660); border: 4px solid #fff; border-radius: 6px; box-shadow: 0 0 0 3px #0c1660, 0 10px 24px rgba(0, 0, 0, .5); image-rendering: pixelated; }
.rpgh-card.rpgh-st-pixel .rpgh-art::after { background: linear-gradient(180deg, transparent 50%, #16238a); }
.rpgh-card.rpgh-st-pixel .rpgh-ct { font-family: "Press Start 2P", monospace; font-size: .92rem; line-height: 1.45; }
.rpgh-card.rpgh-st-pixel .rpgh-cs { top: calc(54% + 3.6rem); color: #d6dcff; }
.rpgh-card.rpgh-st-pixel .rpgh-hint { background: #fff; color: #0c1660; font-family: "Press Start 2P", monospace; font-size: .6rem; letter-spacing: .05em; }
.rpgh-card.rpgh-st-pixel .rpgh-hint::before { content: "\25B6  "; }
.rpgh-card.rpgh-st-pixel .rpgh-tags i { background: rgba(255, 255, 255, .12); border-color: rgba(255, 255, 255, .5); color: #fff; border-radius: 0; }
.rpgh-card.rpgh-st-pixel .rpgh-impact b, .rpgh-card.rpgh-st-pixel .rpgh-facts dt { color: #ffe066; }
.rpgh-card.rpgh-st-pixel .rpgh-bk-lead { color: #d6dcff; }
.rpgh-card.rpgh-st-pixel .rpgh-year { border-radius: 0; border: 2px solid #fff; background: #0c1660; }
/* CRPG golden age: parchment & ink */
.rpgh-st-parchment .rpgh-era-t h3, .rpgh-game.rpgh-st-parchment .rpgh-gh-t { font-family: "IM Fell English", Georgia, serif; color: #f3dfb0; }
.rpgh-era.rpgh-st-parchment .rpgh-era-intro { background: linear-gradient(180deg, #e9d7ae, #d8c08c); color: #2d1d0d; padding: 1.1rem 1.2rem; border-radius: 6px; box-shadow: inset 0 0 40px rgba(110, 70, 20, .45), 0 8px 24px rgba(0, 0, 0, .45); }
.rpgh-era.rpgh-st-parchment .rpgh-era-intro p { font-family: "IM Fell English", Georgia, serif; font-size: 1.12rem; }
.rpgh-card.rpgh-st-parchment .rpgh-front, .rpgh-card.rpgh-st-parchment .rpgh-back { background: linear-gradient(180deg, #ecdcb4, #d3b983); color: #2d1d0d; border: 3px double #6b4a1f; box-shadow: inset 0 0 50px rgba(110, 70, 20, .45), 0 10px 26px rgba(0, 0, 0, .5); }
.rpgh-card.rpgh-st-parchment .rpgh-art { filter: sepia(.35) contrast(1.05); }
.rpgh-card.rpgh-st-parchment .rpgh-art::after { background: linear-gradient(180deg, transparent 45%, #e2cfa2); }
.rpgh-card.rpgh-st-parchment .rpgh-ct { font-family: "IM Fell English", Georgia, serif; color: #2d1d0d; font-size: 1.45rem; }
.rpgh-card.rpgh-st-parchment .rpgh-cs, .rpgh-card.rpgh-st-parchment .rpgh-bk-lead { color: #5a3e1c; }
.rpgh-card.rpgh-st-parchment .rpgh-tags i { background: rgba(107, 74, 31, .12); border-color: #8a6a3a; color: #4a2f10; }
.rpgh-card.rpgh-st-parchment .rpgh-hint { background: #6b2a1a; color: #f3dfb0; font-family: "IM Fell English SC", serif; letter-spacing: .1em; }
.rpgh-card.rpgh-st-parchment .rpgh-bk-t, .rpgh-card.rpgh-st-parchment .rpgh-impact, .rpgh-card.rpgh-st-parchment .rpgh-facts dd { color: #2d1d0d; }
.rpgh-card.rpgh-st-parchment .rpgh-impact b, .rpgh-card.rpgh-st-parchment .rpgh-facts dt, .rpgh-card.rpgh-st-parchment .rpgh-bk-t span { color: #8a2a12; }
.rpgh-card.rpgh-st-parchment .rpgh-unflip { color: #5a3e1c; border-color: #8a6a3a; }
.rpgh-card.rpgh-st-parchment.is-gem .rpgh-front { border-color: #2b6f93; }
/* Disc era: iridescent jewel case */
.rpgh-st-disc .rpgh-era-t h3, .rpgh-game.rpgh-st-disc .rpgh-gh-t { font-family: "Exo 2", sans-serif; font-weight: 700; letter-spacing: .04em; background: linear-gradient(90deg, #b9f3ff, #ffe2a6, #fff3c4, #b9f3ff); -webkit-background-clip: text; background-clip: text; color: transparent; }
.rpgh-card.rpgh-st-disc .rpgh-front, .rpgh-card.rpgh-st-disc .rpgh-back { background: linear-gradient(160deg, #141a2e, #0a0d18 60%, #0c1a2e); border: 1px solid rgba(190, 220, 255, .45); }
.rpgh-card.rpgh-st-disc .rpgh-front::before { content: ""; position: absolute; inset: 0; z-index: 3; pointer-events: none; background: conic-gradient(from 210deg at 80% 10%, transparent 0 60%, rgba(140, 255, 240, .1), rgba(255, 200, 120, .12), rgba(255, 240, 140, .1), transparent 90%); mix-blend-mode: screen; }
.rpgh-card.rpgh-st-disc .rpgh-art::after { background: linear-gradient(180deg, transparent 50%, #0e1222); }
.rpgh-card.rpgh-st-disc .rpgh-ct { font-family: "Exo 2", sans-serif; font-weight: 700; }
.rpgh-card.rpgh-st-disc .rpgh-hint { background: linear-gradient(90deg, #8ef0ff, #ffc46b, #ffe39a); color: #10122a; font-family: "Exo 2", sans-serif; }
/* Western 3D: carved stone & steel */
.rpgh-st-vista .rpgh-era-t h3, .rpgh-game.rpgh-st-vista .rpgh-gh-t { font-family: "Cinzel", serif; font-weight: 700; letter-spacing: .06em; color: #eef3f7; }
.rpgh-card.rpgh-st-vista .rpgh-front, .rpgh-card.rpgh-st-vista .rpgh-back { background: linear-gradient(180deg, #2a3138, #14181c); border: 1px solid #8fa3b3; }
.rpgh-card.rpgh-st-vista .rpgh-art::after { background: linear-gradient(180deg, transparent 50%, #1d2226); }
.rpgh-card.rpgh-st-vista .rpgh-ct { font-family: "Cinzel", serif; font-size: 1.2rem; }
.rpgh-card.rpgh-st-vista .rpgh-hint { background: linear-gradient(90deg, #8fa3b3, #dfe8ee); color: #12171b; font-family: "Cinzel", serif; }
/* Souls: ash & ember */
.rpgh-st-ash .rpgh-era-t h3, .rpgh-game.rpgh-st-ash .rpgh-gh-t { font-family: "Cormorant Garamond", serif; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: #e8e2d8; }
.rpgh-card.rpgh-st-ash .rpgh-front, .rpgh-card.rpgh-st-ash .rpgh-back { background: linear-gradient(180deg, #232120, #0f0e0d); border: 1px solid #6f665b; }
.rpgh-card.rpgh-st-ash .rpgh-art { filter: grayscale(.45) contrast(1.1); }
.rpgh-card.rpgh-st-ash .rpgh-art::after { background: linear-gradient(180deg, transparent 50%, #191817); }
.rpgh-card.rpgh-st-ash .rpgh-ct { font-family: "Cormorant Garamond", serif; font-size: 1.5rem; letter-spacing: .04em; }
.rpgh-card.rpgh-st-ash .rpgh-hint { background: linear-gradient(90deg, #6a2a10, #e2752e); color: #fff1e0; font-family: "Cormorant Garamond", serif; font-weight: 700; }
.rpgh-card.rpgh-st-ash .rpgh-front:hover { box-shadow: 0 0 30px rgba(226, 117, 46, .45), 0 0 0 2px #e2752e; }
/* Modern masters: sleek glass */
.rpgh-st-modern .rpgh-era-t h3, .rpgh-game.rpgh-st-modern .rpgh-gh-t { font-family: "Outfit", "Josefin Sans", sans-serif; font-weight: 600; letter-spacing: .02em; }
.rpgh-card.rpgh-st-modern .rpgh-front, .rpgh-card.rpgh-st-modern .rpgh-back { background: linear-gradient(160deg, rgba(16, 30, 52, .95), rgba(14, 18, 34, .95)); border: 1px solid rgba(255, 255, 255, .18); border-radius: 22px; }
.rpgh-card.rpgh-st-modern .rpgh-face { border-radius: 22px; }
.rpgh-card.rpgh-st-modern .rpgh-art::after { background: linear-gradient(180deg, transparent 45%, #0e1a2c); }
.rpgh-card.rpgh-st-modern .rpgh-ct { font-family: "Outfit", sans-serif; font-weight: 600; }
.rpgh-card.rpgh-st-modern .rpgh-hint { background: linear-gradient(90deg, #ff5f6d, #ffc371); color: #1a0b0e; font-family: "Outfit", sans-serif; letter-spacing: .08em; }
/* Now: gilded impressionist */
.rpgh-st-now .rpgh-era-t h3, .rpgh-game.rpgh-st-now .rpgh-gh-t { font-family: "Bodoni Moda", serif; font-weight: 500; font-style: italic; color: #fff4dc; }
.rpgh-card.rpgh-st-now .rpgh-front, .rpgh-card.rpgh-st-now .rpgh-back { background: linear-gradient(180deg, #14213a, #0a1222); border: 1px solid #e3c98a; }
.rpgh-card.rpgh-st-now .rpgh-art::after { background: linear-gradient(180deg, transparent 45%, #0f1a30); }
.rpgh-card.rpgh-st-now .rpgh-ct { font-family: "Bodoni Moda", serif; font-style: italic; font-weight: 500; font-size: 1.4rem; }
.rpgh-card.rpgh-st-now .rpgh-hint { background: linear-gradient(90deg, #e3c98a, #fff4dc); color: #0f1a30; font-family: "Italiana", serif; font-weight: 700; }
/* map nodes pick up era accents */
.rpgh-node.rpgh-st-pixel { border-color: #8ea0ff; } .rpgh-node.rpgh-st-terminal { border-color: #5fe27a; }
.rpgh-node.rpgh-st-parchment { border-color: #c8a46a; } .rpgh-node.rpgh-st-disc { border-color: #b9c8ff; }
.rpgh-node.rpgh-st-ash { border-color: #e2752e; } .rpgh-node.rpgh-st-modern { border-color: #ff8a8a; }

@media (min-width: 760px) {
  .rpgh-root { padding: 0 1.4rem; }
  .rpgh-bar, .rpgh-hero, .rpgh-gh { margin-left: -1.4rem; margin-right: -1.4rem; }
  .rpgh-t1 { font-size: 3.6rem; } .rpgh-t2 { font-size: 3rem; } .rpgh-t3 { font-size: 5rem; }
  .rpgh-tabs { top: 62px; }
  .rpgh-galb { flex-basis: 46%; }
  .rpgh-gh { min-height: 380px; }
}
@media (max-width: 400px) {
  .rpgh-tab { font-size: .8rem; } .rpgh-tab small { display: none; } .rpgh-tab { min-height: 48px; }
  .rpgh-leave { font-size: .85rem; padding: .6rem .65rem; }
  .rpgh-mark-t { display: none; }
}

/* ---------- reduced motion: no flips, slides, parallax or drawing ---------- */
@media (prefers-reduced-motion: reduce) {
  .rpgh-root *, .rpgh-root *::before, .rpgh-root *::after { animation: none !important; transition: none !important; }
  .rpgh-rv { opacity: 1; transform: none; }
  .rpgh-flip { transform: none !important; }
  .rpgh-back { transform: none; visibility: hidden; }
  .rpgh-card.is-flipped .rpgh-back { visibility: visible; }
  .rpgh-card.is-flipped .rpgh-front { visibility: hidden; }
  .rpgh-edge { stroke-dashoffset: 0; }
  .rpgh-edge-lineage { stroke-dasharray: .012 .01; }
}

.rpgh-bandline { position: absolute; left: 0; right: 0; height: 1px; background: linear-gradient(90deg, transparent, rgba(227, 185, 100, .25), transparent); }

/* ---------- trailers (single-video manager) ---------- */
.rpgh-trailer { margin: 0 0 1.3rem; }
.rpgh-video { position: relative; aspect-ratio: 16 / 9; width: 100%; border-radius: 14px; overflow: hidden; background: #000; border: 2px solid var(--gold); box-shadow: 0 10px 30px rgba(0, 0, 0, .55); }
.rpgh-video iframe, .rpgh-video > div { position: absolute; inset: 0; width: 100% !important; height: 100% !important; border: 0; }
.rpgh-vface { position: absolute; inset: 0; padding: 0; border: 0; background: #000; cursor: pointer; width: 100%; }
.rpgh-vface img { width: 100%; height: 100%; object-fit: cover; opacity: .85; }
.rpgh-vplay { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); width: 76px; height: 76px; border-radius: 50%; background: rgba(227, 185, 100, .95); color: #1b1108; font-size: 2rem; display: flex; align-items: center; justify-content: center; padding-left: 6px; box-shadow: 0 0 30px rgba(227, 185, 100, .7); }
.rpgh-vlab { position: absolute; left: 0; right: 0; bottom: 0; padding: .6rem .8rem; font: 600 .82rem "Chakra Petch", sans-serif; color: #fff; background: linear-gradient(180deg, transparent, rgba(0, 0, 0, .85)); text-align: left; }
.rpgh-vmute { position: absolute; z-index: 3; right: .6rem; bottom: 3.2rem; min-height: 48px; padding: .6rem 1rem; border-radius: 999px; border: 2px solid #fff3cf; background: linear-gradient(180deg, #fff0b8, #e3b964); color: #1b1108; font: 800 1rem var(--read); cursor: pointer; box-shadow: 0 4px 18px rgba(0, 0, 0, .6); }
.rpgh-vcred { margin: .45rem 0 0; font: 500 .8rem/1.4 "Chakra Petch", sans-serif; color: var(--mute); }
.rpgh-sound { min-height: 44px; padding: .5rem .7rem; border-radius: 8px; border: 1px solid var(--line); background: rgba(40, 26, 16, .9); color: var(--gold2); font: 700 .8rem "Chakra Petch", sans-serif; cursor: pointer; white-space: nowrap; }
.rpgh-sound[aria-pressed="true"] { background: var(--gold); color: #1b1108; }
@media (max-width: 400px) { .rpgh-sound { padding: .45rem .5rem; font-size: .72rem; } .rpgh-prog-l { display: none; } }

/* ---------- intro montage ---------- */
.rpgh-intro { position: fixed; inset: 0; z-index: 300; background: #000; overflow: hidden; transition: opacity .6s; }
.rpgh-intro.out { opacity: 0; pointer-events: none; }
.rpgh-ia { position: absolute; inset: 0; background-size: cover; background-position: center; opacity: 0; animation: rpghIa .9s calc(var(--k) * .55s) both; display: flex; flex-direction: column; align-items: center; justify-content: center; text-shadow: 0 4px 24px #000; }
.rpgh-ia::before { content: ""; position: absolute; inset: 0; background: radial-gradient(circle, rgba(0, 0, 0, .15), rgba(0, 0, 0, .7)); }
.rpgh-ia b, .rpgh-ia span { position: relative; }
.rpgh-ia b { font: 4.5rem/1 "VT323", monospace; color: #fff3cf; letter-spacing: .08em; }
.rpgh-ia span { font: 1.2rem/1.3 "IM Fell English SC", serif; color: #fff; letter-spacing: .1em; text-transform: uppercase; text-align: center; padding: 0 1rem; }
@keyframes rpghIa { 0% { opacity: 0; transform: scale(1.12); } 25% { opacity: 1; } 80% { opacity: 1; } 100% { opacity: 0; transform: scale(1); } }
.rpgh-iend { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; opacity: 0; animation: rpghIn 1s 4.5s both; background: radial-gradient(circle, #2a1a0c, #000 70%); text-align: center; }
.rpgh-iend p { font: .95rem "IM Fell English SC", serif; letter-spacing: .2em; text-transform: uppercase; color: #e3b964; margin: 0 0 .6rem; }
.rpgh-iend h3 { margin: 0; font: 600 3rem/1 "Outfit", sans-serif; color: #fff3cf; }
.rpgh-iend h3 i { font-family: "IM Fell English", serif; color: #e3b964; }
.rpgh-iskip { position: absolute; right: 1rem; bottom: calc(1.2rem + env(safe-area-inset-bottom)); min-height: 48px; padding: .6rem 1.1rem; border-radius: 999px; border: 2px solid #e3b964; background: rgba(0, 0, 0, .6); color: #fff3cf; font: 700 1rem "Chakra Petch", sans-serif; cursor: pointer; z-index: 2; }

/* ===== Site skin (Dec 2 2026 recolor): amber #ffb21e, gold #ffd36b, #ff8f1f, navy #16284f/#05070f, cyan #38e8ff. No purple. Era card styles above stay as each era's own look. ===== */
html[data-hub="rpg-hall"] .rd-nav, html[data-hub="rpg-hall"] .rd-banner, html[data-hub="rpg-hall"] .rd-rays { display: none !important; }
html[data-hub="rpg-hall"] main.site { padding-top: 0 !important; }
html[data-hub="rpg-hall"], html[data-hub="rpg-hall"] body { background: #05070f; color: #eef2ff; }
html[data-hub="rpg-hall"] #rpg-hall.section {
  background:
    radial-gradient(90% 45% at 50% 0%, rgba(255, 178, 30, .13), transparent 60%),
    radial-gradient(60% 40% at 100% 30%, rgba(56, 232, 255, .07), transparent 70%),
    linear-gradient(180deg, #16284f, #070b18 40%, #05070f);
}
.rpgh-root { --gold: #ffb21e; --gold2: #ffd36b; --cyan: #38e8ff; --ink: #eef2ff; --mute: #aab4d0; --wood: #0e1628; --line: rgba(255, 178, 30, .3); --line2: rgba(56, 232, 255, .28); }
.rpgh-mark-t, .rpgh-prog, .rpgh-tab small, .rpgh-stats li, .rpgh-count, .rpgh-qn, .rpgh-toc-h, .rpgh-ib-h, .rpgh-facts-box dt, .rpgh-gh-era { font-family: "Inter", "Chakra Petch", system-ui, sans-serif; }
.rpgh-bar { background: linear-gradient(180deg, rgba(5, 7, 15, .96), rgba(5, 7, 15, .84)); border-bottom: 1px solid rgba(255, 255, 255, .08); }
.rpgh-leave { font-family: "Sora", "Inter", sans-serif; letter-spacing: .01em; color: #05070f !important; background: linear-gradient(100deg, #ffd36b, #ffb21e); box-shadow: 0 0 0 1px rgba(255, 217, 138, .6), 0 6px 20px rgba(255, 178, 30, .25); border-radius: 999px; }
.rpgh-yr { color: var(--cyan); text-shadow: 0 0 12px rgba(56, 232, 255, .45); }
.rpgh-prog-bar b, .rpgh-railbar em { background: linear-gradient(90deg, var(--cyan), var(--gold)); }
.rpgh-hero::after { background: radial-gradient(80% 55% at 50% 50%, rgba(5, 7, 15, .55), rgba(5, 7, 15, .12) 80%), linear-gradient(180deg, rgba(5, 7, 15, .05) 60%, #070b18 99%); }
.rpgh-stats li { background: rgba(8, 14, 28, .72); border-color: var(--line2); }
.rpgh-begin { font-family: "Sora", "Inter", sans-serif; color: #05070f; background: linear-gradient(100deg, #ffd36b, #ffb21e 55%, #ff8f1f); box-shadow: 0 6px 26px rgba(255, 178, 30, .4), 0 0 0 1px rgba(255, 230, 170, .7); border-radius: 999px; }
@keyframes rpghPulse { 50% { box-shadow: 0 6px 40px rgba(255, 178, 30, .7), 0 0 0 1px rgba(56, 232, 255, .8); } }
.rpgh-tabs { background: linear-gradient(180deg, rgba(5, 7, 15, .96), rgba(5, 7, 15, .86)); }
.rpgh-tab { font-family: "Sora", "Inter", sans-serif; font-size: .86rem; background: rgba(14, 22, 40, .8); border-color: rgba(255, 255, 255, .1); border-radius: 14px; }
.rpgh-tab:hover { border-color: var(--line2); }
.rpgh-tab[aria-selected="true"] { background: linear-gradient(100deg, #ffd36b, #ffb21e); color: #05070f; border-color: #ffe39a; box-shadow: 0 0 22px rgba(255, 178, 30, .3); }
.rpgh-tab[aria-selected="true"] small { color: #3a2a08; }
.rpgh-filters, .rpgh-map-panel, .rpgh-facts-box, .rpgh-toc { background: linear-gradient(160deg, rgba(18, 26, 48, .86), rgba(8, 12, 24, .9)); border-color: rgba(255, 255, 255, .09); }
.rpgh-q, .rpgh-qdone { background: linear-gradient(160deg, rgba(18, 26, 48, .92), rgba(8, 12, 24, .94)); }
.rpgh-search input, .rpgh-sel select { background: #070b18; border-color: rgba(255, 255, 255, .14); }
.rpgh-search input:focus { border-color: var(--cyan); box-shadow: 0 0 0 3px rgba(56, 232, 255, .22); }
.rpgh-chip { border-color: rgba(255, 255, 255, .14); background: rgba(14, 22, 40, .8); }
.rpgh-chip.on { background: linear-gradient(100deg, #ffd36b, #ffb21e); color: #05070f; border-color: #ffe39a; }
.rpgh-back { background: linear-gradient(180deg, #121c33, #080d1a); }
.rpgh-backbtn, .rpgh-sound { background: rgba(14, 22, 40, .9); border-color: var(--line2); color: var(--ink); font-family: "Inter", sans-serif; border-radius: 999px; }
.rpgh-sound[aria-pressed="true"] { background: rgba(56, 232, 255, .14); color: #dffaff; border-color: var(--cyan); }
.rpgh-sound[aria-pressed="false"] { color: var(--mute); }
.rpgh-tags i, .rpgh-gh-tags i { background: rgba(56, 232, 255, .08); border-color: var(--line2); color: #c9f6ff; }
.rpgh-impactbox { background: linear-gradient(135deg, rgba(255, 178, 30, .18), rgba(56, 232, 255, .05)); }
.rpgh-node.on { background: var(--gold); color: #05070f; box-shadow: 0 0 22px rgba(255, 178, 30, .75); }
.rpgh-node.rel { box-shadow: 0 0 0 2px var(--cyan); }
.rpgh-video { border-color: var(--line2); box-shadow: 0 10px 30px rgba(0, 0, 0, .55), 0 0 24px rgba(56, 232, 255, .12); }
.rpgh-gh::after { background: linear-gradient(180deg, rgba(5, 7, 15, .2), rgba(5, 7, 15, .72) 50%, #070b18); }
.rpgh-sec blockquote { background: rgba(56, 232, 255, .05); }
.rpgh-front:focus-visible, .rpgh-tab:focus-visible, .rpgh-chip:focus-visible, .rpgh-more:focus-visible { outline: 3px solid var(--cyan); outline-offset: 2px; }
@media (max-width: 480px) {
  .rpgh-bar { gap: .4rem; }
  .rpgh-leave { font-size: .86rem; padding: .6rem .75rem; }
  .rpgh-yr { font-size: 1.25rem; }
  .rpgh-mark-t { display: none; }
  .rpgh-sound { padding: .45rem .6rem; font-size: .74rem; }
  .rpgh-prog { min-width: 52px; font-size: .74rem; }
}
@media (max-width: 400px) { .rpgh-sound .rpgh-sl, .rpgh-mark { display: none; } }
html[data-hub="rpg-hall"] { scroll-behavior: auto !important; }
html[data-hub="rpg-hall"] #rpg-hall { overflow-anchor: none; }
/* shared SBVideo facade inside the hall */
.rpgh-video.sbv { margin: 0; overflow: hidden; border-radius: 14px; }
.rpgh-video.sbv .sbv-cap { display: none; }
.rpgh-video.sbv .sbv-play { background: linear-gradient(180deg, rgba(5, 7, 15, .1), rgba(5, 7, 15, .55)); font: 700 1rem "Inter", sans-serif; }
.rpgh-video.sbv .sbv-play span { width: 76px; height: 76px; border-radius: 50%; display: grid; place-items: center; background: rgba(255, 178, 30, .92); color: #05070f; font-size: 2rem; box-shadow: 0 0 0 6px rgba(255, 178, 30, .25); }
.rpgh-video.sbv .sbv-unmute { top: auto; bottom: 3.2rem; }
