/* ------------------------------------------------------------------
   VIBZ — event bar UI
   Same visual language as the PLAY by VIBZ site: cream paper + grain,
   ink outlines with offset shadows, Anton titles, Poppins body,
   yellow / pink / purple accents.
------------------------------------------------------------------- */

:root {
  --cream: #F2EAD8;
  --cream-2: #FBF5E8;
  --ink: #1A140F;
  --ink-dim: rgba(26, 20, 15, 0.6);
  --line: rgba(26, 20, 15, 0.15);
  --yellow: #F0B429;
  --yellow-ink: #a9760a;
  --pink: #E5266B;
  --pink-soft: #FCE9EF;
  --purple: #6C3FA8;
  --purple-soft: rgba(108, 63, 168, 0.08);
  --red: #C81C3F;

  --display: "Anton", "Impact", "Arial Narrow", sans-serif;
  --sans: "Poppins", -apple-system, "Segoe UI", Roboto, sans-serif;
  --hand: "Caveat", "Segoe Print", cursive;
}

*, *::before, *::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  min-height: 100vh;
  background: var(--cream);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 15px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

[hidden] { display: none !important; }

a { color: var(--pink); }

code {
  font-size: 0.88em;
  background: rgba(26, 20, 15, 0.06);
  padding: 1px 6px;
  border-radius: 4px;
  word-break: break-all;
}

/* ---------------------------------------------------------- decor */

.grain {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='200' height='200'%3E%3Cfilter id='g'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.8' numOctaves='3' stitchTiles='stitch'/%3E%3CfeColorMatrix type='saturate' values='0'/%3E%3C/filter%3E%3Crect width='200' height='200' filter='url(%23g)' opacity='1'/%3E%3C/svg%3E");
  background-size: 180px 180px;
  opacity: 0.06;
  mix-blend-mode: multiply;
}

.deco-stripes {
  position: fixed;
  top: -30px;
  right: 6%;
  width: 40px;
  height: 180px;
  display: flex;
  gap: 6px;
  transform: rotate(-7deg);
  z-index: 0;
  pointer-events: none;
}

.deco-stripes span { flex: 1; border-radius: 2px; }
.deco-stripes span:nth-child(1), .deco-bar span:nth-child(1) { background: var(--yellow); }
.deco-stripes span:nth-child(2), .deco-bar span:nth-child(2) { background: var(--pink); }
.deco-stripes span:nth-child(3), .deco-bar span:nth-child(3) { background: var(--purple); }

.deco-bar {
  position: fixed;
  left: 50%;
  bottom: 10px;
  transform: translateX(-50%);
  width: min(60%, 300px);
  height: 7px;
  display: flex;
  gap: 3px;
  z-index: 0;
  pointer-events: none;
  border-radius: 2px;
  overflow: hidden;
}

.deco-bar span { flex: 1; }

/* staff screens are busy enough, and the stripes would sit under the header tools */
body.staff .deco-bar,
body.staff .deco-stripes { display: none; }

/* ---------------------------------------------------------- layout */

.page {
  position: relative;
  z-index: 1;
  max-width: 760px;
  margin: 0 auto;
  padding: 0 20px 110px;
}

.page.wide { max-width: 1200px; }
.page.narrow { max-width: 380px; }

.center { text-align: center; }

.card {
  position: relative;
  background: var(--cream-2);
  border: 2.5px solid var(--ink);
  border-radius: 14px;
  box-shadow: 5px 5px 0 var(--ink);
  padding: 22px 24px;
  margin-bottom: 24px;
}

.muted { color: var(--ink-dim); font-size: 13.5px; margin: 0 0 12px; }
.hint { color: var(--ink-dim); font-size: 12.5px; margin: 6px 0 0; }

.section-label {
  font-family: var(--sans);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--pink);
  margin: 0 0 12px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.section-label::before,
.section-label::after {
  content: "";
  height: 2px;
  background: var(--line);
}

.section-label::before { width: 18px; flex: none; }
.section-label::after { flex: 1; }

.card .section-label:not(:first-child) { margin-top: 26px; }

/* ---------------------------------------------------------- hero header */

.hero {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  padding: 26px 0 26px;
  text-align: center;
}

.hero-logo {
  height: clamp(54px, 9vmin, 84px);
  width: auto;
  margin-bottom: 6px;
}

.hero-mark { height: 72px; width: auto; }

.eyebrow {
  display: inline-flex;
  align-items: center;
  padding: 4px 16px;
  background: var(--yellow);
  border: 2px solid var(--ink);
  border-radius: 3px;
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  transform: rotate(-2deg);
  white-space: nowrap;
}

.eyebrow.small { font-size: 11px; padding: 3px 12px; }

.title {
  font-family: var(--display);
  font-weight: 400;
  font-size: clamp(2.2rem, 6vw, 3.6rem);
  text-transform: uppercase;
  letter-spacing: 0.01em;
  line-height: 0.98;
  margin: 4px 0 0;
}

