/* ════════════════════════════════════════════════════════════════
   PORTAL — The Diner Floor
   A retro roadside diner scene. Builds on diner.css :root vars.
   Everything here is namespaced under .diner-* so it never leaks
   into login / signup (which share diner.css's base styles).
   ════════════════════════════════════════════════════════════════ */

:root {
  --diner-chrome-hi: #d9d9e2;
  --diner-chrome-lo: #5b5b66;
  --diner-counter:   #1c1622;
  --diner-warm:      #f5a623;
}

/* The portal does NOT use the centered .container booth from diner.css.
   Override it to span the floor instead. */
body.diner-floor .container {
  all: unset;
}

body.diner-floor {
  margin: 0;
  min-height: 100vh;
  overflow: hidden;
  background:
    radial-gradient(ellipse 70% 50% at 50% 18%, rgba(245,166,35,0.14) 0%, transparent 60%),
    radial-gradient(ellipse 90% 60% at 50% 120%, #14101d 0%, transparent 70%),
    var(--color-bg);
}

/* ── Floor: checkerboard tile receding into the dark ──────────── */
.diner-floor-tiles {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  height: 38vh;
  z-index: 0;
  background-image:
    linear-gradient(45deg, rgba(20,16,28,0.92) 25%, transparent 25%, transparent 75%, rgba(20,16,28,0.92) 75%),
    linear-gradient(45deg, rgba(20,16,28,0.92) 25%, transparent 25%, transparent 75%, rgba(20,16,28,0.92) 75%);
  background-color: #2a2333;
  background-size: 64px 64px;
  background-position: 0 0, 32px 32px;
  transform: perspective(420px) rotateX(62deg);
  transform-origin: bottom center;
  opacity: 0.7;
  pointer-events: none;
  -webkit-mask-image: linear-gradient(to top, #000 35%, transparent 100%);
          mask-image: linear-gradient(to top, #000 35%, transparent 100%);
}

/* ── Scene grid: MENU | COUNTER | DOOR ────────────────────────── */
.diner-scene {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: minmax(220px, 300px) 1fr minmax(180px, 240px);
  gap: 1.5rem;
  align-items: stretch;
  min-height: 100vh;
  padding: 1.5rem;
  box-sizing: border-box;
}

/* ════════════════════════════════════════════════════════════════
   LEFT — THE MENU
   ════════════════════════════════════════════════════════════════ */
.diner-menu {
  align-self: center;
  background: linear-gradient(180deg, #141019 0%, #0c0a11 100%);
  border: var(--rule);
  border-top: 3px solid var(--color-ember);
  border-radius: 4px;
  padding: 1.5rem 1.4rem 1.6rem;
  box-shadow: 0 24px 60px rgba(0,0,0,0.55), inset 0 0 40px rgba(245,166,35,0.04);
  max-height: 86vh;
  display: flex;
  flex-direction: column;
}

.diner-menu h3 {
  font-family: var(--font-display);
  font-size: 2.4rem;
  letter-spacing: 0.1em;
  color: var(--color-ember);
  text-shadow: var(--glow-ember);
  margin: 0;
  text-align: center;
  text-transform: uppercase;
  animation: neon-flicker 4.3s infinite;
}

.diner-menu .diner-menu-sub {
  font-family: var(--font-label);
  font-size: 0.62rem;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--color-mud);
  text-align: center;
  margin: 0.2rem 0 1.1rem;
  padding-bottom: 0.9rem;
  border-bottom: var(--rule);
}

.diner-menu-list {
  list-style: none;
  margin: 0;
  padding: 0;
  overflow-y: auto;
}

.menu-item {
  all: unset;
  box-sizing: border-box;
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 0.5rem;
  width: 100%;
  padding: 0.5rem 0.4rem;
  font-family: var(--font-heading);
  font-size: 1.02rem;
  letter-spacing: 0.04em;
  color: var(--color-bone);
  cursor: pointer;
  border-bottom: 1px dotted rgba(106,95,114,0.3);
  transition: color 0.15s, background 0.15s, padding-left 0.15s;
}

.menu-item .dots {
  flex: 1;
  border-bottom: 1px dotted rgba(106,95,114,0.45);
  transform: translateY(-3px);
}

.menu-item .price {
  font-family: var(--font-body);
  color: var(--color-teal);
  font-size: 0.85rem;
}

.menu-item:hover,
.menu-item:focus-visible {
  color: var(--color-teal-light);
  background: rgba(0,229,200,0.06);
  padding-left: 0.8rem;
}

/* ── Order ticket ─────────────────────────────────────────────── */
.order-pad {
  margin-top: 1.1rem;
  padding-top: 1rem;
  border-top: var(--rule);
}

.order-pad-title {
  font-family: var(--font-label);
  font-size: 0.62rem;
  letter-spacing: 0.26em;
  text-transform: uppercase;
  color: var(--color-pink);
  text-shadow: 0 0 8px rgba(255,45,122,0.4);
  margin-bottom: 0.5rem;
}

#order-list {
  list-style: none;
  margin: 0 0 0.4rem;
  padding: 0;
  font-family: var(--font-body);
  font-size: 0.82rem;
  color: var(--color-text);
  min-height: 1.2rem;
  max-height: 18vh;
  overflow-y: auto;
}

#order-list li {
  display: flex;
  justify-content: space-between;
  padding: 0.15rem 0;
  animation: ticket-in 0.25s ease;
}

#order-list .order-empty {
  color: var(--color-mud);
  font-style: italic;
}

