:root {
  --deep: #031425;
  --navy: #052844;
  --sea: #0876a9;
  --aqua: #4df2ff;
  --foam: #e7fdff;
  --gold: #ffd561;
  --orange: #ff8a2a;
  --gold-line: rgba(255, 213, 97, 0.58);
  --hero-height: clamp(570px, calc(100vh - 64px), 730px);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-width: 320px;
  color: var(--foam);
  font-family: "Microsoft YaHei", "PingFang SC", "Noto Sans Thai", "Noto Sans", "Hiragino Sans GB", Arial, sans-serif;
  background:
    linear-gradient(180deg, rgba(2, 13, 28, 0.2), rgba(2, 13, 28, 0.95) 72%),
    url("./assets/longwang/ocean-background.webp") top center / 100% auto no-repeat,
    linear-gradient(180deg, #052f58, #031425 72%);
}

a {
  color: inherit;
  text-decoration: none;
}

main {
  position: relative;
  overflow: hidden;
}

main::before {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: var(--hero-height);
  z-index: 1;
  height: clamp(78px, 8vw, 130px);
  pointer-events: none;
  background:
    linear-gradient(180deg, rgba(4, 39, 70, 0.68), rgba(3, 20, 37, 0.88)),
    url("./assets/longwang/ocean-background.webp") center bottom / 100% auto no-repeat;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 30;
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 64px;
  padding: 10px clamp(16px, 4vw, 80px);
  background: rgba(2, 15, 29, 0.94);
  border-bottom: 1px solid rgba(77, 242, 255, 0.22);
  backdrop-filter: blur(12px);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
}

.brand-logo {
  display: block;
  width: 88px;
  height: auto;
  flex: 0 0 auto;
  filter: drop-shadow(0 0 14px rgba(77, 242, 255, 0.36));
}

.header-right {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 16px;
  min-width: 0;
}

.music-toggle {
  position: relative;
  display: inline-grid;
  place-items: center;
  flex: 0 0 auto;
  width: 42px;
  height: 42px;
  color: #fff7ba;
  border: 1px solid rgba(77, 242, 255, 0.36);
  border-radius: 50%;
  background:
    radial-gradient(circle at 35% 30%, rgba(255, 247, 186, 0.28), transparent 38%),
    rgba(255, 255, 255, 0.07);
  box-shadow: 0 0 18px rgba(77, 242, 255, 0.18);
  cursor: pointer;
}

.music-toggle:hover,
.music-toggle:focus-visible {
  border-color: rgba(255, 213, 97, 0.72);
  box-shadow: 0 0 22px rgba(255, 213, 97, 0.24);
}

.music-toggle::after {
  content: "";
  position: absolute;
  width: 24px;
  height: 2px;
  border-radius: 999px;
  background: #ff7d68;
  transform: rotate(-42deg);
  box-shadow: 0 0 8px rgba(255, 125, 104, 0.55);
  transition: opacity 0.2s ease;
}

.music-toggle.is-playing::after {
  opacity: 0;
}

.music-icon::before {
  content: "\266A";
  display: block;
  font-size: 24px;
  font-weight: 900;
  line-height: 1;
  transform: translateY(-1px);
  text-shadow: 0 0 10px rgba(255, 213, 97, 0.5);
}

.music-toggle.is-playing .music-icon::before {
  content: "\266B";
}

.language-menu {
  position: relative;
  z-index: 40;
  flex: 0 0 auto;
}

.language-current,
.language-list button {
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 152px;
  height: 42px;
  padding: 0 14px;
  color: #f5ffff;
  font: inherit;
  font-size: 15px;
  font-weight: 800;
  white-space: nowrap;
  border: 1px solid rgba(77, 242, 255, 0.28);
  cursor: pointer;
}

.language-current {
  justify-content: flex-start;
  background:
    linear-gradient(180deg, rgba(10, 86, 122, 0.52), rgba(2, 24, 45, 0.82)),
    rgba(255, 255, 255, 0.06);
  border-radius: 8px;
  box-shadow: 0 0 18px rgba(77, 242, 255, 0.16);
}

.language-current::after {
  content: "";
  width: 7px;
  height: 7px;
  margin-left: auto;
  border-right: 2px solid var(--gold);
  border-bottom: 2px solid var(--gold);
  transform: rotate(45deg) translateY(-2px);
}

.language-current[aria-expanded="true"]::after {
  transform: rotate(225deg) translate(-2px, -1px);
}

.language-list {
  position: absolute;
  top: calc(100% + 6px);
  right: 0;
  min-width: 152px;
  overflow: hidden;
  border: 1px solid rgba(77, 242, 255, 0.28);
  border-radius: 8px;
  background: rgba(2, 18, 35, 0.96);
  box-shadow: 0 14px 30px rgba(0, 8, 22, 0.46);
  backdrop-filter: blur(10px);
}

.language-list button {
  width: 100%;
  color: #f5ffff;
  background: transparent;
  border: 0;
}

.language-current-text,
.language-list button span:last-child {
  white-space: nowrap;
}

.language-list button:hover,
.language-list button:focus-visible,
.language-list button.is-active {
  color: #fff7ba;
  background: rgba(77, 242, 255, 0.12);
}

.language-flag {
  display: inline-grid;
  place-items: center;
  width: 26px;
  height: 26px;
  flex: 0 0 auto;
  overflow: hidden;
  border-radius: 50%;
  font-size: 24px;
  line-height: 1;
}

.coin-layer {
  position: absolute;
  inset: 0;
  z-index: 18;
  pointer-events: none;
}

.fall-coin {
  position: fixed;
  top: -120px;
  z-index: 28;
  width: clamp(54px, 4.8vw, 92px);
  height: auto;
  opacity: 0.9;
  image-rendering: auto;
  filter: drop-shadow(0 8px 10px rgba(0, 0, 0, 0.42));
  animation: coin-fall var(--coin-duration, 9s) linear infinite;
  animation-delay: var(--coin-delay, 0s);
  transform: translate3d(0, -120px, 0) rotate(var(--coin-rotate, 0deg));
}

.fall-coin-1 {
  left: 2vw;
  --coin-duration: 8.5s;
  --coin-delay: -1s;
  --coin-rotate: -18deg;
}

.fall-coin-2 {
  left: 7vw;
  --coin-duration: 11s;
  --coin-delay: -5.2s;
  --coin-rotate: 24deg;
}

.fall-coin-3 {
  left: 12vw;
  --coin-duration: 9.5s;
  --coin-delay: -7s;
  --coin-rotate: 8deg;
}

.fall-coin-4 {
  right: 2vw;
  --coin-duration: 10s;
  --coin-delay: -2.4s;
  --coin-rotate: 20deg;
}

.fall-coin-5 {
  right: 7vw;
  --coin-duration: 8.8s;
  --coin-delay: -6.2s;
  --coin-rotate: -14deg;
}

.fall-coin-6 {
  right: 12vw;
  --coin-duration: 12s;
  --coin-delay: -8.4s;
  --coin-rotate: 32deg;
}

.fall-coin-7 {
  left: 4vw;
  width: clamp(44px, 3.6vw, 72px);
  --coin-duration: 13s;
  --coin-delay: -10s;
  --coin-rotate: -32deg;
}

.fall-coin-8 {
  right: 4vw;
  width: clamp(44px, 3.6vw, 72px);
  --coin-duration: 13.5s;
  --coin-delay: -11.3s;
  --coin-rotate: 16deg;
}

@keyframes coin-fall {
  0% {
    transform: translate3d(0, -130px, 0) rotate(var(--coin-rotate, 0deg));
  }
  100% {
    transform: translate3d(0, calc(100vh + 160px), 0) rotate(calc(var(--coin-rotate, 0deg) + 360deg));
  }
}

.hero {
  position: relative;
  z-index: 2;
  min-height: var(--hero-height);
  overflow: hidden;
  isolation: isolate;
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  background:
    radial-gradient(circle at 50% 20%, rgba(255, 243, 166, 0.24), transparent 18%),
    radial-gradient(circle at 18% 42%, rgba(77, 242, 255, 0.18), transparent 25%),
    radial-gradient(circle at 80% 45%, rgba(166, 78, 255, 0.16), transparent 25%),
    linear-gradient(180deg, rgba(3, 20, 37, 0.08), rgba(3, 20, 37, 0.7) 86%, #031425);
  pointer-events: none;
}

.hero-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.hero-glow {
  position: absolute;
  left: 50%;
  bottom: -12%;
  z-index: 2;
  width: min(980px, 78vw);
  aspect-ratio: 1 / 0.35;
  transform: translateX(-50%);
  border-radius: 50%;
  background: radial-gradient(ellipse at center, rgba(77, 242, 255, 0.45), rgba(8, 118, 169, 0.14) 45%, transparent 70%);
  filter: blur(12px);
}

.hero-character {
  position: absolute;
  z-index: 4;
  user-select: none;
  pointer-events: none;
  filter: drop-shadow(0 24px 38px rgba(0, 5, 18, 0.5));
}

.hero-dragon {
  left: max(-24px, 2vw);
  bottom: 28px;
  width: clamp(310px, 34vw, 520px);
  z-index: 5;
}

.hero-wukong {
  left: 50%;
  bottom: -74px;
  width: clamp(500px, 51vw, 760px);
  transform: translateX(-48%);
}

.hero-mermaid {
  right: max(-24px, 2vw);
  bottom: 34px;
  width: clamp(310px, 33vw, 500px);
}

.hero-copy {
  position: relative;
  z-index: 8;
  display: grid;
  justify-items: center;
  width: min(850px, calc(100% - 34px));
  margin: 0 auto;
  padding: clamp(22px, 4.4vh, 46px) clamp(14px, 3vw, 34px) 12px;
  text-align: center;
  border-top: 1px solid rgba(255, 213, 97, 0.36);
  border-bottom: 1px solid rgba(77, 242, 255, 0.24);
  background:
    radial-gradient(ellipse at 50% 42%, rgba(3, 24, 44, 0.78), rgba(3, 24, 44, 0.38) 46%, transparent 72%),
    linear-gradient(90deg, transparent, rgba(2, 15, 29, 0.48), transparent);
}

.hero-copy::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: -18px;
  width: min(660px, 82%);
  height: 1px;
  transform: translateX(-50%);
  background: linear-gradient(90deg, transparent, rgba(255, 213, 97, 0.72), transparent);
}

.hero-copy p {
  margin: 0;
}

.hero-copy h1 {
  margin: 0;
  color: #fff6c6;
  font-size: clamp(58px, 8vw, 108px);
  line-height: 0.95;
  font-weight: 900;
  text-shadow:
    0 5px 0 #7c3300,
    0 10px 0 rgba(0, 24, 52, 0.68),
    0 0 34px rgba(255, 213, 97, 0.6),
    0 0 72px rgba(77, 242, 255, 0.28);
  overflow-wrap: anywhere;
}

.hero-copy .hero-sub {
  width: min(700px, 100%);
  margin-top: 30px;
  color: #eaffff;
  font-size: clamp(18px, 1.9vw, 24px);
  font-weight: 800;
  line-height: 1.35;
  text-shadow: 0 3px 10px rgba(0, 8, 22, 0.9);
  overflow-wrap: anywhere;
}

.hero-metrics {
  display: flex;
  justify-content: center;
  gap: 0;
  width: min(690px, 100%);
  margin-top: 12px;
  padding: 8px 14px;
  border-top: 1px solid rgba(255, 213, 97, 0.55);
  border-bottom: 1px solid rgba(77, 242, 255, 0.36);
  background: linear-gradient(90deg, transparent, rgba(1, 22, 42, 0.78), transparent);
}

.hero-metrics span {
  display: grid;
  flex: 1 1 0;
  min-width: 0;
  gap: 4px;
  padding: 0 clamp(8px, 1.6vw, 18px);
}

.hero-metrics span + span {
  border-left: 1px solid rgba(255, 255, 255, 0.18);
}

.hero-metrics b {
  color: #fff7ba;
  font-size: clamp(24px, 2.45vw, 34px);
  line-height: 1;
  text-shadow: 0 3px 0 rgba(0, 0, 0, 0.35);
  overflow-wrap: anywhere;
}

.hero-metrics small {
  color: #84f3ff;
  font-size: 13px;
  font-weight: 900;
  overflow-wrap: anywhere;
}

.hero-date {
  margin-top: 8px;
  width: min(760px, 100%);
  color: #ffffff;
  font-size: clamp(18px, 1.8vw, 24px);
  font-weight: 900;
  line-height: 1.35;
  text-shadow: 0 3px 12px rgba(0, 8, 22, 0.9);
  overflow-wrap: anywhere;
}

.section-panel,
.showcase,
.rules,
.tips {
  position: relative;
  z-index: 2;
  width: min(1180px, calc(100% - 28px));
  margin-inline: auto;
}

.section-panel {
  margin-top: clamp(24px, 3.8vw, 46px);
  padding: 6px 0 0;
}

.section-heading {
  margin-bottom: 24px;
  text-align: center;
}

.section-heading p {
  margin: 0 0 6px;
  color: var(--gold);
  font-size: 14px;
  font-weight: 900;
  text-transform: uppercase;
}

.section-heading h1,
.section-heading h2 {
  margin: 0;
  color: #fff;
  font-size: clamp(30px, 4vw, 48px);
  line-height: 1.16;
  text-shadow: 0 4px 0 rgba(0, 0, 0, 0.25), 0 0 18px rgba(77, 242, 255, 0.36);
  overflow-wrap: anywhere;
}

.benefit-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  border-top: 1px solid var(--gold-line);
  border-bottom: 1px solid rgba(77, 242, 255, 0.34);
  background: linear-gradient(90deg, transparent, rgba(2, 21, 39, 0.78), transparent);
}

