:root {
  color-scheme: dark;
  --bg: #030303;
  --panel: #0b0b08;
  --panel-soft: #11100b;
  --text: #fffdf4;
  --muted: #a29d91;
  --muted-2: #6f6a5e;
  --gold: #f6c400;
  --gold-soft: #a98205;
  --gold-dim: rgba(246, 196, 0, 0.18);
  --green: #0f291a;
  --line: rgba(246, 196, 0, 0.32);
  --line-soft: rgba(246, 196, 0, 0.14);
  --good: #16e681;
  --bad: #ff6262;
  --max: 1180px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-width: 320px;
  background:
    radial-gradient(circle at 50% 18%, rgba(246, 196, 0, 0.12), transparent 24rem),
    linear-gradient(180deg, #050504 0%, #020202 45%, #050504 100%);
  color: var(--text);
  font-family:
    Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI",
    "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
  letter-spacing: 0;
  overflow-x: hidden;
}

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

button,
input {
  font: inherit;
}

img {
  display: block;
  max-width: 100%;
}

.app-shell {
  min-height: 100svh;
}

.site-frame {
  position: relative;
  min-height: 100svh;
  overflow: hidden;
}

.terminal-lines {
  position: fixed;
  inset: 38px 16px 16px;
  z-index: -1;
  border: 1px solid rgba(246, 196, 0, 0.08);
  pointer-events: none;
}

.terminal-lines::before,
.terminal-lines::after {
  position: absolute;
  content: "";
  background: rgba(246, 196, 0, 0.045);
}

.terminal-lines::before {
  top: 25%;
  right: 0;
  left: 0;
  height: 1px;
}

.terminal-lines::after {
  top: 0;
  bottom: 0;
  left: 50%;
  width: 1px;
}

.topbar {
  position: sticky;
  top: 0;
  z-index: 30;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 24px;
  padding: 16px clamp(18px, 4vw, 48px);
  background: linear-gradient(180deg, rgba(3, 3, 3, 0.92), rgba(3, 3, 3, 0.62));
  border-bottom: 1px solid rgba(246, 196, 0, 0.12);
  backdrop-filter: blur(14px);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
  color: var(--gold);
  font-size: 13px;
  font-weight: 950;
  letter-spacing: 0.02em;
}

.brand img {
  width: 38px;
  height: 38px;
  border: 1px solid rgba(246, 196, 0, 0.28);
  border-radius: 999px;
  object-fit: cover;
  object-position: center 50%;
  box-shadow: 0 0 26px rgba(246, 196, 0, 0.2);
}

.topnav {
  grid-column: 2;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: clamp(16px, 3vw, 32px);
  color: rgba(255, 253, 244, 0.8);
  font-size: 11px;
  font-weight: 900;
  letter-spacing: 0.09em;
}

.topnav a {
  transition: color 160ms ease;
}

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

.top-x {
  grid-column: 3;
  justify-self: end;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 34px;
  min-height: 34px;
  border: 1px solid rgba(246, 196, 0, 0.24);
  color: var(--gold);
  font-size: 12px;
  font-weight: 1000;
  letter-spacing: 0.08em;
  transition: border-color 160ms ease, background 160ms ease, color 160ms ease;
}

.top-x:hover,
.top-x:focus-visible {
  border-color: var(--gold);
  background: var(--gold);
  color: #080806;
}

.container {
  width: min(var(--max), calc(100% - 40px));
  margin: 0 auto;
}

.hero {
  position: relative;
  min-height: calc(100svh - 71px);
  display: grid;
  place-items: center;
  overflow: hidden;
  padding: clamp(18px, 3vw, 38px) 0;
}

.hero::before {
  position: absolute;
  inset: 0;
  z-index: -3;
  background-image: url("banner.png");
  background-size: cover;
  background-position: center;
  opacity: 0.36;
  filter: saturate(0.8) contrast(1.1);
  content: "";
}

.hero::after {
  position: absolute;
  inset: 0;
  z-index: -2;
  background:
    radial-gradient(circle at 50% 52%, rgba(246, 196, 0, 0.13), transparent 17rem),
    linear-gradient(90deg, rgba(0, 0, 0, 0.86), rgba(0, 0, 0, 0.42), rgba(0, 0, 0, 0.86)),
    linear-gradient(180deg, rgba(0, 0, 0, 0.34), #030303 96%);
  content: "";
}

.pitch-mark {
  position: absolute;
  inset: 18px;
  z-index: -1;
  border: 1px solid rgba(246, 196, 0, 0.07);
  pointer-events: none;
}

.pitch-mark::before {
  position: absolute;
  top: 50%;
  left: 50%;
  width: min(33vw, 370px);
  aspect-ratio: 1;
  border: 1px solid rgba(246, 196, 0, 0.09);
  border-radius: 999px;
  content: "";
  transform: translate(-50%, -50%);
}

.hero-inner {
  position: relative;
  width: min(900px, calc(100% - 48px));
  margin: 0 auto;
  text-align: center;
}

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

.hero-title {
  margin: 0;
  color: var(--text);
  font-size: clamp(74px, 10.4vw, 138px);
  font-weight: 1000;
  line-height: 0.92;
  text-transform: uppercase;
  white-space: nowrap;
}

.hero-title span {
  display: inline;
  color: inherit;
}

.hero-copy {
  max-width: 660px;
  margin: 18px auto 0;
  color: rgba(255, 253, 244, 0.68);
  font-size: clamp(15px, 1.25vw, 18px);
  font-weight: 600;
  line-height: 1.58;
}

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

.hero-actions,
.detail-actions,
.cta-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
  margin-top: 28px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  padding: 0 20px;
  border: 1px solid var(--line);
  background: rgba(0, 0, 0, 0.42);
  color: var(--gold);
  font-size: 11px;
  font-weight: 950;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  transition: transform 160ms ease, border-color 160ms ease, background 160ms ease, color 160ms ease;
}

.btn:hover,
.btn:focus-visible {
  border-color: var(--gold);
  background: rgba(246, 196, 0, 0.08);
  transform: translateY(-2px);
}

.btn-primary {
  background: var(--gold);
  color: #080806;
}

.btn-primary:hover,
.btn-primary:focus-visible {
  background: #ffd93d;
  color: #080806;
}

.floating-card {
  position: absolute;
  z-index: 2;
  width: clamp(82px, 8.6vw, 122px);
  border: 1px solid rgba(246, 196, 0, 0.28);
  background: rgba(0, 0, 0, 0.5);
  box-shadow: 0 0 28px rgba(246, 196, 0, 0.08);
  transform: rotate(var(--tilt));
  overflow: hidden;
  opacity: 0.58;
  transition: opacity 180ms ease, transform 180ms ease;
}

.floating-card:hover {
  opacity: 1;
  transform: rotate(0deg) translateY(-4px);
}

.floating-card img {
  width: 100%;
  aspect-ratio: 1 / 1.1;
  object-fit: cover;
  object-position: center top;
  opacity: 0.92;
}

.floating-card figcaption {
  padding: 8px 9px 9px;
  color: var(--gold);
  font-size: 10px;
  font-weight: 950;
  line-height: 1.25;
}

.floating-card figcaption span {
  display: block;
  margin-top: 2px;
  color: var(--muted);
  font-size: 9px;
  font-weight: 700;
}

.float-1 {
  top: 10%;
  left: 3%;
  --tilt: -4deg;
}

.float-2 {
  top: 30%;
  left: 6%;
  --tilt: 3deg;
}

.float-3 {
  bottom: 7%;
  left: 5%;
  --tilt: 5deg;
}

.float-4 {
  top: 14%;
  right: 4%;
  --tilt: -6deg;
}

.float-5 {
  top: 38%;
  right: 6%;
  --tilt: 4deg;
}

.float-6 {
  right: 5%;
  bottom: 7%;
  --tilt: -5deg;
}

.hero-stats {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0;
  width: min(900px, calc(100% - 36px));
  margin: 36px auto 0;
  border-top: 1px solid var(--line-soft);
  border-bottom: 1px solid var(--line-soft);
}

.hero-stats div {
  padding: 18px 18px;
  border-right: 1px solid var(--line-soft);
}

.hero-stats div:last-child {
  border-right: 0;
}

.hero-stats span,
.stat-tile span,
.fact span,
.rule span {
  display: block;
  color: var(--muted);
  font-size: 10px;
  font-weight: 900;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.hero-stats strong {
  display: block;
  margin-top: 9px;
  color: var(--text);
  font-size: clamp(18px, 1.95vw, 27px);
  line-height: 1.1;
}

.countdown {
  width: min(940px, calc(100% - 36px));
  margin: 32px auto 0;
  padding: 24px clamp(22px, 3.8vw, 40px) 28px;
  border: 1px solid var(--line);
  background: rgba(10, 9, 5, 0.68);
}

.countdown-kicker {
  margin: 0 0 8px;
  color: var(--gold);
  font-size: 12px;
  font-weight: 1000;
  letter-spacing: 0.22em;
}

.countdown-match {
  margin: 0 0 22px;
  color: var(--muted);
  font-size: clamp(14px, 1.2vw, 17px);
  font-weight: 700;
}

.countdown-grid {
  display: grid;
  grid-template-columns: 1fr auto 1fr auto 1fr auto 1fr;
  align-items: center;
  gap: clamp(10px, 2.8vw, 34px);
}

.countdown-grid div {
  display: grid;
  gap: 11px;
  justify-items: center;
}

.countdown-grid strong {
  display: grid;
  place-items: center;
  width: min(12vw, 124px);
  min-width: 76px;
  aspect-ratio: 1.24 / 1;
  border: 1px solid var(--line);
  color: var(--text);
  font-size: clamp(36px, 4.8vw, 60px);
  font-weight: 1000;
  line-height: 1;
}

.countdown-grid div:last-child strong {
  color: var(--gold);
}

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

.countdown-grid i {
  color: var(--gold-soft);
  font-style: normal;
  font-size: clamp(24px, 3.6vw, 46px);
  font-weight: 1000;
}

.section {
  padding: clamp(56px, 7vw, 88px) 0;
}

#mechanism {
  padding: clamp(50px, 6vw, 72px) 0;
}

#main-coin {
  padding: clamp(42px, 5.4vw, 68px) 0 clamp(56px, 6.6vw, 82px);
}

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

