:root {
  --cream: #f2e8d5;
  --brass: #dab784;
  --hairline: #89734e77;
  --night: #11151a;
  --gutter: clamp(22px, 6vw, 104px);
}
@font-face {font-family:"DV Story Serif"; src:url("../assets/fonts/serif-title.woff2") format("woff2"); font-weight:700; font-display:optional}
.story-home {--display:"DV Story Serif","PMingLiU","MingLiU",serif; background: var(--night); color: var(--cream)}
.reading-width {max-width: 1376px; margin: auto; padding-inline: var(--gutter)}
.layout-A .mast {
  position: fixed; inset: 0 0 auto; height: 68px; padding: 0 var(--gutter); z-index: 30;
  background: linear-gradient(180deg,#0b1015ed,#0c1018b3); border-bottom: 1px solid var(--hairline);
}
.layout-A .mast.scrolled {background:#111519fa}
.mast .home-logo, .mast .menu {min-width:44px; min-height:44px}
.mast .home-logo img {width:85px; height:48px}
.mast-action {display:flex; align-items:center; justify-content:flex-end; min-width:215px; height:48px}
.mast-brand {font-size:12px; color:#cfbe9b; letter-spacing:.16em}
.mast-action:has(.sticky-slot:not([hidden])) .mast-brand {display:none}
.mast a {min-width:44px}
.world-hero {
  position:relative; isolation:isolate; display:flex; align-items:center;
  min-height:100svh; padding:118px var(--gutter) 9svh; background:#16191a;
  border-bottom:1px solid #b29362;
}
.world-hero::after {
  content:""; position:absolute; inset:82px 22px 16px; border:1px solid #e8cda32e;
  border-bottom-color:#d1ad7060; pointer-events:none; z-index:-1;
}
.panorama,.panorama picture,.panorama img {position:absolute; inset:0; width:100%; height:100%}
.panorama {z-index:-2}
.panorama img {object-fit:cover; object-position:center}
.panorama::after {content:""; position:absolute; inset:0; background:linear-gradient(0deg,#11151a44,transparent 18%)}
.lead {position:relative; width:min(720px,44vw); text-shadow:0 3px 22px #050608}
@media(min-width:761px) {
  .lead .rule-label {color:#fff0ca}
  .lead::before,#chapter-4 .passage::before {content:""; position:absolute; z-index:-1; pointer-events:none;
    inset:-32% -15% -28% -24%; background:radial-gradient(ellipse closest-side,#0c1118ed 28%,#0c1118cc 56%,#0c111862 79%,transparent)}
  .lead .offer {width:fit-content; background:linear-gradient(90deg,#10151bcc,#10151be8 93%,#10151bcc);
    padding:2px 8px; margin-left:-8px; border-radius:3px}
  #chapter-4::before {background:linear-gradient(0deg,#0a0e1459,transparent 20%)}
  #chapter-4 {align-content:start; padding-top:clamp(108px,21svh,240px)}
}
.rule-label {display:flex; align-items:center; gap:12px; font:600 13px/1.5 var(--sans); color:#e8c692; letter-spacing:.18em}
.rule-label::before {content:""; width:32px; height:1px; background:currentColor}
.lead h1 {max-width:14em; margin:22px 0 16px; color:#fff2d9; font:700 clamp(40px,3.7vw,72px)/1.37 var(--display); letter-spacing:.025em; text-wrap:balance}
.lead wbr::after {content:""}
.challenge {font:500 clamp(23px,1.8vw,36px)/1.55 var(--display); letter-spacing:.12em}
.hero-actions,.recruit-actions {display:flex; align-items:center; flex-wrap:wrap; gap:22px; margin:32px 0 12px}
.enlist,.watch,.recruit-actions [data-community][href],.platforms a[href] {
  display:inline-flex; align-items:center; justify-content:center; gap:22px;
  min-height:48px; min-width:44px; font-weight:700; text-shadow:none;
}
.enlist {padding:10px 21px; color:#231b12; background:linear-gradient(115deg,#f2dbad,#c9a471); border:1px solid #ecd3a2; box-shadow:inset 0 0 0 3px #735d332b; font-size:16px}
.enlist:hover {color:#140f09; background:#f3dba9}
.enlist i,.watch i {font:normal 19px Georgia,serif}
.watch {color:#f5e9d2; border-bottom:1px solid #c5a36a; gap:12px}
.offer,.recruitment p {max-width:38em; color:#e1d7c6; font-size:14px; line-height:1.8}
.chronicle {position:relative; padding:0 0 clamp(56px,6vw,100px); background:radial-gradient(ellipse at 16% 8%,#293037,transparent 48%),#14191e}
.chapter-heading {display:flex; align-items:center; justify-content:center; gap:24px; margin-bottom:clamp(30px,3vw,56px)}
.chapter-heading::before,.chapter-heading::after {content:""; width:clamp(22px,6vw,96px); height:1px; background:linear-gradient(90deg,transparent,#ccb285)}
.chapter-heading::after {transform:rotate(180deg)}
.chapter-heading h2,.bulletin h2,.recruitment h2 {font:700 clamp(32px,3.4vw,56px)/1.35 var(--display); letter-spacing:.085em; color:#f5e4c7}
/* 圓拱疊在滿版背景上，中央保留給場景，右緣預留章節導覽。 */
.chronicle-heading {position:absolute; z-index:2; top:clamp(90px,12svh,150px); left:var(--gutter)}
.chronicle-heading h2 {font:600 15px/1.4 var(--display); color:#f3dfba; letter-spacing:.22em; text-shadow:0 2px 5px #0a1014}
.chapter-reader {display:grid; isolation:isolate}
.chapters,.chapter-nav {grid-area:1 / 1}
.chapter {
  position:relative; isolation:isolate; overflow:hidden; display:grid; align-content:end;
  min-height:100svh; padding:clamp(140px,22svh,260px) var(--gutter) clamp(88px,14svh,184px);
  border-bottom:1px solid var(--hairline); background:#161d24;
}
.chapter::before {content:""; z-index:-1; position:absolute; inset:0; background:linear-gradient(0deg,#090e15f2,transparent 72%),linear-gradient(90deg,#0c1219a8,transparent 66%)}
.chapter::after {
  content:""; pointer-events:none; position:absolute; inset:clamp(76px,10svh,116px) 4% 4%;
  border:1px solid #dab67f73; border-radius:50% 50% 2px 2px / 32% 32% 2px 2px;
}
.chapter-scenery {position:absolute; z-index:-2; inset:-2.5% 0; pointer-events:none}
.chapter-scenery picture,.chapter-scenery img,.nation picture,.nation figure img {display:block; width:100%; height:100%}
.chapter-scenery img,.nation figure img {object-fit:cover; object-position:center}
.passage {position:relative; z-index:1; width:min(27em,100%); text-shadow:0 2px 10px #05090c}
.chapter-nav {position:sticky; top:calc(50svh - 115px); align-self:start; justify-self:end; z-index:3; margin-right:1%; padding:4px 0; background:#111820c9; border:1px solid #bea57866; border-radius:24px}
.chapter-nav a {display:grid; place-items:center; width:44px; height:44px; color:#e8d9c4}
.chapter-nav span {display:grid; place-items:center; width:22px; height:22px; border-radius:50%; border:1px solid #bea5788c; font:13px/1 Georgia,serif}
.chapter-nav a[aria-current] span {background:#e8c995; border-color:#fff0c9; color:#181613; box-shadow:0 0 0 3px #b294642f}
.chapter-nav a:focus-visible {outline:2px solid #ffe1ac; outline-offset:-2px}
.nation figure {position:relative; overflow:hidden; margin:0}
@media(prefers-reduced-motion:no-preference) {
  .chapter.in-view .passage {animation:chapter-arrival .65s ease-out both}
  @keyframes chapter-arrival {from {opacity:0; transform:translateY(10px)} to {opacity:1; transform:none}}
  @supports (animation-timeline:view()) {
    .chapter {view-timeline-name:--chapter-scroll}
    .chapter-scenery {animation:chapter-drift linear both; animation-timeline:--chapter-scroll}
    @keyframes chapter-drift {from {transform:translateY(-2%)} to {transform:translateY(2%)}}
  }
}
.passage h3,.nation h3,.theme-slide h3 {font:700 clamp(30px,3vw,50px)/1.35 var(--display); letter-spacing:.07em; color:#fae8c8; margin:12px 0 18px}
.passage p {font:400 clamp(16px,1.2vw,20px)/2 var(--sans); color:#dfd9cd; text-wrap:pretty}
.review {display:inline-block; color:#ddc9a6; font:12px/1.55 var(--sans); border:1px solid #8e7d6266; padding:2px 7px}
.passage .review {margin-top:16px}
.countries {padding-top:clamp(48px,5vw,90px)}
.nation-grid {display:grid; grid-template-columns:1fr 1fr; gap:24px}
.nation {position:relative; overflow:hidden; border:1px solid var(--hairline); background:#1d252b}
.nation:nth-child(2) {background:#272222}
.nation figure {aspect-ratio:16/7; border-bottom:1px solid var(--hairline)}
.nation-copy {padding:clamp(20px,2.6vw,44px)}
.nation h3 {margin-top:0}
.nation dl {display:grid; grid-template-columns:max-content 1fr; gap:6px 22px; margin:0 0 24px}
.nation dt {color:#c0b39c}
.nation dd {margin:0}
.nation .enlist {color:#f1d9af; background:transparent; border-color:#a88a61}
.nation .enlist:hover {background:#3b352e}
.layout-A #classes .stage {top:0}
.layout-A #classes .hero-copy h2 {font:700 clamp(52px,6vw,108px)/1.3 var(--display); color:var(--cream)}
.class-weapon {margin-top:18px; color:#dabd8e; letter-spacing:.12em}
.class-weapon strong {border-left:1px solid #958366; padding-left:12px; margin-left:8px}
.gallery {padding:clamp(52px,6vw,100px) 0; background:#171a20}
.gallery .arch-window {height:auto; width:100%; aspect-ratio:2.6; border-radius:50% 50% 0 0 / 50% 50% 0 0}
.theme-slide {align-items:end; padding:4% 8%}
.theme-slide::after {background:linear-gradient(0deg,#0c1016f2,transparent 90%)}
.theme-slide:nth-child(2) img,.theme-slide:nth-child(4) img {object-position:72% 82%}
.theme-slide h3 {margin:0 0 8px}
.theme-slide p {max-width:38em; margin:auto}
.theme-picks {gap:clamp(8px,3vw,48px)}
.theme-picks button {font-size:15px; min-width:64px}
.bulletin {padding:clamp(52px,6vw,100px) 0; background:#ede4d4; color:#31291f}
.split {display:grid; grid-template-columns:1fr 1fr; gap:8%}
.bulletin h2 {color:#382f24; font-size:clamp(30px,2.6vw,44px); margin-bottom:20px}
.bulletin details {border-bottom:1px solid #9c8a6c}
.bulletin summary {cursor:pointer; display:flex; justify-content:space-between; align-items:center; min-height:56px; gap:14px; padding:12px 0; font-weight:600}
.bulletin summary::after {content:"＋"; color:#79623e}
.bulletin details[open] summary::after {content:"－"}
.bulletin details p {color:#4a4033; margin:0 0 16px}
.recruitment {text-align:center; display:grid; place-items:center; min-height:360px; padding:60px var(--gutter); background:linear-gradient(0deg,#0c1018da,#15161aa6),url('../assets/cta/closing.webp') center 52% / cover}
.recruitment p {margin:16px auto}
.recruit-actions {justify-content:center; margin-bottom:0}
[data-community]:not([href]),[data-store]:not([href]) {display:none}
.endnotes {padding:40px 0; color:#bfb5a5; font-size:13px; text-align:center; background:#101317}
.foot-logo {display:inline-grid; place-items:center; width:100px; min-height:56px}
.foot-logo img {width:100%}
.legal-nav,.platforms {display:flex; justify-content:center; flex-wrap:wrap; align-items:center; gap:4px 18px}
.legal-nav a,.legal-nav button {display:inline-flex; min-height:44px; min-width:44px; align-items:center; border:0; padding:0; background:transparent; color:#e4d9c6; font:inherit}
.platforms {margin:8px auto}
.sticky-slot .enlist {min-height:44px; font-size:14px}
.cookie-copy a {display:inline-flex; align-items:center; min-height:44px; min-width:44px}
.cookie-banner .switch {min-width:44px; min-height:44px}
@media(max-width:760px) {
  .layout-A .mast {height:54px}
  .mast .home-logo img {width:65px; height:40px}
  .mast-action {min-width:0; margin-right:6px}
  .mast-brand {font-size:11px}
  .mast-action:has(.sticky-slot:not([hidden])) .mast-brand {display:inline}
  .sticky-slot {position:fixed; z-index:32; inset:auto 0 0; padding:7px 16px max(7px,env(safe-area-inset-bottom)); background:#12171bf5; border-top:1px solid #7e694a}
  .sticky-slot .enlist {width:100%}
  body:has(.sticky-slot:not([hidden])) .endnotes {padding-bottom:105px}
  .world-hero {--hero-image-height:clamp(210px,39svh,400px); min-height:100svh; align-items:flex-start; padding:calc(54px + var(--hero-image-height) - 8px) 22px 58px}
  .world-hero::after {inset:64px 10px 11px}
  .panorama img {top:54px; object-position:center 43%; height:var(--hero-image-height); object-fit:cover}
  .panorama {background:#11151a}
  .panorama::after {top:calc(54px + var(--hero-image-height) - 21px); height:22px; background:linear-gradient(0deg,#11151a,transparent)}
  .lead {width:100%}
  .lead .rule-label {width:fit-content; padding:3px 6px; margin:-3px -6px; background:linear-gradient(90deg,#11151aef,#11151ada)}
  .lead h1 {font-size:clamp(29px,7.7vw,44px); line-height:1.28; margin:6px 0 4px; text-shadow:0 2px 12px #0b0c0f}
  .challenge {font-size:21px; line-height:1.3}
  .rule-label {font-size:12px; gap:8px}
  .hero-actions {margin:4px 0; gap:12px}
  .hero-actions a {min-height:44px; padding-block:6px}
  .enlist {font-size:15px; gap:10px; padding-inline:14px}
  .watch {font-size:14px; gap:5px}
  .offer {font-size:13px; line-height:1.48}
  .chapter-heading {gap:14px; margin-bottom:24px}
  .chapter-nav {display:none}
  .chronicle {--banner-top:clamp(91px,14svh,108px)}
  .chapter {align-content:start; padding:var(--banner-top) 0 84px; background:#12191f}
  .chapter-scenery {position:relative; inset:auto; z-index:0; width:100%; aspect-ratio:16/9; animation:none}
  .chapter-scenery picture {mask-image:linear-gradient(180deg,transparent,#000 8%,#000 93%,transparent)}
  .chapter-scenery::after {content:""; position:absolute; inset:0 8px -14px; border:1px solid #d2b17899;
    border-radius:50% 50% 0 0 / 30% 30% 0 0; border-bottom:0; mask-image:linear-gradient(#000 64%,transparent)}
  .chapter::before,.chapter::after {content:none}
  .chronicle-heading {top:calc(var(--banner-top) - 34px); left:0; width:100%; text-align:center}
  .nation-grid,.split {grid-template-columns:1fr}
  .passage h3 {margin:8px 0}
  .passage {width:auto; margin:clamp(22px,4svh,36px) 24px 0}
  .passage p {line-height:1.85}
  .passage .review {margin-top:10px}
  .layout-A #classes .hero-copy h2 {font-size:42px}
  .class-weapon {margin-top:8px}
  .layout-A #classes .hero-copy {padding:18px 22px}
  .layout-A #classes .film-foot {
    display:grid; grid-template-columns:repeat(5,minmax(44px,56px)); justify-content:center;
    gap:8px; height:auto; padding:12px 8px;
  }
  .layout-A #classes .picks {display:contents}
  .layout-A #classes .film-foot button {width:100%; min-height:44px}
  .layout-A #classes .pick {grid-row:1}
  .layout-A #classes .step {display:block; grid-row:2}
  .layout-A #classes .step:first-child {grid-column:2}
  .layout-A #classes .step:last-child {grid-column:4}
  .layout-A #classes .auto {grid-area:2 / 3}
  .layout-A #classes .pick {flex-direction:column; gap:2px; min-height:48px}
  .layout-A #classes .pick span {display:block; font-size:11px}
  .gallery .arch-window {aspect-ratio:.98}
  .theme-slide {padding:0 18px 26px}
  .theme-picks {gap:4px; justify-content:space-between}
  .theme-picks button {font-size:13px; min-width:52px}
  .split {gap:36px}
  .recruitment {min-height:300px}
}
@media(prefers-reduced-motion:reduce) { html {scroll-behavior:auto} }
@media(max-width:760px) { .sticky-slot {bottom:var(--cookie-height,0px)} }