.benefit {
  display: grid;
  gap: 8px;
  min-height: 104px;
  padding: 20px 18px;
  border-right: 1px solid rgba(255, 255, 255, 0.12);
}

.benefit:last-child {
  border-right: 0;
}

.benefit span,
.formula span {
  color: var(--gold);
  font-weight: 900;
  overflow-wrap: anywhere;
}

.benefit strong {
  color: #fff;
  font-size: clamp(22px, 2.4vw, 32px);
  line-height: 1.2;
  overflow-wrap: anywhere;
}

.formula {
  width: min(930px, 100%);
  margin: 26px auto 0;
  padding: 18px 24px;
  color: #f5ffff;
  text-align: center;
  border-top: 1px solid rgba(255, 213, 97, 0.52);
  border-bottom: 1px solid rgba(77, 242, 255, 0.34);
  background: linear-gradient(90deg, transparent, rgba(5, 114, 163, 0.62), transparent);
}

.formula strong {
  display: block;
  margin-top: 8px;
  color: #fff7b9;
  font-size: clamp(26px, 3vw, 40px);
  line-height: 1.22;
  text-shadow: 0 3px 0 rgba(0, 0, 0, 0.28);
  overflow-wrap: anywhere;
}

.formula p {
  margin: 8px 0 0;
  font-weight: 700;
  line-height: 1.55;
  overflow-wrap: anywhere;
}