.subtitle {
  display: flex;
  align-items: baseline;
  gap: 0.35em;
  font-size: clamp(1rem, 1.8vw, 1.25rem);
}

.subtitle .kicker {
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.subtitle .hand {
  font-family: var(--hand);
  font-weight: 700;
  font-size: 1.5em;
  color: var(--purple);
}

.divider {
  width: 64px;
  height: 3px;
  background: var(--ink);
  margin-top: 2px;
}

/* ---------------------------------------------------------- staff header */

.staff-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px 20px;
  flex-wrap: wrap;
  padding: 22px 0 18px;
  margin-bottom: 22px;
  border-bottom: 3px solid var(--ink);
}

.staff-brand {
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--ink);
  text-decoration: none;
}

.staff-brand img { height: 46px; width: auto; }

.staff-title {
  display: block;
  font-family: var(--display);
  font-size: 26px;
  line-height: 1;
  text-transform: uppercase;
}

.staff-sub {
  display: block;
  font-size: 11.5px;
  font-weight: 800;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--pink);
  margin-top: 3px;
}

.head-tools {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

/* ---------------------------------------------------------- buttons & inputs */

.btn, .cartbar button {
  font-family: var(--sans);
  font-weight: 800;
  font-size: 14px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink);
  background: var(--yellow);
  border: 2.5px solid var(--ink);
  border-radius: 8px;
  padding: 10px 22px;
  box-shadow: 3px 3px 0 var(--ink);
  cursor: pointer;
  touch-action: manipulation;
  transition: background 0.15s, color 0.15s, transform 0.12s, box-shadow 0.12s;
}

.btn:hover, .cartbar button:hover {
  background: var(--pink);
  color: var(--cream-2);
  transform: translate(-1px, -1px);
  box-shadow: 4px 4px 0 var(--ink);
}

.btn:active, .cartbar button:active { transform: translate(1px, 1px); box-shadow: 1px 1px 0 var(--ink); }
.btn:disabled, .cartbar button:disabled { opacity: 0.5; cursor: default; transform: none; }

.btn.small { font-size: 11.5px; padding: 6px 12px; box-shadow: 2px 2px 0 var(--ink); }

.btn-ghost {
  font-family: var(--sans);
  font-size: 12.5px;
  font-weight: 700;
  color: var(--ink);
  background: transparent;
  border: 2px solid var(--ink);
  border-radius: 999px;
  padding: 5px 14px;
  cursor: pointer;
  transition: background 0.15s, color 0.15s, border-color 0.15s;
}

.btn-ghost:hover { background: var(--ink); color: var(--cream-2); }
.btn-ghost.small { font-size: 11.5px; padding: 4px 12px; }
.btn-ghost.danger { border-color: var(--red); color: var(--red); }
.btn-ghost.danger:hover { background: var(--red); color: #fff; }

.pill-link {
  display: inline-block;
  font-family: var(--sans);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ink-dim);
  text-decoration: none;
  background: transparent;
  border: 2px solid var(--ink);
  border-radius: 999px;
  padding: 5px 14px;
  cursor: pointer;
  transition: border-color 0.15s, color 0.15s, background 0.15s;
}

.pill-link:hover { border-color: var(--pink); color: var(--pink); background: var(--pink-soft); }
.pill-link.danger { border-color: var(--red); color: var(--red); }
.pill-link.danger:hover { background: var(--red); color: #fff; }

button:focus-visible, a:focus-visible, input:focus-visible, .ticket:focus-visible, summary:focus-visible {
  outline: 3px solid var(--purple);
  outline-offset: 2px;
}

.text-input {
  width: 100%;
  font-family: var(--sans);
  font-size: 15px;
  color: var(--ink);
  background: rgba(26, 20, 15, 0.03);
  border: none;
  border-bottom: 2px solid rgba(26, 20, 15, 0.3);
  border-radius: 0;
  padding: 10px 4px;
  outline: none;
  transition: border-color 0.2s, box-shadow 0.2s;
}

.text-input::placeholder { color: rgba(26, 20, 15, 0.32); }
.text-input:focus { border-bottom-color: var(--pink); box-shadow: 0 2px 0 0 var(--pink); }

.field { margin-top: 16px; }

.field-label {
  display: block;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--ink-dim);
}

.check {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 13.5px;
  color: var(--ink-dim);
  cursor: pointer;
}

.check.row { display: flex; padding: 8px 0; color: var(--ink); }
.check input { width: 18px; height: 18px; accent-color: var(--pink); margin: 0; }

.inline-form { display: flex; gap: 12px; align-items: end; }
.inline-form .text-input { flex: 1; }

.callout {
  background: var(--pink-soft);
  border: 2px solid var(--pink);
  border-radius: 12px;
  padding: 12px 16px;
  margin-bottom: 22px;
  font-size: 14px;
}

/* tiles: table picker + station picker */
.tile-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(110px, 1fr));
  gap: 12px;
  margin: 8px 0 4px;
}

