:root {
  --bg: #1d1a17; --panel: rgba(30, 26, 22, 0.88); --ink: #fff7ea; --dim: #c9b9a2; --accent: #ffb703; --good: #7bd36b; --bad: #ff6b5b;
  --inset-t: env(safe-area-inset-top, 0px); --inset-r: env(safe-area-inset-right, 0px);
  --inset-b: env(safe-area-inset-bottom, 0px); --inset-l: env(safe-area-inset-left, 0px);
}
* { box-sizing: border-box; }
html, body { margin: 0; height: 100%; overflow: clip; background: var(--bg); color: var(--ink); font: 15px/1.3 system-ui, -apple-system, sans-serif; -webkit-user-select: none; user-select: none; }
#view { position: fixed; inset: 0; width: 100%; height: 100%; display: block; touch-action: none; }
#hud { position: fixed; inset: 0; pointer-events: none; padding: calc(10px + var(--inset-t)) calc(12px + var(--inset-r)) calc(10px + var(--inset-b)) calc(12px + var(--inset-l)); }
#hud button { pointer-events: auto; }

#top { position: absolute; top: calc(10px + var(--inset-t)); left: 50%; transform: translateX(calc((var(--inset-l) - var(--inset-r)) / 2 - 50%)); display: flex; gap: 8px; }
.stat { background: var(--panel); border-radius: 12px; padding: 6px 14px; text-align: center; min-width: 78px; }
.stat .k { display: block; font-size: 11px; letter-spacing: .08em; text-transform: uppercase; color: var(--dim); }
.stat span:last-child { font-size: 22px; font-weight: 700; font-variant-numeric: tabular-nums; }

#sound { position: absolute; top: calc(10px + var(--inset-t)); right: calc(12px + var(--inset-r)); width: 44px; height: 44px; border: 0; border-radius: 12px; background: var(--panel); color: var(--ink); font-size: 20px; pointer-events: auto; }
#sound.off { opacity: .55; }
/* The open tickets: a card on the left for every order that has been pulled off the wheel, until it is served or runs out. The slip itself
   stays on the counter as well. */
#reading { position: absolute; top: calc(78px + var(--inset-t)); left: calc(12px + var(--inset-l)); width: min(250px, 42vw); display: flex; flex-direction: column; gap: 8px; max-height: calc(100vh - 200px); overflow: clip; }
#reading .rcard { background: #fff8e1; color: #2b2118; border-radius: 6px 6px 12px 12px; padding: 9px 13px 11px; box-shadow: 0 4px 12px rgba(0, 0, 0, .4); }
#reading h2 { margin: 0 0 5px; font-size: 16px; display: flex; justify-content: space-between; gap: 8px; }
#reading ol { margin: 0; padding-left: 22px; font-size: 15px; }
#reading .bar { height: 6px; background: #e6dccb; border-radius: 3px; margin-top: 7px; overflow: clip; }
#reading .bar i { display: block; height: 100%; background: #5fae4f; }
#reading .rcard.late .bar i { background: #e0483a; }
#result { position: absolute; right: calc(14px + var(--inset-r)); top: calc(10px + var(--inset-t)); background: var(--panel); border-radius: 12px; padding: 6px 14px; text-align: center; transition: opacity .3s; }
#result .pts { font-size: 20px; font-weight: 700; }
#result .notes { color: var(--accent); font-size: 12px; }
#toast { position: absolute; left: 50%; bottom: calc(120px + var(--inset-b)); transform: translateX(calc((var(--inset-l) - var(--inset-r)) / 2 - 50%)); background: var(--panel); padding: 8px 16px; border-radius: 20px; }
.hidden { opacity: 0; pointer-events: none; }

#again { font: inherit; border: 0; color: var(--ink); background: var(--panel); border-radius: 14px; width: 52px; height: 52px; font-size: 22px; touch-action: none; }
#again { width: auto; padding: 0 20px; background: var(--accent); color: #2b2118; font-weight: 800; height: 64px; font-size: 18px; }

#over { position: fixed; inset: 0; background: rgba(0, 0, 0, .55); display: grid; place-items: center; }
#over:not(.hidden) { pointer-events: auto; }
#over .card { background: var(--panel); border-radius: 18px; padding: 24px 32px; text-align: center; }
#over h1 { margin: 0 0 8px; }
#again { margin-top: 12px; }