.section-head h2,
.detail-title,
.empty-title {
  margin: 0;
  color: var(--text);
  font-size: clamp(30px, 3.8vw, 52px);
  font-weight: 1000;
  line-height: 0.98;
  text-transform: uppercase;
}

.section-head p {
  max-width: 520px;
  margin: 0;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.7;
}

.market-note {
  color: var(--muted-2);
  font-size: 12px;
  font-weight: 700;
  line-height: 1.6;
}

.main-coin {
  display: grid;
  grid-template-columns: minmax(0, 1.48fr) minmax(300px, 0.82fr);
  gap: 0;
  align-items: stretch;
  border: 1px solid rgba(246, 196, 0, 0.42);
  background:
    linear-gradient(135deg, rgba(246, 196, 0, 0.085), transparent 30%),
    rgba(6, 6, 5, 0.9);
  box-shadow: inset 0 0 0 1px rgba(246, 196, 0, 0.06), 0 24px 80px rgba(0, 0, 0, 0.24);
}

.main-coin-panel {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 16px;
  min-height: 380px;
  padding: clamp(34px, 4.2vw, 52px);
  border: 0;
  border-right: 1px solid rgba(246, 196, 0, 0.34);
  background: rgba(6, 6, 5, 0.44);
}

.main-coin-panel h2 {
  margin: 0;
  color: var(--gold);
  font-size: clamp(50px, 6.1vw, 82px);
  font-weight: 1000;
  line-height: 0.9;
}

