:root {
  color-scheme: dark;
  font-family: "Microsoft YaHei", "PingFang SC", "Segoe UI", sans-serif;
  --text: #f8fbff;
  --muted: rgba(248, 251, 255, 0.72);
  --line: rgba(255, 255, 255, 0.18);
  --gold: #f2c46f;
  --jade: #65dfc6;
  --blue: #87d7ff;
}

* {
  box-sizing: border-box;
}

html,
body {
  width: 100%;
  min-height: 100%;
  margin: 0;
}

body {
  overflow: hidden;
  background: #05070c;
  color: var(--text);
}

.portal {
  position: relative;
  isolation: isolate;
  display: flex;
  width: 100vw;
  height: 100vh;
  min-height: 620px;
  overflow: hidden;
  background: #05070c;
}

.game-panel {
  position: relative;
  isolation: isolate;
  flex: 1 1 50%;
  min-width: 0;
  overflow: hidden;
  color: inherit;
  text-decoration: none;
  transition: flex 720ms cubic-bezier(0.18, 0.9, 0.18, 1), filter 420ms ease;
}

.portal:has(.game-panel:hover) .game-panel:not(:hover) {
  flex-basis: 42%;
  filter: saturate(0.72) brightness(0.72);
}

.portal:has(.game-panel:hover) .game-panel:hover {
  flex-basis: 58%;
}

.panel-bg,
.panel-shine {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.panel-bg {
  z-index: -3;
  background-position: center;
  background-size: cover;
  transform: scale(1.045) translate3d(var(--mx, 0), var(--my, 0), 0);
  transition: transform 700ms cubic-bezier(0.18, 0.9, 0.18, 1), opacity 420ms ease;
}

.dahua .panel-bg {
  background-image: url("./assets/dahua-bg.png");
}

.menghuan .panel-bg {
  background-image: url("./assets/menghuan-bg.png");
}

.game-panel::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -2;
  background:
    radial-gradient(circle at var(--x, 50%) var(--y, 50%), rgba(255, 255, 255, 0.28), transparent 0 23%),
    linear-gradient(90deg, rgba(2, 5, 10, 0.72), rgba(2, 5, 10, 0.26) 46%, rgba(2, 5, 10, 0.75)),
    linear-gradient(180deg, rgba(1, 3, 8, 0.22), rgba(1, 3, 8, 0.9));
  opacity: 0.92;
  transition: opacity 360ms ease;
}

.game-panel::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    linear-gradient(120deg, transparent 15%, rgba(255, 255, 255, 0.12), transparent 34%) -42vw 0 / 52vw 100% no-repeat;
  opacity: 0;
  transition: background-position 900ms ease, opacity 360ms ease;
}

.game-panel:hover::before {
  opacity: 0.72;
}

.game-panel:hover::after {
  opacity: 1;
  background-position: 120% 0;
}

.panel-shine {
  z-index: -1;
  opacity: 0.9;
  mix-blend-mode: screen;
}

.dahua .panel-shine {
  background:
    radial-gradient(circle at 22% 72%, rgba(242, 196, 111, 0.34), transparent 0 26%),
    radial-gradient(circle at 70% 20%, rgba(101, 223, 198, 0.22), transparent 0 30%);
}

.menghuan .panel-shine {
  background:
    radial-gradient(circle at 72% 68%, rgba(135, 215, 255, 0.32), transparent 0 28%),
    radial-gradient(circle at 28% 22%, rgba(242, 196, 111, 0.2), transparent 0 28%);
}

.panel-content {
  position: absolute;
  z-index: 12;
  left: clamp(28px, 7vw, 96px);
  right: clamp(28px, 6vw, 84px);
  bottom: clamp(46px, 10vh, 120px);
  transform: translateY(20px);
  transition: transform 520ms ease;
}

.game-panel:hover .panel-content {
  transform: translateY(0);
}

.game-mark {
  display: grid;
  width: 82px;
  height: 82px;
  place-items: center;
  margin-bottom: 28px;
  border: 1px solid rgba(255, 255, 255, 0.34);
  border-radius: 24px;
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.22), rgba(255, 255, 255, 0.04)),
    rgba(10, 14, 22, 0.48);
  box-shadow: 0 26px 90px rgba(0, 0, 0, 0.42), inset 0 1px 0 rgba(255, 255, 255, 0.28);
  color: #fff;
  font-size: 28px;
  font-weight: 800;
  letter-spacing: 0;
  backdrop-filter: blur(16px);
}

.game-mark.large {
  width: 98px;
  height: 98px;
  font-size: 34px;
}

.game-mark img {
  display: block;
  width: 68%;
  height: 68%;
  object-fit: contain;
  filter: drop-shadow(0 0 16px rgba(255, 226, 168, 0.48));
}

.game-mark.large img {
  width: 70%;
  height: 70%;
}

.dahua .game-mark {
  color: #ffe2a8;
  text-shadow: 0 0 22px rgba(242, 196, 111, 0.7);
}

