* { box-sizing: border-box; font-family: Inter, Segoe UI, Arial, sans-serif; }
body {
  margin: 0;
  background: linear-gradient(180deg, #0b1220 0%, #1f2a44 100%);
  color: #e7edf9;
}
.app-shell {
  max-width: 480px;
  margin: 0 auto;
  min-height: 100dvh;
  padding: 12px;
}
.screen { display: none; }
.screen.active { display: block; }
.card {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 18px;
  padding: 18px;
}
.full-height {
  min-height: calc(100dvh - 24px);
  display: flex;
  flex-direction: column;
}
h1, h2 {
  margin: 0;
  text-align: center;
}
.hint {
  text-align: center;
  color: #b7c3dd;
  margin: 12px 0 16px;
}
.btn {
  border: 0;
  border-radius: 14px;
  padding: 14px;
  font-weight: 700;
  cursor: pointer;
}
.btn.primary {
  background: #3b82f6;
  color: #fff;
}
.huge-btn {
  margin-top: 8px;
  width: 100%;
  flex: 1;
  min-height: 56dvh;
  font-size: 2rem;
}
.reader {
  margin-top: 14px;
  width: 100%;
  border-radius: 12px;
  overflow: hidden;
}
.status {
  margin-top: 10px;
  text-align: center;
  color: #c9d6ee;
}
.hidden { display: none !important; }
.result-card {
  min-height: calc(100dvh - 24px);
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 24px;
}
.barcode-value {
  text-align: center;
  font-size: 2rem;
  font-weight: 800;
  letter-spacing: 1px;
  word-break: break-word;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 12px;
  padding: 18px 12px;
}
.cell-wrap {
  text-align: center;
}
.cell-label {
  color: #b7c3dd;
  margin-bottom: 8px;
}
.cell-value {
  font-size: 4rem;
  font-weight: 800;
  line-height: 1;
}
.success-text {
  text-align: center;
  font-size: 3rem;
  font-weight: 900;
  letter-spacing: 2px;
  color: #74f0b1;
}
.elapsed-time {
  margin-top: -10px;
  text-align: center;
  font-size: 1.1rem;
  color: #d9e6ff;
}
.verify-ok {
  border-color: rgba(84, 239, 154, 0.95);
  box-shadow: 0 0 0 3px rgba(84, 239, 154, 0.3) inset;
}
.verify-error {
  animation: dangerBlink 180ms linear 0s 12;
  border-color: rgba(255, 91, 91, 0.95);
}
@keyframes dangerBlink {
  0% { box-shadow: 0 0 0 0 rgba(255, 70, 70, 0.1) inset; }
  50% { box-shadow: 0 0 0 999px rgba(255, 70, 70, 0.35) inset; }
  100% { box-shadow: 0 0 0 0 rgba(255, 70, 70, 0.1) inset; }
}
