:root {
  --bg: #0a0a0a;
  --fg: #f2f2f2;
  --muted: #8a8a8a;
  --panel: #161616;
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  background: var(--bg);
  color: var(--fg);
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  -webkit-text-size-adjust: 100%;
}

body {
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 24px 16px 40px;
}

header { text-align: center; margin-bottom: 8px; }

h1 {
  margin: 0;
  font-size: 2.4rem;
  letter-spacing: 0.04em;
  font-weight: 800;
  background: linear-gradient(90deg, #0099ff, #ffff00, #ff0066);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.sub { margin: 6px 0 0; color: var(--muted); font-size: 0.95rem; }

.card {
  width: 100%;
  max-width: 420px;
  display: flex;
  flex-direction: column;
  gap: 18px;
  margin-top: 24px;
}

.loading { color: var(--muted); text-align: center; }

.uid {
  text-align: center;
  color: var(--muted);
  font-variant-numeric: tabular-nums;
  letter-spacing: 0.15em;
  margin: 0 0 4px;
  text-transform: uppercase;
  font-size: 0.8rem;
}

.slot { display: flex; flex-direction: column; gap: 0; }

.vote-btn {
  border: 0;
  border-radius: 14px;
  padding: 22px;
  font-size: 1.25rem;
  font-weight: 700;
  cursor: pointer;
  transition: transform 0.06s ease, border-radius 0.15s ease;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.4);
}

.vote-btn:active { transform: scale(0.98); }

.vote-btn.revealed {
  border-bottom-left-radius: 0;
  border-bottom-right-radius: 0;
}

.barcode {
  background: #fff;
  border-radius: 0 0 14px 14px;
  padding: 16px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
}

/* display:flex above outranks the UA [hidden] rule, so hide explicitly. */
.barcode[hidden] { display: none; }

.barcode-svg { display: block; max-width: 100%; height: auto; }

.digits {
  color: #000;
  font-family: "SF Mono", ui-monospace, Menlo, Consolas, monospace;
  font-size: 1.4rem;
  letter-spacing: 0.3em;
  font-variant-numeric: tabular-nums;
}

footer { margin-top: auto; padding-top: 32px; }
footer p { color: var(--muted); font-size: 0.8rem; text-align: center; margin: 0; }
