:root {
  --bg: #040605;
  --bg-soft: #080b09;
  --surface: #0c110e;
  --surface-2: #111814;
  --line: #1c2a21;
  --line-soft: #16211a;
  --text: #eef6ee;
  --muted: #8fa295;
  --neon: #7cff4f;
  --neon-deep: #34d058;
  --lime: #b8ff6b;

  --r-common: #9aa8a0;
  --r-uncommon: #4ade80;
  --r-rare: #38bdf8;
  --r-epic: #b06bff;
  --r-legendary: #ffc94d;

  --radius: 18px;
  --font-display: "Space Grotesk", "Segoe UI", system-ui, sans-serif;
  --font-body: "Inter", "Segoe UI", system-ui, sans-serif;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img { display: block; max-width: 100%; }
h1, h2, h3 { font-family: var(--font-display); line-height: 1.08; margin: 0; letter-spacing: -0.02em; }
a { color: inherit; text-decoration: none; }

.wrap { width: min(1180px, 100% - 48px); margin-inline: auto; }

/* keep anchored section headings clear of the sticky header */
section[id], footer[id] { scroll-margin-top: 90px; }
#top { scroll-margin-top: 0; }
.muted { color: var(--muted); }
.center { text-align: center; }
.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

.grad {
  background: linear-gradient(100deg, var(--neon) 5%, var(--lime) 45%, #34d399 95%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.label { display: block; font-size: 11px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--muted); margin-bottom: 4px; }

/* ---------- NAV ---------- */
.nav {
  position: sticky;
  top: 0;
  z-index: 60;
  backdrop-filter: blur(16px);
  background: rgba(4, 6, 5, 0.75);
  border-bottom: 1px solid transparent;
  transition: border-color 0.3s, background 0.3s;
}
.nav.is-stuck { border-bottom-color: var(--line); background: rgba(4, 6, 5, 0.92); }
.nav-inner { display: flex; align-items: center; justify-content: space-between; gap: 22px; height: 74px; }

.brand { display: inline-flex; align-items: center; gap: 11px; }
.brand-mark { width: 26px; height: 26px; color: var(--neon); filter: drop-shadow(0 0 8px rgba(124, 255, 79, 0.5)); }
.brand-mark svg { width: 100%; height: 100%; }
.brand-name {
  display: inline-flex;
  flex-direction: column;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 17px;
  letter-spacing: 0.06em;
  line-height: 1;
}
.brand-sub { font-size: 9.5px; letter-spacing: 0.34em; color: var(--neon); font-weight: 600; margin-top: 4px; }

.nav-links { display: flex; gap: 28px; font-size: 14.5px; color: var(--muted); }
.nav-links a { transition: color 0.2s; }
.nav-links a:hover { color: var(--text); }

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

.balance {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 9px 15px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: rgba(124, 255, 79, 0.06);
  color: var(--text);
  font: inherit;
  font-size: 13px;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
  cursor: pointer;
  transition: border-color 0.2s, background 0.2s;
}
.balance:hover { border-color: rgba(124, 255, 79, 0.45); background: rgba(124, 255, 79, 0.12); }
.balance-dot { width: 7px; height: 7px; border-radius: 50%; background: var(--neon); box-shadow: 0 0 8px var(--neon); }

/* ---------- BUTTONS ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 13px 22px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: var(--surface-2);
  color: var(--text);
  font: inherit;
  font-size: 14.5px;
  font-weight: 600;
  cursor: pointer;
  transition: transform 0.18s, box-shadow 0.25s, background 0.2s, border-color 0.2s, opacity 0.2s;
  white-space: nowrap;
}
.btn:hover { transform: translateY(-1px); border-color: #2b3f31; }
.btn:active { transform: translateY(0); }
.btn:focus-visible { outline: 2px solid var(--neon); outline-offset: 3px; }

.btn-primary {
  background: linear-gradient(100deg, #56e83f, var(--neon) 55%, #a9ff5c);
  border-color: transparent;
  color: #05170a;
  font-weight: 700;
  box-shadow: 0 12px 34px -14px rgba(124, 255, 79, 0.85);
}
.btn-primary:hover { box-shadow: 0 16px 40px -14px rgba(124, 255, 79, 1); border-color: transparent; }

.btn-ghost { background: rgba(255, 255, 255, 0.03); }
.btn-small { padding: 9px 16px; font-size: 13px; }
.btn.is-soon { opacity: .55; cursor: not-allowed; }
.btn.full { width: 100%; }

.wallet-btn.is-connected { border-color: rgba(124, 255, 79, 0.45); background: rgba(124, 255, 79, 0.08); }
.dot { width: 7px; height: 7px; border-radius: 50%; background: var(--neon); box-shadow: 0 0 0 4px rgba(124, 255, 79, 0.14); }
.wallet-btn:not(.is-connected) .dot { background: var(--muted); box-shadow: 0 0 0 4px rgba(143, 162, 149, 0.14); }

/* ---------- HERO ---------- */
.hero { position: relative; padding: 72px 0 88px; isolation: isolate; overflow: clip; }
.hero-glow {
  position: absolute;
  inset: -22% -10% auto -10%;
  height: 760px;
  z-index: -1;
  background:
    radial-gradient(40% 52% at 24% 32%, rgba(124, 255, 79, 0.2), transparent 70%),
    radial-gradient(36% 46% at 76% 18%, rgba(52, 211, 153, 0.16), transparent 72%),
    radial-gradient(30% 40% at 58% 74%, rgba(176, 107, 255, 0.1), transparent 70%);
  filter: blur(18px);
}

.hero-inner { display: grid; grid-template-columns: 1.02fr 0.98fr; gap: 62px; align-items: center; }

.pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 7px 14px;
  border-radius: 999px;
  border: 1px solid rgba(124, 255, 79, 0.3);
  background: rgba(124, 255, 79, 0.08);
  color: #cbffb0;
  font-size: 12.5px;
  font-weight: 500;
}

.hero h1 { font-size: clamp(42px, 5.4vw, 68px); font-weight: 700; margin: 22px 0 20px; }
.hero-sub { color: var(--muted); font-size: 17px; max-width: 48ch; margin: 0 0 30px; }
.hero-cta { display: flex; gap: 14px; flex-wrap: wrap; }

.hero-stats {
  display: flex;
  gap: 42px;
  margin: 46px 0 0;
  padding-top: 26px;
  border-top: 1px solid var(--line);
}
.hero-stats dt { font-size: 11.5px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--muted); }
.hero-stats dd { margin: 6px 0 0; font-family: var(--font-display); font-size: 26px; font-weight: 600; font-variant-numeric: tabular-nums; }

/* Hero drop card */
.drop-card {
  position: relative;
  border-radius: 26px;
  border: 1px solid rgba(255, 201, 77, 0.28);
  background: linear-gradient(180deg, rgba(21, 28, 22, 0.92), rgba(8, 11, 9, 0.96));
  padding: 12px;
  box-shadow: 0 40px 90px -44px rgba(0, 0, 0, 0.95), 0 0 50px -20px rgba(255, 201, 77, 0.25);
}
.drop-media { position: relative; border-radius: 18px; overflow: hidden; aspect-ratio: 1 / 1; }
.drop-media img { width: 100%; height: 100%; object-fit: cover; }
.live-badge {
  position: absolute;
  top: 14px; left: 14px;
  display: inline-flex; align-items: center; gap: 7px;
  padding: 6px 12px;
  border-radius: 999px;
  background: rgba(4, 6, 5, 0.78);
  border: 1px solid rgba(255, 201, 77, 0.4);
  backdrop-filter: blur(8px);
  font-size: 11.5px; font-weight: 600;
  color: var(--r-legendary);
}

.drop-body { padding: 18px 10px 8px; }
.drop-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; }
.drop-head h3 { font-size: 20px; }
.drop-head p { margin: 4px 0 0; font-size: 13.5px; }
.edition {
  font-size: 11px;
  padding: 5px 10px;
  border-radius: 999px;
  border: 1px solid rgba(255, 201, 77, 0.35);
  color: var(--r-legendary);
  white-space: nowrap;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-weight: 600;
}

