:root {
  --bg: #0b0d12;
  --panel: #131722;
  --accent: #ffcc4d;
  --accent-2: #4df3ff;
  --muted: #95a0b5;
  --text: #f4f6fb;
  --shadow: 0 30px 60px rgba(0, 0, 0, 0.45);
}

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

body {
  font-family: "Space Grotesk", "PingFang SC", sans-serif;
  background: var(--bg);
  color: var(--text);
  min-height: 100vh;
}

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

.bg {
  position: fixed;
  inset: 0;
  z-index: -1;
  overflow: hidden;
}

.bg-gradient {
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at top left, rgba(77, 243, 255, 0.15), transparent 40%),
    radial-gradient(circle at 80% 20%, rgba(255, 204, 77, 0.2), transparent 45%),
    radial-gradient(circle at 70% 80%, rgba(255, 92, 120, 0.18), transparent 48%);
}

.bg-grid {
  position: absolute;
  inset: 0;
  background-image: linear-gradient(rgba(255, 255, 255, 0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.04) 1px, transparent 1px);
  background-size: 140px 140px;
  opacity: 0.5;
}

.bg-glow {
  position: absolute;
  width: 600px;
  height: 600px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(77, 243, 255, 0.2), transparent 65%);
  right: -200px;
  bottom: -200px;
}

.site-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 8vw;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(10px);
  background: rgba(11, 13, 18, 0.65);
  position: sticky;
  top: 0;
  z-index: 10;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
}

.brand-mark {
  width: 44px;
  height: 44px;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.08);
  display: grid;
  place-items: center;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.15);
}

.brand-mark img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.brand strong {
  display: block;
  font-size: 18px;
}

.brand span {
  font-size: 12px;
  color: var(--muted);
  letter-spacing: 2px;
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr);
  gap: 30px;
  padding: 50px 8vw 30px;
  align-items: center;
}

.hero-content h1 {
  font-family: "ZCOOL KuaiLe", sans-serif;
  font-size: clamp(2.4rem, 4vw, 3.4rem);
  margin-bottom: 16px;
}

.hero-content h1 span {
  color: var(--accent);
}

.hero-content p {
  color: var(--muted);
  line-height: 1.7;
  margin-bottom: 18px;
}

.chip {
  display: inline-flex;
  align-items: center;
  padding: 6px 14px;
  border-radius: 999px;
  background: rgba(77, 243, 255, 0.12);
  color: var(--accent-2);
  font-size: 12px;
  letter-spacing: 2px;
  margin-bottom: 10px;
}

.hero-actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.btn {
  border: none;
  border-radius: 999px;
  padding: 10px 20px;
  font-weight: 600;
  cursor: pointer;
  font-family: inherit;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.btn.primary {
  background: linear-gradient(120deg, var(--accent), #ff8c3b);
  color: #151515;
}

.btn.secondary {
  background: rgba(255, 255, 255, 0.08);
  color: var(--text);
}

.btn.ghost {
  background: rgba(255, 255, 255, 0.04);
  color: var(--text);
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.btn:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow);
}

.wallet-info {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  margin-top: 24px;
}

.wallet-info div {
  background: rgba(255, 255, 255, 0.05);
  padding: 12px 14px;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.wallet-info span {
  color: var(--muted);
  font-size: 12px;
}

.wallet-info strong {
  display: block;
  margin-top: 6px;
  font-size: 13px;
  word-break: break-all;
}

.wallet-warning {
  margin-top: 12px;
  font-size: 12px;
  color: #ffb85c;
  min-height: 16px;
}

.hero-card {
  background: var(--panel);
  padding: 24px;
  border-radius: 20px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: var(--shadow);
}

.hero-card h2 {
  margin-bottom: 14px;
}

.bet-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.bet-option {
  padding: 12px;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.04);
  cursor: pointer;
  transition: all 0.2s ease;
}

.bet-option.active {
  border-color: var(--accent-2);
  background: rgba(77, 243, 255, 0.12);
}

.bet-option h3 {
  margin-bottom: 6px;
}

.bet-inputs {
  margin-top: 16px;
  display: grid;
  gap: 12px;
}

.bet-inputs input {
  width: 100%;
  padding: 10px;
  border-radius: 10px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(255, 255, 255, 0.05);
  color: var(--text);
}

.bet-note {
  font-size: 12px;
  color: var(--muted);
  margin-top: 10px;
}

.pool-info {
  margin-top: 14px;
  padding: 12px;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.04);
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 12px;
  color: var(--muted);
}

.pool-info strong {
  color: var(--accent);
  font-size: 13px;
}

.track {
  padding: 30px 8vw;
}

.track-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 16px;
}

.track-actions {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

.status {
  padding: 6px 16px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  color: var(--accent-2);
}

.lanes {
  display: grid;
  gap: 12px;
}

.lane {
  position: relative;
  height: 56px;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.08);
  overflow: hidden;
}

.lane::after {
  content: "";
  position: absolute;
  inset: 0;
  background: repeating-linear-gradient(
    90deg,
    rgba(255, 255, 255, 0.08),
    rgba(255, 255, 255, 0.08) 10px,
    transparent 10px,
    transparent 20px
  );
  opacity: 0.2;
}

.horse {
  position: absolute;
  left: 12px;
  top: 50%;
  transform: translateY(-50%);
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 600;
  transition: left 0.2s ease;
}

.horse span {
  display: inline-flex;
  width: 34px;
  height: 34px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.12);
  align-items: center;
  justify-content: center;
}

.finish-line {
  position: absolute;
  right: 60px;
  top: 0;
  width: 6px;
  height: 100%;
  background: var(--accent);
  box-shadow: 0 0 12px rgba(255, 204, 77, 0.6);
}

.history {
  padding: 10px 8vw 60px;
}

.claim-panel {
  margin-top: 16px;
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

.claim-status {
  color: var(--muted);
  font-size: 12px;
}

.history-list {
  display: grid;
  gap: 12px;
}

.history-item {
  padding: 14px 16px;
  border-radius: 16px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.04);
}

.history-item small {
  color: var(--muted);
}

.empty {
  color: var(--muted);
}

.site-footer {
  text-align: center;
  padding: 20px 8vw 40px;
  color: var(--muted);
}

@media (max-width: 900px) {
  .hero {
    grid-template-columns: 1fr;
  }

  .wallet-info {
    grid-template-columns: 1fr;
  }
}