.tile {
  display: block;
  text-align: center;
  padding: 18px 8px;
  background: var(--cream);
  border: 2px solid var(--ink);
  border-radius: 10px;
  box-shadow: 3px 3px 0 var(--ink);
  color: var(--ink);
  font-weight: 800;
  text-decoration: none;
  transition: transform 0.12s, box-shadow 0.12s, background 0.15s;
}

.tile:hover {
  background: var(--yellow);
  transform: translate(-2px, -2px);
  box-shadow: 5px 5px 0 var(--ink);
}

/* ---------------------------------------------------------- ordering page */

.order-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 340px;
  gap: 24px 32px;
  align-items: start;
}

.menu-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 0 24px;
  align-items: start;
}

.menu-card { padding: 16px 20px 10px; }
.menu-card:nth-child(3n+1) { border-top: 7px solid var(--yellow); }
.menu-card:nth-child(3n+2) { border-top: 7px solid var(--pink); }
.menu-card:nth-child(3n+3) { border-top: 7px solid var(--purple); }

.cat-title {
  font-family: var(--display);
  font-weight: 400;
  font-size: 24px;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  margin: 0 0 4px;
}

.item {
  display: grid;
  grid-template-columns: 1fr auto auto;
  align-items: center;
  gap: 4px 12px;
  padding: 9px 0;
  border-bottom: 2px dotted var(--line);
}

.item:last-child { border-bottom: 0; }

.item-name { font-weight: 600; font-size: 14.5px; line-height: 1.3; }
.item-name small { display: block; font-weight: 400; font-size: 12.5px; color: var(--ink-dim); }

.item-price {
  font-weight: 800;
  font-size: 14px;
  color: var(--pink);
  white-space: nowrap;
}

.stepper { display: flex; align-items: center; gap: 2px; }

.stepper button {
  width: 34px;
  height: 34px;
  border: 2px solid var(--ink);
  background: var(--cream-2);
  border-radius: 50%;
  font-family: var(--sans);
  font-size: 18px;
  font-weight: 700;
  line-height: 1;
  color: var(--ink);
  cursor: pointer;
  touch-action: manipulation;
  transition: background 0.12s;
}

.stepper button:hover { background: var(--yellow); }
.stepper button:active { background: var(--pink); color: #fff; }

.stepper .qty {
  width: 28px;
  text-align: center;
  font-weight: 800;
  color: rgba(26, 20, 15, 0.3);
}

.item.in-cart .qty { color: var(--pink); }
.item.in-cart .item-name { color: var(--ink); }
.item.in-cart { background: linear-gradient(90deg, transparent, var(--pink-soft) 60%); }

.note-card { padding: 16px 20px; }
.note-card .text-input { margin-top: 4px; }

.orders-col { position: sticky; top: 20px; }

/* floating cart pill */
.cartbar {
  position: fixed;
  left: 50%;
  bottom: calc(22px + env(safe-area-inset-bottom, 0px));
  transform: translate(-50%, 16px);
  z-index: 10;
  display: flex;
  align-items: center;
  gap: 16px;
  max-width: calc(100% - 24px);
  padding: 8px 8px 8px 22px;
  background: var(--ink);
  color: var(--cream-2);
  border-radius: 999px;
  box-shadow: 4px 4px 0 var(--pink);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s ease, transform 0.25s ease;
}

.cartbar.visible { opacity: 1; transform: translate(-50%, 0); pointer-events: auto; }
.cartbar .summary { font-size: 14px; white-space: nowrap; }
.cartbar .summary strong { color: var(--yellow); font-weight: 800; }
.cartbar button { border-radius: 999px; border-color: var(--yellow); box-shadow: none; padding: 9px 22px; }
.cartbar button:hover { box-shadow: none; border-color: var(--pink); }

/* ---------------------------------------------------------- tickets */

.ticket {
  position: relative;
  background: var(--cream-2);
  border: 2.5px solid var(--ink);
  border-radius: 12px;
  box-shadow: 4px 4px 0 var(--ink);
  padding: 14px 16px 12px;
  margin: 0 0 16px;
}

.ticket-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 6px;
}

.ticket-num { font-weight: 900; font-size: 16px; }
.ticket-meta { font-size: 12px; color: var(--ink-dim); white-space: nowrap; }

.ticket ul { list-style: none; margin: 0 0 6px; padding: 0; }

.ticket li {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 3px 0;
  border-bottom: 2px dotted var(--line);
  font-size: 14px;
}

.ticket li:last-child { border-bottom: 0; }
.ticket li .q { font-weight: 800; }

.ticket .note { font-size: 13px; color: var(--purple); font-style: italic; margin: 4px 0; }

.ticket-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-top: 8px;
}

.ticket .total { font-weight: 900; color: var(--pink); }

.foot-tags { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; justify-content: flex-end; }

/* customer progress: three labelled steps */
.progress {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 4px;
  margin-top: 8px;
}

