html {
  scroll-behavior: smooth;
}

:root {
  --panel-line: rgba(125, 211, 252, 0.34);
  --panel-soft: rgba(8, 16, 30, 0.88);
  --panel-mid: rgba(7, 14, 27, 0.96);
  --ink-soft: #9fb6cc;
}

#fx-canvas {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  pointer-events: none;
}

body {
  background:
    radial-gradient(1200px 700px at 85% -10%, rgba(56, 189, 248, 0.2), transparent 55%),
    radial-gradient(800px 600px at -5% 10%, rgba(129, 140, 248, 0.22), transparent 50%),
    #050914;
}

.container {
  position: relative;
  z-index: 1;
  max-width: 1100px;
}

.global-topbar {
  position: sticky;
  top: 0;
  z-index: 30;
  backdrop-filter: blur(10px);
  background: rgba(5, 16, 26, 0.86);
  border-bottom: 1px solid rgba(125, 211, 252, 0.22);
}

.global-topbar .container {
  width: 100%;
  max-width: none;
  margin: 0;
}

.global-topbar-inner {
  min-height: 56px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
  align-items: center;
  gap: 16px;
  padding: 24px !important;
}

.global-logo {
  grid-column: 2;
  justify-self: center;
  margin: 0 auto;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  text-align: center;
  text-decoration: none;
  font-weight: 900;
  letter-spacing: 0.1em;
  font-size: 1.32rem;
  color: #e8f3ff;
  text-shadow: 0 0 14px rgba(56, 189, 248, 0.28), 0 0 24px rgba(14, 165, 233, 0.16);
}

.global-logo::before {
  content: "";
  width: 30px;
  height: 30px;
  flex: 0 0 30px;
  border-radius: 10px;
  background:
    radial-gradient(circle at 28% 24%, rgba(255,255,255,0.28), transparent 34%),
    url("./assets/brand/blacktide-avatar-512.png") center / cover no-repeat,
    linear-gradient(180deg, rgba(230,205,140,0.98), rgba(154,112,18,0.96));
  border: 1px solid rgba(208,176,108,0.42);
  box-shadow: 0 0 0 1px rgba(255,255,255,0.06) inset, 0 10px 24px rgba(0,0,0,0.28), 0 0 16px rgba(208,176,108,0.18);
}

.global-logo::after {
  content: none;
}

.global-nav {
  grid-column: 1;
  justify-self: start;
  display: flex;
  gap: 22px;
  flex-wrap: wrap;
  align-items: center;
  justify-content: flex-start;
}

.global-nav a {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  text-decoration: none;
  white-space: nowrap;
  color: #d9efff;
  font-size: 0.9rem;
  font-weight: 700;
  transition: color 0.18s ease;
}

.global-nav a::before {
  content: "·";
  color: rgba(125, 211, 252, 0.86);
  font-size: 1rem;
}

.global-nav a:hover {
  color: #ffffff;
}

