:root {
  --bg: #080b13;
  --panel: rgba(16, 21, 31, 0.9);
  --panel-strong: #141b29;
  --line: rgba(255, 222, 107, 0.35);
  --text: #fff7db;
  --muted: #b9c1d7;
  --gold: #f3bd39;
  --gold-light: #ffe76f;
  --cyan: #65e0ff;
  --grass: #61d466;
  --green: #56e39f;
  --red: #ff7878;
  --pixel: 4px;
  --shadow: 8px 8px 0 rgba(0, 0, 0, 0.42);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: Inter, "Microsoft YaHei", "PingFang SC", system-ui, sans-serif;
  color: var(--text);
  background:
    linear-gradient(rgba(255, 255, 255, 0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.035) 1px, transparent 1px),
    radial-gradient(circle at 18% 0%, rgba(101, 224, 255, 0.16), transparent 26%),
    radial-gradient(circle at 78% 10%, rgba(243, 189, 57, 0.18), transparent 24%),
    linear-gradient(180deg, #0b1020, var(--bg) 48%, #05070d);
  background-size: 32px 32px, 32px 32px, auto, auto, auto;
}

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

.site-frame {
  min-height: 100vh;
  overflow: hidden;
}

.intro-overlay {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: grid;
  place-items: center;
  overflow: hidden;
  background: #030712;
}

.intro-overlay.is-exiting {
  opacity: 0;
  transform: scale(1.03);
  transition: opacity 0.42s ease, transform 0.42s ease;
  pointer-events: none;
}

.intro-video,
.intro-shade {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.intro-video {
  object-fit: cover;
  image-rendering: pixelated;
}

.intro-shade {
  background:
    linear-gradient(180deg, rgba(3, 7, 18, 0.05), rgba(3, 7, 18, 0.58)),
    linear-gradient(90deg, rgba(3, 7, 18, 0.35), transparent 35%, rgba(3, 7, 18, 0.32));
}

.intro-copy {
  position: relative;
  z-index: 1;
  display: grid;
  justify-items: center;
  gap: 10px;
  padding: 22px;
  text-align: center;
  text-shadow: 5px 5px 0 #000;
}

.intro-copy p {
  margin: 0;
  color: var(--cyan);
  font-size: 14px;
  font-weight: 900;
  letter-spacing: 0.18em;
}

.intro-copy h2 {
  margin: 0 0 8px;
  color: var(--gold-light);
  font-size: clamp(58px, 11vw, 148px);
  line-height: 0.95;
}

.intro-skip,
.intro-sound {
  min-height: 42px;
  padding: 0 14px;
  border: var(--pixel) solid rgba(255, 231, 111, 0.55);
  border-radius: 0;
  color: #171005;
  background: var(--gold-light);
  box-shadow: 5px 5px 0 #000;
  font: inherit;
  font-weight: 900;
  cursor: pointer;
}

.intro-sound {
  color: var(--text);
  background: #111827;
}

.topbar {
  position: fixed;
  inset: 0 0 auto;
  z-index: 30;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px clamp(18px, 5vw, 64px);
  background: rgba(8, 11, 19, 0.92);
  border-bottom: var(--pixel) solid rgba(255, 231, 111, 0.2);
  backdrop-filter: blur(8px);
}

.brand,
.topnav {
  display: flex;
  align-items: center;
}

.brand {
  gap: 12px;
  font-size: 22px;
  font-weight: 900;
  letter-spacing: 0;
}

.brand-orb {
  display: grid;
  width: 44px;
  height: 44px;
  place-items: center;
  border: var(--pixel) solid #111827;
  border-radius: 0;
  color: #1b1204;
  background:
    linear-gradient(135deg, #fff1a5 0 25%, var(--gold-light) 25% 50%, var(--gold) 50% 75%, #a36b17 75%);
  font-size: 18px;
  font-weight: 900;
  box-shadow: 4px 4px 0 #000;
}

.topnav {
  gap: 28px;
  color: var(--muted);
  font-size: 14px;
  font-weight: 800;
}

.topnav a:hover {
  color: var(--gold-light);
}

.wallet-connect {
  display: flex;
  align-items: center;
  gap: 8px;
}

.wallet-btn {
  min-height: 40px;
  padding: 0 12px;
  border: var(--pixel) solid rgba(255, 231, 111, 0.45);
  border-radius: 0;
  color: #151007;
  background: var(--gold-light);
  box-shadow: 4px 4px 0 #000;
  font: inherit;
  font-size: 13px;
  font-weight: 900;
  cursor: pointer;
}

.wallet-status {
  min-width: 92px;
  padding: 8px 9px;
  border: 3px solid rgba(101, 224, 255, 0.35);
  color: var(--muted);
  background: rgba(0, 0, 0, 0.22);
  font-size: 12px;
  font-weight: 900;
  text-align: center;
}

.wallet-status.is-connected {
  color: var(--green);
  border-color: rgba(86, 227, 159, 0.55);
}

.top-x,
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  border: var(--pixel) solid var(--line);
  border-radius: 0;
  font-weight: 900;
}

.top-x {
  width: 44px;
  color: #151007;
  background: var(--gold-light);
  box-shadow: 4px 4px 0 #000;
}

.hero {
  position: relative;
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 116px clamp(18px, 5vw, 72px) 58px;
}

.hero::before {
  position: absolute;
  inset: 11% 7% auto;
  height: 72vh;
  content: "";
  border: var(--pixel) solid rgba(255, 231, 111, 0.12);
  border-radius: 0;
  opacity: 0.5;
}

.pitch-mark {
  position: absolute;
  inset: 17% auto auto 50%;
  width: min(76vw, 920px);
  aspect-ratio: 1;
  transform: translateX(-50%);
  border: var(--pixel) solid rgba(97, 212, 102, 0.18);
  border-radius: 0;
  box-shadow: inset 0 0 0 24px rgba(97, 212, 102, 0.04);
}

.hero-inner {
  position: relative;
  z-index: 2;
  width: min(1180px, 100%);
  max-width: 1180px;
  text-align: center;
}

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

h1,
h2,
h3,
p {
  margin-top: 0;
}

.hero-title {
  margin: 0 auto 18px;
  max-width: 980px;
  font-size: clamp(66px, 13vw, 152px);
  line-height: 0.95;
  letter-spacing: 0;
  text-shadow:
    6px 6px 0 #101827,
    10px 10px 0 rgba(0, 0, 0, 0.75);
}

.hero-copy {
  max-width: 780px;
  margin: 0 auto 22px;
  color: rgba(255, 244, 220, 0.78);
  font-size: clamp(16px, 2vw, 21px);
  line-height: 1.8;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
  margin-bottom: 28px;
}

.btn {
  padding: 0 18px;
  color: var(--text);
  background: #111827;
  box-shadow: 5px 5px 0 #000;
}

.btn-primary {
  color: #1d1405;
  border-color: transparent;
  background: var(--gold-light);
}

.hero-stats {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1px;
  margin: 24px auto 20px;
  max-width: 920px;
  border: var(--pixel) solid var(--line);
  background: var(--line);
  box-shadow: var(--shadow);
}

.hero-stats div {
  padding: 18px 14px;
  background: rgba(10, 16, 29, 0.92);
}

.hero-stats span,
.player-card-meta span,
.profile-stats span,
.vault-cards span {
  display: block;
  color: var(--muted);
  font-size: 12px;
}

.hero-stats strong {
  display: block;
  margin-top: 4px;
  color: var(--gold-light);
  font-size: clamp(15px, 1.55vw, 21px);
  line-height: 1.2;
  overflow-wrap: anywhere;
}

.countdown {
  max-width: 680px;
  margin: 0 auto;
  padding: 18px;
  border: var(--pixel) solid var(--line);
  border-radius: 0;
  background: rgba(16, 21, 31, 0.92);
  box-shadow: var(--shadow);
}

.countdown-kicker {
  margin-bottom: 4px;
  color: var(--gold-light);
  font-weight: 900;
}

.countdown-match {
  margin-bottom: 12px;
  color: var(--muted);
  font-size: 13px;
}

.countdown-grid {
  display: grid;
  grid-template-columns: 1fr auto 1fr auto 1fr auto 1fr;
  gap: 8px;
  align-items: center;
}

.countdown-grid div {
  padding: 12px 8px;
  border: 2px solid rgba(255, 255, 255, 0.08);
  border-radius: 0;
  background: rgba(0, 0, 0, 0.22);
}

.countdown-grid strong {
  display: block;
  color: var(--gold-light);
  font-size: 28px;
}

.countdown-grid span {
  color: var(--muted);
  font-size: 12px;
}

.hero-pixel-roster {
  display: grid;
  grid-template-columns: repeat(8, minmax(118px, 1fr));
  gap: 12px;
  margin: 24px auto 0;
  max-width: 1240px;
}

.floating-card {
  margin: 0;
  overflow: hidden;
  border: var(--pixel) solid rgba(255, 231, 111, 0.34);
  border-radius: 0;
  background: var(--panel);
  box-shadow: 5px 5px 0 rgba(0, 0, 0, 0.66);
}

.floating-card img,
.floating-card .image-missing {
  display: block;
  width: 100%;
  aspect-ratio: 1;
  height: auto;
  object-fit: contain;
  object-position: center;
  background:
    linear-gradient(45deg, rgba(255, 255, 255, 0.04) 25%, transparent 25% 50%, rgba(255, 255, 255, 0.04) 50% 75%, transparent 75%),
    #0a1020;
  background-size: 16px 16px;
  image-rendering: pixelated;
}

.floating-card figcaption {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 52px;
  padding: 8px 4px;
  border-top: 3px solid rgba(255, 231, 111, 0.24);
  text-align: center;
}

.floating-card .card-name {
  display: inline-block;
  max-width: 100%;
  color: var(--gold-light);
  font-size: 18px !important;
  line-height: 1.1;
  font-weight: 900;
  white-space: nowrap;
  word-break: keep-all;
  overflow-wrap: normal;
  letter-spacing: 0;
}

.section {
  padding: 90px clamp(18px, 5vw, 72px);
}

.container {
  max-width: 1280px;
  margin: 0 auto;
}

.section-head {
  margin-bottom: 28px;
}

.section-head h2 {
  margin: 0;
  font-size: clamp(32px, 5vw, 64px);
  line-height: 1;
}

.section-head-row {
  display: flex;
  justify-content: space-between;
  gap: 24px;
  align-items: end;
}

.section-head-row p:last-child {
  max-width: 430px;
  color: var(--muted);
  line-height: 1.7;
}

.mechanism {
  background: rgba(255, 255, 255, 0.025);
}

.mechanism-flow {
  display: grid;
  grid-template-columns: 1fr 74px 1fr 74px 1fr 74px 1fr;
  align-items: stretch;
  gap: 12px;
}

.flow-node {
  min-height: 170px;
  padding: 22px;
  border: var(--pixel) solid var(--line);
  border-radius: 0;
  background: var(--panel);
  box-shadow: 6px 6px 0 rgba(0, 0, 0, 0.42);
}

.flow-node span,
.flow-node small {
  color: var(--muted);
}

.flow-node strong {
  display: block;
  margin: 18px 0 10px;
  color: var(--gold-light);
  font-size: 22px;
}

.flow-rail {
  display: grid;
  place-items: center;
}

.flow-rail i {
  width: 100%;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--gold), transparent);
}

