:root {
  color-scheme: dark;
  --bg: #040810;
  --bg-soft: #09121a;
  --panel: rgba(5, 12, 22, 0.82);
  --panel-strong: rgba(3, 8, 16, 0.92);
  --border: rgba(114, 213, 226, 0.26);
  --border-strong: rgba(0, 235, 205, 0.58);
  --text: #f4fbff;
  --muted: #a8bed4;
  --cyan: #00f1d2;
  --green: #7ef3a0;
  --gold: #ffd84b;
  --amber: #ffad32;
  --danger: #ff6b7c;
  --shadow: 0 22px 70px rgba(0, 0, 0, 0.48);
  --max: 1220px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  min-height: 100vh;
  margin: 0;
  background:
    linear-gradient(115deg, rgba(255, 193, 64, 0.22), transparent 23%),
    linear-gradient(245deg, rgba(0, 203, 222, 0.24), transparent 28%),
    linear-gradient(160deg, rgba(220, 42, 86, 0.2), transparent 32%),
    var(--bg);
  color: var(--text);
  font-family:
    Inter,
    ui-sans-serif,
    system-ui,
    -apple-system,
    BlinkMacSystemFont,
    "Segoe UI",
    sans-serif;
  font-size: 16px;
  letter-spacing: 0;
  overflow-x: hidden;
}

body::before,
body::after {
  position: fixed;
  inset: 0;
  z-index: -2;
  pointer-events: none;
  content: "";
}

body::before {
  background:
    conic-gradient(from 42deg at 12% 18%, rgba(255, 215, 76, 0.95), rgba(255, 72, 105, 0.65), transparent 23%),
    conic-gradient(from 214deg at 88% 16%, rgba(255, 207, 97, 0.88), rgba(0, 209, 227, 0.74), transparent 27%),
    conic-gradient(from 302deg at 15% 80%, rgba(0, 191, 210, 0.82), rgba(24, 54, 88, 0.82), transparent 24%),
    linear-gradient(135deg, #101d24 0%, #030812 48%, #160c12 100%);
  filter: saturate(1.2);
}

body::after {
  z-index: -1;
  background:
    linear-gradient(rgba(4, 8, 16, 0.4), rgba(4, 8, 16, 0.88)),
    repeating-linear-gradient(120deg, rgba(255, 255, 255, 0.05) 0 1px, transparent 1px 88px);
}

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

button,
input {
  font: inherit;
  letter-spacing: 0;
}

svg {
  display: block;
  width: 1em;
  height: 1em;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 2;
}

.skip-link {
  position: fixed;
  top: 12px;
  left: 12px;
  z-index: 20;
  padding: 10px 14px;
  background: var(--gold);
  color: #061017;
  transform: translateY(-150%);
}

.skip-link:focus {
  transform: translateY(0);
}

.site-header {
  position: sticky;
  top: 12px;
  z-index: 10;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 18px;
  width: min(var(--max), calc(100% - 32px));
  min-height: 68px;
  margin: 12px auto 0;
  padding: 10px 18px;
  background: rgba(3, 7, 14, 0.86);
  border: 1px solid rgba(120, 214, 227, 0.22);
  border-radius: 8px;
  box-shadow: var(--shadow);
  backdrop-filter: blur(18px);
}

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

.brand-mark {
  display: grid;
  flex: 0 0 44px;
  width: 44px;
  height: 44px;
  place-items: center;
  color: var(--green);
  background:
    radial-gradient(circle at 35% 30%, rgba(126, 243, 160, 0.32), transparent 38%),
    #081b18;
  border: 1px solid rgba(0, 241, 210, 0.38);
  border-radius: 50%;
  box-shadow: 0 0 24px rgba(0, 241, 210, 0.28);
}

.brand-mark svg {
  width: 27px;
  height: 27px;
}

.brand-mark img {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  object-fit: cover;
}

.brand strong,
.brand small {
  display: block;
  line-height: 1.1;
}

.brand strong {
  color: var(--gold);
  font-size: 1.05rem;
  font-weight: 800;
  text-transform: uppercase;
}

.brand small {
  margin-top: 3px;
  color: var(--muted);
  font-size: 0.75rem;
}

.site-nav {
  display: flex;
  justify-content: center;
  gap: 26px;
  color: #b6c4d5;
  font-size: 0.82rem;
  font-weight: 750;
  text-transform: uppercase;
}

.site-nav a {
  padding: 10px 0;
}

.site-nav a:hover,
.site-nav a:focus-visible {
  color: var(--gold);
}

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

.header-action,
.button,
.icon-button,
.filter-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  border: 1px solid var(--border-strong);
  border-radius: 999px;
  color: var(--text);
  cursor: pointer;
  transition:
    transform 160ms ease,
    border-color 160ms ease,
    background 160ms ease,
    color 160ms ease,
    box-shadow 160ms ease;
}