.order-total {
  display: flex;
  justify-content: space-between;
  font-family: var(--font-heading);
  letter-spacing: 0.06em;
  color: var(--color-ember);
  border-top: 1px dashed rgba(245,166,35,0.4);
  padding-top: 0.4rem;
  margin-top: 0.3rem;
}

@keyframes ticket-in {
  from { opacity: 0; transform: translateX(-8px); }
  to   { opacity: 1; transform: translateX(0); }
}

/* ════════════════════════════════════════════════════════════════
   CENTER — THE COUNTER (first-person: you're sitting at it)
   ════════════════════════════════════════════════════════════════ */
.diner-counter {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-end;
  padding-bottom: 0.5rem;
}

/* Neon sign overhead */
.diner-sign {
  text-align: center;
  margin-top: 0.5rem;
}

.diner-sign .name {
  font-family: var(--font-display);
  font-size: clamp(2.5rem, 6vw, 4.5rem);
  letter-spacing: 0.12em;
  line-height: 0.9;
  color: var(--color-pink);
  text-shadow: var(--glow-pink);
  text-transform: uppercase;
  animation: neon-flicker 4.3s infinite;
}

.diner-sign .open {
  font-family: var(--font-label);
  font-size: 0.7rem;
  letter-spacing: 0.4em;
  text-transform: uppercase;
  color: var(--color-teal);
  text-shadow: var(--glow-teal);
  margin-top: 0.3rem;
}

/* The back wall: waitress on the left, patrons on the right */
.diner-backwall {
  position: relative;
  flex: 1;
  width: 100%;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  padding: 0 clamp(0.5rem, 4vw, 4rem);
  box-sizing: border-box;
  min-height: 220px;
}

/* ── Figures (CSS-art silhouettes, rim-lit) ───────────────────── */
.figure {
  position: relative;
  width: 64px;
  filter: drop-shadow(0 0 1px rgba(0,0,0,0.8));
}

.figure .head {
  width: 30px;
  height: 30px;
  margin: 0 auto;
  border-radius: 50%;
  background: #0d0a12;
}

.figure .body {
  width: 56px;
  height: 80px;
  margin: -6px auto 0;
  border-radius: 30px 30px 8px 8px / 40px 40px 8px 8px;
  background: #0d0a12;
}

/* Patrons: cluster on the right, warm rim light from the diner glow */
.patrons {
  display: flex;
  align-items: flex-end;
  gap: -6px;
}

.patrons .figure {
  margin-left: -14px;
}

.patrons .figure .head,
.patrons .figure .body {
  box-shadow: 2px -2px 10px rgba(245,166,35,0.35);
}

