:root {
  --bg: #0a0c10;
  --surface: #12151c;
  --surface-2: #1a1f2a;
  --surface-3: #232937;
  --border: rgba(255, 255, 255, 0.08);
  --border-strong: rgba(255, 255, 255, 0.16);
  --text: #f2f4f8;
  --muted: #8b93a7;
  --primary: #00d27a;
  --primary-ink: #03170d;
  --primary-shadow: #00965a;
  --accent: #3d7bff;
  --danger: #ff5d6c;
  --gold: #ffcc33;
  --radius: 12px;
  --radius-lg: 18px;
  --font: "Inter", ui-sans-serif, system-ui, sans-serif;
  --font-display: "Montserrat", "Inter", ui-sans-serif, system-ui, sans-serif;
  --mono: "JetBrains Mono", ui-monospace, monospace;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 15px/1.55 var(--font);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  background:
    radial-gradient(900px 500px at 85% -10%, rgba(61, 123, 255, 0.18), transparent 60%),
    radial-gradient(700px 420px at -10% 10%, rgba(0, 210, 122, 0.12), transparent 60%);
}
a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }
button, input, textarea { font: inherit; color: inherit; }

.wrap { width: 100%; max-width: 1200px; margin: 0 auto; padding: 0 20px; }
.muted { color: var(--muted); }
.mono { font-family: var(--mono); }

/* ---------- header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  backdrop-filter: blur(12px);
  background: rgba(10, 12, 16, 0.72);
  border-bottom: 1px solid var(--border);
}
.site-header .wrap { display: flex; align-items: center; gap: 28px; height: 64px; }
.brand { display: flex; align-items: center; gap: 10px; font: 800 19px var(--font-display); letter-spacing: -0.02em; }
.brand img { height: 26px; width: auto; }
footer .brand img { height: 18px; }
.nav { display: flex; gap: 22px; font-size: 14px; color: var(--muted); }
.nav a:hover, .nav a.active { color: var(--text); }
.header-cta { margin-left: auto; }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  height: 42px;
  padding: 0 18px;
  border: 0;
  border-radius: 10px;
  font-weight: 700;
  font-size: 14px;
  cursor: pointer;
  transition: transform 0.08s, filter 0.15s, background 0.15s;
  white-space: nowrap;
}
.btn:active { transform: translateY(2px); }
.btn-primary { background: var(--primary); color: var(--primary-ink); box-shadow: 0 3px 0 var(--primary-shadow); }
.btn-primary:active { box-shadow: 0 1px 0 var(--primary-shadow); }
.btn-primary:hover { filter: brightness(1.07); }
.btn-ghost { background: var(--surface-2); border: 1px solid var(--border-strong); }
.btn-ghost:hover { background: var(--surface-3); }
.btn-sm { height: 34px; padding: 0 12px; font-size: 13px; border-radius: 8px; }
.btn[disabled] { opacity: 0.5; cursor: not-allowed; }

/* ---------- hero ---------- */
.hero { padding: 64px 0 40px; }
.hero .wrap { display: grid; grid-template-columns: 1.05fr 1fr; gap: 48px; align-items: center; }
.hero .wrap > *, .coin-hero > * { min-width: 0; }
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 12px;
  border: 1px solid var(--border-strong);
  border-radius: 999px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--muted);
}
.eyebrow .dot { width: 7px; height: 7px; border-radius: 50%; background: var(--primary); box-shadow: 0 0 10px var(--primary); }
h1.display {
  font: 900 clamp(44px, 7vw, 76px)/0.98 var(--font-display);
  letter-spacing: -0.035em;
  margin: 20px 0 18px;
}
h1.display em { font-style: normal; color: var(--primary); }
.lede { font-size: 17px; color: var(--muted); max-width: 520px; margin: 0 0 26px; }