.showcase {
  margin-top: clamp(42px, 5.6vw, 70px);
}

.boss-lineup {
  position: relative;
  display: grid;
  grid-template-columns:
    minmax(0, clamp(250px, 24vw, 350px))
    minmax(0, clamp(420px, 39vw, 560px))
    minmax(0, clamp(250px, 24vw, 350px));
  justify-content: center;
  align-items: end;
  min-height: clamp(330px, 33vw, 470px);
  margin-top: -22px;
  overflow: visible;
}

.boss-lineup::before {
  content: "";
  position: absolute;
  left: 50%;
  bottom: 20px;
  width: min(1000px, 84vw);
  height: 38%;
  transform: translateX(-50%);
  border-radius: 50%;
  background: radial-gradient(ellipse at center, rgba(77, 242, 255, 0.36), rgba(255, 213, 97, 0.1) 48%, transparent 72%);
  filter: blur(10px);
}

.boss {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  width: 100%;
  aspect-ratio: var(--boss-ratio);
  margin: 0;
  min-width: 0;
}

.boss img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center bottom;
  filter: drop-shadow(0 24px 34px rgba(0, 5, 18, 0.5));
}

.boss-mermaid {
  --boss-ratio: 607 / 574;
  transform: translateX(9%);
}

.boss-wukong {
  --boss-ratio: 869 / 583;
  z-index: 3;
  transform: scale(1.06);
}

