: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%)}
.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}
.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}
.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}
.nation picture,.nation figure img {display:block; width:100%; height:100%}
.nation figure img {object-fit:cover; object-position:center}
.nation figure {position:relative; overflow:hidden; margin:0}
}
.nation h3,.theme-slide h3 {font:700 clamp(30px,3vw,50px)/1.35 var(--display); letter-spacing:.07em; color:#fae8c8; margin:12px 0 18px}
.review {display:inline-block; color:#ddc9a6; font:12px/1.55 var(--sans); border:1px solid #8e7d6266; padding:2px 7px}
.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)}
  .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}
  .chapter-heading {gap:14px; margin-bottom:24px}
  .chronicle {--banner-top:clamp(91px,14svh,108px)}
  .chronicle-heading {top:calc(var(--banner-top) - 34px); left:0; width:100%; text-align:center}
  .nation-grid,.split {grid-template-columns:1fr}
  .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 .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)} }
/* WEB-1204-mobile-fix 包 3：首頁手機（plan.md #11 #16 #24 #28 #30） */
@media (max-width:414px){html:lang(en) .nation dl{grid-template-columns:minmax(0,1fr);gap:0}html:lang(en) .nation dt{margin-top:8px;font-size:13px}html:lang(en) .nation dt:first-child{margin-top:0}}
@media (max-width:760px){.sticky-slot{padding:6px 16px max(6px,env(safe-area-inset-bottom))}body:has(#main-nav.open) .sticky-slot,.signup-open .sticky-slot{display:none}}
@media (max-width:760px){.nation figure{aspect-ratio:21/8}.nation-copy{padding:16px}.nation h3{font-size:clamp(24px,6.6vw,28px);margin:0 0 6px}.dv-colors{margin-bottom:12px}.nation dl{gap:4px 16px;margin-bottom:16px}.nation .enlist{width:100%;justify-content:center}.nation-grid{gap:16px}}
@media (max-width:760px){.recruitment{min-height:0;padding:40px 16px}}
@media (max-width:420px){.legal-nav{display:grid;grid-template-columns:1fr 1fr;gap:0 12px;padding-inline:16px}.endnotes{font-size:14px}}
/* 選單補「熱門專題」後，英文 1001～1119 頂列放不下（溢出 37～86px），這段寬度頂列不放，子頁選單與首頁消息區仍可進 */
@media (min-width:1001px) and (max-width:1119px){html:lang(en) #main-nav>a[href$="/hot/"]{display:none}}
/* WEB-1204-mobile-fix 包 6：首頁節奏（plan.md #36：區塊上下 40、標題到內容 16） */
@media (max-width:760px){.countries{padding-top:40px}.bulletin{padding-block:40px}.chapter-heading{margin-bottom:16px}}
/* WEB-1204-home-mkt Q5：手機（≤760）區塊順序用 order，DOM 維持桌機順序（見 index.html）；手機不顯示封測條。
   WEB-1205-img-swap：對決帶整區移除，order 重排成連號；手機與桌機 DOM 順序一致（封測條手機不顯示），order 留著當保險。
   直接修：收尾區背景大圖在手機延後載入（story.js 接近畫面才加 .is-near）。 */
@media (max-width:760px){
  .story-home main{display:flex;flex-direction:column}
  .story-home main>#top{order:1}
  .story-home main>#classes{order:2}
  .story-home main>#features{order:3}
  .story-home main>#news{order:4}
  .story-home main>#world{order:5}
  .story-home main>.countries{order:6;width:100%}
  .story-home main>#faq{order:7}
  .story-home main>.recruitment{order:8}
  .story-home main>.dv-beta-strip{display:none}
  .recruitment:not(.is-near){background:linear-gradient(0deg,#0c1018da,#15161aa6),#101319}
}
/* WEB-1205-img-swap：手機（≤760）收尾區改用直式專用背景 closing-mobile.webp（828×828，兩名祭司的臉在上緣、標題上方），對齊 center top。
   只在 .is-near（story.js 接近畫面才加）時生效，沿用上面 :not(.is-near) 的延後載入；這條蓋掉 .recruitment 的 closing.webp，手機不會兩張都載。桌機仍用 closing.webp。 */
@media (max-width:760px){
  .recruitment.is-near{background:linear-gradient(0deg,#0c1018da,#15161aa6),url('../assets/cta/closing-mobile.webp') center top / cover}
}
/* WEB-1205-hero4 12/05 協調線裁定：手機（≤760）收尾區標題下移，讓 closing-mobile.webp 上緣兩名祭司的臉完整露在標題上方。背景寬度滿版時臉的下緣約在圖寬 18% 處，上內距改 22vw（375 寬約 83px）；背景圖與延後載入不動。 */
@media (max-width:760px){.recruitment{padding-top:22vw}}
