/* Darty Check-in Kiosk — charte: Party (uppercase) + Manrope, flat brand colors, no gradients. */

@font-face {
  font-family: 'Party';
  src: url('../assets/fonts/Party-Bold.woff2') format('woff2');
  font-weight: 700;
  font-display: swap;
}
@font-face {
  font-family: 'Party';
  src: url('../assets/fonts/Party-Heavy.woff2') format('woff2');
  font-weight: 900;
  font-display: swap;
}

:root {
  --red: #ED1C27;
  --ink: #000;
  --paper: #F4F3F1;
  --muted: #717171;
  --line: #E5E5E5;
  --green: #39D66A;
  --orange: #FFAA00;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
[hidden] { display: none !important; }
html, body { height: 100%; }
body {
  font-family: 'Manrope', -apple-system, 'Segoe UI', sans-serif;
  background: var(--paper);
  color: var(--ink);
  -webkit-font-smoothing: antialiased;
  overflow: hidden;
}
.party {
  font-family: 'Party', 'Arial Black', Impact, sans-serif;
  text-transform: uppercase;
  line-height: 1;
}

.screen { height: 100vh; display: flex; flex-direction: column; }

/* ---------- setup ---------- */
#setup-screen { align-items: center; justify-content: center; }
.setup-card {
  width: min(420px, 92vw);
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 24px;
  padding: 36px 32px;
  text-align: center;
  box-shadow: 0 16px 48px rgba(0, 0, 0, 0.08);
}
.setup-card__logo { width: 64px; height: 64px; border-radius: 13px; margin-bottom: 18px; }
.setup-card h1 { font-size: 28px; font-weight: 900; }
.setup-card__hint { margin: 12px 0 22px; font-size: 14px; color: var(--muted); line-height: 1.5; }
.setup-card form { text-align: left; }
.setup-card label {
  display: block; font-size: 12px; font-weight: 800;
  text-transform: uppercase; letter-spacing: 0.06em; margin: 14px 0 6px;
}
.setup-card input {
  width: 100%; padding: 14px 16px; font: inherit; font-size: 16px;
  border: 1.5px solid var(--line); border-radius: 12px; outline: none; background: #fff;
}
.setup-card input:focus { border-color: #006EFA; }
.setup-card__error { margin-top: 14px; color: var(--red); font-size: 13px; font-weight: 700; }
.setup-card button {
  width: 100%; margin-top: 22px; padding: 16px; border: 0; cursor: pointer;
  background: var(--red); color: #fff; border-radius: 9999px;
  font-family: 'Manrope', sans-serif; font-weight: 800; font-size: 15px;
  letter-spacing: 0.06em; text-transform: uppercase;
}
.setup-card button[disabled] { opacity: 0.5; }

/* ---------- QR screen ---------- */
.qr-head {
  display: flex; align-items: center; justify-content: space-between;
  padding: 28px 40px 0;
}
.qr-head__brand { display: flex; align-items: center; gap: 14px; }
.qr-head__brand img { width: 52px; height: 52px; border-radius: 11px; }
.qr-head__brand span { font-size: 26px; font-weight: 900; }
.qr-head__clock { font-size: 40px; font-weight: 700; font-variant-numeric: tabular-nums; }

.qr-main {
  flex: 1; display: flex; flex-direction: column;
  align-items: center; justify-content: center; text-align: center;
  padding: 0 24px;
}
.qr-main__title { font-size: clamp(34px, 5vw, 56px); font-weight: 900; }
.qr-main__sub { margin: 14px 0 30px; font-size: 17px; color: var(--muted); max-width: 480px; line-height: 1.5; }
.qr-main__sub strong { color: var(--ink); }

.qr-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 28px;
  padding: 30px 30px 22px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.10);
}
.qr-card__qr { width: min(46vh, 420px); height: min(46vh, 420px); }
.qr-card__qr svg { width: 100%; height: 100%; display: block; }
.qr-card__bar {
  height: 7px; margin-top: 22px; background: #EFEEEC;
  border-radius: 9999px; overflow: hidden;
}
.qr-card__bar i {
  display: block; height: 100%; width: 100%;
  background: var(--red); border-radius: 9999px;
  transform-origin: left center;
}
.qr-card__note { margin-top: 14px; font-size: 13px; font-weight: 600; color: var(--muted); }

.qr-foot {
  display: flex; align-items: center; justify-content: center; gap: 8px;
  padding: 0 0 26px; font-size: 13px; font-weight: 700; color: var(--muted);
}
.qr-foot__sep { opacity: 0.5; }
.dot { width: 10px; height: 10px; border-radius: 50%; display: inline-block; }
.dot--ok { background: var(--green); }
.dot--warn { background: var(--orange); animation: blink 1.2s infinite; }
@keyframes blink { 50% { opacity: 0.35; } }

/* ---------- stale overlay ---------- */
.stale {
  position: fixed; inset: 0; z-index: 10;
  background: var(--paper);
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  text-align: center; padding: 32px;
}
.stale img { width: 72px; height: 72px; border-radius: 15px; margin-bottom: 24px; }
.stale h2 { font-size: 36px; font-weight: 900; }
.stale p { margin-top: 12px; font-size: 16px; color: var(--muted); }