/* Narrow or portrait windows: the counter fills the top, the hand buttons sit in the empty band below it. */
@media (max-width: 640px), (max-aspect-ratio: 1/1) {
  #reading { width: min(210px, 46vw); gap: 6px; }
  #reading .rcard { padding: 7px 10px 9px; }
  #reading h2 { font-size: 14px; }
  #reading ol { font-size: 13px; padding-left: 18px; }
  }

#over .bigscore { font-size: 34px; font-weight: 800; margin-bottom: 2px; }
#over .dim { color: var(--dim); margin-bottom: 12px; }
#over table { border-collapse: collapse; margin: 0 auto 16px; font-size: 14px; }
#over th { color: var(--dim); font-weight: 600; padding: 3px 9px; }
#over td { padding: 3px 9px; text-align: right; }
#over td.name { text-align: left; }
#over td.sum { font-weight: 700; }
#over tr.total td { border-top: 1px solid var(--dim); font-weight: 700; }
#over .card { max-height: 90vh; overflow: auto; }
#reading li.togo { color: #c4453b; font-weight: 700; list-style: none; margin-left: -22px; }

/* --- the landing page: a swipeable row of tall cards (the look of Wildfire IC's Acts screen) --- */
#menuBtn { position: absolute; top: calc(10px + var(--inset-t)); right: calc(66px + var(--inset-r)); width: 44px; height: 44px; border: 0; border-radius: 12px; background: var(--panel); color: var(--ink); font-size: 20px; pointer-events: auto; }
body.in-menu #hud { visibility: hidden; }
#toMenu { font: inherit; border: 0; border-radius: 14px; margin: 12px 0 0 8px; padding: 0 20px; height: 64px; font-size: 18px; font-weight: 800; background: rgba(255, 255, 255, .14); color: var(--ink); }
#menu { position: fixed; inset: 0; z-index: 5; display: flex; flex-direction: column; justify-content: center; gap: 14px; padding: calc(14px + var(--inset-t)) 0 calc(14px + var(--inset-b));
  background: radial-gradient(ellipse at 50% 0%, rgba(255, 183, 3, .18), transparent 60%), rgba(20, 17, 14, .94); }
#menu[hidden] { display: none; }
.mtitle { text-align: center; padding: 0 calc(16px + var(--inset-r)) 0 calc(16px + var(--inset-l)); }
.mtitle h1 { margin: 0; font-size: clamp(26px, 6vh, 44px); letter-spacing: .02em; color: var(--accent); text-shadow: 0 3px 0 rgba(0, 0, 0, .5); }
.mtitle p { margin: 4px 0 0; color: var(--dim); font-size: clamp(12px, 2.4vh, 16px); }
.mrow { display: flex; gap: 16px; overflow-x: auto; overflow-y: hidden; scroll-snap-type: x mandatory; -webkit-overflow-scrolling: touch; overscroll-behavior: contain;
  --cw: clamp(250px, 46vw, 400px);   /* the card's width: one large card in the middle, the next one peeking in faint and smaller */
  padding: 10px calc(50% - var(--cw) / 2) 14px; touch-action: pan-x; max-height: calc(100vh - 110px - var(--inset-t) - var(--inset-b)); }