.main-token-heading {
  display: flex;
  align-items: center;
  gap: clamp(16px, 2.3vw, 26px);
}

.main-token-logo {
  width: clamp(72px, 7.5vw, 104px);
  aspect-ratio: 1;
  flex: 0 0 auto;
  border: 1px solid rgba(246, 196, 0, 0.38);
  border-radius: 999px;
  object-fit: cover;
  object-position: center;
  box-shadow: 0 0 34px rgba(246, 196, 0, 0.18);
}

.main-token-heading .eyebrow {
  margin-bottom: 10px;
}

.main-coin-panel p {
  margin: 16px 0 0;
  max-width: 620px;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.68;
}

.contract-box {
  display: grid;
  gap: 10px;
  margin-top: 20px;
}

.contract-row {
  display: grid;
  grid-template-columns: 88px minmax(0, 1fr) auto;
  align-items: center;
  min-height: 48px;
  border: 1px solid rgba(246, 196, 0, 0.34);
  background: rgba(0, 0, 0, 0.2);
}

.contract-row span {
  padding-left: 16px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 900;
}

.contract-row code {
  display: block;
  min-width: 0;
  padding: 0 14px;
  color: var(--muted);
  font-family: inherit;
  font-size: clamp(13px, 1.25vw, 17px);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.copy-btn {
  align-self: stretch;
  min-width: 58px;
  border: 0;
  border-left: 1px solid rgba(246, 196, 0, 0.28);
  background: rgba(246, 196, 0, 0.08);
  color: var(--gold);
  cursor: pointer;
  font-size: 11px;
  font-weight: 950;
  letter-spacing: 0.08em;
  transition: background 160ms ease, color 160ms ease;
}

.copy-btn:hover,
.copy-btn:focus-visible {
  background: var(--gold);
  color: #080806;
}

.main-coin-data {
  display: grid;
  align-content: center;
  gap: clamp(22px, 3.2vw, 34px);
  padding: clamp(34px, 4.2vw, 52px);
  background: rgba(0, 0, 0, 0.16);
}

.main-coin-data span {
  display: block;
  color: var(--muted);
  font-size: 11px;
  font-weight: 900;
  letter-spacing: 0.08em;
}

.main-coin-data strong {
  display: block;
  margin-top: 9px;
  color: var(--text);
  font-size: clamp(29px, 3.4vw, 44px);
  font-weight: 1000;
  line-height: 1;
}

.facts-grid,
.vault-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  border-top: 1px solid var(--line-soft);
}

