@import url('https://fonts.googleapis.com/css2?family=Space+Grotesk:wght@400;500;700&family=JetBrains+Mono:wght@400;600&display=swap');

:root {
  --bg: #0a0a0f;
  --bg-card: #14141c;
  --border: #24242f;
  --text: #eaeaf2;
  --text-dim: #8a8a9a;
  --accent: #7c5cff;
  --accent2: #00e5a0;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: 'Space Grotesk', sans-serif;
  line-height: 1.5;
}

.accent { color: var(--accent2); }

.topbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 32px;
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  background: rgba(10,10,15,0.9);
  backdrop-filter: blur(8px);
  z-index: 10;
}

.brand { font-weight: 700; font-size: 20px; font-family: 'JetBrains Mono', monospace; }

nav a {
  color: var(--text-dim);
  text-decoration: none;
  margin-left: 24px;
  font-size: 14px;
}
nav a:hover { color: var(--text); }

.container { max-width: 760px; margin: 0 auto; padding: 40px 20px 80px; }
.container.narrow { max-width: 620px; }

.hero { text-align: center; margin-bottom: 40px; }
.hero h1 { font-size: 40px; margin-bottom: 12px; }
.subtitle { color: var(--text-dim); font-size: 16px; max-width: 480px; margin: 0 auto; }

.stats-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 6px 16px;
  font-size: 13px;
  color: var(--text-dim);
  margin-bottom: 20px;
}
.stats-pill .dot {
  width: 8px; height: 8px; border-radius: 50%;
  background: var(--accent2);
  display: inline-block;
  box-shadow: 0 0 6px var(--accent2);
}
.stats-pill span#online-count, .stats-pill span#total-visitors { color: var(--text); font-weight: 600; }

.amount-stepper {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  margin: 12px 0 8px;
}
.stepper-btn {
  width: 36px; height: 36px;
  border-radius: 50%;
  border: 1px solid var(--border);
  background: #0d0d13;
  color: var(--text);
  font-size: 18px;
  cursor: pointer;
}
.stepper-btn:hover { border-color: var(--accent); color: var(--accent); }
.amount-display {
  font-family: 'JetBrains Mono', monospace;
  font-size: 32px;
  font-weight: 700;
  color: var(--accent);
  display: flex;
  align-items: center;
}
.amount-display input {
  width: 140px;
  background: transparent;
  border: none;
  color: var(--accent);
  font-family: 'JetBrains Mono', monospace;
  font-size: 32px;
  font-weight: 700;
  text-align: center;
}
.amount-display input:focus { outline: none; }

.hint.center { text-align: center; }
.hint.small { font-size: 11px; opacity: 0.8; }

.link-btn {
  background: none;
  border: none;
  color: var(--text-dim);
  font-size: 12px;
  text-decoration: underline;
  cursor: pointer;
  padding: 0;
  margin-top: 10px;
}
.link-btn:hover { color: var(--text); }
.extra-details { margin-top: 12px; }
.extra-details.hidden { display: none; }

.dual-panels {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin-bottom: 40px;
}
.panel {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 16px 18px;
}
.panel h3 { font-size: 14px; margin: 0 0 10px; color: var(--text-dim); }
.activity-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 13px;
  padding: 6px 0;
  border-bottom: 1px solid var(--border);
}
.activity-row:last-child { border-bottom: none; }
.activity-name { font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; max-width: 45%; }
.activity-rank { color: var(--text-dim); }
.activity-time { color: var(--text-dim); font-size: 11px; }
.empty.small { font-size: 13px; color: var(--text-dim); }

@media (max-width: 640px) {
  .topbar {
    flex-wrap: wrap;
    padding: 14px 16px;
    gap: 8px;
    row-gap: 6px;
  }
  .brand { font-size: 16px; }
  nav {
    width: 100%;
    display: flex;
    justify-content: flex-start;
    gap: 16px;
  }
  nav a { margin-left: 0; font-size: 13px; }

  .container { padding: 24px 14px 60px; }
  .hero h1 { font-size: 28px; }
  .subtitle { font-size: 14px; }
  .stats-pill { font-size: 12px; flex-wrap: wrap; text-align: center; justify-content: center; }

  .claim-box { padding: 18px; }
  .amount-display { font-size: 24px; }
  .amount-display input { font-size: 24px; width: 90px; }
  .stepper-btn { width: 32px; height: 32px; }

  .entry { flex-wrap: wrap; }
  .price-block { text-align: left; margin-top: 8px; width: 100%; }
  .price-block .claim-btn { width: 100%; }

  .dual-panels { grid-template-columns: 1fr; }
}

.claim-box { background: var(--bg-card); border: 1px solid var(--border); border-radius: 16px; padding: 28px; margin-bottom: 32px; text-align: center; }
.claim-box h2 { margin-top: 0; font-size: 22px; }

.field-row { margin-bottom: 14px; }
.field-row label { display: block; font-size: 13px; color: var(--text-dim); margin-bottom: 6px; }
.field-row input {
  width: 100%;
  padding: 10px 12px;
  border-radius: 8px;
  border: 1px solid var(--border);
  background: #0d0d13;
  color: var(--text);
  font-size: 14px;
  font-family: inherit;
}
.field-row input:focus { outline: none; border-color: var(--accent); }

.amount-input { display: flex; align-items: center; background: #0d0d13; border: 1px solid var(--border); border-radius: 8px; padding: 0 12px; }
.amount-input span { color: var(--text-dim); margin-right: 6px; }
.amount-input input { border: none; background: transparent; padding: 10px 0; }

.hint { font-size: 12px; color: var(--text-dim); margin: 8px 0 0; }

button#submit-btn, .claim-btn {
  background: var(--accent);
  color: white;
  border: none;
  border-radius: 8px;
  padding: 12px 20px;
  font-weight: 600;
  font-size: 14px;
  cursor: pointer;
  width: 100%;
  margin-top: 8px;
}
button#submit-btn:hover, .claim-btn:hover { opacity: 0.9; }
button#submit-btn:disabled { opacity: 0.6; cursor: default; }

.error { color: #ff5c5c; font-size: 13px; margin-top: 8px; }

.leaderboard h2 { font-size: 22px; margin-bottom: 16px; }
.empty { color: var(--text-dim); }

.entry {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 16px;
  border: 1px solid var(--border);
  border-radius: 12px;
  margin-bottom: 10px;
  background: var(--bg-card);
  cursor: pointer;
  transition: border-color 0.15s;
}
.entry:hover { border-color: var(--accent); }
.entry:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }

.rank { font-family: 'JetBrains Mono', monospace; font-weight: 700; color: var(--accent2); width: 40px; }
.thumb { width: 48px; height: 48px; border-radius: 8px; object-fit: cover; flex-shrink: 0; }

.info { flex: 1; min-width: 0; }
.name { color: var(--text); font-weight: 600; font-size: 15px; }
.desc { font-size: 13px; color: var(--text-dim); margin: 4px 0 2px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.meta { font-size: 12px; color: var(--text-dim); margin: 0; }

.price-block { text-align: right; flex-shrink: 0; }
.price { font-family: 'JetBrains Mono', monospace; font-weight: 700; font-size: 16px; }
.price-block .claim-btn { width: auto; padding: 6px 10px; font-size: 11px; margin-top: 6px; position: relative; z-index: 1; }

.rules-list li { margin-bottom: 12px; }

footer {
  text-align: center;
  padding: 30px;
  color: var(--text-dim);
  font-size: 13px;
  border-top: 1px solid var(--border);
}
footer a { color: var(--text-dim); }

