:root{color-scheme:dark;--ink:#0b131a;--gold:#ddc37b;--white:#ece8dd;--muted:#bdbbb6;--serif:"Yu Mincho","Hiragino Mincho ProN","Noto Serif JP",serif;--sans:"Yu Gothic","Hiragino Kaku Gothic ProN",sans-serif}
*{box-sizing:border-box}html{scroll-behavior:smooth;scroll-padding-top:1rem}body{margin:0;background:#080e13;color:var(--white);font-family:var(--serif);-webkit-font-smoothing:antialiased}button,a{-webkit-tap-highlight-color:transparent}button{font:inherit;color:inherit;cursor:pointer}a{color:inherit;text-decoration:none}button{border-radius:0}button:disabled{cursor:default}button:focus-visible,a:focus-visible{outline:2px solid #f8dfa0;outline-offset:5px}h1,h2,h3,p{margin:0}button,a{touch-action:manipulation}button{background:none}button:hover{filter:brightness(1.13)}[hidden]{display:none!important}.site{width:100%;max-width:1920px;margin:0 auto;container-type:inline-size;background:var(--ink) url('assets/world-atlas.png') 0 0/100% auto no-repeat;overflow:clip}.skip-link{position:fixed;left:12px;top:-100px;z-index:100;background:var(--gold);color:var(--ink);padding:12px 20px}.skip-link:focus{top:12px}.header{height:5.2414cqw;min-height:50px;padding:0 7.1cqw;display:flex;align-items:center;justify-content:space-between;border-bottom:1px solid #baa26766;position:relative;z-index:3}.brand{display:flex;flex-direction:column;align-items:center;font-weight:700;color:var(--gold);line-height:1.12;white-space:nowrap;text-shadow:0 2px 14px #080e1366}.brand>span{letter-spacing:.08em;margin-right:-.08em}.brand>small{font-family:Georgia,serif;font-weight:400;letter-spacing:.48em;margin-right:-.48em}.brand-small>span{font-size:2.6cqw}.brand-small>small{font-size:.58cqw;line-height:1.6}.desktop-nav{display:flex;gap:4.3cqw;padding-left:5cqw}.desktop-nav a{font-size:clamp(14px,1.25cqw,20px);letter-spacing:.13em}.desktop-nav a:hover{color:var(--gold)}.steam-nav{border:1px solid #bca675aa;padding:.5cqw 1.7cqw;display:flex;align-items:center;gap:.8cqw;font-size:clamp(14px,1.35cqw,21px);line-height:1.3}.steam-symbol{font-family:Georgia,serif;font-size:1.25em;line-height:1}.menu-toggle,.mobile-nav{display:none}.hero{height:54.6207cqw;position:relative;text-align:center}.hero-copy{position:absolute;top:11.6cqw;left:10%;width:80%}.hero h1>span{font-size:9.4cqw;line-height:1.1}.hero h1>small{font-size:1.55cqw;margin-top:.7cqw}.hero-tagline{font-size:3.05cqw;letter-spacing:.12em;margin-top:2cqw;text-shadow:0 2px 7px #000}.hero-genre{font-size:1.72cqw;letter-spacing:.12em;margin-top:1cqw;text-shadow:0 2px 4px #000}.hero-actions{display:flex;justify-content:center;gap:1.5cqw;margin-top:2cqw}.button{min-height:44px;padding:.85cqw 2cqw;display:inline-flex;align-items:center;justify-content:center;gap:1cqw;font-family:var(--sans);font-size:clamp(14px,1.35cqw,22px);font-weight:600;letter-spacing:.045em;line-height:1.3;border:1px solid #c7ad72;transition:filter .2s,background .2s,box-shadow .2s}.button-gold{background:linear-gradient(110deg,#efdb9a,#b79a53);color:#211f19;box-shadow:inset 0 0 0 1px #f5dfa333,0 3px 18px #0003}.button-gold:hover{box-shadow:0 0 24px #d1b86f40}.button-dark{background:#0d172bc9;color:#f1e5bf}.play-small{display:inline-flex;width:1.4em;height:1.4em;border-radius:50%;background:var(--gold);color:#1e2430;align-items:center;justify-content:center;font-size:.8em;padding-left:.1em}.release-note{font-size:clamp(12px,1.1cqw,17px);letter-spacing:.06em;margin-top:2cqw;color:#e2dcd3;text-shadow:0 1px 4px #000}.vertical{writing-mode:vertical-rl;line-height:1.9;font-size:1.48cqw;letter-spacing:.18em;text-shadow:0 2px 5px #000}.hero-vertical{position:absolute;right:6.1%;top:10%;}.vertical:after{content:"";height:4cqw;width:1px;background:#d8c69a88;display:block;margin-top:1.4cqw;margin-right:.7em}.scroll-cue{position:absolute;bottom:2cqw;left:50%;transform:translateX(-50%);display:flex;flex-direction:column;align-items:center;gap:.6cqw}.scroll-cue>span{width:12px;height:22px;border:1px solid #d2cec4;border-radius:9px}.scroll-cue>span:after{content:"";display:block;margin:4px auto 0;width:1px;height:5px;background:#e4dfd0}.scroll-cue small{font-family:Georgia,serif;letter-spacing:.2em;font-size:10px}.dialog{color:var(--white);background:#0b141d;border:1px solid #9e8957;padding:3rem;width:min(90vw,650px);box-shadow:0 20px 100px #000b}.dialog::backdrop{background:#02060bdd;backdrop-filter:blur(7px)}.dialog h2{font-size:clamp(24px,2.8vw,38px);color:var(--gold);font-weight:500;line-height:1.5}.dialog p:not(.eyebrow){font-size:16px;line-height:1.9;margin:1.5rem 0}.dialog-close{position:absolute;right:12px;top:6px;width:44px;height:44px;border:0;font-size:32px;line-height:1;color:var(--gold)}.dialog-bar{padding:1rem 4rem 1rem 1.5rem}.dialog-bar h2{font-size:18px}.video-dialog{width:min(90vw,1200px);padding:0;max-height:95dvh}.video-dialog video{width:100%;max-height:82dvh;display:block;background:#000}.eyebrow{font:600 1.2cqw/1.4 Georgia,serif;letter-spacing:.15em;color:var(--gold)}body:has(dialog[open]){overflow:hidden}
@media(max-width:760px){.site{background:none}.header{height:64px;min-height:64px;padding:0 6%;background:#0b131a}.brand-small>span{font-size:26px}.brand-small>small{font-size:7px}.desktop-nav{display:none}.steam-nav{margin-left:auto;margin-right:18px;padding:7px 14px;font-size:14px}.menu-toggle{display:flex;width:32px;height:44px;flex-direction:column;justify-content:center;gap:7px;padding:0;border:0}.menu-toggle span{height:1px;width:28px;background:var(--gold)}.mobile-nav{display:flex;position:absolute;left:0;right:0;top:64px;flex-direction:column;padding:14px 6% 24px;background:#0b131af5;border-bottom:1px solid #b39d64}.mobile-nav a{padding:13px 0;font-size:16px}.hero{height:670px;background:url('assets/world-atlas.png') 50% -65px/1240px auto no-repeat}.hero:before{content:"";position:absolute;inset:0;background:linear-gradient(0deg,#08131e66,transparent 60%)}.hero-copy{top:170px;left:5%;width:90%}.hero h1>span{font-size:clamp(64px,18vw,110px)}.hero h1>small{font-size:14px;margin-top:12px}.hero-tagline{font-size:clamp(18px,4.7vw,30px);margin-top:30px;letter-spacing:.055em}.hero-genre{font-size:14px;margin-top:16px;letter-spacing:.045em}.hero-actions{margin-top:28px;gap:12px;flex-wrap:wrap}.button{padding:13px 18px;font-size:14px;min-height:46px}.release-note{font-size:13px;margin-top:20px}.hero-vertical{font-size:12px;right:6%;top:5%}.vertical:after{height:40px;margin-top:12px}.scroll-cue{bottom:24px;gap:7px}.dialog{padding:2.3rem 1.5rem;max-height:90dvh}.dialog h2{font-size:25px}.dialog .eyebrow{font-size:13px}.video-dialog{padding:0;width:95vw}.dialog-bar{padding:1rem 3.5rem 1rem 1rem}.dialog-bar h2{font-size:16px}}
@media(prefers-reduced-motion:reduce){html{scroll-behavior:auto}*,*:before,*:after{animation:none!important;transition:none!important}}
/* Full-page artwork follows the approved 725 × 2169 composition.
   The section heights below align live HTML with the clean ImageGen atlas. */
@media(min-width:761px){.header{min-height:0}.hero:before{content:"";position:absolute;inset:0;background:radial-gradient(ellipse 38% 48% at 50% 52%,#0b111e2e,transparent 100%)}.hero .brand{text-shadow:0 3px 24px #0008}}
.editorial{position:relative;height:41.10345cqw}.editorial-copy{position:absolute;left:7.1%;top:4.5cqw;width:38%}.editorial h2{font-size:4.15cqw;font-weight:600;line-height:1.3;letter-spacing:.03em;margin-top:1.25cqw;color:#f3e5bc;text-shadow:0 2px 8px #0008}.gold-stroke{display:block;height:4.7cqw;width:1px;background:var(--gold);margin-top:1.5cqw}.lead{font-size:1.85cqw;line-height:1.55;letter-spacing:.045em;font-weight:600}.world .lead{margin-top:1.4cqw}.body-copy{font-size:clamp(14px,1.35cqw,22px);line-height:1.7;letter-spacing:.06em;color:#d6d4cc;margin-top:1.4cqw}.editorial-vertical{position:absolute;right:6.2%;top:4.7cqw}.action .editorial-copy{top:5cqw}.action:before{content:"";position:absolute;inset:0;background:linear-gradient(90deg,#05090db3,transparent 39%)}.action-description{margin-top:5.9cqw}.action .body-copy{font-size:clamp(14px,1.3cqw,21px);margin-top:1.2cqw}.image-caption{position:absolute;right:6.4%;bottom:1.5cqw;font-family:var(--sans);font-size:clamp(12px,.82cqw,14px);color:#e2dbd3;text-shadow:0 1px 4px #000}.characters{height:65.24138cqw}.section-heading{height:11.17241cqw;padding:2.7cqw 7.1cqw 1.4cqw;display:flex;justify-content:space-between;align-items:center}.section-heading h2{font-size:4cqw;font-weight:500;line-height:1.45;letter-spacing:.025em;margin-top:.6cqw;color:#efe1b8}.heading-aside{font-size:clamp(14px,1.42cqw,22px);letter-spacing:.06em;display:flex;align-items:center;gap:2cqw;padding-top:1.4cqw}.heading-aside:before{content:"";width:6.5cqw;height:1px;background:var(--gold)}.character-grid{height:54.06897cqw;display:grid;grid-template-columns:repeat(3,1fr)}.character-card{position:relative;padding:0;border:0;text-align:left;overflow:hidden;isolation:isolate;transition:background .25s}.character-card:before{content:"";position:absolute;inset:0;background:linear-gradient(0deg,#080f19e6 0%,#09121b00 31%);z-index:-1}.character-card:hover{filter:none;background:#f0ddaa0a}.character-card:focus-visible{outline-offset:-5px}.character-caption{position:absolute;left:18%;bottom:2.2cqw;right:13%;display:flex;flex-direction:column;gap:.8cqw}.character-name{font-size:5.2cqw;font-weight:600;display:flex;align-items:center;justify-content:space-between;line-height:1.1;text-shadow:0 2px 8px #0008}.character-name:after{content:"";position:absolute;left:0;right:0;bottom:2.9cqw;height:1px;background:linear-gradient(90deg,#ce9e67,transparent)}.mage .character-name:after{background:linear-gradient(90deg,#a3bde8,transparent)}.talisman .character-name:after{background:linear-gradient(90deg,#bdddb9,transparent)}.character-arrow{font-family:var(--sans);font-size:3cqw;font-weight:300;color:var(--gold);transition:transform .2s}.character-card:hover .character-arrow{transform:translateX(6px)}.character-summary{font-size:1.75cqw;letter-spacing:.04em}.character-motto{position:absolute;top:3.2cqw;left:8%;font-size:1.45cqw;line-height:1.8}.character-motto:after{display:none}.talisman .character-motto{left:auto;right:8%}.movie{height:45.65517cqw}.movie .section-heading{height:10.89655cqw;padding-top:2.2cqw}.movie-button{display:flex;position:relative;width:90.9%;height:34.75862cqw;margin:0 auto;border:1px solid #b69c6388;align-items:center;justify-content:center;filter:none!important}.movie-button:before{content:"";position:absolute;inset:0;background:linear-gradient(0deg,#060d1b88,transparent 50%);transition:background .2s}.play-circle{position:absolute;left:50%;top:50%;transform:translate(-50%,-50%);width:8cqw;height:8cqw;border-radius:50%;border:1px solid #dfc480;background:#07111dcc;display:flex;align-items:center;justify-content:center;box-shadow:0 0 0 .7cqw #10172044;transition:box-shadow .2s}.play-circle span{font-family:var(--sans);font-size:3cqw;color:var(--gold);margin-left:.35cqw}.movie-button:hover .play-circle{box-shadow:0 0 0 1.2cqw #d4ba7233}.movie-label{position:absolute;bottom:2.7cqw;left:0;right:0;font-size:1.8cqw;letter-spacing:.13em;text-align:center;text-shadow:0 2px 5px #000}.closing{height:37.93103cqw;position:relative}.closing-main{position:absolute;left:12%;top:6.5cqw;width:45%;text-align:center}.closing-brand>span{font-size:5.5cqw}.closing-brand>small{font-size:1.1cqw;margin-top:.6cqw}.closing h2{font-size:4.2cqw;font-weight:500;letter-spacing:.035em;margin-top:1.6cqw;line-height:1.5}.closing .button{margin-top:1.7cqw;padding:1.2cqw 2.5cqw;white-space:nowrap;font-size:1.4cqw}.product-info{position:absolute;left:59.5%;top:19cqw;border-left:1px solid #c1a863;padding-left:2.1cqw;margin:0;font-size:1.13cqw;letter-spacing:.04em;text-shadow:0 1px 5px #000}.product-info div{display:grid;grid-template-columns:7.3cqw 1fr;gap:.7cqw;margin:.6cqw 0}.product-info dd{margin:0}.closing-vertical{position:absolute;right:6.3%;top:7cqw;font-size:1.3cqw}.footer{height:8.27586cqw;position:relative;display:flex;justify-content:center;align-items:center;border-top:1px solid #9a8554aa}.footer .brand>span{font-size:2.7cqw}.footer .brand>small{font-size:.65cqw}.footer>p{position:absolute;right:6.6%;top:46%;font-size:1.05cqw;letter-spacing:.08em}.character-dialog{padding:0;width:min(90vw,1000px);max-height:90dvh;overflow:auto}.character-dialog[open]{display:grid;grid-template-columns:43% 57%}.character-art{background-image:url('assets/world-atlas.png');background-repeat:no-repeat;background-size:1330px auto;background-position:0 -2038px;min-height:620px}.character-dialog[data-character="mage"] .character-art{background-position:-443px -2038px}.character-dialog[data-character="talisman"] .character-art{background-position:-887px -2038px}.character-detail{padding:3rem 2.5rem}.character-detail .eyebrow{font-size:14px}.character-detail h2{font-size:56px;margin-top:10px}.character-detail h3{font-size:16px;font-weight:500;letter-spacing:.12em;color:var(--gold);margin-top:1.6rem}.character-detail ul{padding:0;margin:1rem 0 2rem;list-style:none;display:grid;grid-template-columns:1fr 1fr;gap:10px}.character-detail li{border-left:1px solid #9e8957;padding-left:12px;font-size:16px}.character-dialog .dialog-close{z-index:1;background:#0b141dc9}
@media(min-width:761px) and (max-width:1050px){.desktop-nav{gap:3cqw;padding-left:2cqw}.body-copy{font-size:12px}.action .body-copy{font-size:12px}.heading-aside{font-size:12px}.product-info{font-size:12px;left:58%;}.product-info div{grid-template-columns:8cqw 1fr}.closing .button{font-size:12px}}
@media(max-width:760px){.editorial{height:570px;isolation:isolate}.editorial:before{content:"";position:absolute;inset:0;background:linear-gradient(90deg,#07121bea,#07121b55 70%,#07121b11);z-index:-1}.world{background:url('assets/world-atlas.png') 60% -830px/1387px auto no-repeat}.editorial-copy{left:7%;top:55px;width:86%}.eyebrow{font-size:12px;letter-spacing:.15em}.editorial h2{font-size:36px;margin-top:16px;line-height:1.45}.gold-stroke{height:40px;margin-top:25px}.lead{font-size:18px;line-height:1.65}.world .lead{margin-top:23px}.body-copy{font-size:14px;line-height:1.85;margin-top:22px}.editorial-vertical{font-size:12px;right:5%;top:60px;opacity:.75}.action{height:550px;background:url('assets/world-atlas.png') 54% -1351px/1338px auto no-repeat}.action .editorial-copy{top:45px}.action:before{background:linear-gradient(90deg,#060a10df,#080b1255 80%)}.action-description{margin-top:60px}.action .body-copy{font-size:14px;margin-top:20px}.image-caption{font-size:12px;right:6%;bottom:15px}.characters{height:auto;background:#0c151e}.section-heading{height:auto;min-height:132px;padding:30px 7%;display:block}.section-heading h2{font-size:clamp(25px,5.8vw,36px);margin-top:10px;line-height:1.5;letter-spacing:0}.heading-aside{display:none}.character-grid{height:auto;grid-template-columns:1fr}.character-card{height:145vw;max-height:760px;background-image:url('assets/world-atlas.png');background-repeat:no-repeat;background-size:300% auto;background-position:0 62.521%;}.character-card.mage{background-position:50% 62.521%}.character-card.talisman{background-position:100% 62.521%}.character-card:before{z-index:0;background:linear-gradient(0deg,#080f19f0 0%,#09121b00 40%)}.character-caption{left:9%;bottom:35px;right:10%;gap:20px}.character-name{font-size:58px}.character-name:after{bottom:38px}.character-arrow{font-size:32px}.character-summary{font-size:18px}.character-motto{top:30px;left:8%;font-size:15px}.movie{height:auto;background:#0b151e;padding-bottom:35px}.movie .section-heading{height:auto;min-height:128px;padding:30px 7% 24px}.movie-button{width:90%;height:36vw;background-image:url('assets/world-atlas.png');background-size:110% auto;background-position:center 85.22%;}.play-circle{width:60px;height:60px;box-shadow:0 0 0 6px #10172044}.play-circle span{font-size:22px;margin-left:3px}.movie-label{font-size:12px;bottom:10px;letter-spacing:.03em}.closing{height:620px;background:url('assets/world-atlas.png') center -3935px/1556px auto no-repeat}.closing:before{content:"";position:absolute;inset:0;background:#09111d40}.closing-main{left:5%;top:65px;width:90%}.closing-brand>span{font-size:56px}.closing-brand>small{font-size:11px;margin-top:10px}.closing h2{font-size:36px;margin-top:25px}.closing .button{font-size:14px;padding:15px 18px;margin-top:22px;white-space:normal}.product-info{left:12%;top:360px;padding-left:20px;font-size:14px}.product-info div{grid-template-columns:90px 1fr;gap:12px;margin:14px 0}.closing-vertical{display:none}.footer{height:100px;gap:25px;padding:20px 7%;background:#0c141d;justify-content:space-between}.footer .brand>span{font-size:25px}.footer .brand>small{font-size:7px}.footer>p{position:static;font-size:10px;line-height:1.8;max-width:180px;letter-spacing:.03em}.character-dialog[open]{grid-template-columns:1fr}.character-art{height:250px;min-height:250px;background-size:1000px auto;background-position:0 -1560px}.character-dialog[data-character="mage"] .character-art{background-position:-335px -1560px}.character-dialog[data-character="talisman"] .character-art{background-position:-675px -1560px}.character-detail{padding:25px}.character-detail h2{font-size:40px}.character-detail p{font-size:15px!important}.character-detail ul{margin-bottom:25px}}
@media(max-width:380px){.hero-actions{flex-direction:column;align-items:center}.hero-actions .button{min-width:240px}.hero-copy{top:135px}.hero{height:710px}.hero-tagline{font-size:17px}.hero-genre{font-size:12px}.editorial-vertical{display:none}.editorial h2{font-size:32px}.product-info{left:7%;font-size:13px}.closing .button{font-size:12px}.footer>p{font-size:9px}}
/* Preserve the source scene offsets when the mobile cards stack. */
@media(max-width:760px){.character-card,.character-card.mage,.character-card.talisman{background-position-y:-459.72414cqw}.movie-button{background-position-y:83.05%}}

/* Match the approved hero: a soft dark backing plus close text shadows. */
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: radial-gradient(ellipse 40% 47% at 50% 48%,
    rgb(6 13 23 / 64%) 0%,
    rgb(6 13 23 / 53%) 40%,
    rgb(6 13 23 / 25%) 72%,
    transparent 100%);
}
.hero .brand,
.hero .brand > span {
  text-shadow: 0 .045em .05em rgb(0 0 0 / 85%),
    0 .12em .24em rgb(0 0 0 / 65%);
}
.hero-tagline,
.hero-genre,
.hero .release-note {
  text-shadow: 0 2px 2px rgb(0 0 0 / 80%),
    0 4px 14px rgb(0 0 0 / 75%);
}
@media (max-width: 760px) {
  .hero::before {
    background: radial-gradient(ellipse 85% 48% at 50% 47%,
      rgb(6 13 23 / 68%) 0%,
      rgb(6 13 23 / 52%) 42%,
      rgb(6 13 23 / 22%) 74%,
      transparent 100%);
  }
}
/* Keep the world introduction beside its gold vertical rule. */
.world-lead {
  display: flex;
  align-items: center;
  gap: 1.8cqw;
  margin-top: 1.5cqw;
}
.world-lead .gold-stroke { flex: 0 0 1px; margin: 0; }
.world .world-lead .lead { margin: 0; }
@media (max-width: 760px) {
  .world-lead { gap: 16px; margin-top: 25px; }
}

/* Latest locally supplied key art. Keep the approved section geometry and copy. */
.hero { background: url('assets/opening.jpg') center center / cover no-repeat; }
.action { background: url('assets/action-frame.jpg') center 30% / cover no-repeat; }
.character-card {
  background-size: auto 100%;
  background-repeat: no-repeat;
  background-position: 60% top;
}
.character-card.swordsman { background-image: url('assets/blade.jpg'); }
.character-card.mage { background-image: url('assets/mage.jpg'); }
.character-card.talisman { background-image: url('assets/talisman.jpg'); }
.character-card::before { z-index: 0; }
.character-card:hover { background-color: #f0ddaa0a; filter: brightness(1.08); }
.character-caption, .character-motto { z-index: 1; }
.movie-button { background: url('assets/opening.jpg') center center / cover no-repeat; }
.character-art {
  background-image: url('assets/blade.jpg');
  background-size: auto 100%;
  background-position: 60% center;
}
.character-dialog[data-character="mage"] .character-art {
  background-image: url('assets/mage.jpg');
  background-position: 60% center;
}
.character-dialog[data-character="talisman"] .character-art {
  background-image: url('assets/talisman.jpg');
  background-position: 60% center;
}
.character-dialog-actions { display: flex; flex-wrap: wrap; gap: 12px; }
@media (max-width: 760px) {
  .hero { background: url('assets/opening.jpg') center center / cover no-repeat; }
  .action { background: url('assets/action-frame.jpg') 46% center / cover no-repeat; }
  .character-card, .character-card.mage, .character-card.talisman {
    background-size: auto 100%;
    background-position: 60% top;
  }
  .movie-button { background: url('assets/opening.jpg') center center / cover no-repeat; }
  .character-art,
  .character-dialog[data-character="mage"] .character-art,
  .character-dialog[data-character="talisman"] .character-art {
    background-size: auto 100%;
    background-position: 60% center;
  }
}

/* Keep the hero's Japanese and Roman title sizes at a 4:1 ratio. */
.hero h1 > small { font-size: 2.35cqw; }
@media (max-width: 760px) {
  .hero h1 > small { font-size: clamp(16px, 4.5vw, 27.5px); }
}

/* Four-language navigation and locale-specific typography. */
.brand { font-family: "Yu Mincho", "Hiragino Mincho ProN", "Noto Serif JP", serif; }
.language-switcher { position: relative; z-index: 6; font-family: var(--sans); flex: none; }
.language-switcher summary {
  min-width: 44px;
  min-height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 8px;
  border: 0;
  border-radius: 6px;
  color: #e5dfce;
  background: transparent;
  list-style: none;
  font-size: 13px;
  cursor: pointer;
  white-space: nowrap;
  transition: color .2s, background .2s;
}
.language-switcher summary::-webkit-details-marker { display: none; }
.language-switcher summary:focus-visible { outline: 2px solid #f8dfa0; outline-offset: 3px; }
.language-switcher summary:hover,
.language-switcher[open] summary { color: var(--gold); background: #ddc37b0d; }
.language-globe { width: 18px; height: 18px; flex: none; color: var(--gold); }
.language-chevron { width: 12px; height: 12px; flex: none; opacity: .7; transition: transform .2s; }
.language-switcher[open] .language-chevron { transform: rotate(180deg); }
.language-options {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  min-width: 176px;
  padding: 7px;
  border: 1px solid #bca67540;
  border-radius: 8px;
  background: #0e1923f5;
  backdrop-filter: blur(16px);
  box-shadow: 0 12px 32px #0006;
}
.language-options button {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 44px;
  width: 100%;
  border: 0;
  border-radius: 4px;
  padding: 10px 12px;
  text-align: left;
  font-size: 14px;
  white-space: nowrap;
}
.language-options button:hover,
.language-options button[aria-current="true"] { color: var(--gold); background: #ddc37b1a; }
.language-options button[aria-current="true"]::after { content: "✓"; margin-left: 20px; font-size: 13px; }
.language-options button:focus-visible { outline-offset: -2px; }
@media (max-width: 380px) {
  .language-switcher #language-code { display: none; }
  .language-switcher summary { gap: 4px; padding-inline: 6px; }
  .language-options { left: 0; right: auto; }
}
html[lang="zh-CN"] { --serif: "Noto Serif CJK SC", "Source Han Serif SC", SimSun, serif; --sans: "Microsoft YaHei", "Noto Sans CJK SC", sans-serif; }
html[lang="zh-TW"] { --serif: "Noto Serif CJK TC", "Source Han Serif TC", PMingLiU, serif; --sans: "Microsoft JhengHei", "Noto Sans CJK TC", sans-serif; }
html[lang="en"] { --serif: Georgia, serif; --sans: Arial, sans-serif; }
html[lang="en"] .vertical { writing-mode: horizontal-tb; line-height: 1.4; letter-spacing: .07em; text-align: right; }
html[lang="en"] .vertical::after { display: none; }
html[lang="en"] .hero-vertical,
html[lang="en"] .editorial-vertical,
html[lang="en"] .closing-vertical { max-width: 20%; }
html[lang="en"] .character-motto { max-width: 72%; text-align: left; }
html[lang="en"] .character-caption { left: 12%; right: 8%; }
html[lang="en"] .character-name { font-size: 3.5cqw; }
@media (max-width: 760px) {
  .language-switcher { margin-left: auto; margin-right: 8px; }
  .steam-nav { margin-left: 0; margin-right: 10px; padding: 7px 10px; }
  html[lang="en"] .character-name { font-size: clamp(38px, 10vw, 50px); }
  html[lang="en"] .hero-vertical { max-width: 30%; }
  html[lang="en"] .editorial-vertical { max-width: 28%; }
}
@media (max-width: 380px) {
  .header { padding-inline: 4%; }
  .brand-small > span { font-size: 23px; }
  .language-switcher { margin-right: 5px; }
  .steam-nav { margin-right: 7px; padding-inline: 7px; }
}

/* Independent sections prevent the old full-page atlas from showing through. */
.site { background: var(--ink); }
.header { background: #0b131a; }
.characters, .movie {
  height: auto;
  background: radial-gradient(ellipse at 50% 0, #182934, #0b141d 75%);
}
.footer { background: #0b141d; }
/* Fit only each scene's source slice, even when text makes a section taller.
   Atlas: 725 x 2169; world: y=434, h=298; closing: y=1834, h=275. */
.world { background: url('assets/world-crimson-realm.webp') center top / cover no-repeat; }
.closing { background: url('assets/world-atlas.png') center 96.8321% / auto 788.72727% no-repeat; }

/* A common text rhythm, with natural height for longer translations. */
.editorial {
  height: auto;
  min-height: max(420px, 41.10345cqw);
  padding: clamp(40px, 5cqw, 80px) 7.1%;
}
.editorial .editorial-copy { position: relative; inset: auto; width: 46%; z-index: 1; }
.editorial::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  background: linear-gradient(90deg, #07121be8, #07121bb3 32%, #07121b18 72%, transparent);
  pointer-events: none;
}
.editorial h2 { font-size: clamp(32px, 4.15cqw, 70px); margin-top: 16px; }
.lead { font-size: clamp(18px, 1.85cqw, 26px); line-height: 1.7; letter-spacing: .02em; }
.body-copy, .action .body-copy {
  font-family: var(--sans);
  font-size: clamp(16px, 1.35cqw, 21px);
  line-height: 1.85;
  letter-spacing: .015em;
  color: #e1e5e8;
  margin-top: 24px;
  text-shadow: 0 2px 8px #0009;
}
.world-lead { margin-top: 24px; gap: 18px; }
.world-lead .gold-stroke { height: 3.5em; }
.action-description { margin-top: clamp(24px, 3.5cqw, 56px); }
.eyebrow { font-size: clamp(12px, 1.15cqw, 17px); }
.editorial-vertical, .closing-vertical { display: none; }
.section-heading, .movie .section-heading {
  height: auto;
  min-height: 0;
  padding: clamp(32px, 4cqw, 64px) 7.1%;
  gap: 28px;
}
.section-heading h2 { font-size: clamp(28px, 3.7cqw, 60px); margin-top: 12px; }
.heading-aside { font-size: clamp(14px, 1.3cqw, 18px); line-height: 1.7; letter-spacing: .02em; padding: 0; }

/* Shift the artwork itself, retaining the matched face scale and eye line.
   A short fade blends each image edge into its own atmospheric backing. */
.character-grid { height: 54.06897cqw; padding: 0; gap: 1px; background: #b9a37333; }
.character-card.swordsman {
  --portrait: url('assets/blade.jpg'); --portrait-size: 100%;
  --portrait-x: 70%; --portrait-top: 12%;
  background: linear-gradient(#0b141d55, #0b141d00), var(--portrait) left top / auto 140% no-repeat;
}
.character-card.mage {
  --crown-mask: 7%;
  --portrait: url('assets/mage.jpg'); --portrait-size: 110%;
  --portrait-x: 64%; --portrait-top: 3.2%;
  background: linear-gradient(#0b141d55, #0b141d00), var(--portrait) left top / auto 140% no-repeat;
}
.character-card.talisman {
  --portrait: url('assets/talisman.jpg'); --portrait-size: 113%;
  --portrait-x: 64%; --portrait-top: 8.36%;
  background: linear-gradient(#0b141d55, #0b141d00), var(--portrait) left top / auto 140% no-repeat;
}
.character-card::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: calc(var(--portrait-top) - clamp(12px, 2cqw, 28px));
  height: 100%;
  background: var(--portrait) var(--portrait-x) top / auto var(--portrait-size) no-repeat;
  mask-image: linear-gradient(to bottom, transparent, #000 48px),
              radial-gradient(ellipse var(--crown-mask, 12%) 64px at 50% 36px, #000 75%, transparent);
  pointer-events: none;
  z-index: -1;
}
.character-card.swordsman::after,
.character-card.talisman::after {
  mask-size: auto var(--portrait-size);
  mask-position: var(--portrait-x) top;
  mask-repeat: no-repeat;
  mask-mode: alpha;
}
.character-card.swordsman::after { mask-image: url('assets/blade-top-mask.svg'); }
.character-card.talisman::after { mask-image: url('assets/talisman-top-mask.svg'); }
.character-card::before {
  background: linear-gradient(0deg, #07101a 0%, #07101ad9 11%, #07101a00 44%);
  pointer-events: none;
}
.character-card { transition: filter .2s; }
.character-caption, html[lang="en"] .character-caption { left: 12%; right: 12%; bottom: 5%; gap: 16px; }
.character-name { font-size: clamp(34px, 4.8cqw, 72px); }
.character-name::after { display: none; }
.character-summary { padding-top: 12px; border-top: 1px solid #d5bc7b66; }
.character-summary { font-family: var(--sans); font-size: clamp(14px, 1.55cqw, 22px); line-height: 1.6; letter-spacing: .015em; }
.character-motto { font-size: clamp(12px, 1.3cqw, 18px); top: 6%; left: 7%; text-shadow: 0 2px 6px #000, 0 0 15px #000; }
.talisman .character-motto { right: 7%; }

/* Carry each landscape through the heading and portraits without moving faces. */
.characters { position: relative; isolation: isolate; }
.character-scenery {
  position: absolute;
  inset: 0;
  z-index: -1;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  pointer-events: none;
}
.character-scenery > span { background: var(--scene) left top / auto 140% no-repeat; }
.character-scenery > span:nth-child(1) { --scene: url('assets/blade.jpg'); }
.character-scenery > span:nth-child(2) { --scene: url('assets/mage.jpg'); }
.character-scenery > span:nth-child(3) { --scene: url('assets/talisman.jpg'); }
.characters > .section-heading {
  position: relative;
  isolation: isolate;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  text-align: center;
  text-shadow: 0 2px 6px #000, 0 0 18px #000b;
}
.characters > .section-heading .heading-aside {
  display: block;
  max-width: none;
  padding: 0;
}
.characters > .section-heading .heading-aside::before { display: none; }
.characters > .section-heading::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  /* Balance the bright bamboo against the darker sky without blurring the art. */
  background:
    radial-gradient(ellipse at 50% 32%, #07101a66, transparent 66%),
    radial-gradient(ellipse at 15% 4%, #b2c7df0d, transparent 62%),
    linear-gradient(90deg, #14283e40, #14243a26 48%, #0c1b2d80),
    linear-gradient(180deg, #0a142326, transparent 65%);
  mask-image: linear-gradient(180deg, #000 0%, #000 24%, #0008 55%, transparent 90%);
  pointer-events: none;
}
.characters .character-grid { background: transparent; }
.characters .character-card { background: none; }
@media (max-width: 760px) {
  .characters { --scene-card-height: clamp(380px, 112vw, 570px); }
  .character-scenery {
    grid-template-columns: 1fr;
    grid-template-rows: 1fr var(--scene-card-height) var(--scene-card-height);
  }
}

/* The movie artwork fills the section; its heading sits over the image. */
.movie { position: relative; padding: 0; background: none; }
.movie > .section-heading {
  position: absolute;
  inset: 0 0 auto;
  z-index: 2;
  pointer-events: none;
  text-shadow: 0 2px 6px #000, 0 0 18px #000b;
}
.movie-button {
  width: 100%;
  height: auto;
  margin: 0;
  aspect-ratio: 16 / 9;
  background: url('assets/mage.jpg') center 35% / cover no-repeat;
  border: 0;
  box-shadow: none;
}
.movie-button:focus-visible { outline-offset: -5px; }
.movie-button::before { background: linear-gradient(180deg, #060d1bb3, #060d1b00 35%, #060d1b15 60%, #060d1bdd); }
.movie-label { font-size: clamp(14px, 1.8cqw, 26px); letter-spacing: .06em; bottom: 6%; }
.product-info { font-family: var(--sans); font-size: clamp(14px, 1.13cqw, 19px); line-height: 1.7; }
.product-info div { grid-template-columns: 7em 1fr; margin: 10px 0; }

@media (max-width: 1050px) and (min-width: 761px) {
  .heading-aside::before { width: 32px; }
  .heading-aside { max-width: 32%; }
  .product-info { top: 14cqw; left: 59%; right: 5%; }
  .product-info div { grid-template-columns: 5em 1fr; }
}
@media (max-width: 760px) {
  .editorial { padding: 40px 7%; min-height: 490px; }
  .editorial .editorial-copy { width: 100%; }
  .editorial h2 { font-size: clamp(30px, 8vw, 38px); }
  .editorial::before { background: linear-gradient(90deg, #07121bea, #07121b9e 58%, #07121b33); }
  .action { background-position: 46% center; }
  .world { background-position: right center; }
  .action-description { margin-top: 28px; }
  .body-copy, .action .body-copy { font-size: 16px; }
  .section-heading, .movie .section-heading { padding: 32px 7%; }
  .section-heading h2 { font-size: clamp(24px, 6.4vw, 34px); }
  .character-grid { height: auto; padding: 0; }
  .character-card { height: clamp(380px, 112vw, 570px); max-height: none; }
  .character-motto { display: none; }
  .character-caption, html[lang="en"] .character-caption { left: 8%; right: 8%; bottom: 24px; gap: 14px; }
  .character-name { font-size: 38px; }
  html[lang="en"] .character-name { font-size: clamp(28px, 8.4vw, 38px); }
  .character-name::after { bottom: 2.1em; }
  .character-summary { font-size: 16px; }
  .movie-button { width: 100%; height: clamp(380px, 112vw, 570px); aspect-ratio: auto; background-position: 60% center; }
  .movie .heading-aside { display: block; margin-top: 12px; font-size: 13px; }
  .movie .heading-aside::before { display: none; }
  .play-circle { width: 54px; height: 54px; }
  .movie-label { font-size: 13px; }
  .closing { height: auto; min-height: 580px; padding: 48px 7%; }
  .closing-main { position: relative; inset: auto; width: 100%; }
  .closing h2 { font-size: 32px; }
  .closing .button { white-space: normal; font-size: 14px; }
  .product-info { position: relative; inset: auto; margin: 36px auto 0; width: fit-content; max-width: 100%; padding-left: 18px; }
  .product-info div { grid-template-columns: 6em 1fr; }
}

/* Keep branding, navigation and store actions in three balanced groups. */
.header {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
  gap: 24px;
  height: 76px;
  min-height: 76px;
  padding: 0 clamp(20px, 5cqw, 80px);
  border-bottom: 1px solid #bca67530;
}
.header > .brand { justify-self: start; }
.header .brand-small > span { font-size: 30px; }
.header .brand-small > small { font-size: 7px; margin-top: 3px; }
.desktop-nav { padding: 0; gap: clamp(20px, 2.6cqw, 40px); align-items: center; }
.desktop-nav a {
  position: relative;
  display: flex;
  align-items: center;
  min-height: 44px;
  font-size: 15px;
  letter-spacing: .06em;
  white-space: nowrap;
  color: #ddd9cf;
  transition: color .2s;
}
.desktop-nav a::after {
  content: "";
  position: absolute;
  left: 20%; right: 20%; bottom: 2px;
  height: 1px;
  background: var(--gold);
  transform: scaleX(0);
  transition: transform .2s;
}
.desktop-nav a:hover::after, .desktop-nav a:focus-visible::after { transform: scaleX(1); }
.header-actions { display: flex; align-items: center; justify-self: end; gap: 18px; }
.header-actions .language-switcher, .header-actions .steam-nav { margin: 0; }
.header-actions .steam-nav {
  justify-content: center;
  min-height: 40px;
  padding: 8px 18px;
  gap: 8px;
  font-family: var(--sans);
  font-size: 14px;
  line-height: 1.2;
  border-color: #bca67588;
  background: #ddc37b08;
  white-space: nowrap;
  transition: border-color .2s, background .2s;
}
.header-actions .steam-nav:hover { border-color: var(--gold); background: #ddc37b15; }
@media (min-width: 901px) and (max-width: 1100px) {
  .header { gap: 16px; padding-inline: 4%; }
  .desktop-nav { gap: 20px; }
  .desktop-nav a { font-size: 14px; letter-spacing: .025em; }
  .header-actions { gap: 10px; }
  .header-actions .steam-nav { padding-inline: 12px; }
}
@media (max-width: 900px) {
  .header { display: flex; justify-content: space-between; gap: 8px; height: 64px; min-height: 64px; padding: 0 5%; }
  .header .brand-small > span { font-size: 26px; }
  .desktop-nav { display: none; }
  .header-actions { gap: 6px; }
  .header-actions .steam-nav { padding: 8px 10px; min-height: 40px; }
  .menu-toggle { display: flex; width: 40px; height: 44px; padding: 8px; flex-direction: column; justify-content: center; gap: 7px; border: 0; }
  .menu-toggle span { width: 24px; height: 1px; background: var(--gold); transition: transform .2s; }
  .menu-toggle[aria-expanded="true"] span:first-child { transform: translateY(4px) rotate(45deg); }
  .menu-toggle[aria-expanded="true"] span:last-child { transform: translateY(-4px) rotate(-45deg); }
  .mobile-nav { display: flex; flex-direction: column; position: absolute; top: 100%; left: 0; right: 0; padding: 12px 5% 20px; background: #0b131af5; backdrop-filter: blur(16px); box-shadow: 0 18px 32px #0005; border-bottom: 1px solid #bca67555; }
  .mobile-nav a { display: flex; align-items: center; justify-content: space-between; min-height: 54px; padding: 14px 4px; border-bottom: 1px solid #bca67520; font-size: 16px; letter-spacing: .06em; }
  .mobile-nav a::after { content: "→"; font-family: var(--sans); color: var(--gold); opacity: .65; }
  .mobile-nav a:last-child { border-bottom: 0; }
  .mobile-nav a:hover { color: var(--gold); }
}
@media (max-width: 380px) {
  .header { padding-inline: 4%; }
  .header .brand-small > span { font-size: 23px; }
  .header-actions { gap: 4px; }
  .header-actions .steam-nav { padding-inline: 8px; }
}
