.page--lore { background: #030609; color: #ece7dc; }
.lore-page { --lore-gold: #e7bc56; width: 100%; overflow: clip; background: #030609; }
.lore-page h1, .lore-page h2, .lore-page h3, .lore-page p, .lore-page blockquote { margin: 0; }
.lore-kicker { display: block; color: var(--lore-gold); font-family: var(--font-accent); font-size: .86rem; letter-spacing: .22em; text-transform: uppercase; }
.lore-hero { position: relative; isolation: isolate; min-height: clamp(650px, 72vh, 820px); display: grid; align-items: center; overflow: hidden; border-bottom: 1px solid rgba(205, 161, 63, .5); background: #03080d url('../../assets/img/lore/lore-hero-eura-v1.webp') center top / cover no-repeat; }
.lore-hero::before { content: ''; position: absolute; z-index: 0; inset: 0; background: linear-gradient(90deg, rgba(1, 6, 12, .98) 0%, rgba(1, 7, 13, .9) 31%, rgba(1, 7, 13, .4) 55%, rgba(0, 0, 0, .06) 82%), linear-gradient(0deg, rgba(2, 6, 10, .72), transparent 44%); pointer-events: none; }
.lore-hero::after { content: ''; position: absolute; z-index: 0; inset: auto 0 0; height: 26%; background: linear-gradient(transparent, #030609); pointer-events: none; }
.lore-hero__atmosphere { position: absolute; z-index: 1; inset: 0; width: 100%; height: 100%; pointer-events: none; }
.lore-hero__dust { position: absolute; z-index: 2; inset: 0; overflow: hidden; pointer-events: none; }
.lore-hero__dust i { position: absolute; left: var(--dust-x); top: var(--dust-y); width: 3px; height: 3px; background: #fff0a8; border-radius: 50%; box-shadow: 0 0 10px #ffd267, 0 0 18px rgba(109, 206, 255, .6); opacity: .12; animation: lore-dust var(--dust-speed) var(--dust-delay) ease-in-out infinite alternate; }
.lore-hero__copy { position: relative; z-index: 3; width: min(650px, 47vw); margin: 0; padding: clamp(82px, 11vh, 132px) 0 82px max(34px, calc((100vw - 1740px) / 2)); text-align: left; text-shadow: 0 3px 20px #000; }
.lore-hero h1 { margin-top: 12px; color: #fff1c8; font-family: var(--font-accent); font-size: clamp(2.8rem, 4.6vw, 4.9rem); font-weight: 500; line-height: .98; text-wrap: balance; }
.lore-hero p { max-width: 590px; margin: 22px 0 0; color: #d7e0e5; font-size: clamp(1rem, 1.25vw, 1.18rem); line-height: 1.68; }
.lore-hero__action { position: relative; display: inline-flex; min-width: 300px; min-height: 74px; margin-top: 28px; padding: 17px 54px 20px; align-items: center; justify-content: center; gap: 10px; color: #3a250d; font-family: var(--font-accent); font-weight: 700; background: url('../../assets/img/lore/lore-scroll-v1.webp') center / 100% 100% no-repeat; border: 0; filter: drop-shadow(0 0 18px rgba(232, 189, 86, .38)); transition: translate 220ms ease, filter 220ms ease; }
.lore-hero__action svg { width: 21px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; animation: lore-arrow 1.5s ease-in-out infinite; }
.lore-hero__action:hover, .lore-hero__action:focus-visible { color: #241305; translate: 0 -2px; filter: brightness(1.12) drop-shadow(0 0 28px rgba(248, 202, 90, .62)); outline: 2px solid #fff0c5; outline-offset: 4px; }
.lore-section-head h2 { margin-top: 10px; color: #f3dfad; font-family: var(--font-accent); font-size: clamp(2rem, 4vw, 3.75rem); font-weight: 500; }
.lore-powers { padding: clamp(24px, 3vw, 42px) clamp(20px, 4vw, 72px) clamp(52px, 6vw, 90px); scroll-margin-top: 180px; }
.lore-section-head { margin-bottom: 16px; text-align: center; }
.lore-forces-layout { position: relative; display: grid; grid-template-columns: minmax(250px, 340px) minmax(0, 1fr); gap: clamp(16px, 2vw, 28px); max-width: 1500px; height: clamp(360px, calc(100vh - 350px), 450px); margin-inline: auto; padding: clamp(12px, 1.3vw, 18px); align-items: stretch; background: linear-gradient(135deg, rgba(12, 19, 22, .97), rgba(3, 7, 9, .99)); border: 1px solid rgba(213, 173, 77, .42); box-shadow: 0 30px 80px rgba(0, 0, 0, .48), inset 0 0 60px rgba(227, 186, 87, .035); }
.lore-forces-layout::before { content: ''; position: absolute; inset: 7px; pointer-events: none; border: 1px solid rgba(232, 195, 104, .13); }
.lore-force-tabs { display: grid; grid-template-rows: repeat(3, minmax(0, 1fr)); gap: 14px; }
.lore-force { --force: 231, 188, 86; position: relative; isolation: isolate; min-width: 0; min-height: 0; overflow: hidden; padding: 0; color: #fff; text-align: left; background: #080a0c; border: 1px solid rgba(var(--force), .44); box-shadow: 0 14px 32px rgba(0, 0, 0, .42); cursor: pointer; transition: translate 260ms ease, border-color 260ms ease, box-shadow 260ms ease; }
.lore-force--rot { --force: 66, 210, 136; }
.lore-force--dark { --force: 240, 64, 37; }
.lore-force img { position: absolute; inset: 0 0 0 auto; width: 58%; height: 100%; object-fit: cover; object-position: center 7%; filter: saturate(.96) brightness(.78); transition: scale 650ms cubic-bezier(.2,.75,.2,1), filter 350ms ease; }
.lore-force__veil { position: absolute; z-index: 1; inset: 0; background: linear-gradient(90deg, rgba(2, 4, 6, .99) 0%, rgba(2, 4, 6, .94) 46%, rgba(2, 4, 6, .46) 70%, rgba(2, 4, 6, .08) 100%); }
.lore-force__particles { position: absolute; z-index: 2; inset: 0; overflow: hidden; pointer-events: none; }
.lore-force__particles i { position: absolute; left: var(--x); bottom: -10%; width: var(--size); aspect-ratio: 1; border-radius: 50%; background: rgb(var(--force)); box-shadow: 0 0 12px rgb(var(--force)); opacity: 0; animation: lore-particle var(--duration) var(--delay) linear infinite; animation-play-state: paused; }
.lore-force__copy { position: absolute; z-index: 3; inset: 0; display: grid; width: 68%; align-content: center; gap: 4px; padding: 20px; }
.lore-force__copy small { color: rgb(var(--force)); font-family: var(--font-accent); font-size: .82rem; letter-spacing: .17em; text-transform: uppercase; }
.lore-force__copy strong { color: #fff1cd; font-family: var(--font-accent); font-size: clamp(1.35rem, 2vw, 2rem); font-weight: 500; line-height: 1; }
.lore-force__copy em { color: #c8c5bd; font-style: normal; }
.lore-force:hover, .lore-force:focus-visible, .lore-force.is-active { translate: 8px 0; border-color: rgb(var(--force)); box-shadow: 0 0 0 1px rgba(var(--force), .25), 0 18px 46px rgba(var(--force), .22); outline: 0; }
.lore-force:hover img, .lore-force:focus-visible img, .lore-force.is-active img { scale: 1.045; filter: saturate(1.08) brightness(.94); }
.lore-force:hover .lore-force__particles i, .lore-force:focus-visible .lore-force__particles i, .lore-force.is-active .lore-force__particles i { animation-play-state: running; }
.lore-force::after { content: ''; position: absolute; z-index: 4; top: 50%; right: -1px; width: 5px; height: 0; translate: 0 -50%; background: rgb(var(--force)); box-shadow: 0 0 18px rgb(var(--force)); transition: height 260ms ease; }
.lore-force.is-active::after { height: 68%; }
.lore-revelation { min-width: 0; min-height: 0; }
.lore-panel { position: relative; isolation: isolate; display: grid; min-height: 0; height: 100%; overflow: hidden; border: 1px solid rgba(232, 190, 95, .46); box-shadow: 0 18px 46px rgba(0, 0, 0, .42); }
.lore-panel[hidden] { display: none; }
.lore-panel__portrait { display: none; }
.lore-panel__portrait img { width: 100%; height: 100%; object-fit: cover; object-position: center 13%; }
.lore-panel__figure { position: absolute; z-index: 3; right: -2%; bottom: -8%; width: auto; height: 110%; max-width: 37%; object-fit: contain; object-position: right bottom; pointer-events: none; filter: drop-shadow(-18px 12px 22px rgba(0, 0, 0, .32)); animation: lore-figure-breathe 5.2s ease-in-out infinite alternate; }
.lore-panel__copy { position: relative; z-index: 2; display: grid; align-content: center; padding: clamp(20px, 2.5vw, 38px); padding-right: clamp(190px, 32%, 330px); }
.lore-panel__copy::before { content: ''; position: absolute; inset: 22px; pointer-events: none; border: 1px solid currentColor; opacity: .18; }
.lore-panel__sigil { color: currentColor; font-size: 1.8rem; line-height: 1; }
.lore-panel__copy small { margin-top: 8px; font-family: var(--font-accent); font-size: .74rem; letter-spacing: .19em; text-transform: uppercase; }
.lore-panel h2 { margin-top: 4px; font-family: var(--font-accent); font-size: clamp(2.2rem, 3.5vw, 3.7rem); font-weight: 500; line-height: .94; }
.lore-panel h3 { margin-top: 8px; font-family: var(--font-accent); font-size: clamp(1.16rem, 1.8vw, 1.6rem); font-weight: 500; }
.lore-panel p { max-width: 760px; margin-top: 11px; font-size: .92rem; line-height: 1.45; }
.lore-panel blockquote { max-width: 700px; margin-top: 11px; padding: 9px 14px; font-family: var(--font-accent); font-size: .96rem; font-style: italic; line-height: 1.35; border-left: 3px solid currentColor; }
.lore-panel:not([hidden]) { animation: lore-panel-in 420ms cubic-bezier(.2, .72, .2, 1) both; }
.lore-panel--light { color: #6e5015; background: radial-gradient(circle at 72% 15%, rgba(255, 255, 255, .92), transparent 28%), repeating-linear-gradient(8deg, rgba(133, 96, 25, .045) 0 1px, transparent 1px 7px), #e8d7aa; }
.lore-panel--light .lore-panel__copy { background: linear-gradient(90deg, rgba(232, 215, 170, .95), rgba(244, 232, 197, .98)); }
.lore-panel--light h2 { color: #5a3d08; }
.lore-panel--light blockquote { background: rgba(255, 248, 223, .44); }
.lore-panel--light .lore-panel__figure { filter: drop-shadow(-12px 8px 24px rgba(239, 190, 65, .28)); }
.lore-panel--rot { color: #7ad6a2; border-color: rgba(85, 207, 137, .52); background: repeating-linear-gradient(125deg, transparent 0 110px, rgba(88, 236, 151, .08) 111px 113px, transparent 114px 210px), radial-gradient(circle at 72% 38%, rgba(31, 92, 65, .32), transparent 38%), #111713; }
.lore-panel--rot .lore-panel__copy { background: linear-gradient(90deg, rgba(13, 22, 17, .94), rgba(20, 31, 25, .98)); }
.lore-panel--rot h2 { color: #b9e6c9; }
.lore-panel--rot p { color: #bdc8c0; }
.lore-panel--rot blockquote { color: #9fe6bd; background: rgba(35, 82, 58, .2); }
.lore-panel--rot .lore-panel__figure { filter: drop-shadow(-14px 8px 24px rgba(52, 221, 126, .32)); }
.lore-panel--dark { color: #f06442; border-color: rgba(240, 78, 45, .54); background: repeating-linear-gradient(135deg, transparent 0 75px, rgba(255, 82, 35, .16) 76px 78px, transparent 79px 155px), radial-gradient(circle at 72% 35%, rgba(148, 34, 12, .34), transparent 40%), #190806; }
.lore-panel--dark .lore-panel__copy { background: linear-gradient(90deg, rgba(22, 6, 4, .94), rgba(36, 9, 5, .98)); }
.lore-panel--dark h2 { color: #ffb078; }
.lore-panel--dark p { color: #d3b7ad; }
.lore-panel--dark blockquote { color: #ff9b70; background: rgba(137, 29, 8, .18); }
.lore-panel--dark .lore-panel__figure { filter: drop-shadow(-14px 8px 26px rgba(255, 74, 26, .36)); }
.lore-chronicle { padding: clamp(70px, 8vw, 120px) clamp(18px, 4vw, 70px) clamp(90px, 10vw, 150px); background: radial-gradient(circle at 50% 0%, rgba(75, 116, 101, .15), transparent 38%), linear-gradient(#05090b, #030608); }
.lore-epochs { --era-progress: 0%; --era-gold: #e6b94e; max-width: 1500px; margin: 36px auto 0; }
.lore-era-tabs { position: relative; z-index: 4; display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); padding: 0 4% 28px; }
.lore-era-tabs::before, .lore-era-tabs::after { content: ''; position: absolute; z-index: -1; left: 9%; right: 9%; top: 25px; height: 1px; background: rgba(225, 181, 75, .25); }
.lore-era-tabs::after { right: auto; width: var(--era-progress); background: linear-gradient(90deg, #805d1b, #f1c961); box-shadow: 0 0 16px rgba(238, 190, 75, .65); transition: width 540ms cubic-bezier(.2, .75, .2, 1); }
.lore-era-tab { --era: 231, 188, 86; display: grid; justify-items: center; gap: 7px; min-width: 0; padding: 0 8px; color: #827b6f; background: none; border: 0; cursor: pointer; transition: color 240ms ease, translate 240ms ease; }
.lore-era-tab:nth-child(2) { --era: 109, 204, 255; }
.lore-era-tab:nth-child(3) { --era: 226, 97, 55; }
.lore-era-tab:nth-child(4) { --era: 88, 211, 137; }
.lore-era-tab:nth-child(5) { --era: 244, 75, 39; }
.lore-era-tab b { display: grid; width: 50px; height: 50px; place-items: center; color: #b89b57; font-family: var(--font-accent); font-size: 1rem; font-weight: 500; background: radial-gradient(circle, #17140e 42%, #07090a 44%); border: 1px solid rgba(224, 181, 75, .48); border-radius: 50%; box-shadow: inset 0 0 0 5px #050708, 0 0 0 1px rgba(0, 0, 0, .8); transition: color 260ms ease, border-color 260ms ease, box-shadow 260ms ease, scale 260ms ease; }
.lore-era-tab span { max-width: 170px; font-family: var(--font-accent); font-size: clamp(.76rem, 1vw, .94rem); line-height: 1.15; text-align: center; }
.lore-era-tab:hover, .lore-era-tab:focus-visible, .lore-era-tab.is-active { color: #f1d999; translate: 0 -2px; outline: 0; }
.lore-era-tab:hover b, .lore-era-tab:focus-visible b, .lore-era-tab.is-active b { color: #fff0bd; border-color: rgb(var(--era)); box-shadow: inset 0 0 0 5px #07090a, 0 0 24px rgba(var(--era), .65); scale: 1.08; }
.lore-era-stage { position: relative; isolation: isolate; height: clamp(470px, 60vw, 650px); overflow: hidden; background: #050708; border: 1px solid rgba(230, 187, 82, .46); box-shadow: 0 30px 90px rgba(0, 0, 0, .62), inset 0 0 0 8px rgba(0, 0, 0, .27); }
.lore-era-stage::before { content: ''; position: absolute; z-index: 5; inset: 12px; pointer-events: none; border: 1px solid rgba(246, 215, 137, .18); }
.lore-era-panel { --era: 231, 188, 86; position: absolute; inset: 0; isolation: isolate; overflow: hidden; }
.lore-era-panel--2 { --era: 109, 204, 255; }
.lore-era-panel--3 { --era: 226, 97, 55; }
.lore-era-panel--4 { --era: 88, 211, 137; }
.lore-era-panel--5 { --era: 244, 75, 39; }
.lore-era-panel[hidden] { display: none; }
.lore-era-panel::before { content: ''; position: absolute; z-index: 1; inset: 0; background: linear-gradient(90deg, rgba(2, 5, 8, .98) 0%, rgba(3, 6, 9, .86) 25%, rgba(3, 5, 8, .22) 48%, transparent 64%), linear-gradient(0deg, rgba(2, 4, 6, .56), transparent 26%); }
.lore-era-panel::after { content: ''; position: absolute; z-index: 2; left: 0; bottom: 0; width: 62%; height: 2px; background: linear-gradient(90deg, rgb(var(--era)), transparent); box-shadow: 0 0 24px rgba(var(--era), .7); }
.lore-era-panel > img { width: 100%; height: 100%; object-fit: cover; animation: lore-era-image 9s ease-out both; }
.lore-era-panel__copy { position: absolute; z-index: 3; left: clamp(34px, 5vw, 86px); top: 50%; width: min(530px, 43%); translate: 0 -50%; text-shadow: 0 3px 20px #000; animation: lore-era-copy 560ms cubic-bezier(.2, .75, .2, 1) both; }
.lore-era-panel__copy small { color: rgb(var(--era)); font-family: var(--font-accent); font-size: .8rem; letter-spacing: .2em; text-transform: uppercase; }
.lore-era-panel__copy h3 { margin-top: 13px; color: #fff0c8; font-family: var(--font-accent); font-size: clamp(2rem, 3.8vw, 4rem); font-weight: 500; line-height: .98; text-wrap: balance; }
.lore-era-panel__copy p { margin-top: 22px; color: #d9dde0; font-size: clamp(.96rem, 1.12vw, 1.12rem); line-height: 1.68; }
.lore-era-panel__copy > span { display: inline-block; margin-top: 25px; padding: 10px 16px; color: #f6dfac; font-family: var(--font-accent); font-size: .85rem; letter-spacing: .08em; background: rgba(var(--era), .1); border-left: 2px solid rgb(var(--era)); }
.lore-era-panel__dust { position: absolute; z-index: 2; inset: 0; pointer-events: none; overflow: hidden; background-image: radial-gradient(circle, rgba(var(--era), .8) 0 1px, transparent 1.7px), radial-gradient(circle, rgba(var(--era), .45) 0 1px, transparent 1.6px); background-position: 0 0, 48px 70px; background-size: 110px 130px, 170px 190px; opacity: .28; mix-blend-mode: screen; animation: lore-era-dust 18s linear infinite; mask-image: linear-gradient(90deg, transparent 15%, #000 48%, #000); }
.is-reveal-ready .lore-reveal { opacity: 0; translate: 0 24px; transition: opacity 650ms ease, translate 650ms cubic-bezier(.2,.7,.2,1); }
.is-reveal-ready .lore-reveal.is-visible { opacity: 1; translate: 0; }
@keyframes lore-particle { 0% { translate: 0 0; opacity: 0; } 14% { opacity: .8; } 100% { translate: var(--drift) -118vh; opacity: 0; } }
@keyframes lore-dust { to { translate: 20px -30px; scale: 1.55; opacity: .68; } }
@keyframes lore-arrow { 0%, 100% { translate: 0 -2px; } 50% { translate: 0 4px; } }
@keyframes lore-panel-in { from { opacity: 0; translate: 18px 0; } to { opacity: 1; translate: 0; } }
@keyframes lore-figure-breathe { from { translate: 0 3px; scale: .995; } to { translate: -5px -4px; scale: 1.012; } }
@keyframes lore-era-copy { from { opacity: 0; translate: -24px -50%; } to { opacity: 1; translate: 0 -50%; } }
@keyframes lore-era-image { from { opacity: .48; scale: 1.045; filter: saturate(.72) brightness(.9); } to { opacity: 1; scale: 1; filter: saturate(1.08) brightness(1.12); } }
@keyframes lore-era-dust { to { background-position: 90px -140px, -110px -180px; } }
@media (max-width: 1000px) {
  .lore-forces-layout { grid-template-columns: minmax(220px, 290px) minmax(0, 1fr); }
  .lore-force { min-height: 148px; }
  .lore-panel__copy { padding: 40px 34px; }
  .lore-era-tab span { font-size: .76rem; }
  .lore-era-panel__copy { width: min(500px, 52%); }
}
@media (max-width: 650px) {
  .lore-hero { min-height: 760px; background-position: 67% center; }
  .lore-hero::before { background: linear-gradient(90deg, rgba(1, 6, 12, .93), rgba(1, 7, 13, .68) 74%, rgba(0, 0, 0, .25)); }
  .lore-hero__copy { width: auto; padding: 76px 18px 54px; }
  .lore-hero h1 { font-size: clamp(2.4rem, 13vw, 3.7rem); }
  .lore-hero__action { min-width: 260px; min-height: 68px; padding-inline: 42px; }
  .lore-powers { padding-inline: 16px; }
  .lore-forces-layout { grid-template-columns: 1fr; height: auto; padding: 12px; }
  .lore-force-tabs { grid-template-rows: none; grid-template-columns: 1fr; gap: 10px; }
  .lore-force { min-height: 126px; }
  .lore-force:hover, .lore-force:focus-visible, .lore-force.is-active { translate: 0 -3px; }
  .lore-panel { display: block; min-height: 0; }
  .lore-panel__copy { padding: 42px 26px; }
  .lore-panel__copy { padding-right: 42%; }
  .lore-panel__figure { right: -8%; max-width: 50%; }
  .lore-panel__copy::before { inset: 12px; }
  .lore-chronicle { padding-inline: 12px; }
  .lore-era-tabs { margin-inline: -8px; padding-inline: 0; overflow-x: auto; grid-template-columns: repeat(5, minmax(92px, 1fr)); scrollbar-width: thin; }
  .lore-era-tabs::before, .lore-era-tabs::after { left: 10%; right: 10%; }
  .lore-era-tab { padding-inline: 4px; }
  .lore-era-tab b { width: 44px; height: 44px; }
  .lore-era-stage { height: 660px; }
  .lore-era-panel::before { background: linear-gradient(0deg, rgba(2, 5, 8, .98) 0%, rgba(3, 6, 9, .9) 41%, rgba(3, 5, 8, .24) 75%); }
  .lore-era-panel > img { object-position: 66% center; }
  .lore-era-panel__copy { left: 28px; right: 28px; top: auto; bottom: 38px; width: auto; translate: 0; }
  .lore-era-panel__copy small { font-size: .68rem; }
  .lore-era-panel__copy h3 { font-size: clamp(2rem, 10vw, 3rem); }
  .lore-era-panel__copy p { font-size: .94rem; line-height: 1.55; }
  @keyframes lore-era-copy { from { opacity: 0; translate: 0 22px; } to { opacity: 1; translate: 0; } }
}
@media (prefers-reduced-motion: reduce) {
  .lore-force, .lore-force img, .lore-reveal, .lore-panel, .lore-panel__figure, .lore-era-tab, .lore-era-panel, .lore-era-panel > img, .lore-era-panel__copy { animation: none !important; transition: none !important; }
  .lore-force__particles, .lore-hero__atmosphere, .lore-hero__dust, .lore-era-panel__dust { display: none; }
  .lore-hero__action svg { animation: none; }
}