.progress span {
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  text-align: center;
  color: var(--ink-dim);
  padding-top: 6px;
  border-top: 5px solid var(--line);
}

.progress span.done { color: var(--ink); border-top-color: var(--yellow); }
.progress span.done:nth-child(2) { border-top-color: var(--pink); }
.progress span.done:nth-child(3) { border-top-color: var(--purple); }

/* status badge */
.badge {
  display: inline-block;
  font-size: 10.5px;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  padding: 2px 10px;
  border: 2px solid var(--ink);
  border-radius: 999px;
  background: var(--cream-2);
  color: var(--ink);
  white-space: nowrap;
}

.badge.preparing { background: var(--yellow); }
.badge.serving   { background: var(--pink); color: #fff; }
.badge.closed    { background: var(--purple); color: #fff; }
.badge.cancelled { background: var(--red); border-color: var(--red); color: #fff; }
.badge.live      { background: var(--yellow); }

/* ---------------------------------------------------------- service board */

.board {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 22px;
  align-items: start;
}

.column h3 {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin: 0 0 14px;
  padding: 6px 12px;
  font-size: 12.5px;
  font-weight: 800;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  border: 2.5px solid var(--ink);
  border-radius: 8px;
  background: var(--cream-2);
}

.column .count {
  min-width: 26px;
  text-align: center;
  background: var(--ink);
  color: var(--cream-2);
  border-radius: 999px;
  padding: 0 8px;
  letter-spacing: 0;
}

.col-preparing h3 { background: var(--yellow); }
.col-serving h3   { background: var(--pink); color: #fff; }
.col-closed h3    { background: var(--purple); color: #fff; }
.col-cancelled h3 { background: var(--red); border-color: var(--red); color: #fff; }

.ticket.selectable { cursor: pointer; transition: transform 0.12s, box-shadow 0.12s; }
.ticket.selectable:hover { transform: translate(-1px, -1px); box-shadow: 5px 5px 0 var(--ink); }
.ticket.selected { box-shadow: 5px 5px 0 var(--pink); border-color: var(--pink); }

.actions { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 12px; }

.actions button {
  font-family: var(--sans);
  font-size: 12.5px;
  font-weight: 700;
  color: var(--ink);
  background: var(--cream-2);
  border: 2px solid var(--ink);
  border-radius: 8px;
  padding: 7px 14px;
  cursor: pointer;
}

.actions button:hover { background: var(--cream); }

.actions button.primary {
  background: var(--yellow);
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  box-shadow: 2px 2px 0 var(--ink);
}

.actions button.primary:hover { background: var(--pink); color: #fff; }

.station-tag {
  font-size: 11px;
  font-weight: 700;
  padding: 1px 10px;
  border: 2px dashed var(--ink-dim);
  border-radius: 999px;
  color: var(--ink-dim);
  white-space: nowrap;
}

.station-tag.mine { border-style: solid; border-color: var(--purple); color: var(--purple); }

/* tickets claimed by another station fade back */
.ticket.other-station { opacity: 0.55; }
.ticket.other-station:hover, .ticket.other-station.selected { opacity: 1; }

.lock-note { font-size: 12.5px; color: var(--ink-dim); font-style: italic; }

/* cancelled tickets */
.ticket.cancelled {
  border-color: var(--red);
  box-shadow: 4px 4px 0 var(--red);
  background:
    repeating-linear-gradient(-45deg, transparent 0 12px, rgba(200, 28, 63, 0.05) 12px 24px),
    var(--cream-2);
}

.ticket.cancelled ul { opacity: 0.55; text-decoration: line-through; }

.cancel-strip {
  margin: 0 0 8px;
  padding: 3px 10px;
  background: var(--pink-soft);
  color: var(--red);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  border-radius: 6px;
}

/* ---------------------------------------------------------- login numpad */

body.login-page .hero { padding-top: 40px; }

.pad-card { padding: 26px 24px 24px; }

.code-dots {
  display: flex;
  justify-content: center;
  gap: 16px;
  margin-bottom: 6px;
}

.code-dots span {
  width: 18px;
  height: 18px;
  border: 2.5px solid var(--ink);
  border-radius: 50%;
  transition: background 0.12s, transform 0.12s;
}

.code-dots span.on { background: var(--pink); border-color: var(--pink); transform: scale(1.1); }

.pad-error {
  min-height: 22px;
  margin: 6px 0 10px;
  text-align: center;
  color: var(--red);
  font-size: 13px;
  font-weight: 700;
}

.numpad {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
}

.numpad button {
  aspect-ratio: 1.25;
  font-family: var(--sans);
  font-size: 26px;
  font-weight: 800;
  color: var(--ink);
  background: var(--cream);
  border: 2.5px solid var(--ink);
  border-radius: 12px;
  box-shadow: 3px 3px 0 var(--ink);
  cursor: pointer;
  touch-action: manipulation;
  user-select: none;
  -webkit-tap-highlight-color: transparent;
  transition: background 0.1s, transform 0.08s, box-shadow 0.08s;
}

.numpad button:hover { background: var(--yellow); }
.numpad button:active { transform: translate(2px, 2px); box-shadow: 1px 1px 0 var(--ink); background: var(--pink); color: #fff; }
.numpad .pad-fn { font-size: 20px; color: var(--ink-dim); background: transparent; }

.shake { animation: shake 0.4s ease; }

@keyframes shake {
  0%, 100% { transform: translateX(0); }
  20% { transform: translateX(-10px); }
  40% { transform: translateX(9px); }
  60% { transform: translateX(-6px); }
  80% { transform: translateX(4px); }
}

/* ---------------------------------------------------------- settings */

.segmented {
  display: inline-flex;
  padding: 4px;
  gap: 4px;
  border: 2.5px solid var(--ink);
  border-radius: 999px;
  background: rgba(26, 20, 15, 0.05);
}

.segmented button {
  font-family: var(--sans);
  font-size: 14px;
  font-weight: 700;
  color: var(--ink-dim);
  background: transparent;
  border: 2px solid transparent;
  border-radius: 999px;
  padding: 8px 22px;
  cursor: pointer;
}

.segmented button[aria-checked="true"] {
  background: var(--yellow);
  border-color: var(--ink);
  color: var(--ink);
  font-weight: 800;
}

.dropzone {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
  padding: 22px 16px;
  border: 2.5px dashed var(--ink-dim);
  border-radius: 12px;
  background: var(--purple-soft);
  text-align: center;
  cursor: pointer;
  transition: background 0.15s, border-color 0.15s;
}

.dropzone:hover, .dropzone.over { border-color: var(--purple); background: rgba(108, 63, 168, 0.14); }
.dropzone input { position: absolute; inset: 0; opacity: 0; cursor: pointer; }
.dropzone span { font-size: 13px; color: var(--ink-dim); }
.dropzone a { position: relative; z-index: 1; }

.menu-pool { list-style: none; margin: 18px 0 0; padding: 0; }

.pool-item {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 10px 16px;
  padding: 12px 14px;
  margin-bottom: 10px;
  border: 2px solid var(--line);
  border-radius: 10px;
  background: var(--cream);
}

.pool-item.active { border-color: var(--ink); background: #FFF6DC; box-shadow: 3px 3px 0 var(--yellow); }
.pool-item.broken { border-color: var(--red); }

.pool-main { min-width: 0; }
.pool-name { display: block; font-weight: 800; }
.pool-meta { display: block; font-size: 12.5px; color: var(--ink-dim); word-break: break-all; }
.pool-actions { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }

.pool-preview {
  flex-basis: 100%;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 6px 20px;
  padding-top: 8px;
  border-top: 2px dotted var(--line);
}

.preview-cat h4 {
  margin: 6px 0 2px;
  font-size: 11.5px;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--pink);
}

.preview-cat ul { list-style: none; margin: 0; padding: 0; }
.preview-cat li { display: flex; justify-content: space-between; gap: 10px; font-size: 13px; padding: 1px 0; }
.preview-cat li span:last-child { font-weight: 700; white-space: nowrap; }

.format { margin-top: 14px; }
.format summary { cursor: pointer; font-size: 13px; font-weight: 700; color: var(--purple); }

.format pre {
  overflow-x: auto;
  font-size: 12.5px;
  background: var(--ink);
  color: var(--cream-2);
  border-radius: 10px;
  padding: 14px 16px;
}

/* ---------------------------------------------------------- ticket extras */

.ticket ul.extras { margin-top: -2px; padding-top: 4px; border-top: 2px dashed var(--line); }
.ticket .extra-line { font-size: 13px; color: var(--ink-dim); }
.ticket .extra-line.pink { color: var(--pink); font-weight: 600; }

.prize-strip, .play-strip {
  margin: 6px 0 4px;
  padding: 5px 10px;
  border: 2px solid var(--ink);
  border-radius: 8px;
  font-size: 13px;
  font-weight: 800;
}

.prize-strip { background: var(--yellow); box-shadow: 2px 2px 0 var(--ink); }
.play-strip { background: var(--purple-soft); border-color: var(--purple); color: var(--purple); font-weight: 700; }

.badge.playing { background: var(--purple-soft); }

body.no-scroll { overflow: hidden; }

/* ---------------------------------------------------------- checkout sheet */

.sheet-overlay {
  position: fixed;
  inset: 0;
  z-index: 50;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  background: rgba(26, 20, 15, 0.55);
  animation: confirm-fade 0.15s ease;
}

.sheet {
  width: 100%;
  max-width: 480px;
  max-height: calc(100vh - 40px);
  overflow-y: auto;
  overscroll-behavior: contain;
  background: var(--cream-2);
  border: 2.5px solid var(--ink);
  border-radius: 16px;
  box-shadow: 6px 6px 0 var(--ink);
  padding: 20px 22px 18px;
}

.sheet-title {
  font-family: var(--display);
  font-weight: 400;
  font-size: 30px;
  text-transform: uppercase;
  line-height: 1;
  margin: 0 0 12px;
}

.recap-lines { list-style: none; margin: 0 0 6px; padding: 0; }

.recap-lines li {
  display: grid;
  grid-template-columns: 34px 1fr auto;
  gap: 8px;
  padding: 5px 0;
  border-bottom: 2px dotted var(--line);
  font-size: 14px;
}

.recap-lines .q { font-weight: 800; color: var(--pink); }
.recap-lines li span:last-child { font-weight: 700; white-space: nowrap; }

.extra {
  margin-top: 14px;
  padding: 12px 14px;
  border: 2px solid var(--ink);
  border-radius: 12px;
}

.extra-pink { background: var(--pink-soft); border-color: var(--pink); }
.extra-games { background: var(--purple-soft); border-color: var(--purple); }

.extra-title { margin: 0; font-size: 15px; font-weight: 800; }
.extra .hint { margin: 2px 0 10px; }

.chips { display: grid; grid-template-columns: repeat(4, 1fr); gap: 6px; }

.chips button {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  font-family: var(--sans);
  font-size: 14px;
  font-weight: 800;
  color: var(--ink);
  background: var(--cream-2);
  border: 2px solid var(--ink);
  border-radius: 10px;
  cursor: pointer;
  touch-action: manipulation;
  line-height: 1.2;
}

.chips button small { font-size: 11px; font-weight: 600; color: var(--ink-dim); }
.chips button[aria-checked="true"] { background: var(--pink); border-color: var(--pink); color: #fff; box-shadow: 2px 2px 0 var(--ink); }
.chips button[aria-checked="true"] small { color: rgba(255, 255, 255, 0.85); }

.game-opt {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 10px;
  padding: 8px 0;
  border-bottom: 2px dotted var(--line);
}

.game-opt:last-child { border-bottom: 0; }
.game-ico { font-size: 28px; line-height: 1; }
.game-txt strong { display: block; font-size: 14px; }
.game-txt small { display: block; font-size: 12px; color: var(--ink-dim); }
.game-opt.in-cart .qty { color: var(--purple); }
.game-opt .stepper { grid-column: 3; grid-row: auto; }

.recap-totals { margin: 14px 0 0; }

.recap-totals div {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  font-size: 14px;
  padding: 2px 0;
}

.recap-totals dt { color: var(--ink-dim); }
.recap-totals dd { margin: 0; font-weight: 700; }

.recap-totals .grand {
  margin-top: 6px;
  padding-top: 8px;
  border-top: 3px solid var(--ink);
  font-size: 18px;
}

.recap-totals .grand dt { color: var(--ink); font-weight: 800; text-transform: uppercase; letter-spacing: 0.06em; }
.recap-totals .grand dd { color: var(--pink); font-weight: 900; }

.sheet-actions {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  margin-top: 18px;
}

/* ---------------------------------------------------------- mini-games */

.game-overlay {
  position: fixed;
  inset: 0;
  z-index: 60;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
  overflow: hidden;
  background:
    radial-gradient(circle at 50% 30%, rgba(108, 63, 168, 0.55), transparent 65%),
    rgba(26, 20, 15, 0.82);
  animation: confirm-fade 0.2s ease;
}

.game-card {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 420px;
  max-height: calc(100vh - 32px);
  overflow-y: auto;
  background: var(--cream-2);
  border: 2.5px solid var(--ink);
  border-radius: 18px;
  box-shadow: 6px 6px 0 var(--pink);
  padding: 18px 20px 20px;
  text-align: center;
}

.game-head { display: flex; flex-direction: column; align-items: center; gap: 6px; margin-bottom: 14px; }

.game-title {
  font-family: var(--display);
  font-weight: 400;
  font-size: 30px;
  text-transform: uppercase;
  line-height: 1;
  margin: 0;
}

.game-stage { display: flex; flex-direction: column; align-items: center; gap: 10px; }

.game-result { min-height: 24px; margin-top: 12px; }
.game-result strong { display: block; font-family: var(--display); font-weight: 400; font-size: 34px; text-transform: uppercase; line-height: 1.05; }
.game-result span { display: block; font-size: 17px; font-weight: 800; }
.game-result small { display: block; font-size: 13px; color: var(--ink-dim); }
.game-result.win strong { color: var(--pink); animation: pop 0.5s ease; }
.game-result.lose strong { color: var(--ink-dim); }

.game-actions { margin-top: 14px; }

@keyframes pop {
  0% { transform: scale(0.4); opacity: 0; }
  70% { transform: scale(1.15); opacity: 1; }
  100% { transform: scale(1); }
}

/* scratch card */
.scratch-card {
  width: 100%;
  padding: 14px 14px 10px;
  background:
    repeating-linear-gradient(45deg, transparent 0 10px, rgba(255, 255, 255, 0.08) 10px 20px),
    linear-gradient(135deg, var(--pink), var(--purple));
  border: 2.5px solid var(--ink);
  border-radius: 14px;
  box-shadow: 4px 4px 0 var(--ink);
  color: #fff;
}

.scratch-brand {
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  margin-bottom: 10px;
}

.scratch-brand span {
  font-family: var(--display);
  font-size: 18px;
  letter-spacing: 0.04em;
  color: var(--yellow);
  margin-right: 4px;
}

.scratch-zones { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }

.scratch-zone {
  position: relative;
  aspect-ratio: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--cream-2);
  border: 2.5px solid var(--ink);
  border-radius: 10px;
  overflow: hidden;
}

.scratch-symbol { font-size: clamp(36px, 11vw, 48px); line-height: 1; }

.scratch-zone canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  touch-action: none;
  cursor: grab;
  transition: opacity 0.35s ease;
}

.scratch-zone.revealed canvas { opacity: 0; pointer-events: none; }
.scratch-zone.revealed .scratch-symbol { animation: pop 0.4s ease; }

.scratch-rule { margin: 10px 0 0; font-size: 13px; font-weight: 700; }

.game-stage .scratch-all { margin-top: 2px; }

/* slot machine */
.slot-machine { display: flex; align-items: center; gap: 4px; }

.slot-body {
  padding: 10px 12px 8px;
  background: linear-gradient(180deg, var(--pink), #b81a55);
  border: 2.5px solid var(--ink);
  border-radius: 16px 16px 12px 12px;
  box-shadow: 4px 4px 0 var(--ink);
}

.slot-top {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-family: var(--display);
  font-size: 22px;
  letter-spacing: 0.08em;
  color: var(--yellow);
  text-shadow: 2px 2px 0 var(--ink);
  margin-bottom: 8px;
}

.bulbs {
  width: 30px;
  height: 8px;
  background: radial-gradient(circle, var(--yellow) 0 3px, transparent 3.5px) 0 0 / 10px 8px repeat-x;
  animation: blink 0.8s steps(2) infinite;
}

@keyframes blink { 50% { opacity: 0.35; } }

.slot-window {
  --cell: 76px;
  display: grid;
  grid-template-columns: repeat(3, var(--cell));
  gap: 6px;
  padding: 6px;
  background: var(--ink);
  border-radius: 10px;
}

.reel {
  position: relative;
  height: var(--cell);
  overflow: hidden;
  background: var(--cream-2);
  border-radius: 6px;
}

.reel::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(180deg, rgba(26, 20, 15, 0.35), transparent 30%, transparent 70%, rgba(26, 20, 15, 0.35));
}

.strip span {
  display: flex;
  align-items: center;
  justify-content: center;
  height: var(--cell);
  font-size: 42px;
  line-height: 1;
}

.slot-machine.win .reel { animation: glow 0.6s ease 3; }

@keyframes glow { 50% { background: var(--yellow); } }

.slot-hint {
  margin: 8px 0 0;
  font-size: 12.5px;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #fff;
}

.lever {
  position: relative;
  width: 34px;
  height: 170px;
  padding: 0;
  background: none;
  border: 0;
  cursor: grab;
  touch-action: none;
  -webkit-tap-highlight-color: transparent;
}

.lever-base {
  position: absolute;
  left: 0;
  top: 50%;
  width: 22px;
  height: 46px;
  margin-top: -23px;
  background: var(--ink);
  border-radius: 0 8px 8px 0;
}

/* pivots at the middle: flipping it swings the ball from top to bottom */
.lever-stick {
  position: absolute;
  left: 13px;
  top: 17px;
  width: 8px;
  height: calc(50% - 17px);
  background: linear-gradient(90deg, #8a8478, #e8e2d4, #8a8478);
  border: 2px solid var(--ink);
  border-radius: 4px;
  transform-origin: 50% 100%;
  transition: transform 0.25s cubic-bezier(0.5, 0, 0.5, 1.4);
}

.lever-ball {
  position: absolute;
  left: 2px;
  top: 2px;
  z-index: 1;
  width: 30px;
  height: 30px;
  background: radial-gradient(circle at 35% 35%, #ff7aa6, var(--pink) 55%, #a3123f);
  border: 2.5px solid var(--ink);
  border-radius: 50%;
  transition: transform 0.25s cubic-bezier(0.5, 0, 0.5, 1.4);
}

.lever:hover:not(:disabled) .lever-ball { transform: translateY(4px); }
.lever.pulled .lever-stick { transform: scaleY(-1); }
.lever.pulled .lever-ball { transform: translateY(calc(var(--lever-h, 170px) - 34px)); }
.lever:disabled { cursor: default; }

/* confetti */
.confetti { position: absolute; inset: 0; pointer-events: none; z-index: 2; }

.confetti span {
  position: absolute;
  top: -20px;
  width: 9px;
  height: 14px;
  border-radius: 2px;
  font-size: 18px;
  animation: confetti-fall 2s ease-in forwards;
}

@keyframes confetti-fall {
  to { transform: translate(var(--dx), 110vh) rotate(var(--rot)); }
}

/* ---------------------------------------------------------- settings: prizes */

.prize-head, .prize-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 72px 72px 34px;
  gap: 8px;
  align-items: center;
}

.prize-head {
  margin-top: 8px;
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ink-dim);
}

.prize-row { margin-top: 4px; }
.prize-row .text-input { padding: 8px 4px; font-size: 14px; }

.prize-tools { display: flex; justify-content: space-between; gap: 10px; flex-wrap: wrap; margin-top: 12px; }

#prize-summary { font-weight: 600; color: var(--purple); }
#prize-summary.warn { color: var(--red); }

.stats-line {
  margin: 18px 0 0;
  padding-top: 12px;
  border-top: 2px dotted var(--line);
  font-size: 13px;
}

/* ---------------------------------------------------------- toast */

.toast {
  position: fixed;
  left: 50%;
  bottom: calc(92px + env(safe-area-inset-bottom, 0px));
  transform: translate(-50%, 20px);
  z-index: 20;
  max-width: calc(100% - 32px);
  background: var(--yellow);
  color: var(--ink);
  border: 2.5px solid var(--ink);
  box-shadow: 3px 3px 0 var(--ink);
  padding: 9px 20px;
  border-radius: 999px;
  font-size: 14px;
  font-weight: 700;
  text-align: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s, transform 0.25s;
}

.toast.show { opacity: 1; transform: translate(-50%, 0); }

/* ---------------------------------------------------------- in-page confirm
   (native confirm() is blocked in sandboxed iframes / kiosk browsers) */

.confirm-overlay {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  background: rgba(26, 20, 15, 0.5);
  animation: confirm-fade 0.15s ease;
}

@keyframes confirm-fade { from { opacity: 0; } to { opacity: 1; } }

.confirm-card {
  width: 100%;
  max-width: 380px;
  background: var(--cream-2);
  border: 2.5px solid var(--ink);
  border-radius: 14px;
  box-shadow: 6px 6px 0 var(--ink);
  padding: 22px 24px 18px;
}

.confirm-msg { margin: 0 0 18px; font-size: 15px; white-space: pre-line; }

.confirm-actions { display: flex; justify-content: flex-end; gap: 10px; flex-wrap: wrap; }

.confirm-actions button {
  font-family: var(--sans);
  font-size: 14px;
  font-weight: 700;
  padding: 9px 18px;
  border-radius: 8px;
  border: 2px solid var(--ink);
  background: var(--cream-2);
  color: var(--ink);
  cursor: pointer;
}

.confirm-actions button:hover { background: var(--cream); }

.confirm-actions .danger-solid { background: var(--red); border-color: var(--red); color: #fff; }
.confirm-actions .danger-solid:hover { background: var(--red); filter: brightness(1.1); }

/* ---------------------------------------------------------- responsive */

@media (max-width: 900px) {
  .order-layout { grid-template-columns: minmax(0, 1fr); }
  .orders-col { position: static; }
  /* with orders in flight, their status comes first on phones */
  .order-layout.has-orders .orders-col { order: -1; }
}

@media (max-width: 560px) {
  body { font-size: 14px; }
  .page { padding: 0 14px 110px; }
  .hero { padding: 16px 0 18px; gap: 6px; }
  .card { padding: 16px; box-shadow: 4px 4px 0 var(--ink); }
  .menu-grid { grid-template-columns: minmax(0, 1fr); }
  .menu-card { padding: 12px 14px 6px; }
  .item { grid-template-columns: 1fr auto; }
  .item-price { grid-column: 1; grid-row: 2; }
  .stepper { grid-column: 2; grid-row: 1 / span 2; }
  .deco-stripes { width: 26px; height: 120px; right: 4%; }
  .staff-head { padding-top: 14px; }
  .inline-form { flex-direction: column; align-items: stretch; }
  .cartbar { gap: 10px; padding-left: 16px; }
  .cartbar .summary { font-size: 13px; }
  .cartbar button { padding: 8px 16px; font-size: 13px; }
  /* the recap slides up from the bottom on phones */
  .sheet-overlay { align-items: flex-end; padding: 0; }
  .sheet {
    max-width: none;
    max-height: 92vh;
    border-radius: 18px 18px 0 0;
    border-bottom: 0;
    box-shadow: none;
    padding: 18px 16px calc(16px + env(safe-area-inset-bottom, 0px));
  }
  .chips button { font-size: 13px; }
  .game-card { padding: 16px 14px 18px; }
  .slot-window { --cell: 62px; gap: 4px; padding: 4px; }
  .strip span { font-size: 34px; }
  .lever { --lever-h: 150px; height: 150px; }
  .prize-head, .prize-row { grid-template-columns: minmax(0, 1fr) 54px 54px 30px; gap: 6px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; animation: none !important; }
}