.global-wallet-tools {
  grid-column: 3;
  justify-self: end;
  margin-left: 0;
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.global-wallet-tools button {
  font-size: 0.82rem;
}

.top-live-kpis {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-right: 4px;
  flex-wrap: wrap;
}

.top-live-item {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 34px;
  padding: 0 10px;
  border-radius: 999px;
  border: 1px solid rgba(125, 211, 252, 0.32);
  background: rgba(7, 21, 35, 0.62);
  white-space: nowrap;
}

.top-live-item::before {
  content: "◉";
  color: #74ddff;
  font-size: 0.72rem;
  text-shadow: 0 0 10px rgba(87, 215, 255, 0.45);
}

.top-live-item em {
  font-style: normal;
  font-size: 0.76rem;
  color: #9fc2df;
}

.top-live-item strong {
  font-size: 0.84rem;
  color: #e8f6ff;
  font-weight: 700;
}

.wallet-menu {
  position: relative;
}

.wallet-trigger {
  min-height: 34px;
  border-radius: 999px;
  padding: 6px 12px;
  border: 1px solid rgba(143, 215, 255, 0.42);
  background: linear-gradient(180deg, rgba(17, 57, 86, 0.9), rgba(11, 37, 58, 0.9));
  color: #eaf6ff;
  font-family: system-ui, -apple-system, "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
  font-weight: 700;
  box-shadow: 0 8px 18px rgba(6, 26, 46, 0.35);
}

.wallet-trigger::before {
  content: "◎";
  margin-right: 6px;
  color: #9fe9ff;
  font-size: 0.76rem;
}

.wallet-trigger.is-connected {
  background: linear-gradient(180deg, rgba(34, 197, 94, 0.28), rgba(15, 118, 110, 0.24));
  border-color: rgba(110, 231, 183, 0.48);
  color: #d1fae5;
}

.wallet-menu-pop {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  min-width: 132px;
  padding: 6px;
  border-radius: 12px;
  border: 1px solid rgba(125, 211, 252, 0.35);
  background: rgba(5, 16, 28, 0.96);
  box-shadow: 0 14px 30px rgba(0, 0, 0, 0.36);
  z-index: 40;
}

.wallet-menu-pop[hidden] {
  display: none;
}

.wallet-menu-item {
  width: 100%;
  border-radius: 8px;
  border: 1px solid rgba(125, 211, 252, 0.2);
  background: rgba(17, 40, 62, 0.75);
  color: #e8f3ff;
  font-family: system-ui, -apple-system, "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
  font-size: 0.82rem;
  font-weight: 700;
  padding: 7px 10px;
  box-shadow: none;
}

.wallet-menu-item:hover:enabled {
  transform: none;
  filter: none;
  border-color: rgba(148, 223, 255, 0.58);
  background: rgba(25, 64, 96, 0.8);
  box-shadow: none;
}

.mint-theme-page {
  position: relative;
  min-height: 100vh;
}

.mint-theme-page::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -2;
  background: url("./assets/user-upload/2026-04-16-image-drop/banner-blacktide-rift-02.jpg") center/cover no-repeat;
}

.mint-theme-page::after {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  background: linear-gradient(180deg, rgba(3, 10, 18, 0.78) 0%, rgba(4, 14, 24, 0.72) 38%, rgba(6, 16, 30, 0.82) 100%);
}

.mint-theme-page .global-topbar {
  background: rgba(4, 14, 24, 0.72);
  backdrop-filter: none;
}

.mint-theme-page main.container {
  position: relative;
  z-index: 1;
}

.mint-hero-center,
.pve-hero-center {
  position: relative;
  width: min(940px, 100%);
  margin: 14px auto 22px;
  padding: 58px 26px 40px;
  text-align: center;
  border-radius: 22px;
  border: 1px solid rgba(148, 223, 255, 0.3);
  background: linear-gradient(180deg, rgba(11, 28, 44, 0.56), rgba(7, 22, 36, 0.44));
  box-shadow: 0 20px 44px rgba(2, 8, 23, 0.42), inset 0 0 0 1px rgba(56, 189, 248, 0.08);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  overflow: hidden;
}

.mint-hero-center::before,
.pve-hero-center::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  pointer-events: none;
  border: 1px solid rgba(148, 223, 255, 0.45);
  box-shadow: 0 0 10px rgba(56, 189, 248, 0.18), inset 0 0 10px rgba(125, 211, 252, 0.12);
  animation: glassEdgeBreath 3.2s ease-in-out infinite;
}

.mint-hero-center::after,
.pve-hero-center::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(115deg, transparent 34%, rgba(186, 230, 253, 0.09) 50%, transparent 64%);
}

.mint-hero-center > *,
.pve-hero-center > * {
  position: relative;
  z-index: 1;
}

@keyframes glassEdgeBreath {
  0%,
  100% {
    border-color: rgba(148, 223, 255, 0.38);
    box-shadow: 0 0 8px rgba(56, 189, 248, 0.16), inset 0 0 8px rgba(125, 211, 252, 0.1);
  }
  50% {
    border-color: rgba(186, 230, 253, 0.74);
    box-shadow: 0 0 18px rgba(56, 189, 248, 0.34), inset 0 0 16px rgba(125, 211, 252, 0.2);
  }
}

.mint-hero-center #mintTitle,
.pve-hero-center #pveTitle {
  margin: 10px 0;
  font-size: clamp(2rem, 5vw, 3rem);
  -webkit-text-stroke: 3px rgba(7, 18, 32, 0.55);
  paint-order: stroke fill;
  text-shadow: 0 6px 18px rgba(0, 0, 0, 0.35);
}

.mint-hero-subtitle,
.pve-hero-subtitle,
.pve-hero-center #entryHint {
  max-width: 760px;
  margin: 0 auto;
  color: #d4ecff;
  font-size: clamp(1rem, 2.2vw, 1.14rem);
}

