/* Check-in Rush: badge card + door buttons (on top of shell.css) */

:root {
  --z-vip: #FFC857;
  --z-attendee: #B8A2FF;
  --z-speaker: #3DDC97;
  --z-help: #FF7A93;
}

/* sound + full-screen buttons: right edge, clear of the badge and the door buttons */
.chrome-top { top: 42%; left: auto; right: 0; padding: 0 10px 0 0; }
.chrome-top .hud-right { flex-direction: column; }
.chrome-top .icon-btn { width: 36px; height: 36px; font-size: 15px; }

/* ----- Badge ----- */
.badge-wrap { position: absolute; left: 50%; top: calc(max(10px, env(safe-area-inset-top)) + 66px); transform: translateX(-50%); z-index: 3; pointer-events: none; display: grid; justify-items: center; gap: 6px; width: min(92vw, 330px); }
.badge-wrap[hidden] { display: none; }
.badge { width: 100%; display: flex; align-items: stretch; background: #fff; color: var(--g-graphite); border-radius: 14px; overflow: hidden; box-shadow: 0 12px 34px rgba(0, 0, 0, 0.45); transition: transform 0.14s ease-out, opacity 0.14s; }
.badge.swap { transform: translateY(-8px) scale(0.96); opacity: 0; }
.badge.empty { opacity: 0.35; }
.badge-stripe { width: 18px; flex: none; background: var(--z-attendee); }
.badge[data-stripe="vip"] .badge-stripe { background: var(--z-vip); }
.badge[data-stripe="attendee"] .badge-stripe { background: var(--z-attendee); }
.badge[data-stripe="speaker"] .badge-stripe { background: var(--z-speaker); }
.badge[data-stripe="help"] .badge-stripe { background: repeating-linear-gradient(135deg, #c9c9d4 0 8px, #9a9aab 8px 16px); }
.badge-main { flex: 1; min-width: 0; padding: 8px 10px 9px 12px; display: grid; align-content: center; }
.badge-type { font-family: var(--g-display); font-weight: 700; font-size: clamp(22px, 6.4vw, 30px); line-height: 1; letter-spacing: 0.02em; text-transform: uppercase; }
.badge-name { font-size: 13px; font-weight: 700; color: #5a5f73; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; margin-top: 3px; }
.badge-qr { width: 56px; height: 56px; align-self: center; margin-right: 10px; flex: none; image-rendering: pixelated; }
.combo { min-height: 22px; font-family: var(--g-display); font-weight: 700; font-size: 16px; color: var(--g-white); text-shadow: 0 2px 10px rgba(0, 0, 0, 0.7); opacity: 0; transform: translateY(4px); transition: opacity 0.15s, transform 0.15s; }
.combo.on { opacity: 1; transform: none; }
.combo.bad { color: var(--z-help); }

/* ----- Door buttons ----- */
.pad { position: absolute; left: 50%; bottom: max(10px, env(safe-area-inset-bottom)); transform: translateX(-50%); z-index: 4; display: grid; justify-items: center; gap: 8px; width: min(96vw, 470px); }
.pad[hidden] { display: none; }
.pad-row { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; width: 100%; }
.pad-btn { appearance: none; cursor: pointer; font-family: var(--g-body); color: var(--g-white); background: rgba(18, 20, 27, 0.82); border: 2px solid var(--zc, var(--g-lilac)); border-radius: 16px; padding: 8px 6px 9px; display: grid; justify-items: center; gap: 1px; min-height: 64px; backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); transition: transform 0.08s, background 0.12s; touch-action: manipulation; }
.pad-btn[hidden] { display: none; }
.pad-btn[data-zone="vip"] { --zc: var(--z-vip); }
.pad-btn[data-zone="attendee"] { --zc: var(--z-attendee); }
.pad-btn[data-zone="speaker"] { --zc: var(--z-speaker); }
.pad-btn[data-zone="help"] { --zc: var(--z-help); min-height: 0; grid-auto-flow: column; align-items: center; gap: 8px; padding: 7px 18px; }
.pad-btn:hover { background: rgba(40, 44, 62, 0.9); }
.pad-btn:active, .pad-btn.hit { transform: scale(0.95); background: color-mix(in srgb, var(--zc) 35%, #12141b); }
.pad-arrow { color: var(--zc); font-size: 14px; line-height: 1; }
.pad-name { font-family: var(--g-display); font-weight: 700; font-size: clamp(14px, 3.9vw, 18px); line-height: 1.1; text-transform: uppercase; letter-spacing: 0.02em; }
.pad-sub { font-size: 11px; font-weight: 700; color: var(--g-muted); }

/* announcements sit below the badge card */
.toast { top: 46%; }

/* host sits above the buttons in this game */
.host--desk { bottom: calc(max(10px, env(safe-area-inset-bottom)) + 84px); }
.host--desk .host-face { width: clamp(50px, 11vw, 78px); }

/* legend chips on the start panel */
.panel .how b.k-vip { background: color-mix(in srgb, var(--z-vip) 24%, transparent); border-color: var(--z-vip); min-width: 104px; }
.panel .how b.k-att { background: color-mix(in srgb, var(--z-attendee) 24%, transparent); border-color: var(--z-attendee); min-width: 104px; }
.panel .how b.k-spk { background: color-mix(in srgb, var(--z-speaker) 24%, transparent); border-color: var(--z-speaker); min-width: 104px; }

@media (min-width: 900px) and (min-height: 560px) {
  .badge-wrap { width: 360px; }
}
@media (max-height: 430px) {
  /* short landscape phones: badge to the left, buttons compact */
  .badge-wrap { left: 12px; transform: none; width: 250px; top: calc(max(10px, env(safe-area-inset-top)) + 58px); justify-items: start; }
  .pad-btn { min-height: 50px; padding: 5px 6px; }
  .pad-sub { display: none; }
  .host--desk { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  .badge, .combo, .pad-btn { transition: none; }
}