.header-action,
.button {
  gap: 8px;
  padding: 0 18px;
  font-size: 0.8rem;
  font-weight: 850;
  text-transform: uppercase;
}

.header-action svg,
.button svg {
  width: 18px;
  height: 18px;
}

.header-action,
.button-secondary,
.filter-button {
  background: rgba(0, 13, 22, 0.72);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.02), 0 0 18px rgba(0, 241, 210, 0.14);
}

.button-primary {
  border-color: rgba(255, 216, 75, 0.8);
  background: linear-gradient(180deg, #ffe36a, #ffbd36);
  color: #071017;
  box-shadow: 0 0 24px rgba(255, 216, 75, 0.32);
}

.header-action:hover,
.button:hover,
.icon-button:hover,
.filter-button:hover,
.header-action:focus-visible,
.button:focus-visible,
.icon-button:focus-visible,
.filter-button:focus-visible {
  transform: translateY(-1px);
  border-color: var(--gold);
  box-shadow: 0 0 26px rgba(0, 241, 210, 0.28);
  outline: none;
}

main {
  width: min(var(--max), calc(100% - 32px));
  margin: 30px auto 0;
}

#nfts,
#mint,
#utility,
#listingGrid {
  scroll-margin-top: 96px;
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(360px, 0.75fr);
  gap: 28px;
  align-items: start;
  min-height: 620px;
  padding: 34px;
  background:
    linear-gradient(100deg, rgba(3, 14, 18, 0.94), rgba(7, 9, 16, 0.78)),
    rgba(5, 12, 22, 0.82);
  border: 1px solid rgba(114, 213, 226, 0.24);
  border-radius: 8px;
  box-shadow: var(--shadow);
  backdrop-filter: blur(14px);
}

.hero > * {
  min-width: 0;
}

.microcopy {
  margin: 0 0 10px;
  color: var(--cyan);
  font-size: 0.82rem;
  font-weight: 850;
  text-transform: uppercase;
}

.hero-panel-logo {
  display: inline-grid;
  width: 188px;
  height: 188px;
  margin-bottom: 22px;
  place-items: center;
  background:
    radial-gradient(circle at 50% 38%, rgba(0, 241, 210, 0.22), transparent 56%),
    rgba(0, 12, 20, 0.6);
  border: 1px solid rgba(0, 241, 210, 0.34);
  border-radius: 50%;
  box-shadow:
    0 0 34px rgba(0, 241, 210, 0.18),
    0 0 60px rgba(255, 216, 75, 0.08);
}

.hero-panel-logo img {
  width: 164px;
  height: 164px;
  border-radius: 50%;
  object-fit: cover;
}

.hero-pillars {
  margin: 14px 0 0;
  color: var(--gold);
  font-size: 1.05rem;
  font-weight: 950;
  text-transform: uppercase;
}

h1,
h2,
h3,
p {
  letter-spacing: 0;
}

h1 {
  max-width: 780px;
  margin: 0;
  color: var(--text);
  font-size: 5.4rem;
  font-weight: 900;
  line-height: 0.94;
  text-shadow: 0 0 28px rgba(0, 241, 210, 0.26);
  text-transform: uppercase;
}

.hero-text {
  max-width: 710px;
  margin: 18px 0 0;
  color: #c2d6ed;
  font-size: 1.18rem;
  line-height: 1.6;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 28px;
}

.hero-quick-links {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  max-width: 620px;
  margin-top: 14px;
}

.hero-quick-links a {
  display: inline-flex;
  align-items: center;
  min-height: 34px;
  padding: 0 11px;
  color: #dff8ff;
  background: rgba(0, 13, 22, 0.72);
  border: 1px solid rgba(0, 241, 210, 0.36);
  border-radius: 999px;
  font-size: 0.72rem;
  font-weight: 900;
  text-transform: uppercase;
}

.hero-quick-links a:hover,
.hero-quick-links a:focus-visible {
  color: var(--gold);
  border-color: var(--gold);
  outline: none;
}