.pve-theme-page {
  position: relative;
  min-height: 100vh;
}

.pve-theme-page::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -2;
  background: url("./assets/user-upload/2026-04-16-image-drop/systems-atlas-main-01.jpg") center/cover no-repeat;
}

.pve-theme-page::after {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  background: linear-gradient(180deg, rgba(3, 10, 18, 0.82) 0%, rgba(4, 14, 24, 0.74) 40%, rgba(5, 14, 25, 0.86) 100%);
}

.pve-theme-page .global-topbar {
  background: rgba(4, 14, 24, 0.72);
  backdrop-filter: none;
}

.pve-theme-page main.container {
  position: relative;
  z-index: 1;
}

.pve-hero-center #entryHint {
  margin-top: 6px;
}

.hero-stack {
  position: relative;
  overflow: hidden;
  border: 1px solid var(--panel-line);
  background: linear-gradient(145deg, rgba(14, 165, 233, 0.2), rgba(10, 17, 33, 0.94));
  box-shadow: 0 18px 42px rgba(2, 8, 23, 0.46), inset 0 0 0 1px rgba(56, 189, 248, 0.08);
}

.hero-stack::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(110deg, transparent 35%, rgba(186, 230, 253, 0.1) 50%, transparent 62%);
  mix-blend-mode: screen;
}

.hero-layer {
  position: absolute;
  border-radius: 999px;
  filter: blur(4px);
}

.hero-back {
  width: 460px;
  height: 460px;
  right: -140px;
  top: -210px;
  background: radial-gradient(circle, rgba(34, 211, 238, .5), rgba(34, 211, 238, 0));
}

.hero-mid {
  width: 390px;
  height: 390px;
  left: -130px;
  bottom: -220px;
  background: radial-gradient(circle, rgba(129, 140, 248, .45), rgba(129, 140, 248, 0));
}

.hero-content {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: 1.2fr .8fr;
  gap: 16px;
  align-items: center;
}

.tag {
  margin: 0;
  font-size: 12px;
  letter-spacing: 1.8px;
  color: #bff5ff;
  text-transform: uppercase;
  text-shadow: 0 0 14px rgba(103, 232, 249, 0.35);
}

.hero-left h1 {
  margin: 8px 0;
  font-size: 36px;
}

.hero-left .muted {
  max-width: 640px;
  line-height: 1.7;
}

.hero-right {
  display: flex;
  justify-content: center;
}

.hero-right.with-wallet {
  flex-direction: column;
  align-items: flex-end;
  gap: 10px;
}

.hero-wallet-box {
  width: 100%;
  display: flex;
  justify-content: flex-end;
  gap: 8px;
  align-items: center;
  flex-wrap: wrap;
}

.hero-wallet-box button {
  min-width: 118px;
}

.hero-top-nav {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.top-nav-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  min-height: 34px;
  padding: 6px 11px;
  text-decoration: none;
  font-size: 0.82rem;
  font-weight: 700;
  border: 1px solid rgba(143, 215, 255, 0.35);
  color: #e8f6ff;
  background: rgba(255, 255, 255, 0.04);
  transition: all 0.18s ease;
}

.top-nav-btn:hover {
  transform: translateY(-1px);
  border-color: rgba(143, 215, 255, 0.65);
  color: #ffffff;
}

.top-nav-btn.nav-home {
  background: rgba(255, 255, 255, 0.04);
}

.top-nav-btn.nav-home::before {
  content: "✦";
  margin-right: 6px;
  color: #9fe9ff;
  font-size: 0.72rem;
}

.top-nav-btn.nav-mint {
  background: linear-gradient(180deg, rgba(40, 196, 255, 0.28), rgba(15, 163, 221, 0.2));
  border-color: rgba(125, 211, 252, 0.45);
}

.top-nav-btn.nav-mint::before {
  content: "◆";
  margin-right: 6px;
  color: #9fe9ff;
  font-size: 0.72rem;
}

.top-nav-btn.nav-pve {
  background: linear-gradient(180deg, rgba(255, 143, 61, 0.3), rgba(255, 143, 61, 0.16));
  border-color: rgba(253, 186, 116, 0.4);
}

.top-nav-btn.nav-pve::before {
  content: "▲";
  margin-right: 6px;
  color: #ffd39e;
  font-size: 0.68rem;
}

.top-nav-btn.is-active {
  border-color: rgba(125, 211, 252, 0.72);
  box-shadow: 0 4px 10px rgba(56, 189, 248, 0.22);
  color: #ffffff;
}