.search {
  width: 100%;
  min-height: 52px;
  margin-bottom: 22px;
  padding: 0 16px;
  border: var(--pixel) solid var(--line);
  border-radius: 0;
  color: var(--text);
  background: rgba(16, 21, 31, 0.92);
  font: inherit;
}

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

.player-card {
  position: relative;
  display: grid;
  min-height: 470px;
  overflow: hidden;
  border: var(--pixel) solid var(--line);
  border-radius: 0;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.07), rgba(255, 255, 255, 0.025));
  box-shadow: 7px 7px 0 rgba(0, 0, 0, 0.46);
}

.rank-badge {
  position: absolute;
  top: 12px;
  left: 12px;
  z-index: 3;
  min-width: 46px;
  padding: 7px 9px;
  border: 3px solid #111827;
  border-radius: 0;
  color: #1a1103;
  background: var(--gold-light);
  font-size: 13px;
  font-weight: 900;
  text-align: center;
}

.player-photo {
  position: relative;
  height: auto;
  aspect-ratio: 1;
  overflow: hidden;
  background:
    linear-gradient(45deg, rgba(255, 255, 255, 0.04) 25%, transparent 25% 50%, rgba(255, 255, 255, 0.04) 50% 75%, transparent 75%),
    #0a1020;
  background-size: 18px 18px;
}