.hero-media-stack {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.hero-video-frame {
  position: relative;
  overflow: hidden;
  min-height: 0;
  aspect-ratio: 1 / 1;
  background: #050b14;
  border: 1px solid rgba(114, 213, 226, 0.28);
  border-radius: 8px;
  box-shadow: 0 22px 54px rgba(0, 0, 0, 0.35);
}

.hero-video-frame video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.hero-video-frame::after {
  position: absolute;
  inset: auto 0 0;
  height: 40%;
  background: linear-gradient(transparent, rgba(2, 7, 14, 0.92));
  content: "";
}

.hero-video-label {
  position: absolute;
  right: 18px;
  bottom: 18px;
  left: 18px;
  z-index: 1;
}

.hero-video-label span,
.hero-video-label strong {
  display: block;
}

.hero-video-label span {
  color: #d8e7f8;
  font-size: 0.78rem;
  font-weight: 850;
  text-transform: uppercase;
}

.hero-video-label strong {
  margin-top: 4px;
  color: var(--gold);
  font-size: 1.15rem;
  font-weight: 950;
}

.hero-path-banner {
  padding: 14px;
  background:
    linear-gradient(135deg, rgba(255, 216, 75, 0.12), rgba(0, 241, 210, 0.08)),
    rgba(2, 9, 17, 0.86);
  border: 1px solid rgba(255, 216, 75, 0.28);
  border-radius: 8px;
  box-shadow: 0 0 24px rgba(0, 241, 210, 0.1);
}

.suidex-panel-head {
  display: grid;
  grid-template-columns: 72px minmax(0, 1fr);
  align-items: center;
  gap: 12px;
}

.suidex-panel-head img {
  width: 72px;
  height: 72px;
  border: 1px solid rgba(0, 241, 210, 0.32);
  border-radius: 8px;
  box-shadow:
    0 0 22px rgba(0, 241, 210, 0.18),
    0 0 26px rgba(186, 73, 255, 0.18);
  object-fit: cover;
}

.suidex-panel-head span {
  display: block;
  color: var(--gold);
  font-size: 0.76rem;
  font-weight: 950;
  text-transform: uppercase;
}

.suidex-panel-head p {
  margin: 6px 0 0;
  color: var(--muted);
  font-size: 0.86rem;
  line-height: 1.45;
}

.suidex-node {
  display: grid;
  grid-template-columns: 1fr;
  margin: 10px 0 0;
  padding: 10px 12px;
  background:
    linear-gradient(135deg, rgba(0, 241, 210, 0.13), rgba(255, 216, 75, 0.12)),
    rgba(0, 12, 20, 0.76);
  border: 1px solid rgba(0, 241, 210, 0.34);
  border-radius: 8px;
  box-shadow:
    inset 0 0 0 1px rgba(255, 255, 255, 0.02),
    0 0 24px rgba(0, 241, 210, 0.1);
}

.suidex-node span,
.suidex-node strong {
  display: block;
}

.suidex-node span {
  color: var(--cyan);
  font-size: 0.72rem;
  font-weight: 950;
  text-transform: uppercase;
}

.suidex-node strong {
  margin-top: 3px;
  color: var(--text);
  font-size: 1.05rem;
  font-weight: 950;
}

.suidex-actions {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}

.suidex-actions a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 38px;
  padding: 0 12px;
  color: #061017;
  background: linear-gradient(180deg, #ffe36a, #ffbd36);
  border: 1px solid rgba(255, 216, 75, 0.86);
  border-radius: 999px;
  box-shadow: 0 0 18px rgba(255, 216, 75, 0.26);
  font-size: 0.72rem;
  font-weight: 950;
  text-transform: uppercase;
  white-space: nowrap;
}

.suidex-actions a.suidex-secondary {
  color: #dff8ff;
  background: rgba(0, 13, 22, 0.72);
  border-color: rgba(0, 241, 210, 0.45);
  box-shadow: 0 0 18px rgba(0, 241, 210, 0.14);
}

.suidex-actions a:hover,
.suidex-actions a:focus-visible {
  border-color: var(--cyan);
  box-shadow: 0 0 24px rgba(0, 241, 210, 0.22);
  outline: none;
}

.suidex-actions a.suidex-secondary:hover,
.suidex-actions a.suidex-secondary:focus-visible {
  color: var(--gold);
  border-color: var(--gold);
}

.shop-section,
.access-section {
  margin-top: 22px;
  padding: 26px;
  background: var(--panel);
  border: 1px solid rgba(114, 213, 226, 0.22);
  border-radius: 8px;
  box-shadow: var(--shadow);
  backdrop-filter: blur(16px);
}

.section-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 18px;
}

.section-heading h2 {
  margin: 0;
  color: var(--text);
  font-size: 1.9rem;
  font-weight: 900;
}

.section-heading.compact {
  margin-bottom: 16px;
}

.shop-actions {
  display: flex;
  gap: 10px;
  align-items: center;
}

.icon-button {
  width: 42px;
  height: 42px;
  padding: 0;
  background: rgba(0, 13, 22, 0.72);
}

