:root {
  --beer: #d5fd51;
  --bg: #070707;
  --card: #101010;
  --ink: #f3f3f3;
  --muted: #9ca3af;
  --line: rgba(213, 253, 81, 0.14);
  --danger: #f87171;
  --radius-sm: 12px;
  --radius-md: 16px;
  --radius-lg: 22px;
  --radius-xl: 28px;
  --motion-quick: 150ms;
  --motion-fast: 250ms;
  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
}
* { box-sizing: border-box; }
html, body { margin: 0; min-height: 100%; }
body {
  background: var(--bg);
  color: var(--ink);
  font-family: Inter, system-ui, sans-serif;
}
button:not(:disabled), [role="button"]:not(:disabled) { cursor: pointer; }
button:disabled { cursor: not-allowed; opacity: .4; }
a { color: inherit; }
.text-beer { color: var(--beer); }
.glass {
  background: rgba(14,14,14,.78);
  backdrop-filter: blur(16px);
  border: 1px solid var(--line);
}
.nav-blur {
  background: rgba(8,8,8,.92);
  backdrop-filter: blur(20px);
  border-bottom: 1px solid rgba(213,253,81,.08);
}
.btn-primary {
  background: var(--beer);
  color: #0a0a0a;
  font-weight: 800;
  border: 0;
  transition: box-shadow var(--motion-quick) var(--ease-out), transform var(--motion-quick) var(--ease-out);
}
.btn-primary:hover:not(:disabled) { box-shadow: 0 0 28px rgba(213,253,81,.4); }
.btn-primary:active:not(:disabled) { transform: scale(0.96); }
.btn-outline {
  border: 1.5px solid var(--beer);
  color: var(--beer);
  background: transparent;
  font-weight: 600;
  transition: background var(--motion-quick) var(--ease-out);
}
.btn-outline:hover:not(:disabled) { background: rgba(213,253,81,.1); }
.wallet-btn { font-family: 'JetBrains Mono', ui-monospace, monospace; font-size: .8rem; }
details.more-dd { position: relative; z-index: 60; }
details.more-dd > summary { list-style: none; cursor: pointer; }
details.more-dd > summary::-webkit-details-marker { display: none; }