.mcard { flex: 0 0 var(--cw); scroll-snap-align: center; scroll-snap-stop: always; transform: scale(var(--s, 1)); opacity: var(--o, 1); transition: transform .16s ease-out, opacity .16s ease-out; display: grid; grid-template-rows: minmax(0, 1fr) auto; padding: 0; overflow: hidden; text-align: left; font: inherit; color: var(--ink);
  background: #2a2420; border: 2px solid rgba(255, 255, 255, .14); border-radius: 18px; box-shadow: 0 6px 0 rgba(0, 0, 0, .45); cursor: pointer; }
.mcard.center:active.playable { transform: translateY(3px) scale(var(--s, 1)); box-shadow: 0 3px 0 rgba(0, 0, 0, .45); }
.mcard:not(.center) { cursor: pointer; }
.mcard:not(.center) .mcta { visibility: hidden; }   /* only the card in the middle shows its button: the others are to be scrolled to */
@media (prefers-reduced-motion: reduce) { .mcard { transition: none; } }
.mcard:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; }
.mcard.playable { border-color: var(--accent); box-shadow: 0 6px 0 rgba(0, 0, 0, .45), 0 0 0 2px rgba(255, 183, 3, .45); }
.mcard.off { cursor: default; }
.mart { position: relative; display: grid; place-items: center; min-height: 0; background: radial-gradient(circle at 50% 40%, #7a4a1c, #1d130d 78%); }
.mcard.diner .mart { background: radial-gradient(circle at 50% 40%, #a8322a, #2a0f0d 78%); }
.mcard.chinese .mart { background: radial-gradient(circle at 50% 40%, #b8281f, #240b09 78%); }
.mcard.vendor .mart { background: radial-gradient(circle at 50% 40%, #3f8a3a, #0f2310 78%); }
.mcard.pizza .mart { background: radial-gradient(circle at 50% 40%, #c4741a, #2a1608 78%); }
.mcard.off .mart { filter: saturate(.55) brightness(.8); }
.mcard .mart.pic { background-size: cover; background-position: 8% 30%; background-repeat: no-repeat; }   /* (three classes, to beat the per-theme background shorthands above) */
.mcard.off .mart.pic { filter: saturate(.85) brightness(.9); }   /* a teaser keeps its colour: it is the sell */
.micon { font-size: clamp(44px, 14vh, 92px); line-height: 1; }
.mribbon { position: absolute; top: 10px; right: 10px; padding: 4px 12px; border-radius: 999px; font-weight: 900; font-size: 12px; background: var(--accent); color: #2b2118; box-shadow: 0 2px 0 rgba(0, 0, 0, .35); }
.mcard.off .mribbon { background: #6b5f55; color: #fff; }
.mbody { display: flex; flex-direction: column; gap: 4px; padding: 12px 14px 14px; }
.mkick { font-size: 11px; letter-spacing: .1em; text-transform: uppercase; color: var(--dim); font-weight: 700; }
.mname { font-size: clamp(18px, 3.4vh, 24px); font-weight: 800; }
.mtag { font-size: 13px; color: var(--dim); }
.mcta { margin-top: 6px; padding: 10px 14px; border-radius: 12px; text-align: center; font-weight: 800; background: rgba(255, 255, 255, .1); }
.mcard.playable .mcta { background: var(--accent); color: #2b2118; }
@media (max-height: 520px) { .mtag { display: none; } .mbody { padding: 8px 12px 10px; } .mcta { padding: 7px 12px; margin-top: 3px; } }

/* A ticket card can be tapped to fold down to a small chip (number and timer), so it never blocks the counter. */
#reading { align-items: flex-start; }
#reading .rcard { pointer-events: auto; cursor: pointer; width: 100%; }
#reading .rcard h2::after { content: '\25BE'; opacity: .5; margin-left: 2px; }
#reading .rcard.min { width: auto; min-width: 74px; padding: 5px 10px 7px; }
#reading .rcard.min h2 { margin: 0; font-size: 14px; }
#reading .rcard.min h2::after { content: '\25B8'; }
#reading .rcard.min h2 span:first-child, #reading .rcard.min ol { display: none; }
#reading .rcard.min .bar { margin-top: 4px; }

/* No scroll bar on the card row: swipe it, or use the dots. */
.mrow { scrollbar-width: none; }
.mrow::-webkit-scrollbar { display: none; }
.mdots { display: flex; justify-content: center; gap: 4px; }
.mdot { width: 26px; height: 26px; padding: 0; border: 0; background: none; display: grid; place-items: center; }
.mdot::after { content: ''; width: 9px; height: 9px; border-radius: 50%; background: rgba(255, 255, 255, .3); transition: background .2s, transform .2s; }
.mdot.on::after { background: var(--accent); transform: scale(1.3); }

/* --- the Diner's level screen and the level end card --- */
#menu .lhead { display: flex; align-items: center; gap: 12px; padding: 0 calc(16px + var(--inset-r)) 0 calc(16px + var(--inset-l)); }
.lback { font: inherit; border: 0; border-radius: 12px; height: 44px; padding: 0 16px; font-weight: 800; background: rgba(255, 255, 255, .14); color: var(--ink); }
.ltitle { flex: 1; text-align: center; }
.ltitle h1 { margin: 0; font-size: clamp(22px, 5vh, 36px); color: var(--accent); text-shadow: 0 3px 0 rgba(0, 0, 0, .5); }
.lkick { font-size: 11px; letter-spacing: .1em; text-transform: uppercase; color: var(--dim); font-weight: 700; }
.ltotal { min-width: 84px; text-align: right; font-weight: 800; color: var(--accent); }
.ltabs { display: flex; justify-content: center; gap: 8px; }
.ltab { font: inherit; border: 2px solid rgba(255, 255, 255, .18); border-radius: 999px; padding: 6px 18px; font-weight: 800; background: none; color: var(--dim); }
.ltab.on { background: var(--accent); border-color: var(--accent); color: #2b2118; }
.lgrid { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 8px; padding: 0 calc(16px + var(--inset-r)) 0 calc(16px + var(--inset-l)); }
.ltile { font: inherit; color: var(--ink); text-align: center; display: grid; gap: 2px; padding: 8px 4px; border: 2px solid rgba(255, 255, 255, .14); border-radius: 14px; background: #2a2420; box-shadow: 0 4px 0 rgba(0, 0, 0, .45); min-width: 0; }
.ltile.on { border-color: var(--accent); box-shadow: 0 4px 0 rgba(0, 0, 0, .45), 0 0 0 2px rgba(255, 183, 3, .45); }
.ltile.locked > :not(.lpaid) { opacity: .55; }
.lnum { font-size: 22px; font-weight: 900; }
.lname { font-size: 12px; font-weight: 700; color: var(--dim); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.lstars { color: var(--accent); letter-spacing: .1em; font-size: 14px; }
.lpaid { font-size: 11px; font-weight: 800; color: var(--accent); white-space: nowrap; line-height: 1.1; }
.ldetail { margin: 0 calc(16px + var(--inset-r)) 0 calc(16px + var(--inset-l)); padding: 12px 16px; border-radius: 16px; background: #2a2420; border: 2px solid rgba(255, 255, 255, .14); overflow: auto; max-height: 38vh; }
.ldetail h2 { margin: 0 0 4px; font-size: 18px; }
.ldetail p { margin: 2px 0; color: var(--dim); font-size: 13px; }
.lgoals { list-style: none; margin: 8px 0; padding: 0; display: grid; gap: 4px; }
.lgoals li { display: grid; grid-template-columns: 22px auto 1fr auto; gap: 8px; align-items: baseline; font-size: 14px; }
.lgoals .gstar { color: var(--dim); font-size: 18px; }
.lgoals li.got .gstar { color: var(--accent); }
.lgoals .gname { font-weight: 800; }
.lgoals .gtext { color: var(--dim); font-size: 13px; }
.lgoals .gnew { background: var(--accent); color: #2b2118; border-radius: 999px; padding: 1px 8px; font-size: 11px; font-weight: 900; }
.lgo, #next, #again { font: inherit; border: 0; border-radius: 14px; padding: 0 22px; height: 52px; font-size: 17px; font-weight: 800; background: var(--accent); color: #2b2118; margin-top: 8px; }
.lgo:disabled { background: rgba(255, 255, 255, .12); color: var(--dim); }
#next[hidden] { display: none; }
#next { margin-right: 8px; }
@media (max-height: 520px) { .lblurb { display: none; } .ldetail { max-height: 44vh; } .ltile { padding: 5px 2px; } .lnum { font-size: 18px; } }
@media (max-width: 640px) { .lgrid { grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 5px; } .lname { display: none; } }
#over #toMenu { height: 52px; margin-top: 8px; font-size: 17px; }

.lbody { display: grid; gap: 10px; min-height: 0; }
/* A short landscape screen (a phone): the tiles on the left, the picked level beside them, so Play is always on screen. */
@media (max-height: 520px) and (min-aspect-ratio: 1/1) {
  #menu { gap: 6px; }
  .lbody { grid-template-columns: 1.15fr 1fr; align-items: start; padding: 0 calc(16px + var(--inset-r)) 0 calc(16px + var(--inset-l)); }
  .lbody .lgrid, .lbody .ldetail { margin: 0; padding-left: 0; padding-right: 0; }
  .lbody .ldetail { padding: 8px 12px; max-height: calc(100vh - 150px - var(--inset-t) - var(--inset-b)); }
  .lgo { height: 44px; margin-top: 4px; }
  .ltile { gap: 0; }
  .lkick { display: none; }
  .ltitle h1 { font-size: 22px; }
  .ldetail h2 { font-size: 16px; }
}

/* --- the level tip card and the level 1 guide --- */
#intro { position: fixed; inset: 0; z-index: 6; display: grid; place-items: center; padding: calc(12px + var(--inset-t)) calc(12px + var(--inset-r)) calc(12px + var(--inset-b)) calc(12px + var(--inset-l)); background: rgba(20, 17, 14, .8); }
#intro[hidden] { display: none; }
.icard { width: min(520px, 100%); max-height: 100%; overflow: auto; background: #2a2420; border: 2px solid var(--accent); border-radius: 18px; padding: 16px 20px; box-shadow: 0 6px 0 rgba(0, 0, 0, .5); }
.ikick { font-size: 11px; letter-spacing: .1em; text-transform: uppercase; color: var(--dim); font-weight: 700; }
.icard h2 { margin: 2px 0 4px; font-size: 24px; color: var(--accent); }
.iblurb { margin: 0 0 8px; color: var(--dim); }
.itips { list-style: none; margin: 0 0 8px; padding: 0; display: grid; gap: 8px; }
.itips li { display: grid; gap: 2px; padding: 8px 10px; border-radius: 12px; background: rgba(255, 255, 255, .07); }
.itips b { color: var(--ink); }
.itips span { color: var(--dim); font-size: 14px; }
.igoal { margin: 0 0 4px; font-size: 13px; color: var(--accent); }
.igo { font: inherit; border: 0; border-radius: 14px; padding: 0 22px; height: 52px; font-size: 17px; font-weight: 800; background: var(--accent); color: #2b2118; margin-top: 6px; width: 100%; }
@media (max-height: 520px) { .icard { padding: 10px 16px; } .iblurb { display: none; } .itips span { font-size: 13px; } .igo { height: 44px; } }

/* --- the lock card on a locked level: the tip card's look, over the level screen --- */
.plock { position: fixed; inset: 0; z-index: 7; display: grid; place-items: center; padding: calc(12px + var(--inset-t)) calc(12px + var(--inset-r)) calc(12px + var(--inset-b)) calc(12px + var(--inset-l)); background: rgba(20, 17, 14, .8); }
.plock[hidden] { display: none; }
.pcard .iblurb { color: var(--ink); font-size: 16px; }
.pstatus { margin: 4px 0 0; min-height: 1.3em; color: var(--accent); font-size: 14px; }
.prow { display: flex; gap: 8px; margin-top: 8px; }
.prestore, .plater { font: inherit; flex: 1; height: 48px; border: 0; border-radius: 14px; font-weight: 800; background: rgba(255, 255, 255, .14); color: var(--ink); }
.pcard button:disabled { opacity: .55; }
@media (max-height: 520px) { .pcard .iblurb { display: block; font-size: 14px; margin-bottom: 2px; } .pstatus { min-height: 0; } .prestore, .plater { height: 40px; } .pcard h2 { font-size: 20px; } }

#guide { position: fixed; inset: 0; z-index: 4; pointer-events: none; }
#guide[hidden] { display: none; }
.glayer { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; }
.glayer { filter: drop-shadow(0 0 3px rgba(0, 0, 0, .75)); }
.gpath { stroke: rgba(255, 255, 255, .85); stroke-width: 5; stroke-dasharray: 3 12; stroke-linecap: round; }
.gtarget { fill: none; stroke: rgba(255, 183, 3, .9); stroke-width: 3; animation: gpulse 1.3s ease-in-out infinite; transform-box: fill-box; transform-origin: center; }
.gring { fill: rgba(255, 255, 255, .3); stroke: #fff; stroke-width: 4; transition: r .15s; }
.gdot { fill: #fff; }
.gtarget { stroke-width: 4; }
@keyframes gpulse { 0%, 100% { opacity: .35; transform: scale(.85); } 50% { opacity: 1; transform: scale(1.12); } }
.gcard { position: absolute; left: 50%; bottom: calc(18px + var(--inset-b)); transform: translateX(calc((var(--inset-l) - var(--inset-r)) / 2 - 50%)); width: min(520px, calc(100vw - 24px - var(--inset-l) - var(--inset-r))); background: rgba(30, 26, 22, .94); border: 2px solid var(--accent); border-radius: 16px; padding: 10px 14px 12px; pointer-events: auto; box-shadow: 0 4px 0 rgba(0, 0, 0, .5); }
.ghead { display: flex; justify-content: space-between; align-items: center; color: var(--dim); font-size: 12px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; }
.gskip { font: inherit; font-size: 12px; border: 0; background: rgba(255, 255, 255, .12); color: var(--ink); border-radius: 999px; padding: 4px 12px; }
.gtitle { font-size: 18px; font-weight: 800; color: var(--accent); margin: 2px 0; }
.gtext { font-size: 15px; }
@media (max-height: 520px) { .gcard { padding: 6px 12px 8px; bottom: calc(6px + var(--inset-b)); } .gtitle { font-size: 15px; } .gtext { font-size: 13px; } }
.lreplay { font: inherit; border: 0; border-radius: 14px; padding: 0 16px; height: 52px; font-size: 14px; font-weight: 700; background: rgba(255, 255, 255, .12); color: var(--ink); margin: 8px 0 0 8px; }
@media (max-height: 520px) and (min-aspect-ratio: 1/1) { .lreplay { height: 44px; margin-left: 4px; } }

/* On a phone (a short landscape screen, or a narrow one) the order cards sit in the far top left corner, level with the score and clock,
   so an open order covers as little of the counter as it can (Stephen, 2026-11-11). */
@media (max-height: 500px), (max-width: 640px) {
  #reading { top: calc(10px + var(--inset-t)); width: min(190px, 30vw); max-height: calc(100vh - 20px - var(--inset-t) - var(--inset-b)); }
  /* Score and shift clock leave the middle, so they do not hide the diner window and the order wheel: they sit at the top right, left of the buttons. */
  #top { left: auto; right: calc(120px + var(--inset-r)); transform: none; gap: 6px; }
  .stat { min-width: 64px; padding: 4px 10px; }
  .stat span:last-child { font-size: 19px; }
  #reading { gap: 5px; }
  #reading .rcard { padding: 6px 9px 8px; }
  #reading h2 { font-size: 13px; margin-bottom: 3px; }
  #reading ol { font-size: 12px; padding-left: 17px; }
  #reading .bar { height: 5px; margin-top: 5px; }
}

.llegal { display: flex; gap: 18px; justify-content: center; margin: 0 16px 10px; font-size: 13px; }
.llegal a { color: inherit; opacity: .7; }
.lusage { display: flex; gap: 8px; align-items: center; justify-content: center; margin: 6px 16px 10px; font-size: 13px; opacity: .75; }

/* The first-order nudge: a pulsing ring and a label on the first ticket hanging on the wheel (js/nudge.js). */
.nudge { position: fixed; left: 0; top: 0; z-index: 4; pointer-events: none; will-change: transform; }
.nudge[hidden] { display: none; }
.nudge-ring { position: absolute; left: -30px; top: -30px; width: 60px; height: 60px; border-radius: 50%; border: 4px solid var(--accent); box-shadow: 0 0 14px rgba(255, 183, 3, .8); animation: nudge-pulse 1.1s ease-out infinite; }
.nudge-label { position: absolute; left: 50%; top: 38px; transform: translateX(-50%); white-space: nowrap; background: var(--accent); color: #2b2118; font-weight: 800; font-size: 13px; padding: 5px 12px; border-radius: 999px; box-shadow: 0 3px 0 rgba(0, 0, 0, .35); }
@keyframes nudge-pulse { 0% { transform: scale(.7); opacity: 1; } 100% { transform: scale(1.5); opacity: 0; } }
@media (prefers-reduced-motion: reduce) { .nudge-ring { animation: none; } }

/* An order card's top edge carries the colour of the customer waiting on it (js/customers.js). */
#reading .rcard { border-top: 7px solid #c4453b; }

/* Free Play's race against the clock: the time a served order adds floats up under the clock, and the clock goes red and pulses in the last ten seconds. */
.stat { position: relative; }
.stat .bonus { position: absolute; left: 50%; top: 100%; transform: translateX(-50%); font-size: 20px; font-weight: 800; color: #7bd36b; opacity: 0; pointer-events: none; background: rgba(30, 26, 22, .9); padding: 1px 10px; border-radius: 999px; }
.stat .bonus.go { animation: bonus-float 1.6s ease-out; }
@keyframes bonus-float { 0% { opacity: 0; transform: translate(-50%, -8px) scale(.7); } 15% { opacity: 1; transform: translate(-50%, 4px) scale(1.15); } 100% { opacity: 0; transform: translate(-50%, 26px) scale(1); } }
.stat.low { background: rgba(120, 28, 20, .9); animation: clock-pulse .7s ease-in-out infinite; }
.stat.low span:last-child { color: #ff9a8a; }
@keyframes clock-pulse { 50% { transform: scale(1.07); } }
@media (prefers-reduced-motion: reduce) { .stat.low { animation: none; } }