.fact,
.rule,
.stat-tile {
  padding: 22px 18px 22px 0;
  border-right: 1px solid var(--line-soft);
}

.fact + .fact,
.rule + .rule,
.stat-tile + .stat-tile {
  padding-left: 18px;
}

.fact:last-child,
.rule:last-child,
.stat-tile:last-child {
  border-right: 0;
}

.fact strong,
.rule strong,
.stat-tile strong {
  display: block;
  margin-top: 10px;
  color: var(--gold);
  font-size: clamp(20px, 2.4vw, 34px);
  line-height: 1.1;
}

.mechanism {
  min-height: auto;
  display: grid;
  align-items: center;
  border-top: 1px solid rgba(246, 196, 0, 0.2);
  border-bottom: 1px solid rgba(246, 196, 0, 0.2);
}

.mechanism > .container {
  padding: clamp(30px, 4vw, 44px);
  border: 1px solid rgba(246, 196, 0, 0.36);
  background:
    linear-gradient(180deg, rgba(246, 196, 0, 0.055), transparent 42%),
    rgba(5, 5, 4, 0.64);
  box-shadow: inset 0 0 0 1px rgba(246, 196, 0, 0.045);
}

.mechanism-flow {
  --rail-y: 46px;
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 48px minmax(0, 1fr) 48px minmax(0, 1fr) 48px minmax(0, 1fr);
  gap: 0;
  align-items: stretch;
  border-top: 1px solid rgba(246, 196, 0, 0.22);
  padding: 26px 0 0;
}

.flow-node {
  position: relative;
  min-height: 154px;
  display: grid;
  align-content: start;
  gap: 14px;
  padding: 20px 18px 22px;
  border: 1px solid rgba(246, 196, 0, 0.3);
  background:
    linear-gradient(180deg, rgba(246, 196, 0, 0.055), transparent 72%),
    rgba(8, 8, 7, 0.76);
  box-shadow: inset 0 0 0 1px rgba(246, 196, 0, 0.035);
}

.flow-node::after {
  position: absolute;
  right: 18px;
  bottom: 18px;
  left: 18px;
  height: 2px;
  background: linear-gradient(90deg, var(--gold), rgba(246, 196, 0, 0.08));
  content: "";
}

.flow-node span {
  display: block;
  color: var(--gold);
  font-size: 10px;
  font-weight: 950;
  letter-spacing: 0.18em;
}

.flow-node strong {
  color: var(--text);
  font-size: clamp(17px, 1.62vw, 22px);
  line-height: 1.16;
}

.flow-node small {
  max-width: 13em;
  color: var(--muted);
  font-size: 12px;
  font-weight: 750;
  line-height: 1.5;
}

