.header-download {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .45rem;
  min-height: 44px;
  padding: 0 .85rem;
  border-radius: 4px;
  background: var(--gold);
  color: #241a0d;
  font-size: .95rem;
  font-weight: 700;
  text-decoration: none;
}
.header-download:hover { background: #ffe4ad; color: #241a0d; }
.hero .copy { padding-block: clamp(46px, 5.8vw, 85px); }
.hero .beta-status {
  display: flex;
  align-items: center;
  gap: .65rem;
  margin: 0 0 12px;
  color: #ffde9e;
  font-size: .94rem;
  font-weight: 700;
}
.beta-status::before { content: ""; width: 30px; height: 2px; background: currentColor; }
.hero h1 { font-size: clamp(48px, 5.5vw, 80px); line-height: 1.04; }
.hero .routes { margin-top: clamp(18px, 2.3vw, 30px); }
.hero .pc-download small { color: #49351e; }
.hero .android-help { max-width: 455px; font-size: .95rem; color: #e7e0d4; margin: 10px 0 0; }
@media (max-width: 1230px) {
  header nav { display: none; }
  .tools .mobile-menu { display: block; }
  .tools .login { display: none; }
}
@media (max-width: 780px) {
  .hero .copy { padding-block: clamp(62px, 16vw, 108px) 28px; }
  .hero h1 { font-size: clamp(37px, 8.5vw, 56px); }
  .hero:after { background: linear-gradient(180deg, #0e14173d, #0e1417c9 92px, #0e1417ed 200px, #0e1417 295px); }
}
@media (max-width: 520px) {
  header .inner { gap: 6px; padding-inline: 12px; }
  .brand { gap: 0; }
  .brand img:first-child { display: none; }
  .brand img:last-child { width: clamp(64px, 18vw, 92px); }
  .tools { gap: 8px; }
  .header-download { gap: 4px; padding-inline: 8px; font-size: 14px; }
  .tools summary { font-size: 13px; }
}


.duel-aura {
  position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background: radial-gradient(ellipse 14% 45% at 61% 40%, #f096394c, transparent),
              radial-gradient(ellipse 23% 50% at 87% 40%, #48b9ff55, transparent);
  mix-blend-mode: screen;
}
@media (prefers-reduced-motion: no-preference) {
  .duel-aura { animation: duel-light 6s ease-in-out infinite alternate; }
  @keyframes duel-light { from { opacity: .8; } to { opacity: 1; } }
}
.hero .routes {
  width: min(540px,100%); grid-auto-rows: 1fr; gap: 12px;
}
.hero .routes .route {
  --tint: #b4deff; --edge: #79b9ec; --light: #305774; --dark: #10283b;
  width: 100%; display: grid; grid-template-columns: minmax(0,1fr) clamp(86px,12vw,148px);
  align-items: center; gap: clamp(10px,2vw,24px); padding: 17px clamp(12px,2vw,24px);
  min-height: 118px; color: white; text-decoration: none;
  border: 1px solid var(--edge); border-left: 4px solid var(--edge); border-radius: 9px;
  background: radial-gradient(ellipse at right center,var(--light),transparent 69%),linear-gradient(105deg,var(--dark),#10181e);
  box-shadow: inset 0 1px 0 #ffffff19, 0 5px 18px #0005;
}
.hero .routes .play-download { --tint: #b6f3d5; --edge: #79d6ab; --light: #326c52; --dark: #11392e; }
.hero .routes .route:hover { border-color: white; color: white; filter: brightness(1.12); }
.hero .routes .route:focus-visible { outline: 3px solid white; outline-offset: 3px; }
.hero .routes .route strong { font-size: clamp(21px,2vw,28px); line-height: 1.1; font-weight: 700; }
.hero .route .route-label small { color: var(--tint); margin-top: 6px; }
.hero .route .game-device {
  display: block; position: relative; width: 100%; background: #0a1014;
  border: 1px solid #a4b3bd; box-shadow: 0 5px 12px #0008;
}
.game-device > img:first-child { display: block; width: 100%; height: 100%; object-fit: cover; }
.game-device.monitor { padding: 3px 3px 5px; border-radius: 4px; aspect-ratio: 16/9; margin-bottom: 9px; }
.monitor::after { content: ""; position: absolute; left: 34%; right: 34%; top: 100%; height: 10px; background: linear-gradient(#465461,#bbc9d1); clip-path: polygon(34% 0,66% 0,69% 70%,98% 85%,100% 100%,0 100%,2% 85%,31% 70%); }
.game-device.phone { padding: 3px 5px; border-radius: 11px; aspect-ratio: 2.03; transform: rotate(-3deg); }
.phone > img:first-child { border-radius: 7px; }
.phone .store-mark { position: absolute; right: -3px; bottom: -8px; width: 25px; height: 25px; padding: 4px; background: #fafafa; border-radius: 7px; box-shadow: 0 2px 5px #0008; }
@media (max-width: 780px) {
  .duel-aura { bottom: auto; height: 220px; }
  .hero .routes .route { min-height: 102px; }
}


.duel-aura { overflow: hidden; z-index: 0; }
.hero > .inner { position: relative; z-index: 1; }
.battle-ash { position: absolute; inset: 0 0 0 40%; overflow: hidden; }
.battle-ash i {
  position: absolute; top: var(--y); left: var(--x);
  width: 2.3px; height: 3px; border-radius: 60%; background: white;
  box-shadow: 0 0 2px 1px white, 0 0 5px 2px #b8ebff, 0 0 10px 2px #509dffbd;
}
.battle-ash i:nth-child(3n+1) { width: 2px; height: 4px; }
.battle-ash i:nth-child(4n) { width: 1.5px; height: 2px; }
.battle-ash i::after {
  content: ""; position: absolute; width: 14px; height: 14px; left: 50%; top: 50%;
  transform: translate(-50%,-50%) scale(.65); opacity: .25;
  background: radial-gradient(circle, white 0 9%, #c4f3ff 17%, transparent 47%),
    radial-gradient(ellipse 50% 8%, #fff, transparent), radial-gradient(ellipse 8% 50%, #f0fbff, transparent);
}
@media (prefers-reduced-motion: no-preference) {
  .battle-ash i { animation: mote-hover calc(var(--time) * .78) var(--delay) ease-in-out infinite; }
  .battle-ash i::after { animation: mote-glint calc(var(--time) * .51) var(--delay) ease-in-out infinite; }
  @keyframes mote-hover {
    0%, 100% { transform: translate(0,0); }
    27% { transform: translate(var(--drift),-12px); }
    61% { transform: translate(calc(var(--drift) * -.68),9px); }
    82% { transform: translate(-5px,11px); }
  }
  @keyframes mote-glint {
    0%, 55%, 100% { opacity: .1; transform: translate(-50%,-50%) scale(.58); }
    72% { opacity: 1; transform: translate(-50%,-50%) scale(1.3); }
    83% { opacity: .35; transform: translate(-50%,-50%) scale(.8); }
  }
}
@media (max-width: 780px) {
  .battle-ash { left: 18%; }
  .battle-ash i:nth-child(n+24) { display: none; }
}
.battle-ash i:nth-child(1) { --x: 17.0%; --y: 22%; --time: 9.6s; --delay: -9.0s; --drift: -21px; }
.battle-ash i:nth-child(2) { --x: 9.8%; --y: 68%; --time: 13.6s; --delay: -2.3s; --drift: 21px; }
.battle-ash i:nth-child(3) { --x: 34.2%; --y: 41%; --time: 12.8s; --delay: -1.9s; --drift: 17px; }
.battle-ash i:nth-child(4) { --x: 49.1%; --y: 13%; --time: 8.3s; --delay: -2.4s; --drift: 18px; }
.battle-ash i:nth-child(5) { --x: 70.2%; --y: 57%; --time: 9.0s; --delay: -2.2s; --drift: -9px; }
.battle-ash i:nth-child(6) { --x: 23.8%; --y: 89%; --time: 8.2s; --delay: -1.2s; --drift: 9px; }
.battle-ash i:nth-child(7) { --x: 71.7%; --y: 31%; --time: 14.2s; --delay: -13.0s; --drift: 9px; }
.battle-ash i:nth-child(8) { --x: 66.5%; --y: 76%; --time: 10.8s; --delay: -5.4s; --drift: -16px; }
.battle-ash i:nth-child(9) { --x: 0.5%; --y: 47%; --time: 8.9s; --delay: -4.6s; --drift: 22px; }
.battle-ash i:nth-child(10) { --x: 26.3%; --y: 9%; --time: 8.8s; --delay: -2.6s; --drift: 10px; }
.battle-ash i:nth-child(11) { --x: 52.3%; --y: 62%; --time: 8.3s; --delay: -3.0s; --drift: 14px; }
.battle-ash i:nth-child(12) { --x: 59.0%; --y: 83%; --time: 13.0s; --delay: -9.2s; --drift: -10px; }
.battle-ash i:nth-child(13) { --x: 85.4%; --y: 25%; --time: 8.2s; --delay: -4.2s; --drift: 13px; }
.battle-ash i:nth-child(14) { --x: 97.4%; --y: 69%; --time: 14.8s; --delay: -9.2s; --drift: 18px; }
.battle-ash i:nth-child(15) { --x: 75.2%; --y: 43%; --time: 8.1s; --delay: -3.8s; --drift: 23px; }
.battle-ash i:nth-child(16) { --x: 5.1%; --y: 16%; --time: 13.5s; --delay: -12.2s; --drift: 8px; }
.battle-ash i:nth-child(17) { --x: 43.3%; --y: 54%; --time: 13.4s; --delay: -8.4s; --drift: -19px; }
.battle-ash i:nth-child(18) { --x: 32.4%; --y: 73%; --time: 11.8s; --delay: -2.0s; --drift: -23px; }
.battle-ash i:nth-child(19) { --x: 16.6%; --y: 35%; --time: 14.4s; --delay: -7.2s; --drift: 13px; }
.battle-ash i:nth-child(20) { --x: 93.8%; --y: 49%; --time: 9.4s; --delay: -7.0s; --drift: -19px; }
.battle-ash i:nth-child(21) { --x: 90.6%; --y: 87%; --time: 9.3s; --delay: -6.9s; --drift: 9px; }
.battle-ash i:nth-child(22) { --x: 54.2%; --y: 34%; --time: 14.1s; --delay: -7.8s; --drift: -12px; }
.battle-ash i:nth-child(23) { --x: 79.7%; --y: 12%; --time: 12.0s; --delay: -6.6s; --drift: 23px; }
.battle-ash i:nth-child(24) { --x: 40.0%; --y: 92%; --time: 13.1s; --delay: -8.9s; --drift: -18px; }
.battle-ash i:nth-child(25) { --x: 17%; --y: 27%; --time: 8.5s; --delay: -7.2s; --drift: -22px; }
.battle-ash i:nth-child(26) { --x: 58%; --y: 56%; --time: 10.2s; --delay: -1.6s; --drift: 23px; }
.battle-ash i:nth-child(27) { --x: 7%; --y: 85%; --time: 11.9s; --delay: -3.0s; --drift: -24px; }
.battle-ash i:nth-child(28) { --x: 48%; --y: 26%; --time: 13.6s; --delay: -4.4s; --drift: 25px; }
.battle-ash i:nth-child(29) { --x: 89%; --y: 55%; --time: 9.3s; --delay: -5.7s; --drift: -26px; }
.battle-ash i:nth-child(30) { --x: 38%; --y: 84%; --time: 11.0s; --delay: -7.1s; --drift: 12px; }
.battle-ash i:nth-child(31) { --x: 79%; --y: 25%; --time: 12.7s; --delay: -1.5s; --drift: -13px; }
.battle-ash i:nth-child(32) { --x: 28%; --y: 54%; --time: 8.4s; --delay: -2.8s; --drift: 14px; }
.battle-ash i:nth-child(33) { --x: 69%; --y: 83%; --time: 10.1s; --delay: -4.2s; --drift: -15px; }
.battle-ash i:nth-child(34) { --x: 18%; --y: 24%; --time: 11.8s; --delay: -5.6s; --drift: 16px; }
.battle-ash i:nth-child(35) { --x: 59%; --y: 53%; --time: 13.5s; --delay: -7.0s; --drift: -17px; }
.battle-ash i:nth-child(36) { --x: 8%; --y: 82%; --time: 9.2s; --delay: -1.3s; --drift: 18px; }
.battle-ash i:nth-child(37) { --x: 49%; --y: 23%; --time: 10.9s; --delay: -2.7s; --drift: -19px; }
.battle-ash i:nth-child(38) { --x: 90%; --y: 52%; --time: 12.6s; --delay: -4.1s; --drift: 20px; }
