/* 页面主色 */
:root { --night: #110d12; --mist: #93aaaa; --gold: #a75c52; }
* { box-sizing: border-box; }
body { margin: 0; background: var(--night); color: #f4ead5; 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 #edba77; outline-offset: 4px; }
.site-header { color: #293942; }
/* 白色导航与唱片 */
.site-header { background: #fff; border-bottom: 1px solid var(--gold); }
.header-inner { max-width: 1520px; min-height: 64px; margin: auto; padding: 6px 24px; display: flex; gap: 24px; align-items: center; }
.brand { margin-right: auto; display: flex; align-items: center; gap: 10px; }
.brand-logo { width: 140px; }
.brand-slogan { width: 125px; }
.brand-icon { width: 42px; }
.header-actions { display: flex; gap: 22px; align-items: center; text-align: center; }
.header-actions small { display: block; font-size: 10px; }
#MusicToggleButton {
  cursor: pointer;
  flex: 0 0 36px;
  height: 36px;
  border: 1px solid var(--gold);
  border-radius: 50%;
  color: #ffe1ab;
  background: radial-gradient(circle, #51708b 20%, #152437 22% 42%, #41607a 44% 47%, #152437 50%);
  animation: spin 9s linear infinite;
}
#MusicToggleButton[aria-pressed="true"] { box-shadow: 0 0 0 2px #b2764e66; }
@keyframes spin { to { transform: rotate(1turn); } }



.hero, .realm { max-width: 1920px; margin-inline: auto; --edge: linear-gradient(90deg, transparent, black 7%, black 93%, transparent); }
.hero { position: relative; z-index: 1; aspect-ratio: 16 / 9; }
.poster, #hero-video {
  position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover;
  mask-image: var(--edge), linear-gradient(to top, transparent, black 3%);
  mask-composite: intersect;
}
#hero-video { opacity: 0; pointer-events: none; }
.hero.playing #hero-video { opacity: 1; }
.hero-entries {
  position: absolute; inset: 85.5% 29.4% 2.5% 29.4%;
  display: grid; grid-template-columns: repeat(2, 1fr); gap: 6%;
}
.realm { position: relative; isolation: isolate; margin-top: -2vw; padding: 42px 24px 72px; }
.realm::before {
  content: ""; position: absolute; inset: -9vw 0 0; z-index: -1;
  background: linear-gradient(transparent 72%, var(--night)), url("realm.jpg") center top / cover no-repeat;
  mask-image: var(--edge), linear-gradient(transparent, black clamp(65px, 12vw, 220px));
  mask-composite: intersect;
}
.showcase { max-width: 1158px; margin-inline: auto; }
.showcase + .showcase { margin-top: 54px; }
.showcase h2 { width: min(88%, 520px); margin: 0 auto 22px; }
.showcase h2 img { width: 100%; }
.gear-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }
.battle-grid { display: grid; gap: 22px; }
.gear-grid img, .battle-grid img { width: 100%; height: auto; border: 1px solid #ae935d; box-shadow: 0 4px 18px #0008; }





.site-footer { border-top: 1px solid #a78c56; }
.footer-inner { max-width: 1158px; margin: auto; padding: 22px; display: flex; align-items: center; gap: 36px; font-size: 12px; }
.footer-inner img { width: 188px; }
.footer-inner p { margin: 4px 0; }
.footer-inner a { text-decoration: underline; }
@media (max-width: 760px) {
  .header-inner { flex-wrap: wrap; gap: 6px 12px; padding-inline: 12px; }
  .brand-logo { width: 112px; } .brand-slogan { width: 98px; } .brand-icon { width: 31px; }
  .header-actions { order: 1; width: 100%; justify-content: space-between; gap: 4px; font-size: 12px; }
  .header-actions small { font-size: 8px; }
  .realm { padding: 24px 12px 40px; } .gear-grid { gap: 6px; }

  .footer-inner { flex-direction: column; align-items: flex-start; gap: 12px; }
}
@media (prefers-reduced-motion: reduce) { #MusicToggleButton { animation: none; } }

.gear-carousel { display: grid; grid-template-columns: auto minmax(0, 400px) auto; justify-content: center; align-items: center; gap: clamp(6px, 3vw, 42px); }
.gear-carousel button { width: clamp(32px, 4vw, 52px); aspect-ratio: 1; padding: 0; border: 1px solid #a75c52; border-radius: 50%; background: #26171d; color: #ffe5d2; font-size: 30px; cursor: pointer; }
.gear-stage { aspect-ratio: 380 / 506; background: #160e12; border: 1px solid #a75c52; }
.gear-stage img { width: 100%; height: auto; }
.gear-stage img[hidden] { display: none; }
.loot-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.loot-grid img { width: 100%; height: auto; }