.hero {
  position: relative;
  min-height: 560px;
  border-radius: 0 0 36px 36px;
  overflow: hidden;
  isolation: isolate;
}
.hero img.bg {
  position: absolute; inset: 0; width: 100%; height: 100%;
  object-fit: cover; filter: saturate(1.05) contrast(1.08) brightness(.68);
}
.hero .veil {
  position: absolute; inset: 0;
  background:
    linear-gradient(180deg, rgba(7,7,7,.28) 0%, rgba(7,7,7,.55) 48%, #070707 100%),
    radial-gradient(ellipse at 72% 38%, rgba(213,253,81,.12), transparent 55%);
}
.section-kicker {
  letter-spacing: .22em;
  text-transform: uppercase;
  font-size: 11px;
  font-weight: 800;
  color: var(--beer);
}
.trust-row {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
  margin-top: 28px;
}
@media (min-width: 768px) { .trust-row { grid-template-columns: repeat(4, 1fr); } }
.trust-tile {
  border-radius: var(--radius-lg);
  padding: 16px 14px;
  background: rgba(0,0,0,.45);
  border: 1px solid var(--line);
  backdrop-filter: blur(12px);
}
.trust-tile b {
  display: block;
  font-size: 20px;
  color: var(--beer);
  font-variant-numeric: tabular-nums;
  letter-spacing: -0.02em;
}
.trust-tile span {
  display: block;
  margin-top: 4px;
  font-size: 11px;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: #9ca3af;
  font-weight: 700;
}

.raffle-card {
  display: flex; flex-direction: column;
  border-radius: var(--radius-lg); overflow: hidden;
  background: var(--card);
  border: 1px solid var(--line);
  transition: transform var(--motion-fast) var(--ease-out), box-shadow var(--motion-fast) var(--ease-out), border-color var(--motion-fast) var(--ease-out);
  text-decoration: none; color: inherit;
}
.raffle-card:hover {
  transform: translateY(-3px);
  border-color: rgba(213,253,81,.45);
  box-shadow: 0 18px 50px rgba(0,0,0,.45), 0 0 0 1px rgba(213,253,81,.2);
}
.raffle-card .art {
  position: relative; aspect-ratio: 1; background: #0a0a0a;
}
.raffle-card .art img { width: 100%; height: 100%; object-fit: cover; }
.raffle-card .art .cd,
.spot-card .art .cd {
  position: absolute; left: 10px; bottom: 10px;
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px; font-weight: 700;
  background: rgba(0,0,0,.72); color: var(--beer);
  padding: 4px 8px; border-radius: 999px;
  border: 1px solid rgba(213,253,81,.25);
}
.badge-feat, .badge-hot, .badge-new {
  position: absolute; top: 10px; left: 10px;
  font-size: 10px; font-weight: 900; letter-spacing: .14em;
  text-transform: uppercase; padding: 4px 8px; border-radius: 999px;
}
.badge-feat { background: var(--beer); color: #0a0a0a; }
.badge-hot { background: #111; color: var(--beer); border: 1px solid var(--beer); }
.badge-new { background: rgba(213,253,81,.12); color: var(--beer); border: 1px solid var(--beer); }

.spot-card {
  display: grid;
  grid-template-columns: 1fr;
  border-radius: var(--radius-xl);
  overflow: hidden;
  background: var(--card);
  border: 1px solid rgba(213,253,81,.28);
  text-decoration: none;
  color: inherit;
  min-height: 280px;
}
@media (min-width: 768px) { .spot-card { grid-template-columns: 1.1fr 1fr; } }
.spot-card .art { position: relative; min-height: 280px; background: #0a0a0a; }
.spot-card .art img { width: 100%; height: 100%; object-fit: cover; position: absolute; inset: 0; }
.spot-card .copy { padding: 28px 24px; display: flex; flex-direction: column; justify-content: center; }
.spot-card:hover { border-color: rgba(213,253,81,.55); box-shadow: 0 20px 60px rgba(0,0,0,.4); }

.stat-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; }
@media (min-width: 768px) { .stat-grid { grid-template-columns: repeat(4, 1fr); } }
.stat-tile {
  border-radius: 20px; padding: 18px 16px;
  background: var(--card); border: 1px solid var(--line);
}
.stat-tile b { display: block; font-size: 22px; color: var(--beer); font-variant-numeric: tabular-nums; }
.pay-toggle { display: flex; gap: 8px; }
.pay-toggle button {
  flex: 1; min-height: 44px; border-radius: 14px;
  border: 1px solid rgba(213,253,81,.25); background: rgba(0,0,0,.4); color: var(--beer); font-weight: 800;
  transition: background var(--motion-quick) var(--ease-out), color var(--motion-quick) var(--ease-out);
}
.pay-toggle button.on { background: var(--beer); color: #0a0a0a; }
.qty-row { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 10px; }
.qty-row button {
  min-height: 40px; min-width: 44px; padding: 0 12px;
  border-radius: 12px; border: 1px solid rgba(213,253,81,.2);
  background: #0c0c0c; color: #d1d5db; font-weight: 700; font-size: 13px;
}
.qty-row button:hover { border-color: var(--beer); color: var(--beer); }
.nft-pick {
  border-radius: var(--radius-md); overflow: hidden; border: 1px solid rgba(255,255,255,.08);
  background: #0c0c0c; cursor: pointer; position: relative;
  transition: border-color var(--motion-quick) var(--ease-out);
}
.nft-pick.on { border-color: var(--beer); box-shadow: 0 0 0 1px var(--beer); }
.nft-pick img { width: 100%; aspect-ratio: 1; object-fit: cover; display: block; }

.split-bar { display: flex; height: 8px; border-radius: 999px; overflow: hidden; background: #1a1a1a; }
.split-bar .c { width: 99%; background: var(--beer); }
.split-bar .h { width: 1%; background: #fff; }

.holders {
  margin-top: 18px;
  border-radius: var(--radius-lg);
  border: 1px solid var(--line);
  overflow: hidden;
}
.holders header {
  padding: 12px 16px;
  font-size: 11px; letter-spacing: .16em; text-transform: uppercase;
  color: #9ca3af; font-weight: 800;
  border-bottom: 1px solid rgba(255,255,255,.06);
}
.holders li {
  display: flex; justify-content: space-between; gap: 12px;
  padding: 10px 16px; font-size: 13px;
  border-bottom: 1px solid rgba(255,255,255,.04);
  font-family: 'JetBrains Mono', monospace;
}
.holders li:last-child { border-bottom: 0; }

#shuffleModal {
  position: fixed; inset: 0; z-index: 80;
  background: rgba(0,0,0,.82); display: none;
  align-items: center; justify-content: center; padding: 20px;
}
#shuffleModal.open { display: flex; }
.shuffle-card {
  width: min(440px, 100%);
  border-radius: 28px; padding: 28px 24px; text-align: center;
  background: #0c0c0c; border: 1px solid rgba(213,253,81,.3);
  box-shadow: 0 30px 80px rgba(0,0,0,.6), 0 0 80px rgba(213,253,81,.08);
}
.ticket-roll {
  font-family: 'JetBrains Mono', monospace;
  font-size: 42px; font-weight: 800; color: var(--beer);
  letter-spacing: .08em; margin: 12px 0 8px;
  font-variant-numeric: tabular-nums;
}
input, select {
  width: 100%; border-radius: 14px; padding: 12px 14px;
  background: rgba(0,0,0,.45); border: 1px solid rgba(213,253,81,.2);
  color: #f5f5f5; font-size: 14px;
}
input:focus, select:focus { outline: none; border-color: var(--beer); }
label.lbl { display: block; font-size: 11px; letter-spacing: .16em; text-transform: uppercase; color: #9ca3af; margin-bottom: 6px; font-weight: 700; }

.chip {
  display: inline-flex; align-items: center; gap: 6px;
  border-radius: 999px; padding: 6px 10px;
  font-size: 11px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase;
  border: 1px solid var(--line); color: #d1d5db;
}
.chip.lime { color: #0a0a0a; background: var(--beer); border-color: var(--beer); }

.sec-grid { display: grid; gap: 12px; }
@media (min-width: 700px) { .sec-grid { grid-template-columns: 1fr 1fr; } }
.sec-card {
  border-radius: var(--radius-lg);
  padding: 20px 18px;
  background: var(--card);
  border: 1px solid var(--line);
}
.sec-card h3 { margin: 0 0 8px; font-size: 16px; }
.sec-card p { margin: 0; color: #9ca3af; font-size: 14px; line-height: 1.5; }

.skel {
  background: linear-gradient(90deg, #141414 25%, #1d1d1d 37%, #141414 63%);
  background-size: 400% 100%;
  animation: sk 1.2s linear infinite;
  border-radius: 16px; min-height: 180px;
}
@keyframes sk { 0% { background-position: 100% 0; } 100% { background-position: 0 0; } }

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