.menghuan .game-mark {
  color: #d8f3ff;
  text-shadow: 0 0 22px rgba(135, 215, 255, 0.78);
}

.eyebrow {
  margin: 0 0 10px;
  color: var(--muted);
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

h1 {
  max-width: 760px;
  margin: 0;
  font-size: clamp(48px, 8vw, 122px);
  line-height: 0.92;
  letter-spacing: 0;
}

.dahua h1,
.detail-dahua h1 {
  font-size: clamp(42px, 5.4vw, 88px);
  line-height: 1.02;
}

.panel-copy {
  max-width: 420px;
  margin: 24px 0 0;
  color: var(--muted);
  font-size: clamp(15px, 1.35vw, 19px);
  line-height: 1.75;
}

.enter-link,
.back-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  margin-top: 28px;
  padding: 0 22px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.2);
  color: #fff;
  font-size: 14px;
  font-weight: 700;
  text-decoration: none;
  backdrop-filter: blur(14px);
  transition: transform 260ms ease, background-color 260ms ease, border-color 260ms ease;
}

.game-panel:hover .enter-link,
.back-link:hover {
  transform: translateY(-2px);
  border-color: rgba(255, 255, 255, 0.46);
  background: rgba(255, 255, 255, 0.16);
}

.detail-page {
  min-height: 100vh;
  overflow: auto;
  background-position: center;
  background-size: cover;
}

.detail-page::before {
  content: "";
  position: fixed;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(3, 5, 10, 0.86), rgba(3, 5, 10, 0.3)),
    linear-gradient(180deg, rgba(3, 5, 10, 0.14), rgba(3, 5, 10, 0.88));
}

.detail-dahua {
  overflow: hidden;
  background-image: url("./assets/dahua-bg.png");
}

.detail-menghuan {
  background-image: url("./assets/menghuan-bg.png");
}

.detail-shell {
  position: relative;
  z-index: 1;
  width: min(1120px, calc(100vw - 48px));
  min-height: 100vh;
  margin: 0 auto;
  padding: 38px 0 86px;
}

.dahua-shell {
  width: min(1520px, calc(100vw - 72px));
  height: 100vh;
  min-height: 720px;
  overflow: hidden;
  padding-bottom: 38px;
}

.dahua-detail-layout {
  display: grid;
  grid-template-columns: minmax(520px, 0.92fr) minmax(430px, 0.78fr);
  gap: clamp(48px, 6vw, 110px);
  align-items: center;
  height: calc(100vh - 124px);
  min-height: 590px;
}

.detail-hero {
  max-width: 720px;
  padding-top: clamp(110px, 18vh, 220px);
}

.dahua-actions-hero {
  align-self: center;
  padding-top: 0;
}

.detail-hero p:last-child {
  max-width: 620px;
  color: var(--muted);
  font-size: 20px;
  line-height: 1.8;
}

.coming-soon {
  margin-top: 28px;
  font-size: clamp(24px, 3vw, 42px);
  font-weight: 800;
  color: rgba(248, 251, 255, 0.84);
}

.action-board {
  display: grid;
  grid-template-columns: minmax(220px, 1.08fr) repeat(2, minmax(170px, 0.78fr));
  gap: 14px;
  width: min(760px, 100%);
  margin-top: 38px;
}

.action-board.compact {
  grid-template-columns: repeat(2, minmax(220px, 1fr));
  width: min(590px, 100%);
}

.premium-action {
  position: relative;
  isolation: isolate;
  min-height: 116px;
  overflow: hidden;
  padding: 22px 24px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 8px;
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.18), rgba(255, 255, 255, 0.045)),
    rgba(8, 12, 20, 0.56);
  box-shadow:
    0 22px 80px rgba(0, 0, 0, 0.38),
    inset 0 1px 0 rgba(255, 255, 255, 0.24);
  color: #fff;
  text-decoration: none;
  backdrop-filter: blur(18px);
  transition:
    transform 260ms ease,
    border-color 260ms ease,
    background-color 260ms ease,
    box-shadow 260ms ease;
}

.premium-action::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    radial-gradient(circle at 22% 18%, rgba(242, 196, 111, 0.32), transparent 0 34%),
    linear-gradient(120deg, transparent, rgba(255, 255, 255, 0.18), transparent);
  opacity: 0;
  transition: opacity 260ms ease;
}

.premium-action:hover {
  transform: translateY(-5px);
  border-color: rgba(255, 226, 168, 0.62);
  background-color: rgba(255, 255, 255, 0.08);
  box-shadow:
    0 28px 96px rgba(0, 0, 0, 0.46),
    0 0 34px rgba(242, 196, 111, 0.18),
    inset 0 1px 0 rgba(255, 255, 255, 0.3);
}

.premium-action:hover::before {
  opacity: 1;
}

.premium-action.primary {
  min-height: 142px;
  border-color: rgba(242, 196, 111, 0.44);
  background:
    linear-gradient(145deg, rgba(242, 196, 111, 0.28), rgba(101, 223, 198, 0.1)),
    rgba(10, 14, 22, 0.64);
}

