* { box-sizing: border-box; }
body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif;
  background: linear-gradient(135deg, #1a1a2e 0%, #16213e 50%, #0f3460 100%);
  color: #f5f5f5;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
}
.card {
  background: rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 16px;
  padding: 2rem;
  max-width: 480px;
  width: 100%;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
}
h1 { margin: 0 0 0.5rem; font-size: 1.6rem; }
h2 { margin: 0 0 1rem; font-size: 1.2rem; color: #ffd166; }
p { line-height: 1.5; margin: 0.75rem 0; }
.stage-badge {
  display: inline-block;
  background: #ffd166;
  color: #16213e;
  font-weight: 700;
  padding: 0.25rem 0.75rem;
  border-radius: 999px;
  font-size: 0.85rem;
  margin-bottom: 1rem;
}
button {
  font: inherit;
  background: #06d6a0;
  color: #0a1128;
  border: none;
  padding: 0.85rem 1.5rem;
  border-radius: 10px;
  font-weight: 700;
  cursor: pointer;
  width: 100%;
  margin-top: 0.75rem;
  transition: transform 0.05s, opacity 0.2s;
}
button:hover { transform: translateY(-1px); }
button:disabled { opacity: 0.5; cursor: not-allowed; }
button.skip {
  background: transparent;
  color: #ef476f;
  border: 1px solid #ef476f;
}
.pin {
  display: flex;
  gap: 0.5rem;
  justify-content: center;
  margin: 1.25rem 0;
}
.pin input {
  width: 64px;
  height: 80px;
  font-size: 2.5rem;
  text-align: center;
  border: 2px solid rgba(255, 255, 255, 0.2);
  background: rgba(0, 0, 0, 0.25);
  color: #ffd166;
  border-radius: 12px;
  font-weight: 700;
}
.pin input:focus {
  outline: none;
  border-color: #06d6a0;
}
.error {
  color: #ef476f;
  font-weight: 600;
  min-height: 1.5rem;
  text-align: center;
}
.muted { color: #aab; font-size: 0.9rem; }
.qr-hint {
  text-align: center;
  font-size: 4rem;
  margin: 1rem 0;
}
.loading { text-align: center; padding: 2rem; color: #aab; }
.flats { list-style: none; padding: 0; margin: 1rem 0; }
.flats li { margin: 0.5rem 0; }
.flats label {
  display: flex; align-items: center; gap: 0.6rem;
  padding: 0.6rem 0.8rem;
  background: rgba(0, 0, 0, 0.2);
  border-radius: 8px;
  cursor: pointer;
}
.flats input[type=checkbox] { width: 20px; height: 20px; accent-color: #06d6a0; }
.flats label:has(input:checked) span { text-decoration: line-through; color: #06d6a0; }
.penalty-box {
  background: rgba(239, 71, 111, 0.15);
  border: 2px solid #ef476f;
  border-radius: 12px;
  padding: 1.25rem;
  margin: 1.25rem 0;
  text-align: center;
}
.penalty-count {
  font-size: 3rem;
  font-weight: 700;
  color: #ef476f;
  line-height: 1;
}
.penalty-label {
  margin-top: 0.5rem;
  font-size: 1rem;
  color: #f5f5f5;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}