.icon-button svg {
  width: 19px;
  height: 19px;
}

.acquisition-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin-bottom: 16px;
}

.acquisition-card {
  min-width: 0;
  padding: 18px;
  background:
    linear-gradient(135deg, rgba(0, 241, 210, 0.08), transparent 56%),
    var(--panel-strong);
  border: 1px solid rgba(114, 213, 226, 0.22);
  border-radius: 8px;
}

.acquisition-card.accent {
  position: relative;
  background:
    linear-gradient(135deg, rgba(255, 216, 75, 0.13), rgba(0, 241, 210, 0.06)),
    var(--panel-strong);
  border-color: rgba(255, 216, 75, 0.36);
  box-shadow: 0 0 32px rgba(255, 216, 75, 0.16);
}

.acquisition-card.accent::before {
  position: absolute;
  inset: 0;
  border-radius: 8px;
  border: 1px solid rgba(255, 216, 75, 0.42);
  box-shadow: inset 0 0 0 1px rgba(255, 216, 75, 0.1);
  content: "";
  pointer-events: none;
}

.acquisition-card.accent:focus {
  outline: none;
}

.acquisition-card.accent:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 4px;
}

.acquisition-card.accent.is-route-focused {
  animation: mint-route-focus 1.55s ease-out;
}

@keyframes mint-route-focus {
  0% {
    border-color: rgba(255, 216, 75, 0.9);
    box-shadow:
      0 0 0 0 rgba(255, 216, 75, 0.42),
      0 0 32px rgba(255, 216, 75, 0.2);
  }

  52% {
    border-color: rgba(0, 241, 210, 0.65);
    box-shadow:
      0 0 0 7px rgba(0, 241, 210, 0.1),
      0 0 34px rgba(0, 241, 210, 0.18);
  }

  100% {
    border-color: rgba(255, 216, 75, 0.36);
    box-shadow: 0 0 32px rgba(255, 216, 75, 0.16);
  }
}

.acquisition-card span {
  display: block;
  color: var(--cyan);
  font-size: 0.78rem;
  font-weight: 950;
  text-transform: uppercase;
}

.acquisition-card h3 {
  margin: 9px 0 0;
  color: var(--text);
  font-size: 1.18rem;
  font-weight: 950;
  line-height: 1.18;
}

.acquisition-card p {
  margin: 10px 0 0;
  color: var(--muted);
  line-height: 1.5;
}

.acquisition-card .button {
  margin-top: 16px;
}

.wallet-picker {
  position: relative;
  z-index: 1;
  margin-top: 18px;
  padding: 14px;
  background:
    linear-gradient(135deg, rgba(0, 241, 210, 0.08), rgba(255, 216, 75, 0.08)),
    rgba(0, 10, 18, 0.72);
  border: 1px solid rgba(0, 241, 210, 0.24);
  border-radius: 8px;
}

.top-wallet-strip {
  display: flex;
  align-items: center;
  gap: 6px;
  flex: 0 1 auto;
  width: auto;
  max-width: 430px;
  margin-top: 0;
  padding: 5px 6px;
  background: rgba(0, 10, 18, 0.74);
  border-color: rgba(0, 241, 210, 0.3);
  border-radius: 999px;
  box-shadow: 0 0 22px rgba(0, 241, 210, 0.08);
}

.sale-pool-summary {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
  margin-top: 16px;
}

.sale-pool-summary > div,
.sale-pool-card {
  min-width: 0;
  background: rgba(1, 10, 18, 0.82);
  border: 1px solid rgba(114, 213, 226, 0.22);
  border-radius: 8px;
}

.sale-pool-summary > div {
  padding: 12px;
}

.sale-pool-summary span,
.sale-pool-card span {
  display: block;
  color: var(--cyan);
  font-size: 0.7rem;
  font-weight: 950;
  text-transform: uppercase;
}

.sale-pool-summary strong,
.sale-pool-card strong {
  display: block;
  margin-top: 5px;
  color: var(--gold);
  font-size: 1rem;
  font-weight: 950;
  line-height: 1.15;
}

.sale-pool-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
  margin-top: 8px;
}

.sale-pool-card {
  padding: 12px;
}

.sale-pool-card.is-active {
  border-color: rgba(255, 216, 75, 0.5);
  box-shadow: 0 0 20px rgba(255, 216, 75, 0.14);
}

.sale-pool-card p,
.sale-pool-card small {
  display: block;
  margin: 7px 0 0;
  color: var(--muted);
  font-size: 0.78rem;
  line-height: 1.35;
}