.flow-node-final {
  border-color: rgba(246, 196, 0, 0.56);
  background:
    radial-gradient(circle at 78% 20%, rgba(246, 196, 0, 0.16), transparent 8rem),
    linear-gradient(180deg, rgba(246, 196, 0, 0.075), transparent 70%),
    rgba(8, 8, 7, 0.82);
}

.flow-rail {
  position: relative;
  display: grid;
  place-items: center;
  min-width: 48px;
}

.flow-rail::before {
  width: 100%;
  height: 1px;
  background: rgba(246, 196, 0, 0.38);
  content: "";
}

.flow-rail i {
  position: absolute;
  width: 26px;
  height: 26px;
  border: 1px solid rgba(246, 196, 0, 0.5);
  background: rgba(5, 5, 4, 0.96);
  transform: rotate(45deg);
}

.flow-rail i::after {
  position: absolute;
  inset: 7px 5px 5px 7px;
  border-top: 3px solid var(--gold);
  border-right: 3px solid var(--gold);
  content: "";
}

.flow-arrow {
  display: grid;
  place-items: center;
  color: var(--gold);
  font-size: clamp(22px, 2.5vw, 34px);
  font-weight: 1000;
}

.players-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 14px 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line-soft);
}

.search {
  width: min(420px, 100%);
  min-height: 44px;
  border: 1px solid var(--line-soft);
  background: #050504;
  color: var(--text);
  padding: 0 14px;
  outline: 0;
}

.search:focus {
  border-color: var(--gold);
}

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

.player-card {
  position: relative;
  min-height: 380px;
  border: 1px solid var(--line-soft);
  background: #080807;
  overflow: hidden;
  transition: transform 180ms ease, border-color 180ms ease, box-shadow 180ms ease;
}

.player-card:hover,
.player-card:focus-visible {
  border-color: var(--gold);
  box-shadow: 0 0 30px rgba(246, 196, 0, 0.12);
  transform: translateY(-4px);
}

.player-card img {
  width: 100%;
  height: 220px;
  object-fit: cover;
  object-position: center top;
  filter: saturate(0.94) contrast(1.08);
}

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

.rank-badge {
  position: absolute;
  top: 12px;
  right: 12px;
  display: inline-flex;
  min-width: 44px;
  min-height: 34px;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--line);
  background: rgba(0, 0, 0, 0.72);
  color: var(--gold);
  font-size: 13px;
  font-weight: 1000;
}

.player-symbol {
  color: var(--gold);
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  font-size: 13px;
  font-weight: 950;
}

.player-card h3 {
  margin: 9px 0 6px;
  color: var(--text);
  font-size: 21px;
  font-weight: 1000;
  line-height: 1.08;
  text-transform: uppercase;
}

.player-card p {
  margin: 0;
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
}

.player-card-meta {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-top: 14px;
  padding-top: 13px;
  border-top: 1px solid var(--line-soft);
}

.player-card-meta span {
  color: var(--muted-2);
  font-size: 10px;
  font-weight: 900;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.player-card-meta strong {
  display: block;
  margin-top: 5px;
  color: var(--text);
  font-size: 13px;
}

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

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

.player-vault-flow {
  position: absolute;
  right: 0;
  bottom: 0;
  left: 0;
  padding: 10px 16px;
  background: var(--gold);
  color: #080806;
  font-size: 11px;
  font-weight: 950;
  opacity: 0;
  transform: translateY(100%);
  transition: opacity 180ms ease, transform 180ms ease;
}

.player-card:hover .player-vault-flow,
.player-card:focus-visible .player-vault-flow {
  opacity: 1;
  transform: translateY(0);
}

.empty-state {
  padding: 48px 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line-soft);
  color: var(--gold);
  font-size: clamp(24px, 3.4vw, 44px);
  font-weight: 1000;
}

.cta {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 22px;
  align-items: center;
  padding: 44px 0;
  border-top: 1px solid var(--line);
}

.cta h2 {
  margin: 0;
  font-size: clamp(30px, 3.8vw, 54px);
  line-height: 1;
}

.cta p {
  display: none;
  margin: 16px 0 0;
  max-width: 680px;
  color: var(--muted);
  line-height: 1.7;
}