.boss-dragon {
  --boss-ratio: 614 / 591;
  transform: translateX(-9%);
}

.weapon-run {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  grid-template-rows: auto clamp(108px, 9vw, 138px) minmax(34px, auto) minmax(60px, auto);
  align-items: center;
  justify-content: center;
  gap: clamp(18px, 4vw, 56px);
  width: min(880px, 100%);
  margin: 8px auto 0;
  padding: 18px 0 20px;
  border-top: 1px solid rgba(77, 242, 255, 0.28);
  border-bottom: 1px solid rgba(255, 213, 97, 0.25);
  background: linear-gradient(90deg, transparent, rgba(2, 18, 35, 0.56), transparent);
}

.weapon-run h3 {
  grid-column: 1 / -1;
  margin: 0 0 4px;
  color: #fff7ba;
  text-align: center;
  font-size: clamp(24px, 3vw, 40px);
  line-height: 1.15;
  text-shadow: 0 3px 0 rgba(0, 0, 0, 0.3), 0 0 22px rgba(255, 213, 97, 0.35);
  overflow-wrap: anywhere;
}

.weapon-run span {
  display: grid;
  grid-row: span 3;
  grid-template-rows: subgrid;
  justify-items: center;
  align-items: end;
  align-self: stretch;
  gap: 0;
  min-width: 0;
  padding: 0 clamp(8px, 1.4vw, 16px);
  color: #fff;
  text-align: center;
  font-weight: 900;
  overflow-wrap: anywhere;
}

