/* Kingdom Reborn website. Night violet and gold, the store art's palette; Cinzel display,
   Lora body, the game's own fonts. Built from the approved mockup v3. */
:root {
  color-scheme: dark;
  --night: #0B0A1C;
  --night2: #130F2B;
  --panel: #1A1438;
  --violet: #B388FF;
  --gold: #E9C46A;
  --goldHi: #F5D27A;
  --cream: #FFF1CC;
  --dim: #9BA3C7;
  --line: rgba(179, 136, 255, .22);
  --display: 'Cinzel', 'Trajan Pro', Georgia, serif;
  --body: 'Lora', Georgia, 'Times New Roman', serif;
}
* { box-sizing: border-box; }
html { scroll-padding-top: 84px; -webkit-text-size-adjust: 100%; }
body { margin: 0; min-height: 100vh; }
a { color: inherit; text-decoration: none; }
:focus-visible { outline: 2px solid var(--goldHi); outline-offset: 2px; }
.skip { position: absolute; top: 0; left: 0; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip:focus { width: auto; height: auto; clip: auto; top: 12px; left: 12px; z-index: 50; padding: 10px 14px; background: var(--gold); color: #1E140C; border-radius: 8px; }

/* =====================================================================
   THE SITE (rendered inside both frames; container queries do mobile)
   ===================================================================== */
.site { background: var(--night); color: var(--cream); font-family: var(--body); font-size: 16px; line-height: 1.6; }
.site img { display: block; max-width: 100%; }
.site h1, .site h2, .site h3, .site h4 { font-family: var(--display); margin: 0; text-wrap: balance; }
.site p { margin: 0; }
.wrap { max-width: 1160px; margin: 0 auto; padding-inline: 48px; }
.kicker { font: 700 12px/1 var(--display); letter-spacing: .24em; text-transform: uppercase; color: var(--violet); }
.more { display: inline-flex; gap: 8px; align-items: center; font: 700 13px/1 var(--display); letter-spacing: .08em; color: var(--goldHi); }
.more::after { content: "\2192"; transition: transform .2s; }
.more:hover::after { transform: translateX(4px); }

/* nav */
.s-nav { position: sticky; top: 0; z-index: 5; display: flex; align-items: center; gap: 28px; height: 68px; padding-inline: 32px; background: rgba(11, 10, 28, .86); backdrop-filter: blur(10px); border-bottom: 1px solid rgba(233, 196, 106, .16); }
.s-brand { display: flex; align-items: center; gap: 10px; }
.s-brand img { width: 46px; height: auto; filter: drop-shadow(0 2px 8px rgba(233,196,106,.35)); }
.s-brand span { font: 800 14px/1.02 var(--display); letter-spacing: .12em; text-transform: uppercase; color: var(--goldHi); }
.s-links { display: flex; gap: 22px; margin-left: auto; }
.s-links a { font: 600 13px/1 var(--display); letter-spacing: .06em; color: var(--dim); padding-block: 6px; border-bottom: 1.5px solid transparent; }
.s-links a:hover, .s-links a.on { color: var(--cream); border-color: var(--gold); }
.s-cta { font: 800 12.5px/1 var(--display); letter-spacing: .12em; text-transform: uppercase; color: #1E140C; background: linear-gradient(180deg, var(--goldHi), #C8961E); padding: 12px 18px; border-radius: 10px; box-shadow: 0 0 22px rgba(233,196,106,.35); white-space: nowrap; }
.s-burger { display: none; width: 40px; height: 40px; border: 1px solid var(--line); border-radius: 10px; background: transparent; padding: 11px 9px; flex-direction: column; justify-content: space-between; }
.s-burger i { display: block; height: 2px; background: var(--cream); border-radius: 1px; }

/* hero */
.h-hero { position: relative; text-align: center; }
.h-art { position: relative; height: 540px; overflow: hidden; }
.h-art img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 26%; }
.h-art::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(11,10,28,0) 45%, rgba(11,10,28,.75) 78%, var(--night) 100%), radial-gradient(ellipse at 50% 100%, rgba(11,10,28,.2), transparent 60%); }
.h-copy { position: relative; margin-top: -34px; padding-inline: 24px; display: grid; justify-items: center; gap: 18px; padding-bottom: 8px; }
.h-copy h1 { font-weight: 900; font-size: 68px; line-height: .98; letter-spacing: .01em; display: grid; gap: 4px; }
.h-copy h1 span:first-child { color: var(--cream); text-shadow: 0 4px 30px rgba(0,0,0,.6); }
.foil { background: linear-gradient(100deg, #B8860B 0%, #F5D27A 30%, #FFF6D8 45%, #F5D27A 60%, #C8961E 100%); background-size: 220% 100%; background-position: 100% 0; -webkit-background-clip: text; background-clip: text; color: transparent; filter: drop-shadow(0 4px 24px rgba(233,196,106,.28)); animation: foil 7s ease-in-out infinite; }
@keyframes foil { 0%, 55% { background-position: 100% 0; } 85%, 100% { background-position: 0% 0; } }
.h-lede { max-width: 560px; color: #E7DDF5; font-size: 18px; line-height: 1.6; }
.badges { display: flex; gap: 12px; flex-wrap: wrap; justify-content: center; }
.h-guide { font-size: 15px; color: var(--dim); }
.h-guide a { color: var(--goldHi); border-bottom: 1px solid rgba(245,210,122,.4); }

/* sections */
.sec { padding-block: 88px; }
.sec-head { display: grid; gap: 12px; max-width: 640px; margin-bottom: 36px; }
.sec-head h2, .sec h2 { font-size: 40px; line-height: 1.08; font-weight: 700; color: var(--cream); }
.sec-head p, .sec p.body { color: var(--dim); font-size: 17px; line-height: 1.65; }

.era-row { display: grid; grid-template-columns: repeat(5, 1fr); gap: 14px; }
.era { position: relative; border-radius: 14px; overflow: hidden; background: var(--panel); border: 1px solid rgba(255,255,255,.06); display: flex; flex-direction: column; }
.era img { aspect-ratio: 4 / 5; object-fit: cover; width: 100%; transition: transform .6s; }
.era:hover img { transform: scale(1.04); }
.era .t { position: absolute; inset: auto 0 0 0; padding: 70px 16px 16px; background: linear-gradient(180deg, transparent, rgba(11,10,28,.92) 45%); display: grid; gap: 6px; }
.era h3 { font-size: 18px; color: var(--cream); }
.era p { font-size: 13.5px; line-height: 1.45; color: #CFC8E4; min-height: 4.35em; }
.era .goal { min-height: 2.7em; font: 600 12px/1.35 var(--display); letter-spacing: .06em; text-transform: uppercase; color: var(--era); display: flex; gap: 6px; align-items: baseline; }
.era .goal::before { content: ""; width: 6px; height: 6px; flex: none; background: var(--era); transform: rotate(45deg) translateY(-1px); }

.throne { background: radial-gradient(ellipse at 80% 40%, rgba(179,136,255,.12), transparent 60%), var(--night2); }
.throne .wrap { display: grid; grid-template-columns: 1fr 1.05fr; gap: 56px; align-items: center; }
.throne-copy { display: grid; gap: 16px; }
.crown { list-style: none; padding: 0; margin: 6px 0 4px; display: grid; gap: 10px; }
.crown li { display: grid; grid-template-columns: 64px 1fr; align-items: center; gap: 14px; padding: 12px 16px; border-radius: 12px; background: rgba(26,20,56,.7); border: 1px solid var(--line); }
.crown b { font: 800 30px/1 var(--display); color: var(--goldHi); text-align: center; font-variant-numeric: tabular-nums; }
.crown span { font-size: 15px; color: var(--cream); }
.crown span small { display: block; color: var(--dim); font-size: 13px; }
.ladder { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; position: relative; }
.road { border: 1px solid var(--line); border-radius: 16px; padding: 18px 16px 16px; background: rgba(11,10,28,.6); }
.road h4 { font-size: 12px; letter-spacing: .2em; text-transform: uppercase; color: var(--violet); margin-bottom: 12px; text-align: center; }
.road ol { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column-reverse; gap: 6px; counter-reset: r; }
.road li { counter-increment: r; display: flex; justify-content: space-between; font-size: 14px; padding: 7px 12px; border-radius: 8px; background: rgba(255,255,255,.03); color: #D9D2EC; }
.road li::after { content: counter(r); font: 700 12px/1.6 var(--display); color: var(--dim); }
.road li:last-child { background: linear-gradient(90deg, rgba(233,196,106,.22), rgba(233,196,106,.06)); color: var(--goldHi); font-weight: 600; }
.challenge { grid-column: 1 / -1; text-align: center; padding: 16px; border-radius: 14px; border: 1.5px solid var(--gold); background: linear-gradient(180deg, rgba(233,196,106,.16), rgba(233,196,106,.04)); box-shadow: 0 0 40px rgba(233,196,106,.15); order: -1; }
.challenge b { display: block; font: 800 18px/1.2 var(--display); color: var(--goldHi); letter-spacing: .04em; }
.challenge span { font-size: 13.5px; color: var(--dim); }
.ladder-note { grid-column: 1 / -1; font-size: 12.5px; color: var(--dim); text-align: center; }

.comps .wrap { display: grid; grid-template-columns: 420px 1fr; gap: 56px; align-items: center; }
.comp-media { position: relative; height: 440px; }
.comp-media video { position: absolute; width: 300px; height: 300px; object-fit: cover; border-radius: 22px; border: 1.5px solid rgba(233,196,106,.6); box-shadow: 0 20px 60px rgba(0,0,0,.6), 0 0 40px rgba(179,136,255,.2); }
.comp-media video:first-child { left: 0; top: 0; }
.comp-media video:last-child { right: 0; bottom: 0; }
.comp-copy { display: grid; gap: 16px; }
.comp-strip { display: grid; grid-template-columns: repeat(6, 1fr); gap: 10px; margin-top: 6px; }
.comp-strip img { border-radius: 8px; aspect-ratio: 714 / 954; object-fit: cover; }

.feature .wrap { display: grid; grid-template-columns: 1.1fr 1fr; gap: 56px; align-items: center; }
.feature.flip .wrap { grid-template-columns: 1fr 1.1fr; }
.feature.flip .f-media { order: 2; }
.f-copy { display: grid; gap: 16px; }
.f-media { position: relative; }
.f-media .main { border-radius: 18px; width: 100%; aspect-ratio: 16 / 11; object-fit: cover; border: 1px solid rgba(255,255,255,.08); }
.f-media .inset { position: absolute; width: 34%; right: -18px; bottom: -26px; border-radius: 14px; border: 2px solid var(--gold); box-shadow: 0 16px 40px rgba(0,0,0,.6); }
.f-media.portal .main { object-fit: contain; background: radial-gradient(circle at 50% 55%, rgba(179,136,255,.28), transparent 65%); border: 0; }
.f-media.portal .inset { width: 30%; left: -10px; right: auto; bottom: -10px; }
.f-media.emblem { display: grid; place-items: center; aspect-ratio: 16 / 11; border-radius: 18px; background: radial-gradient(circle, rgba(122,46,56,.45), transparent 62%), var(--night2); border: 1px solid rgba(255,255,255,.06); }
.f-media.emblem img { width: 46%; filter: drop-shadow(0 18px 40px rgba(0,0,0,.6)); }
.stat-row { display: flex; gap: 22px; flex-wrap: wrap; }
.stat-row div { display: grid; }
.stat-row b { font: 800 26px/1.1 var(--display); color: var(--goldHi); }
.stat-row span { font-size: 12.5px; color: var(--dim); }

.gband { background: radial-gradient(ellipse at 80% 50%, rgba(233,196,106,.12), transparent 55%), linear-gradient(135deg, #2A1D52, #140F2E); border-block: 1px solid rgba(233,196,106,.45); }
.gband .wrap { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: center; }
.gband .kicker { color: var(--goldHi); }
.gband h2 { color: var(--cream); }
.gband p.body { color: #CFC8E4; }
.gband .copy { display: grid; gap: 14px; }
.qlist { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.qlist a { display: flex; justify-content: space-between; gap: 12px; padding: 14px 16px; border-radius: 12px; background: rgba(11,10,28,.6); border: 1px solid rgba(179,136,255,.3); font: 600 15px/1.35 var(--body); color: var(--cream); transition: border-color .2s; }
.qlist a:hover { border-color: rgba(233,196,106,.65); }
.qlist a::after { content: "\2192"; color: var(--goldHi); }
.btn-ink { justify-self: start; font: 800 13px/1 var(--display); letter-spacing: .12em; text-transform: uppercase; color: #1E140C; background: linear-gradient(180deg, var(--goldHi), #C8961E); padding: 14px 20px; border-radius: 10px; box-shadow: 0 0 22px rgba(233,196,106,.35); }


.s-foot { border-top: 1px solid rgba(233,196,106,.16); padding-block: 48px 36px; background: #08071A; }
.s-foot .wrap { display: grid; grid-template-columns: 1.3fr repeat(4, 1fr); gap: 28px; }
.s-foot .brand { display: grid; gap: 10px; align-content: start; }
.s-foot .brand img { width: 64px; }
.s-foot .brand p { color: var(--dim); font-size: 14px; font-style: italic; }
.s-foot h4 { font-size: 12px; letter-spacing: .18em; text-transform: uppercase; color: var(--gold); margin-bottom: 10px; }
.s-foot ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; font-size: 14px; color: var(--dim); }
.s-foot .legal { grid-column: 1 / -1; display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; padding-top: 22px; border-top: 1px solid rgba(255,255,255,.06); font-size: 13px; color: #9296B6; }

/* ---------- v2: crews, war table, kingdom + arcade ---------- */

.war { grid-column: 1 / -1; display: flex; flex-wrap: wrap; justify-content: center; gap: 16px 30px; margin-top: 18px; padding-top: 30px; border-top: 1px solid var(--line); }
.war figure { display: grid; justify-items: center; gap: 8px; }
.war img { width: 84px; filter: drop-shadow(0 10px 16px rgba(0,0,0,.6)); }
.war figcaption { font: 700 12px/1 var(--display); letter-spacing: .14em; text-transform: uppercase; color: var(--dim); }
.war-note { grid-column: 1 / -1; text-align: center; color: var(--dim); font-size: 14.5px; margin-top: -8px; }

.crew-row { display: grid; grid-template-columns: repeat(5, 1fr); gap: 14px; }
.crew { position: relative; border-radius: 16px; overflow: hidden; aspect-ratio: 3 / 4.3; background: #140F26; display: flex; align-items: flex-end; isolation: isolate; border: 1px solid rgba(255,255,255,.07); }
.crew img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; transition: transform .6s; }
.crew:hover img { transform: scale(1.05); }
.crew img.cup { inset: 15% 0 auto; margin: 0 auto; width: 56%; height: auto; object-fit: contain; z-index: -1; animation: loom 6s ease-in-out infinite; }
.crew::before { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, rgba(11,10,28,0) 40%, rgba(11,10,28,.95)); }
.crew div { padding: 16px; display: grid; gap: 4px; }
.crew h3 { font-size: 16px; color: var(--cream); }
.crew p { font-size: 13px; line-height: 1.4; color: #CFC8E4; min-height: 2.8em; }

.split { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.half { position: relative; border-radius: 22px; padding: 28px; display: grid; gap: 12px; align-content: start; overflow: hidden; border: 1px solid rgba(255,255,255,.08); }
.half h2 { font-size: 32px; }
.half.sk { background: linear-gradient(180deg, rgba(11,10,28,.25), rgba(11,10,28,.9) 62%), url(/img/sk_ground.webp) center / 260px repeat; }
.sk-art { position: relative; height: 240px; }
.sk-art img { position: absolute; bottom: 0; filter: drop-shadow(0 16px 26px rgba(0,0,0,.7)) drop-shadow(0 0 30px rgba(179,136,255,.35)); }
.sk-art img:first-child { left: 2%; width: 56%; }
.sk-art img:last-child { right: 4%; width: 38%; }
.half.arc { background: linear-gradient(180deg, rgba(11,10,28,0), rgba(11,10,28,.92) 60%), url(/img/arc_bg.webp) center top / cover; }
.arc-art { height: 240px; display: grid; place-items: center; }
.neon { font: 900 46px/1 var(--display); letter-spacing: .08em; color: #FFF; text-shadow: 0 0 6px #FF4FD8, 0 0 20px #B34DFF, 0 0 44px #29E3FF; animation: buzz 5s infinite; }
@keyframes buzz { 0%, 92%, 100% { opacity: 1; } 94% { opacity: .55; } 96% { opacity: 1; } 97% { opacity: .7; } }
.chips { list-style: none; padding: 0; margin: 4px 0 0; display: flex; flex-wrap: wrap; gap: 6px; }
.chips li { font: 600 12px/1 var(--display); letter-spacing: .06em; padding: 8px 10px; border-radius: 999px; border: 1px solid rgba(98,230,255,.45); color: #BFF4FF; background: rgba(20,40,60,.4); }

@media (max-width: 720px) {
  .war { gap: 14px 18px; }
  .war img { width: 60px; }
  .crew-row { grid-template-columns: none; grid-auto-flow: column; grid-auto-columns: 62%; overflow-x: auto; scroll-snap-type: x mandatory; margin-inline: -18px; padding-inline: 18px; scrollbar-width: none; }
  .crew { scroll-snap-align: start; }
  .half { padding: 20px; }
  .half h2 { font-size: 25px; }
  .sk-art, .arc-art { height: 180px; }
  .neon { font-size: 34px; }
}
@media (prefers-reduced-motion: reduce) {
  .crew img.cup, .fam li, .neon, .foil, .wline-run, .hits span, .bossbar.live .track i::after, .pin.now::after, .dp-hero-map img, .langs-card p { animation: none !important; }
}

/* ---------- the guide: the night codex (violet panels, gold type, built for reading) ---------- */
.codex { --read: #ECE5F7; --read2: #B9B2D3; --pan: rgba(26,20,56,.78); --pan2: rgba(36,28,74,.9); --edge: rgba(179,136,255,.28); background: radial-gradient(ellipse at 12% 0%, rgba(179,136,255,.16), transparent 42%), radial-gradient(ellipse at 100% 55%, rgba(233,196,106,.07), transparent 48%), radial-gradient(ellipse at 0% 100%, rgba(122,46,56,.18), transparent 45%), #0D0A21; color: var(--read); }
.codex .kicker { color: var(--violet); }
.g-head { padding-block: 64px 36px; display: grid; gap: 14px; max-width: 780px; }
.g-head h1 { font-size: 54px; line-height: 1.04; font-weight: 800; color: var(--cream); }
.g-head h1 em { font-style: normal; }
.g-head .lede { font-size: 18.5px; line-height: 1.65; color: var(--read2); max-width: 60ch; }
.search { display: flex; align-items: center; gap: 12px; height: 56px; margin-top: 10px; padding-inline: 18px; border-radius: 14px; background: rgba(11,10,28,.85); border: 1.5px solid rgba(233,196,106,.55); box-shadow: 0 0 0 4px rgba(233,196,106,.07), 0 12px 30px rgba(0,0,0,.35); }
.search svg { width: 20px; height: 20px; stroke: var(--goldHi); fill: none; stroke-width: 2; flex: none; }
.search input { flex: 1; min-width: 0; border: 0; background: transparent; font: 16px var(--body); color: var(--cream); outline: none; }
.search input::placeholder { color: #8A84A8; }
.g-sec { padding-bottom: 60px; }
.g-sec > h2 { font-size: 26px; line-height: 1.15; color: var(--goldHi); margin-bottom: 4px; display: flex; align-items: center; gap: 12px; }
.g-sec > h2::before, .ch-main h2::before { content: ""; width: 9px; height: 9px; flex: none; background: var(--gold); transform: rotate(45deg); box-shadow: 0 0 12px rgba(233,196,106,.7); }
.g-sec > p { color: var(--read2); margin-bottom: 20px; }
.qa { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin: 0; }
.qa div { padding: 18px 20px; border-radius: 16px; background: var(--pan); border: 1px solid var(--edge); display: grid; gap: 6px; align-content: start; transition: border-color .2s; }
.qa div:hover { border-color: rgba(233,196,106,.6); }
.qa dt { font: 700 17px/1.3 var(--display); color: var(--cream); }
.qa dd { margin: 0; font-size: 15px; line-height: 1.6; color: var(--read2); }
.qa dd a { display: inline-block; margin-top: 6px; font: 700 12px/1 var(--display); letter-spacing: .1em; text-transform: uppercase; color: var(--goldHi); }
.chapters { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.chapters a { display: grid; grid-template-columns: 58px 1fr; gap: 4px 12px; padding: 18px; border-radius: 16px; border: 1px solid var(--edge); background: var(--pan); height: 100%; transition: border-color .2s, transform .2s, box-shadow .2s; }
.chapters a:hover { border-color: rgba(233,196,106,.65); transform: translateY(-2px); box-shadow: 0 0 26px rgba(233,196,106,.12); }
.chapters .num { grid-row: span 2; font: 800 28px/1.05 var(--display); background: linear-gradient(180deg, #FFF1CC, #E9C46A 55%, #B8860B); -webkit-background-clip: text; background-clip: text; color: transparent; }
.chapters h3 { font-size: 16.5px; line-height: 1.25; color: var(--cream); }
.chapters p { font-size: 13.5px; line-height: 1.45; color: var(--read2); }
.chapters .hot { border-color: rgba(233,196,106,.7); background: linear-gradient(135deg, rgba(58,40,100,.9), rgba(26,18,52,.9)); box-shadow: 0 0 22px rgba(233,196,106,.14); }
.extras { display: flex; gap: 10px; flex-wrap: wrap; }
.extras a { font: 700 12px/1 var(--display); letter-spacing: .1em; text-transform: uppercase; padding: 12px 16px; border-radius: 999px; border: 1px solid rgba(233,196,106,.45); color: var(--goldHi); background: rgba(233,196,106,.06); }

/* chapter page */
.ch-grid { display: grid; grid-template-columns: 210px minmax(0, 1fr) 200px; gap: 40px; padding-block: 40px 72px; max-width: 1240px; margin: 0 auto; padding-inline: 40px; }
.ch-side { position: sticky; top: 92px; align-self: start; display: grid; gap: 2px; }
.ch-side h4, .ch-toc h4 { font-size: 12px; letter-spacing: .2em; text-transform: uppercase; color: var(--violet); margin-bottom: 8px; }
.ch-side a { display: grid; grid-template-columns: 32px 1fr; font-size: 13.5px; line-height: 1.35; padding: 7px 10px; border-radius: 10px; color: var(--read2); transition: background .2s, color .2s; }
.ch-side a:hover { color: var(--cream); background: rgba(179,136,255,.08); }
.ch-side a span { font: 700 12px/1.6 var(--display); color: var(--gold); }
.ch-side a.on { background: linear-gradient(90deg, rgba(233,196,106,.18), rgba(233,196,106,.04)); color: var(--cream); font-weight: 600; box-shadow: inset 2px 0 0 var(--goldHi); }
.ch-toc { position: sticky; top: 92px; align-self: start; display: grid; gap: 9px; font-size: 13.5px; color: var(--read2); }
.ch-toc a { padding-left: 12px; border-left: 2px solid rgba(179,136,255,.25); }
.ch-toc a.on { border-color: var(--goldHi); color: var(--cream); font-weight: 600; }
.ch-main { display: grid; gap: 22px; max-width: 720px; padding: 40px 44px 44px; border-radius: 26px; background: linear-gradient(180deg, rgba(30,23,64,.82), rgba(20,15,44,.82)); border: 1px solid var(--edge); box-shadow: 0 40px 90px rgba(0,0,0,.35); }
.crumbs { font-size: 13px; color: var(--read2); }
.crumbs a { color: var(--goldHi); }
.ch-main h1 { font-size: 46px; line-height: 1.05; font-weight: 800; color: var(--cream); display: grid; gap: 8px; }
.ch-main h1 small { font: 700 13px/1 var(--display); letter-spacing: .24em; color: var(--gold); }
.ch-meta { font-size: 13px; color: var(--read2); display: flex; gap: 14px; flex-wrap: wrap; }
.ch-lede { font-size: 18.5px; line-height: 1.7; color: var(--read); }
.ch-lede::first-letter { float: left; font: 800 66px/.82 var(--display); padding: 6px 10px 0 0; background: linear-gradient(180deg, #FFF1CC, #E9C46A 55%, #B8860B); -webkit-background-clip: text; background-clip: text; color: transparent; }
.seal { display: grid; grid-template-columns: 54px 1fr; gap: 16px; align-items: start; padding: 18px 20px; border-radius: 18px; background: linear-gradient(135deg, rgba(58,40,100,.97), rgba(26,18,52,.97)); border: 1.5px solid rgba(233,196,106,.75); box-shadow: 0 0 26px rgba(233,196,106,.16); color: var(--read); }
.seal .wax { width: 54px; height: 54px; border-radius: 50%; display: grid; place-items: center; background: radial-gradient(circle at 35% 30%, #B2454F, #6E1F28 70%); box-shadow: inset 0 0 0 3px rgba(0,0,0,.2), 0 3px 10px rgba(0,0,0,.5); font: 900 18px/1 var(--display); color: #F5D27A; }
.seal h4 { font-size: 12px; letter-spacing: .2em; text-transform: uppercase; color: var(--goldHi); margin-bottom: 6px; }
.seal p { font-size: 15.5px; line-height: 1.6; }
.seal b { color: #FFE9A8; font-weight: 600; }
.ch-main h2 { font-size: 25px; color: var(--goldHi); padding-top: 18px; margin-top: 4px; border-top: 1px solid rgba(179,136,255,.18); display: flex; align-items: center; gap: 12px; }
.ch-main p.t { font-size: 16.5px; line-height: 1.75; color: var(--read); }
.sources { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.src { padding: 16px 18px; border-radius: 16px; background: rgba(11,10,28,.55); border: 1px solid var(--edge); display: grid; gap: 6px; align-content: start; }
.src h3 { font-size: 15.5px; color: var(--cream); }
.src p { font-size: 14.5px; line-height: 1.55; color: var(--read2); }
.src .glow { justify-self: start; font: 700 12px/1 var(--display); letter-spacing: .14em; text-transform: uppercase; color: #1E140C; background: var(--goldHi); padding: 4px 7px; border-radius: 6px; box-shadow: 0 0 12px rgba(245,210,122,.5); }
.tbl { overflow-x: auto; border-radius: 16px; border: 1px solid var(--edge); background: rgba(11,10,28,.55); }
.tbl table { width: 100%; border-collapse: collapse; font-size: 15px; font-variant-numeric: tabular-nums; }
.tbl th { text-align: left; font: 700 12px/1.25 var(--display); letter-spacing: .14em; text-transform: uppercase; color: var(--goldHi); padding: 13px 14px; background: rgba(233,196,106,.08); border-bottom: 1px solid rgba(233,196,106,.3); }
.tbl td { padding: 12px 14px; border-top: 1px solid rgba(179,136,255,.14); vertical-align: top; color: var(--read); }
.tbl tr:nth-child(even) td { background: rgba(179,136,255,.04); }
.tbl td:first-child { font-weight: 600; white-space: nowrap; color: var(--cream); }
.tbl .arrow { color: var(--gold); }
.tbl .n { color: var(--cream); font-weight: 600; }
.fine { font-size: 14px; line-height: 1.65; color: var(--read2); }
.legend { list-style: none; margin: 0; padding: 0; display: grid; border-radius: 16px; border: 1px solid var(--edge); overflow: hidden; background: rgba(11,10,28,.55); }
.legend li { display: grid; grid-template-columns: 200px 1fr; gap: 14px; padding: 13px 16px; font-size: 14.5px; line-height: 1.5; color: var(--read); }
.legend li + li { border-top: 1px solid rgba(179,136,255,.14); }
.legend b { font: 700 15px/1.4 var(--display); color: var(--goldHi); }
.hall { display: grid; grid-template-columns: 150px 1fr; gap: 18px; align-items: center; padding: 18px; border-radius: 18px; background: radial-gradient(ellipse at 20% 30%, rgba(179,136,255,.28), transparent 60%), #120E2A; color: var(--cream); border: 1.5px solid rgba(233,196,106,.6); box-shadow: 0 0 30px rgba(179,136,255,.14); }
.hall img { border-radius: 14px; border: 1.5px solid var(--gold); }
.hall .who { display: grid; gap: 4px; }
.hall .ex { font: 600 12px/1 var(--display); letter-spacing: .2em; text-transform: uppercase; color: var(--violet); }
.hall h3 { font-size: 22px; color: var(--cream); }
.hall .title { font: 700 15px/1.2 var(--display); color: var(--goldHi); text-shadow: 0 0 14px rgba(245,210,122,.7); letter-spacing: .04em; }
.hall ul { list-style: none; padding: 0; margin: 8px 0 0; display: flex; gap: 6px; flex-wrap: wrap; }
.hall li { font-size: 12px; padding: 5px 9px; border-radius: 999px; background: rgba(179,136,255,.14); color: #DCD0FA; }
.steps { margin: 0; padding: 0; list-style: none; counter-reset: s; display: grid; gap: 12px; }
.steps li { counter-increment: s; position: relative; min-height: 34px; padding: 5px 0 0 46px; font-size: 15.5px; line-height: 1.6; color: var(--read); }
.steps li::before { content: counter(s); position: absolute; left: 0; top: 0; width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; font: 800 15px/1 var(--display); color: #1E140C; background: linear-gradient(180deg, #F5D27A, #C8961E); box-shadow: 0 0 14px rgba(233,196,106,.4); }
.callout { display: grid; gap: 6px; padding: 18px 20px; border-radius: 16px; border: 1px solid rgba(179,136,255,.45); background: linear-gradient(135deg, rgba(179,136,255,.14), rgba(179,136,255,.03)); }
.callout h4 { font-size: 16px; color: var(--cream); }
.callout p { font-size: 15px; line-height: 1.6; color: var(--read2); }
.pn { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.pn a { display: grid; gap: 4px; padding: 14px 16px; border-radius: 16px; border: 1px solid var(--edge); background: rgba(11,10,28,.55); transition: border-color .2s; }
.pn a:hover { border-color: rgba(233,196,106,.6); }
.pn a:last-child { text-align: right; }
.pn small { font: 700 12px/1 var(--display); letter-spacing: .14em; text-transform: uppercase; color: var(--gold); }
.pn b { font: 700 15px/1.3 var(--display); color: var(--cream); }
.m-chips { display: none; }


/* ---------- mobile layout (phone frame) ---------- */
@media (max-width: 720px) {
  .wrap { padding-inline: 18px; }
  .s-nav { height: 58px; padding-inline: 14px; gap: 10px; }
  .s-brand img { width: 36px; }
  .s-brand span { font-size: 12px; }
  .s-links { display: none; }
  .s-cta { margin-left: auto; padding: 10px 12px; font-size: 12px; }
  .s-burger { display: flex; }
  .h-art { height: 270px; }
  .h-art img { object-position: 50% 22%; }
  .h-copy { margin-top: -6px; gap: 14px; padding-inline: 18px; }
  .h-copy h1 { font-size: 38px; }
  .h-lede { font-size: 15.5px; }
  .badges { flex-direction: column; align-items: stretch; width: 100%; max-width: 260px; }
  .sec { padding-block: 56px; }
  .sec-head { margin-bottom: 22px; }
  .sec-head h2, .sec h2 { font-size: 27px; }
  .sec-head p, .sec p.body { font-size: 15.5px; }
  .era-row { grid-template-columns: none; grid-auto-flow: column; grid-auto-columns: 74%; overflow-x: auto; scroll-snap-type: x mandatory; margin-inline: -18px; padding-inline: 18px; padding-bottom: 6px; scrollbar-width: none; }
  .era { scroll-snap-align: start; }
  .throne .wrap, .comps .wrap, .feature .wrap, .feature.flip .wrap, .gband .wrap { grid-template-columns: minmax(0, 1fr); gap: 28px; }
  .feature.flip .f-media { order: 0; }
  .ladder { gap: 10px; }
  .road { padding: 14px 10px 10px; }
  .road li { font-size: 12.5px; padding: 5px 8px; }
  .comp-media { height: 300px; }
  .comp-media video { width: 200px; height: 200px; }
  .comp-strip { grid-template-columns: repeat(3, 1fr); }
  .f-media .inset { right: -4px; bottom: -16px; }
  .s-foot .wrap { grid-template-columns: 1fr 1fr; }
  .s-foot .brand { grid-column: 1 / -1; }
  /* guide */
  .g-head { padding-block: 36px 24px; }
  .g-head h1 { font-size: 32px; }
  .g-head .lede { font-size: 16px; }
  .g-sec > h2 { font-size: 22px; }
  .kicker { line-height: 1.4; letter-spacing: .18em; }
  .qa, .chapters, .sources, .pn { grid-template-columns: minmax(0, 1fr); }
  .ch-grid { grid-template-columns: minmax(0, 1fr); padding-inline: 18px; padding-top: 18px; gap: 0; }
  .ch-side, .ch-toc { display: none; }
  .m-chips { display: flex; gap: 8px; overflow-x: auto; margin: 0 -18px 18px; padding: 0 18px 4px; scrollbar-width: none; }
  .m-chips a { flex: none; font: 700 12px/1 var(--display); letter-spacing: .06em; padding: 10px 12px; border-radius: 999px; border: 1px solid rgba(179,136,255,.3); background: rgba(26,20,56,.8); color: #B9B2D3; }
  .m-chips a.on { background: linear-gradient(180deg, #F5D27A, #C8961E); color: #1E140C; border-color: #E9C46A; }
  .ch-main { padding: 22px 18px 26px; border-radius: 20px; }
  .tbl td:first-child { white-space: normal; }
  .tbl td, .tbl th { padding: 10px 10px; }
  .ch-main { gap: 18px; }
  .ch-main h1 { font-size: 32px; }
  .ch-lede { font-size: 16.5px; }
  .ch-lede::first-letter { font-size: 52px; }
  .ch-main h2 { font-size: 21px; }
  .seal { grid-template-columns: 42px 1fr; padding: 14px 16px; gap: 12px; }
  .seal .wax { width: 42px; height: 42px; font-size: 15px; }
  .legend li { grid-template-columns: minmax(0, 1fr); gap: 2px; }
  .hall { grid-template-columns: 96px 1fr; padding: 14px; gap: 14px; }
  .hall h3 { font-size: 17px; }
  .tbl table { font-size: 14px; }
}


/* ---------- live-site additions ---------- */
.s-nav { padding-left: max(32px, env(safe-area-inset-left, 0px)); padding-right: max(32px, env(safe-area-inset-right, 0px)); }
.badges a { display: block; }
.badges img { display: block; height: 52px; width: auto; }
.s-menu { display: none; }
@media (max-width: 720px) {
  .s-nav { padding-left: max(14px, env(safe-area-inset-left, 0px)); padding-right: max(14px, env(safe-area-inset-right, 0px)); }
  .badges { flex-direction: row; justify-content: center; max-width: none; }
  .badges img { height: 44px; }
  .s-nav.open + .s-menu { display: grid; position: fixed; top: 58px; left: 0; right: 0; z-index: 9; gap: 2px; padding: 10px 18px 18px; background: rgba(11,10,28,.98); border-bottom: 1px solid rgba(233,196,106,.25); box-shadow: 0 20px 40px rgba(0,0,0,.5); }
  .s-menu a { font: 600 15px/1 var(--display); letter-spacing: .04em; color: var(--cream); padding: 14px 4px; border-bottom: 1px solid rgba(255,255,255,.06); }
  .s-menu a.on { color: var(--goldHi); }
}

/* chapter art under the title */
.ch-art { margin: 0; border-radius: 18px; overflow: hidden; border: 1px solid rgba(233,196,106,.35); background: radial-gradient(circle at 50% 45%, rgba(179,136,255,.25), transparent 65%), #120E2A; }
.ch-art img { display: block; width: 100%; aspect-ratio: 16 / 7; object-fit: cover; }
.ch-art.contain img { aspect-ratio: auto; width: auto; max-width: 100%; height: 300px; margin: 0 auto; object-fit: contain; padding: 18px; filter: drop-shadow(0 16px 30px rgba(0,0,0,.55)); }
.ch-art figcaption { font-size: 12.5px; color: var(--dim); padding: 8px 14px 10px; }
.ch-main figure.inline { margin: 0; display: grid; grid-template-columns: 110px 1fr; gap: 16px; align-items: center; padding: 14px; border-radius: 16px; background: rgba(11,10,28,.55); border: 1px solid rgba(179,136,255,.28); }
.ch-main figure.inline img { width: 110px; border-radius: 12px; }
.ch-main figure.inline figcaption { font-size: 14.5px; line-height: 1.55; color: #B9B2D3; }
.ch-main .t a, .ch-main .fine a, .callout a, .qa dd a.inl, .doc a { color: var(--goldHi); border-bottom: 1px solid rgba(245,210,122,.35); }
.ch-main ul.t { margin: 0; padding-left: 20px; display: grid; gap: 6px; font-size: 16px; line-height: 1.65; }
.ch-main ul.t li::marker { color: var(--gold); }
.tbl caption { caption-side: bottom; text-align: left; padding: 10px 14px; font-size: 12.5px; color: var(--dim); }

/* guide search */
.sresults { display: grid; gap: 8px; margin-top: 10px; }
.sresults:empty { display: none; }
.sresults a { display: grid; gap: 3px; padding: 12px 16px; border-radius: 12px; background: rgba(26,20,56,.92); border: 1px solid rgba(179,136,255,.3); }
.sresults a:hover, .sresults a:focus-visible { border-color: rgba(233,196,106,.65); }
.sresults b { font: 700 14.5px/1.3 var(--display); color: var(--cream); }
.sresults span { font-size: 13.5px; line-height: 1.45; color: #B9B2D3; }
.sresults small { font: 700 12px/1 var(--display); letter-spacing: .14em; text-transform: uppercase; color: var(--gold); }
.sresults p { margin: 0; font-size: 14px; color: #B9B2D3; padding: 6px 4px; }

/* FAQ and glossary */
.faq-group { display: grid; gap: 12px; padding-bottom: 44px; }
.faq-group > h2 { font-size: 24px; color: var(--goldHi); display: flex; align-items: center; gap: 12px; margin: 0 0 4px; }
.faq-group > h2::before { content: ""; width: 9px; height: 9px; background: var(--gold); transform: rotate(45deg); box-shadow: 0 0 12px rgba(233,196,106,.7); }
.gloss { margin: 0; display: grid; gap: 0; border-radius: 16px; overflow: hidden; border: 1px solid rgba(179,136,255,.28); background: rgba(11,10,28,.55); }
.gloss div { display: grid; grid-template-columns: 220px 1fr; gap: 16px; padding: 13px 18px; }
.gloss div + div { border-top: 1px solid rgba(179,136,255,.14); }
.gloss dt { font: 700 15px/1.4 var(--display); color: var(--goldHi); }
.gloss dd { margin: 0; font-size: 15px; line-height: 1.6; color: #ECE5F7; }
.gloss dd a { color: var(--goldHi); border-bottom: 1px solid rgba(245,210,122,.35); }
.letters { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 18px; }
.letters a { font: 700 13px/1 var(--display); width: 34px; height: 34px; display: grid; place-items: center; border-radius: 10px; border: 1px solid rgba(179,136,255,.3); color: var(--cream); background: rgba(26,20,56,.7); }
.letters a:hover { border-color: var(--gold); color: var(--goldHi); }
@media (max-width: 720px) { .gloss div { grid-template-columns: minmax(0, 1fr); gap: 4px; } }

/* plain pages: support, deletion, play, 404, legal */
.page { max-width: 820px; margin: 0 auto; padding: 56px 24px 80px; display: grid; gap: 20px; }
.page h1 { font: 800 44px/1.06 var(--display); color: var(--cream); margin: 0; text-wrap: balance; }
.page .lede { font-size: 18px; line-height: 1.65; color: #B9B2D3; margin: 0; }
.card { padding: 22px 24px; border-radius: 18px; background: linear-gradient(180deg, rgba(30,23,64,.85), rgba(20,15,44,.85)); border: 1px solid rgba(179,136,255,.28); display: grid; gap: 12px; }
.card h2 { font: 700 20px/1.25 var(--display); color: var(--goldHi); margin: 0; }
.card p, .card li { margin: 0; font-size: 16px; line-height: 1.65; color: #ECE5F7; }
.card ol, .card ul { margin: 0; padding-left: 22px; display: grid; gap: 6px; }
.card.gold { border: 1.5px solid rgba(233,196,106,.7); background: linear-gradient(135deg, rgba(58,40,100,.97), rgba(26,18,52,.97)); box-shadow: 0 0 26px rgba(233,196,106,.14); }
.email { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; }
.email code { font: 600 17px/1.3 var(--body); color: var(--cream); background: rgba(11,10,28,.7); border: 1px solid rgba(179,136,255,.3); padding: 10px 14px; border-radius: 10px; user-select: all; overflow-wrap: anywhere; }
.btn { font: 800 12.5px/1 var(--display); letter-spacing: .12em; text-transform: uppercase; color: #1E140C; background: linear-gradient(180deg, var(--goldHi), #C8961E); padding: 13px 18px; border-radius: 10px; border: 0; cursor: pointer; box-shadow: 0 0 18px rgba(233,196,106,.3); }
.btn.ghost { color: var(--goldHi); background: transparent; border: 1px solid rgba(233,196,106,.55); box-shadow: none; }
.links { display: flex; flex-wrap: wrap; gap: 10px; }
.langs { display: flex; flex-wrap: wrap; gap: 6px; }
.langs a { font-size: 13px; padding: 8px 11px; border-radius: 999px; border: 1px solid rgba(179,136,255,.3); color: #B9B2D3; background: rgba(26,20,56,.6); }
.langs a.on { color: #1E140C; background: var(--goldHi); border-color: var(--goldHi); font-weight: 600; }
.doc { padding: 36px 40px; border-radius: 24px; background: linear-gradient(180deg, rgba(30,23,64,.82), rgba(20,15,44,.82)); border: 1px solid rgba(179,136,255,.28); color: #ECE5F7; font-size: 15.5px; line-height: 1.7; overflow-wrap: anywhere; }
.doc h1 { font: 800 36px/1.1 var(--display); color: var(--cream); margin: 0 0 12px; }
.doc h2 { font: 700 21px/1.3 var(--display); color: var(--goldHi); margin: 30px 0 8px; padding-top: 16px; border-top: 1px solid rgba(179,136,255,.18); }
.doc h3 { font: 700 16.5px/1.35 var(--display); color: var(--cream); margin: 20px 0 6px; }
.doc p { margin: 0 0 12px; }
.doc ul, .doc ol { margin: 0 0 12px; padding-inline-start: 22px; }
.doc li { margin-bottom: 4px; }
.doc strong { color: var(--cream); }
.doc blockquote { margin: 0 0 16px; padding: 14px 18px; border-radius: 14px; background: rgba(179,136,255,.1); border: 1px solid rgba(179,136,255,.3); font-size: 14.5px; }
.doc blockquote p { margin: 0; }
[dir="rtl"] .doc, [dir="rtl"] .page { text-align: right; }
@media (max-width: 720px) {
  .page { padding: 32px 18px 60px; }
  .page h1 { font-size: 32px; }
  .doc { padding: 22px 18px; }
  .doc h1 { font-size: 27px; }
  .email code { font-size: 14.5px; padding: 9px 11px; }
}
.play-wait { font-size: 15px; color: var(--dim); }

/* chapter galleries and icon lists */
.ch-main .gallery { display: grid; grid-template-columns: repeat(auto-fit, minmax(130px, 1fr)); gap: 12px; }
.gallery figure { margin: 0; display: grid; gap: 6px; text-align: center; align-content: start; }
.gallery img { width: 100%; aspect-ratio: 1; object-fit: contain; padding: 8px; border-radius: 16px; background: radial-gradient(circle at 50% 45%, rgba(179,136,255,.22), transparent 70%), rgba(11,10,28,.6); border: 1px solid rgba(179,136,255,.28); }
.gallery.tall img { aspect-ratio: 3 / 4; object-fit: cover; padding: 0; }
.gallery figcaption { font: 700 12px/1.3 var(--display); letter-spacing: .06em; color: var(--cream); }
.gallery figcaption small { display: block; font: 400 12px/1.4 var(--body); letter-spacing: 0; color: #B9B2D3; margin-top: 2px; }
.legend.icons li { grid-template-columns: 44px 180px 1fr; align-items: center; }
.legend.icons img { width: 44px; height: 44px; border-radius: 50%; }
@media (max-width: 720px) {
  .legend.icons li { grid-template-columns: 40px minmax(0, 1fr); }
  .legend.icons li span { grid-column: 2; }
  .legend.icons img { width: 40px; height: 40px; grid-row: span 2; }
}

/* wide tables (six or more columns, e.g. a rank per era) fit the reading panel */
.ch-main { max-width: 760px; }
.tbl:has(th:nth-child(6)) table { font-size: 13.5px; }
.tbl:has(th:nth-child(6)) th { font-size: 12px; letter-spacing: .06em; padding: 11px 8px; }
.tbl:has(th:nth-child(6)) td { padding: 10px 8px; }
.tbl:has(th:nth-child(6)) td:first-child { white-space: normal; }


/* ---------- 2026-10 review: bento art, companion gallery, the Dynasty teaser and page ---------- */
.comp-strip { grid-template-columns: repeat(6, 1fr); }

/* Soul Companions chapter: all twelve, whole */
.ch-main .cp-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; }
.ch-main .cp { margin: 0; display: grid; gap: 8px; align-content: start; }
.ch-main .cp img { width: 100%; height: auto; border-radius: 10px; box-shadow: 0 12px 26px rgba(0,0,0,.45); transition: transform .3s, box-shadow .3s; }
.ch-main .cp:hover img { transform: translateY(-4px); box-shadow: 0 16px 32px rgba(0,0,0,.55), 0 0 26px rgba(179,136,255,.35); }
.cp figcaption { display: grid; gap: 3px; justify-items: start; }
.cp figcaption b { font: 700 15px/1.2 var(--display); color: var(--cream); }
.cp figcaption small { font-size: 12.5px; line-height: 1.4; color: #B9B2D3; }
.cp .tag { font: 700 12px/1 var(--display); letter-spacing: .14em; text-transform: uppercase; padding: 4px 7px; border-radius: 6px; color: #1E140C; background: var(--goldHi); }
.cp .t-viking { background: #E3B341; } .cp .t-rome { background: #C9A0FF; } .cp .t-japan { background: #F07A68; }
.cp .t-china { background: #4FD39A; } .cp .t-future { background: #62E6FF; } .cp .t-trial, .cp .t-vip { background: #F5D27A; }
.cp .t-store { background: rgba(179,136,255,.25); color: #E4D8FF; } .cp .t-starter { background: #FFF1CC; }

/* shared Dynasty pieces */
.bossbar { display: grid; gap: 8px; padding: 16px 18px; border-radius: 16px; background: rgba(20,14,40,.88); border: 1px solid var(--line); backdrop-filter: blur(6px); }
.bossbar .lbl { display: flex; justify-content: space-between; gap: 12px; font: 700 12px/1.2 var(--display); letter-spacing: .14em; text-transform: uppercase; color: var(--dim); }
.bossbar .lbl b { color: #FF9A6A; white-space: nowrap; }
.bossbar .lbl em { font-style: normal; }
.bossbar .track { height: 12px; border-radius: 6px; background: rgba(255,255,255,.08); overflow: hidden; }
.bossbar .track i { position: relative; display: block; height: 100%; width: 38%; background: linear-gradient(90deg, #B8321E, #FF8A4A); box-shadow: 0 0 14px rgba(255,120,70,.6); }
.bossbar.live .track i::after { content: ""; position: absolute; left: 100%; top: 0; bottom: 0; width: 7%; background: rgba(255,226,180,.85); animation: trail 2.6s ease-out infinite; }
@keyframes trail { 0% { width: 7%; opacity: 1; } 70%, 100% { width: 0; opacity: .2; } }
.bossbar small { font-size: 12.5px; color: var(--dim); }
.fam { list-style: none; margin: 0; padding: 0; display: flex; justify-content: center; align-items: flex-end; gap: 10px; }
.fam li { display: grid; justify-items: center; gap: 6px; font-size: 12px; line-height: 1.2; color: var(--dim); text-align: center; animation: stride 2.6s ease-in-out infinite; animation-delay: calc(var(--i) * .22s); }
@keyframes stride { 50% { transform: translateY(-5px); } }
.fam img { width: 58px; height: 58px; border-radius: 50%; background: #1D1636; border: 2px solid rgba(179,136,255,.55); }
.fam li.you { color: var(--goldHi); font-weight: 600; }
.fam li.you img { width: 76px; height: 76px; border-color: var(--goldHi); box-shadow: 0 0 22px rgba(245,210,122,.5); }
.grow { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.grow > div { min-width: 0; padding: 22px; border-radius: 18px; background: rgba(20,14,40,.75); border: 1px solid var(--line); display: grid; gap: 12px; align-content: start; }
.grow h3 { font-size: 20px; color: var(--goldHi); }
.grow .icons { display: flex; gap: 10px; flex-wrap: wrap; }
.grow .icons img { width: 50px; height: 50px; border-radius: 50%; }
.meds { display: flex; flex-wrap: wrap; gap: 16px; }
.meds figure { margin: 0; display: grid; justify-items: center; gap: 6px; }
.meds img { width: 60px; }
.meds figcaption { font: 700 12px/1 var(--display); letter-spacing: .14em; text-transform: uppercase; color: var(--cream); }
.grow p { font-size: 14.5px; line-height: 1.55; color: var(--dim); }
.ex { font: 700 12px/1 var(--display); letter-spacing: .16em; text-transform: uppercase; color: var(--violet); padding: 4px 7px; border-radius: 6px; border: 1px solid rgba(179,136,255,.4); }

/* home: the Dynasty teaser */
.dyn { position: relative; padding-block: 96px; overflow: hidden; background: radial-gradient(ellipse at 85% 30%, rgba(90,170,255,.18), transparent 50%), radial-gradient(ellipse at 10% 80%, rgba(255,110,60,.16), transparent 50%), radial-gradient(ellipse at 50% 100%, rgba(122,46,56,.35), transparent 60%), #0A0816; border-block: 1px solid rgba(233,196,106,.22); }
.dyn-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: center; }
.dyn-copy { display: grid; gap: 18px; }
.dyn-copy h2 { font-size: 50px; line-height: 1.04; font-weight: 800; color: var(--cream); }
.dyn-copy .body { color: #D6CDEA; }
.dyn-points { list-style: none; margin: 4px 0 6px; padding: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.dyn-points li { display: grid; grid-template-columns: 48px 1fr; gap: 2px 12px; align-items: center; padding: 12px; border-radius: 14px; background: rgba(255,255,255,.03); border: 1px solid rgba(255,255,255,.07); }
.dyn-points img { grid-row: span 2; width: 48px; height: 48px; object-fit: contain; filter: drop-shadow(0 4px 10px rgba(0,0,0,.6)); }
.dyn-points b { font: 700 14px/1.2 var(--display); color: var(--cream); }
.dyn-points span { font-size: 12.5px; line-height: 1.4; color: var(--dim); }
.dyn-visual { position: relative; height: 560px; }
.dv-map { position: absolute; inset: 0 8% 0 14%; border-radius: 22px; overflow: hidden; border: 1.5px solid rgba(233,196,106,.5); box-shadow: 0 30px 80px rgba(0,0,0,.6), 0 0 60px rgba(179,136,255,.18); }
.dv-map img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 62%; }
.dv-map::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(10,8,22,.1), rgba(10,8,22,.2) 50%, rgba(10,8,22,.85)); }
.dv-boss { position: absolute; width: 46%; left: 0; top: 18%; filter: drop-shadow(0 24px 34px rgba(0,0,0,.85)) drop-shadow(0 0 30px rgba(120,190,255,.35)); animation: loom 6s ease-in-out infinite; }
@keyframes loom { 50% { transform: translateY(-8px) scale(1.02); } }
.dyn-visual .bossbar { position: absolute; left: 4%; right: 0; bottom: 64px; }
.dv-line { position: absolute; left: 14%; right: 8%; top: 18px; display: flex; gap: 10px; align-items: center; padding: 10px 12px; border-radius: 12px; background: rgba(11,10,28,.82); border: 1px solid rgba(233,196,106,.4); font-size: 13.5px; line-height: 1.35; color: var(--cream); }
.dv-line span, .wline-tag { flex: none; font: 800 12px/1 var(--display); letter-spacing: .16em; text-transform: uppercase; color: #1E140C; background: var(--goldHi); padding: 5px 7px; border-radius: 6px; }

/* the Dynasty page */
.dp-hero { position: relative; min-height: 640px; display: grid; align-items: center; overflow: hidden; background: radial-gradient(ellipse at 20% 40%, rgba(179,136,255,.16), transparent 55%), #0A0816; border-bottom: 1px solid rgba(233,196,106,.25); }
.dp-hero-map { position: absolute; top: 0; right: 0; bottom: 0; width: 56%; -webkit-mask-image: linear-gradient(90deg, transparent, #000 45%); mask-image: linear-gradient(90deg, transparent, #000 45%); }
.dp-hero-map img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 100%; animation: pan 46s ease-in-out infinite alternate; }
@keyframes pan { to { object-position: 50% 0%; } }
.dp-hero-map::after { content: ""; position: absolute; inset: 0; background: linear-gradient(0deg, #0A0816, rgba(10,8,22,0) 30%); }
.dp-hero-copy { position: relative; display: grid; gap: 20px; padding-block: 72px 120px; max-width: 1160px; width: 100%; }
.dp-hero-copy > * { max-width: 560px; }
.dp-hero h1 { font-size: 72px; line-height: 1; font-weight: 900; color: var(--cream); text-shadow: 0 4px 30px rgba(0,0,0,.6); }
.dp-hero .lede { font-size: 18px; line-height: 1.65; color: #E7DDF5; }
.dp-hero .badges { justify-content: flex-start; }
.wline { position: absolute; left: 0; right: 0; bottom: 0; display: flex; align-items: center; gap: 14px; padding: 12px 0 12px 24px; background: rgba(8,7,26,.86); border-top: 1px solid rgba(233,196,106,.3); overflow: hidden; }
.wline-tag { position: relative; z-index: 1; box-shadow: 18px 0 18px rgba(8,7,26,.95); }
.wline-run { display: flex; width: max-content; animation: run 90s linear infinite; }
.wline-run p { display: flex; gap: 48px; padding-right: 48px; margin: 0; white-space: nowrap; font-size: 14.5px; color: #E7DDF5; }
.wline-run span::before { content: "\25C6"; margin-right: 14px; color: var(--gold); font-size: 12px; vertical-align: 2px; }
@keyframes run { to { transform: translateX(-50%); } }

.dp-sec { padding-block: 96px; }
.dp-sec:nth-of-type(even) { background: radial-gradient(ellipse at 80% 20%, rgba(179,136,255,.1), transparent 55%), var(--night2); }
.dp-head { display: grid; gap: 12px; max-width: 680px; margin-bottom: 40px; }
.dp-head h2, .dp-sec h2 { font-size: 42px; line-height: 1.08; font-weight: 700; color: var(--cream); }
.dp-head p, .dp-sec p.body { color: var(--dim); font-size: 17px; line-height: 1.65; }
.dp-note { margin-top: 22px; color: var(--dim); font-size: 15px; line-height: 1.6; max-width: 760px; }
.dp-sec h3.sub { margin: 44px 0 16px; font-size: 22px; color: var(--goldHi); }

.road-grid { display: grid; grid-template-columns: 360px 1fr; gap: 48px; align-items: start; }
.road-map { position: sticky; top: 92px; margin: 0; border-radius: 22px; overflow: hidden; border: 1.5px solid rgba(233,196,106,.45); box-shadow: 0 30px 70px rgba(0,0,0,.55); }
.road-map img { width: 100%; height: auto; }
.pin { position: absolute; left: var(--x); top: var(--y); width: 18px; height: 18px; margin: -9px 0 0 -9px; border-radius: 50%; border: 2px solid #fff; box-shadow: 0 0 0 4px rgba(0,0,0,.35), 0 0 18px currentColor; }
.pin.won { color: #F5D27A; background: #F5D27A; }
.pin.now { color: #FF8A4A; background: #FF8A4A; }
.pin.now::after { content: ""; position: absolute; inset: -10px; border-radius: 50%; border: 2px solid #FF8A4A; animation: ping 2s ease-out infinite; }
@keyframes ping { from { transform: scale(.5); opacity: 1; } to { transform: scale(1.6); opacity: 0; } }
.pin.vote { color: #B388FF; background: #B388FF; }
.pin.sealed { color: #9BA3C7; background: #3A3558; }
.places { list-style: none; margin: 0; padding: 0; display: grid; gap: 14px; }
.places li { display: grid; grid-template-columns: 150px 1fr; gap: 22px; align-items: center; padding: 18px 22px; border-radius: 20px; background: rgba(26,20,56,.7); border: 1px solid var(--line); }
.places img { width: 150px; filter: drop-shadow(0 14px 22px rgba(0,0,0,.6)); }
.places div { display: grid; gap: 4px; }
.places h3 { font-size: 22px; color: var(--cream); }
.places small { font: 700 12px/1.3 var(--display); letter-spacing: .16em; text-transform: uppercase; color: var(--dim); }
.places p { margin-top: 4px; font-size: 15px; line-height: 1.6; color: #D6CDEA; }
.places em { display: block; margin-top: 6px; color: var(--goldHi); }
.places .st { justify-self: start; font: 800 12px/1 var(--display); letter-spacing: .16em; text-transform: uppercase; padding: 5px 8px; border-radius: 6px; }
.places .won { border-color: rgba(245,210,122,.5); }
.places .won .st { background: var(--goldHi); color: #1E140C; }
.places .now { border-color: rgba(255,138,74,.7); box-shadow: 0 0 34px rgba(255,138,74,.15); background: linear-gradient(135deg, rgba(90,40,30,.5), rgba(26,20,56,.8)); }
.places .now .st { background: #FF8A4A; color: #1E140C; }
.places .vote .st { background: rgba(179,136,255,.25); color: #E4D8FF; }
.places .sealed { opacity: .85; }
.places .sealed .st { background: rgba(155,163,199,.2); color: #C9CDE4; }

.arena-stage { display: grid; grid-template-columns: 1.05fr 1fr; gap: 40px; align-items: center; }
.stage-boss { position: relative; min-height: 460px; display: grid; place-items: center; border-radius: 26px; background: radial-gradient(circle at 50% 45%, rgba(120,190,255,.3), transparent 60%), url(/img/dy_map2.webp) center / cover; border: 1.5px solid rgba(233,196,106,.45); box-shadow: inset 0 0 0 2000px rgba(10,8,22,.45), 0 30px 70px rgba(0,0,0,.6); overflow: hidden; }
.stage-boss .boss { width: 70%; max-width: 400px; filter: drop-shadow(0 24px 34px rgba(0,0,0,.85)); animation: loom 6s ease-in-out infinite; }
.hits span { position: absolute; left: var(--x); top: 60%; font: 800 14px/1 var(--display); color: #FFE2B4; text-shadow: 0 2px 8px #000, 0 0 14px rgba(255,138,74,.8); opacity: 0; white-space: nowrap; animation: hit 6.4s ease-out infinite; animation-delay: var(--d); }
@keyframes hit { 0% { opacity: 0; transform: translateY(0); } 8% { opacity: 1; } 30% { opacity: 0; transform: translateY(-70px); } 100% { opacity: 0; } }
.stage-side { display: grid; gap: 18px; }
.stance, .fam-wrap { padding: 18px 20px; border-radius: 18px; background: rgba(26,20,56,.7); border: 1px solid var(--line); display: grid; gap: 12px; }
.stance h4, .fam-wrap h4 { font-size: 13px; letter-spacing: .12em; text-transform: uppercase; color: var(--goldHi); }
.stance ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 6px; }
.stance li { font: 700 12px/1 var(--display); letter-spacing: .06em; padding: 9px 12px; border-radius: 999px; border: 1px solid rgba(179,136,255,.35); color: var(--dim); }
.stance li.on { color: #1E140C; background: linear-gradient(180deg, #96D8FF, #4FA6E0); border-color: #96D8FF; box-shadow: 0 0 16px rgba(120,190,255,.5); }
.stance p, .fam-wrap p { font-size: 14px; line-height: 1.55; color: var(--dim); }
.ward-chain { list-style: none; margin: 40px 0 0; padding: 0; display: grid; grid-template-columns: repeat(8, minmax(0, 1fr)); gap: 10px; }
.ward-chain li { display: grid; gap: 4px; justify-items: center; text-align: center; padding: 10px 6px 12px; border-radius: 16px; background: rgba(11,10,28,.55); border: 1px solid var(--line); }
.ward-chain img { width: 100%; aspect-ratio: 1; object-fit: contain; filter: drop-shadow(0 8px 14px rgba(0,0,0,.6)); }
.ward-chain b { font: 700 12px/1.25 var(--display); color: var(--cream); }
.ward-chain small { font-size: 12px; color: var(--dim); }
.ward-chain .fell img { filter: grayscale(.85) brightness(.7); }
.ward-chain .fell small::before { content: "Fallen \00B7  "; color: var(--goldHi); }

.wboss { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.wboss article { position: relative; display: grid; gap: 8px; align-content: start; padding: 22px; border-radius: 22px; background: radial-gradient(circle at 50% 30%, rgba(200,40,60,.28), transparent 62%), #120A1C; border: 1.5px solid rgba(255,90,90,.35); }
.wboss img { height: 200px; width: 100%; object-fit: contain; filter: drop-shadow(0 18px 28px rgba(0,0,0,.8)); }
.wboss h3 { font-size: 22px; color: var(--cream); }
.wboss p { font-size: 14.5px; line-height: 1.55; color: var(--dim); }
.rar { justify-self: start; font: 800 12px/1 var(--display); letter-spacing: .16em; text-transform: uppercase; padding: 5px 7px; border-radius: 6px; color: #fff; }
.rar.boss { background: linear-gradient(90deg, #B8321E, #FF5A5A); }
.rar.c { background: #6E7391; } .rar.r { background: #3B7DD8; } .rar.e { background: #8E44D8; } .rar.l { background: linear-gradient(90deg, #D89A1E, #F5D27A); color: #1E140C; }
.spawns { display: grid; grid-template-columns: repeat(5, 1fr); gap: 12px; margin-top: 28px; }
.spawns figure { margin: 0; display: grid; gap: 8px; justify-items: center; text-align: center; padding: 16px 10px; border-radius: 18px; background: rgba(26,20,56,.7); border: 1px solid var(--line); }
.spawns img { height: 110px; width: auto; max-width: 100%; object-fit: contain; filter: drop-shadow(0 10px 16px rgba(0,0,0,.6)); }
.spawns .rar { justify-self: center; }
.spawns figcaption { font: 700 14px/1.25 var(--display); color: var(--cream); }
.spawns figcaption small { display: block; margin-top: 4px; font: 400 12px/1.4 var(--body); color: var(--dim); }
.spawns .pile { height: 110px; display: grid; grid-template-columns: 1fr 1fr; gap: 4px; align-items: center; }
.spawns .pile img { height: 50px; }
.events { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; }
.events article { display: grid; grid-template-columns: 64px 1fr; gap: 4px 14px; align-items: center; padding: 16px; border-radius: 18px; border: 1px solid var(--line); background: rgba(11,10,28,.55); }
.events img { grid-row: span 2; width: 64px; height: 64px; object-fit: contain; }
.events h4 { font-size: 16px; color: var(--cream); }
.events p { font-size: 13.5px; line-height: 1.45; color: var(--dim); }
.ev-moon { background: radial-gradient(circle at 15% 50%, rgba(200,30,40,.3), transparent 60%), rgba(11,10,28,.55) !important; }
.ev-hart { background: radial-gradient(circle at 15% 50%, rgba(233,196,106,.25), transparent 60%), rgba(11,10,28,.55) !important; }

.boards-grid, .camp-grid, .oath-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: center; }
.boards-copy, .camp-copy { display: grid; gap: 16px; }
.board, .camp { border-radius: 22px; padding: 18px; background: linear-gradient(180deg, rgba(36,28,74,.95), rgba(20,15,44,.95)); border: 1.5px solid rgba(233,196,106,.5); box-shadow: 0 30px 70px rgba(0,0,0,.5); }
.board-top, .camp-top { display: flex; align-items: center; gap: 10px; margin-bottom: 12px; }
.board-top img, .camp-top img { width: 34px; }
.board-top b, .camp-top b { font: 800 18px/1 var(--display); color: var(--goldHi); }
.board-top .ex, .camp-top .ex { margin-left: auto; }
.tabs { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; padding: 4px; border-radius: 12px; background: rgba(11,10,28,.6); margin-bottom: 12px; }
.tabs button { font: 700 12px/1 var(--display); letter-spacing: .1em; text-transform: uppercase; padding: 11px; border: 0; border-radius: 9px; background: transparent; color: var(--dim); cursor: pointer; }
.tabs button[aria-selected="true"] { background: linear-gradient(180deg, var(--goldHi), #C8961E); color: #1E140C; }
.rows { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.rows[hidden] { display: none; }
.rows li { position: relative; display: grid; grid-template-columns: 34px 1fr auto; gap: 10px; align-items: center; padding: 11px 12px; border-radius: 10px; background: rgba(11,10,28,.55); overflow: hidden; isolation: isolate; }
.rows i { position: absolute; left: 0; top: 0; bottom: 0; width: var(--w); z-index: -1; background: linear-gradient(90deg, rgba(179,136,255,.22), rgba(179,136,255,.05)); }
.rows .rk { font: 800 15px/1 var(--display); color: var(--goldHi); text-align: center; }
.rows b { font-size: 14.5px; font-weight: 600; color: var(--cream); }
.rows em { font: 700 13px/1 var(--display); font-style: normal; color: #FF9A6A; }
.rows li:nth-child(-n+3) .rk { color: #1E140C; background: var(--goldHi); border-radius: 50%; width: 26px; height: 26px; display: grid; place-items: center; justify-self: center; font-size: 13px; }
.rows li.you { margin-top: 8px; border: 1px solid rgba(233,196,106,.6); background: rgba(233,196,106,.1); }
.pay { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.pay li { padding-left: 18px; position: relative; font-size: 15px; line-height: 1.55; color: #D6CDEA; }
.pay li::before { content: ""; position: absolute; left: 0; top: .55em; width: 7px; height: 7px; background: var(--gold); transform: rotate(45deg); }
.pay b { color: var(--cream); margin-right: 4px; }
.trophy { margin: 4px 0 0; display: grid; grid-template-columns: 96px 1fr; gap: 16px; align-items: center; padding: 14px; border-radius: 18px; background: rgba(11,10,28,.55); border: 1px solid rgba(233,196,106,.45); }
.trophy img { width: 96px; border-radius: 12px; }
.trophy figcaption { font-size: 14px; line-height: 1.5; color: var(--dim); }
.trophy b { display: block; font: 700 17px/1.2 var(--display); color: var(--goldHi); }

.langs-card { position: relative; display: grid; gap: 8px; padding: 18px 20px; border-radius: 18px; border: 1px solid rgba(179,136,255,.45); background: linear-gradient(135deg, rgba(179,136,255,.14), rgba(179,136,255,.03)); }
.lc-tag { font: 700 12px/1 var(--display); letter-spacing: .18em; text-transform: uppercase; color: var(--violet); }
.langs-card p { margin: 0; font-size: 17px; line-height: 1.45; color: var(--cream); animation: glow 8s ease-in-out infinite; }
.langs-card p:nth-of-type(2) { animation-delay: 2s; } .langs-card p:nth-of-type(3) { animation-delay: 4s; } .langs-card p:nth-of-type(4) { animation-delay: 6s; }
@keyframes glow { 0%, 30%, 100% { opacity: .5; } 8%, 22% { opacity: 1; color: var(--goldHi); } }
.msgs { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.msgs li { display: grid; grid-template-columns: auto 1fr; gap: 4px 10px; align-items: center; padding: 12px 14px; border-radius: 14px 14px 14px 4px; background: rgba(11,10,28,.6); border: 1px solid rgba(255,255,255,.06); max-width: 92%; }
.msgs li.mine { justify-self: end; border-radius: 14px 14px 4px 14px; background: rgba(233,196,106,.12); border-color: rgba(233,196,106,.45); }
.msgs b { font-size: 13px; font-weight: 600; color: var(--dim); }
.msgs p { grid-column: 1 / -1; margin: 0; font-size: 15px; line-height: 1.45; color: var(--cream); }
.k { font: 800 12px/1 var(--display); letter-spacing: .14em; text-transform: uppercase; padding: 4px 7px; border-radius: 6px; color: #1E140C; }
.k.rally { background: #FF8A4A; } .k.camp { background: #96D8FF; } .k.shout { background: var(--goldHi); } .k.honour { background: #C9A0FF; }

.oath-grid { grid-template-columns: 300px 1fr; }
.stone { margin: 0; display: grid; place-items: center; padding: 20px; border-radius: 26px; background: radial-gradient(circle at 50% 50%, rgba(179,136,255,.3), transparent 65%); }
.stone img { width: 100%; max-width: 280px; filter: drop-shadow(0 24px 36px rgba(0,0,0,.7)); }
.oath-grid > div { display: grid; gap: 16px; }
.oaths { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.oaths div { display: grid; gap: 5px; align-content: start; padding: 16px; border-radius: 16px; background: rgba(26,20,56,.75); border: 1px solid var(--line); }
.oaths span { font: 700 12px/1 var(--display); letter-spacing: .16em; text-transform: uppercase; color: var(--violet); }
.oaths b { font: 700 16px/1.25 var(--display); color: var(--cream); }
.oaths small { font-size: 13px; line-height: 1.45; color: var(--dim); }
.sworn { display: flex; gap: 14px; align-items: center; padding: 14px 16px; border-radius: 16px; border: 1.5px solid rgba(233,196,106,.6); background: linear-gradient(135deg, rgba(233,196,106,.14), rgba(233,196,106,.03)); font-size: 15px; line-height: 1.55; color: #D6CDEA; }
.sworn img { width: 54px; flex: none; }
.sworn b { color: var(--goldHi); }

.chron { display: grid; grid-template-columns: 1fr 1.2fr; gap: 20px; align-items: stretch; }
.living { display: grid; gap: 18px; align-content: center; padding: 28px; border-radius: 22px; text-align: center; background: radial-gradient(circle at 50% 0%, rgba(233,196,106,.16), transparent 60%), rgba(20,14,40,.85); border: 1px solid rgba(233,196,106,.4); }
.lw { font: 800 12px/1 var(--display); letter-spacing: .24em; text-transform: uppercase; color: var(--goldHi); }
.lw em { font-style: normal; margin-left: 8px; color: var(--violet); letter-spacing: .14em; font-size: 12px; }
.counts { display: grid; gap: 14px; }
.counts b { display: block; font: 800 38px/1 var(--display); color: var(--cream); font-variant-numeric: tabular-nums; }
.counts span, .living > p { font-size: 13px; letter-spacing: .08em; color: var(--dim); }
.book { display: grid; gap: 12px; align-content: start; padding: 28px; border-radius: 22px; background: linear-gradient(180deg, rgba(58,40,100,.6), rgba(26,18,52,.85)); border: 1px solid var(--line); }
.bk { font: 800 12px/1.3 var(--display); letter-spacing: .2em; text-transform: uppercase; color: var(--goldHi); }
.book p { font-size: 16.5px; line-height: 1.7; color: #E7DDF5; font-style: italic; }
.podium { list-style: none; margin: 10px 0 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; align-items: end; text-align: center; }
.podium li { display: grid; gap: 6px; padding: 12px 6px; border-radius: 12px 12px 4px 4px; background: rgba(11,10,28,.6); font-size: 13px; line-height: 1.3; color: var(--cream); }
.podium b { font: 800 22px/1 var(--display); color: var(--goldHi); }
.podium .p1 { padding-block: 26px 14px; border: 1px solid rgba(233,196,106,.6); background: rgba(233,196,106,.12); }
.podium .p2 { padding-top: 18px; }
.book .ex { justify-self: start; }

.dp-close { padding-block: 96px; text-align: center; background: radial-gradient(ellipse at 50% 30%, rgba(122,46,56,.45), transparent 60%), #0A0816; border-top: 1px solid rgba(233,196,106,.25); }
.dp-close .wrap { display: grid; justify-items: center; gap: 18px; }
.dp-close .em { width: 120px; filter: drop-shadow(0 12px 30px rgba(233,196,106,.35)); }
.dp-close h2 { font-size: 44px; color: var(--cream); }
.dp-close p { max-width: 520px; color: var(--dim); font-size: 17px; }

@media (max-width: 960px) {
  .ward-chain { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .spawns { grid-template-columns: repeat(3, 1fr); }
  .events { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 720px) {
  .split, .grow { grid-template-columns: minmax(0, 1fr); }
  .comp-strip { grid-template-columns: repeat(4, 1fr); gap: 8px; }
  .ch-main .cp-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
  .cp figcaption b { font-size: 13px; }
  .cp figcaption small { font-size: 12px; }
  .cp .tag { font-size: 12px; padding: 3px 5px; letter-spacing: .1em; }
  .ch-art.contain img { height: 220px; }
  .fam { gap: 6px; }
  .fam img { width: 44px; height: 44px; }
  .fam li.you img { width: 58px; height: 58px; }
  .fam li { font-size: 12px; }
  .dyn { padding-block: 60px; }
  .dyn-grid { grid-template-columns: minmax(0, 1fr); gap: 32px; }
  .dyn-copy h2 { font-size: 32px; }
  .dyn-points { grid-template-columns: minmax(0, 1fr); }
  .dyn-visual { height: 440px; }
  .dv-map { inset: 0 0 0 10%; }
  .dv-boss { width: 52%; top: 22%; }
  .dv-line { left: 10%; right: 0; font-size: 12.5px; }
  .dyn-visual .bossbar { left: 0; bottom: 18px; }
  .dp-hero { min-height: 0; align-items: end; }
  .dp-hero-map { width: 100%; height: 62%; bottom: auto; -webkit-mask-image: none; mask-image: none; }
  .dp-hero-map img { object-position: 50% 60%; animation: none; }
  .dp-hero-map::after { background: linear-gradient(0deg, #0A0816 4%, rgba(10,8,22,.35) 60%, rgba(10,8,22,.2)); }
  .dp-hero-copy { padding-block: 240px 96px; gap: 16px; }
  .dp-hero h1 { font-size: 44px; }
  .dp-hero .lede { font-size: 16px; }
  .dp-hero .badges { justify-content: flex-start; }
  .wline { padding-left: 14px; }
  .wline-run p { font-size: 13px; }
  .dp-sec { padding-block: 60px; }
  .dp-head { margin-bottom: 26px; }
  .dp-head h2, .dp-sec h2 { font-size: 29px; }
  .dp-head p, .dp-sec p.body { font-size: 15.5px; }
  .road-grid { grid-template-columns: minmax(0, 1fr); gap: 20px; }
  .road-map { position: relative; top: 0; max-width: 300px; justify-self: center; }
  .places li { grid-template-columns: 92px 1fr; gap: 14px; padding: 14px; }
  .places img { width: 92px; }
  .places h3 { font-size: 18px; }
  .places p { font-size: 14px; }
  .arena-stage, .boards-grid, .camp-grid, .oath-grid, .chron { grid-template-columns: minmax(0, 1fr); gap: 24px; }
  .stage-boss { min-height: 340px; }
  .hits span { font-size: 12px; left: calc(var(--x) * .55); }
  .ward-chain { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 6px; }
  .ward-chain b { font-size: 12px; }
  .ward-chain small { font-size: 12px; }
  .wboss { grid-template-columns: minmax(0, 1fr); }
  .wboss article { grid-template-columns: 110px 1fr; gap: 4px 14px; padding: 16px; }
  .wboss img { grid-row: span 3; height: 110px; }
  .spawns { grid-template-columns: 1fr 1fr; }
  .spawns .chests { grid-column: 1 / -1; }
  .events { grid-template-columns: minmax(0, 1fr); }
  .oath-grid .stone { max-width: 220px; justify-self: center; }
  .oaths { grid-template-columns: minmax(0, 1fr); }
  .counts b { font-size: 30px; }
  .book { padding: 20px; }
  .book p { font-size: 15px; }
  .dp-close h2 { font-size: 30px; }
}

/* ---------- 2026-10 UI pass ---------- */
/* the footer sits at the foot of short pages */
body.site { display: flex; flex-direction: column; }
body.site > main { flex: 1 0 auto; }
.m-only { display: none; }

/* home: the cycle of a soul */
.cycle { padding-block: 72px 80px; background: radial-gradient(ellipse at 50% 0%, rgba(179,136,255,.12), transparent 60%), var(--night); }
.cycle-head { display: grid; gap: 12px; justify-items: center; text-align: center; max-width: 640px; margin: 0 auto 40px; }
.cycle-head h2 { font-size: 44px; line-height: 1.06; color: var(--cream); }
.cycle-head p { color: var(--dim); font-size: 17px; line-height: 1.65; }
.loop { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 28px; }
.loop li { position: relative; }
.loop li:not(:last-child)::after { content: "\2192"; position: absolute; right: -24px; top: 34%; width: 20px; text-align: center; font: 700 22px/1 var(--display); color: var(--gold); }
.loop a { display: grid; height: 100%; border-radius: 18px; overflow: hidden; background: linear-gradient(180deg, rgba(36,28,74,.9), rgba(20,15,44,.95)); border: 1px solid rgba(233,196,106,.35); transition: transform .25s, border-color .25s, box-shadow .25s; }
.loop a:hover { transform: translateY(-4px); border-color: rgba(233,196,106,.75); box-shadow: 0 18px 40px rgba(0,0,0,.45), 0 0 30px rgba(233,196,106,.12); }
.loop figure { position: relative; margin: 0; aspect-ratio: 4 / 3; overflow: hidden; }
.loop figure img { width: 100%; height: 100%; object-fit: cover; }
.loop figure::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(20,15,44,0) 55%, rgba(20,15,44,.95)); }
.loop figure .emblem { position: absolute; z-index: 1; width: 34%; height: auto; left: 50%; top: 46%; transform: translate(-50%, -50%); filter: drop-shadow(0 0 22px rgba(179,136,255,.8)); animation: rise 5s ease-in-out infinite; }
@keyframes rise { 50% { transform: translate(-50%, -58%); } }
.lc { display: grid; gap: 8px; align-content: start; padding: 4px 20px 22px; margin-top: -28px; position: relative; }
.lc .n { justify-self: start; width: 40px; height: 40px; display: grid; place-items: center; border-radius: 50%; font: 800 14px/1 var(--display); color: #1E140C; background: linear-gradient(180deg, var(--goldHi), #C8961E); box-shadow: 0 0 18px rgba(233,196,106,.45); }
.lc h3 { font-size: 24px; color: var(--cream); }
.lc p { font-size: 15px; line-height: 1.55; color: #D6CDEA; }
.lc .chip { justify-self: start; margin-top: 4px; font: 700 12px/1 var(--display); letter-spacing: .06em; padding: 7px 10px; border-radius: 999px; color: var(--goldHi); border: 1px solid rgba(233,196,106,.45); background: rgba(233,196,106,.08); }
.return { display: block; width: 100%; height: 56px; margin-top: 6px; }
.again { text-align: center; margin-top: -8px; font: italic 16px/1.4 var(--body); color: var(--goldHi); }

/* home: the arcade panel shows its games */
.arc-art { display: grid; place-items: center; gap: 18px; align-content: center; }
.arc-cabs { display: flex; gap: 8px; justify-content: center; }
.arc-cabs img { width: 62px; border-radius: 10px; border: 1px solid rgba(98,230,255,.5); box-shadow: 0 0 16px rgba(179,77,255,.4); }

/* galleries: rows fill, and a short last row is centred */
.ch-main .gallery { display: flex; flex-wrap: wrap; justify-content: center; gap: 14px 12px; }
.ch-main .gallery > figure { flex: 0 1 calc((100% - 36px) / 4); min-width: 0; }
.ch-main .gallery:has(> figure:nth-child(5):last-child) > figure { flex-basis: calc((100% - 48px) / 5); }
.ch-main .gallery:has(> figure:nth-child(3):last-child) > figure, .ch-main .gallery:has(> figure:nth-child(6):last-child) > figure { flex-basis: calc((100% - 24px) / 3); }
.ch-main .gallery:has(> figure:nth-child(2):last-child) > figure { flex-basis: calc((100% - 12px) / 2); }
.gallery img { background: radial-gradient(circle at 50% 45%, rgba(200,170,255,.38), rgba(60,45,110,.35) 55%, rgba(11,10,28,.6) 80%); }
.gallery.tall img { filter: brightness(1.12) contrast(1.04); }
.gallery figcaption { font-size: 13px; }
.gallery figcaption small { font-size: 13px; }
.gallery .locked { position: relative; }
.gallery .locked .frame { position: relative; display: block; aspect-ratio: 1; border-radius: 16px; overflow: hidden; border: 1.5px solid rgba(233,196,106,.55); background: #0E0B22; }
.gallery .locked .frame img { width: 100%; height: 100%; object-fit: cover; padding: 0; border: 0; border-radius: 0; filter: brightness(.18) blur(3px) saturate(.4); }
.gallery .locked .frame b { position: absolute; inset: 0; display: grid; place-items: center; font: 800 15px/1.3 var(--display); letter-spacing: .14em; text-transform: uppercase; color: var(--goldHi); text-align: center; padding: 12px; }

/* icons in lists sit on a lit disc */
.legend.icons li { grid-template-columns: 52px 180px 1fr; }
.legend.icons img { width: 52px; height: 52px; padding: 5px; object-fit: contain; background: radial-gradient(circle, rgba(200,170,255,.32), rgba(40,30,80,.6) 70%); border: 1px solid rgba(179,136,255,.35); }

/* pictures beside text are shown large; wide scenes run full width */
.ch-main figure.inline { grid-template-columns: 180px 1fr; }
.ch-main figure.inline img { width: 180px; }
.ch-main figure.wide { margin: 0; display: grid; gap: 0; border-radius: 16px; overflow: hidden; border: 1px solid rgba(233,196,106,.35); background: rgba(11,10,28,.55); }
.ch-main figure.wide img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; }
.ch-main figure.wide figcaption { font-size: 14px; line-height: 1.55; color: #B9B2D3; padding: 10px 14px 12px; }

/* tables: short values never wrap */
.tbl td.s { white-space: nowrap; }

/* the guide's front page */
.chapters a { position: relative; }
.chapters p { font-size: 14.5px; color: #C9C2E0; }
.hot-tag { position: absolute; top: -9px; right: 14px; font: 800 12px/1 var(--display); letter-spacing: .1em; text-transform: uppercase; color: #1E140C; background: linear-gradient(180deg, var(--goldHi), #C8961E); padding: 5px 8px; border-radius: 6px; }

/* FAQ: balanced columns and topic chips */
.qa { display: block; columns: 2; column-gap: 12px; }
.qa > div { break-inside: avoid; margin-bottom: 12px; }
.topics { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 8px; }
.topics a { font: 700 12px/1 var(--display); letter-spacing: .06em; padding: 10px 13px; border-radius: 999px; border: 1px solid rgba(233,196,106,.45); color: var(--goldHi); background: rgba(233,196,106,.06); }

/* glossary: a heading for each letter */
.gloss .gl-letter { display: block; padding: 18px 18px 6px; background: rgba(179,136,255,.08); }
.gloss .gl-letter span { font: 800 22px/1 var(--display); color: var(--goldHi); }
.gloss dt { font-size: 16px; }

/* legal pages: a contents list */
.doc-toc { border-radius: 16px; border: 1px solid rgba(179,136,255,.3); background: rgba(26,20,56,.7); padding: 14px 18px; }
.doc-toc summary { cursor: pointer; font: 700 15px/1.3 var(--display); color: var(--goldHi); }
.doc-toc nav { display: grid; gap: 8px; margin-top: 12px; font-size: 15px; }
.doc-toc a { color: #ECE5F7; }
.doc { overflow-wrap: break-word; }

/* the "Example" tag stays a small pill wherever it sits */
.ex { justify-self: start; align-self: start; display: inline-block; width: auto; }
.hall .ex { border: 1px solid rgba(179,136,255,.4); padding: 4px 7px; border-radius: 6px; }

/* the Play page */
.play-art { width: 100%; max-width: 640px; border-radius: 18px; border: 1px solid rgba(233,196,106,.35); box-shadow: 0 20px 50px rgba(0,0,0,.5); }

@media (max-width: 960px) {
  .loop { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .loop li:nth-child(2)::after { display: none; }
  .return { display: none; }
}
@media (max-width: 720px) {
  .d-only { display: none; }
  .m-only { display: inline; }
  .h-art { height: 300px; }
  .h-art img { object-position: 50% 30%; }
  .h-art::after { background: linear-gradient(180deg, rgba(11,10,28,0) 62%, rgba(11,10,28,.7) 86%, var(--night) 100%); }
  .h-copy { margin-top: 2px; }
  .cycle { padding-block: 52px 56px; }
  .cycle-head { margin-bottom: 24px; }
  .cycle-head h2 { font-size: 30px; }
  .cycle-head p { font-size: 15.5px; }
  .loop { grid-template-columns: none; grid-auto-flow: column; grid-auto-columns: 78%; gap: 14px; overflow-x: auto; scroll-snap-type: x mandatory; margin-inline: -18px; padding: 0 18px 8px; scrollbar-width: none; }
  .loop li { scroll-snap-align: start; }
  .loop li::after { display: none; }
  .lc h3 { font-size: 21px; }
  .again { margin-top: 10px; font-size: 15px; }
  .era-row { grid-template-columns: 1fr 1fr; grid-auto-flow: row; grid-auto-columns: auto; overflow: visible; margin-inline: 0; padding: 0; gap: 10px; }
  .era:last-child { grid-column: 1 / -1; }
  .era:last-child img { aspect-ratio: 16 / 9; }
  .era .t { padding: 50px 12px 12px; }
  .era h3 { font-size: 16px; }
  .era p { font-size: 13px; min-height: 0; }
  .era .goal { min-height: 0; }
  .war { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px 8px; justify-items: center; }
  .war figcaption { letter-spacing: .06em; text-align: center; }
  .war img { width: 68px; }
  .arc-cabs img { width: 48px; }
  .ch-main .gallery > figure, .ch-main .gallery:has(> figure:nth-child(5):last-child) > figure, .ch-main .gallery:has(> figure:nth-child(6):last-child) > figure { flex-basis: calc((100% - 24px) / 3); }
  .legend.icons li { grid-template-columns: 48px minmax(0, 1fr); }
  .legend.icons img { width: 48px; height: 48px; }
  .ch-main figure.inline { grid-template-columns: 120px 1fr; }
  .ch-main figure.inline img { width: 120px; }
  .qa { columns: 1; }
  .tbl.cards { overflow: visible; border: 0; background: none; }
  .tbl.cards table, .tbl.cards tbody, .tbl.cards tr, .tbl.cards td { display: block; width: 100%; }
  .tbl.cards thead { display: none; }
  .tbl.cards tbody { display: grid; gap: 10px; }
  .tbl.cards tr { border-radius: 14px; border: 1px solid var(--edge); background: rgba(11,10,28,.6); padding: 12px 14px; display: grid; gap: 6px; }
  .tbl.cards tr td, .tbl.cards tr:nth-child(even) td { border: 0; padding: 0; background: none; white-space: normal; }
  .tbl.cards td:first-child { font: 700 16px/1.3 var(--display); color: var(--goldHi); padding-bottom: 2px; }
  .tbl.cards td:not(:first-child) { display: grid; grid-template-columns: minmax(96px, 40%) 1fr; gap: 10px; font-size: 14.5px; line-height: 1.45; }
  .tbl.cards td:not(:first-child)::before { content: attr(data-label); font: 700 12px/1.45 var(--display); letter-spacing: .04em; color: #B9B2D3; }
  .tbl.cards td:not(:first-child):empty { display: none; }
  .tbl.cards caption { padding: 8px 2px 0; }
  .links { display: grid; grid-template-columns: repeat(3, 1fr); }
  .links .btn { text-align: center; padding-inline: 8px; }
}

/* Titles chapter: the god you wear and the god you show */
.wearshow { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.ws { position: relative; display: grid; gap: 10px; align-content: start; padding: 16px 18px 18px; border-radius: 18px; overflow: hidden; isolation: isolate; border: 1.5px solid rgba(233,196,106,.5); }
.ws::before { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, rgba(14,11,34,.55), rgba(14,11,34,.94) 58%), var(--bg) center top / cover; }
.ws.wear { --bg: url(/img/gh_interior.webp); }
.ws.show { --bg: url(/img/tree_interior.webp); border-color: rgba(179,136,255,.6); }
.ws-tag { justify-self: start; font: 800 12px/1 var(--display); letter-spacing: .16em; text-transform: uppercase; padding: 6px 9px; border-radius: 6px; color: #1E140C; background: var(--goldHi); }
.ws.show .ws-tag { background: #C9A0FF; }
.ws-art { display: grid; place-items: center; gap: 8px; min-height: 150px; }
.ws.wear .ws-art img { width: 130px; border-radius: 14px; border: 2px solid var(--goldHi); box-shadow: 0 0 34px rgba(245,210,122,.45); }
.ws-row { display: grid; grid-template-columns: 28px 52px 1fr; gap: 10px; align-items: center; width: 100%; padding: 10px 12px; border-radius: 12px; background: rgba(11,10,28,.85); border: 1px solid rgba(179,136,255,.45); }
.ws-row .rk { font: 800 16px/1 var(--display); color: var(--goldHi); text-align: center; }
.ws-row img { width: 52px; border-radius: 10px; }
.ws-row b { font: 700 15px/1.25 var(--display); color: var(--cream); }
.ws-row small { display: block; font: 700 13px/1.3 var(--display); color: var(--goldHi); }
.ws h3 { font-size: 18px; color: var(--cream); }
.ws ul { margin: 0; padding-left: 18px; display: grid; gap: 4px; font-size: 14.5px; line-height: 1.5; color: #E7DDF5; }
.ws li::marker { color: var(--gold); }
.ws .where { font-size: 13.5px; line-height: 1.5; color: #C9C2E0; }
.ws .where b { color: var(--goldHi); font-weight: 600; }
@media (max-width: 720px) { .wearshow { grid-template-columns: minmax(0, 1fr); } }

/* the chapter maps show whole, every ward in view */
.gallery.tall.maps img { aspect-ratio: 768 / 1365; }

/* ---------- batch 3a: the Eras, Soul Kingdom, Crews and About pages ---------- */
/* the strip every showcase page closes with: one living world */
.world-strip { position: relative; overflow: hidden; padding-block: 88px; background: #0A0816; border-block: 1px solid rgba(233,196,106,.25); isolation: isolate; }
.ws-map { position: absolute; inset: 0; z-index: -1; }
.ws-map img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 58%; opacity: .55; }
.ws-map::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, #0A0816 15%, rgba(10,8,22,.75) 50%, rgba(10,8,22,.2)); }
.ws-copy { display: grid; gap: 16px; justify-items: start; }
.ws-copy > * { max-width: 560px; }
.ws-copy h2 { font-size: 40px; line-height: 1.08; color: var(--cream); }
.ws-copy p { color: #E7DDF5; font-size: 17px; line-height: 1.65; }
.links-row { display: flex; flex-wrap: wrap; gap: 18px; justify-content: center; }

/* the Eras page */
.eh-hero { padding-block: 64px 40px; background: radial-gradient(ellipse at 50% 0%, rgba(179,136,255,.16), transparent 60%), var(--night); }
.eh-hero .wrap { display: grid; gap: 18px; justify-items: center; text-align: center; }
.eh-hero h1 { font-size: 64px; line-height: 1.02; font-weight: 900; color: var(--cream); }
.eh-hero .lede { max-width: 640px; color: #E7DDF5; font-size: 18px; line-height: 1.65; }
.eh-cards { width: 100%; display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 12px; margin-top: 18px; }
.eh-card { position: relative; aspect-ratio: 3 / 4.4; border-radius: 16px; overflow: hidden; border: 1px solid color-mix(in srgb, var(--era) 55%, transparent); isolation: isolate; text-align: left; transition: transform .25s; }
.eh-card:hover { transform: translateY(-4px); }
.eh-card img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; }
.eh-card::before { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, rgba(11,10,28,0) 45%, rgba(11,10,28,.95)); }
.eh-card span { position: absolute; left: 14px; right: 14px; bottom: 14px; display: grid; gap: 2px; }
.eh-card small { font: 700 12px/1 var(--display); letter-spacing: .14em; color: var(--era); }
.eh-card b { font: 800 18px/1.15 var(--display); color: var(--cream); }
.era-chips { position: sticky; top: 68px; z-index: 4; background: rgba(11,10,28,.92); backdrop-filter: blur(8px); border-block: 1px solid rgba(233,196,106,.18); }
.era-chips .wrap { display: flex; gap: 8px; justify-content: center; padding-block: 10px; overflow-x: auto; scrollbar-width: none; }
.era-chips a { flex: none; font: 700 13px/1 var(--display); letter-spacing: .06em; padding: 10px 14px; border-radius: 999px; color: var(--era); border: 1px solid color-mix(in srgb, var(--era) 55%, transparent); background: rgba(255,255,255,.03); }
.era-sec { scroll-margin-top: 130px; padding-bottom: 72px; }
.era-banner { position: relative; min-height: 460px; display: grid; align-items: end; overflow: hidden; isolation: isolate; }
.era-banner > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; }
.era-banner::before { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, rgba(11,10,28,.1), rgba(11,10,28,.35) 45%, var(--night) 98%), linear-gradient(90deg, rgba(11,10,28,.75), rgba(11,10,28,0) 65%); }
.era-banner-copy { display: grid; gap: 12px; padding-block: 64px 28px; width: 100%; }
.era-banner-copy > * { max-width: 620px; }
.era-banner-copy .kicker { color: var(--era); }
.era-banner-copy h2 { font-size: 52px; line-height: 1.02; font-weight: 900; color: var(--cream); text-shadow: 0 4px 24px rgba(0,0,0,.6); }
.era-blurb { font-size: 17.5px; line-height: 1.65; color: #EDE6F7; }
.era-goal { display: inline-flex; flex-wrap: wrap; gap: 10px; align-items: center; justify-self: start; font: 700 16px/1.3 var(--display); color: var(--cream); padding: 10px 14px; border-radius: 12px; border: 1px solid color-mix(in srgb, var(--era) 60%, transparent); background: rgba(11,10,28,.7); }
.era-goal span { font-size: 12px; letter-spacing: .14em; text-transform: uppercase; color: var(--era); }
.era-body { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; margin-top: 8px; }
.era-card { display: grid; gap: 10px; align-content: start; padding: 18px 20px; border-radius: 18px; background: rgba(26,20,56,.7); border: 1px solid var(--line); border-top: 2px solid var(--era); }
.era-card h3 { font-size: 18px; color: var(--cream); }
.era-card p { font-size: 14.5px; line-height: 1.55; color: var(--dim); }
.era-card p b { color: var(--cream); }
.era-stages, .era-titles { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.era-stages li, .era-titles li { display: grid; grid-template-columns: 34px 1fr; gap: 10px; align-items: center; font-size: 15px; color: var(--cream); }
.era-stages b, .era-titles b { font: 800 13px/1 var(--display); color: var(--era); text-align: center; padding: 6px 0; border-radius: 8px; background: rgba(255,255,255,.05); }
.era-road { display: flex; justify-content: space-between; gap: 10px; align-items: baseline; padding: 8px 0; border-bottom: 1px solid rgba(255,255,255,.06); }
.era-road span { font-size: 13px; color: var(--dim); }
.era-road b { font: 700 15px/1.3 var(--display); color: var(--cream); text-align: right; }
.era-road.ruler b { color: var(--era); }
.era-arena { grid-column: span 2; grid-template-columns: 1fr 1fr; gap: 18px; align-items: center; }
.era-arena > img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: 12px; }
.era-arena > div { display: grid; gap: 10px; }
.era-pair { gap: 16px; }
.era-sport, .era-comp { display: grid; grid-template-columns: 76px 1fr; gap: 14px; align-items: center; }
.era-sport > div, .era-comp > div { display: grid; gap: 4px; }
.era-legends { display: flex; gap: 10px; }
.era-legends figure { margin: 0; display: grid; gap: 4px; justify-items: center; text-align: center; flex: 1; }
.era-legends img { width: 64px; height: 64px; border-radius: 50%; object-fit: cover; border: 2px solid var(--era); }
.era-legends figcaption { font-size: 12.5px; line-height: 1.3; color: var(--dim); }
.era-sport > img { width: 70px; justify-self: center; filter: drop-shadow(0 8px 14px rgba(0,0,0,.6)); }
.era-comp > img { width: 76px; border-radius: 8px; box-shadow: 0 10px 24px rgba(0,0,0,.5); }
.era-scenes { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; margin-top: 14px; }
.era-scenes figure { margin: 0; display: grid; gap: 8px; }
.era-scenes img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; border-radius: 14px; border: 1px solid rgba(255,255,255,.08); }
.era-scenes figcaption { font-size: 14px; line-height: 1.45; color: var(--dim); font-style: italic; }

/* the Soul Kingdom page */
.skp-hero { position: relative; overflow: hidden; padding-block: 56px 72px; background: linear-gradient(90deg, var(--night) 25%, rgba(11,10,28,.4) 60%, rgba(11,10,28,.2)), url(/img/sk_ground.webp) center / 300px repeat; border-bottom: 1px solid rgba(233,196,106,.25); }
.skp-land { position: absolute; right: 0; top: 0; bottom: 0; width: 50%; }
.skp-land .b { position: absolute; filter: drop-shadow(0 18px 28px rgba(0,0,0,.75)) drop-shadow(0 0 30px rgba(179,136,255,.3)); }
.skp-land .gh { width: 44%; left: 28%; top: 6%; }
.skp-land .fates { width: 22%; left: 6%; top: 40%; }
.skp-land .tree { width: 22%; right: 4%; top: 34%; }
.skp-land .arcade { width: 18%; left: 30%; bottom: 6%; }
.skp-land .conduit { width: 12%; left: 58%; bottom: 10%; }
.skp-land .vault { width: 14%; right: 12%; bottom: 4%; }
.skp-copy { position: relative; display: grid; gap: 18px; }
.skp-copy > * { max-width: 500px; }
.skp-hero h1, .cr-hero h1 { font-size: 64px; line-height: 1.02; font-weight: 900; color: var(--cream); text-shadow: 0 4px 30px rgba(0,0,0,.6); }
.skp-hero .lede, .cr-hero .lede { font-size: 18px; line-height: 1.65; color: #E7DDF5; }
.skp-hero .badges, .cr-hero .badges { justify-content: flex-start; }
.skp-keys { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.skp-keys li { display: grid; gap: 4px; padding: 22px; border-radius: 18px; text-align: center; background: radial-gradient(circle at 50% 0%, rgba(233,196,106,.14), transparent 70%), rgba(26,20,56,.7); border: 1px solid rgba(233,196,106,.35); }
.skp-keys b { font: 800 34px/1.05 var(--display); color: var(--goldHi); }
.skp-keys span { font-size: 15px; color: var(--dim); }
.skp-plots { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; }
.skp-plots > figure { flex: 0 1 calc((100% - 36px) / 4); min-width: 0; }
.skp-plots figure { margin: 0; display: grid; gap: 8px; align-content: start; padding: 14px; border-radius: 18px; text-align: center; background: radial-gradient(circle at 50% 35%, rgba(179,136,255,.25), transparent 70%), rgba(11,10,28,.55); border: 1px solid var(--line); }
.skp-plots figure.big { grid-row: span 2; align-content: center; }
.skp-plots img { width: 100%; max-width: 170px; justify-self: center; filter: drop-shadow(0 12px 20px rgba(0,0,0,.6)); }
.skp-plots .big img { max-width: 260px; }
.skp-plots figcaption { font-size: 13.5px; line-height: 1.45; color: var(--dim); }
.skp-plots figcaption b { display: block; font: 700 15px/1.3 var(--display); color: var(--cream); margin-bottom: 2px; }
.skp-arcade { background: radial-gradient(ellipse at 50% 30%, rgba(255,79,216,.12), transparent 60%), radial-gradient(ellipse at 50% 90%, rgba(41,227,255,.1), transparent 60%), #0B0920 !important; }
.skp-cabs { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 12px; }
.skp-cabs figure, .skp-halls figure { margin: 0; display: grid; gap: 8px; text-align: center; }
.skp-cabs img { width: 100%; aspect-ratio: 1; object-fit: cover; border-radius: 14px; border: 1px solid rgba(98,230,255,.45); box-shadow: 0 0 22px rgba(179,77,255,.3); }
.skp-cabs figcaption { font: 700 14px/1.2 var(--display); color: #BFF4FF; }
.skp-halls { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; margin-top: 22px; }
.skp-halls img { width: 100%; max-width: 150px; justify-self: center; filter: drop-shadow(0 12px 20px rgba(0,0,0,.6)); }
.skp-halls figcaption { font-size: 13.5px; color: var(--dim); }
.skp-halls figcaption b { display: block; font: 700 15px/1.3 var(--display); color: var(--cream); }
.skp-gods { display: grid; grid-template-columns: 1fr 1.3fr; gap: 40px; align-items: center; }
.skp-gods-copy { display: grid; gap: 14px; }
.skp-gods-copy .body b { color: var(--goldHi); }
.skp-tiers { list-style: none; margin: 0; padding: 0; display: flex; align-items: flex-end; justify-content: center; gap: 10px; }
.skp-tiers li { display: grid; gap: 6px; justify-items: center; flex: 1; }
.skp-tiers li:nth-child(1) img { width: 80%; } .skp-tiers li:nth-child(2) img { width: 85%; } .skp-tiers li:nth-child(3) img { width: 90%; } .skp-tiers li:nth-child(4) img { width: 95%; }
.skp-tiers img { width: 100%; border-radius: 12px; border: 1.5px solid rgba(233,196,106,.6); box-shadow: 0 12px 26px rgba(0,0,0,.5); }
.skp-tiers li:last-child img { box-shadow: 0 0 34px rgba(245,210,122,.55); }
.skp-tiers b { font: 800 14px/1 var(--display); color: var(--goldHi); }
.skp-hall { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: center; }
.skp-hall > div { display: grid; gap: 14px; }
.skp-hall-art { position: relative; margin: 0; min-height: 380px; border-radius: 22px; overflow: hidden; display: grid; place-items: center; padding: 20px; border: 1px solid rgba(179,136,255,.4); }
.skp-hall-art > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: .6; }
.skp-hall-art .hall { position: relative; width: 100%; max-width: 440px; }
.skp-realm-top { display: grid; grid-template-columns: .9fr 1.1fr; gap: 40px; align-items: center; }
.skp-realm-top > div { display: grid; gap: 14px; }
.skp-realm-top .portal { width: 100%; filter: drop-shadow(0 0 40px rgba(179,136,255,.4)); }
.skp-pantheon { display: grid; grid-template-columns: repeat(8, minmax(0, 1fr)); gap: 10px; margin-top: 28px; }
.skp-pantheon img { width: 100%; aspect-ratio: 3 / 4; object-fit: cover; border-radius: 12px; border: 1px solid rgba(233,196,106,.45); filter: brightness(1.1); }

/* the Crews page */
.cr-hero { position: relative; overflow: hidden; padding-block: 0 64px; background: var(--night); border-bottom: 1px solid rgba(233,196,106,.25); }
.cr-legends { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); grid-template-rows: 380px; overflow: hidden; }
.cr-legends > img, .cr-cup > img:first-child { width: 100%; height: 100%; object-fit: cover; }
.cr-cup { position: relative; display: block; overflow: hidden; height: 100%; }
.cr-cup .cup, .cr-cup-art .cup { position: absolute; left: 0; right: 0; margin: 0 auto; top: 14%; width: 56%; animation: loom 6s ease-in-out infinite; }
.cr-legends::after { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 380px; background: linear-gradient(180deg, rgba(11,10,28,0) 40%, var(--night) 100%); pointer-events: none; }
.cr-copy { position: relative; display: grid; gap: 18px; justify-items: center; text-align: center; margin-top: -110px; }
.cr-copy > * { max-width: 640px; }
.cr-hero .badges { justify-content: center; }
.cr-steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; counter-reset: cr; }
.cr-steps li { counter-increment: cr; display: grid; gap: 6px; align-content: start; padding: 18px; border-radius: 18px; background: rgba(26,20,56,.7); border: 1px solid var(--line); }
.cr-steps li::before { content: counter(cr); width: 34px; height: 34px; display: grid; place-items: center; border-radius: 50%; font: 800 15px/1 var(--display); color: #1E140C; background: linear-gradient(180deg, var(--goldHi), #C8961E); }
.cr-steps b { font: 700 16px/1.3 var(--display); color: var(--cream); }
.cr-steps span { font-size: 14.5px; line-height: 1.55; color: var(--dim); }
.cr-row { display: grid; grid-template-columns: 1fr 1.1fr; gap: 48px; align-items: center; }
.cr-row.flip .cr-art { order: 2; }
.cr-text { display: grid; gap: 14px; }
.cr-art { position: relative; }
.cr-art .main { width: 100%; max-height: 520px; object-fit: cover; border-radius: 20px; border: 1px solid rgba(233,196,106,.35); box-shadow: 0 24px 60px rgba(0,0,0,.5); }
.cr-art .inset { position: absolute; width: 34%; right: -14px; bottom: -22px; border-radius: 14px; border: 2px solid var(--gold); box-shadow: 0 16px 40px rgba(0,0,0,.6); }
.cr-cup-art { overflow: hidden; border-radius: 20px; }
.cr-cup-art .cup { top: 10%; width: 44%; }
.cr-raids { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
.cr-raids img { width: 100%; aspect-ratio: 9 / 15; object-fit: cover; border-radius: 14px; border: 1px solid rgba(233,196,106,.35); }
.cr-legend { display: grid; gap: 2px; padding: 14px 16px; border-radius: 14px; border: 1.5px solid rgba(233,196,106,.6); background: linear-gradient(135deg, rgba(233,196,106,.14), rgba(233,196,106,.03)); font-size: 15px; line-height: 1.5; color: #D6CDEA; }
.cr-legend span { font: 700 12px/1.2 var(--display); letter-spacing: .14em; text-transform: uppercase; color: var(--violet); }
.cr-legend b { font: 800 19px/1.3 var(--display); color: var(--goldHi); }
.cr-sports { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 10px; }
.cr-sports li { display: grid; justify-items: center; gap: 4px; font: 700 13px/1.2 var(--display); color: var(--cream); }
.cr-sports img { width: 52px; height: 52px; object-fit: contain; }
.cr-hobbies { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; }
.cr-hobbies > li { flex: 0 1 calc((100% - 30px) / 4); min-width: 0; }
.cr-hobbies li { display: grid; gap: 2px; padding: 14px 16px; border-radius: 14px; background: rgba(26,20,56,.7); border: 1px solid var(--line); font-size: 14px; line-height: 1.45; color: var(--dim); }
.cr-hobbies b { font: 700 15px/1.3 var(--display); color: var(--cream); }

/* the About page */
.ab-hero img { width: 100%; height: 300px; object-fit: cover; object-position: 50% 30%; }
.ab .card ul { margin: 0; padding-left: 20px; display: grid; gap: 8px; }
.ab .card li b { color: var(--goldHi); }
.ab-facts { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; }
.ab-facts div { display: grid; gap: 2px; padding: 14px; border-radius: 14px; background: rgba(26,20,56,.7); border: 1px solid var(--line); }
.ab-facts b { font: 700 12px/1.3 var(--display); letter-spacing: .12em; text-transform: uppercase; color: var(--violet); }
.ab-facts span { font-size: 15px; color: var(--cream); }
.ab-dl { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 10px; }
.ab-dl a { display: grid; gap: 4px; padding: 10px; border-radius: 14px; background: rgba(11,10,28,.6); border: 1px solid var(--line); transition: border-color .2s; }
.ab-dl a:hover { border-color: rgba(233,196,106,.6); }
.ab-dl img { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; border-radius: 10px; }
.ab-dl img.contain { object-fit: contain; padding: 8px; background: radial-gradient(circle, rgba(179,136,255,.25), transparent 70%); }
.ab-dl b { font: 700 14px/1.3 var(--display); color: var(--cream); }
.ab-dl small { font-size: 12.5px; color: var(--dim); }
.ab > .badges { justify-content: flex-start; }

@media (max-width: 960px) {
  .eh-cards { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .era-body { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .era-arena { grid-column: 1 / -1; }
  .skp-plots > figure { flex-basis: calc((100% - 24px) / 3); }
  .skp-pantheon { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .cr-steps { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .cr-hobbies > li { flex-basis: calc((100% - 10px) / 2); }
}
@media (max-width: 720px) {
  .s-foot .wrap { grid-template-columns: 1fr 1fr; }
  .world-strip { padding-block: 60px; }
  .ws-map::after { background: linear-gradient(180deg, rgba(10,8,22,.55), #0A0816 90%); }
  .ws-copy h2 { font-size: 29px; }
  .ws-copy p { font-size: 15.5px; }
  .eh-hero { padding-block: 40px 28px; }
  .eh-hero h1, .skp-hero h1, .cr-hero h1 { font-size: 42px; }
  .eh-hero .lede, .skp-hero .lede, .cr-hero .lede { font-size: 16px; }
  .eh-cards { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
  .eh-card:last-child { grid-column: 1 / -1; aspect-ratio: 16 / 9; }
  .era-chips { top: 58px; }
  .era-chips .wrap { justify-content: flex-start; }
  .era-sec { scroll-margin-top: 112px; padding-bottom: 48px; }
  .era-banner { min-height: 380px; }
  .era-banner-copy { padding-block: 48px 20px; }
  .era-banner-copy h2 { font-size: 36px; }
  .era-blurb { font-size: 15.5px; }
  .era-body { grid-template-columns: minmax(0, 1fr); }
  .era-scenes { grid-template-columns: none; grid-auto-flow: column; grid-auto-columns: 80%; overflow-x: auto; scroll-snap-type: x mandatory; margin-inline: 0; padding: 0 18px 6px; scrollbar-width: none; }
  .era-scenes figure { scroll-snap-align: start; }
  .era-arena { grid-column: auto; grid-template-columns: minmax(0, 1fr); }
  .skp-hero { padding-block: 280px 52px; background: linear-gradient(180deg, rgba(11,10,28,.2), var(--night) 62%), url(/img/sk_ground.webp) center / 220px repeat; }
  .skp-land { width: 100%; height: 300px; bottom: auto; }
  .skp-keys, .skp-gods, .skp-hall, .skp-realm-top, .cr-row { grid-template-columns: minmax(0, 1fr); gap: 24px; }
  .cr-row.flip .cr-art { order: 0; }
  .skp-keys b { font-size: 28px; }
  .skp-plots > figure { flex-basis: calc((100% - 12px) / 2); }
  .skp-cabs { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .skp-halls { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .skp-pantheon { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; }
  .skp-hall-art { min-height: 0; }
  .cr-legends { grid-template-rows: 240px; }
  .cr-legends::after { height: 240px; }
  .cr-copy { margin-top: -60px; }
  .cr-steps { grid-template-columns: minmax(0, 1fr); }
  .cr-hobbies > li { flex-basis: 100%; }
  .cr-art .inset { right: -4px; bottom: -14px; }
  .ab-hero img { height: 200px; }
  .ab-facts { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .ab-dl { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .ab-dl a:last-child { grid-column: 1 / -1; }
}
@media (prefers-reduced-motion: reduce) { .cr-cup .cup, .cr-cup-art .cup { animation: none; } }

/* crew rosters: each crew's five seats, as the game draws them */
.cr-seats { display: grid; gap: 8px; }
.cr-seats > span { font: 700 12px/1.2 var(--display); letter-spacing: .14em; text-transform: uppercase; color: var(--violet); }
.roster { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 8px; }
.roster li { display: grid; gap: 6px; justify-items: center; text-align: center; }
.roster img { width: 100%; max-width: 76px; aspect-ratio: 1; object-fit: contain; border-radius: 50%; padding: 3px; background: radial-gradient(circle, rgba(200,170,255,.3), rgba(40,30,80,.75) 70%); border: 1.5px solid rgba(233,196,106,.55); }
.roster span { font-size: 12.5px; line-height: 1.25; color: var(--cream); }

/* the arena's four fighting styles */
.ch-main .fighters { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; }
.fighters figure { margin: 0; display: grid; gap: 8px; align-content: start; padding: 12px 10px 14px; border-radius: 16px; text-align: center; background: radial-gradient(circle at 50% 30%, rgba(233,196,106,.18), transparent 65%), rgba(11,10,28,.55); border: 1px solid var(--edge); }
.fighters img { height: 150px; width: auto; max-width: 100%; justify-self: center; object-fit: contain; }
.fighters figcaption { display: grid; gap: 4px; font-size: 13.5px; line-height: 1.45; color: var(--read2); }
.fighters figcaption b { font: 700 16px/1.25 var(--display); color: var(--goldHi); }
.fighters figcaption small { font-size: 13px; color: var(--cream); }
.lineup { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; }
.lineup figure { margin: 0; display: grid; gap: 6px; justify-items: center; text-align: center; }
.lineup img { height: 120px; width: auto; max-width: 100%; object-fit: contain; }
.lineup figcaption { font: 700 13px/1.2 var(--display); color: var(--goldHi); }
@media (max-width: 720px) {
  .roster { gap: 6px; }
  .roster span { font-size: 12px; }
  .ch-main .fighters { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .fighters img { height: 130px; }
  .lineup img { height: 96px; }
}

/* ---------- batch 3b: the Gods, Companions and Arena pages ---------- */
.gd-split { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: center; }
.gd-split > div { display: grid; gap: 14px; min-width: 0; }
.gd-split .body b { color: var(--goldHi); }

.gd-hero { position: relative; overflow: hidden; padding-block: 72px 80px; background: radial-gradient(ellipse at 70% 40%, rgba(245,210,122,.12), transparent 60%), var(--night); border-bottom: 1px solid rgba(233,196,106,.25); }
.gd-wall { position: absolute; right: -40px; top: 50%; transform: translateY(-50%) rotate(-6deg); width: 56%; display: grid; grid-template-columns: repeat(5, 1fr); gap: 10px; opacity: .9; }
.gd-wall img { width: 100%; border-radius: 12px; border: 1px solid rgba(233,196,106,.35); }
.gd-wall img.t5 { border-color: var(--goldHi); box-shadow: 0 0 26px rgba(245,210,122,.55); }
.gd-hero::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, var(--night) 30%, rgba(11,10,28,.6) 55%, rgba(11,10,28,.15)); pointer-events: none; }
.gd-copy { position: relative; z-index: 1; display: grid; gap: 18px; }
.gd-copy > * { max-width: 540px; }
.gd-hero h1, .cp-hero h1, .ar-hero h1 { font-size: 62px; line-height: 1.02; font-weight: 900; color: var(--cream); text-shadow: 0 4px 30px rgba(0,0,0,.6); }
.gd-hero .lede, .cp-hero .lede, .ar-hero .lede { font-size: 18px; line-height: 1.65; color: #E7DDF5; }
.gd-hero .badges, .cp-hero .badges, .ar-hero .badges { justify-content: flex-start; }
.gd-become { display: grid; grid-template-columns: repeat(8, minmax(0, 1fr)); gap: 10px; }
.gd-become figure { margin: 0; display: grid; gap: 6px; text-align: center; }
.gd-become img { width: 100%; aspect-ratio: 3 / 4; object-fit: cover; border-radius: 12px; border: 1px solid rgba(233,196,106,.45); filter: brightness(1.1); }
.gd-become figcaption { font-size: 12.5px; line-height: 1.3; color: var(--dim); }
.gd-become b { display: block; font: 700 15px/1.2 var(--display); color: var(--cream); }
.gtier { display: grid; gap: 12px; margin-top: 26px; }
.gtier h3 { display: flex; flex-wrap: wrap; align-items: baseline; gap: 10px; font: 800 22px/1.2 var(--display); color: var(--goldHi); }
.gtier h3 span { font-size: 13px; letter-spacing: .16em; text-transform: uppercase; color: var(--violet); }
.gtier h3 em { font: italic 400 14px/1.3 var(--body); color: var(--dim); }
.gcards { display: grid; grid-template-columns: repeat(var(--cols, 6), minmax(0, 104px)); gap: 10px; }
.gcards figure { margin: 0; display: grid; gap: 6px; text-align: center; }
.gcards img { width: 100%; aspect-ratio: 1; object-fit: cover; border-radius: 12px; border: 1px solid rgba(179,136,255,.35); }
.gtier.t4 .gcards img, .gtier.t5 .gcards img { border-color: rgba(245,210,122,.7); box-shadow: 0 0 18px rgba(245,210,122,.3); }
.gcards figcaption { font-size: 12.5px; line-height: 1.3; color: var(--cream); }
.gcards small { display: block; margin-top: 2px; font: 700 12px/1 var(--display); letter-spacing: .1em; text-transform: uppercase; color: var(--goldHi); }
.gd-sources { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.gd-sources li { display: grid; gap: 2px; padding: 12px 14px; border-radius: 14px; background: rgba(26,20,56,.7); border: 1px solid var(--line); font-size: 14px; line-height: 1.45; color: var(--dim); }
.gd-sources b { font: 700 15px/1.3 var(--display); color: var(--cream); }
.gd-dyn { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.gd-dyn figure { margin: 0; display: grid; gap: 8px; text-align: center; }
.gd-dyn img { width: 100%; aspect-ratio: 1; object-fit: cover; border-radius: 16px; border: 1.5px solid rgba(233,196,106,.55); }
.gd-dyn figcaption { font-size: 13px; color: var(--dim); }
.gd-dyn figcaption b { display: block; font: 700 16px/1.3 var(--display); color: var(--cream); }
.sealed .frame { position: relative; display: block; aspect-ratio: 1; border-radius: 16px; overflow: hidden; border: 1.5px dashed rgba(233,196,106,.55); background: #0E0B22; }
.sealed .frame img { width: 100%; height: 100%; object-fit: cover; border: 0; filter: brightness(.18) blur(3px) saturate(.4); }
.sealed .frame b { position: absolute; inset: 0; display: grid; place-items: center; text-align: center; padding: 10px; font: 800 15px/1.3 var(--display); letter-spacing: .12em; text-transform: uppercase; color: var(--goldHi); }

.cp-hero { padding-block: 64px 72px; background: radial-gradient(ellipse at 75% 45%, rgba(179,136,255,.2), transparent 60%), var(--night); border-bottom: 1px solid rgba(233,196,106,.25); }
.cp-hero-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; align-items: center; }
.cp-hero-copy { display: grid; gap: 18px; }
.cp-hero-vids { position: relative; height: 420px; }
.cp-hero-vids video { position: absolute; width: 56%; aspect-ratio: 1; object-fit: cover; border-radius: 24px; border: 1.5px solid rgba(233,196,106,.6); box-shadow: 0 20px 60px rgba(0,0,0,.6), 0 0 40px rgba(179,136,255,.25); }
.cp-hero-vids video:nth-child(1) { left: 0; top: 0; }
.cp-hero-vids video:nth-child(2) { right: 0; top: 18%; z-index: 1; }
.cp-hero-vids video:nth-child(3) { left: 18%; bottom: 0; z-index: 2; width: 44%; }
.cpn-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; }
.cpn { margin: 0; display: grid; gap: 10px; align-content: start; padding: 12px; border-radius: 18px; background: rgba(26,20,56,.7); border: 1px solid var(--line); }
.cpn video { width: 100%; aspect-ratio: 1; object-fit: cover; border-radius: 12px; background: #120E2A; }
.cpn figcaption { display: grid; gap: 4px; }
.cpn b { font: 700 18px/1.2 var(--display); color: var(--cream); }
.cpn span { font-size: 14px; line-height: 1.45; color: #D6CDEA; font-style: italic; }
.cpn small { font-size: 13px; line-height: 1.4; color: var(--goldHi); }
.cp-grow { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 12px; align-items: end; }
.cp-grow figure { margin: 0; display: grid; gap: 8px; text-align: center; }
.cp-grow img { width: 100%; border-radius: 10px; box-shadow: 0 12px 26px rgba(0,0,0,.5); }
.cp-grow figcaption { font: 700 13px/1.2 var(--display); color: var(--goldHi); }
.cp-grow .sealed .frame { aspect-ratio: 714 / 954; }
.cp-does { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 10px; }
.cp-does li { display: grid; gap: 2px; padding: 12px 14px; border-radius: 14px; background: rgba(26,20,56,.7); border: 1px solid var(--line); }
.cp-does b { font: 700 15px/1.3 var(--display); color: var(--cream); }
.cp-does span { font-size: 13px; color: var(--dim); }
.cp-war { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
.cp-war img { width: 100%; border-radius: 10px; box-shadow: 0 12px 26px rgba(0,0,0,.5); }

.ar-hero { position: relative; overflow: hidden; padding-block: 72px 56px; isolation: isolate; border-bottom: 1px solid rgba(233,196,106,.25); }
.ar-hero .bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; }
.ar-hero::before { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(90deg, rgba(11,10,28,.95) 25%, rgba(11,10,28,.55) 60%, rgba(11,10,28,.3)), linear-gradient(0deg, var(--night), rgba(11,10,28,0) 40%); }
.ar-copy { display: grid; gap: 18px; }
.ar-copy > * { max-width: 560px; }
.ar-fighters { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; margin-top: 8px; }
.ar-fighters figure { margin: 0; display: grid; gap: 6px; justify-items: center; text-align: center; }
.ar-fighters img { height: 130px; width: auto; max-width: 100%; object-fit: contain; }
.ar-fighters figcaption { font: 700 13px/1.2 var(--display); color: var(--goldHi); }
.ar-house { position: relative; }
.ar-house > img:first-child { width: 100%; border-radius: 20px; border: 1px solid rgba(233,196,106,.35); }
.ar-house .master { position: absolute; width: 30%; right: -10px; bottom: -18px; border-radius: 50%; border: 2px solid var(--gold); background: #1A1438; box-shadow: 0 14px 30px rgba(0,0,0,.6); }
.ar-ladder-grid { display: grid; grid-template-columns: .8fr 1.2fr; gap: 48px; align-items: start; }
.ar-ladder-grid > div { display: grid; gap: 14px; }
.ar-ranks, .ar-bosses { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.ar-ranks { flex-direction: column-reverse; display: flex; }
.ar-ranks li { display: grid; grid-template-columns: 30px 1fr; gap: 10px; align-items: center; padding: 9px 12px; border-radius: 10px; background: rgba(26,20,56,.7); border: 1px solid var(--line); font-size: 15px; color: var(--cream); }
.ar-ranks li:last-child { border-color: rgba(233,196,106,.7); background: linear-gradient(90deg, rgba(233,196,106,.2), rgba(233,196,106,.05)); color: var(--goldHi); font-weight: 600; }
.ar-ranks b { font: 800 13px/1 var(--display); color: var(--goldHi); text-align: center; }
.ar-bosses li { display: grid; grid-template-columns: 70px 1fr; gap: 2px 12px; padding: 10px 14px; border-radius: 12px; background: rgba(11,10,28,.55); border: 1px solid var(--line); }
.ar-bosses span { grid-row: span 2; font: 700 12px/1.3 var(--display); letter-spacing: .08em; text-transform: uppercase; color: var(--violet); align-self: center; }
.ar-bosses b { font: 700 16px/1.3 var(--display); color: var(--cream); }
.ar-bosses p { font-size: 14px; line-height: 1.45; color: var(--dim); }
.ar-legends { background: radial-gradient(ellipse at 50% 0%, rgba(245,210,122,.12), transparent 60%), #0E0B24 !important; }
.lgd-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.lgd { display: grid; grid-template-columns: 130px 1fr; gap: 16px; align-items: start; padding: 16px; border-radius: 18px; background: linear-gradient(135deg, rgba(58,40,100,.55), rgba(20,15,44,.9)); border: 1px solid rgba(233,196,106,.4); }
.lgd img { width: 130px; aspect-ratio: 1; object-fit: cover; border-radius: 14px; border: 2px solid var(--gold); box-shadow: 0 0 22px rgba(245,210,122,.25); }
.lgd > div { display: grid; gap: 6px; }
.lgd small { font: 700 12px/1.2 var(--display); letter-spacing: .14em; text-transform: uppercase; color: var(--violet); }
.lgd h3 { font-size: 20px; line-height: 1.2; color: var(--cream); }
.lgd .lore { font-size: 14.5px; line-height: 1.55; color: #D6CDEA; font-style: italic; }
.lgd .strike { font-size: 13.5px; line-height: 1.45; color: var(--dim); }
.lgd .strike b { display: block; font: 700 14px/1.3 var(--display); color: var(--goldHi); }
.ar-choice { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.ar-choice figure { margin: 0; display: grid; gap: 8px; }
.ar-choice img { width: 100%; aspect-ratio: 1; object-fit: cover; border-radius: 16px; border: 1px solid rgba(233,196,106,.4); }
.ar-choice figcaption { font-size: 14px; line-height: 1.5; color: var(--dim); }
.ar-choice figcaption b { display: block; font: 700 17px/1.3 var(--display); color: var(--goldHi); }

@media (max-width: 960px) {
  .gd-become { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .cpn-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .cp-does { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .lgd-grid { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 720px) {
  .gd-split, .cp-hero-grid, .ar-ladder-grid { grid-template-columns: minmax(0, 1fr); gap: 24px; }
  .gd-hero { padding-block: 260px 48px; }
  .gd-wall { top: 20px; right: -30px; transform: rotate(-6deg); width: 120%; }
  .gd-hero::after { background: linear-gradient(180deg, rgba(11,10,28,.2) 10%, var(--night) 62%); }
  .gd-hero h1, .cp-hero h1, .ar-hero h1 { font-size: 40px; }
  .gd-hero .lede, .cp-hero .lede, .ar-hero .lede { font-size: 16px; }
  .gd-become { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; }
  .gd-become figcaption { font-size: 12px; }
  .gcards { display: flex; flex-wrap: wrap; justify-content: center; }
  .gcards figure { flex: 0 1 calc((100% - 20px) / 3); min-width: 0; }
  .gd-sources { grid-template-columns: minmax(0, 1fr); }
  .cp-hero { padding-block: 40px 48px; }
  .cp-hero-vids { height: 300px; order: -1; }
  .cpn-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
  .cpn { padding: 10px; }
  .cpn b { font-size: 16px; }
  .cpn span { font-size: 13px; }
  .cp-grow { grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 6px; }
  .cp-grow figcaption { font-size: 12px; }
  .cp-grow .sealed .frame b { font-size: 12px; padding: 4px; letter-spacing: .04em; }
  .cp-does { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .ar-hero { padding-block: 48px 40px; }
  .ar-fighters img { height: 92px; }
  .ar-house .master { right: -4px; }
  .lgd { grid-template-columns: 96px 1fr; gap: 12px; padding: 12px; }
  .lgd img { width: 96px; }
  .lgd h3 { font-size: 17px; }
  .ar-choice { grid-template-columns: minmax(0, 1fr); }
  .ar-bosses li { grid-template-columns: 60px 1fr; }
}