.sale-pool-card small {
  overflow-wrap: anywhere;
  color: #d3e7fb;
}

.wallet-picker span,
.wallet-picker strong {
  display: initial;
  text-transform: none;
}

.wallet-picker-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.top-wallet-strip .wallet-picker-head {
  flex: 0 0 auto;
  justify-content: flex-start;
  gap: 6px;
  min-height: 30px;
  padding: 0 4px;
}

.wallet-picker-head span {
  color: var(--gold);
  font-size: 0.76rem;
  font-weight: 950;
  text-transform: uppercase;
}

.top-wallet-strip .wallet-picker-head span {
  font-size: 0.62rem;
}

.wallet-picker-head strong {
  color: #dff8ff;
  font-size: 0.84rem;
  font-weight: 850;
}

.top-wallet-strip .wallet-picker-head strong {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  clip-path: inset(50%);
}

.wallet-options {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
  margin-top: 12px;
}

.top-wallet-strip .wallet-options {
  display: flex;
  flex: 1 1 auto;
  gap: 4px;
  min-width: 0;
  margin-top: 0;
}

.wallet-option {
  display: flex;
  align-items: center;
  gap: 9px;
  min-width: 0;
  min-height: 48px;
  padding: 8px 10px;
  color: #dff8ff;
  background: rgba(1, 10, 18, 0.88);
  border: 1px solid rgba(114, 213, 226, 0.26);
  border-radius: 8px;
  cursor: pointer;
  font-weight: 900;
  text-align: left;
  transition:
    border-color 160ms ease,
    box-shadow 160ms ease,
    transform 160ms ease,
    background 160ms ease;
}

.top-wallet-strip .wallet-option {
  flex: 0 1 auto;
  gap: 4px;
  min-height: 30px;
  padding: 0 7px;
  border-radius: 999px;
  font-size: 0.66rem;
}

.wallet-option:hover,
.wallet-option:focus-visible {
  border-color: rgba(0, 241, 210, 0.58);
  box-shadow: 0 0 18px rgba(0, 241, 210, 0.16);
  outline: none;
  transform: translateY(-1px);
}

.wallet-option.is-selected {
  color: #061017;
  background: linear-gradient(180deg, #ffe36a, #ffbd36);
  border-color: rgba(255, 216, 75, 0.86);
  box-shadow: 0 0 22px rgba(255, 216, 75, 0.26);
}

.wallet-icon {
  display: inline-grid;
  flex: 0 0 30px;
  width: 30px;
  height: 30px;
  place-items: center;
  color: var(--gold);
  background: rgba(0, 241, 210, 0.1);
  border: 1px solid rgba(0, 241, 210, 0.28);
  border-radius: 50%;
  font-size: 0.62rem;
  font-weight: 950;
  line-height: 1;
}

.wallet-icon-image {
  overflow: hidden;
  padding: 2px;
  background: rgba(244, 251, 255, 0.08);
}

.wallet-icon img {
  display: block;
  width: 100%;
  height: 100%;
  border-radius: 50%;
  object-fit: contain;
}

.top-wallet-strip .wallet-icon {
  flex-basis: 18px;
  width: 18px;
  height: 18px;
  font-size: 0.44rem;
}

.top-wallet-strip .wallet-icon-image {
  padding: 1px;
}

.wallet-option.is-selected .wallet-icon {
  color: #061017;
  background: rgba(6, 16, 23, 0.14);
  border-color: rgba(6, 16, 23, 0.24);
}

.wallet-option span:last-child {
  overflow-wrap: anywhere;
}

.top-wallet-strip .wallet-option span:last-child {
  overflow-wrap: normal;
  white-space: nowrap;
}

.mint-now-button {
  width: 100%;
  min-height: 48px;
  font-size: 0.86rem;
}

.top-wallet-strip .wallet-connect-button {
  flex: 0 0 auto;
  width: auto;
  min-height: 30px;
  padding: 0 10px;
  border-radius: 999px;
  font-size: 0.66rem;
}

.wallet-connected-summary {
  margin: 10px 0 0;
  color: var(--cyan);
  font-size: 0.82rem;
  font-weight: 900;
  line-height: 1.35;
}

.top-wallet-strip .wallet-connected-summary {
  flex: 0 1 auto;
  min-width: 112px;
  margin: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 0.66rem;
}

.wallet-balance-summary {
  margin: 12px 0 0;
  padding: 10px 12px;
  color: #d3e7fb;
  background: rgba(1, 10, 18, 0.82);
  border: 1px solid rgba(114, 213, 226, 0.22);
  border-radius: 8px;
  font-size: 0.84rem;
  font-weight: 850;
  line-height: 1.35;
}

.wallet-balance-summary.is-ready {
  color: var(--cyan);
  border-color: rgba(0, 241, 210, 0.34);
}

.wallet-balance-summary.is-warning {
  color: var(--gold);
  border-color: rgba(255, 216, 75, 0.42);
}

.wallet-balance-summary.is-error {
  color: #ffb0a8;
  border-color: rgba(255, 176, 168, 0.34);
}

.wallet-disconnect-button {
  width: 100%;
  min-height: 42px;
  margin-top: 8px;
  font-size: 0.78rem;
}

.top-wallet-strip .wallet-disconnect-button {
  flex: 0 0 auto;
  width: auto;
  min-height: 30px;
  margin-top: 0;
  padding: 0 10px;
  border-radius: 999px;
  font-size: 0.66rem;
}

.wallet-connect-button:disabled {
  color: rgba(244, 251, 255, 0.62);
  background: rgba(8, 15, 24, 0.86);
  border-color: rgba(114, 213, 226, 0.18);
  box-shadow: none;
  cursor: not-allowed;
  transform: none;
}

[data-mint-trigger].is-disabled {
  opacity: 0.62;
  cursor: not-allowed;
}

.wallet-picker-status {
  margin: 10px 0 0;
  color: var(--muted);
  font-size: 0.82rem;
  line-height: 1.4;
}

.top-wallet-strip .wallet-picker-status {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  clip-path: inset(50%);
}

.wallet-picker-status.is-ready {
  color: var(--cyan);
}

.wallet-picker-status.is-connecting {
  color: var(--gold);
}

.wallet-picker-status.is-error,
.wallet-modal-status.is-error {
  color: #ffb0a8;
}

.mint-contract-status {
  margin: 8px 0 0;
  color: #d3e7fb;
  font-size: 0.78rem;
  line-height: 1.4;
}

.mint-contract-status a {
  color: var(--gold);
  font-weight: 900;
}

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

.wallet-modal {
  position: fixed;
  z-index: 50;
  inset: 0;
  display: grid;
  place-items: center;
  padding: 20px;
}

.wallet-modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 7, 12, 0.78);
  backdrop-filter: blur(7px);
}

