:root {
  --pink: #D71920;
  --yellow: #FFC72C;
  --ink: #1a1a1a;
  --muted: #6b6b6b;
  --bg: #111;
  --card: #1c1c1c;
  --border: #333;
  --green: #1fa36a;
  --amber: #d4a017;
  --red: #d32f2f;
  --tap: 48px;
  --font-head: 'Oswald', Arial, sans-serif;
  --font-body: 'Open Sans', Arial, sans-serif;
  font-family: var(--font-body);
}
* { box-sizing: border-box; }
html, body { margin: 0; background: var(--bg); color: #f4f4f4; }
.sandbox-banner {
  background: var(--yellow); color: #111; font-weight: 800; font-size: 12px;
  text-align: center; padding: 8px;
}
.k-header {
  display: flex; justify-content: space-between; align-items: center;
  padding: 12px 16px; background: var(--pink); color: #fff;
}
.k-header h1 { margin: 0; font-size: 20px; }
.sub { margin: 2px 0 0; font-size: 12px; color: #fff; }
.role-wrap { font-size: 12px; }
.role-wrap select { min-height: 40px; font-size: 16px; margin-left: 6px; }
.k-tabs { display: flex; flex-wrap: wrap; background: #000; border-bottom: 1px solid #333; }
.k-tabs button {
  flex: 1 1 120px; min-height: var(--tap); border: none; background: transparent;
  color: #ccc; font-weight: 700;
}
.k-tabs button.active { color: #fff; box-shadow: inset 0 -3px 0 var(--yellow); }
main { padding: 10px; max-width: 900px; margin: 0 auto; }
.ticket {
  background: var(--card); border-left: 6px solid #666; border-radius: 8px;
  padding: 10px; margin-bottom: 10px;
}
.ticket.green { border-left-color: var(--green); }
.ticket.yellow { border-left-color: var(--amber); }
.ticket.red { border-left-color: var(--red); }
.ticket h2 { margin: 0 0 6px; font-size: 18px; }
.muted { color: #aaa; font-size: 13px; }
.line { display: flex; justify-content: space-between; gap: 8px; padding: 6px 0; border-bottom: 1px solid #2a2a2a; }
.line.bumped { opacity: 0.45; text-decoration: line-through; }
.btn {
  min-height: var(--tap); border: none; border-radius: 8px; font-weight: 700;
  padding: 0 12px; margin: 4px 4px 0 0; cursor: pointer;
}
.btn-bump { background: var(--yellow); color: #111; }
.btn-ghost { background: #333; color: #fff; }
.btn-danger { background: #5a1515; color: #fff; }
.row { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 8px; }
input, select { min-height: 44px; font-size: 16px; padding: 8px; border-radius: 8px; border: 1px solid #444; background: #111; color: #fff; }
label { display: block; font-size: 12px; margin: 8px 0 4px; }
.foot { text-align: center; font-size: 12px; color: #888; }
.foot a { color: #ffd; }
.totals { font-size: 20px; font-weight: 800; margin: 8px 0; }
h1, h2, h3 { font-family: var(--font-head); font-weight: 700; }
.channel { display: inline-block; margin-left: 6px; padding: 2px 8px; border-radius: 999px; background: var(--yellow); color: #111; font-size: 13px; font-family: var(--font-body); font-weight: 700; vertical-align: middle; }
.channel-doordash { background: #D71920; color: #fff; }
.channel-ubereats { background: #111; color: #fff; }
.channel-grubhub { background: #FFC72C; color: #111; }
.open-count { margin: 0 0 12px; padding: 10px 12px; background: #111; color: #fff; border-radius: 8px; font-family: var(--font-body); }
.open-count strong { color: var(--yellow); font-size: 1.3rem; }
.print-sheet { display: none; }
@media print {
  .sandbox-banner, .k-header, .k-tabs, .no-print { display: none !important; }
  #screen > *:not(.print-sheet):not(.receipt) { display: none !important; }
  .receipt { display: block !important; background: #fff; color: #000; }
  .receipt button, .receipt .btn { display: none !important; }
  body, .print-sheet { background: #fff; color: #000; }
  .print-sheet { display: block; }
  .print-sheet article { break-inside: avoid; border-bottom: 2px solid #000; margin: 0 0 16px; padding: 0 0 12px; }
  .print-sheet h2 { font-size: 28px; margin: 0 0 8px; }
  .print-sheet p { font-size: 22px; margin: 0 0 6px; }
}
.hold { display: inline-block; padding: 1px 6px; border-radius: 4px; background: var(--yellow); color: #111; font-size: 11px; font-weight: 800; }
.arrived { margin: 4px 0; padding: 4px 8px; border-radius: 6px; background: var(--yellow); color: #111; font-weight: 800; font-size: 13px; }
.err { color: #ffb4b4; font-weight: 700; }
.ok { color: #9be7c0; font-weight: 700; }
.gate { max-width: 360px; margin: 24px auto; }
.gate input { width: 100%; }
.hits { display: flex; flex-wrap: wrap; }
body.gated .k-tabs, body.gated .role-wrap { display: none; }
body.board-mode main { max-width: none; padding: 16px; }
.board-empty { font-size: 28px; text-align: center; margin-top: 24px; color: #ccc; }
.orbit-stage {
  height: min(78vh, 720px);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}
.orbit-ring {
  position: relative;
  width: 16px;
  height: 16px;
  animation: clock-spin 18s linear infinite;
}
.clock-hub {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 22px;
  height: 22px;
  margin: -11px 0 0 -11px;
  border-radius: 50%;
  background: var(--yellow);
  box-shadow: 0 0 0 6px #2a2a2a;
}
.orbit-card {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 200px;
  margin-left: -100px;
  margin-top: -78px;
  transform: rotate(calc(var(--i) * 360deg / var(--n))) translateY(-210px) rotate(calc(var(--i) * -360deg / var(--n)));
  animation: clock-upright 18s linear infinite;
}
@keyframes clock-spin { to { transform: rotate(360deg); } }
@keyframes clock-upright {
  to {
    transform: rotate(calc(var(--i) * 360deg / var(--n) + 360deg)) translateY(-210px) rotate(calc(var(--i) * -360deg / var(--n) - 360deg));
  }
}
.face {
  background: var(--card);
  border-radius: 16px;
  padding: 12px;
}
.orbit-card h2 { font-size: 32px; }
.orbit-card .guest-photos img { width: 72px; height: 72px; }
.ready-tray { margin-top: 8px; }
.ready-tray h3 {
  margin: 0 0 8px;
  font-family: var(--font-head);
  letter-spacing: 0.12em;
  color: var(--yellow);
}
.ready-row { display: flex; flex-wrap: wrap; gap: 12px; }
.guest-card { background: var(--card); border-radius: 16px; padding: 16px 16px 12px; min-width: 240px; }
.guest-card.is-ready { outline: 3px solid var(--yellow); }
.guest-card.is-dropping { animation: drop-down 0.8s cubic-bezier(0.2, 0.7, 0.3, 1); }
@keyframes drop-down {
  0% { transform: translateY(-46vh); opacity: 0.2; }
  80% { transform: translateY(10px); }
  100% { transform: none; opacity: 1; }
}
.guest-status { margin: 0; font-size: 13px; font-weight: 800; letter-spacing: 0.08em; text-transform: uppercase; color: #bbb; }
.guest-card.is-ready .guest-status, .face .guest-status { color: #bbb; }
.guest-card.is-ready .guest-status { color: var(--yellow); }
.guest-card h2, .face h2 { margin: 4px 0 12px; font-family: var(--font-head); font-size: 42px; line-height: 1; }
.guest-photos { display: flex; flex-wrap: wrap; gap: 8px; }
.guest-photos figure { position: relative; margin: 0; }
.guest-photos img { width: 96px; height: 96px; object-fit: cover; border-radius: 12px; background: #111; display: block; }
.guest-photos figcaption {
  position: absolute; right: 4px; bottom: 4px; min-width: 22px; text-align: center;
  background: var(--yellow); color: #111; font-weight: 800; border-radius: 999px; font-size: 13px;
}
@media (prefers-reduced-motion: reduce) {
  .orbit-ring, .orbit-card, .guest-card.is-dropping { animation: none; }
}

/* Pickup window uses the store brand: Logo Red, Golden Yellow, white, Oswald. */
body.guest-only {
  background: #fff;
  color: #1a1a1a;
}
body.guest-only .brand-bar {
  display: flex;
  align-items: center;
  gap: 14px;
  background: #D71920;
  color: #fff;
  padding: 12px 16px;
}
body.guest-only .brand-bar img {
  width: 64px;
  height: 64px;
  border-radius: 12px;
  background: #fff;
  object-fit: cover;
}
body.guest-only .brand-bar h1 {
  margin: 0;
  font-family: 'Oswald', Arial, sans-serif;
  font-size: 28px;
  font-weight: 700;
  letter-spacing: 0.02em;
}
body.guest-only .brand-bar p {
  margin: 2px 0 0;
  color: #FFC72C;
  font-weight: 700;
}
body.guest-only .sandbox-banner {
  background: #FFC72C;
  color: #1a1a1a;
}
body.guest-only .depth-stage {
  position: relative;
  height: min(68vh, 640px);
  perspective: 1100px;
  perspective-origin: 50% 42%;
  overflow: hidden;
}
body.guest-only .depth-floor {
  position: absolute;
  left: 8%;
  right: 8%;
  bottom: 6%;
  height: 220px;
  background: linear-gradient(to top, rgba(215, 25, 32, 0.14), rgba(255, 199, 44, 0.08) 42%, transparent);
  transform: rotateX(72deg);
  transform-origin: center bottom;
}
body.guest-only .depth-field {
  position: absolute;
  inset: 0;
  transform-style: preserve-3d;
}
body.guest-only .depth-card {
  position: absolute;
  left: 50%;
  top: 42%;
  width: 230px;
  margin-left: -115px;
  transform-style: preserve-3d;
  transform:
    translateX(calc((var(--i) - (var(--n) - 1) / 2) * 190px))
    translateY(18px)
    translateZ(calc(-260px - (var(--i) * 30px)))
    rotateY(calc((var(--i) - (var(--n) - 1) / 2) * -18deg));
  transition: transform 1.15s cubic-bezier(0.22, 0.8, 0.24, 1), filter 1.15s;
  filter: saturate(0.82) brightness(0.92);
}
body.guest-only .depth-card.is-forward {
  transform: translateX(0) translateY(-10px) translateZ(120px) rotateY(0deg);
  filter: none;
  z-index: 3;
}
body.guest-only .depth-float {
  animation: depth-drift 7s ease-in-out infinite alternate;
}
@keyframes depth-drift {
  from { transform: translateY(0) rotateX(7deg); }
  to { transform: translateY(-18px) rotateX(-5deg); }
}
body.guest-only .face,
body.guest-only .guest-card {
  background: #fff;
  color: #1a1a1a;
  border: 1px solid rgba(215, 25, 32, 0.45);
  box-shadow: 0 22px 40px rgba(26, 26, 26, 0.16);
}
body.guest-only .face h2,
body.guest-only .guest-card h2 { color: #D71920; }
body.guest-only .guest-status { color: #6b6b6b; }
body.guest-only .glass-pass {
  display: flex;
  justify-content: center;
  gap: 16px;
  flex-wrap: wrap;
  perspective: 900px;
  padding: 4px 16px 24px;
}
body.guest-only .guest-card.is-ready {
  outline: none;
  background: #fff;
  min-width: 280px;
  border-color: #D71920;
  box-shadow: 0 28px 50px rgba(215, 25, 32, 0.16);
}
body.guest-only .guest-card.is-ready h2 { font-size: 64px; }
body.guest-only .guest-card.is-ready .guest-status { color: #1a1a1a; }
body.guest-only .guest-card.is-ready .guest-photos img { width: 128px; height: 128px; }
body.guest-only .gold-line {
  display: block;
  height: 4px;
  margin: -4px 0 14px;
  background: #FFC72C;
  transform: scaleX(0);
  transform-origin: left center;
  animation: gold-draw 0.7s 0.35s ease forwards;
}
@keyframes gold-draw { to { transform: scaleX(1); } }
body.guest-only .guest-card.is-arriving { animation: arrive-glass 1.15s cubic-bezier(0.16, 0.84, 0.28, 1); }
@keyframes arrive-glass {
  0% { transform: translateY(24px) scale(0.86); opacity: 0; }
  100% { transform: none; opacity: 1; }
}
body.guest-only .more-food {
  align-self: center;
  font-family: 'Oswald', Arial, sans-serif;
  font-size: 22px;
  color: #D71920;
}
body.guest-only .board-empty { color: #D71920; font-family: 'Oswald', Arial, sans-serif; }
body.guest-only .foot a { color: #D71920; font-weight: 700; }
body.guest-only .gate { color: #1a1a1a; }
@media (prefers-reduced-motion: reduce) {
  body.guest-only .depth-float,
  body.guest-only .guest-card.is-arriving,
  body.guest-only .gold-line { animation: none; }
  body.guest-only .gold-line { transform: none; }
  body.guest-only .depth-card { transition: none; }
}
