/* ═══════════════════════════════════════════════════════════════
   $MOONBAG — space-grade memecoin styling
   ═══════════════════════════════════════════════════════════════ */

:root {
  --bg: #05060f;
  --bg-2: #0a0c1c;
  --ink: #eef0ff;
  --ink-dim: #9aa0c3;
  --gold: #ffd75e;
  --gold-2: #ffb02e;
  --mint: #4ef0a8;
  --violet: #8b6bff;
  --card: rgba(255, 255, 255, 0.035);
  --card-edge: rgba(255, 255, 255, 0.08);
  --mono: "IBM Plex Mono", ui-monospace, monospace;
  --sans: "Space Grotesk", system-ui, sans-serif;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }

html, body { overflow-x: clip; }

body {
  background: var(--bg);
  color: var(--ink);
  font-family: var(--sans);
  line-height: 1.6;
}

::selection { background: var(--gold); color: #111; }

::-webkit-scrollbar { width: 10px; }
::-webkit-scrollbar-track { background: var(--bg); }
::-webkit-scrollbar-thumb { background: #2a2e4a; border-radius: 5px; }
::-webkit-scrollbar-thumb:hover { background: var(--gold-2); }

/* ── backdrop layers ─────────────────────────────────────────── */

#stars {
  position: fixed; inset: 0;
  width: 100%; height: 100%;
  z-index: 0; pointer-events: none;
}

.nebula {
  position: fixed; border-radius: 50%;
  filter: blur(120px); opacity: 0.35;
  z-index: 0; pointer-events: none;
  animation: nebula-drift 24s ease-in-out infinite alternate;
}
.nebula-a {
  width: 60vw; height: 60vw; top: -20vw; right: -20vw;
  background: radial-gradient(circle, #3b2a7a 0%, transparent 65%);
}
.nebula-b {
  width: 50vw; height: 50vw; bottom: -15vw; left: -18vw;
  background: radial-gradient(circle, #14405a 0%, transparent 65%);
  animation-delay: -12s;
}
@keyframes nebula-drift {
  from { transform: translate3d(0, 0, 0) scale(1); }
  to   { transform: translate3d(4vw, 3vw, 0) scale(1.15); }
}

/* aurora beams sweeping behind the hero */
.aurora {
  position: fixed; z-index: 0; pointer-events: none;
  width: 90vw; height: 90vw; top: -30vw; left: 5vw;
  border-radius: 50%;
  opacity: 0.16; filter: blur(90px);
  animation: aurora-sweep 26s ease-in-out infinite alternate;
}
.aurora-a {
  background: conic-gradient(from 120deg at 50% 50%,
    transparent 0deg, #ffd75e 40deg, transparent 90deg,
    #4ef0a8 160deg, transparent 220deg, #8b6bff 300deg, transparent 360deg);
}
.aurora-b {
  top: 20vh; left: -25vw; width: 70vw; height: 70vw;
  background: conic-gradient(from 300deg at 50% 50%,
    transparent 0deg, #4ef0a8 60deg, transparent 140deg, #ffd75e 240deg, transparent 320deg);
  animation-delay: -13s; opacity: 0.1;
}
@keyframes aurora-sweep {
  from { transform: rotate(0deg) scale(1); }
  to   { transform: rotate(40deg) scale(1.2); }
}

.grain {
  position: fixed; inset: -50%;
  z-index: 1; pointer-events: none; opacity: 0.05;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='200' height='200'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='2'/%3E%3C/filter%3E%3Crect width='200' height='200' filter='url(%23n)'/%3E%3C/svg%3E");
  animation: grain-shift 0.6s steps(4) infinite;
}
@keyframes grain-shift {
  0% { transform: translate(0, 0); } 25% { transform: translate(-2%, 3%); }
  50% { transform: translate(3%, -2%); } 75% { transform: translate(-3%, -3%); }
  100% { transform: translate(2%, 2%); }
}

/* ── nav ─────────────────────────────────────────────────────── */

.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 50;
  display: flex; align-items: center; justify-content: space-between;
  padding: 14px 28px;
  background: rgba(5, 6, 15, 0.65);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}
.nav-progress {
  position: absolute; bottom: -1px; left: 0; height: 2px; width: 0%;
  background: linear-gradient(90deg, var(--gold), var(--mint));
  box-shadow: 0 0 12px rgba(255, 215, 94, 0.7);
  transition: width 0.1s linear;
}
.nav-logo {
  display: flex; align-items: center; gap: 10px;
  text-decoration: none; color: var(--ink);
  font-weight: 700; letter-spacing: 0.14em; font-size: 18px;
}
.nav-bag { font-size: 22px; display: inline-block; animation: bag-bob 3s ease-in-out infinite; }
@keyframes bag-bob { 0%,100% { transform: translateY(0) rotate(-4deg); } 50% { transform: translateY(-4px) rotate(4deg); } }
.nav-name { background: linear-gradient(90deg, var(--gold), #fff, var(--gold)); background-size: 200%; -webkit-background-clip: text; background-clip: text; color: transparent; animation: shimmer 4s linear infinite; }
.nav-links { display: flex; gap: 26px; }
.nav-links a {
  color: var(--ink-dim); text-decoration: none; font-size: 14px; font-weight: 500;
  transition: color 0.2s;
}
.nav-links a:hover { color: var(--gold); }
@media (max-width: 760px) { .nav-links { display: none; } }

/* ── buttons ─────────────────────────────────────────────────── */

.btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 15px 30px; border-radius: 14px;
  font-family: var(--sans); font-weight: 700; font-size: 16px;
  text-decoration: none; cursor: pointer; border: none;
  transition: transform 0.18s cubic-bezier(0.34, 1.56, 0.64, 1), box-shadow 0.18s;
  position: relative; overflow: hidden;
}
.btn-small { padding: 9px 18px; font-size: 13px; border-radius: 10px; }
.btn-gold {
  background: linear-gradient(135deg, var(--gold) 0%, var(--gold-2) 100%);
  color: #201400;
  box-shadow: 0 6px 30px rgba(255, 176, 46, 0.35);
}
.btn-gold::after {
  content: ""; position: absolute; top: 0; left: -80%;
  width: 40%; height: 100%;
  background: linear-gradient(105deg, transparent, rgba(255,255,255,0.55), transparent);
  transform: skewX(-20deg);
  animation: btn-sheen 3.2s ease-in-out infinite;
}
@keyframes btn-sheen { 0%, 60% { left: -80%; } 100% { left: 160%; } }
.btn-gold:hover { transform: translateY(-3px) scale(1.02); box-shadow: 0 10px 40px rgba(255, 176, 46, 0.55); }
.btn-ghost {
  background: transparent; color: var(--ink);
  border: 1px solid var(--card-edge);
}
.btn-ghost:hover { border-color: var(--gold); color: var(--gold); transform: translateY(-3px); }
.btn-arrow { transition: transform 0.2s; }
.btn:hover .btn-arrow { transform: translateX(4px); }

/* ── hero ────────────────────────────────────────────────────── */

.hero {
  position: relative; z-index: 2;
  overflow: clip;
  min-height: 100vh;
  display: flex; flex-direction: column; justify-content: center;
  padding: 120px 6vw 60px;
}
.hero-inner {
  display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr);
  gap: 40px; align-items: center; max-width: 1280px; margin: 0 auto; width: 100%;
}
@media (max-width: 980px) {
  .hero-inner { grid-template-columns: 1fr; }
  .hero-moon-wrap { order: -1; min-height: 340px; }
}

.hero-eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  font-family: var(--mono); font-size: 12px; letter-spacing: 0.18em;
  color: var(--mint); border: 1px solid rgba(78, 240, 168, 0.25);
  background: rgba(78, 240, 168, 0.06);
  padding: 8px 16px; border-radius: 100px; margin-bottom: 28px;
}
.pulse-dot {
  width: 8px; height: 8px; border-radius: 50%; background: var(--mint);
  box-shadow: 0 0 0 0 rgba(78, 240, 168, 0.6);
  animation: pulse 1.8s ease-out infinite;
}
@keyframes pulse { 0% { box-shadow: 0 0 0 0 rgba(78, 240, 168, 0.6); } 100% { box-shadow: 0 0 0 12px rgba(78, 240, 168, 0); } }

.hero-title {
  font-size: clamp(56px, 9vw, 118px);
  line-height: 0.95; font-weight: 700; letter-spacing: -0.02em;
  margin-bottom: 28px;
}
.hero-title .line { display: block; }
.strike-wrap s {
  color: var(--ink-dim); text-decoration: none; position: relative;
}
.strike-wrap s::after {
  content: ""; position: absolute; left: -2%; top: 52%;
  width: 104%; height: 0.09em; background: var(--gold);
  transform: rotate(-2deg) scaleX(0); transform-origin: left;
  animation: strike 0.7s cubic-bezier(0.7, 0, 0.3, 1) 1.1s forwards;
  box-shadow: 0 0 18px rgba(255, 215, 94, 0.8);
}
@keyframes strike { to { transform: rotate(-2deg) scaleX(1); } }

.hero-sub {
  font-size: clamp(16px, 1.6vw, 20px); color: var(--ink-dim);
  max-width: 520px; margin-bottom: 36px;
}
.hero-sub b { color: var(--gold); }
.hero-cta { display: flex; gap: 16px; flex-wrap: wrap; margin-bottom: 30px; }

.hero-mint {
  display: inline-flex; align-items: center; gap: 10px;
  font-family: var(--mono); font-size: 13px;
  background: var(--card); border: 1px solid var(--card-edge);
  padding: 10px 16px; border-radius: 10px;
}
.mint-label { color: var(--ink-dim); }
.hero-mint code { color: var(--gold); word-break: break-all; }
.copy-btn {
  background: none; border: none; color: var(--ink-dim);
  cursor: pointer; font-size: 15px; transition: color 0.2s, transform 0.15s;
}
.copy-btn:hover { color: var(--gold); }
.copy-btn:active { transform: scale(0.85); }

/* moon */
.hero-moon-wrap { position: relative; display: grid; place-items: center; min-height: 420px; }
.orbit-ring {
  position: absolute; border: 1px dashed rgba(255, 255, 255, 0.1);
  border-radius: 50%;
}
.orbit-1 { width: 420px; height: 420px; animation: spin 60s linear infinite; }
.orbit-2 { width: 540px; height: 540px; animation: spin 90s linear infinite reverse; }
@keyframes spin { to { transform: rotate(360deg); } }

.moon {
  position: relative; width: 300px; height: 300px; border-radius: 50%;
  background: radial-gradient(circle at 34% 30%, #fdfbf4 0%, #e8e2ce 34%, #b8b09a 62%, #7d7663 100%);
  box-shadow:
    inset -28px -22px 60px rgba(30, 25, 60, 0.55),
    0 0 80px rgba(255, 246, 214, 0.28),
    0 0 200px rgba(255, 215, 94, 0.12);
  animation: moon-float 7s ease-in-out infinite;
}
@keyframes moon-float { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-16px); } }
.crater {
  position: absolute; border-radius: 50%;
  background: radial-gradient(circle at 35% 30%, rgba(90, 84, 66, 0.45), rgba(146, 138, 116, 0.35) 70%);
  box-shadow: inset 2px 3px 6px rgba(60, 55, 40, 0.5), inset -1px -2px 3px rgba(255, 252, 240, 0.35);
}
.c1 { width: 52px; height: 52px; top: 18%; left: 20%; }
.c2 { width: 30px; height: 30px; top: 52%; left: 12%; }
.c3 { width: 68px; height: 68px; top: 58%; left: 52%; }
.c4 { width: 22px; height: 22px; top: 30%; left: 62%; }
.c5 { width: 16px; height: 16px; top: 74%; left: 32%; }

.moon-flag { position: absolute; top: -74px; left: 58%; }
.flag-pole { width: 3px; height: 86px; background: linear-gradient(#ccc, #777); border-radius: 2px; }
.flag-cloth {
  position: absolute; top: 2px; left: 3px;
  background: linear-gradient(135deg, var(--gold), var(--gold-2));
  color: #201400; font-weight: 700; font-size: 13px; letter-spacing: 0.06em;
  padding: 6px 12px; border-radius: 0 6px 6px 0;
  transform-origin: left center;
  animation: flag-wave 2.4s ease-in-out infinite;
  box-shadow: 0 4px 18px rgba(255, 176, 46, 0.4);
}
@keyframes flag-wave { 0%,100% { transform: skewY(-3deg) scaleX(1); } 50% { transform: skewY(3deg) scaleX(1.04); } }

.moon-bag {
  position: absolute; bottom: 8%; left: 16%;
  font-size: 74px;
  filter: drop-shadow(0 10px 24px rgba(0, 0, 0, 0.5));
  animation: bag-lean 5s ease-in-out infinite;
}
@keyframes bag-lean { 0%,100% { transform: rotate(-6deg); } 50% { transform: rotate(3deg) translateY(-4px); } }

.sat {
  position: absolute; font-size: 26px;
  animation: sat-orbit 14s linear infinite;
  filter: drop-shadow(0 0 12px rgba(255, 215, 94, 0.35));
}
.sat-1 { animation-duration: 13s; }
.sat-2 { animation-duration: 19s; animation-delay: -7s; font-size: 30px; color: var(--mint); }
.sat-3 { animation-duration: 25s; animation-delay: -3s; }
@keyframes sat-orbit {
  from { transform: rotate(0deg) translateX(var(--orbit-r, 235px)) rotate(0deg); }
  to   { transform: rotate(360deg) translateX(var(--orbit-r, 235px)) rotate(-360deg); }
}

@media (max-width: 980px) {
  /* Placed after the base moon/orbit rules so these overrides win. */
  .moon { width: 210px; height: 210px; }
  .orbit-1 { width: 290px; height: 290px; }
  .orbit-2 { width: 348px; height: 348px; }
  .sat { --orbit-r: 158px; font-size: 20px; }
  .moon-bag { font-size: 54px; }
  .moon-flag { top: -60px; }
  .flag-pole { height: 70px; }
}

.scroll-hint {
  position: absolute; bottom: 26px; left: 50%; transform: translateX(-50%);
  width: 26px; height: 42px; border: 2px solid rgba(255,255,255,0.25); border-radius: 14px;
}
.scroll-hint span {
  position: absolute; top: 7px; left: 50%; margin-left: -2px;
  width: 4px; height: 8px; border-radius: 2px; background: var(--gold);
  animation: scroll-drop 1.8s ease-in-out infinite;
}
@keyframes scroll-drop { 0% { transform: translateY(0); opacity: 1; } 70% { transform: translateY(14px); opacity: 0; } 100% { opacity: 0; } }

/* ── ticker band ─────────────────────────────────────────────── */

.ticker-clip { overflow: clip; position: relative; z-index: 2; }
.ticker-band {
  background: linear-gradient(90deg, var(--gold), var(--gold-2));
  transform: rotate(-1.2deg) scale(1.02);
  overflow: hidden; padding: 12px 0;
  box-shadow: 0 8px 50px rgba(255, 176, 46, 0.25);
}
.ticker-track {
  display: flex; gap: 44px; white-space: nowrap;
  font-weight: 700; color: #201400; font-size: 16px; letter-spacing: 0.05em;
  animation: ticker-scroll 22s linear infinite;
  width: max-content;
}
@keyframes ticker-scroll { to { transform: translateX(-50%); } }

/* ── sections ────────────────────────────────────────────────── */

.section {
  position: relative; z-index: 2;
  max-width: 1180px; margin: 0 auto;
  padding: 110px 6vw 30px;
}
.section-title {
  font-size: clamp(34px, 5vw, 58px); font-weight: 700;
  letter-spacing: -0.02em; margin-bottom: 18px;
}
.grad-text {
  background: linear-gradient(90deg, var(--gold), var(--mint), var(--gold));
  background-size: 200%;
  -webkit-background-clip: text; background-clip: text; color: transparent;
  animation: shimmer 5s linear infinite;
}
@keyframes shimmer { to { background-position: 200%; } }
.section-sub { color: var(--ink-dim); max-width: 640px; margin-bottom: 48px; font-size: 17px; }
.section-sub b { color: var(--ink); }

/* reveal on scroll */
.reveal { opacity: 0; transform: translateY(34px); transition: opacity 0.8s ease, transform 0.8s cubic-bezier(0.22, 1, 0.36, 1); }
.reveal.in { opacity: 1; transform: none; }

/* ── live / countdown ────────────────────────────────────────── */

.live { padding-top: 90px; }
.live-grid {
  display: grid; grid-template-columns: 340px 1fr; gap: 26px; align-items: stretch;
}
@media (max-width: 900px) { .live-grid { grid-template-columns: 1fr; } }

.countdown-card {
  background: rgba(10, 12, 28, 0.92); border: 1px solid var(--card-edge);
  border-radius: 24px; padding: 30px; text-align: center;
  position: relative;
}
.countdown-card::before {
  content: ""; position: absolute; inset: -2px; border-radius: 26px; z-index: -1;
  background: conic-gradient(from 0deg, transparent 55%, rgba(255, 215, 94, 0.7), transparent 85%);
  animation: spin 5s linear infinite;
}
.cd-label { font-family: var(--mono); font-size: 12px; letter-spacing: 0.22em; color: var(--ink-dim); margin-bottom: 18px; }
.cd-ring-wrap { position: relative; width: 200px; margin: 0 auto 18px; }
.cd-ring { transform: rotate(-90deg); width: 100%; }
.cd-track { fill: none; stroke: rgba(255, 255, 255, 0.07); stroke-width: 9; }
.cd-progress {
  fill: none; stroke: url(#nope), var(--gold); stroke: var(--gold);
  stroke-width: 9; stroke-linecap: round;
  stroke-dasharray: 553; stroke-dashoffset: 0;
  filter: drop-shadow(0 0 8px rgba(255, 215, 94, 0.7));
  transition: stroke-dashoffset 1s linear;
}
.cd-time {
  position: absolute; inset: 0; display: grid; place-items: center;
  font-family: var(--mono); font-size: 46px; font-weight: 600; color: var(--gold);
  text-shadow: 0 0 30px rgba(255, 215, 94, 0.45);
}
.cd-sub { color: var(--ink-dim); font-size: 14px; }
.cd-sub b { color: var(--ink); }
.cd-mode { margin-top: 12px; font-family: var(--mono); font-size: 11px; color: var(--violet); letter-spacing: 0.1em; }

.stats-grid {
  display: grid; grid-template-columns: repeat(2, 1fr); gap: 26px;
}
@media (max-width: 560px) { .stats-grid { grid-template-columns: 1fr; } }
.stat-tile {
  background: var(--card); border: 1px solid var(--card-edge);
  border-radius: 24px; padding: 30px;
  backdrop-filter: blur(8px);
  transition: transform 0.25s, border-color 0.25s;
}
.stat-tile:hover { transform: translateY(-5px); border-color: rgba(255, 215, 94, 0.35); }
.stat-value { font-size: clamp(34px, 4vw, 50px); font-weight: 700; font-family: var(--mono); color: var(--ink); }
.stat-unit { color: var(--gold); margin-left: 4px; font-size: 0.7em; }
.stat-name { color: var(--ink-dim); font-size: 14px; margin-top: 4px; }
.stat-bar { height: 6px; border-radius: 3px; background: rgba(255,255,255,0.07); margin-top: 16px; overflow: hidden; }
.stat-bar-fill {
  height: 100%; width: 0%; border-radius: 3px;
  background: linear-gradient(90deg, var(--gold), var(--mint));
  transition: width 1.2s cubic-bezier(0.22, 1, 0.36, 1);
}

/* ── steps ───────────────────────────────────────────────────── */

.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 26px; }
@media (max-width: 860px) { .steps { grid-template-columns: 1fr; } }
.step-card {
  position: relative;
  background: var(--card); border: 1px solid var(--card-edge);
  border-radius: 24px; padding: 38px 30px;
  transition: transform 0.25s, border-color 0.25s, box-shadow 0.25s;
  overflow: hidden;
}
.step-card:hover {
  transform: translateY(-8px); border-color: rgba(255, 215, 94, 0.4);
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.45);
}
.step-num {
  position: absolute; top: 18px; right: 24px;
  font-family: var(--mono); font-size: 46px; font-weight: 600;
  color: rgba(255, 255, 255, 0.05);
}
.step-icon { font-size: 46px; margin-bottom: 20px; display: inline-block; }
.lock-anim { animation: lock-shake 3.4s ease-in-out infinite; }
@keyframes lock-shake { 0%, 86%, 100% { transform: rotate(0); } 90% { transform: rotate(-9deg); } 94% { transform: rotate(8deg); } 97% { transform: rotate(-4deg); } }
.accrue-anim { animation: accrue-rise 2.6s ease-in-out infinite; }
@keyframes accrue-rise { 0%,100% { transform: translateY(0) scale(1); } 50% { transform: translateY(-7px) scale(1.06); } }
.pay-anim { color: var(--mint); animation: pay-spin 4s ease-in-out infinite; }
@keyframes pay-spin { 0%,100% { transform: rotateY(0); } 50% { transform: rotateY(180deg); } }
.step-card h3 { font-size: 22px; margin-bottom: 10px; }
.step-card p { color: var(--ink-dim); font-size: 15px; }

/* ── math / calculator ───────────────────────────────────────── */

.math-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 26px; align-items: start; }
@media (max-width: 860px) { .math-grid { grid-template-columns: 1fr; } }
.formula-box {
  display: flex; flex-wrap: wrap; align-items: center; gap: 12px;
  font-family: var(--mono); font-size: 15px;
  background: var(--card); border: 1px solid var(--card-edge);
  border-radius: 18px; padding: 26px; margin-bottom: 20px;
}
.f-you { color: var(--gold); border: 1px dashed rgba(255,215,94,0.5); padding: 6px 12px; border-radius: 8px; }
.f-all { color: var(--ink-dim); border: 1px dashed rgba(255,255,255,0.25); padding: 6px 12px; border-radius: 8px; }
.f-cut { color: var(--mint); border: 1px solid rgba(78,240,168,0.45); padding: 6px 12px; border-radius: 8px; background: rgba(78,240,168,0.07); }
.f-div, .f-eq { color: var(--ink-dim); font-size: 20px; }
.math-formula p { color: var(--ink-dim); font-size: 15px; }

.calc-card {
  background: linear-gradient(160deg, rgba(255, 215, 94, 0.07), rgba(139, 107, 255, 0.06));
  border: 1px solid rgba(255, 215, 94, 0.25);
  border-radius: 24px; padding: 32px;
}
.calc-title { font-weight: 700; font-size: 20px; margin-bottom: 22px; }
.calc-label { display: block; font-size: 14px; color: var(--ink-dim); margin: 16px 0 8px; }
.calc-label b { color: var(--gold); font-family: var(--mono); }
input[type="range"] {
  width: 100%; appearance: none; height: 6px; border-radius: 3px;
  background: rgba(255, 255, 255, 0.12); outline: none;
}
input[type="range"]::-webkit-slider-thumb {
  appearance: none; width: 22px; height: 22px; border-radius: 50%;
  background: var(--gold); cursor: grab;
  box-shadow: 0 0 16px rgba(255, 215, 94, 0.6);
  transition: transform 0.15s;
}
input[type="range"]::-webkit-slider-thumb:hover { transform: scale(1.2); }
.calc-result {
  margin-top: 24px; border-top: 1px solid rgba(255, 255, 255, 0.1); padding-top: 18px;
}
.calc-row {
  display: flex; justify-content: space-between; align-items: center;
  padding: 7px 0; font-size: 15px;
}
.calc-row span { color: var(--ink-dim); }
.calc-row b { font-family: var(--mono); color: var(--mint); font-size: 17px; }
.calc-row.dim b { color: var(--ink-dim); }

/* ── leaderboard & feed ──────────────────────────────────────── */

.board-wrap {
  background: var(--card); border: 1px solid var(--card-edge);
  border-radius: 24px; overflow-x: auto; margin-bottom: 26px;
}
.board { width: 100%; border-collapse: collapse; font-size: 14px; min-width: 560px; }
.board th {
  text-align: left; font-family: var(--mono); font-weight: 500; font-size: 11px;
  letter-spacing: 0.18em; text-transform: uppercase; color: var(--ink-dim);
  padding: 18px 22px; border-bottom: 1px solid var(--card-edge);
}
.board td { padding: 14px 22px; border-bottom: 1px solid rgba(255, 255, 255, 0.04); font-family: var(--mono); }
.board tbody tr { transition: background 0.2s; }
.board tbody tr:hover { background: rgba(255, 215, 94, 0.05); }
.board .rank-1 td:first-child::before { content: "🥇 "; }
.board .rank-2 td:first-child::before { content: "🥈 "; }
.board .rank-3 td:first-child::before { content: "🥉 "; }
.board .cut { color: var(--mint); }
.board .pct { color: var(--gold); }

.feed-wrap {
  background: var(--card); border: 1px solid var(--card-edge);
  border-radius: 24px; padding: 24px;
}
.feed-head {
  display: flex; align-items: center; gap: 10px;
  font-family: var(--mono); font-size: 12px; letter-spacing: 0.2em;
  color: var(--ink-dim); margin-bottom: 16px;
}
.feed { display: flex; flex-direction: column; gap: 8px; max-height: 300px; overflow-y: auto; }
.feed-item {
  display: flex; justify-content: space-between; gap: 14px;
  font-family: var(--mono); font-size: 13px;
  background: rgba(255, 255, 255, 0.03); border-radius: 10px; padding: 10px 16px;
  animation: feed-in 0.5s cubic-bezier(0.22, 1, 0.36, 1);
}
@keyframes feed-in { from { opacity: 0; transform: translateY(-10px); } }
.feed-item .fw { color: var(--ink-dim); }
.feed-item .fa { color: var(--mint); font-weight: 600; }
.feed-item .ft { color: var(--ink-dim); opacity: 0.6; font-size: 11px; }

/* ── 3D tilt cards ───────────────────────────────────────────── */

.tilt {
  transform-style: preserve-3d;
  will-change: transform;
  position: relative;
}
.tilt::after {
  /* pointer-tracking glare */
  content: ""; position: absolute; inset: 0; border-radius: inherit;
  background: radial-gradient(420px circle at var(--gx, 50%) var(--gy, 50%),
    rgba(255, 255, 255, 0.08), transparent 55%);
  opacity: 0; transition: opacity 0.25s; pointer-events: none;
}
.tilt:hover::after { opacity: 1; }

/* countdown extras */
.cd-tip {
  position: absolute; width: 14px; height: 14px; border-radius: 50%;
  background: radial-gradient(circle, #fff 0%, var(--gold) 45%, transparent 75%);
  box-shadow: 0 0 14px 4px rgba(255, 215, 94, 0.55);
  top: 0; left: 0; pointer-events: none;
}
.burst { position: absolute; inset: 0; pointer-events: none; overflow: visible; }
.burst span {
  position: absolute; top: 50%; left: 50%; font-size: 18px;
  animation: burst-fly 1.1s cubic-bezier(0.2, 0.7, 0.3, 1) forwards;
}
@keyframes burst-fly {
  0% { transform: translate(-50%, -50%) scale(0.4); opacity: 1; }
  100% {
    transform: translate(calc(-50% + var(--bx)), calc(-50% + var(--by))) scale(1.2) rotate(var(--br));
    opacity: 0;
  }
}

.inline-link { color: var(--gold); text-decoration: underline; text-underline-offset: 3px; }
.inline-link:hover { color: var(--mint); }

/* per-contract rows in the position checker */
.contract-list { display: flex; flex-direction: column; gap: 8px; margin-top: 16px; }
.contract-row {
  display: flex; justify-content: space-between; align-items: center; gap: 12px;
  background: rgba(255, 255, 255, 0.03); border-radius: 12px;
  padding: 10px 16px; font-family: var(--mono); font-size: 13px; flex-wrap: wrap;
}
.contract-row .c-amt { color: var(--ink); font-weight: 600; }
.contract-row .c-date { color: var(--ink-dim); font-size: 12px; }
.chip {
  font-size: 11px; letter-spacing: 0.08em; padding: 4px 10px; border-radius: 100px;
  border: 1px solid transparent;
}
.chip.earning { color: var(--mint); border-color: rgba(78, 240, 168, 0.4); background: rgba(78, 240, 168, 0.08); }
.chip.warming { color: var(--gold); border-color: rgba(255, 215, 94, 0.4); background: rgba(255, 215, 94, 0.08); }
.chip.inactive, .chip.short { color: var(--ink-dim); border-color: rgba(255, 255, 255, 0.15); }

/* ── manage your lock ────────────────────────────────────────── */

.manage-card {
  margin-top: 26px;
  background: linear-gradient(160deg, rgba(78, 240, 168, 0.06), rgba(255, 215, 94, 0.05));
  border: 1px solid rgba(78, 240, 168, 0.25);
  border-radius: 24px; padding: 28px;
}
.manage-head { display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap; }
.manage-sub { color: var(--ink-dim); font-size: 13px; margin-top: 4px; }
.manage-card .manage-actions { margin-top: 20px; }
.manage-body { margin-top: 22px; }
.manage-stats {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin-bottom: 20px;
}
@media (max-width: 640px) { .manage-stats { grid-template-columns: 1fr; } }
.manage-stats > div {
  background: rgba(255, 255, 255, 0.04); border-radius: 14px; padding: 14px 18px;
  display: flex; flex-direction: column; gap: 2px;
}
.m-label { font-family: var(--mono); font-size: 11px; letter-spacing: 0.16em; color: var(--ink-dim); text-transform: uppercase; }
.manage-stats b { font-family: var(--mono); font-size: 20px; }
.m-green { color: var(--mint); }
.manage-actions { display: flex; gap: 12px; flex-wrap: wrap; }
.manage-actions input {
  flex: 1; min-width: 200px;
  background: rgba(0, 0, 0, 0.35); border: 1px solid var(--card-edge);
  border-radius: 12px; padding: 12px 16px; color: var(--ink);
  font-family: var(--mono); font-size: 15px; outline: none;
}
.manage-actions input:focus { border-color: var(--gold); }
.manage-msg { margin-top: 14px; font-family: var(--mono); font-size: 13px; color: var(--ink-dim); min-height: 18px; }
.manage-msg.ok { color: var(--mint); }
.manage-msg.err { color: #ff7a7a; }

/* ── faq ─────────────────────────────────────────────────────── */

.faq-list { display: flex; flex-direction: column; gap: 14px; max-width: 760px; }
.faq-item {
  background: var(--card); border: 1px solid var(--card-edge);
  border-radius: 16px; overflow: hidden;
  transition: border-color 0.25s;
}
.faq-item[open] { border-color: rgba(255, 215, 94, 0.35); }
.faq-item summary {
  cursor: pointer; padding: 20px 24px; font-weight: 600; font-size: 16px;
  list-style: none; position: relative;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
  content: "+"; position: absolute; right: 24px; color: var(--gold);
  font-size: 22px; transition: transform 0.3s;
}
.faq-item[open] summary::after { transform: rotate(45deg); }
.faq-item p { padding: 0 24px 20px; color: var(--ink-dim); font-size: 15px; }

/* ── footer ──────────────────────────────────────────────────── */

.footer {
  position: relative; z-index: 2; text-align: center;
  padding: 100px 6vw 60px; margin-top: 60px;
  background: linear-gradient(180deg, transparent, rgba(255, 215, 94, 0.04));
}
.footer-moon { font-size: 54px; animation: moon-float 6s ease-in-out infinite; display: inline-block; }
.footer-title { font-size: 30px; font-weight: 700; letter-spacing: 0.12em; margin: 14px 0 6px; }
.footer-tag { color: var(--ink-dim); font-size: 15px; margin-bottom: 26px; }
.footer-links { display: flex; justify-content: center; gap: 26px; margin-bottom: 34px; }
.footer-links a { color: var(--gold); text-decoration: none; font-size: 14px; }
.footer-links a:hover { text-decoration: underline; }
.footer-disclaimer {
  max-width: 620px; margin: 0 auto; color: var(--ink-dim);
  opacity: 0.65; font-size: 12px; line-height: 1.7;
}

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