/* Community → Lore: a scrolling journey through the story of Chivalry 2.
   The stage is always dark (night, fire, desert dusk), the reference part below follows the site theme.
   Motion: public/lore.js moves the [data-depth] layers and reveals the chapter cards. */

.lore {
  --agatha: #2f6fd6; --agatha-2: #f4f1e8;
  --mason: #c62f2f; --mason-2: #17110f;
  --tenosia: #c8901a; --tenosia-2: #285a3c;
  --lore-serif: "Iowan Old Style", "Palatino Linotype", Palatino, "Book Antiqua", Georgia, "Noto Serif", "Noto Serif SC", serif;
  --lore-ink: #f3ecdf;
  --lore-gold: #e7c47a;
}

/* ---------- stage ---------- */
.lore-stage {
  position: relative; overflow: hidden; overflow: clip; isolation: isolate;
  border-radius: 28px; background: #0b0d12; color: var(--lore-ink);
  box-shadow: 0 30px 80px -30px rgba(0, 0, 0, .55);
}
.lore-scene {
  position: relative; display: flex; align-items: center;
  min-height: clamp(560px, 92vh, 980px); padding: 64px 0 96px;
  --sky1: #0b1020; --sky2: #27304a; --far: #222a40; --mid: #161c2d; --near: #0d111b; --sun: #f3ecd2; --flame: #ff8a2a; --fog: rgba(11, 13, 18, .0);
}
.lore-bg { position: absolute; inset: 0; z-index: 0; pointer-events: none; background: linear-gradient(180deg, var(--sky1) 0%, var(--sky2) 72%); }
.lore-bg::after { content: ""; position: absolute; inset: auto 0 0; height: 22%; background: linear-gradient(180deg, transparent, #0b0d12); z-index: 5; }
.lore-scene + .lore-scene .lore-bg::before { content: ""; position: absolute; inset: 0 0 auto; height: 70px; background: linear-gradient(180deg, #0b0d12, transparent); z-index: 5; }
.lore-layer { position: absolute; left: 0; width: 100%; bottom: -60px; height: calc(clamp(300px, 32vw, 70%) + 60px); will-change: transform; }
.lore-layer.l-sky { height: 100%; bottom: auto; top: 0; }
.scene-hero .lore-layer:not(.l-sky):not(.lore-particles) { height: calc(clamp(320px, 40vw, 62%) + 60px); }
.lore-layer path { fill: var(--mid); }
.l-far path { fill: var(--far); }
.l-mid path { fill: var(--mid); }
.l-near path { fill: var(--near); }
.lore-layer .sun, .lore-layer .moon { fill: var(--sun); }
.lore-layer .moon { filter: drop-shadow(0 0 30px rgba(243, 236, 210, .45)); }
.lore-layer .sun { filter: drop-shadow(0 0 40px var(--sun)); opacity: .92; }
.lore-layer .glow { fill: #ff5a12; opacity: .38; filter: blur(60px); }
.lore-layer .smoke { fill: rgba(16, 6, 6, .5); }
.lore-layer .pole { fill: var(--near); }
.f-agatha .flag { fill: var(--agatha); }
.f-mason .flag { fill: var(--mason); }
.f-tenosia .flag { fill: var(--tenosia); }
.l-far .f-agatha .pole, .l-mid .pole { fill: var(--mid); }
.torn .flag { opacity: .8; }
.flag { transform-box: fill-box; transform-origin: 0 50%; animation: lore-wave 3.8s ease-in-out infinite alternate; }
.f-mason .flag { animation-delay: -1.3s; }
.f-tenosia .flag { animation-delay: -2.1s; }
@keyframes lore-wave { from { transform: skewY(-4deg) scaleX(.96); } to { transform: skewY(3deg) scaleX(1.02); } }

.lore-layer .flame { fill: var(--flame); transform-box: fill-box; transform-origin: 50% 100%; animation: lore-flick .9s ease-in-out infinite alternate; filter: drop-shadow(0 0 12px var(--flame)); }
.lore-layer .flame:nth-child(2n) { animation-duration: 1.2s; animation-delay: -.4s; }
.lore-layer .flame:nth-child(3n) { animation-duration: 1.05s; animation-delay: -.7s; }
@keyframes lore-flick { from { transform: scale(1, .86) skewX(-3deg); } to { transform: scale(.94, 1.08) skewX(3deg); } }

/* particles */
.lore-particles { height: 100%; bottom: 0; }
.lore-particles circle { transform-box: fill-box; }
.p-star circle { fill: #fff; opacity: .7; animation: lore-twinkle 3.4s ease-in-out infinite alternate; }
.p-star circle:nth-child(3n) { animation-delay: -1.2s; opacity: .45; }
.p-star circle:nth-child(5n) { animation-delay: -2.3s; }
@keyframes lore-twinkle { to { opacity: .15; } }
.p-snow circle { fill: #fff; opacity: .75; animation: lore-fall 9s linear infinite; }
.p-ember circle { fill: #ffb347; opacity: .9; animation: lore-rise 7s linear infinite; filter: drop-shadow(0 0 4px #ff7a1a); }
.p-sand circle { fill: #ffe8b0; opacity: .45; animation: lore-drift 11s linear infinite; }
.lore-particles circle:nth-child(4n+1) { animation-delay: -2s; animation-duration: 8s; }
.lore-particles circle:nth-child(4n+2) { animation-delay: -4.5s; animation-duration: 10s; }
.lore-particles circle:nth-child(4n+3) { animation-delay: -6s; animation-duration: 12s; }
.p-star circle:nth-child(4n+1), .p-star circle:nth-child(4n+2), .p-star circle:nth-child(4n+3) { animation-duration: 3.4s; }
@keyframes lore-fall { from { transform: translate(0, -60px); opacity: 0; } 15% { opacity: .8; } to { transform: translate(-30px, 120px); opacity: 0; } }
@keyframes lore-rise { from { transform: translate(0, 40px); opacity: 0; } 20% { opacity: .95; } to { transform: translate(24px, -200px); opacity: 0; } }
@keyframes lore-drift { from { transform: translate(-60px, 0); opacity: 0; } 20% { opacity: .5; } to { transform: translate(140px, -30px); opacity: 0; } }

/* palettes */
.scene-north { --sky1: #1c2a46; --sky2: #d9a98a; --far: #7a86a1; --mid: #3b4762; --near: #161d2c; --sun: #ffe2b0; }
.scene-desert { --sky1: #6b2e3a; --sky2: #f7b162; --far: #d78a4c; --mid: #a75a2c; --near: #4a2414; --sun: #fff1c7; }
.scene-war { --sky1: #1a0707; --sky2: #9c2f1a; --far: #5c2018; --mid: #2a0f0c; --near: #120706; --flame: #ff8a2a; }
.scene-forge { --sky1: #0c0909; --sky2: #3b1709; --far: #2a1513; --mid: #190d0b; --near: #0b0606; --flame: #ff7a1a; }
.scene-sea { --sky1: #1e2a48; --sky2: #eab08c; --far: #56617f; --mid: #2f4a72; --near: #172b4a; --sun: #ffe0b8; }
.scene-sea .sea-back path + path { fill: #0f1828; }
.scene-wall { --sky1: #2c1430; --sky2: #ef8a4c; --far: #5e2e2a; --mid: #3a1c18; --near: #1b0d0b; --sun: #ffd27a; --flame: #ff9a3a; }

/* ---------- hero ---------- */
.scene-hero { justify-content: center; text-align: center; min-height: clamp(600px, 96vh, 1000px); padding-top: 48px; }
.lore-hero-text { position: relative; z-index: 6; max-width: 760px; padding: 0 22px; }
.lore-eyebrow { color: var(--lore-gold); font-size: .78rem; font-weight: 800; letter-spacing: .22em; text-transform: uppercase; margin: 0 0 14px; }
.lore-hero-title { font-family: var(--lore-serif); font-weight: 700; font-size: clamp(2.3rem, 6.4vw, 4.8rem); line-height: 1.02; letter-spacing: -.01em; margin: 0 0 18px; color: #fff8ea; text-shadow: 0 6px 40px rgba(0, 0, 0, .6); text-wrap: balance; }
.lore-hero-lead { font-size: clamp(1rem, 1.6vw, 1.18rem); line-height: 1.6; color: rgba(243, 236, 223, .82); margin: 0 auto 22px; max-width: 560px; }
.lore-lang { font-size: .82rem; color: rgba(243, 236, 223, .6); margin: -10px 0 18px; }
.lore-begin {
  display: inline-flex; align-items: center; gap: 10px; padding: 13px 24px; border-radius: 999px;
  background: var(--lore-gold); color: #1b140a; font-weight: 800; letter-spacing: .01em;
  box-shadow: 0 10px 30px -8px rgba(231, 196, 122, .6), inset 0 1px 0 rgba(255, 255, 255, .5);
  transition: transform .2s ease, box-shadow .2s ease;
}
.lore-begin:hover { text-decoration: none; transform: translateY(-2px); box-shadow: 0 16px 36px -8px rgba(231, 196, 122, .7), inset 0 1px 0 rgba(255, 255, 255, .5); }
.lore-begin span { animation: lore-bob 1.6s ease-in-out infinite; }
@keyframes lore-bob { 50% { transform: translateY(3px); } }
/* three powers under the start: portrait cards that lift on hover */
.lore-powers { list-style: none; margin: 34px auto 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; max-width: 700px; }
.lore-power {
  position: relative; display: block; border-radius: 18px; overflow: hidden; color: var(--lore-ink);
  border: 1px solid rgba(231, 196, 122, .35); box-shadow: 0 24px 50px -20px rgba(0, 0, 0, .8);
  transition: transform .35s cubic-bezier(.2, .7, .2, 1), box-shadow .35s ease, border-color .35s ease;
}
.lore-powers li:nth-child(1) .lore-power { transform: rotate(-2deg) translateY(8px); }
.lore-powers li:nth-child(3) .lore-power { transform: rotate(2deg) translateY(8px); }
.lore-power:hover, .lore-power:focus-visible { text-decoration: none; transform: translateY(-8px) rotate(0) !important; border-color: var(--fc); box-shadow: 0 30px 60px -18px rgba(0, 0, 0, .85), 0 0 0 2px var(--fc); }
.lore-power img { display: block; width: 100%; height: auto; aspect-ratio: 3 / 4; object-fit: cover; }
.lore-power-text {
  position: absolute; inset: auto 0 0; display: grid; gap: 2px; padding: 34px 12px 12px; text-align: center;
  background: linear-gradient(180deg, transparent, rgba(11, 13, 18, .92) 55%);
}
.lore-power-text strong { font-family: var(--lore-serif); font-size: 1rem; line-height: 1.15; color: #fff8ea; }
.lore-power-text span { font-size: .74rem; color: rgba(243, 236, 223, .72); }
.lore-power::after { content: ""; position: absolute; inset: 0 0 auto; height: 4px; background: var(--fc); }
.lore-toc ol { list-style: none; margin: 30px auto 0; padding: 0; display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; max-width: 720px; }
.lore-toc a {
  display: inline-flex; align-items: center; gap: 8px; padding: 7px 13px 7px 8px; border-radius: 999px;
  background: rgba(11, 13, 18, .45); border: 1px solid rgba(255, 255, 255, .12); color: var(--lore-ink); font-size: .84rem;
  -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px);
}
.lore-toc a:hover { text-decoration: none; border-color: rgba(231, 196, 122, .6); }
.lore-toc-n { display: inline-grid; place-items: center; width: 22px; height: 22px; border-radius: 50%; background: rgba(231, 196, 122, .18); color: var(--lore-gold); font-weight: 800; font-size: .74rem; }
.lore-scroll-hint { position: absolute; z-index: 6; bottom: 28px; left: 50%; width: 22px; height: 36px; margin-left: -11px; border: 2px solid rgba(243, 236, 223, .45); border-radius: 12px; }
.lore-scroll-hint::after { content: ""; position: absolute; left: 50%; top: 7px; width: 4px; height: 7px; margin-left: -2px; border-radius: 2px; background: var(--lore-ink); animation: lore-scroll 1.8s ease-in-out infinite; }
@keyframes lore-scroll { 0% { opacity: 0; transform: translateY(0); } 30% { opacity: 1; } 100% { opacity: 0; transform: translateY(12px); } }

/* ---------- chapter card ---------- */
.lore-inner { position: relative; z-index: 6; width: 100%; display: flex; align-items: center; gap: clamp(24px, 4vw, 56px); padding-inline: 6%; }
.lore-inner.right { flex-direction: row-reverse; }
.lore-card {
  position: relative; z-index: 6; width: min(560px, 100%); flex: 0 1 560px;
  padding: 28px 30px 24px; border-radius: 24px;
  background: linear-gradient(180deg, rgba(14, 16, 22, .74), rgba(10, 11, 16, .82));
  border: 1px solid rgba(255, 255, 255, .1); box-shadow: 0 30px 60px -24px rgba(0, 0, 0, .7), inset 0 1px 0 rgba(255, 255, 255, .06);
  -webkit-backdrop-filter: blur(12px) saturate(140%); backdrop-filter: blur(12px) saturate(140%);
}
/* picture next to the card (Torn Banner art, credited) */
.lore-art { flex: 1 1 0; min-width: 0; max-width: 560px; margin: 0 auto; }
.lore-art img {
  display: block; width: 100%; height: auto; border-radius: 16px; transform: rotate(-1.2deg);
  border: 1px solid rgba(231, 196, 122, .45); box-shadow: 0 30px 60px -20px rgba(0, 0, 0, .75), 0 0 0 8px rgba(11, 13, 18, .45);
}
.lore-inner.right .lore-art img { transform: rotate(1.2deg); }
.lore-art img { transition: transform .45s cubic-bezier(.2, .7, .2, 1), box-shadow .45s ease, border-color .45s ease, filter .45s ease; }
.lore-art:hover img { transform: rotate(0) scale(1.035); border-color: rgba(231, 196, 122, .9); filter: brightness(1.06) contrast(1.03);
  box-shadow: 0 40px 80px -24px rgba(0, 0, 0, .85), 0 0 0 8px rgba(11, 13, 18, .45), 0 0 40px -6px rgba(231, 196, 122, .45); }
.lore-art figcaption { margin-top: 14px; text-align: center; font-size: .76rem; color: rgba(243, 236, 223, .8); text-shadow: 0 1px 3px rgba(0, 0, 0, .9), 0 0 12px rgba(0, 0, 0, .6); }
.lore-art figcaption a { color: inherit; text-decoration: underline; text-underline-offset: 2px; }
.lore-js .lore-art.reveal { transition-delay: .15s; }
.lore-era { margin: 0 0 8px; color: rgba(243, 236, 223, .62); font-size: .78rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; }
.lore-num { color: var(--lore-gold); }
.lore-card h3 { font-family: var(--lore-serif); font-size: clamp(1.7rem, 3.4vw, 2.4rem); font-weight: 700; line-height: 1.08; margin: 0 0 14px; color: #fff8ea; letter-spacing: -.005em; }
.lore-card p { line-height: 1.68; margin: 0 0 12px; color: rgba(243, 236, 223, .9); }
.lore-card h3 + p::first-letter { font-family: var(--lore-serif); float: left; font-size: 3.1em; line-height: .9; padding: 4px 8px 0 0; color: var(--lore-gold); }
.lore-row { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 10px; margin-top: 14px; padding-top: 14px; border-top: 1px solid rgba(255, 255, 255, .08); }
.lore-row-label { font-size: .72rem; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; color: rgba(243, 236, 223, .55); }
.lore-chips { display: flex; flex-wrap: wrap; gap: 6px; }
.lore-chip {
  display: inline-flex; align-items: center; gap: 7px; padding: 5px 11px; border-radius: 999px; font-size: .82rem; font-weight: 600;
  background: rgba(255, 255, 255, .07); border: 1px solid rgba(255, 255, 255, .12); color: var(--lore-ink);
}
/* No drop cap where letters join (Arabic) or are whole words (Chinese) */
html[lang="ar"] .lore-card:not([lang]) h3 + p::first-letter, html[lang="zh-CN"] .lore-card:not([lang]) h3 + p::first-letter { float: none; font: inherit; padding: 0; color: inherit; }
.lore-chip:hover { text-decoration: none; background: rgba(255, 255, 255, .14); }
.lore-chip.map { border-color: rgba(231, 196, 122, .4); color: var(--lore-gold); }
.lore-chip.map::before { content: "⚔"; font-size: .8em; }
.lore-dot { width: 9px; height: 9px; border-radius: 50%; background: var(--fc, #999); box-shadow: 0 0 0 2px rgba(255, 255, 255, .15); }
.c-agatha { --fc: var(--agatha); }
.c-mason { --fc: var(--mason); }
.c-tenosia { --fc: var(--tenosia); }

/* reveal (only when the script runs, so the text never stays hidden) */
.lore-js .reveal { opacity: 0; transform: translateY(46px) scale(.98); transition: opacity .9s ease, transform 1s cubic-bezier(.2, .7, .2, 1); }
.lore-js .reveal.is-in { opacity: 1; transform: none; }

/* ---------- chapter rail (wide screens) ---------- */
.lore-rail { display: none; }
@media (min-width: 1100px) {
  .lore-rail { display: block; position: fixed; z-index: 30; inset-inline-end: 18px; top: 50%; transform: translateY(-50%); opacity: 0; pointer-events: none; transition: opacity .4s ease; }
  .lore-rail.on { opacity: 1; pointer-events: auto; }
  .lore-rail ol { list-style: none; margin: 0; padding: 10px 8px; display: grid; gap: 4px; border-radius: 999px; background: rgba(11, 13, 18, .55); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); border: 1px solid rgba(255, 255, 255, .1); }
  .lore-rail a { position: relative; display: grid; place-items: center; width: 22px; height: 22px; }
  .lore-rail-dot { width: 8px; height: 8px; border-radius: 50%; background: rgba(243, 236, 223, .4); transition: transform .25s ease, background .25s ease; }
  .lore-rail a:hover .lore-rail-dot, .lore-rail a[aria-current] .lore-rail-dot { background: var(--lore-gold); transform: scale(1.5); }
  .lore-rail-label {
    position: absolute; inset-inline-end: 32px; top: 50%; transform: translate(6px, -50%); white-space: nowrap; pointer-events: none;
    padding: 5px 10px; border-radius: 8px; background: rgba(11, 13, 18, .85); color: var(--lore-ink); font-size: .8rem; opacity: 0; transition: opacity .2s ease, transform .2s ease;
  }
  .lore-rail a:hover .lore-rail-label, .lore-rail a:focus-visible .lore-rail-label { opacity: 1; transform: translate(0, -50%); }
}

/* ---------- factions, people, realm (site theme) ---------- */
.lore-section { margin-top: 44px; scroll-margin-top: 90px; }
.lore-section-head { margin-bottom: 18px; }
.lore-section-head h2 { font-family: var(--lore-serif); font-size: clamp(1.7rem, 3vw, 2.3rem); margin: 0 0 4px; }
.lore-section-head p { margin: 0; }
.lore-faction-pick { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; margin-bottom: 20px; }
.lore-pick {
  display: flex; align-items: center; gap: 12px; padding: 14px 16px; border-radius: var(--radius); color: var(--text);
  background: var(--card-bg, var(--surface)); border: 1px solid var(--card-border, var(--border)); box-shadow: var(--card-shadow, var(--shadow));
  transition: transform .2s ease, border-color .2s ease;
}
.lore-pick:hover { text-decoration: none; transform: translateY(-2px); border-color: var(--fc); }
.lore-pick > span { display: grid; gap: 2px; }
.lore-faction { margin-bottom: 20px; border-top: 4px solid var(--fc); scroll-margin-top: 90px; }
.lore-faction-head { display: flex; gap: 20px; align-items: flex-start; margin-bottom: 18px; }
.lore-faction-head h3 { font-family: var(--lore-serif); font-size: 1.7rem; margin: 2px 0 8px; }
.lore-faction-head p { line-height: 1.65; margin: 0 0 8px; max-width: 760px; }
.lore-faction-head .eyebrow { color: var(--fc); margin: 0; }
.lore-values { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 10px !important; }
.lore-value { padding: 3px 10px; border-radius: 999px; background: var(--surface-2); font-size: .78rem; font-weight: 700; }
.lore-people { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 10px; align-items: start; }
.lore-person { border-radius: var(--radius); background: var(--surface-2); scroll-margin-top: 100px; align-self: start; transition: box-shadow .3s ease; }
.lore-person:target, .lore-person.flash { box-shadow: 0 0 0 2px var(--fc); }
.lore-person-head { display: flex; gap: 12px; align-items: center; padding: 12px 14px; cursor: pointer; list-style: none; border-radius: var(--radius); }
.lore-person-head::-webkit-details-marker { display: none; }
.lore-person-head:hover { background: color-mix(in srgb, var(--fc) 8%, transparent); }
.lore-person-head:focus-visible { outline: 2px solid var(--fc); outline-offset: 2px; }
.lore-person-id { display: grid; gap: 2px; min-width: 0; flex: 1; }
.lore-person-name { font-family: var(--lore-serif); font-size: 1.08rem; font-weight: 700; line-height: 1.2; }
.lore-chev { flex: none; width: 10px; height: 10px; border-right: 2px solid var(--muted); border-bottom: 2px solid var(--muted); transform: rotate(45deg) translate(-2px, -2px); transition: transform .25s ease; }
.lore-person[open] .lore-chev { transform: rotate(-135deg) translate(-2px, -2px); }
.lore-person-body { padding: 0 16px 14px 66px; }
.lore-person[open] .lore-person-body { animation: lore-open .3s ease; }
@keyframes lore-open { from { opacity: 0; transform: translateY(-4px); } }
.lore-mono { flex: 0 0 auto; display: grid; place-items: center; width: 40px; height: 40px; border-radius: 12px; background: var(--fc); color: #fff; font-weight: 800; font-size: .86rem; letter-spacing: .02em; }
.c-tenosia .lore-mono { color: #1c1406; }
.lore-role { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; color: var(--muted); font-size: .84rem; }
.lore-tag { padding: 1px 7px; border-radius: 999px; background: var(--surface-3); font-size: .72rem; font-weight: 700; color: var(--text); }
.lore-tag.dead { background: transparent; border: 1px solid var(--border); color: var(--muted); }
.lore-person p { margin: 0 0 8px; line-height: 1.6; font-size: .94rem; }
.lore-members-title { font-size: .72rem !important; font-weight: 800; text-transform: uppercase; letter-spacing: .1em; color: var(--muted); margin: 10px 0 4px !important; }
.lore-members { margin: 0; padding-inline-start: 18px; font-size: .9rem; line-height: 1.6; }

/* world map with battle sites */
.lore-map { position: relative; margin: 0 0 16px; border-radius: 20px; overflow: hidden; box-shadow: 0 20px 50px -24px rgba(0, 0, 0, .55); }
.lore-map img { display: block; width: 100%; height: auto; }
.lore-pin { position: absolute; display: flex; align-items: center; gap: 6px; transform: translate(-11px, -50%); color: #2a1d10; text-decoration: none; }
.lore-pin:hover { text-decoration: none; }
.lore-pin-dot { display: grid; place-items: center; width: 22px; height: 22px; border-radius: 50%; background: #8f1d27; color: #f6ead0; font-size: 12px; box-shadow: 0 0 0 2px #f1e3c2, 0 3px 8px rgba(0, 0, 0, .45); transition: transform .2s ease; }
.lore-pin-label { padding: 2px 8px; border-radius: 6px; background: rgba(244, 233, 207, .92); font-family: var(--lore-serif); font-weight: 700; font-size: .9rem; white-space: nowrap; box-shadow: 0 1px 3px rgba(0, 0, 0, .25); }
.lore-pin:hover .lore-pin-dot, .lore-pin:focus-visible .lore-pin-dot { transform: scale(1.2); }
.lore-pin:focus-visible { outline: none; }
.lore-pin:focus-visible .lore-pin-label { outline: 2px solid #8f1d27; }
.site-wardenglade { left: 52.0%; top: 37.8%; }
.site-coxwell { left: 54.6%; top: 42.7%; }
.site-darkforest { left: 68.3%; top: 45.4%; }
.site-lionspire { left: 57.2%; top: 57.5%; }
.site-tournament-grounds { left: 40.8%; top: 60.6%; }
.site-falmire { left: 27.6%; top: 47.1%; }
.site-rudhelm { left: 77.9%; top: 57.0%; }
.site-fighting-pit { left: 45.6%; top: 93.6%; }
@media (max-width: 720px) {
  .lore-map { border-radius: 12px; margin-inline: -4px; }
  .lore-pin { transform: translate(-8px, -50%); }
  .lore-pin-dot { width: 16px; height: 16px; font-size: 9px; }
  .lore-pin-label { display: none; }
  .lore-person-body { padding-inline-start: 16px; }
}

.lore-shield .field { fill: var(--sf); }
.lore-shield .charge { fill: var(--sc); }
.lore-shield .rim { stroke: rgba(0, 0, 0, .3); stroke-width: 1.5; }
.lore-crest { flex: 0 0 auto; display: block; border-radius: 22%; box-shadow: 0 6px 16px -6px rgba(0, 0, 0, .45), inset 0 0 0 1px rgba(255, 255, 255, .08); }
.lore-pick .lore-crest { border-radius: 12px; }
.lore-shield { flex: 0 0 auto; filter: drop-shadow(0 4px 8px rgba(0, 0, 0, .2)); }
.s-agatha { --sf: var(--agatha); --sc: var(--agatha-2); }
.s-mason { --sf: var(--mason); --sc: var(--mason-2); }
.s-tenosia { --sf: var(--tenosia); --sc: var(--tenosia-2); }

.lore-regions { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 12px; }
.lore-region h3 { font-family: var(--lore-serif); font-size: 1.2rem; margin: 0 0 4px; }
.lore-region p { margin: 0; }
.lore-sites { list-style: none; margin: 10px 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 6px; }
.lore-sites a, .lore-sites span { display: inline-block; padding: 4px 10px; border-radius: 999px; background: var(--surface-2); color: var(--text); font-size: .82rem; font-weight: 600; }
.lore-sites a:hover { text-decoration: none; background: var(--surface-3); }
.lore-credits { margin-top: 28px; }
.lore-credits h2 { font-size: 1.05rem; }
.lore-credits p { margin: 0 0 6px; }

/* ---------- small screens ---------- */
@media (max-width: 720px) {
  .lore-stage { border-radius: 20px; margin-inline: -4px; }
  .lore-scene { align-items: flex-end; min-height: 640px; padding: 140px 0 40px; }
  .scene-hero { align-items: center; padding: 60px 0 90px; }
  .lore-inner, .lore-inner.right { flex-direction: column; align-items: stretch; gap: 18px; padding-inline: 12px; }
  .lore-card { width: auto; flex: none; padding: 22px 20px 18px; }
  .lore-art { max-width: none; }
  .lore-art img { transform: none !important; }
  .lore-layer { height: calc(340px + 60px); }
  .lore-faction-pick { grid-template-columns: 1fr; }
  .lore-faction-head { flex-direction: column; gap: 10px; }
  .lore-toc ol { gap: 6px; }
  .lore-powers { gap: 10px; margin-top: 26px; }
  .lore-power { border-radius: 12px; }
  .lore-powers li .lore-power { transform: none !important; }
  .lore-power-text { padding: 26px 6px 8px; }
  .lore-power-text strong { font-size: .8rem; }
  .lore-power-text span { display: none; }
  .lore-toc a { font-size: .8rem; }
}


/* Less motion: no parallax, no floating particles, no reveal */
@media (prefers-reduced-motion: reduce) {
  .lore-layer { transform: none !important; will-change: auto; }
  .flag, .flame, .lore-particles circle, .lore-begin span, .lore-scroll-hint::after { animation: none !important; }
  .lore-power, .lore-art img { transition: none; }
  .lore-js .reveal { opacity: 1; transform: none; transition: none; }
}