.weapon-run img {
  align-self: end;
  width: clamp(74px, 8vw, 118px);
  height: clamp(74px, 8vw, 118px);
  object-fit: contain;
  filter: drop-shadow(0 14px 18px rgba(0, 4, 16, 0.52));
}

.weapon-run span:nth-of-type(2) img {
  width: clamp(88px, 9vw, 136px);
  height: clamp(88px, 9vw, 136px);
}

.weapon-run b {
  align-self: end;
  min-height: 1.2em;
  padding-top: 8px;
  font-size: clamp(17px, 1.7vw, 24px);
  line-height: 1.2;
}

.weapon-run small {
  display: block;
  align-self: start;
  max-width: 220px;
  padding-top: 6px;
  color: #bdf8ff;
  font-size: clamp(13px, 1.2vw, 16px);
  font-weight: 800;
  line-height: 1.45;
  text-shadow: 0 2px 8px rgba(0, 5, 18, 0.72);
  overflow-wrap: anywhere;
}

.rules {
  margin-top: clamp(46px, 6vw, 72px);
  padding: 30px 0 38px;
  border-top: 1px solid rgba(255, 213, 97, 0.4);
  border-bottom: 1px solid rgba(77, 242, 255, 0.28);
  background: linear-gradient(90deg, transparent, rgba(2, 18, 35, 0.72), transparent);
}

.rule-list {
  display: grid;
  gap: 14px;
  width: min(980px, calc(100% - 36px));
  margin: 0 auto;
  padding-left: 24px;
  color: #f3fbff;
  font-size: 19px;
  font-weight: 800;
  line-height: 1.65;
  overflow-wrap: anywhere;
}

