/* System fonts only: nothing is loaded from the internet. */
:root {
  --bg: #111111;
  --panel: #1c1c1c;
  --text: #f4f4f4;
  --muted: #a0a0a0;
  --accent: #c8f542;
  --accent-text: #111111;
  --border: #3a3a3a;
  --error: #ff6b6b;
}

* { box-sizing: border-box; }

[hidden] { display: none !important; }

html, body {
  margin: 0;
  min-height: 100%;
  background: var(--bg);
  color: var(--text);
  font-family: -apple-system, system-ui, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  font-size: 20px;
  line-height: 1.4;
  /* Removes the 300ms tap delay and double-tap zoom on touch screens. */
  touch-action: manipulation;
}

.screen {
  display: flex;
  flex-direction: column;
  gap: 24px;
  max-width: 640px;
  min-height: 100vh;
  margin: 0 auto;
  padding: 24px;
}

.screen.center {
  justify-content: center;
  align-items: center;
  text-align: center;
}

h1 { font-size: 36px; margin: 0; }
h2 { font-size: 24px; margin: 24px 0 0; }
.huge { font-size: 72px; }

#tap-zone {
  text-align: center;
  padding: 16px 0;
  user-select: none;
  -webkit-user-select: none;
}
#tap-zone p { margin: 8px 0 0; color: var(--muted); }

form {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.field {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin: 0;
  padding: 0;
  border: 0;
}
.field > span, .field > legend { font-weight: 600; padding: 0; }

input[type="text"], input[type="email"], input[type="password"] {
  width: 100%;
  min-height: 60px;
  padding: 12px 16px;
  font: inherit;
  font-size: 24px;
  color: var(--text);
  background: var(--panel);
  border: 2px solid var(--border);
  border-radius: 12px;
}
input:focus { outline: none; border-color: var(--accent); }

/* Tap-to-select choices: the radio itself is hidden, the label acts as a big button. */
.choices {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(130px, 1fr));
  gap: 12px;
}
.choices input[type="radio"] {
  position: absolute;
  opacity: 0;
  width: 0;
  height: 0;
}
.choices label, .choices .btn {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 72px;
  padding: 12px;
  font-size: 22px;
  font-weight: 600;
  text-align: center;
  color: var(--text);
  background: var(--panel);
  border: 2px solid var(--border);
  border-radius: 12px;
  cursor: pointer;
  user-select: none;
  -webkit-user-select: none;
}
#prize-buttons .btn {
  min-height: 110px;
  font-size: 28px;
}
.choices input[type="radio"]:checked + span {
  color: var(--accent);
}
.choices label:has(input:checked) {
  border-color: var(--accent);
  background: #2a3312;
}

.btn {
  min-height: 64px;
  padding: 12px 24px;
  font: inherit;
  font-size: 22px;
  font-weight: 600;
  border-radius: 12px;
  border: 2px solid var(--border);
  cursor: pointer;
}
.btn.primary {
  background: var(--accent);
  color: var(--accent-text);
  border-color: var(--accent);
}
.btn.secondary {
  background: var(--panel);
  color: var(--text);
}
.btn:disabled { opacity: 0.5; }

.field.invalid input,
.field.invalid .choices label { border-color: var(--error); }

.error {
  margin: 0;
  color: var(--error);
  font-weight: 600;
}

.disclaimer {
  margin: 0;
  font-size: 16px;
  color: var(--muted);
  text-align: center;
}

/* Staff screen */
.stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  margin: 0;
}
.stats div {
  padding: 16px;
  background: var(--panel);
  border-radius: 12px;
  text-align: center;
}
.stats dt { font-size: 16px; color: var(--muted); }
.stats dd { margin: 4px 0 0; font-size: 32px; font-weight: 700; }

#event-current { margin: 0; color: var(--muted); }

.row { display: flex; gap: 12px; }
.row > * { flex: 1; }
.row .btn { min-height: 56px; }

.list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.list li {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 16px;
  background: var(--panel);
  border-radius: 12px;
}
.list li span { flex: 1; }
.list li button {
  min-height: 44px;
  padding: 8px 14px;
  font: inherit;
  font-size: 16px;
  color: var(--text);
  background: transparent;
  border: 2px solid var(--border);
  border-radius: 8px;
}
.list .empty { color: var(--muted); }