.lang-select {
  min-width: 92px;
  height: 34px;
  border-radius: 999px;
  border: 1px solid rgba(125, 211, 252, 0.42);
  background: rgba(6, 16, 30, 0.9);
  color: #e2f0ff;
  font-family: system-ui, -apple-system, "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
  font-weight: 700;
  font-size: 0.82rem;
  padding: 0 10px;
  cursor: pointer;
}

.route-select {
  min-width: 132px;
}

.hero-main {
  width: min(100%, 300px);
  aspect-ratio: 1 / 1;
  object-fit: cover;
  border-radius: 22px;
  border: 1px solid #3b82f6;
  background: #0b1220;
  box-shadow: 0 0 36px rgba(59, 130, 246, 0.22);
}

.hero-links {
  margin-top: 12px;
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.chip {
  text-decoration: none;
  color: #e8f7ff;
  background: linear-gradient(135deg, rgba(15, 34, 58, 0.95), rgba(10, 21, 40, 0.95));
  border: 1px solid rgba(96, 165, 250, 0.65);
  border-radius: 999px;
  padding: 6px 12px;
  font-size: 12px;
  transition: transform .16s ease, border-color .16s ease, box-shadow .16s ease;
}

.chip:hover {
  transform: translateY(-1px);
  border-color: rgba(125, 211, 252, 0.88);
  box-shadow: 0 8px 18px rgba(56, 189, 248, 0.22);
}

.art-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 12px;
}

.art-card {
  border: 1px solid #324861;
  border-radius: 12px;
  background: #0b1220;
  padding: 12px;
  transition: transform .2s ease, border-color .2s ease;
}

.art-card:hover {
  transform: translateY(-3px);
  border-color: #60a5fa;
}

.art-card img {
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  border-radius: 10px;
}

.art-card h3 {
  margin: 10px 0 6px;
}

.art-card p {
  margin: 0;
  color: #9fb0c5;
  line-height: 1.6;
}

.map-grid-wrap {
  border-color: #0ea5e9;
}

.map-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 12px;
}

.map-card {
  border: 1px solid rgba(71, 103, 139, 0.82);
  border-radius: 14px;
  background: linear-gradient(180deg, rgba(10, 19, 35, 0.95), rgba(8, 14, 27, 0.95));
  overflow: hidden;
  box-shadow: 0 12px 24px rgba(2, 8, 23, 0.36);
}

.map-card img {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  display: block;
}

.map-card h4 {
  margin: 10px 12px 4px;
}

.map-card p {
  margin: 0 12px 12px;
  color: #9fb0c5;
}

.map-card.selectable {
  cursor: pointer;
  transition: transform .2s ease, border-color .2s ease, box-shadow .2s ease;
}

.map-card.selectable:hover {
  transform: translateY(-2px);
  border-color: #60a5fa;
}

.map-card.selectable.is-active {
  border-color: #38bdf8;
  box-shadow: 0 0 0 1px rgba(56, 189, 248, .3), 0 10px 24px rgba(14, 165, 233, .2);
}

.map-pick {
  margin: 0 12px 12px;
  width: calc(100% - 24px);
  height: 36px;
}

.scene-grid-wrap {
  border-color: #334a64;
}

.scene-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 12px;
}

.scene-card {
  border: 1px solid #324861;
  border-radius: 12px;
  background: #0b1220;
  overflow: hidden;
}

.scene-card img {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  display: block;
}

.scene-card p {
  margin: 0;
  padding: 10px 12px;
  color: #9fb0c5;
}

.quick-nav {
  position: sticky;
  top: 8px;
  z-index: 8;
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  align-items: center;
  backdrop-filter: blur(6px);
}

.chip-nav {
  text-decoration: none;
  color: #dbeafe;
  background: rgba(15, 23, 42, 0.85);
  border: 1px solid #2f4b6a;
  border-radius: 999px;
  padding: 6px 10px;
  font-size: 12px;
}

.module-card {
  position: relative;
  background: linear-gradient(180deg, var(--panel-soft), var(--panel-mid));
  border-color: rgba(71, 103, 139, 0.9);
  box-shadow: 0 14px 28px rgba(2, 8, 23, 0.42), inset 0 0 0 1px rgba(56, 189, 248, 0.04);
}

.module-card::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: radial-gradient(420px 120px at -8% -15%, rgba(56, 189, 248, 0.16), transparent 70%);
}