.rule-list li::marker {
  color: var(--gold);
  font-weight: 900;
}

.tips {
  margin-top: 34px;
  margin-bottom: 56px;
  padding: 24px 0 28px;
  border-left: 0;
  background: linear-gradient(90deg, transparent, rgba(4, 88, 125, 0.34), transparent);
}

.tips h2 {
  width: min(980px, calc(100% - 36px));
  margin: 0 auto 12px;
  color: #fff;
  font-size: 28px;
  line-height: 1.25;
  overflow-wrap: anywhere;
}

.tips ul {
  display: grid;
  gap: 8px;
  width: min(980px, calc(100% - 36px));
  margin: 0 auto;
  padding-left: 22px;
  font-size: 17px;
  font-weight: 700;
  line-height: 1.7;
  overflow-wrap: anywhere;
}

.exchange-panel {
  width: min(980px, calc(100% - 36px));
  margin: 22px auto 0;
  padding: 18px clamp(12px, 2vw, 22px);
  border-top: 1px solid rgba(255, 213, 97, 0.45);
  border-bottom: 1px solid rgba(77, 242, 255, 0.32);
  background: linear-gradient(90deg, transparent, rgba(2, 21, 39, 0.78), transparent);
}

.exchange-head {
  display: flex;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 8px 16px;
  margin-bottom: 12px;
}

.exchange-head span {
  color: var(--gold);
  font-size: 13px;
  font-weight: 900;
  text-transform: uppercase;
}

.exchange-head strong {
  color: #fff;
  font-size: clamp(22px, 2.4vw, 30px);
  line-height: 1.2;
  text-shadow: 0 3px 0 rgba(0, 0, 0, 0.28);
}

.exchange-head p {
  margin: 0 0 0 auto;
  color: #bdf8ff;
  font-size: 14px;
  font-weight: 800;
}

.exchange-table-wrap {
  max-height: 340px;
  overflow: auto;
  border: 1px solid rgba(77, 242, 255, 0.2);
  border-radius: 8px;
  background: rgba(1, 14, 28, 0.52);
}

.exchange-table {
  width: 100%;
  min-width: 420px;
  color: #f5ffff;
  border-collapse: collapse;
  font-size: 14px;
  line-height: 1.35;
}

