:root {
  color-scheme: dark;
  --bg: #0f172a;
  --muted: rgba(255, 255, 255, 0.72);
  --line: rgba(255, 255, 255, 0.12);
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
  color: white;
  font-family: Inter, ui-sans-serif, system-ui, sans-serif;
  background: #0f172a;
}

button,
a {
  font: inherit;
  color: inherit;
}

button {
  cursor: pointer;
}

img {
  max-width: 100%;
}

.moon-gradient {
  background: radial-gradient(1200px 600px at 50% -200px, #a855f740, #0d0f1ef2);
}

.vignette {
  position: relative;
}

.vignette:before {
  content: "";
  pointer-events: none;
  background: radial-gradient(1000px 500px at 50% -100px, transparent, #00000059);
  position: fixed;
  inset: 0;
}

.card-blur {
  backdrop-filter: blur(8px);
}

.gradient-text {
  background: linear-gradient(90deg, #c084fc, #a78bfa, #f0abfc);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.gradient-yes {
  background: linear-gradient(90deg, #34d399, #22c55e);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.gradient-no {
  background: linear-gradient(90deg, #fb7185, #ef4444);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.grid-overlay,
.modal-grid-overlay {
  pointer-events: none;
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(#ffffff0f 1px, transparent 1px),
    linear-gradient(90deg, #ffffff0f 1px, transparent 1px);
  background-size: 40px 40px;
  opacity: 0.18;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 30;
  border-bottom: 1px solid var(--line);
  background: rgba(15, 23, 42, 0.6);
}

.header-inner,
.footer-inner,
.page {
  width: min(1152px, calc(100% - 32px));
  margin: 0 auto;
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 0;
}

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

.brand img {
  height: 40px;
  width: auto;
}

.pill {
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 4px 8px;
  color: rgba(255, 255, 255, 0.7);
  font-size: 12px;
}

.page {
  position: relative;
  padding: 56px 0 48px;
}

.loading,
.empty {
  min-height: 400px;
  display: grid;
  place-items: center;
  text-align: center;
  color: rgba(255, 255, 255, 0.8);
}

.spinner {
  width: 48px;
  height: 48px;
  margin: 0 auto 16px;
  border-radius: 999px;
  border-bottom: 2px solid #34d399;
  animation: spin 0.8s linear infinite;
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

.notice {
  margin-bottom: 16px;
  padding: 12px;
  border-radius: 8px;
  background: rgba(234, 179, 8, 0.1);
  border: 1px solid rgba(234, 179, 8, 0.2);
  color: #facc15;
  font-size: 14px;
}

.layout {
  display: grid;
  gap: 40px;
  align-items: center;
}

@media (min-width: 1024px) {
  .layout {
    grid-template-columns: 1fr 1fr;
  }
}

.ring-wrap {
  position: relative;
  display: grid;
  place-items: center;
}

.ring-wrap:before,
.ring-wrap:after {
  content: "";
  position: absolute;
  inset: -14px;
  border-radius: 999px;
  filter: blur(8px);
  background: radial-gradient(circle, #f472b659, transparent 55%);
}

.ring-wrap:after {
  inset: -28px;
  opacity: 0.5;
  animation: pulse 4s ease-in-out infinite;
}

@keyframes pulse {
  50% {
    opacity: 0.7;
    transform: scale(1.04);
  }
}

.aura {
  position: relative;
  width: 288px;
  height: 288px;
  border-radius: 999px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.15);
  box-shadow: 0 25px 50px rgba(0, 0, 0, 0.35);
  background: rgba(255, 255, 255, 0.05);
}

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

.aura:before,
.aura:after {
  content: "";
  position: absolute;
  border-radius: 999px;
  pointer-events: none;
}

.aura:before {
  inset: -30px;
  filter: blur(16px);
  background: radial-gradient(closest-side, #a855f78c, #a855f72e 55%, transparent 70%);
}

.panel {
  position: relative;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 24px;
  padding: 32px;
  background: linear-gradient(to bottom right, rgba(30, 41, 59, 0.6), rgba(15, 23, 42, 0.4));
}

.panel h1 {
  margin: 12px 0 0;
  font-size: 44px;
  line-height: 1.1;
}

.symbol {
  display: block;
  margin-top: 4px;
  font-size: 30px;
}

.chain {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 8px;
  padding: 4px 12px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.05);
  font-size: 12px;
}

.dot {
  width: 8px;
  height: 8px;
  border-radius: 999px;
  background: #c084fc;
}

.lede {
  margin: 12px 0 0;
  max-width: 62ch;
  color: var(--muted);
  font-size: 18px;
}

.contract {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 20px;
  font-size: 14px;
}

.contract span {
  color: rgba(255, 255, 255, 0.6);
}

.copy {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.05);
  border-radius: 999px;
  padding: 4px 8px;
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 12px;
}

.copied {
  color: #34d399;
  font-size: 12px;
}

.totals {
  display: flex;
  justify-content: space-between;
  margin-top: 20px;
  font-size: 12px;
  font-weight: 600;
}

.track {
  margin-top: 8px;
  height: 12px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.06);
  box-shadow: inset 0 1px rgba(255, 255, 255, 0.08), 0 0 0 1px rgba(255, 255, 255, 0.08);
  overflow: hidden;
}

.fill {
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, #d946ef, #a78bfa);
  box-shadow: 0 0 16px #d946ef59;
}

.left {
  margin-top: 4px;
  text-align: right;
  color: rgba(255, 255, 255, 0.6);
  font-size: 11px;
}

.votes {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin-top: 20px;
}

.vote {
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 12px 16px;
  color: white;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2);
}

.vote:hover {
  transform: scale(1.01);
}

.shimmer {
  position: relative;
  overflow: hidden;
  background: rgba(16, 185, 129, 0.9);
}

.shimmer:hover {
  background: #10b981;
}

.anti-shimmer {
  background: rgba(244, 63, 94, 0.9);
}

.anti-shimmer:hover {
  background: #f43f5e;
}

.shimmer:after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(110deg, transparent 0%, rgba(255, 255, 255, 0.05) 20%, transparent 40%);
  animation: shine 3s infinite;
}

@keyframes shine {
  60%,
  to {
    transform: translate(100%);
  }
}

.fine {
  margin: 12px 0 0;
  color: rgba(255, 255, 255, 0.6);
  font-size: 12px;
}

.lower {
  display: grid;
  gap: 24px;
  margin-top: 40px;
}

@media (min-width: 768px) {
  .lower {
    grid-template-columns: 1fr 1fr;
  }
}

.activity,
.why {
  border: 1px solid var(--line);
  border-radius: 24px;
  padding: 24px;
  background: rgba(15, 23, 42, 0.4);
}

.activity {
  background: linear-gradient(to bottom right, rgba(30, 41, 59, 0.6), rgba(15, 23, 42, 0.4));
  box-shadow: 0 25px 50px rgba(0, 0, 0, 0.25);
}

.activity h2,
.why h2 {
  margin: 0;
  font-size: 14px;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.6);
}

.why h2 {
  color: white;
  font-size: 18px;
  font-weight: 700;
}

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

.row {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 14px;
  color: rgba(255, 255, 255, 0.8);
}

.row i {
  width: 8px;
  height: 8px;
  border-radius: 999px;
  flex: none;
}

.row i.yes {
  background: #34d399;
}

.row i.no {
  background: #fb7185;
}

.row time {
  margin-left: auto;
  color: rgba(255, 255, 255, 0.5);
  font-size: 12px;
}

.why ul {
  margin: 8px 0 0;
  padding-left: 18px;
  color: var(--muted);
  font-size: 14px;
}

.why li + li {
  margin-top: 4px;
}

.site-footer {
  border-top: 1px solid var(--line);
}

.footer-inner {
  display: grid;
  gap: 24px;
  align-items: center;
  padding: 40px 0;
}

@media (min-width: 768px) {
  .footer-inner {
    grid-template-columns: 1fr auto;
  }
}

.site-footer h2 {
  margin: 0;
  font-size: 14px;
}

.site-footer p {
  margin: 8px 0 0;
  max-width: 62ch;
  color: rgba(255, 255, 255, 0.7);
  font-size: 14px;
}

.stores {
  display: flex;
  gap: 12px;
}

.stores img {
  height: 40px;
  width: auto;
}

.legal {
  padding-bottom: 32px;
  text-align: center;
  color: rgba(255, 255, 255, 0.4);
  font-size: 12px;
}

dialog.modal {
  position: fixed;
  inset: 0;
  height: fit-content;
  width: min(672px, calc(100% - 32px));
  margin: auto;
  overflow: hidden;
  color: white;
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 24px;
  padding: 48px;
  background: linear-gradient(to bottom right, rgba(30, 41, 59, 0.8), rgba(15, 23, 42, 0.6));
  box-shadow: 0 25px 50px rgba(0, 0, 0, 0.35);
}

dialog.modal::backdrop {
  background: #0f172ad9;
  backdrop-filter: blur(12px);
}

@keyframes modal-in {
  from {
    opacity: 0;
    transform: scale(0.95) translateY(20px);
  }
}

.close {
  position: absolute;
  top: 24px;
  right: 24px;
  width: 40px;
  height: 40px;
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.1);
  color: rgba(255, 255, 255, 0.7);
}

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

.badge {
  width: 36px;
  height: 36px;
  display: grid;
  place-items: center;
  border-radius: 999px;
}

.badge.yes {
  background: linear-gradient(90deg, #d946ef, #a855f7);
}

.badge.no {
  background: linear-gradient(90deg, #f43f5e, #ef4444);
}

.modal p {
  color: rgba(255, 255, 255, 0.8);
  line-height: 1.6;
}

.modal-actions {
  display: grid;
  gap: 12px;
}

.confirm,
.cancel {
  width: 100%;
  border-radius: 16px;
  border: 0;
  padding: 16px 32px;
  font-size: 18px;
  font-weight: 700;
}

.confirm {
  color: white;
  cursor: default;
}

.confirm.yes {
  background: #4ade80;
}

.confirm.no {
  background: linear-gradient(90deg, #f43f5e, #e11d48 50%, #ef4444);
}

.cancel {
  padding: 12px 24px;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.15);
  background: rgba(255, 255, 255, 0.1);
  color: rgba(255, 255, 255, 0.8);
  font-size: 16px;
  font-weight: 500;
}

.hidden {
  display: none;
}
