:root{color-scheme:dark;--page:#101d22;--surface:#182b30;--text:#fffbea;--muted:#bccecc;--line:#3a5254;--gold:#ffdf92;--gold-dark:#1b2221;--ring:#b2f3dd;font-family:"PingFang SC","Microsoft YaHei",system-ui,sans-serif}
*,*::before,*::after{box-sizing:border-box}
body{margin:0;background:var(--page);color:var(--text);min-height:100vh;line-height:1.55}
[hidden]{display:none!important}
.wrap{width:min(1120px,100% - 40px);margin-inline:auto}
a{color:inherit;text-decoration:none}
a:focus-visible,button:focus-visible,input:focus-visible{outline:2px solid var(--ring);outline-offset:3px}
.skip{position:absolute;top:.4rem;left:.4rem;z-index:10;padding:.6rem 1rem;background:#fff;color:#152126;transform:translateY(-140%)}
.skip:focus{transform:translateY(0)}
.top{border-bottom:1px solid #ffffff20;background:#101d22}
.top-inner{min-height:62px;display:flex;align-items:center;justify-content:space-between;gap:12px}
.brand{display:inline-flex;align-items:center;gap:10px;font-weight:760;letter-spacing:.04em}
.brand-mark{padding:3px 8px;display:inline-grid;place-items:center;min-width:32px;height:32px;font-weight:850;background:var(--gold);color:var(--gold-dark);border-radius:5px}
.header-link,.back{color:var(--muted);font-size:.92rem;padding:10px 0}
.header-link:hover,.back:hover{color:var(--gold)}
.hero{min-height:448px;position:relative;display:grid;align-items:center;background:linear-gradient(90deg,rgba(13,25,29,.98) 0%,rgba(13,25,29,.9) 33%,rgba(13,25,29,.13) 76%),linear-gradient(0deg,#101d22,transparent 30%),url('media/map.webp') center 43%/cover;background-color:#314730;border-bottom:1px solid #ffffff20}
.hero-inner{padding:56px 0 62px}
.hero-tag{margin:0 0 14px;color:var(--gold);font-size:.95rem;font-weight:720;letter-spacing:.13em}
h1,h2,p{margin:0}h1{font-size:clamp(2.6rem,6.6vw,5.4rem);line-height:1.06;font-weight:850;letter-spacing:.035em}
.intro{max-width:29rem;margin:22px 0 25px;color:#dee8e3;font-size:1.05rem}
.button{appearance:none;display:inline-flex;align-items:center;justify-content:center;min-height:44px;padding:8px 14px;border:1px solid var(--line);border-radius:7px;background:#1a3036;color:var(--text);font:inherit;font-weight:680;cursor:pointer;text-align:center}
.button:hover{background:#24404a}
.primary{background:var(--gold);border-color:var(--gold);color:var(--gold-dark)}.primary:hover{background:#ffe9b5}
.chapters{padding:45px 0 62px}.chapter-heading{display:flex;align-items:end;justify-content:space-between;gap:18px;margin-bottom:22px}
h2{font-size:clamp(1.7rem,3.8vw,2.4rem);line-height:1.14;letter-spacing:.05em}
.chapter-heading p,.scene-help{color:var(--muted);margin-top:8px}
.seek{max-width:100%;margin:0}.seek label{display:block;color:var(--muted);font-size:.9rem;margin-bottom:4px}.seek div{display:flex;gap:6px}.seek input{color:var(--text);font:inherit;min-width:0;width:112px;background:#15272d;border:1px solid var(--line);border-radius:6px;padding:7px 10px}.seek #seek-error{color:#ffb1a2;max-width:235px;font-size:.86rem}
.chapter-list{margin:0;padding:0;list-style:none;display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:11px}
.chapter-card{display:grid;grid-template-columns:105px 1fr auto;align-items:center;gap:15px;min-height:92px;padding:9px;border:1px solid var(--line);border-radius:10px;background:#15272b;transition:border-color .15s,background .15s}
.chapter-card:hover{border-color:var(--gold);background:#1b3338}.chapter-card img{width:105px;height:70px;object-fit:cover;border-radius:6px;background:#273a42}.chapter-card h3{margin:0 0 4px;font-size:1.02rem;line-height:1.25}.chapter-card p{color:var(--muted);font-size:.88rem;line-height:1.36}.time{font-variant-numeric:tabular-nums;color:var(--gold);font-weight:730;font-size:.9rem;white-space:nowrap;margin-right:8px}
.viewer{padding:24px 0 44px}.viewer-top{display:flex;justify-content:space-between;align-items:center;margin-bottom:8px}.viewer h1{font-size:clamp(1.85rem,5vw,3rem);letter-spacing:.06em}.viewer .scene-help{margin:8px 0 16px}.frame-shell{overflow:hidden;background:#101518;border:1px solid #66716a;border-radius:10px}.frame-shell iframe{display:block;width:100%;height:auto;aspect-ratio:16/9;border:0;background:#101518}.viewer-nav,.game-controls{display:flex;align-items:center;flex-wrap:wrap;gap:8px;margin-top:12px}.viewer-nav{justify-content:space-between;margin-top:17px}.footer{border-top:1px solid #ffffff20;font-size:.91rem;color:var(--muted);padding:16px 0 max(20px,env(safe-area-inset-bottom))}
@media (max-width:700px){.hero{min-height:400px;background-position:60% 41%;background-image:linear-gradient(90deg,#0d191de8 0%,#0d191d9e 57%,#0d191d65),linear-gradient(0deg,#101d22,transparent 37%),url('media/map.webp')}.hero-inner{padding:48px 0}.intro{max-width:260px}.chapter-list{grid-template-columns:1fr}.chapter-heading{align-items:flex-start;flex-direction:column}.chapters{padding-top:31px}.viewer{padding-top:11px}.viewer .wrap{width:min(1120px,100% - 24px)}.frame-shell iframe{height:clamp(340px,74vw,465px);aspect-ratio:auto}.game-controls .button{flex:1 0 auto}}
@media (max-width:390px){.wrap{width:calc(100% - 24px)}.chapter-card{grid-template-columns:79px 1fr auto;gap:10px}.chapter-card img{width:79px;height:61px}.chapter-card p{font-size:.85rem}.time{margin-right:2px}.chapter-card h3{font-size:.95rem}}
@media (max-height:490px) and (orientation:landscape){.frame-shell iframe{height:min(67vh,480px)}.viewer{padding-top:4px}.viewer h1{font-size:1.45rem}.top-inner{min-height:47px}}
@media (prefers-reduced-motion:reduce){*,*::before,*::after{scroll-behavior:auto!important;transition:none!important}}

.button:disabled{opacity:.52;cursor:progress}
