* { box-sizing: border-box; }
body { margin: 0; background: #120b09; color: #f8e8d3; font-family: "Microsoft YaHei", system-ui, sans-serif; }
img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
a:focus-visible { outline: 2px solid #dc9b42; outline-offset: 3px; }
.top { background: #fff; color: #2b2522; border-bottom: 2px solid #ac6228; }
.top-inner { width: min(1400px,100%); min-height: 66px; padding: 7px 26px; margin: auto; display: flex; justify-content: space-between; align-items: center; gap: 14px; }
.brand, .top nav { display: flex; align-items: center; gap: 14px; }
.brand .logo { width: 146px; }
.brand .slogan { width: 117px; }
.brand .icon { width: 39px; height: 39px; object-fit: contain; }
.top nav a { min-width: 76px; text-align: center; font-size: 14px; font-weight: 700; }
.top nav small { display: block; margin-top: 2px; color: #765d4e; font-size: 9px; }
main { max-width: 2048px; margin: auto; }
.hero { position: relative; isolation: isolate; }
.hero-scene { width: 100%; height: auto; }
.hero::after { content: ""; position: absolute; inset: auto 0 0; height: 2.5%; background: linear-gradient(transparent,#180e0a); pointer-events: none; }
.hero-links { position: absolute; inset: 90.02% 0 auto; display: flex; justify-content: center; gap: 2%; z-index: 1; }
.hero-links a { display: block; width: 17.87%; }
.hero-links img { width: 100%; height: auto; }
.mobile-logo, .mobile-intro { display: none; }
.sr-only { position: absolute; clip-path: inset(50%); width: 1px; height: 1px; overflow: hidden; }
.showcase { background: linear-gradient(#180e0a,transparent 190px, transparent 75%, #130b08), url("world.webp") center top / 100% 100% no-repeat, #180f0c; padding: clamp(28px,4vw,62px) clamp(16px,5vw,90px) 72px; }
.display h2 { margin: 0 auto clamp(24px,3vw,46px); width: min(540px,82%); }
.display h2 img { width: 100%; }
.gallery { padding: 0; margin: 0 auto; max-width: 1420px; list-style: none; display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); align-items: start; gap: 24px; }
.gallery li { background: linear-gradient(155deg,#d99850 0%,#492014 22%,#a14a26 56%,#361a12 85%,#da9550 100%); padding: 3px; border: 1px solid #65391e; box-shadow: 0 9px 22px #0009; }
.gallery img { width: 100%; height: auto; background: #160e0b; border: 1px solid #1b0e08; }
footer { border-top: 1px solid #653719; display: flex; align-items: center; justify-content: center; gap: 28px; padding: 22px 20px; color: #dfc4ad; font-size: 12px; line-height: 1.6; }
footer img { width: clamp(88px,14vw,178px); flex-shrink: 0; }
footer p { margin: 3px 0; }
@media (max-width: 900px) { .gallery { grid-template-columns: repeat(2,minmax(0,1fr)); } }
@media (max-width: 700px) {
  .top-inner { flex-direction: column; gap: 8px; padding: 9px 8px; }
  .top nav { gap: clamp(5px,2vw,13px); }
  .top nav a { min-width: 64px; font-size: 12px; }
  .brand .logo { width: 112px; }
  .brand .slogan { width: 91px; }
  .brand .icon { width: 31px; height: 31px; }
  .mobile-logo { display: block; position: absolute; top: 4%; left: 4%; width: 51%; }
  .mobile-intro { display: block; width: 100%; }
  .hero-intro { position: relative; z-index: 1; margin-top: -4%; padding: 0 6px; }
  .hero-links { position: relative; inset: auto; padding: 12px 5px 14px; gap: 1%; }
  .hero-links a { width: 32.5%; }
  .hero-links img { min-height: 32px; object-fit: fill; }
  .showcase { padding-top: 24px; }
}
@media (max-width: 600px) { .gallery { grid-template-columns: minmax(0,1fr); max-width: 480px; } }

.display + .display { margin-top: clamp(40px,6vw,84px); }
.gallery a { display: block; }
.combat .gallery { width: min(100%,790px); grid-template-columns: minmax(0,1fr); }
.attributes .gallery { width: min(100%,1020px); grid-template-columns: repeat(2,minmax(0,1fr)); }
@media (max-width: 600px) { .attributes .gallery { grid-template-columns: minmax(0,1fr); } }
.hero-motion { visibility: hidden; position: absolute; inset: 0; overflow: hidden; pointer-events: none; }
.hero-motion video { display: block; width: 100%; height: auto; }
.hero.is-playing .hero-motion { visibility: visible; }
@media (min-width: 701px) {
  .hero.is-playing .hero-links img { opacity: 0; }
}
@media (max-width: 700px) {
  .hero.is-playing .hero-motion { position: relative; aspect-ratio: 2048 / 715; }
  .hero.is-playing picture, .hero.is-playing .mobile-logo { display: none; }
  .hero.is-playing .hero-intro { margin-top: -1%; }
}
/* Align the desktop scene edges across the video and the showcase. */
@media (min-width: 1100px) {
  main {
    --scene-edge: clamp(36px, 4.7vw, 104px);
    mask-image: linear-gradient(to right, transparent, #000 var(--scene-edge),
      #000 calc(100% - var(--scene-edge)), transparent);
  }
}