.wallet-dialog {
  position: relative;
  z-index: 1;
  width: min(430px, 100%);
  padding: 20px;
  color: var(--text);
  background:
    linear-gradient(135deg, rgba(0, 241, 210, 0.12), rgba(255, 216, 75, 0.08)),
    #061017;
  border: 1px solid rgba(0, 241, 210, 0.34);
  border-radius: 8px;
  box-shadow: 0 24px 80px rgba(0, 0, 0, 0.48);
  outline: none;
}

.wallet-modal-close {
  position: absolute;
  top: 12px;
  right: 12px;
}

.wallet-dialog-head span {
  color: var(--gold);
  font-size: 0.74rem;
  font-weight: 950;
  text-transform: uppercase;
}

.wallet-dialog-head h2 {
  margin: 5px 44px 0 0;
  font-size: 1.25rem;
  line-height: 1.15;
}

.wallet-modal-status {
  margin-top: 10px;
  color: var(--muted);
  font-size: 0.9rem;
  line-height: 1.45;
}

.wallet-modal-status.is-ready {
  color: var(--cyan);
}

.wallet-modal-options {
  display: grid;
  gap: 8px;
  margin-top: 16px;
}

.wallet-modal-option {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  min-height: 52px;
  padding: 10px 12px;
  color: #dff8ff;
  background: rgba(1, 10, 18, 0.9);
  border: 1px solid rgba(114, 213, 226, 0.28);
  border-radius: 8px;
  cursor: pointer;
  font-weight: 900;
  text-align: left;
}

.wallet-modal-option:hover,
.wallet-modal-option:focus-visible,
.wallet-modal-option.is-selected {
  border-color: rgba(255, 216, 75, 0.72);
  box-shadow: 0 0 20px rgba(255, 216, 75, 0.18);
  outline: none;
}

.wallet-empty-state {
  padding: 14px;
  background: rgba(1, 10, 18, 0.78);
  border: 1px solid rgba(255, 176, 168, 0.34);
  border-radius: 8px;
}

.wallet-empty-state strong {
  display: block;
  color: #ffddd9;
}

.wallet-empty-state p {
  margin: 6px 0 0;
  color: var(--muted);
  font-size: 0.88rem;
  line-height: 1.4;
}

.top-wallet-strip .mint-contract-status {
  display: none;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
  margin-bottom: 16px;
}

.stat-card {
  min-height: 104px;
  padding: 18px;
  background: var(--panel-strong);
  border: 1px solid rgba(114, 213, 226, 0.2);
  border-radius: 8px;
}

