:root { --ground: #20100c; --gold: #b17e48; --ink: #f6e9d3; }
* { box-sizing: border-box; }
body { margin: 0; color: var(--ink); background: var(--ground); font: 15px/1.6 "Microsoft YaHei", sans-serif; }
img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
a:focus-visible, button:focus-visible { outline: 2px solid #f1b967; outline-offset: 3px; }
.site-header { background: #fff; color: #352820; border-bottom: 1px solid var(--gold); }
.header-inner { max-width: 1560px; min-height: 64px; margin: auto; padding: 5px 24px; display: flex; align-items: center; gap: 26px; }
.brand { display: flex; align-items: center; gap: 11px; margin-right: auto; }
.brand-logo { width: 134px; }
.brand-slogan { width: 126px; }
.brand-icon { width: 42px; }
.header-actions { display: flex; align-items: center; gap: 28px; text-align: center; }
.header-actions small { display: block; font-size: 10px; letter-spacing: .06em; }
#musicToggle { flex: 0 0 36px; height: 36px; border: 1px solid var(--gold); border-radius: 50%; cursor: pointer; color: #ffe1ab; background: radial-gradient(circle, #84562b 19%, #3a1e14 22% 42%, #784527 45% 47%, #25120f 50%); animation: spin 9s linear infinite; }
#musicToggle[aria-pressed="true"] { box-shadow: 0 0 0 2px #c9864f77; }
@keyframes spin { to { transform: rotate(1turn); } }
.hero, .realm { max-width: 1920px; margin-inline: auto; --side-fade: linear-gradient(90deg, transparent, #000 5%, #000 95%, transparent); }
.hero { position: relative; z-index: 1; aspect-ratio: 1671 / 941; }
.poster, #hero-video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; mask-image: var(--side-fade), linear-gradient(to top, transparent, #000 4.2%); mask-composite: intersect; }
#hero-video { opacity: 0; pointer-events: none; }
.hero.playing #hero-video { opacity: 1; }
.hero-entries a { position: absolute; display: block; }
.hero-entries a { top: 71.4%; width: 5.1%; height: 24.4%; clip-path: polygon(50% 0, 100% 17%, 100% 83%, 50% 100%, 0 83%, 0 17%); }
.launcher { left: 40.7%; }
.support { left: 47.45%; }
.recharge { left: 54.2%; }
.hero-entries a:focus-visible { background: #ffe0a333; }
.realm { isolation: isolate; position: relative; padding: 42px 28px 80px; }
.realm::before { content: ""; position: absolute; z-index: -1; inset: -7vw 0 0; background: linear-gradient(transparent 77%, var(--ground)), url("realm.jpg") center top / cover no-repeat; mask-image: var(--side-fade), linear-gradient(transparent, #000 min(14vw, 250px)); mask-composite: intersect; }
.showcase { max-width: 1160px; margin-inline: auto; }
.showcase + .showcase { margin-top: 64px; }
.showcase h2 { width: min(88%, 510px); margin: 0 auto 25px; }
.showcase h2 img { width: 100%; }
.gear-grid, .battle-grid { display: grid; gap: 20px; }
.gear-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.battle-grid { max-width: 1020px; margin: auto; }
.gear-grid img, .battle-grid img { width: 100%; height: auto; background: #201511; border: 1px solid #9c6841; box-shadow: 0 5px 22px #0008; }
.site-footer { border-top: 1px solid #80502d; }
.footer-inner { max-width: 1160px; margin: auto; padding: 22px; display: flex; gap: 30px; align-items: center; font-size: 12px; }
.footer-inner img { width: 176px; }
.footer-inner p { margin: 3px 0; }
@media (max-width: 680px) {
  .header-inner { flex-wrap: wrap; gap: 7px 12px; padding-inline: 12px; }
  .brand-logo { width: 103px; }
  .brand-slogan { width: 94px; }
  .brand-icon { width: 30px; }
  .header-actions { order: 1; width: 100%; justify-content: flex-end; font-size: 13px; }
  .realm { padding: 26px 12px 42px; }
  .gear-grid, .battle-grid { gap: 9px; }
  .footer-inner { flex-direction: column; align-items: flex-start; gap: 12px; }
}
@media (prefers-reduced-motion: reduce) { #musicToggle { animation: none; } }

.battle-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); align-items: center; }
.brand-logo { width: auto; height: 52px; }
.footer-inner img { width: auto; height: 86px; }
.battle-grid[data-ready] { grid-template-columns: 1fr; }
.battle-grid[data-ready] img { grid-area: 1 / 1; }
.battle-grid[data-ready] img[hidden] { display: none; }
.gallery-controls { display: flex; justify-content: center; gap: 16px; }
.gallery-controls button { border: 1px solid var(--gold); background: #311811; color: var(--ink); padding: 7px 18px; cursor: pointer; }
.battle-grid[data-ready] .gallery-controls { grid-row: 2; }
.gear-wide { grid-column: 1 / -1; }
.battle-grid img { aspect-ratio: 1250 / 660; object-fit: contain; }