.lookup {
  display: flex;
  gap: 8px;
  padding: 6px;
  max-width: 520px;
  background: var(--surface);
  border: 1px solid var(--border-strong);
  border-radius: 14px;
}
.lookup input {
  flex: 1;
  min-width: 0;
  background: transparent;
  border: 0;
  outline: none;
  padding: 0 12px;
  font-size: 15px;
}
.lookup input::placeholder { color: #5e667a; }
.lookup:focus-within { border-color: var(--primary); }

.stats { display: flex; gap: 36px; margin-top: 32px; flex-wrap: wrap; }
.stat .k { font-size: 12px; color: var(--muted); text-transform: uppercase; letter-spacing: 0.06em; font-weight: 600; }
.stat .v { font: 800 28px var(--font-display); letter-spacing: -0.02em; margin-top: 2px; }
.stat .v.live::after {
  content: "";
  display: inline-block;
  width: 8px; height: 8px;
  margin-left: 8px;
  vertical-align: middle;
  border-radius: 50%;
  background: var(--primary);
  animation: pulse 2s infinite;
}
@keyframes pulse { 50% { opacity: 0.3; } }

/* featured stack */
.featured { position: relative; aspect-ratio: 16 / 10; }
.feat-card {
  position: absolute;
  inset: 0;
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--border-strong);
  background: var(--surface-2);
  transition: transform 0.6s cubic-bezier(.2,.8,.2,1), opacity 0.6s;
  box-shadow: 0 30px 60px -20px rgba(0, 0, 0, 0.7);
}
.feat-card img { width: 100%; height: 100%; object-fit: cover; }
.feat-card .cap {
  position: absolute;
  inset: auto 0 0 0;
  padding: 40px 18px 16px;
  background: linear-gradient(transparent, rgba(0, 0, 0, 0.85));
  display: flex; align-items: end; justify-content: space-between; gap: 12px;
}
.feat-card .cap .t { font: 800 20px var(--font-display); line-height: 1.15; }
.feat-card .cap .s { font-size: 13px; color: #c7cddb; }
.feat-card.pos-1 { transform: translate(18px, -18px) scale(0.96); opacity: 0.55; z-index: 2; }
.feat-card.pos-2 { transform: translate(36px, -36px) scale(0.92); opacity: 0.25; z-index: 1; }
.feat-card.pos-0 { z-index: 3; }
.feat-card.hidden { opacity: 0; transform: translate(-30px, 20px) scale(0.98); z-index: 0; }
.feat-card.yours {
  display: grid; place-items: center; text-align: center;
  background: repeating-linear-gradient(-45deg, var(--surface), var(--surface) 14px, var(--surface-2) 14px, var(--surface-2) 28px);
  border-style: dashed;
}
.feat-card.yours .t { font: 800 26px var(--font-display); }

/* ---------- sections ---------- */
section.block { padding: 56px 0; }
.sec-head { display: flex; align-items: end; justify-content: space-between; gap: 16px; margin-bottom: 24px; flex-wrap: wrap; }
.sec-head .kicker { font-size: 12px; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: var(--primary); }
.sec-head h2 { font: 900 36px/1.1 var(--font-display); letter-spacing: -0.03em; margin: 6px 0 0; }
.sec-head p { margin: 8px 0 0; color: var(--muted); max-width: 560px; }

/* ---------- coin cards ---------- */
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(270px, 1fr)); gap: 16px; }
.card {
  position: relative;
  display: flex;
  flex-direction: column;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: border-color 0.15s, transform 0.15s;
}
.card:hover { border-color: var(--border-strong); transform: translateY(-2px); }
.card .media { position: relative; aspect-ratio: 16 / 9; background: var(--surface-2); }
.card .media img { width: 100%; height: 100%; object-fit: cover; }
.pill {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 4px 9px;
  font-size: 12px; font-weight: 700;
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.66);
  backdrop-filter: blur(6px);
}
.pill .dot { width: 6px; height: 6px; border-radius: 50%; background: var(--primary); }
.media .pill { position: absolute; top: 10px; left: 10px; }
.media .pill.right { left: auto; right: 10px; }
.pill.demo { background: rgba(255, 204, 51, 0.16); color: var(--gold); }
.card .body { padding: 14px 16px 16px; display: flex; flex-direction: column; gap: 10px; flex: 1; }
.coin-row { display: flex; gap: 12px; align-items: center; }
.coin-avatar {
  width: 44px; height: 44px; flex: none;
  border-radius: 10px;
  background: var(--surface-3);
  overflow: hidden;
  display: grid; place-items: center;
  font: 800 13px var(--font-display);
  color: var(--muted);
}
.coin-avatar img { width: 100%; height: 100%; object-fit: cover; }
.coin-name { font: 800 16px var(--font-display); line-height: 1.2; }
.ticker { font-family: var(--mono); font-size: 12px; color: var(--primary); }
.game-name { font-size: 13px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.metrics { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-top: auto; }
.metric { background: var(--surface-2); border-radius: 10px; padding: 8px 10px; }
.metric .k { font-size: 11px; color: var(--muted); text-transform: uppercase; letter-spacing: 0.05em; font-weight: 600; }
.metric .v { font: 700 15px var(--mono); margin-top: 1px; }
.card .actions { display: flex; gap: 8px; }
.card .actions .btn { flex: 1; }

.empty {
  border: 1px dashed var(--border-strong);
  border-radius: var(--radius-lg);
  padding: 32px;
  text-align: center;
  color: var(--muted);
}

/* skeleton */
.skeleton { background: linear-gradient(90deg, var(--surface) 0%, var(--surface-2) 50%, var(--surface) 100%); background-size: 200% 100%; animation: shimmer 1.4s infinite; border-radius: var(--radius-lg); min-height: 300px; border: 1px solid var(--border); }
@keyframes shimmer { to { background-position: -200% 0; } }

/* ---------- unclaimed games ---------- */
.unclaimed { display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 12px; }
.uc { display: flex; gap: 12px; align-items: center; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 10px; transition: border-color 0.15s; }
.uc:hover { border-color: var(--border-strong); }
.uc img { width: 96px; aspect-ratio: 16 / 9; object-fit: cover; border-radius: 8px; flex: none; }
.uc .info { flex: 1; min-width: 0; }
.uc .t { font-weight: 700; font-size: 14px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.uc .s { font-size: 12px; color: var(--muted); }
.uc .btn { flex: none; }
@media (max-width: 560px) { .unclaimed { grid-template-columns: 1fr; } }

/* ---------- discover ---------- */
.tabs { display: flex; gap: 8px; overflow-x: auto; padding-bottom: 6px; margin-bottom: 18px; scrollbar-width: none; }
.tabs::-webkit-scrollbar { display: none; }
.tab {
  flex: none;
  padding: 8px 14px;
  border-radius: 999px;
  background: var(--surface);
  border: 1px solid var(--border);
  font-size: 14px; font-weight: 600;
  color: var(--muted);
  cursor: pointer;
}
.tab:hover { color: var(--text); }
.tab[aria-selected="true"] { background: var(--text); color: var(--bg); border-color: var(--text); }
.tab .n { font-family: var(--mono); font-size: 12px; opacity: 0.7; margin-left: 6px; }
.disc-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.disc-card .body { gap: 8px; }
.disc-card .title { font-weight: 700; font-size: 14px; line-height: 1.3; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; min-height: 2.6em; }
.disc-card .rank {
  position: absolute; top: 10px; left: 10px;
  width: 26px; height: 26px; border-radius: 8px;
  display: grid; place-items: center;
  font: 800 13px var(--font-display);
  background: var(--text); color: var(--bg);
}
.disc-card .meta { display: flex; justify-content: space-between; font-size: 12px; color: var(--muted); }

/* ---------- how ---------- */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.step { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 22px; }
.step .num {
  width: 34px; height: 34px; border-radius: 9px;
  background: var(--primary); color: var(--primary-ink);
  display: grid; place-items: center;
  font: 900 16px var(--font-display);
  transform: rotate(-8deg);
  margin-bottom: 14px;
}
.step h3 { margin: 0 0 6px; font: 800 18px var(--font-display); }
.step p { margin: 0; color: var(--muted); font-size: 14px; }
.funds { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; margin-top: 16px; }
.fund { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 20px; }
.fund .ic { font-size: 22px; }
.fund h4 { margin: 10px 0 4px; font: 800 16px var(--font-display); }
.fund p { margin: 0; color: var(--muted); font-size: 13px; }

/* ---------- footer ---------- */
footer { border-top: 1px solid var(--border); margin-top: 40px; padding: 32px 0 48px; color: var(--muted); font-size: 13px; }
footer .wrap { display: flex; justify-content: space-between; gap: 24px; flex-wrap: wrap; }
footer .disc { max-width: 620px; }

/* ---------- forms (launch) ---------- */
.panel { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 24px; }
.field { display: flex; flex-direction: column; gap: 6px; margin-bottom: 16px; }
.field label { font-size: 13px; font-weight: 600; }
.field .hint { font-size: 12px; color: var(--muted); }
.input, textarea.input {
  width: 100%;
  background: var(--surface-2);
  border: 1px solid var(--border-strong);
  border-radius: 10px;
  padding: 11px 12px;
  outline: none;
}
.input:focus { border-color: var(--primary); }
textarea.input { min-height: 96px; resize: vertical; }
.row { display: flex; gap: 12px; }
.row > * { flex: 1; }
.error { color: var(--danger); font-size: 13px; margin: 8px 0 0; }
.ok { color: var(--primary); font-size: 13px; margin: 8px 0 0; }

.stepper { display: flex; gap: 8px; margin-bottom: 24px; }
.stepper .s {
  flex: 1;
  display: flex; align-items: center; gap: 10px;
  padding: 10px 12px;
  border-radius: 10px;
  background: var(--surface);
  border: 1px solid var(--border);
  font-size: 13px; font-weight: 600; color: var(--muted);
}
.stepper .s b {
  width: 22px; height: 22px; border-radius: 6px; flex: none;
  display: grid; place-items: center;
  background: var(--surface-3); font-size: 12px;
}
.stepper .s.active { color: var(--text); border-color: var(--primary); }
.stepper .s.active b, .stepper .s.done b { background: var(--primary); color: var(--primary-ink); }

.choice { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-bottom: 18px; }
.choice button {
  text-align: left;
  padding: 16px;
  border-radius: 12px;
  background: var(--surface-2);
  border: 1px solid var(--border-strong);
  cursor: pointer;
}
.choice button[aria-pressed="true"] { border-color: var(--primary); box-shadow: inset 0 0 0 1px var(--primary); }
.choice button b { display: block; font-family: var(--font-display); font-size: 15px; margin-bottom: 4px; }
.choice button span { font-size: 13px; color: var(--muted); }

.notice {
  background: rgba(255, 204, 51, 0.08);
  border: 1px solid rgba(255, 204, 51, 0.25);
  color: #f3dfa0;
  border-radius: 10px;
  padding: 12px 14px;
  font-size: 13px;
  margin-bottom: 16px;
}

/* ---------- coin page ---------- */
.coin-hero { display: grid; grid-template-columns: 1.4fr 1fr; gap: 24px; padding: 40px 0; }
.coin-hero .shot { border-radius: var(--radius-lg); overflow: hidden; border: 1px solid var(--border-strong); aspect-ratio: 16/9; background: var(--surface-2); position: relative; }
.coin-hero .shot img { width: 100%; height: 100%; object-fit: cover; }
.big-num { font: 900 44px var(--font-display); letter-spacing: -0.03em; }
.alloc { display: flex; height: 12px; border-radius: 6px; overflow: hidden; margin: 12px 0; }
.alloc span { background: var(--primary); }
.legend { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; font-size: 13px; color: var(--muted); }
.legend i { display: inline-block; width: 9px; height: 9px; border-radius: 3px; margin-right: 6px; }

/* ---------- responsive ---------- */
@media (max-width: 900px) {
  .hero .wrap, .coin-hero { grid-template-columns: 1fr; }
  .featured { max-width: 560px; }
  .steps { grid-template-columns: 1fr; }
  .disc-grid { grid-template-columns: 1fr 1fr; }
  .funds { grid-template-columns: 1fr 1fr; }
  .nav { display: none; }
}
@media (max-width: 560px) {
  .wrap { padding: 0 16px; }
  .funds, .choice { grid-template-columns: 1fr; }
  .stats { gap: 22px; }
  .stepper .s span { display: none; }
  .row { flex-direction: column; gap: 0; }
  .sec-head h2 { font-size: 28px; }
}