.module-card h3 {
  margin: 0 0 10px;
  color: #e2f1ff;
}

.form-grid {
  display: grid !important;
  grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
  gap: 10px;
  align-items: end;
}

.form-grid > button {
  height: 40px;
  align-self: end;
}

.combat-split {
  display: grid;
  grid-template-columns: 1fr;
  gap: 12px;
}

.combat-pane {
  border: 1px solid rgba(71, 103, 139, 0.82);
  border-radius: 12px;
  background: rgba(8, 14, 26, 0.9);
  padding: 12px;
  box-shadow: inset 0 0 0 1px rgba(56, 189, 248, 0.04);
}

.combat-pane h4 {
  margin: 0 0 10px;
  color: #bae6fd;
}

.section-divider {
  margin: 18px 2px 8px;
  font-weight: 800;
  letter-spacing: 1px;
  color: #bae6fd;
  border-left: 4px solid #38bdf8;
  padding-left: 10px;
  text-transform: none;
}

.section-divider-interactive {
  border-left: none;
  padding-left: 0;
}

.expand-btn {
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  border: 1px solid #2f4b6a;
  background: linear-gradient(180deg, #0b1728, #0a1220);
  color: #bae6fd;
  border-radius: 12px;
  padding: 10px 12px;
  font-weight: 800;
}

.expand-icon {
  transition: transform .2s ease;
}

.expand-btn[aria-expanded="true"] .expand-icon {
  transform: rotate(90deg);
}

.collapsible-panel {
  overflow: hidden;
  transition: max-height .25s ease, opacity .2s ease, margin-top .2s ease, padding-top .2s ease, padding-bottom .2s ease;
  max-height: 320px;
  opacity: 1;
}

.collapsible-panel.is-collapsed {
  max-height: 0;
  opacity: 0;
  margin-top: 0;
  padding-top: 0;
  padding-bottom: 0;
  border-width: 0;
}

@media (min-width: 1200px) {
  .global-topbar .container {
    width: 100%;
    max-width: none;
    margin: 0;
    padding-left: 0;
    padding-right: 0;
  }
}

@media (max-width: 900px) {
  .global-topbar-inner {
    min-height: auto;
    padding: 24px;
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
  }

  .global-logo {
    width: 100%;
    order: 1;
    justify-content: center;
    text-align: center;
  }

  .global-nav {
    width: 100%;
    order: 2;
    gap: 14px;
  }

  .global-wallet-tools {
    width: 100%;
    order: 3;
    justify-content: flex-start;
    flex-wrap: wrap;
  }

  .top-live-kpis {
    width: 100%;
    margin-right: 0;
    justify-content: flex-start;
  }

  .mint-hero-center,
  .pve-hero-center {
    padding: 44px 10px 28px;
  }

  .hero-content {
    grid-template-columns: 1fr;
  }

  .hero-right {
    justify-content: flex-start;
  }

  .hero-right.with-wallet {
    align-items: flex-start;
  }

  .hero-wallet-box {
    justify-content: flex-start;
  }

  .combat-split {
    grid-template-columns: 1fr;
  }
}

.hidden-select {
  position: absolute;
  opacity: 0;
  width: 1px;
  height: 1px;
  pointer-events: none;
}

.backpack-head-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  flex-wrap: wrap;
}

.wallet-balance-chip {
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  border: 1px solid rgba(143, 215, 255, 0.45);
  background: rgba(7, 20, 34, 0.62);
  padding: 4px 10px;
  font-family: system-ui, -apple-system, "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
  font-size: 0.88rem;
  font-weight: 700;
  color: #d6edff;
}

.wallet-nft-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 10px;
}

.wallet-nft-card {
  border: 1px solid rgba(71, 103, 139, 0.85);
  border-radius: 12px;
  background: linear-gradient(180deg, rgba(10, 19, 35, 0.95), rgba(8, 14, 27, 0.95));
  color: #dbeafe;
  text-align: left;
  padding: 10px 12px;
  cursor: pointer;
  transition: transform .2s ease, border-color .2s ease, box-shadow .2s ease;
}

.wallet-nft-image {
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  border-radius: 10px;
  border: 1px solid rgba(125, 211, 252, 0.28);
  margin-bottom: 8px;
}

.wallet-nft-card:hover {
  transform: translateY(-2px);
  border-color: #60a5fa;
}

