@charset "UTF-8";
:root {
  color-scheme: dark;
  --night: #070c13;
  --stone: #0c141d;
  --gold: #b58c43;
  --gold-light: #edcf8b;
  --ivory: #ece5d5;
  --muted: #b1b6bb;
  --serif: "Palatino Linotype", "Book Antiqua", Georgia, serif;
  --sans: "Segoe UI", Arial, sans-serif;
}
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 30px; background: var(--night); }
body { margin: 0; color: var(--ivory); background: var(--night); font: 14px/1.65 var(--sans); }
body.dialog-open { overflow: hidden; }
::selection { color: #11151b; background: #e0bf79; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; cursor: pointer; }
img, svg { display: block; max-width: 100%; }
button, a { -webkit-tap-highlight-color: transparent; }
[hidden] { display: none !important; }
.page-wrap { width: min(1260px, calc(100% - 64px)); margin-inline: auto; }
.svg-sprite { position: absolute; width: 0; height: 0; overflow: hidden; }
.skip-link { position: fixed; top: 10px; left: 10px; z-index: 100; padding: 10px 16px; background: var(--gold-light); color: #10151a; transform: translateY(-160%); }
.skip-link:focus { transform: none; }
a:focus-visible, button:focus-visible, [tabindex]:focus-visible { outline: 2px solid #8bdeff; outline-offset: 5px; }

.site-header { position: relative; z-index: 20; border-top: 1px solid #73603e; border-bottom: 1px solid #9b7b3f; background: linear-gradient(180deg, #17222d 0%, #080d14 40%, #0a121b 95%); box-shadow: 0 4px 18px #0009, inset 0 -3px #141d27; }
.header-inner { width: min(1370px, calc(100% - 56px)); min-height: 68px; display: flex; align-items: center; justify-content: space-between; gap: 45px; margin-inline: auto; }
.wordmark { display: grid; color: #e9c77e; text-align: center; font-family: var(--serif); line-height: .88; letter-spacing: -.04em; text-shadow: 0 1px #2c1b07, 0 0 15px #d1ac5328; }
.wordmark span { font-size: 22px; }
.wordmark strong { font-size: 28px; font-weight: 400; }
.wordmark-small { flex: 0 0 auto; padding: 6px 0; }
.site-nav { display: flex; align-items: center; gap: 31px; }
.nav-link { position: relative; padding: 23px 0; color: #c6c7c4; font: 11px var(--serif); letter-spacing: .07em; text-transform: uppercase; }
.nav-link:hover { color: #f2d295; }
.nav-link::after { position: absolute; content: ""; inset: auto 0 9px; height: 1px; background: linear-gradient(90deg, transparent, #e4bb6d, transparent); transform: scaleX(0); transition: transform .2s; }
.nav-link:hover::after { transform: scaleX(1); }
.menu-toggle { display: none; }

.game-button { position: relative; isolation: isolate; min-height: 50px; display: inline-flex; align-items: center; justify-content: center; gap: 22px; padding: 0 25px; border: 1px solid #dbb565; background: linear-gradient(180deg, #fff0b8 0%, #e9c77b 43%, #bc842f 100%); color: #271b0b; font: 700 11px var(--serif); letter-spacing: .09em; text-transform: uppercase; text-shadow: 0 1px #f8dba6; box-shadow: 0 0 18px #d6a65333, 0 3px 0 #251505, inset 0 1px #ffffd3; clip-path: polygon(9px 0, calc(100% - 9px) 0, 100% 9px, 100% calc(100% - 9px), calc(100% - 9px) 100%, 9px 100%, 0 calc(100% - 9px), 0 9px); transition: filter .2s, transform .2s; }
.game-button::before { position: absolute; content: ""; inset: 4px; z-index: -1; border: 1px solid #774f2266; clip-path: polygon(5px 0, calc(100% - 5px) 0, 100% 5px, 100% calc(100% - 5px), calc(100% - 5px) 100%, 5px 100%, 0 calc(100% - 5px), 0 5px); }
.game-button svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.5; }
.game-button:hover { filter: brightness(1.13); transform: translateY(-2px); }
.game-button-small { min-height: 36px; gap: 16px; padding: 0 19px; font-size: 10px; }
.game-button-small svg { width: 15px; }
.game-button-dark { color: #eed5a0; background: linear-gradient(180deg, #223442, #0b1721 65%, #142534); border-color: #8c7650; text-shadow: 0 1px #000; box-shadow: 0 0 18px #63b5e718, inset 0 1px #6e7a8455; }
.game-button-dark::before { border-color: #a9a17a35; }

.hero { position: relative; isolation: isolate; min-height: clamp(600px, 47.5vw, 735px); overflow: hidden; background: #0c1a27; }
.hero-art, .hero-shade { position: absolute; inset: 0; z-index: -2; width: 100%; height: 100%; }
.hero-art { object-fit: cover; object-position: center 42%; }
.hero-shade { z-index: -1; background: linear-gradient(90deg, #040b15a6 0%, #040b156e 24%, #040b1522 42%, transparent 64%), linear-gradient(0deg, #070d16 0%, #070d1699 8%, transparent 32%); }
.hero-inner { display: flex; min-height: inherit; align-items: center; }
.hero-copy { width: 480px; max-width: 45%; padding: 40px 0 45px; text-align: center; }
.title-rune, .title-divider { display: flex; justify-content: center; align-items: center; gap: 12px; color: #e4c483; }
.title-rune span, .title-divider span { display: block; width: 58px; height: 1px; background: linear-gradient(90deg, transparent, #c69c55); }
.title-rune span:last-child, .title-divider span:last-child { transform: rotate(180deg); }
.title-rune b { font: 30px/1 var(--serif); text-shadow: 0 0 17px #e7c06e; }
.game-title { margin: 8px 0 0; display: grid; color: #f0cd77; font: 400 clamp(64px, 6.2vw, 94px)/.86 var(--serif); letter-spacing: -.055em; text-shadow: 0 3px 0 #35210b, 0 7px 16px #000, 0 0 25px #d6a85030; }
.game-title span, .game-title strong { background: linear-gradient(180deg, #fff4c2 0%, #ebbf5c 39%, #af7426 56%, #f7dd92 73%, #b1813f 100%); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; text-shadow: none; filter: drop-shadow(0 2px 0 #271506) drop-shadow(0 0 9px #e9bf6222); }
.game-title strong { font-size: 1.18em; font-weight: 400; }
.game-subtitle { margin: 19px 0 10px; color: #e6d3a0; font: 11px var(--serif); letter-spacing: .23em; text-transform: uppercase; text-shadow: 0 2px 4px #000; }
.title-divider { gap: 9px; margin: 7px 0 15px; }
.title-divider span { width: 118px; }.title-divider b { font-size: 7px; }
.hero-call { margin: 12px -10px 0; color: #f1efe3; font: 700 clamp(17px, 1.8vw, 24px)/1.23 var(--serif); letter-spacing: .015em; text-transform: uppercase; text-shadow: 0 2px 6px #000; }
.hero-call span { color: #edcd84; }
.hero-description { max-width: 385px; margin: 14px auto 20px; color: #d5d7d5; font-size: 12px; line-height: 1.75; text-shadow: 0 2px 5px #000; }
.hero-actions { display: flex; gap: 10px; align-items: center; justify-content: center; }
.hero-actions .game-button { padding-inline: 18px; gap: 12px; font-size: 10px; }
.hero-signature { margin: 19px 0 0; color: #c7c6ba; font: 11px var(--serif); letter-spacing: .035em; text-shadow: 0 2px 3px #000; }
.hero-signature span { color: #f2d086; padding-right: 6px; }
.hero-scroll { position: absolute; left: calc(50% - 16px); bottom: 15px; display: grid; place-items: center; width: 32px; height: 32px; color: #eed499; font: 32px/1 var(--serif); text-shadow: 0 0 15px #e6c579; }
.hero-inscription { position: absolute; right: 5%; bottom: 45px; color: #ecd29c; text-align: center; font: 11px/1.35 var(--serif); letter-spacing: .08em; text-transform: uppercase; text-shadow: 0 2px 7px #000; }
.hero-inscription b { font-weight: 400; }
.magic-motes { position: absolute; inset: 0; pointer-events: none; overflow: hidden; }
.magic-motes i { position: absolute; bottom: -20px; left: 40%; width: 3px; height: 3px; border-radius: 50%; background: #a6e5ff; box-shadow: 0 0 9px 2px #55bfff77; animation: rising-mote 8s linear infinite; opacity: 0; }
.magic-motes i:nth-child(2) { left: 52%; animation-delay: -2s; }.magic-motes i:nth-child(3) { left: 60%; animation-delay: -4s; }.magic-motes i:nth-child(4) { left: 76%; animation-delay: -6s; }.magic-motes i:nth-child(5) { left: 45%; animation-delay: -5s; background: #f1cb77; }.magic-motes i:nth-child(6) { left: 85%; animation-delay: -3s; background: #f1cb77; }.magic-motes i:nth-child(7) { left: 35%; animation-delay: -7s; }.magic-motes i:nth-child(8) { left: 70%; animation-delay: -1s; }
@keyframes rising-mote { 0% { transform: translate(0,0); opacity: 0; } 20% { opacity: .8; } 75% { opacity: .6; } 100% { transform: translate(45px,-530px); opacity: 0; } }

.game-rail { position: relative; z-index: 2; border-top: 1px solid #6e5a39; border-bottom: 1px solid #6e5a39; background: linear-gradient(180deg, #19232a, #090f16 9%, #0e1720 90%, #27313a); box-shadow: 0 8px 20px #0006, inset 0 0 0 4px #080d1488; }
.rail-inner { display: grid; grid-template-columns: repeat(4,1fr); min-height: 151px; }
.rail-item { position: relative; padding: 19px 20px 16px; text-align: center; }
.rail-item + .rail-item::before { position: absolute; content: ""; width: 1px; left: 0; top: 16px; bottom: 17px; background: linear-gradient(transparent,#90734088,transparent); }
.rail-item svg { width: 34px; height: 34px; margin: 0 auto 7px; fill: none; stroke: #dec28a; stroke-width: 1.3; stroke-linecap: round; stroke-linejoin: round; filter: drop-shadow(0 0 6px #cda94c55); }
.rail-item h2 { margin: 0 0 5px; color: #e9d9b5; font: 15px var(--serif); text-transform: uppercase; }
.rail-item p { margin: 0; color: #aeb3b5; font-size: 10px; line-height: 1.55; }

.section-heading { position: relative; text-align: center; padding: 0 20px; }
.section-ornament { display: flex; align-items: center; justify-content: center; gap: 14px; margin-bottom: 7px; color: #c49d56; }
.section-ornament span { width: min(145px, 17vw); height: 1px; background: linear-gradient(90deg,transparent,#8c6c39); }
.section-ornament span:last-child { transform: rotate(180deg); }
.section-ornament b { font-size: 15px; line-height: 1; text-shadow: 0 0 9px #d6ac5a44; }
.section-heading h2 { margin: 0; color: #ecd8ac; font: 400 clamp(25px, 2.35vw, 33px)/1.18 var(--serif); letter-spacing: .045em; text-transform: uppercase; text-shadow: 0 2px 3px #000; }
.section-heading > p:not(.section-kicker) { margin: 9px auto 0; color: #b8bec4; font-size: 12px; }
.section-kicker { margin: 0 0 8px; color: #ddbc7b; font: 10px var(--serif); letter-spacing: .18em; text-transform: uppercase; }

.cards-section { position: relative; isolation: isolate; overflow: hidden; padding: 43px 0 25px; background: #0b121b; }
.cards-scenery { position: absolute; inset: 0; z-index: -1; opacity: .76; background: linear-gradient(0deg, #0b121bdd, #08101ca8 55%, #0b121bf7), url("assets/duel-arena.webp") center 78% / cover; }
.card-gallery { position: relative; }
.card-track { position: relative; display: flex; align-items: center; gap: 20px; padding: 29px 12px 29px; overflow-x: auto; overflow-y: hidden; scroll-snap-type: x mandatory; scrollbar-width: thin; scrollbar-color: #8b6c38 #0b1119; }
.card-pedestal { display: block; flex: 0 0 max(164px, calc((100% - 100px) / 6)); padding: 0; border: 0; background: none; scroll-snap-align: center; transform: rotate(-2.5deg) translateY(5px); transition: transform .3s ease, filter .3s ease; }
.card-pedestal:nth-child(2) { transform: rotate(-1.5deg) translateY(0); }.card-pedestal:nth-child(3) { transform: rotate(-.5deg) translateY(-4px); }.card-pedestal:nth-child(4) { transform: rotate(.5deg) translateY(-4px); }.card-pedestal:nth-child(5) { transform: rotate(1.5deg); }.card-pedestal:nth-child(6) { transform: rotate(2.5deg) translateY(5px); }
.card-pedestal:hover, .card-pedestal:focus-visible { transform: rotate(0) translateY(-12px); filter: drop-shadow(0 0 9px #a3dfff66); }
.tcg-card { position: relative; container-type: inline-size; display: block; width: 100%; aspect-ratio: 5 / 7; background: none; filter: drop-shadow(0 10px 8px #000a); text-align: left; }
.card-illustration { position: absolute; z-index: 1; inset: 12.9% 5.2% 37.8%; overflow: hidden; background: #182630; }
.card-illustration img { width: 100%; height: 100%; object-fit: cover; object-position: center top; }
.card-frame { position: absolute; z-index: 2; inset: 0; width: 100%; height: 100%; pointer-events: none; }
.card-cost, .card-name, .card-type, .card-rules, .card-rarity, .card-attack, .card-defense { position: absolute; z-index: 3; }
.card-cost { top: 1.2%; left: 2%; width: 21%; height: 18%; display: grid; place-items: center; color: #fff9e8; font: 700 11cqw/1 var(--serif); transform: translate(.03em,-.04em); text-shadow: 0 2px 2px #000; }
.realm-solaris .card-cost { color: #16100b; text-shadow: 0 1px 1px #ffe7a6; }
.card-name { inset: 5.2% 13.8% auto 21%; height: 7.7%; display: flex; align-items: center; justify-content: center; padding-inline: 1cqw; color: #fff3db; font: 700 4.25cqw/1.03 var(--serif); text-align: center; text-shadow: 0 1px 2px #000; }
.card-type { top: 61.1%; left: 6%; right: 6%; height: 3.4%; display: flex; align-items: center; justify-content: center; color: #fff5df; font: 700 4cqw/1 var(--serif); text-shadow: 0 1px 2px #000; }
.card-rules { inset: 66% 10.5% 22%; color: #1c2325; font: 4.1cqw/1.18 var(--sans); overflow: hidden; }
.card-rules b { display: block; margin-bottom: .25em; font-size: .9em; }
.card-rules > span { display: block; }
.card-rarity { top: 80.1%; left: 19%; right: 19%; color: #bd8f2f; font: 700 5cqw/.9 var(--serif); text-align: center; }
.card-rarity small { display: block; margin-top: .23em; color: #403524; font: 700 2.8cqw/1.1 var(--serif); white-space: nowrap; }
.card-attack, .card-defense { display: grid; place-items: center; width: 19%; height: 12%; color: #fff3db; font: 700 9.3cqw/1 var(--serif); text-shadow: 0 2px 2px #000; }
.card-attack { left: 3.5%; bottom: 4.1%; }.card-defense { right: 2.8%; bottom: 3.8%; }
.inspect-label { margin-top: 11px; display: block; color: #d6bf8e; font: 8px var(--serif); letter-spacing: .1em; text-transform: uppercase; opacity: .58; transition: opacity .2s; }
.inspect-label span { padding-left: 5px; font-size: 11px; }
.card-pedestal:hover .inspect-label, .card-pedestal:focus-visible .inspect-label { opacity: 1; }
.gallery-arrow { position: absolute; z-index: 5; top: 40%; width: 34px; height: 49px; display: grid; place-items: center; border: 1px solid #9e7d40; background: linear-gradient(#26313b,#0b121a); color: #efd5a0; font: 30px/1 var(--serif); box-shadow: 0 3px 12px #0008; clip-path: polygon(6px 0,calc(100% - 6px) 0,100% 6px,100% calc(100% - 6px),calc(100% - 6px) 100%,6px 100%,0 calc(100% - 6px),0 6px); }
.gallery-prev { left: -22px; }.gallery-next { right: -22px; }
.gallery-arrow:disabled { opacity: .3; cursor: default; }
.gallery-hint { margin: 1px 0 0; color: #aaaeb2; font: 11px var(--serif); text-align: center; }
.gallery-hint span { padding-right: 7px; color: #dcc18d; }

.realm-section { padding-top: 35px; border-top: 1px solid #6e59312e; background: linear-gradient(#0c151e,#08111a); }
.realm-tabs { margin-top: 25px; display: grid; grid-template-columns: repeat(6,1fr); }
.realm-tabs button { --tab-color: #f0c66b; position: relative; min-height: 81px; display: grid; justify-items: center; align-content: center; gap: 5px; padding: 9px 14px 12px; border: 0; border-top: 1px solid #85683b77; border-bottom: 1px solid #85683b77; background: linear-gradient(#14202b88,#080f19); color: #c5c7c5; font: 11px var(--serif); letter-spacing: .07em; text-transform: uppercase; transition: color .2s, background .2s; }
.realm-tabs button + button { border-left: 1px solid #775d3444; }
.realm-tabs button[data-realm="aetherion"] { --tab-color: #74d7ff; }.realm-tabs button[data-realm="umbra"] { --tab-color: #c899f5; }.realm-tabs button[data-realm="volkar"] { --tab-color: #ff9b6d; }.realm-tabs button[data-realm="sylvara"] { --tab-color: #a5df88; }.realm-tabs button[data-realm="machina"] { --tab-color: #9ce4ed; }
.realm-tabs button > span { color: var(--tab-color); font: 27px/1 var(--serif); filter: drop-shadow(0 0 6px color-mix(in srgb,var(--tab-color) 50%,transparent)); }
.realm-tabs button[aria-selected="true"] { color: #f2e6cb; background: linear-gradient(180deg,color-mix(in srgb,var(--tab-color) 14%,#10202b),#0a1420); box-shadow: inset 0 2px var(--tab-color), inset 0 -2px var(--tab-color); }
.realm-tabs button[aria-selected="true"]::after { position: absolute; content: ""; width: 7px; height: 7px; bottom: -4px; left: calc(50% - 3px); background: var(--tab-color); transform: rotate(45deg); z-index: 2; }
.realm-tabs button:hover { color: var(--tab-color); }
/* Keep the desktop stage in the source artwork's proportions so heads and silhouettes remain visible. */
.realm-stage { --realm-color: #f0c66b; position: relative; isolation: isolate; width: 100%; aspect-ratio: 1672 / 941; min-height: 510px; overflow: hidden; background: #07101b; border-bottom: 1px solid #82704e88; box-shadow: 0 9px 25px #0006; }
.realm-picture, .realm-shade { position: absolute; z-index: -2; inset: 0; }
.realm-picture img { width: 100%; height: 100%; object-fit: contain; object-position: center top; }
.realm-shade { z-index: -1; background: linear-gradient(90deg,#060c16d4 0%,#060c1655 39%,transparent 72%),linear-gradient(0deg,#07101be8,transparent 50%); }
.realm-stage-inner { position: absolute; inset: 0; height: 100%; display: flex; align-items: center; justify-content: space-between; }
.realm-lore { position: relative; width: 442px; padding: 28px 31px 25px; border: 1px solid color-mix(in srgb,var(--realm-color) 48%,transparent); background: linear-gradient(120deg,#0a121be8,#08111bc9); clip-path: polygon(0 12px,12px 0,calc(100% - 12px) 0,100% 12px,100% calc(100% - 12px),calc(100% - 12px) 100%,12px 100%,0 calc(100% - 12px)); box-shadow: 0 8px 50px #0006; }
.realm-lore::before { position: absolute; inset: 6px; content: ""; border: 1px solid color-mix(in srgb,var(--realm-color) 15%,transparent); pointer-events: none; clip-path: inherit; }
.realm-sigil { position: absolute; top: 20px; right: 26px; color: var(--realm-color); font: 47px/1 var(--serif); text-shadow: 0 0 17px color-mix(in srgb,var(--realm-color) 20%,transparent); }
.realm-order { margin: 0 56px 9px 0; color: var(--realm-color); font: 9px var(--serif); letter-spacing: .15em; text-transform: uppercase; }
.realm-lore h3 { margin: 0; color: #f3e5c7; font: 400 45px/1.1 var(--serif); text-transform: uppercase; text-shadow: 0 3px 7px #000; }
.realm-description { margin: 18px 0 17px; color: #d0d2cf; font-size: 12px; line-height: 1.9; }
.realm-traits { display: flex; gap: 15px; margin: 0 0 21px; color: var(--realm-color); font: 9px var(--serif); letter-spacing: .07em; text-transform: uppercase; }
.realm-traits span + span::before { content: "·"; padding-right: 15px; }
.realm-link { display: inline-flex; align-items: center; gap: 12px; padding-bottom: 4px; border-bottom: 1px solid color-mix(in srgb,var(--realm-color) 38%,transparent); color: #edd7a5; font: 10px var(--serif); letter-spacing: .04em; text-transform: uppercase; }
.realm-link svg { width: 17px; height: 17px; fill: none; stroke: currentColor; stroke-width: 1.5; }
.realm-link:hover { color: var(--realm-color); }
.realm-stage-caption { align-self: flex-end; margin: 0 4px 28px 30px; color: #e6d1a8; text-align: right; font: 12px/1.4 var(--serif); letter-spacing: .03em; text-shadow: 0 2px 8px #000; }
.realm-stage-caption span { display: block; margin-bottom: 6px; font-size: 23px; }

.guide-section { padding: 47px 0 50px; background: radial-gradient(ellipse at 50% 0,#1e2b3966,transparent 70%),#0b121b; }
.chapters { display: grid; grid-template-columns: repeat(3,1fr); gap: 35px; margin-top: 31px; }
.chapter { min-width: 0; }
.chapter-art { position: relative; height: 145px; padding: 5px; border: 1px solid #8c6c3688; background: linear-gradient(#27353f,#0b1119); }
.chapter-art::after { position: absolute; inset: 9px; content: ""; border: 1px solid #d8b35a44; pointer-events: none; }
.chapter-art img { width: 100%; height: 100%; object-fit: cover; object-position: center 27%; }
.chapter:nth-child(2) .chapter-art img { object-position: center 46%; }.chapter:nth-child(3) .chapter-art img { object-position: center 29%; }
.chapter-art > span { position: absolute; z-index: 2; left: 13px; bottom: -13px; width: 35px; height: 36px; display: grid; place-items: center; border: 1px solid #cbaa65; background: linear-gradient(#253242,#07101b); color: #e1bf78; font: 20px var(--serif); text-shadow: 0 2px #000; clip-path: polygon(6px 0,calc(100% - 6px) 0,100% 6px,100% calc(100% - 6px),calc(100% - 6px) 100%,6px 100%,0 calc(100% - 6px),0 6px); }
.chapter h3 { margin: 25px 0 8px; color: #ead4a9; font: 400 19px var(--serif); text-transform: uppercase; }
.chapter p { margin: 0; color: #adb5bd; font-size: 11px; line-height: 1.85; }

.arena-entrance { position: relative; isolation: isolate; min-height: 375px; overflow: hidden; border-top: 1px solid #90734288; border-bottom: 1px solid #90734288; background: #101e30; }
.arena-art, .arena-shade { position: absolute; inset: 0; z-index: -2; width: 100%; height: 100%; }
.arena-art { object-fit: cover; object-position: center 56%; }
.arena-shade { z-index: -1; background: linear-gradient(90deg,#050b15ef,#050b15b2 38%,#050b152a 72%),linear-gradient(0deg,#080d1699,transparent 50%); }
.arena-inner { min-height: inherit; display: flex; align-items: center; justify-content: space-between; gap: 70px; }
.arena-copy { max-width: 505px; padding: 32px 0; }
.arena-copy h2 { margin: 12px 0 14px; color: #f0d295; font: 400 38px/1.12 var(--serif); text-transform: uppercase; text-shadow: 0 3px 7px #000; }
.arena-copy > p:not(.section-kicker) { margin: 0 0 24px; color: #c3c7c6; font-size: 12px; line-height: 1.8; }
.battle-seal { position: relative; display: grid; justify-items: center; align-content: center; width: 232px; height: 232px; margin-right: 7%; border: 1px solid #c2aa7259; border-radius: 50%; background: radial-gradient(#8cd9ff14,transparent 68%); box-shadow: 0 0 0 8px #c2aa720b,0 0 0 19px #c2aa720c,0 0 50px #59b2e91c; color: #e7d3a2; text-shadow: 0 2px 7px #000; transform: rotate(-5deg); }
.battle-seal::before { position: absolute; content: ""; inset: 8px; border: 1px dashed #c8ae6655; border-radius: 50%; }
.battle-seal > span { color: #bce8ff; font: 76px/1 var(--serif); filter: drop-shadow(0 0 15px #69bdff); }
.battle-seal > b { margin-top: 11px; font: 400 16px var(--serif); letter-spacing: .07em; }
.battle-seal > small { margin-top: 4px; font: 8px var(--serif); letter-spacing: .12em; text-transform: uppercase; }

.site-footer { background: linear-gradient(#14202b,#070c13 12%); }
.footer-inner { min-height: 108px; display: flex; align-items: center; justify-content: space-between; gap: 40px; }
.footer-inner nav { display: flex; align-items: center; gap: 28px; font: 10px var(--serif); color: #c1c2ba; text-transform: uppercase; }
.footer-inner nav a:hover { color: #e8c687; }
.footer-inner > p { margin: 0; color: #9b9e9e; font-size: 9px; line-height: 1.9; text-align: right; }
.footer-inner > p span:last-child { color: #b69b64; font-family: var(--serif); }

.card-dialog { width: min(900px,calc(100% - 40px)); max-height: calc(100dvh - 40px); overflow: auto; padding: 44px; border: 1px solid #c5a161; background: radial-gradient(ellipse at 0 10%,#20344b,#0b1420 68%); color: var(--ivory); box-shadow: 0 0 0 5px #07101a,0 0 0 6px #8b704244,0 25px 80px #000; }
.card-dialog::backdrop { background: #020710e8; backdrop-filter: blur(8px); }
.dialog-close { position: absolute; top: 10px; right: 12px; width: 32px; height: 32px; border: 1px solid #ab8a4d77; background: #101c28; color: #e1c381; font: 27px/1 var(--serif); }
.dialog-layout { display: grid; grid-template-columns: 285px 1fr; gap: 37px; align-items: center; }
.dialog-card { width: 100%; }.dialog-card .tcg-card { filter: drop-shadow(0 8px 16px #000); }
.dialog-copy h2 { margin: 10px 0; color: #f1d69f; font: 400 30px/1.16 var(--serif); }
.dialog-type { margin: 0; color: #aebbc8; font: 12px var(--serif); }
.dialog-stats { display: flex; gap: 26px; margin: 23px 0; padding: 13px 0; border-block: 1px solid #ac895346; }
.dialog-stats > span { display: grid; justify-items: center; gap: 1px; color: #acb6c0; font-size: 9px; text-transform: uppercase; letter-spacing: .06em; }
.dialog-stats b { color: #e9c689; font: 26px var(--serif); }
.dialog-copy h3 { margin: 0 0 7px; color: #dfc393; font: 17px var(--serif); }
.dialog-description { margin: 0; color: #d2d7db; font-size: 12px; line-height: 1.85; }
.dialog-flavor { margin: 18px 0 25px; color: #9aa9b7; font: italic 13px/1.5 var(--serif); }
.dialog-copy .game-button { font-size: 9px; min-height: 44px; }

@media (max-width: 1050px) {
  .site-nav { gap: 19px; }.header-inner { gap: 25px; }
  .hero-copy { width: 420px; max-width: 47%; }
  .hero-actions { flex-wrap: wrap; }
  .hero-actions .game-button { min-height: 44px; }
  .hero-call { font-size: 19px; }
  .hero-description { max-width: 330px; }
  .realm-lore { width: 405px; }
  .chapters { gap: 24px; }
  .battle-seal { margin-right: 3%; width: 190px; height: 190px; flex: 0 0 auto; }
  .footer-inner { gap: 20px; }.footer-inner nav { gap: 17px; }
}

@media (max-width: 760px) {
  .header-inner { width: calc(100% - 36px); min-height: 59px; }
  .wordmark span { font-size: 18px; }.wordmark strong { font-size: 22px; }
  .js .menu-toggle { width: 40px; height: 36px; display: flex; flex-direction: column; justify-content: center; align-items: center; gap: 5px; border: 1px solid #a2844966; background: linear-gradient(#24313d,#0c1520); }
  .menu-toggle span { display: block; width: 17px; height: 1px; background: #dfc17b; transition: transform .2s,opacity .2s; }
  .menu-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(6px) rotate(45deg); }.menu-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }.menu-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }
  .site-nav { position: absolute; top: 100%; left: 0; right: 0; display: flex; flex-direction: column; align-items: stretch; gap: 0; padding: 7px 23px 20px; border-bottom: 1px solid #b1914d; background: #08121af5; backdrop-filter: blur(14px); }
  .js .site-nav { display: none; }.js .site-nav.is-open { display: flex; }
  .nav-link { padding: 13px 3px; border-bottom: 1px solid #aa87422e; }
  .site-nav .game-button { margin-top: 13px; }.nav-link::after { display: none; }
}

@media (max-width: 680px) {
  .page-wrap { width: calc(100% - 40px); }
  .hero { min-height: 0; background: #07101b; }
  .hero-art { height: 438px; object-position: 66% center; }
  .hero-shade { background: linear-gradient(0deg,#07101b 0%,#07101b 38%,#07101b00 70%); }
  .hero-inner { min-height: 0; padding-top: 350px; justify-content: center; }
  .hero-copy { max-width: none; width: 100%; padding: 0 0 29px; }
  .title-rune { display: none; }
  .game-title { font-size: clamp(56px,15.3vw,74px); text-shadow: 0 3px 0 #35210b,0 5px 12px #000; }
  .game-subtitle { font-size: 9px; margin-top: 15px; }
  .title-divider { margin: 7px 0 13px; }.title-divider span { width: 91px; }
  .hero-call { font-size: clamp(16px,4.6vw,20px); margin-inline: 0; line-height: 1.3; }
  .hero-description { font-size: 12px; margin-top: 12px; margin-bottom: 19px; max-width: 360px; }
  .hero-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 9px; }
  .hero-actions .game-button { min-height: 47px; font-size: 8px; padding: 0 10px; gap: 7px; letter-spacing: .04em; }
  .hero-actions .game-button svg { width: 16px; flex: 0 0 auto; }
  .hero-signature { margin-top: 19px; font-size: 10px; }
  .hero-scroll, .hero-inscription { display: none; }
  .magic-motes { height: 430px; }
  .rail-inner { grid-template-columns: 1fr 1fr; min-height: 0; }
  .rail-item { padding: 17px 8px; }
  .rail-item:nth-child(3), .rail-item:nth-child(4) { border-top: 1px solid #a88a4e33; }
  .rail-item:nth-child(3)::before { display: none; }
  .rail-item svg { width: 29px; height: 29px; }
  .rail-item h2 { font-size: 12px; }.rail-item p { font-size: 9px; }
  .cards-section { padding-top: 29px; padding-bottom: 24px; }
  .section-heading h2 { font-size: 23px; line-height: 1.25; letter-spacing: .025em; }
  .section-heading > p:not(.section-kicker) { max-width: 335px; font-size: 10px; line-height: 1.6; }
  .section-ornament { margin-bottom: 10px; }
  .card-track { gap: 23px; padding: 28px 34px 22px; scroll-padding-inline: 34px; }
  .card-pedestal { flex-basis: min(230px,65vw); transform: none !important; }
  .inspect-label { opacity: .8; font-size: 8px; margin-top: 12px; }
  .gallery-prev { left: -8px; }.gallery-next { right: -8px; }.gallery-arrow { width: 28px; height: 43px; top: 40%; }
  .gallery-hint { margin-top: 14px; font-size: 10px; line-height: 1.6; }
  .realm-section { padding-top: 28px; }
  .realm-tabs { display: flex; overflow-x: auto; overflow-y: hidden; margin-top: 22px; scrollbar-width: thin; scrollbar-color: #97723a #0a131e; }
  .realm-tabs button { flex: 0 0 97px; min-height: 76px; padding-inline: 8px; font-size: 9px; }
  .realm-tabs button > span { font-size: 27px; }
  .realm-stage { aspect-ratio: auto; min-height: 675px; }
  .realm-picture img { object-fit: cover; object-position: center top; }
  .realm-shade { background: linear-gradient(0deg,#06101bef 0%,#06101b99 37%,transparent 72%); }
  .realm-stage-inner { align-items: flex-end; padding-bottom: 22px; }
  .realm-lore { width: 100%; padding: 24px 24px 23px; background: linear-gradient(120deg,#0a121bf5,#08111bd9); }
  .realm-order { font-size: 8px; margin-bottom: 9px; }.realm-lore h3 { font-size: 36px; }
  .realm-sigil { top: 18px; right: 21px; font-size: 39px; }
  .realm-description { font-size: 12px; line-height: 1.85; margin-top: 14px; }
  .realm-traits { font-size: 8px; gap: 10px; margin-bottom: 18px; }.realm-traits span + span::before { padding-right: 10px; }
  .realm-link { font-size: 9px; gap: 8px; }.realm-stage-caption { display: none; }
  .guide-section { padding: 34px 0 36px; }
  .chapters { grid-template-columns: 1fr; gap: 25px; margin-top: 26px; }
  .chapter { display: grid; grid-template-columns: 113px 1fr; grid-template-rows: auto 1fr; column-gap: 16px; }
  .chapter-art { grid-row: 1 / 3; height: 165px; padding: 4px; }
  .chapter-art img { object-position: center 20%; }
  .chapter-art > span { left: 10px; bottom: 8px; width: 28px; height: 30px; font-size: 17px; }
  .chapter h3 { margin: 5px 0 8px; font-size: 16px; }
  .chapter p { font-size: 11px; line-height: 1.8; }
  .arena-entrance { min-height: 385px; }
  .arena-inner { display: block; }
  .arena-copy { padding: 42px 0; max-width: 410px; }
  .arena-copy h2 { font-size: 30px; }
  .arena-copy > p:not(.section-kicker) { max-width: 330px; font-size: 11px; }
  .arena-copy .game-button { min-height: 47px; }
  .arena-art { object-position: 61% center; }
  .arena-shade { background: linear-gradient(90deg,#060d18e6,#060d1880),linear-gradient(0deg,#060d18bb,transparent); }
  .battle-seal { display: none; }
  .footer-inner { display: grid; grid-template-columns: auto 1fr; gap: 20px; padding-block: 23px; min-height: 0; }
  .footer-inner nav { justify-self: end; display: grid; grid-template-columns: auto auto; gap: 8px 15px; font-size: 8px; }
  .footer-inner > p { grid-column: 1 / -1; border-top: 1px solid #a98a4433; padding-top: 14px; text-align: center; font-size: 8px; }
  .card-dialog { width: calc(100% - 24px); max-height: calc(100dvh - 24px); padding: 42px 23px 26px; }
  .dialog-layout { grid-template-columns: 1fr; gap: 26px; }.dialog-card { width: min(240px,75vw); margin-inline: auto; }
  .dialog-copy h2 { font-size: 27px; }.dialog-description { font-size: 14px; }
  .dialog-stats { justify-content: flex-start; gap: 37px; }
}

@media (max-width: 370px) {
  .page-wrap { width: calc(100% - 32px); }
  .hero-art { height: 410px; }.hero-inner { padding-top: 329px; }
  .hero-call { font-size: 15px; }.hero-actions .game-button { font-size: 7px; padding-inline: 7px; }
  .chapter { grid-template-columns: 95px 1fr; column-gap: 14px; }.chapter-art { height: 163px; }
  .realm-lore { padding-inline: 20px; }.realm-lore h3 { font-size: 32px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; animation: none !important; transition: none !important; }
  .magic-motes { display: none; }
  .card-pedestal:hover, .card-pedestal:focus-visible { transform: none; }
}
