/* App de canje del staff (`/eventos/{slug}/canje`): pantalla completa,
   botones grandes (>=56px), pensada para usarse de pie con un solo pulgar. */
* {
  box-sizing: border-box;
}

html, body {
  height: 100%;
}

body {
  margin: 0;
  min-width: 360px;
  background: #10151a;
  color: #f4f6f6;
  font-family: system-ui, sans-serif;
}

section {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  padding: 1.25rem;
}

h1 {
  font-size: 1.4rem;
  margin: 0.5rem 0 0;
}

label {
  display: grid;
  gap: 0.4rem;
  font-weight: 700;
}

input, select {
  width: 100%;
  padding: 1rem;
  min-height: 56px;
  border-radius: 0.9rem;
  border: 1px solid #3a4650;
  background: #1b232b;
  color: inherit;
  font: inherit;
}

button {
  min-height: 56px;
  border: 0;
  border-radius: 999px;
  padding: 1rem 1.5rem;
  font-weight: 900;
  font-size: 1.05rem;
  cursor: pointer;
  background: #ffe269;
  color: #10151a;
}

button.secondary {
  background: transparent;
  color: #f4f6f6;
  border: 2px solid #3a4650;
}

#pin-error, #alta-error {
  min-height: 1.4rem;
  color: #ff8a80;
  font-weight: 700;
}

#camera, #camera-canvas {
  width: 100%;
  max-height: 45vh;
  border-radius: 1rem;
  background: black;
  object-fit: cover;
}

#scan-counter {
  font-size: 0.85rem;
  color: #9fb0ba;
}

.result-panel {
  border-radius: 1.25rem;
  padding: 1.5rem;
  text-align: center;
  font-weight: 800;
}

.result-panel .headline {
  font-size: 1.6rem;
  margin: 0 0 0.5rem;
}

.result-panel .subline {
  font-weight: 600;
  font-size: 1rem;
  opacity: 0.85;
}

.result-pending {
  background: #1e7d5c;
  color: white;
}

.result-redeemed {
  background: #8a1f2b;
  color: white;
}

.result-unknown {
  background: #a06a12;
  color: white;
}

[hidden] {
  display: none !important;
}