.wallet-nft-card.is-active {
  border-color: #38bdf8;
  box-shadow: 0 0 0 1px rgba(56, 189, 248, .28), 0 10px 24px rgba(14, 165, 233, .18);
}

.wallet-nft-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 6px;
}

.wallet-nft-top span {
  color: #93c5fd;
  font-size: 12px;
}

.wallet-nft-meta {
  color: #9fb0c5;
  font-size: 12px;
  line-height: 1.55;
}

.pack-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(210px, 250px));
  justify-content: center;
  align-items: start;
  gap: 16px;
}

.pack-card {
  display: flex;
  flex-direction: column;
  gap: 10px;
  min-height: 100%;
  border: 1px solid rgba(71, 103, 139, 0.85);
  border-radius: 14px;
  background: linear-gradient(180deg, rgba(10, 19, 35, 0.95), rgba(8, 14, 27, 0.95));
  padding: 12px;
}

.pack-card img {
  display: block;
  width: min(100%, 188px);
  margin: 2px auto 0;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  border-radius: 10px;
  border: 1px solid rgba(125, 211, 252, 0.3);
}

.pack-card h4 {
  margin: 0;
  font-size: 0.98rem;
  line-height: 1.35;
  letter-spacing: 0.01em;
}

.pack-quote {
  min-height: 58px;
  margin: 0;
  padding: 10px 12px;
  border: 1px solid rgba(100, 136, 172, 0.32);
  border-radius: 12px;
  background: rgba(7, 16, 30, 0.7);
  font-size: 12px;
  line-height: 1.55;
  white-space: pre-line;
}

.pack-mint-btn {
  width: 100%;
  margin-top: auto;
}

.theme-balance {
  margin-top: 10px;
  padding: 12px 14px;
  border-radius: 12px;
  border: 1px solid rgba(71, 103, 139, 0.82);
  background: linear-gradient(180deg, rgba(10, 19, 35, 0.95), rgba(8, 14, 27, 0.95));
  color: #e2f0ff;
  font-family: system-ui, -apple-system, "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
  font-size: 18px;
  font-weight: 700;
  letter-spacing: 0.3px;
}

.mono {
  font-family: system-ui, -apple-system, "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
  font-size: 16px;
  font-weight: 600;
  letter-spacing: 0.2px;
}

.backpack-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 12px;
  margin-top: 12px;
}

.backpack-card {
  border: 1px solid rgba(71, 103, 139, 0.85);
  border-radius: 12px;
  background: linear-gradient(180deg, rgba(10, 19, 35, 0.95), rgba(8, 14, 27, 0.95));
  overflow: hidden;
}

.backpack-card img {
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  display: block;
}

.backpack-body {
  padding: 10px;
}

.backpack-title {
  font-family: system-ui, -apple-system, "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
  font-weight: 700;
  color: #e8f6ff;
  margin-bottom: 6px;
}

.backpack-meta {
  color: #b8cae1;
  font-size: 14px;
  line-height: 1.6;
}

.backpack-empty {
  grid-column: 1 / -1;
  border: 1px dashed rgba(125, 211, 252, 0.38);
  border-radius: 12px;
  padding: 14px;
  color: #b8cae1;
  background: rgba(8, 14, 27, 0.65);
}

#txStatus {
  white-space: pre-line;
  line-height: 1.65;
  max-height: calc(1.65em * 10);
  overflow-y: auto;
  padding-right: 4px;
}


/* 2026-04-05 direct-start polish */

.mint-hero-center,
.pve-hero-center {
  border-radius: 28px;
  padding: 68px 28px 44px;
  background:
    linear-gradient(180deg, rgba(8, 21, 33, 0.34), rgba(8, 21, 33, 0.7)),
    linear-gradient(145deg, rgba(11, 28, 44, 0.48), rgba(7, 22, 36, 0.54));
  box-shadow: 0 28px 60px rgba(2, 8, 23, 0.46), inset 0 0 0 1px rgba(56, 189, 248, 0.06);
}

.mint-hero-center #mintTitle,
.pve-hero-center #pveTitle {
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.mint-hero-subtitle,
.pve-hero-subtitle,
.pve-hero-center #entryHint {
  max-width: 820px;
  line-height: 1.8;
  color: #e2f3ff;
}

.pack-grid,
.map-grid {
  gap: 16px;
}

