* { box-sizing: border-box }
:root { color-scheme: dark; --base:#10221e; --panel:#182e28; --edge:#335048; --text:#f6f1e2; --muted:#c4d1c6; --accent:#f1d89e; --serif:"Songti SC", "SimSun", "Noto Serif CJK SC", serif; --sans:Inter,"PingFang SC","Microsoft YaHei",sans-serif; }
html { scroll-behavior:smooth }
body { margin:0; background:var(--base); color:var(--text); font: 1rem/1.65 var(--sans); }
body.danlu { --base:#221b18; --panel:#2d221b; --edge:#594237; --accent:#ffd097; }
body.tower { --base:#101f2a; --panel:#152b3a; --edge:#314c62; --accent:#ade1f5; }
body.sect { --base:#17251d; --panel:#23372b; --edge:#3f5546; --accent:#d8e6a0; }
img { max-width:100%; height:auto; display:block }
a { color:inherit; text-decoration:none }
a:focus-visible, button:focus-visible { outline:2px solid var(--accent); outline-offset:5px }
h1,h2,h3,p,figure {margin:0}
h1,h2,h3 {line-height:1.18; font-family:var(--serif)}
.wrap { width:min(100% - 48px, 1240px); margin-inline:auto }
.bar { border-bottom:1px solid var(--edge) }
.bar-inner,.foot { min-height:69px; display:flex; align-items:center; justify-content:space-between; gap:1rem }
.brand, nav { display:flex; align-items:center; gap:1rem; }
.brand {font-weight:700}
.brand img {border-radius:.55rem}
nav {gap:clamp(14px,3vw,34px)}
nav a,.foot a {padding-block:.65rem; color:var(--muted)}
nav a:hover,.foot a:hover {color:var(--text)}
.hero { display:grid; grid-template-columns:minmax(0,.78fr) minmax(0,1.22fr); align-items:center; gap:clamp(28px,6vw,90px); padding-block:clamp(42px,7vw,92px); }
.hero-text { display:grid; gap:1.05rem; }
.hero h1 {font-size:clamp(3.1rem,7.6vw,7rem); letter-spacing:-.065em;}
.detail h1 {font-size:clamp(2.8rem,5.4vw,5.7rem);}
.hero p { color:var(--muted); max-width:29em; font-size:clamp(1rem,1.45vw,1.2rem); }
.hero-image img { width:100%; border-radius:10px; border:1px solid var(--edge); object-fit:cover; }
.hero-image figcaption { margin-top:.55rem; color:var(--muted); font-size:.86rem }
.game-icon { width:70px; height:70px; border-radius:14px }
.detail-hero .hero-image img { max-height:480px; object-fit:contain; width:100%; background:var(--panel) }
.actions {display:flex; gap:.65rem; flex-wrap:wrap; margin-top:.45rem}
.btn,button { border:1px solid var(--edge); border-radius:5px; min-height:45px; padding:.64rem 1.05rem; display:inline-flex; align-items:center; justify-content:center; font:700 .91rem/1.25 var(--sans); }
.primary { background:var(--accent); color:#1e251f; border-color:var(--accent) }
.primary:hover {filter:brightness(1.1)}
.secondary {color:var(--text)}
.secondary:hover {background:var(--panel)}
.library,.feature {border-top:1px solid var(--edge); padding-block:clamp(26px,4vw,55px)}
h2 {font-size:clamp(1.8rem,3vw,3rem); margin-bottom:1.4rem}
.grid { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:22px }
.game {background:var(--panel); border:1px solid var(--edge); border-radius:10px; overflow:hidden; display:flex; flex-direction:column}
.art {display:block; overflow:hidden; background:var(--base)}
.art:focus-visible {outline-offset:-4px}
.art img {width:100%; aspect-ratio:2.25; object-fit:cover; object-position:center 30%; transition:transform .25s}
.art:hover img {transform:scale(1.025)}
.game-copy {padding:clamp(18px,2.5vw,29px); flex:1; display:flex; flex-direction:column; gap:.65rem}
.genre {color:var(--accent); font-size:.88rem; font-weight:700}
.game h3 {font-size:clamp(1.36rem,2.5vw,2rem)}
.game p,.feature p {color:var(--muted)}
.game .actions {margin-top:auto; padding-top:.55rem}
.feature-list {display:grid; grid-template-columns:repeat(3,1fr); gap:clamp(14px,4vw,45px)}
.feature-list h3 {font-size:1.27rem; margin-bottom:.7rem}
.shots {display:grid; grid-template-columns:repeat(5,minmax(0,1fr)); gap:12px}
.shots a {background:var(--panel); border:1px solid var(--edge); border-radius:6px; overflow:hidden}
.shots img {width:100%; height:100%; object-fit:cover}
.end {padding-bottom:2.6rem}
footer {border-top:1px solid var(--edge)}
.foot { color:var(--muted); font-size:.9rem }
dialog { width:min(94%,1050px); border:1px solid var(--edge); border-radius:8px; background:var(--base); color:var(--text); }
dialog::backdrop {background:#09130eea}
dialog img {margin:auto; max-height:76vh; width:auto; object-fit:contain}
.dialog-nav {display:flex; align-items:center; justify-content:center; flex-wrap:wrap; gap:8px; margin-bottom:10px}
button {background:var(--panel); color:var(--text); cursor:pointer; padding-inline:.8rem}
@media(max-width:760px){.wrap{width:calc(100% - 34px)} .hero{grid-template-columns:1fr} .hero h1{letter-spacing:-.055em} .grid,.feature-list{grid-template-columns:1fr} .shots{grid-template-columns:repeat(3,minmax(0,1fr))} .detail-hero .hero-image img{max-height:330px}}
@media(prefers-reduced-motion:reduce){html{scroll-behavior:auto}.art img{transition:none}}