.player-photo::after,
.profile-image::after {
  display: none;
}

.player-photo img,
.profile-image img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center;
  image-rendering: pixelated;
}

img.missing {
  display: none;
}

.image-missing {
  display: grid;
  place-items: center;
  gap: 8px;
  padding: 18px;
  text-align: center;
  background:
    linear-gradient(45deg, rgba(255, 255, 255, 0.04) 25%, transparent 25% 50%, rgba(255, 255, 255, 0.04) 50% 75%, transparent 75%),
    #0a1020;
  background-size: 18px 18px;
}

.image-missing strong {
  color: var(--gold-light);
  font-size: 42px;
}

.image-missing span {
  color: var(--muted);
  font-size: 12px;
  line-height: 1.5;
  overflow-wrap: anywhere;
}

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

.player-symbol {
  color: var(--gold-light);
  font-size: 12px;
  font-weight: 900;
}

.player-card h3 {
  margin: 8px 0;
  font-size: clamp(18px, 1.55vw, 24px);
  line-height: 1.2;
  overflow-wrap: anywhere;
}

.player-card p {
  color: var(--muted);
}

.player-card-meta {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  margin-top: 18px;
}

.player-card-meta div,
.profile-stats div,
.vault-cards div {
  padding: 12px;
  border: 3px solid rgba(255, 255, 255, 0.08);
  border-radius: 0;
  background: rgba(0, 0, 0, 0.22);
}