.pack-card,
.map-card,
.backpack-card,
.wallet-nft-card {
  position: relative;
  overflow: hidden;
  border-radius: 18px;
  border: 1px solid rgba(108, 155, 198, 0.44);
  background: linear-gradient(180deg, rgba(9, 18, 32, 0.96), rgba(8, 15, 26, 0.98));
  box-shadow: 0 18px 38px rgba(0, 0, 0, 0.28);
}

.pack-card::before,
.map-card::before,
.backpack-card::before,
.wallet-nft-card::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(130deg, transparent 32%, rgba(255,255,255,0.05) 50%, transparent 66%);
}

.pack-card:hover,
.map-card.selectable:hover,
.backpack-card:hover,
.wallet-nft-card:hover {
  transform: translateY(-4px);
  border-color: rgba(147, 219, 255, 0.72);
  box-shadow: 0 24px 50px rgba(0, 0, 0, 0.34), 0 0 0 1px rgba(56, 189, 248, 0.16);
}

.pack-card img,
.backpack-card img,
.wallet-nft-card img {
  aspect-ratio: 1 / 1;
}

.pack-card img,
.map-card img,
.backpack-card img,
.wallet-nft-card img {
  border-radius: 14px;
}

.pack-card:nth-child(1) { box-shadow: 0 18px 40px rgba(251, 146, 60, 0.14); }
.pack-card:nth-child(2) { box-shadow: 0 18px 40px rgba(59, 130, 246, 0.14); }
.pack-card:nth-child(3) { box-shadow: 0 18px 40px rgba(168, 85, 247, 0.16); }

.pack-card h4,
.map-card h4 {
  margin: 12px 0 6px;
  font-size: 1.02rem;
  letter-spacing: 0.02em;
}

.pack-quote,
.map-card p,
.backpack-meta,
.wallet-nft-meta {
  color: #bfd5e7;
}

.pack-mint-btn,
.map-pick,
#goPveBtn,
#pveBtn,
#loadNftsBtn {
  min-height: 42px;
  border-radius: 12px;
  font-size: 0.92rem;
  letter-spacing: 0.02em;
}

.pack-card:nth-child(1) .pack-mint-btn {
  background: linear-gradient(135deg, #f59e0b, #ea580c 58%, #9a3412);
}

.pack-card:nth-child(2) .pack-mint-btn,
.map-card[data-difficulty="rift"] .map-pick {
  background: linear-gradient(135deg, #2563eb, #0ea5e9 58%, #0369a1);
}

.pack-card:nth-child(3) .pack-mint-btn,
.map-card[data-difficulty="abyss"] .map-pick {
  background: linear-gradient(135deg, #7c3aed, #2563eb 58%, #1e3a8a);
}

.mint-theme-page .pack-grid {
  grid-template-columns: repeat(auto-fit, minmax(210px, 250px));
  justify-content: center;
  align-items: start;
  gap: 18px;
}

.mint-theme-page .pack-card {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 14px;
}

.mint-theme-page .pack-card img {
  display: block;
  width: min(100%, 188px);
  margin: 2px auto 0;
  border-radius: 12px;
}

.mint-theme-page .pack-card h4 {
  margin: 0;
  font-size: 0.98rem;
  line-height: 1.35;
}

.mint-theme-page .pack-quote {
  min-height: 58px;
  margin: 0;
  padding: 10px 12px;
  border: 1px solid rgba(100, 136, 172, 0.32);
  border-radius: 12px;
  background: rgba(7, 16, 30, 0.7);
  line-height: 1.55;
}

.mint-theme-page .pack-mint-btn {
  margin-top: auto;
}

.map-card[data-difficulty="shallow"] .map-pick {
  background: linear-gradient(135deg, #0ea5e9, #14b8a6 58%, #0f766e);
}

.module-card {
  border-radius: 20px;
  padding: 18px;
}

.theme-balance {
  font-size: 1.15rem;
  border-radius: 14px;
  background: linear-gradient(180deg, rgba(8, 18, 30, 0.92), rgba(10, 24, 36, 0.98));
}

.wallet-balance-chip {
  display: inline-flex;
  align-items: center;
  min-height: 32px;
  padding: 0 12px;
  border-radius: 999px;
  border: 1px solid rgba(148, 223, 255, 0.34);
  background: rgba(8, 21, 34, 0.82);
}

@media (max-width: 720px) {
  .mint-hero-center,
  .pve-hero-center {
    padding: 54px 18px 34px;
    border-radius: 22px;
  }
}