.drop-bid {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  margin: 20px 0 18px;
  padding: 16px;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--line);
}
.drop-bid strong { font-family: var(--font-display); font-size: 20px; }

/* ---------- SECTIONS ---------- */
.section { padding: 88px 0; }
.section-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 34px;
}
.section-head h2 { font-size: clamp(28px, 3.4vw, 38px); }
.section-head p { margin: 10px 0 0; }
.section-tag {
  font-size: 12px;
  color: var(--muted);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 6px 13px;
  white-space: nowrap;
}

/* ---------- PACKS ---------- */
.packs { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; align-items: stretch; }

.pack {
  position: relative;
  display: flex;
  flex-direction: column;
  border-radius: 22px;
  border: 1px solid var(--line);
  background: var(--surface);
  padding: 14px;
  transition: transform 0.25s, border-color 0.25s, box-shadow 0.3s;
}
.pack:hover { transform: translateY(-5px); border-color: #2d4433; box-shadow: 0 30px 60px -34px rgba(124, 255, 79, 0.4); }
.pack.is-featured { border-color: rgba(124, 255, 79, 0.42); box-shadow: 0 0 0 1px rgba(124, 255, 79, 0.12), 0 30px 70px -40px rgba(124, 255, 79, 0.5); }

.pack-ribbon {
  position: absolute;
  top: -11px; left: 50%;
  transform: translateX(-50%);
  z-index: 2;
  padding: 5px 14px;
  border-radius: 999px;
  background: var(--neon);
  color: #05170a;
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  white-space: nowrap;
  box-shadow: 0 8px 20px -8px rgba(124, 255, 79, 0.9);
}

.pack-visual {
  position: relative;
  aspect-ratio: 4 / 3;
  border-radius: 16px;
  overflow: hidden;
  display: grid;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, 0.06);
  isolation: isolate;
}
.pack-visual::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    repeating-linear-gradient(115deg, rgba(255, 255, 255, 0.05) 0 2px, transparent 2px 9px),
    radial-gradient(60% 70% at 50% 40%, rgba(124, 255, 79, 0.22), transparent 70%),
    linear-gradient(160deg, #0f1a12, #060a07 65%);
}
.tier-ranger::before {
  background:
    repeating-linear-gradient(115deg, rgba(255, 255, 255, 0.05) 0 2px, transparent 2px 9px),
    radial-gradient(60% 70% at 50% 40%, rgba(124, 255, 79, 0.34), transparent 70%),
    linear-gradient(160deg, #10200f, #060a07 65%);
}
.tier-vault::before {
  background:
    repeating-linear-gradient(115deg, rgba(255, 255, 255, 0.06) 0 2px, transparent 2px 9px),
    radial-gradient(60% 70% at 50% 40%, rgba(255, 201, 77, 0.28), transparent 70%),
    radial-gradient(50% 60% at 50% 80%, rgba(124, 255, 79, 0.16), transparent 70%),
    linear-gradient(160deg, #14170e, #060a07 65%);
}
.pack-foil {
  position: absolute;
  inset: 0;
  background: linear-gradient(115deg, transparent 30%, rgba(255, 255, 255, 0.16) 48%, transparent 62%);
  transform: translateX(-60%);
  transition: transform 0.9s ease;
}
.pack:hover .pack-foil { transform: translateX(60%); }

.pack-mark {
  font-size: 52px;
  color: var(--neon);
  filter: drop-shadow(0 0 18px rgba(124, 255, 79, 0.6));
  line-height: 1;
}
.tier-vault .pack-mark { color: var(--r-legendary); filter: drop-shadow(0 0 18px rgba(255, 201, 77, 0.6)); }
.pack-tier {
  position: absolute;
  bottom: 40px;
  font-family: var(--font-display);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.34em;
  color: #d8f5cb;
}
.pack-series {
  position: absolute;
  bottom: 20px;
  font-size: 9.5px;
  letter-spacing: 0.26em;
  text-transform: uppercase;
  color: rgba(238, 246, 238, 0.45);
}

.pack-info { padding: 18px 8px 6px; display: flex; flex-direction: column; flex: 1; }
.pack-info h3 { font-size: 20px; }
.pack-info p { margin: 5px 0 14px; font-size: 13.5px; }

.odds-bar { display: flex; height: 7px; border-radius: 999px; overflow: hidden; background: var(--line-soft); margin-bottom: 18px; }
.odds-bar span { display: block; height: 100%; }
.oc { background: var(--r-common); }
.ou { background: var(--r-uncommon); }
.or { background: var(--r-rare); }
.oe { background: var(--r-epic); }
.ol { background: var(--r-legendary); }

.pack-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: auto;
  padding-top: 15px;
  border-top: 1px solid var(--line);
}
.pack-foot strong { font-family: var(--font-display); font-size: 21px; }
.pack-foot small { font-size: 12.5px; color: var(--muted); font-weight: 500; }

/* ---------- ODDS TABLE ---------- */
.odds-section { border-top: 1px solid var(--line); background: linear-gradient(180deg, rgba(12, 17, 14, 0.6), transparent); }
.table-wrap { border: 1px solid var(--line); border-radius: var(--radius); overflow: auto; background: var(--surface); }
.odds-table { width: 100%; border-collapse: collapse; min-width: 620px; }
.odds-table th, .odds-table td { padding: 16px 20px; text-align: left; border-bottom: 1px solid var(--line-soft); font-size: 14px; }
.odds-table thead th {
  font-size: 12.5px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
  background: rgba(255, 255, 255, 0.02);
  border-bottom: 1px solid var(--line);
}
.th-sub { display: block; font-size: 11px; letter-spacing: 0; text-transform: none; color: rgba(143, 162, 149, 0.7); margin-top: 3px; }
.odds-table tbody tr:last-child td { border-bottom: 0; }
.odds-table tbody tr:hover { background: rgba(124, 255, 79, 0.04); }
.odds-table td:first-child { font-weight: 600; }
.odds-table .pct { font-variant-numeric: tabular-nums; font-family: var(--font-display); }
.odds-table .pct.best { color: var(--neon); }

.legend { display: flex; gap: 20px; flex-wrap: wrap; margin-top: 20px; font-size: 12.5px; color: var(--muted); }
.legend span { display: inline-flex; align-items: center; gap: 7px; }
.sw { width: 9px; height: 9px; border-radius: 3px; display: inline-block; }
.r-common { color: var(--r-common); }
.r-uncommon { color: var(--r-uncommon); }
.r-rare { color: var(--r-rare); }
.r-epic { color: var(--r-epic); }
.r-legendary { color: var(--r-legendary); }
.sw.r-common { background: var(--r-common); }
.sw.r-uncommon { background: var(--r-uncommon); }
.sw.r-rare { background: var(--r-rare); }
.sw.r-epic { background: var(--r-epic); }
.sw.r-legendary { background: var(--r-legendary); }

/* ---------- FILTERS + GRID ---------- */
.filters { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 26px; }
.chip {
  padding: 9px 18px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: transparent;
  color: var(--muted);
  font: inherit;
  font-size: 13.5px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s;
}
.chip:hover { color: var(--text); border-color: #2b3f31; }
.chip.is-active { background: var(--text); color: #05100a; border-color: var(--text); font-weight: 600; }

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

.card {
  border-radius: var(--radius);
  border: 1px solid var(--line);
  background: var(--surface);
  overflow: hidden;
  transition: transform 0.25s, border-color 0.25s, box-shadow 0.3s;
}
.card:hover { transform: translateY(-5px); border-color: #2d4433; box-shadow: 0 30px 60px -34px rgba(124, 255, 79, 0.35); }
.card.is-hidden { display: none; }

.card-media { position: relative; aspect-ratio: 1 / 1; overflow: hidden; background: var(--bg-soft); }
.card-media img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.6s cubic-bezier(0.2, 0.8, 0.2, 1); }
.card:hover .card-media img { transform: scale(1.045); }

.badge {
  position: absolute;
  top: 12px; left: 12px;
  padding: 5px 11px;
  border-radius: 999px;
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  background: rgba(4, 6, 5, 0.78);
  border: 1px solid currentColor;
  backdrop-filter: blur(6px);
}

.card-body { padding: 15px 16px 17px; }
.card-top { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.card-top h3 { font-size: 16px; }
.card-body p { margin: 5px 0 0; font-size: 12.5px; color: var(--muted); }
.supply { font-size: 11.5px; color: var(--muted); white-space: nowrap; }

/* ---------- VAULT ---------- */
.vault-section { border-top: 1px solid var(--line); }
.vault-summary {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  margin-bottom: 30px;
}
.vault-summary > div {
  padding: 18px 20px;
  border-radius: 14px;
  border: 1px solid var(--line);
  background: var(--surface);
}
.vault-summary strong { font-family: var(--font-display); font-size: 22px; font-variant-numeric: tabular-nums; }
.vault-grid .card { position: relative; }
.vault-grid .count {
  position: absolute;
  bottom: 14px; right: 14px;
  padding: 3px 9px;
  border-radius: 999px;
  background: rgba(124, 255, 79, 0.14);
  border: 1px solid rgba(124, 255, 79, 0.4);
  color: var(--neon);
  font-size: 11.5px;
  font-weight: 700;
}

.empty { text-align: center; color: var(--muted); padding: 46px 0; border: 1px dashed var(--line); border-radius: var(--radius); }

/* keep [hidden] authoritative over grid layout */
.grid[hidden], .empty[hidden] { display: none; }

/* ---------- HOW ---------- */
.how { border-top: 1px solid var(--line); background: linear-gradient(180deg, rgba(12, 17, 14, 0.5), transparent); }
.steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.steps li { padding: 28px 26px; border-radius: var(--radius); border: 1px solid var(--line); background: var(--surface); }
.step-num { font-family: var(--font-display); font-size: 13px; font-weight: 600; color: var(--neon); letter-spacing: 0.14em; }
.steps h3 { font-size: 19px; margin: 14px 0 10px; }
.steps p { margin: 0; color: var(--muted); font-size: 14.5px; }

/* ---------- FOOTER ---------- */
.footer { border-top: 1px solid var(--line); padding: 54px 0 34px; background: var(--bg-soft); }
.footer-inner { display: flex; justify-content: space-between; gap: 32px; flex-wrap: wrap; }
.footer-brand p { margin: 10px 0 0; font-size: 13px; letter-spacing: 0.05em; }
.footer-links { display: flex; gap: 26px; flex-wrap: wrap; font-size: 14px; color: var(--muted); }
.footer-links a:hover { color: var(--text); }
.footer-pay { margin-top: 34px; padding-top: 22px; border-top: 1px solid var(--line); }
.footer-pay .label { display: block; font-size: 11px; letter-spacing: 0.16em; text-transform: uppercase; color: var(--muted); }
.pay-row { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; margin-top: 10px; }
.pay-row code {
  font-family: ui-monospace, "SF Mono", Menlo, Consolas, monospace;
  font-size: 13.5px;
  color: var(--text);
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 9px 13px;
  word-break: break-all;
  max-width: 100%;
}
.footer-pay .fine { margin: 12px 0 0; font-size: 12.5px; max-width: 70ch; }
.footer-fine { margin-top: 34px; padding-top: 22px; border-top: 1px solid var(--line); }
.footer-fine p { margin: 0; font-size: 12.5px; max-width: 70ch; }

/* ---------- RIP MODAL ---------- */
.rip { position: fixed; inset: 0; z-index: 100; display: grid; place-items: center; padding: 24px; }
.rip[hidden] { display: none; }
.rip-backdrop { position: absolute; inset: 0; background: rgba(2, 4, 3, 0.86); backdrop-filter: blur(8px); animation: fade 0.2s ease; }

.rip-panel {
  position: relative;
  width: min(680px, 100%);
  max-height: 92vh;
  overflow: auto;
  border-radius: 24px;
  border: 1px solid var(--line);
  background: radial-gradient(70% 60% at 50% 0%, rgba(124, 255, 79, 0.09), transparent 70%), var(--surface);
  box-shadow: 0 60px 130px -40px #000;
  padding: 40px 26px 28px;
  animation: pop 0.26s cubic-bezier(0.2, 0.9, 0.3, 1);
}
.rip-x {
  position: absolute;
  top: 14px; right: 14px;
  width: 34px; height: 34px;
  border-radius: 50%;
  border: 1px solid var(--line);
  background: rgba(4, 6, 5, 0.7);
  color: var(--text);
  font-size: 13px;
  cursor: pointer;
  z-index: 3;
}
.rip-x:hover { background: rgba(255, 255, 255, 0.1); }
.rip-x:focus-visible { outline: 2px solid var(--neon); outline-offset: 2px; }
.rip-panel:focus { outline: none; }

.rip-stage { text-align: center; }

.rip-pack {
  position: relative;
  width: 168px;
  height: 224px;
  margin: 0 auto 26px;
  border-radius: 12px;
  border: 1px solid rgba(124, 255, 79, 0.45);
  background: radial-gradient(70% 60% at 50% 30%, rgba(124, 255, 79, 0.25), transparent 70%), linear-gradient(160deg, #10200f, #060a07);
  display: grid;
  place-items: center;
  overflow: hidden;
  box-shadow: 0 24px 50px -24px rgba(124, 255, 79, 0.7);
  animation: shake 0.42s ease-in-out 2;
}
.rip-foil {
  position: absolute;
  inset: 0;
  background: linear-gradient(115deg, transparent 35%, rgba(255, 255, 255, 0.3) 50%, transparent 65%);
  transform: translateX(-100%);
  animation: sweep 1.1s ease-in-out infinite;
}
.rip-mark { font-size: 46px; color: var(--neon); filter: drop-shadow(0 0 18px rgba(124, 255, 79, 0.7)); }
.rip-pack-name {
  position: absolute;
  bottom: 18px;
  font-family: var(--font-display);
  font-size: 11px;
  letter-spacing: 0.34em;
  color: #d8f5cb;
}
.rip-pack.is-gone { display: none; }

.rip-cards { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }
.pull {
  width: 174px;
  border-radius: 16px;
  overflow: hidden;
  border: 1px solid var(--line);
  background: var(--surface-2);
  text-align: left;
  opacity: 0;
  transform: translateY(18px) rotateY(-18deg);
  animation: flipIn 0.55s cubic-bezier(0.2, 0.9, 0.3, 1) forwards;
}
.pull-media { position: relative; aspect-ratio: 1 / 1; }
.pull-media img { width: 100%; height: 100%; object-fit: cover; }
.pull-body { padding: 12px 13px 14px; }
.pull-body h3 { font-size: 14.5px; margin: 7px 0 3px; }
.pull-body p { margin: 0; font-size: 11.5px; color: var(--muted); }

.pull.r-legendary { border-color: rgba(255, 201, 77, 0.7); box-shadow: 0 0 60px -10px rgba(255, 201, 77, 0.55); }
.pull.r-epic { border-color: rgba(176, 107, 255, 0.6); box-shadow: 0 0 46px -14px rgba(176, 107, 255, 0.6); }
.pull.r-rare { border-color: rgba(56, 189, 248, 0.55); box-shadow: 0 0 40px -16px rgba(56, 189, 248, 0.6); }
.pull.r-uncommon { border-color: rgba(74, 222, 128, 0.5); }

.auth-form { display: grid; gap: 14px; margin-top: 20px; text-align: left; }
.auth-form[hidden], #authGuest[hidden] { display: none; }

.wallet-options { display: grid; gap: 10px; margin: 20px 0 6px; }
.wallet-option {
  display: flex;
  align-items: center;
  gap: 12px;
  font: inherit;
  font-size: 15px;
  font-weight: 600;
  color: var(--text);
  background: var(--surface-2);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 13px 15px;
  cursor: pointer;
  text-align: left;
}
.wallet-option:hover {
  border-color: rgba(124, 255, 79, 0.5);
  background: rgba(124, 255, 79, 0.06);
}
.wallet-option:focus-visible { outline: 2px solid var(--neon); outline-offset: 2px; }
.wallet-option img { width: 26px; height: 26px; border-radius: 7px; }
.wallet-dot {
  width: 26px;
  height: 26px;
  border-radius: 7px;
  background: radial-gradient(circle at 30% 30%, var(--neon), #1d3a22);
}
.wallet-links { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; margin: 12px 0 4px; }
.wallet-links a {
  font-size: 13px;
  color: var(--text);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 8px 14px;
  text-decoration: none;
}
.wallet-links a:hover { border-color: rgba(124, 255, 79, 0.5); color: var(--lime); }
.auth-form label {
  display: grid;
  gap: 6px;
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
}
.auth-form input {
  font: inherit;
  font-size: 15px;
  letter-spacing: 0;
  text-transform: none;
  color: var(--text);
  background: var(--surface-2);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 11px 13px;
  width: 100%;
}
.auth-form input:focus-visible {
  outline: 2px solid var(--neon);
  outline-offset: 1px;
}
.auth-note { margin: 0; font-size: 12px; color: var(--muted); }
.auth-address {
  margin: 0;
  font-family: ui-monospace, "SF Mono", Menlo, Consolas, monospace;
  font-size: 11.5px;
  color: var(--muted);
  word-break: break-all;
}

.rip-title { font-size: 24px; margin: 24px 0 6px; }
.rip-status { margin: 0; font-size: 13.5px; min-height: 22px; }
.rip-actions { display: flex; gap: 12px; justify-content: center; margin-top: 22px; flex-wrap: wrap; }
.rip-actions[hidden] { display: none; }

.rarity {
  display: inline-block;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}
.rarity.t-inline {
  padding: 4px 9px;
  border-radius: 6px;
  border: 1px solid currentColor;
  background: rgba(255, 255, 255, 0.04);
}

@keyframes fade { from { opacity: 0; } to { opacity: 1; } }
@keyframes pop { from { opacity: 0; transform: translateY(14px) scale(0.98); } to { opacity: 1; transform: none; } }
@keyframes flipIn { to { opacity: 1; transform: none; } }
@keyframes sweep { 0% { transform: translateX(-100%); } 100% { transform: translateX(100%); } }
@keyframes shake {
  0%, 100% { transform: rotate(0) scale(1); }
  25% { transform: rotate(-2.2deg) scale(1.02); }
  75% { transform: rotate(2.2deg) scale(1.02); }
}

/* ---------- TOAST ---------- */
.toast {
  position: fixed;
  left: 50%;
  bottom: 30px;
  transform: translate(-50%, 24px);
  z-index: 120;
  padding: 14px 22px;
  border-radius: 999px;
  border: 1px solid rgba(124, 255, 79, 0.4);
  background: rgba(8, 26, 14, 0.96);
  backdrop-filter: blur(10px);
  color: #d3ffc2;
  font-size: 14px;
  font-weight: 500;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s, transform 0.25s;
  max-width: calc(100% - 40px);
  text-align: center;
}
.toast.is-visible { opacity: 1; transform: translate(-50%, 0); }

/* ---------- REVEAL ON LOAD ---------- */
.reveal { animation: rise 0.7s cubic-bezier(0.2, 0.8, 0.2, 1) both; }
.reveal:nth-child(2) { animation-delay: 0.06s; }
.reveal:nth-child(3) { animation-delay: 0.12s; }
.reveal:nth-child(4) { animation-delay: 0.18s; }
.reveal:nth-child(5) { animation-delay: 0.24s; }
@keyframes rise { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: none; } }

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

/* ---------- RESPONSIVE ---------- */
@media (max-width: 1024px) {
  .vault-summary { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 900px) {
  .hero-inner { grid-template-columns: 1fr; gap: 44px; }
  .hero-art { max-width: 460px; }
  .grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 760px) {
  .wrap { width: calc(100% - 32px); }
  .nav-links { display: none; }
  .nav-inner { height: 66px; gap: 10px; }
  .balance { padding: 8px 12px; font-size: 12px; }
  .hero { padding: 44px 0 60px; }
  .hero h1 { font-size: clamp(36px, 10vw, 46px); }
  .hero-stats { gap: 22px; flex-wrap: wrap; }
  .hero-stats dd { font-size: 21px; }
  .section { padding: 60px 0; }
  .section-head { flex-direction: column; align-items: flex-start; gap: 12px; }
  .packs { grid-template-columns: 1fr; max-width: 520px; margin-inline: auto; }
  .grid { grid-template-columns: 1fr; gap: 18px; }
  .steps { grid-template-columns: 1fr; }
  .footer-inner { flex-direction: column; gap: 22px; }
  .wallet-btn { display: none; }
  .rip-panel { padding: 34px 16px 24px; }
  .pull { width: 148px; }
  .odds-table th, .odds-table td { padding: 13px 14px; font-size: 13px; }
}

@media (max-width: 620px) {
  /* Odds table becomes one stacked card per rarity */
  .table-wrap { border: 0; background: none; overflow: visible; }
  .odds-table { min-width: 0; display: block; }
  .odds-table thead { display: none; }
  .odds-table tbody { display: block; }
  .odds-table tr {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px 10px;
    align-items: center;
    padding: 15px 16px;
    margin-bottom: 10px;
    border: 1px solid var(--line);
    border-radius: 14px;
    background: var(--surface);
  }
  .odds-table tr:hover { background: var(--surface); }
  .odds-table td { display: block; padding: 0; border: 0; font-size: 13px; }
  .odds-table td:first-child { grid-column: 1 / span 2; }
  .odds-table td:nth-child(2) { grid-column: 3; text-align: right; font-size: 12px; color: var(--muted); }
  .odds-table td:nth-child(n + 3)::before {
    content: attr(data-label);
    display: block;
    font-size: 9.5px;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--muted);
    margin-bottom: 3px;
  }
  .odds-table td.pct { font-size: 15px; }
  .legend { gap: 12px 16px; }
}

@media (max-width: 620px) {
  /* Pulls sit two-up and compact on phones so a 3-card crate fits without scrolling */
  .rip-panel { padding: 42px 14px 14px; max-height: 94vh; }
  .rip-cards { gap: 8px; }
  .pull { width: calc(43% - 4px); }
  .rip-cards.is-single .pull { width: 64%; }
  /* close button gets its own strip above the cards instead of sitting on them */
  .rip-x { top: 8px; right: 8px; width: 30px; height: 30px; font-size: 12px; }
  .pull-body { padding: 9px 10px 11px; }
  .pull-body h3 { font-size: 13px; margin: 5px 0 2px; }
  .pull-body p { font-size: 10.5px; }
  .rarity.t-inline { font-size: 9px; padding: 3px 7px; }
  .rip-title { font-size: 18.5px; margin: 10px 0 3px; }
  .rip-status { font-size: 12.5px; }
  .rip-actions { margin-top: 12px; gap: 8px; }
}

@media (max-width: 480px) {
  .nav-inner { gap: 8px; }
  .brand-mark { width: 22px; height: 22px; }
  .brand-name { font-size: 14.5px; letter-spacing: 0.04em; }
  .brand-sub { font-size: 8.5px; letter-spacing: 0.24em; margin-top: 3px; }
  .nav-actions { gap: 6px; }
  .balance { padding: 7px 10px; font-size: 11.5px; gap: 6px; }
  .wallet-btn { padding: 8px 12px; font-size: 12.5px; }
  .vault-summary { grid-template-columns: 1fr 1fr; }
  .hero-cta .btn { flex: 1 1 100%; }
  .drop-bid { flex-direction: column; gap: 14px; }
  .rip-actions .btn { flex: 1 1 100%; padding: 11px 16px; }
  .pack-visual { aspect-ratio: 16 / 9; }
  .pack-mark { font-size: 42px; }
  .pack-tier { bottom: 32px; }
  .pack-series { bottom: 14px; }
}

/* Very narrow phones: logo mark only, so the wallet controls always fit */
@media (max-width: 360px) {
  .brand-name { display: none; }
  .balance { font-size: 11.5px; padding: 7px 10px; }
  .wallet-btn { padding: 8px 11px; font-size: 12px; }
}

/* ---------- WALLET KEPT IN THIS BROWSER ---------- */
.browser-wallet {
  margin-top: 20px;
  padding-top: 18px;
  border-top: 1px solid var(--line);
  text-align: left;
}
.browser-wallet-head {
  margin: 0 0 6px;
  font-size: 15px;
  font-weight: 700;
  color: var(--text);
}
.browser-wallet-form {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 12px;
}
.browser-wallet-form[hidden] { display: none; }
.browser-wallet-form input {
  flex: 1 1 200px;
  min-width: 0;
  padding: 11px 13px;
  font: inherit;
  font-size: 14px;
  color: var(--text);
  background: var(--surface-2);
  border: 1px solid var(--line);
  border-radius: 12px;
}
.browser-wallet-form input:focus-visible {
  outline: 2px solid var(--neon);
  outline-offset: 2px;
}
.browser-wallet-key {
  margin: 14px 0 0;
  padding: 12px 14px;
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 12px;
  line-height: 1.55;
  word-break: break-all;
  color: var(--text);
  background: rgba(124, 255, 79, 0.07);
  border: 1px solid rgba(124, 255, 79, 0.32);
  border-radius: 10px;
}
.browser-wallet-key[hidden] { display: none; }


/* ---------- ADD FUNDS PANEL: code + steps, nothing else ---------- */
.deposit {
  margin-top: 24px;
  padding-top: 18px;
  border-top: 1px solid var(--line);
  text-align: left;
  scroll-margin-top: 12px;
}
.deposit[hidden] { display: none; }
.deposit-head {
  margin: 0 0 12px;
  font-size: 15px;
  font-weight: 700;
  color: var(--text);
}
.deposit-qr {
  display: block;
  box-sizing: border-box;
  width: 100%;
  max-width: 232px;
  height: auto;
  margin: 0 auto 14px;
  padding: 8px;
  background: #ffffff;
  border-radius: 12px;
}
.deposit-qr[hidden] { display: none; }
.deposit-steps {
  margin: 0 0 12px;
  padding-left: 20px;
  font-size: 13.5px;
  line-height: 1.6;
  color: var(--muted);
}
.deposit-steps li { margin-bottom: 6px; }
.deposit-steps strong { color: var(--text); }
.deposit-warn {
  margin: 0 0 8px;
  font-size: 12px;
  line-height: 1.5;
  color: var(--muted);
}
.deposit-copy {
  display: block;
  width: 100%;
  padding: 0;
  word-break: break-all;
  font: inherit;
  font-size: 12px;
  color: var(--muted);
  text-align: left;
  background: none;
  border: 0;
  cursor: pointer;
  text-decoration: underline;
  text-underline-offset: 2px;
}
.deposit-copy code {
  display: block;
  margin-top: 2px;
  overflow-wrap: anywhere;
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 11.5px;
  word-break: break-all;
  text-decoration: none;
}

.deposit-steps a {
  color: var(--text);
  text-decoration: underline;
  text-underline-offset: 2px;
}

/* ---------- BUY-IN-YOUR-OWN-WALLET OPTION ---------- */
.deposit-buy {
  margin-top: 14px;
  padding-top: 12px;
  border-top: 1px solid var(--line);
}
.deposit-buy-head {
  margin: 0 0 6px;
  font-size: 13px;
  font-weight: 700;
  color: var(--text);
}
.deposit-buy .deposit-warn strong,
.deposit-buy .deposit-warn em {
  color: var(--text);
  font-style: normal;
}
.deposit-buy-list {
  margin: 8px 0 10px;
  padding-left: 18px;
  font-size: 12.5px;
  line-height: 1.6;
  color: var(--muted);
}
.deposit-buy-list li { margin-bottom: 4px; }
.deposit-buy-list strong { color: var(--text); }
.deposit-buy-list a,
.deposit-buy .deposit-warn a {
  color: var(--text);
  text-decoration: underline;
  text-underline-offset: 2px;
}