.patrons .figure:nth-child(2) { transform: scale(1.08); }
.patrons .figure:nth-child(3) { transform: scale(0.94); }

/* A stool under each patron */
.patrons .figure::after {
  content: '';
  position: absolute;
  bottom: -28px;
  left: 50%;
  transform: translateX(-50%);
  width: 8px;
  height: 30px;
  background: linear-gradient(var(--diner-chrome-lo), var(--diner-chrome-hi));
  border-radius: 0 0 3px 3px;
}
.patrons .figure::before {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 50%;
  transform: translateX(-50%);
  width: 40px;
  height: 12px;
  border-radius: 50%;
  background: var(--color-pink);
  opacity: 0.55;
  filter: blur(1px);
  box-shadow: var(--glow-pink);
  z-index: -1;
}

/* ── The waitress, pouring coffee (left side) ─────────────────── */
.waitress {
  position: relative;
  width: 90px;
}

.waitress .head {
  width: 32px;
  height: 32px;
  margin: 0 auto;
  border-radius: 50%;
  background: #100c16;
  box-shadow: -2px -2px 10px rgba(0,229,200,0.35);
}

.waitress .body {
  position: relative;
  width: 60px;
  height: 86px;
  margin: -6px auto 0;
  border-radius: 30px 30px 6px 6px;
  background: #100c16;
  box-shadow: -2px -2px 10px rgba(0,229,200,0.3);
}

/* outstretched arm holding the pot */
.waitress .arm {
  position: absolute;
  top: 14px;
  right: -34px;
  width: 40px;
  height: 9px;
  background: #100c16;
  border-radius: 5px;
  transform: rotate(18deg);
}