.exchange-table th,
.exchange-table td {
  padding: 9px 14px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.exchange-table th {
  position: sticky;
  top: 0;
  z-index: 1;
  color: var(--gold);
  text-align: left;
  background: rgba(3, 28, 51, 0.96);
}

.exchange-table th:last-child,
.exchange-table td:last-child {
  text-align: right;
}

.exchange-table td:last-child {
  color: #fff7ba;
  font-variant-numeric: tabular-nums;
  font-weight: 800;
}

.exchange-note {
  margin: 10px 0 0;
  color: rgba(217, 251, 255, 0.78);
  font-size: 14px;
  line-height: 1.55;
}

.site-footer {
  display: flex;
  justify-content: center;
  gap: 18px;
  padding: 22px 16px 34px;
  color: rgba(217, 251, 255, 0.82);
  background: rgba(2, 14, 28, 0.72);
}

.site-footer span,
.site-footer a {
  overflow-wrap: anywhere;
}

.site-footer a {
  color: var(--gold);
  font-weight: 800;
}

@media (max-width: 1020px) {
  main::before {
    display: none;
  }

  .site-header {
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
    position: relative;
  }

  .header-right {
    display: contents;
  }

  .brand-logo {
    width: 78px;
  }

  .music-toggle {
    order: 2;
    margin-left: auto;
  }

  .language-menu {
    order: 3;
    margin-left: 0;
  }

  .hero {
    min-height: 660px;
  }

  .hero-copy {
    padding-top: 28px;
  }

  .hero-dragon {
    width: 330px;
  }

  .hero-wukong {
    width: 520px;
  }

  .hero-mermaid {
    width: 330px;
  }

  .benefit-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .benefit:nth-child(2) {
    border-right: 0;
  }

  .benefit:nth-child(n + 3) {
    border-top: 1px solid rgba(255, 255, 255, 0.12);
  }

  .boss-lineup {
    display: grid;
    grid-template-columns: 1fr 1fr;
    grid-template-areas:
      "wukong wukong"
      "dragon mermaid";
    justify-items: center;
    align-items: end;
    width: min(560px, 100%);
    gap: 0;
    min-height: 0;
    margin: -16px auto 0;
  }

  .boss-mermaid {
    grid-area: mermaid;
    width: min(260px, 45vw);
    transform: translateX(-4%);
  }

  .boss-wukong {
    grid-area: wukong;
    width: min(520px, 88vw);
    transform: scale(1);
    z-index: 3;
  }

  .boss-dragon {
    grid-area: dragon;
    width: min(260px, 45vw);
    transform: translateX(4%);
  }
}

@media (max-width: 640px) {
  .fall-coin {
    width: 48px;
    opacity: 0.68;
  }

  .fall-coin-2,
  .fall-coin-3,
  .fall-coin-6,
  .fall-coin-7 {
    display: none;
  }

  .music-toggle {
    width: 38px;
    height: 38px;
  }

  .music-icon::before {
    font-size: 22px;
  }

  .language-current,
  .language-list button {
    min-width: 144px;
    height: 38px;
    padding-inline: 10px;
    font-size: 14px;
  }

  .language-list {
    right: 0;
  }

  .language-flag {
    width: 24px;
    height: 24px;
    font-size: 22px;
  }

  .hero {
    min-height: 600px;
  }

  .hero-copy {
    width: min(100% - 24px, 520px);
    padding-top: 22px;
  }

  .hero-copy h1 {
    font-size: clamp(48px, 16vw, 72px);
  }

  .hero-copy .hero-sub {
    font-size: 17px;
    margin-top: 22px;
  }

  .hero-metrics {
    gap: 8px;
    padding: 10px 8px;
  }

  .hero-metrics b {
    font-size: 22px;
  }

  .hero-metrics small {
    font-size: 11px;
  }

  .hero-dragon {
    left: -74px;
    bottom: -10px;
    width: 270px;
  }

  .hero-wukong {
    bottom: -12px;
    width: 390px;
  }

  .hero-mermaid {
    right: -78px;
    bottom: 4px;
    width: 260px;
  }

  .benefit-grid {
    grid-template-columns: 1fr;
  }

  .benefit,
  .benefit:nth-child(2) {
    border-right: 0;
  }

  .benefit + .benefit {
    border-top: 1px solid rgba(255, 255, 255, 0.12);
  }

  .benefit {
    min-height: 86px;
    padding: 16px 10px;
  }

  .formula {
    padding-inline: 12px;
  }

  .exchange-panel {
    width: min(100% - 24px, 980px);
    padding: 14px 10px;
  }

  .exchange-head {
    display: grid;
    gap: 5px;
  }

  .exchange-head p {
    margin-left: 0;
  }

  .exchange-table-wrap {
    max-height: 300px;
  }

  .exchange-table {
    min-width: 330px;
    font-size: 13px;
  }

  .exchange-table th,
  .exchange-table td {
    padding: 8px 10px;
  }

  .weapon-run {
    align-items: center;
    grid-template-columns: 1fr;
    grid-template-rows: auto;
    gap: 14px;
  }

  .weapon-run span {
    grid-row: auto;
    grid-template-rows: auto auto auto;
    gap: 6px;
    width: min(300px, 100%);
    margin-inline: auto;
  }

  .weapon-run b,
  .weapon-run small {
    padding-top: 0;
  }

  .boss-lineup {
    width: min(390px, 100%);
    margin-top: -10px;
  }

  .boss-wukong {
    width: min(390px, 94vw);
  }

  .boss-mermaid,
  .boss-dragon {
    width: min(190px, 46vw);
  }

  .rule-list {
    font-size: 16px;
    line-height: 1.6;
  }

  .site-footer {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }
}