.detail-page {
  width: min(var(--max), calc(100% - 40px));
  margin: 0 auto;
  padding: 34px 0 70px;
}

.back-link {
  display: inline-flex;
  margin-bottom: 22px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.detail-grid {
  display: grid;
  grid-template-columns: minmax(300px, 0.72fr) minmax(0, 1.28fr);
  gap: 24px;
}

.player-profile,
.detail-panel {
  border: 1px solid var(--line);
  background: rgba(8, 8, 7, 0.92);
}

.profile-image {
  position: relative;
}

.profile-image img {
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  object-position: center top;
}

.profile-body {
  padding: 22px 22px 26px;
}

.detail-title {
  font-size: clamp(32px, 3.4vw, 48px);
}

.profile-subtitle {
  margin: 10px 0 26px;
  color: var(--muted);
  font-size: 15px;
  font-weight: 700;
}

.profile-stats {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.profile-stats div,
.vault-card {
  border: 1px solid var(--line-soft);
  padding: 16px;
}

.profile-stats span,
.vault-card span {
  color: var(--muted);
  font-size: 10px;
  font-weight: 900;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.profile-stats strong,
.vault-card strong {
  display: block;
  margin-top: 9px;
  color: var(--text);
  font-size: 19px;
}

.detail-panel {
  padding: clamp(24px, 3.4vw, 36px);
}

.detail-panel h2 {
  margin: 0;
  color: var(--text);
  font-size: clamp(26px, 3.4vw, 42px);
  line-height: 1.05;
}

.detail-panel p {
  margin: 18px 0 0;
  color: var(--muted);
  font-size: 15px;
  line-height: 1.75;
}

.address-box {
  display: grid;
  gap: 9px;
  margin: 28px 0;
  padding: 16px;
  border: 1px solid var(--line);
  background: #050504;
}

.address-box span {
  color: var(--gold);
  font-size: 12px;
  font-weight: 950;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.address-box code {
  overflow-wrap: anywhere;
  color: var(--muted);
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  font-size: 13px;
}

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

.snapshot-label {
  display: inline-flex;
  margin-top: 12px;
  color: var(--muted-2);
  font-size: 12px;
  font-weight: 700;
}

.footer {
  width: min(var(--max), calc(100% - 40px));
  margin: 0 auto;
  padding: 42px 0;
  display: flex;
  justify-content: center;
  gap: 24px;
  border-top: 1px solid var(--line-soft);
  color: var(--gold);
  font-size: 12px;
}

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

.footer span {
  display: none;
}

.reveal {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity 680ms cubic-bezier(0.2, 0.8, 0.2, 1), transform 680ms cubic-bezier(0.2, 0.8, 0.2, 1);
}

.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.hero .reveal:nth-child(2) {
  transition-delay: 80ms;
}

.hero .reveal:nth-child(3) {
  transition-delay: 160ms;
}

.hero .reveal:nth-child(4) {
  transition-delay: 240ms;
}

.noscript-shell {
  width: min(760px, calc(100% - 40px));
  min-height: 100svh;
  margin: 0 auto;
  display: grid;
  place-content: center;
  gap: 18px;
  text-align: center;
}

.noscript-shell img {
  width: 120px;
  margin: 0 auto;
  border-radius: 999px;
}

.noscript-shell h1 {
  margin: 0;
  color: var(--gold);
  font-size: clamp(52px, 14vw, 120px);
}

.noscript-shell p {
  margin: 0;
  color: var(--muted);
  line-height: 1.8;
}

@media (max-width: 1120px) {
  .player-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .floating-card {
    opacity: 0.28;
  }

  .mechanism-flow {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
  }

  .flow-rail,
  .flow-arrow {
    display: none;
  }
}

@media (max-width: 860px) {
  .topbar {
    padding: 14px 18px;
  }

  .topnav {
    gap: 14px;
  }

  .topnav a:nth-child(4) {
    display: none;
  }

  .hero {
    min-height: calc(100svh - 67px);
  }

  .floating-card {
    display: none;
  }

  .hero-stats,
  .facts-grid,
  .vault-grid,
  .main-coin,
  .detail-grid,
  .vault-cards,
  .cta {
    grid-template-columns: 1fr;
  }

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

  .countdown-grid i:nth-of-type(2) {
    display: none;
  }

  .countdown-grid div:nth-of-type(3) {
    margin-top: 14px;
  }

  .countdown-grid div:nth-of-type(3),
  .countdown-grid div:nth-of-type(4) {
    grid-row: 2;
  }

  .countdown-grid i:nth-of-type(3) {
    grid-row: 2;
  }

  .hero-stats div,
  .fact,
  .fact + .fact,
  .rule,
    .rule + .rule,
    .stat-tile,
    .stat-tile + .stat-tile {
    padding: 16px 0;
    border-right: 0;
    border-bottom: 1px solid var(--line-soft);
  }

  .hero-stats div:last-child,
  .fact:last-child,
  .rule:last-child,
  .stat-tile:last-child {
    border-bottom: 0;
  }

  .section-head,
  .players-toolbar {
    align-items: flex-start;
    flex-direction: column;
  }

  .main-coin-panel {
    min-height: auto;
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

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

  .mechanism > .container {
    padding: 28px;
  }

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

  .cta-actions {
    justify-content: flex-start;
  }
}

@media (max-width: 560px) {
  .topbar {
    gap: 12px;
    padding: 14px 15px;
  }

  .container,
  .detail-page,
  .footer {
    width: calc(100% - 30px);
  }

  .brand img {
    width: 36px;
    height: 36px;
  }

  .brand {
    gap: 8px;
    font-size: 12px;
  }

  .topnav {
    gap: 12px;
    font-size: 10px;
  }

  .top-x {
    min-width: 30px;
    min-height: 30px;
    font-size: 11px;
  }

  .topnav a:nth-child(3) {
    display: none;
  }

  .hero-inner {
    width: calc(100% - 30px);
  }

  .hero-title {
    font-size: clamp(58px, 22vw, 86px);
  }

  .hero-copy {
    font-size: 14px;
    line-height: 1.62;
  }

  .hero-actions,
  .detail-actions,
  .cta-actions {
    width: 100%;
  }

  .btn {
    width: 100%;
  }

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

  .hero-actions .btn {
    width: auto;
    min-width: 0;
    padding: 0 12px;
  }

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

  .countdown {
    width: 100%;
    padding: 20px 12px 22px;
  }

  .hero-stats {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    margin-top: 26px;
  }

  .hero-stats div {
    padding: 16px 10px;
    border-right: 0;
    border-bottom: 1px solid var(--line-soft);
  }

  .hero-stats div:nth-child(odd) {
    border-right: 1px solid var(--line-soft);
  }

  .hero-stats div:nth-child(n + 3) {
    border-bottom: 0;
  }

  .hero-stats span {
    font-size: 9px;
    letter-spacing: 0.12em;
  }

  .hero-stats strong {
    font-size: clamp(18px, 6vw, 24px);
  }

  .countdown-grid {
    gap: 10px;
  }

  .countdown-grid strong {
    min-width: 68px;
    font-size: clamp(31px, 10vw, 45px);
  }

  .main-coin-panel,
  .main-coin-data {
    padding: 28px 18px;
  }

  .main-coin-data {
    grid-template-columns: 1fr;
  }

  .main-coin-panel h2 {
    font-size: clamp(48px, 16vw, 72px);
  }

  .main-token-heading {
    gap: 14px;
  }

  .main-token-logo {
    width: 64px;
  }

  .contract-row {
    grid-template-columns: 74px minmax(0, 1fr) 54px;
  }

  .contract-row span {
    padding-left: 12px;
    font-size: 11px;
  }

  .contract-row code {
    padding: 0 10px;
  }

  .mechanism-flow {
    grid-template-columns: 1fr;
    gap: 0;
    padding: 18px 0 0 22px;
    border-left: 1px solid rgba(246, 196, 0, 0.3);
  }

  .mechanism > .container {
    padding: 24px 16px;
  }

  .flow-node {
    min-height: 124px;
    padding: 18px 16px;
  }

  .flow-node:not(:first-child) {
    margin-top: 12px;
  }

  .flow-node::before {
    position: absolute;
    top: 22px;
    left: -28px;
    width: 11px;
    height: 11px;
    border: 1px solid var(--gold);
    background: #050504;
    content: "";
    transform: rotate(45deg);
  }

  .flow-node small {
    max-width: none;
  }
}

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

  .reveal {
    opacity: 1;
    transform: none;
  }
}