.action-kicker {
  display: block;
  margin-bottom: 12px;
  color: rgba(248, 251, 255, 0.66);
  font-size: 13px;
  font-weight: 700;
}

.premium-action strong {
  display: block;
  font-size: clamp(24px, 2.6vw, 38px);
  line-height: 1.05;
  letter-spacing: 0;
}

.release-panel {
  position: relative;
  overflow-y: auto;
  align-self: center;
  height: min(760px, calc(100vh - 110px));
  min-height: 520px;
  padding: clamp(28px, 3vw, 44px);
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 8px;
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.16), rgba(255, 255, 255, 0.035)),
    rgba(5, 8, 14, 0.42);
  box-shadow:
    0 28px 110px rgba(0, 0, 0, 0.42),
    inset 0 1px 0 rgba(255, 255, 255, 0.18);
  backdrop-filter: blur(16px);
  scrollbar-width: thin;
  scrollbar-color: rgba(242, 196, 111, 0.42) rgba(255, 255, 255, 0.06);
}

.release-panel::-webkit-scrollbar {
  width: 8px;
}

.release-panel::-webkit-scrollbar-track {
  background: rgba(255, 255, 255, 0.055);
  border-radius: 999px;
}

.release-panel::-webkit-scrollbar-thumb {
  border-radius: 999px;
  background: rgba(242, 196, 111, 0.42);
}

.release-panel::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 82% 12%, rgba(242, 196, 111, 0.24), transparent 0 34%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.08), transparent 34%);
  pointer-events: none;
}

.release-panel > * {
  position: relative;
}

.release-panel h2 {
  margin: 0 0 28px;
  font-size: clamp(36px, 4vw, 68px);
  line-height: 0.96;
  letter-spacing: 0;
}

.release-list {
  display: grid;
  gap: 18px;
}

.release-item {
  position: relative;
  padding: 0 0 18px 28px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.release-item::before {
  content: "";
  position: absolute;
  top: 6px;
  left: 0;
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.72);
  box-shadow: 0 0 20px rgba(242, 196, 111, 0.46);
}

.release-item.current::before {
  background: var(--gold);
}

.release-item time {
  display: block;
  margin-bottom: 8px;
  color: rgba(248, 251, 255, 0.58);
  font-size: 13px;
  font-weight: 700;
}

.release-item h3 {
  margin: 0 0 8px;
  color: rgba(248, 251, 255, 0.94);
  font-size: clamp(18px, 1.45vw, 24px);
  line-height: 1.35;
  letter-spacing: 0;
}

.release-item p {
  margin: 0;
  color: rgba(248, 251, 255, 0.66);
  font-size: 15px;
  line-height: 1.75;
}

.release-item ul {
  display: grid;
  gap: 7px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.release-item li {
  position: relative;
  padding-left: 18px;
  color: rgba(248, 251, 255, 0.68);
  font-size: 15px;
  line-height: 1.7;
}

.release-item li::before {
  content: "";
  position: absolute;
  top: 0.72em;
  left: 0;
  width: 6px;
  height: 1px;
  background: rgba(242, 196, 111, 0.78);
}

.release-empty {
  margin: 0;
  padding: 22px 24px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.055);
  color: rgba(248, 251, 255, 0.68);
  font-size: 16px;
  line-height: 1.7;
}

@media (max-width: 760px) {
  body {
    overflow: auto;
  }

  .detail-dahua {
    overflow: auto;
  }

  .portal {
    flex-direction: column;
    height: auto;
    min-height: 100vh;
  }

  .dahua-shell {
    width: min(720px, calc(100vw - 32px));
    height: auto;
    min-height: 100vh;
    overflow: visible;
    padding-bottom: 64px;
  }

  .dahua-detail-layout {
    grid-template-columns: 1fr;
    gap: 28px;
    align-items: start;
    height: auto;
    min-height: 0;
    padding-top: 48px;
  }

  .dahua-actions-hero {
    padding-top: 0;
  }

  .game-panel,
  .portal:has(.game-panel:hover) .game-panel,
  .portal:has(.game-panel:hover) .game-panel:hover {
    flex: 0 0 50vh;
    min-height: 420px;
  }

  .panel-content {
    left: 24px;
    right: 24px;
    bottom: 34px;
  }

  .game-mark {
    width: 68px;
    height: 68px;
    margin-bottom: 20px;
    border-radius: 20px;
    font-size: 24px;
  }

  h1 {
    font-size: clamp(42px, 15vw, 72px);
  }

  .dahua h1,
  .detail-dahua h1 {
    font-size: clamp(34px, 10vw, 54px);
  }

  .action-board {
    grid-template-columns: 1fr;
    gap: 12px;
    margin-top: 28px;
  }

  .action-board.compact {
    grid-template-columns: 1fr;
  }

  .premium-action,
  .premium-action.primary {
    min-height: 96px;
  }

  .release-panel {
    height: auto;
    min-height: auto;
    max-height: none;
    overflow: visible;
    padding: 24px;
  }
}