.stat-card span {
  display: block;
  color: #aac0d8;
  font-size: 0.78rem;
  font-weight: 700;
}

.stat-card strong {
  display: block;
  margin-top: 10px;
  color: var(--gold);
  font-size: 1.55rem;
  font-weight: 900;
  line-height: 1;
}

.shop-toolbar {
  display: grid;
  grid-template-columns: minmax(220px, 0.8fr) minmax(0, 1.2fr);
  gap: 12px;
  align-items: center;
}

.search-box {
  display: flex;
  align-items: center;
  min-height: 46px;
  padding: 0 14px;
  background: rgba(1, 10, 18, 0.84);
  border: 1px solid rgba(114, 213, 226, 0.25);
  border-radius: 8px;
}

.search-box svg {
  flex: 0 0 18px;
  width: 18px;
  height: 18px;
  margin-right: 10px;
  color: var(--cyan);
}

.search-box input {
  width: 100%;
  min-width: 0;
  color: var(--text);
  background: transparent;
  border: 0;
  outline: 0;
}

.search-box input::placeholder {
  color: #71879f;
}

.rarity-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: flex-end;
}

.filter-button {
  min-height: 38px;
  padding: 0 14px;
  color: #c8d9ee;
  font-size: 0.76rem;
  font-weight: 800;
}

.filter-button.is-active {
  border-color: var(--gold);
  background: rgba(255, 216, 75, 0.14);
  color: var(--gold);
}

.status-line {
  min-height: 24px;
  margin: 14px 0;
  color: var(--muted);
  font-size: 0.88rem;
}

.status-line.error {
  color: var(--danger);
}

.listing-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
}

.listing-card {
  min-width: 0;
  overflow: hidden;
  background: var(--panel-strong);
  border: 1px solid rgba(114, 213, 226, 0.22);
  border-radius: 8px;
  transition:
    transform 160ms ease,
    border-color 160ms ease,
    box-shadow 160ms ease;
}

.listing-card:hover,
.listing-card:focus-within {
  transform: translateY(-2px);
  border-color: rgba(0, 241, 210, 0.5);
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.34);
}

.listing-media {
  position: relative;
  aspect-ratio: 1 / 1;
  background:
    linear-gradient(135deg, rgba(0, 241, 210, 0.16), transparent),
    #06101a;
}

.listing-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.rarity-badge {
  position: absolute;
  top: 10px;
  right: 10px;
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 0 10px;
  color: #061017;
  background: var(--gold);
  border-radius: 999px;
  font-size: 0.72rem;
  font-weight: 900;
}

.listing-body {
  padding: 14px;
}

.listing-title {
  margin: 0;
  color: var(--text);
  font-size: 1rem;
  font-weight: 900;
  line-height: 1.25;
}

.listing-meta {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  margin-top: 9px;
  color: var(--muted);
  font-size: 0.82rem;
}

.price-line {
  margin: 14px 0 0;
  color: var(--gold);
  font-size: 1.18rem;
  font-weight: 900;
}

.listing-card .button {
  width: 100%;
  margin-top: 14px;
}

.empty-state {
  grid-column: 1 / -1;
  padding: 30px;
  color: var(--muted);
  background: rgba(2, 9, 17, 0.72);
  border: 1px solid rgba(114, 213, 226, 0.22);
  border-radius: 8px;
}

.empty-state strong {
  display: block;
  margin-bottom: 7px;
  color: var(--text);
  font-size: 1.1rem;
}

.access-section {
  border-color: rgba(123, 74, 237, 0.5);
  background:
    radial-gradient(circle at 72% 18%, rgba(99, 55, 184, 0.18), transparent 25%),
    linear-gradient(100deg, rgba(3, 28, 24, 0.82), rgba(8, 10, 28, 0.92)),
    var(--panel);
}

.access-heading {
  max-width: 900px;
  margin-bottom: 20px;
}

.access-heading h2 {
  max-width: 780px;
  margin: 0;
  color: var(--text);
  font-size: 3.2rem;
  font-weight: 950;
  line-height: 1.02;
}

.access-heading p:last-child {
  max-width: 880px;
  margin: 12px 0 0;
  color: var(--muted);
  font-size: 1rem;
  font-weight: 750;
  line-height: 1.5;
}

.access-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}

.access-card {
  min-width: 0;
  overflow: hidden;
  background: rgba(8, 11, 31, 0.86);
  border: 1px solid rgba(129, 74, 237, 0.6);
  border-radius: 8px;
}

.access-card img {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  background: #050a15;
}