.player-card-meta strong,
.profile-stats strong,
.vault-cards strong {
  display: block;
  margin-top: 4px;
  color: var(--text);
}

.up {
  color: var(--green) !important;
}

.down {
  color: var(--red) !important;
}

.player-vault-flow {
  align-self: end;
  padding: 12px 18px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  color: var(--muted);
  font-size: 12px;
}

.asset-note {
  margin: 18px 0 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.7;
}

.asset-note code {
  color: var(--gold-light);
}

.detail-page {
  padding: 120px clamp(18px, 5vw, 72px) 80px;
}

.back-link {
  display: inline-flex;
  margin-bottom: 22px;
  color: var(--gold-light);
  font-weight: 900;
}

.detail-grid {
  display: grid;
  grid-template-columns: minmax(280px, 420px) minmax(0, 1fr);
  gap: 22px;
}

.player-profile,
.detail-panel {
  border: var(--pixel) solid var(--line);
  border-radius: 0;
  background: var(--panel);
  box-shadow: var(--shadow);
}

.profile-image {
  position: relative;
  height: auto;
  aspect-ratio: 1;
  overflow: hidden;
  border-radius: 0;
  background:
    linear-gradient(45deg, rgba(255, 255, 255, 0.04) 25%, transparent 25% 50%, rgba(255, 255, 255, 0.04) 50% 75%, transparent 75%),
    #0a1020;
  background-size: 20px 20px;
}

.profile-body,
.detail-panel {
  padding: 24px;
}

.profile-body h1,
.detail-panel h2 {
  margin-bottom: 10px;
  font-size: clamp(32px, 5vw, 56px);
  line-height: 1;
}

.profile-body p,
.detail-panel p {
  color: var(--muted);
  line-height: 1.8;
}

.profile-stats,
.vault-cards {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin-top: 18px;
}

.address-box {
  margin-top: 22px;
  padding: 18px;
  border: var(--pixel) solid var(--line);
  border-radius: 0;
  background: rgba(0, 0, 0, 0.2);
}

.address-box span {
  display: block;
  margin-bottom: 8px;
  color: var(--muted);
  font-size: 12px;
}

.address-box code {
  overflow-wrap: anywhere;
  color: var(--gold-light);
}

.footer {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding: 28px clamp(18px, 5vw, 72px);
  border-top: var(--pixel) solid rgba(255, 231, 111, 0.2);
  color: var(--muted);
}

.footer strong {
  color: var(--text);
}

.empty-state {
  grid-column: 1 / -1;
  padding: 30px;
  border: var(--pixel) solid var(--line);
  border-radius: 0;
  color: var(--muted);
  text-align: center;
}

@media (max-width: 1100px) {
  .hero-pixel-roster {
    grid-template-columns: repeat(4, minmax(92px, 1fr));
    max-width: 620px;
  }

  .mechanism-flow {
    grid-template-columns: 1fr;
  }

  .flow-rail {
    display: none;
  }

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

@media (max-width: 760px) {
  .topbar {
    padding: 12px 16px;
  }

  .topnav {
    display: none;
  }

  .wallet-connect {
    gap: 5px;
  }

  .wallet-btn {
    min-height: 36px;
    padding: 0 8px;
    font-size: 12px;
  }

  .wallet-status {
    display: none;
  }

  .hero {
    min-height: auto;
  }

  .hero-pixel-roster {
    grid-template-columns: repeat(2, minmax(120px, 1fr));
  }

  .hero-stats,
  .player-grid,
  .detail-grid,
  .profile-stats,
  .vault-cards {
    grid-template-columns: 1fr;
  }

  .section-head-row,
  .footer {
    display: grid;
  }

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

  .countdown-grid i {
    display: none;
  }
}

@media (max-width: 460px) {
  .hero-pixel-roster {
    grid-template-columns: 1fr 1fr;
    gap: 10px;
  }

  .floating-card figcaption {
    min-height: 48px;
  }
}