.coffee-pot {
  position: absolute;
  top: 6px;
  right: -64px;
  width: 26px;
  height: 30px;
  background: linear-gradient(180deg, #2a2030 0%, #15101c 100%);
  border: 1px solid var(--diner-chrome-lo);
  border-radius: 5px 5px 9px 9px;
  transform: rotate(58deg);
}
.coffee-pot::before { /* spout */
  content: '';
  position: absolute;
  top: -6px;
  left: -8px;
  width: 14px;
  height: 8px;
  background: #15101c;
  border: 1px solid var(--diner-chrome-lo);
  border-radius: 4px 0 0 4px;
  transform: rotate(-10deg);
}
.coffee-pot::after { /* handle */
  content: '';
  position: absolute;
  top: 4px;
  right: -7px;
  width: 9px;
  height: 18px;
  border: 2px solid var(--diner-chrome-lo);
  border-left: none;
  border-radius: 0 8px 8px 0;
}

/* the pour: a thin amber stream falling into a cup */
.coffee-stream {
  position: absolute;
  top: 30px;
  right: -70px;
  width: 3px;
  height: 64px;
  background: linear-gradient(180deg, rgba(245,166,35,0) 0%, var(--color-ember) 20%, #c97b12 100%);
  border-radius: 2px;
  transform-origin: top center;
  animation: pour 2.6s ease-in-out infinite;
  box-shadow: 0 0 6px rgba(245,166,35,0.5);
}

.coffee-cup {
  position: absolute;
  bottom: 0;
  right: -84px;
  width: 30px;
  height: 22px;
  background: linear-gradient(180deg, #efe9dd 0%, #cfc6b5 100%);
  border-radius: 3px 3px 7px 7px;
}
.coffee-cup::before { /* coffee surface */
  content: '';
  position: absolute;
  top: 3px;
  left: 3px;
  right: 3px;
  height: 6px;
  background: #3a2410;
  border-radius: 2px;
}
.coffee-cup::after { /* saucer */
  content: '';
  position: absolute;
  bottom: -4px;
  left: -6px;
  width: 42px;
  height: 6px;
  background: #cfc6b5;
  border-radius: 50%;
}

/* steam wisps */
.steam {
  position: absolute;
  bottom: 22px;
  right: -74px;
  width: 4px;
  height: 22px;
  background: linear-gradient(180deg, rgba(232,223,208,0.5), transparent);
  border-radius: 50%;
  filter: blur(2px);
  animation: steam 3s ease-in-out infinite;
}
.steam.s2 { right: -68px; animation-delay: 1.2s; }

@keyframes pour {
  0%, 100% { transform: scaleY(0.2); opacity: 0; }
  20%, 80% { transform: scaleY(1);   opacity: 1; }
}
@keyframes steam {
  0%   { transform: translateY(0) scaleX(1);   opacity: 0; }
  40%  { opacity: 0.7; }
  100% { transform: translateY(-26px) scaleX(1.6); opacity: 0; }
}

/* ── The counter surface (chrome edge near the viewer) ────────── */
.counter-top {
  position: relative;
  width: 100%;
  max-width: 640px;
  margin-top: 0.5rem;
  height: 150px;
  background:
    linear-gradient(180deg, #251d2e 0%, var(--diner-counter) 60%, #0f0b14 100%);
  border-radius: 50% 50% 8px 8px / 22px 22px 8px 8px;
  border-top: 3px solid rgba(245,166,35,0.25);
  box-shadow: inset 0 14px 30px rgba(245,166,35,0.07), 0 -10px 40px rgba(0,0,0,0.5);
}

/* the bright chrome lip of the counter, closest to you */
.counter-top::before {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 16px;
  background: linear-gradient(180deg, var(--diner-chrome-hi) 0%, var(--diner-chrome-lo) 100%);
  border-radius: 50% 50% 6px 6px / 100% 100% 6px 6px;
  box-shadow: 0 0 14px rgba(217,217,226,0.3);
}

/* ── The check / receipt resting on the counter ───────────────── */
.receipt {
  position: relative;
  z-index: 3;
  width: 260px;
  margin: -86px auto 0;
  padding: 1rem 1.1rem 1.2rem;
  background: #f3efe4;
  color: #2a2118;
  font-family: var(--font-body);
  border-radius: 2px;
  transform: rotate(-2.2deg);
  box-shadow: 0 14px 30px rgba(0,0,0,0.55);
  /* torn top + bottom edge */
  -webkit-mask-image:
    radial-gradient(circle at 6px -3px, transparent 6px, #000 6px);
  background-image:
    repeating-linear-gradient(180deg, transparent 0 26px, rgba(0,0,0,0.03) 26px 27px);
}

.receipt::before {
  content: '·· DIGI DINER ··';
  display: block;
  text-align: center;
  font-family: var(--font-heading);
  letter-spacing: 0.18em;
  font-size: 0.8rem;
  text-transform: uppercase;
  color: #7a5c2e;
  border-bottom: 1px dashed #b9ab8f;
  padding-bottom: 0.5rem;
  margin-bottom: 0.6rem;
}

.receipt .welcome {
  font-family: var(--font-heading);
  font-size: 1.25rem;
  letter-spacing: 0.02em;
  color: #2a2118;
  text-align: center;
}

.receipt .your-role {
  font-size: 0.78rem;
  letter-spacing: 0.05em;
  color: #6b5a3e;
  text-align: center;
  margin-top: 0.15rem;
}

.receipt .receipt-rule {
  border: none;
  border-top: 1px dashed #b9ab8f;
  margin: 0.8rem 0;
}

.receipt .logout-btn {
  all: unset;
  display: block;
  width: 100%;
  box-sizing: border-box;
  margin-top: 0.9rem;
  padding: 0.5rem;
  text-align: center;
  font-family: var(--font-heading);
  font-size: 0.82rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #8a2f3a;
  border: 1px solid #c2727b;
  border-radius: 2px;
  cursor: pointer;
  transition: background 0.15s, color 0.15s;
}
.receipt .logout-btn:hover { background: #8a2f3a; color: #f3efe4; }

/* ════════════════════════════════════════════════════════════════
   RIGHT — THE DOOR
   ════════════════════════════════════════════════════════════════ */
.diner-door-wrap {
  align-self: center;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.diner-door {
  all: unset;
  position: relative;
  display: block;
  width: 150px;
  height: 360px;
  cursor: pointer;
  background:
    linear-gradient(105deg, rgba(0,229,200,0.05) 0%, rgba(0,229,200,0.14) 45%, rgba(0,229,200,0.04) 100%),
    linear-gradient(180deg, #14121b 0%, #0e0c14 100%);
  border: 6px solid;
  border-image: linear-gradient(180deg, var(--diner-chrome-hi), var(--diner-chrome-lo)) 1;
  border-radius: 6px 6px 0 0;
  box-shadow:
    inset 0 0 40px rgba(0,229,200,0.08),
    0 20px 50px rgba(0,0,0,0.5);
  overflow: hidden;
  transition: box-shadow 0.2s, transform 0.2s;
}

.diner-door:hover,
.diner-door:focus-visible {
  box-shadow:
    inset 0 0 60px rgba(0,229,200,0.18),
    0 0 24px rgba(0,229,200,0.3),
    0 20px 50px rgba(0,0,0,0.5);
}
.diner-door:active { transform: scale(0.992); }

/* glass crossbar + frosted reflection streaks */
.diner-door::before {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  top: 48%;
  height: 10px;
  background: linear-gradient(180deg, var(--diner-chrome-hi), var(--diner-chrome-lo));
}
.diner-door::after {
  content: '';
  position: absolute;
  top: -20%;
  left: 18%;
  width: 26px;
  height: 140%;
  background: linear-gradient(105deg, transparent, rgba(255,255,255,0.06), transparent);
  transform: rotate(8deg);
}

/* OPEN sign hanging in the glass */
.door-sign {
  position: absolute;
  top: 28px;
  left: 50%;
  transform: translateX(-50%) rotate(-4deg);
  font-family: var(--font-display);
  font-size: 1.5rem;
  letter-spacing: 0.12em;
  color: var(--color-pink);
  text-shadow: var(--glow-pink);
  border: 2px solid var(--color-pink);
  border-radius: 4px;
  padding: 2px 10px;
  animation: neon-flicker 4.3s infinite;
  pointer-events: none;
}

/* the push handle */
.door-handle {
  position: absolute;
  top: 30%;
  right: 14px;
  width: 10px;
  height: 96px;
  background: linear-gradient(90deg, var(--diner-chrome-hi), var(--diner-chrome-lo));
  border-radius: 6px;
  box-shadow: 0 0 10px rgba(217,217,226,0.4);
  pointer-events: none;
}

.door-pull {
  margin-top: 0.7rem;
  font-family: var(--font-label);
  font-size: 0.6rem;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--color-mud);
  pointer-events: none;
}

/* ════════════════════════════════════════════════════════════════
   THE MESSAGEBOX (pops up on the LEFT when the door is clicked)
   Retro OS dialog styling.
   ════════════════════════════════════════════════════════════════ */
.diner-popup {
  position: fixed;
  top: 64px;
  left: 48px;
  z-index: 200;
  width: 300px;
  background: #cfd0d6;
  border: 2px solid;
  border-color: #f4f5f8 #4a4a52 #4a4a52 #f4f5f8;
  border-radius: 3px;
  box-shadow: 0 18px 50px rgba(0,0,0,0.65);
  font-family: 'Segoe UI', 'Barlow Condensed', Arial, sans-serif;
  opacity: 0;
  transform: translateY(-10px) scale(0.96);
  pointer-events: none;
  transition: opacity 0.16s ease, transform 0.16s ease;
}

.diner-popup.show {
  opacity: 1;
  transform: translateY(0) scale(1);
  pointer-events: auto;
  animation: popup-jitter 0.32s ease;
}

@keyframes popup-jitter {
  0%   { transform: translateY(0) scale(1) rotate(0); }
  25%  { transform: translateY(0) scale(1) rotate(-0.6deg); }
  60%  { transform: translateY(0) scale(1) rotate(0.5deg); }
  100% { transform: translateY(0) scale(1) rotate(0); }
}

.diner-popup .titlebar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: linear-gradient(90deg, #2d2150, #6a3d8c);
  color: #fff;
  font-weight: 700;
  font-size: 0.8rem;
  letter-spacing: 0.04em;
  padding: 4px 6px 4px 8px;
}

.diner-popup .titlebar .x {
  all: unset;
  width: 18px;
  height: 16px;
  line-height: 14px;
  text-align: center;
  font-size: 0.75rem;
  background: #cfd0d6;
  color: #1a1a1a;
  border: 1px solid;
  border-color: #f4f5f8 #4a4a52 #4a4a52 #f4f5f8;
  cursor: pointer;
}
.diner-popup .titlebar .x:hover { background: #e0e0e6; }

.diner-popup .body {
  display: flex;
  gap: 12px;
  align-items: center;
  padding: 18px 16px;
  color: #14141a;
  font-size: 0.92rem;
  line-height: 1.35;
}

.diner-popup .icon {
  flex: 0 0 auto;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: radial-gradient(circle at 35% 30%, #ffe27a, var(--color-ember));
  border: 2px solid #b9791a;
  display: grid;
  place-items: center;
  font-size: 1.3rem;
  font-weight: 700;
  color: #5a3a07;
  box-shadow: 0 0 12px rgba(245,166,35,0.5);
}

.diner-popup .actions {
  display: flex;
  justify-content: flex-end;
  padding: 0 16px 14px;
}

.diner-popup .ok {
  all: unset;
  min-width: 78px;
  text-align: center;
  padding: 5px 14px;
  font-size: 0.85rem;
  background: #cfd0d6;
  border: 2px solid;
  border-color: #f4f5f8 #4a4a52 #4a4a52 #f4f5f8;
  cursor: pointer;
}
.diner-popup .ok:hover { background: #e0e0e6; }
.diner-popup .ok:active {
  border-color: #4a4a52 #f4f5f8 #f4f5f8 #4a4a52;
}

/* ════════════════════════════════════════════════════════════════
   Responsive: stack the scene on narrow screens
   ════════════════════════════════════════════════════════════════ */
@media (max-width: 880px) {
  body.diner-floor { overflow-y: auto; }
  .diner-scene {
    grid-template-columns: 1fr;
    gap: 1.2rem;
  }
  .diner-door { height: 220px; width: 130px; margin: 0 auto; }
  .diner-popup { left: 50%; transform: translate(-50%, -10px) scale(0.96); width: min(300px, 88vw); }
  .diner-popup.show { transform: translate(-50%, 0) scale(1); }
}

/* Respect reduced motion */
@media (prefers-reduced-motion: reduce) {
  .diner-menu h3,
  .diner-sign .name,
  .door-sign { animation: none; }
  .coffee-stream { animation: none; opacity: 1; transform: scaleY(1); }
  .steam { display: none; }
  .diner-popup.show { animation: none; }
}

/* ════════════════════════════════════════════════════════════════
   PAST TICKETS — the archive stub torn off the bottom of the check
   ════════════════════════════════════════════════════════════════ */
.receipt .past-tickets { text-align: left; }

.receipt .past-title {
  font-family: var(--font-heading);
  font-size: 0.72rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: #7a5c2e;
  text-align: center;
  margin-bottom: 0.45rem;
}

.receipt #ticket-list {
  list-style: none;
  margin: 0;
  padding: 0;
  font-size: 0.76rem;
}

.receipt #ticket-list li {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 0.4rem;
  padding: 0.12rem 0;
}

.receipt #ticket-list .ticket-empty {
  color: #8b7a5e;
  font-style: italic;
  justify-content: center;
}

.receipt .ticket-link {
  all: unset;
  cursor: pointer;
  color: #2a2118;
  border-bottom: 1px dotted #b9ab8f;
}
.receipt .ticket-link:hover { color: #8a2f3a; border-bottom-color: #8a2f3a; }

.receipt .ticket-amt { color: #6b5a3e; font-variant-numeric: tabular-nums; }

.receipt .ticket-detail:not(:empty) {
  margin-top: 0.6rem;
  padding-top: 0.5rem;
  border-top: 1px dashed #b9ab8f;
  font-size: 0.72rem;
}

.receipt .ticket-row {
  display: flex;
  justify-content: space-between;
  gap: 0.5rem;
  padding: 0.08rem 0;
}
.receipt .ticket-row span:first-child {
  color: #7a5c2e;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: 0.62rem;
  flex: 0 0 auto;
}
.receipt .ticket-row span:last-child { text-align: right; color: #2a2118; }


/* ── Ring it up: order actions ────────────── */
#order-list li span + span {
  margin-left: auto;
  padding-left: 0.6rem;
}

/* diner.css sets width:100% and margin-top:1.75rem on every bare `button`.
   The order controls opt out of both. */
.order-remove {
  background: none;
  border: none;
  width: auto;
  margin-top: 0;
  cursor: pointer;
  padding: 0 0 0 0.5rem;
  font-family: var(--font-body);
  font-size: 0.9rem;
  line-height: 1;
  color: var(--color-mud);
}

.order-remove:hover,
.order-remove:focus-visible { color: var(--color-pink); }

.order-actions {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  margin-top: 0.6rem;
}

.order-field {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-family: var(--font-label);
  font-size: 0.6rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--color-mud);
}

#order-payment,
.order-note {
  flex: 1;
  min-width: 0;
  background: rgba(0, 0, 0, 0.35);
  border: var(--rule);
  border-radius: 2px;
  padding: 0.35rem 0.45rem;
  font-family: var(--font-body);
  font-size: 0.74rem;
  color: var(--color-text);
}

#order-payment:focus-visible,
.order-note:focus-visible {
  outline: none;
  border-color: var(--color-teal);
  box-shadow: 0 0 0 1px rgba(0, 229, 200, 0.35);
}

.order-note::placeholder {
  color: var(--color-mud);
  font-style: italic;
}

.order-buttons {
  display: flex;
  gap: 0.45rem;
}

.order-submit {
  flex: 1 1 auto;
  width: auto;
  margin-top: 0;
  white-space: nowrap;
  cursor: pointer;
  padding: 0.5rem 0.6rem;
  border: 1px solid var(--color-ember);
  border-radius: 2px;
  background: rgba(245, 166, 35, 0.1);
  font-family: var(--font-heading);
  font-size: 0.85rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--color-ember);
  transition: background 0.15s ease, box-shadow 0.15s ease;
}

.order-submit:hover:not(:disabled),
.order-submit:focus-visible:not(:disabled) {
  background: rgba(245, 166, 35, 0.22);
  box-shadow: var(--glow-ember);
}

.order-submit:disabled {
  opacity: 0.4;
  cursor: not-allowed;
}

.order-clear {
  flex: 0 0 auto;
  width: auto;
  margin-top: 0;
  white-space: nowrap;
  cursor: pointer;
  padding: 0.5rem 0.6rem;
  border: var(--rule);
  border-radius: 2px;
  background: transparent;
  font-family: var(--font-heading);
  font-size: 0.85rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--color-mud);
}

.order-clear:hover,
.order-clear:focus-visible {
  color: var(--color-pink);
  border-color: var(--color-pink);
}

.order-status {
  min-height: 0;
  font-family: var(--font-body);
  font-size: 0.72rem;
  line-height: 1.35;
  color: var(--color-mud);
}

.order-status.ok   { color: var(--color-teal); }
.order-status.warn { color: var(--color-pink); }


/* ── Scrollbars: the panels scroll on short windows ────── */
.diner-menu-list,
#order-list {
  scrollbar-width: thin;
  scrollbar-color: rgba(0, 229, 200, 0.35) transparent;
}

.diner-menu-list::-webkit-scrollbar,
#order-list::-webkit-scrollbar {
  width: 6px;
}

.diner-menu-list::-webkit-scrollbar-track,
#order-list::-webkit-scrollbar-track {
  background: transparent;
}

.diner-menu-list::-webkit-scrollbar-thumb,
#order-list::-webkit-scrollbar-thumb {
  background: rgba(0, 229, 200, 0.3);
  border-radius: 3px;
}

.diner-menu-list::-webkit-scrollbar-thumb:hover,
#order-list::-webkit-scrollbar-thumb:hover {
  background: rgba(0, 229, 200, 0.55);
}