.access-card img.access-image-contain {
  object-fit: contain;
}

.access-card-body {
  padding: 18px;
}

.access-card-body span {
  display: block;
  margin-bottom: 8px;
  color: var(--cyan);
  font-size: 0.78rem;
  font-weight: 950;
  text-transform: uppercase;
}

.access-card-body h3 {
  margin: 0;
  color: var(--text);
  font-size: 1.7rem;
  font-weight: 950;
  line-height: 1.08;
}

.access-card-body p {
  margin: 8px 0 0;
  color: var(--muted);
  line-height: 1.55;
}

.access-card-body .button {
  margin-top: 14px;
}

.site-footer {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  width: min(var(--max), calc(100% - 32px));
  margin: 0 auto 30px;
  color: #a8bed4;
  font-size: 0.85rem;
}

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

@media (max-width: 1120px) {
  .site-nav {
    gap: 14px;
    font-size: 0.74rem;
  }

  .top-wallet-strip {
    max-width: 410px;
  }
}

@media (max-width: 980px) {
  .site-header {
    grid-template-columns: 1fr auto;
  }

  .site-nav {
    display: none;
  }

  .top-wallet-strip {
    max-width: 430px;
  }

  .hero {
    grid-template-columns: 1fr;
    min-height: auto;
  }

  .hero-media-stack {
    max-width: 620px;
    width: 100%;
  }

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

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

  .shop-toolbar {
    grid-template-columns: 1fr;
  }

  .rarity-filters {
    justify-content: flex-start;
  }
}

@media (max-width: 720px) {
  .site-header,
  main,
  .site-footer {
    width: min(100% - 20px, var(--max));
  }

  .site-header {
    grid-template-columns: 1fr;
    top: 8px;
    align-items: stretch;
    gap: 12px;
    padding: 10px;
  }

  .header-tools {
    width: 100%;
    justify-self: stretch;
  }

  .brand-mark {
    flex-basis: 40px;
    width: 40px;
    height: 40px;
  }

  .brand strong {
    font-size: 0.95rem;
  }

  .brand small {
    display: none;
  }

  .header-action {
    display: none;
  }

  .top-wallet-strip {
    width: 100%;
  }

  .top-wallet-strip .wallet-picker-head {
    flex: 1 1 auto;
  }

  .hero,
  .shop-section,
  .access-section {
    padding: 18px;
  }

  h1 {
    font-size: 3.2rem;
  }

  .hero-panel-logo {
    width: 132px;
    height: 132px;
  }

  .hero-panel-logo img {
    width: 114px;
    height: 114px;
  }

  .hero-pillars {
    font-size: 0.82rem;
  }

  .hero-text {
    max-width: 100%;
    font-size: 1rem;
  }

  .hero-actions {
    width: 100%;
  }

  .hero-actions .button {
    width: 100%;
    max-width: 320px;
    min-height: 44px;
    padding: 0 14px;
    font-size: 0.76rem;
  }

  .hero-video-frame {
    width: 100%;
    min-height: 0;
    aspect-ratio: 16 / 10;
  }

  .hero-quick-links a {
    flex: 1 1 130px;
    justify-content: center;
  }

  .suidex-node {
    grid-template-columns: 1fr;
  }

  .suidex-panel-head {
    grid-template-columns: 58px minmax(0, 1fr);
  }

  .suidex-panel-head img {
    width: 58px;
    height: 58px;
  }

  .suidex-actions {
    grid-template-columns: 1fr;
  }

  .suidex-actions a {
    width: 100%;
  }

  .section-heading,
  .site-footer {
    align-items: flex-start;
    flex-direction: column;
  }

  .section-heading h2 {
    font-size: 1.45rem;
  }

  .access-heading h2 {
    font-size: 2.25rem;
  }

  .stats-grid,
  .acquisition-grid,
  .sale-pool-summary,
  .sale-pool-grid,
  .access-grid,
  .listing-grid {
    grid-template-columns: 1fr;
  }

  .stat-card {
    min-height: 84px;
  }

  .rarity-filters {
    overflow-x: auto;
    flex-wrap: nowrap;
    padding-bottom: 3px;
  }

  .filter-button {
    flex: 0 0 auto;
  }
}

@media (max-width: 520px) {
  .top-wallet-strip {
    flex-wrap: wrap;
    border-radius: 16px;
  }

  .top-wallet-strip .wallet-options {
    order: 2;
    flex-basis: 100%;
  }

  .top-wallet-strip .wallet-option {
    flex: 1 1 62px;
    justify-content: center;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation: none !important;
    scroll-behavior: auto !important;
    transition: none !important;
  }
}
