/* The restaurant lab's one look: a diner poster.
   Mustard, ketchup and black; heavy condensed capitals packed tight; cream slabs with hard
   borders and hard shadows; a little tilt for the things that matter most.

   Each colour means one thing everywhere:
     black bar    something is held up, and here is where
     green        ready
     ketchup red  a number worth reading, something late, or an order a person placed themselves
*/
:root {
  --ink: #111; --mustard: #f1c84f; --ketchup: #e0182d; --cream: #fff8e4; --relish: #0b9a4a;
  --barista: #6b3f1d; --salad: #0b9a4a; --sandwich: #e0182d; --expediter: #1d3fd0;
  --edge: 3px solid var(--ink); --shadow: 5px 5px 0 var(--ink);
  font-family: "Avenir Next Condensed", "Barlow Condensed", "Arial Narrow", Arial, sans-serif;
  font-stretch: condensed;
}
* { box-sizing: border-box; }
html { touch-action: manipulation; }  /* no double-tap zoom: quick taps on neighbouring controls must not move the page */
body { margin: 0; background: var(--mustard); color: var(--ink); font-weight: 600; font-variant-numeric: tabular-nums; text-transform: uppercase; }
a { color: inherit; }
main { max-width: 100rem; margin: 0 auto; padding: 1.5rem 2rem 3rem; }
main.narrow { max-width: 34rem; padding: 1.25rem 1rem 3rem; }
@media (max-width: 34rem) { main { padding: 1rem 1rem 2rem; } }

nav { display: flex; flex-wrap: wrap; gap: .4rem 1.1rem; align-items: baseline; padding: .7rem 1rem; background: var(--ink); font-size: 1.05rem; letter-spacing: .03em; }
nav strong { margin-right: auto; color: var(--mustard); font-weight: 800; letter-spacing: .06em; }
nav a { color: #d8d2c0; text-decoration: none; }
nav a[aria-current] { color: var(--mustard); font-weight: 800; }
nav a.mine { padding: 0 .5rem; background: var(--ketchup); color: #fff; font-weight: 800; }
/* Real screens that are not part of the story: smaller, to one side. */
nav .backstage { display: flex; flex-wrap: wrap; gap: .3rem .8rem; padding-left: 1rem; border-left: 2px solid #444; font-size: .82rem; opacity: .7; }

/* --- the top of every screen: a huge name, then the numbers worth reading ---------- */
header.bar { display: flex; flex-wrap: wrap; align-items: flex-end; gap: .8rem 2.5rem; margin-bottom: 1.5rem; padding-bottom: .7rem; border-bottom: 7px solid var(--ink); }
header.bar h1 { margin: 0 auto 0 0; font-size: clamp(2.8rem, 7vw, 5.6rem); font-weight: 800; line-height: .8; letter-spacing: -.02em; }
.stat { font-size: 1.05rem; font-weight: 700; letter-spacing: .07em; }
header.bar .stat b { margin: 0 .25rem; color: var(--ketchup); font-size: 2.7rem; font-weight: 800; line-height: .8; letter-spacing: -.02em; }
.stat.out b { color: var(--ketchup); }
.empty { margin: 2rem 0; font-size: 1.6rem; font-weight: 800; opacity: .5; }

button, a.button { display: inline-block; font: inherit; font-size: 1.05rem; font-weight: 800; letter-spacing: .05em; text-transform: uppercase; text-decoration: none; text-align: center; padding: .5rem .9rem; background: var(--ink); color: var(--mustard); border: 0; border-radius: 0; cursor: pointer; transition: transform .08s, filter .15s; }
button:hover { filter: brightness(1.25); }
button:active { transform: scale(.96); }
button.quiet { background: var(--cream); color: var(--ink); box-shadow: inset 0 0 0 3px var(--ink); }
button:disabled { opacity: .4; cursor: not-allowed; filter: none; transform: none; }
.badge { display: inline-block; margin-left: .45rem; padding: .05rem .4rem; background: var(--ink); color: var(--mustard); font-size: .85rem; font-weight: 800; letter-spacing: .06em; vertical-align: middle; }
.elapsed { font-weight: 800; }

/* A black strip across the screen: the thing to know before reading the rest. */
.panel { display: flex; flex-wrap: wrap; align-items: baseline; gap: .4rem 1.6rem; margin-bottom: 1.4rem; padding: .6rem .9rem; background: var(--ink); color: var(--mustard); font-size: 1.1rem; font-weight: 700; letter-spacing: .04em; }
.panel h2 { margin: 0; width: 100%; font-size: 1.6rem; font-weight: 800; line-height: .95; letter-spacing: -.01em; }
.panel .stat { color: var(--cream); }
.panel .stat b { color: var(--mustard); font-size: 1.5rem; font-weight: 800; }
.panel .stat.out b { color: var(--ketchup); }
.panel .empty { margin: 0; font-size: 1.2rem; opacity: .7; }
.panel button { background: var(--mustard); color: var(--ink); }

/* --- station screens: a wall of tickets ------------------------------------------ */
ol.tickets, ol.orders, ul.stocks { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(19rem, 1fr)); gap: 1.3rem; align-items: start; }
.ticket, .order, .stock { display: grid; grid-template-columns: 1fr auto; gap: .45rem .8rem; align-items: baseline; padding: .65rem .8rem .75rem; background: var(--cream); border: var(--edge); box-shadow: var(--shadow); transition: background-color .4s, box-shadow .4s; }
.ticket h2, .order h2, .stock h2 { margin: 0; font-size: 1.75rem; font-weight: 800; line-height: .95; letter-spacing: -.01em; }
.ticket .elapsed, .order .elapsed { font-size: 1.55rem; line-height: .95; }
.ticket .state, .order .state { grid-column: 1 / -1; font-size: .9rem; font-weight: 700; letter-spacing: .07em; opacity: .55; }
.ticket > button, .order > button, .stock > button { grid-column: 1 / -1; padding: .6rem; font-size: 1.3rem; }
.ticket .state { order: 1; }
.ticket > button { order: 2; }
/* How it is to be made goes on its own row under the item's name. */
.ticket h2 { display: flex; flex-wrap: wrap; align-items: baseline; gap: .3rem; }
.ticket h2::before { content: ""; flex-basis: 100%; order: 1; height: 0; margin-top: -.3rem; }
.ticket h2 .badge { order: 2; margin: 0; font-size: 1rem; }
/* Getting on: the time goes black-on-mustard. Late: the whole ticket is flagged in red. */
.ticket.warm .elapsed { padding: 0 .3rem; background: var(--ink); color: var(--mustard); }
.ticket.late { box-shadow: 5px 5px 0 var(--ketchup); }
.ticket.late .elapsed { padding: 0 .3rem; background: var(--ketchup); color: #fff; }

/* --- the expediter's board ------------------------------------------------------- */
ul.items { grid-column: 1 / -1; list-style: none; margin: 0; padding: 0; display: grid; }
ul.items li { display: flex; justify-content: space-between; align-items: center; gap: .75rem; padding: .28rem 0; border-top: 2px solid rgb(17 17 17 / .14); font-size: 1.15rem; }
ul.items li.done { opacity: .4; }
ul.items li.done > span:first-child { text-decoration: line-through; text-decoration-thickness: 2px; }
ul.items .pending, ul.items .done { font-size: .88rem; font-weight: 700; letter-spacing: .06em; opacity: .65; }
ul.items button { padding: .2rem .65rem; font-size: .9rem; }
/* Held up by one last item: a black bar says where. Ready: a green one, and a big button. */
.order.held .state, .stock .advice { margin: .25rem -.8rem -.75rem; padding: .35rem .8rem; background: var(--ink); color: var(--mustard); font-size: 1rem; font-weight: 800; letter-spacing: .07em; opacity: 1; }
.order.ready { box-shadow: 5px 5px 0 var(--relish); }
.order.ready .state { margin: .25rem -.8rem 0; padding: .35rem .8rem; background: var(--relish); color: #fff; font-size: 1rem; font-weight: 800; opacity: 1; }

/* An order someone placed for themselves: ketchup red, tilted, bigger. Everywhere. */
.ticket.guest, .order.guest { background: var(--ketchup); color: #fff; transform: rotate(-1.2deg); box-shadow: 7px 7px 0 var(--ink); }
.order.guest h2 { font-size: 2.4rem; }
.order.guest ul.items li { border-top-color: rgb(255 255 255 / .35); }
.ticket.guest button, .order.guest button { background: #fff; color: var(--ketchup); }
.ticket.guest .badge, .order.guest .badge { background: var(--mustard); color: var(--ink); }
.ticket.guest .state { opacity: .85; }
.order.guest.ready { box-shadow: 7px 7px 0 var(--relish); }

/* --- prep ------------------------------------------------------------------------ */
ul.stocks { margin-bottom: 1.4rem; }
.stock h2 { grid-column: 1 / -1; }
.stock .stat { grid-column: 1 / -1; font-size: .95rem; }
.stock .stat b { font-size: 1.5rem; font-weight: 800; }
.stock .advice { grid-column: 1 / -1; margin-bottom: 0; background: var(--relish); color: #fff; }
.stock.warm .advice { background: var(--ink); color: var(--mustard); }
.stock.late .advice { background: var(--ketchup); color: #fff; }
.stock.late { box-shadow: 5px 5px 0 var(--ketchup); }
.batches { display: grid; gap: .4rem; width: 100%; }
cooking-batch.batch { display: flex; align-items: center; gap: 1.2rem; font-size: 1.3rem; font-weight: 800; }
cooking-batch .elapsed { min-width: 4ch; color: var(--cream); font-size: 1.5rem; }
cooking-batch[ready] .elapsed { color: #5fe39a; }

/* --- the cashier ----------------------------------------------------------------- */
ol.line { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: .5rem; width: 100%; }
ol.line li { display: flex; gap: .6rem; padding: .2rem .6rem; border: 2px solid var(--cream); color: var(--cream); font-size: 1rem; }
ol.line li span { color: var(--mustard); }
.drinks { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(16rem, 1fr)); gap: 1.1rem; }
.drink { display: grid; gap: .5rem; padding: .6rem .75rem; background: var(--cream); border: var(--edge); box-shadow: var(--shadow); }
.drink label { display: grid; gap: .15rem; font-size: .85rem; font-weight: 700; letter-spacing: .06em; }
.pick { display: flex !important; gap: .5rem; align-items: center; font-size: 1.4rem !important; font-weight: 800 !important; letter-spacing: 0 !important; }
.pick span:last-child { margin-left: auto; color: var(--ketchup); }
.pick input { width: 1.3rem; height: 1.3rem; accent-color: var(--ink); }
select { font: inherit; font-weight: 600; text-transform: uppercase; padding: .3rem; background: #fff; color: var(--ink); border: 2px solid var(--ink); border-radius: 0; }
form > p > button { margin-top: .5rem; padding: .8rem 1.6rem; font-size: 1.5rem; box-shadow: 5px 5px 0 var(--ketchup); }

/* --- the manager's figures: big honest numbers ------------------------------------ */
table.figures { width: 100%; border-collapse: collapse; background: var(--cream); border: var(--edge); box-shadow: var(--shadow); }
table.figures th, table.figures td { padding: .7rem 1.1rem; text-align: right; border-bottom: 2px solid rgb(17 17 17 / .14); font-size: 1.7rem; font-weight: 800; }
table.figures thead th { background: var(--ink); color: var(--mustard); font-size: 1.3rem; letter-spacing: .04em; border-bottom: 0; }
table.figures thead th small { display: block; color: var(--cream); font-size: .85rem; font-weight: 600; letter-spacing: .08em; }
table.figures th[scope="row"] { text-align: left; font-size: 1.25rem; font-weight: 700; letter-spacing: .02em; }
table.figures td.today { color: var(--ketchup); font-size: 3rem; line-height: .9; letter-spacing: -.02em; }
table.figures td.better::after { content: " ▲"; color: var(--relish); font-size: .6em; vertical-align: middle; }
table.figures td.worse::after { content: " ▼"; color: var(--ketchup); font-size: .6em; vertical-align: middle; }
table.figures tbody tr:last-child > * { border-bottom: 0; }

/* --- the manager's charts: today in red, growing across the lunches before it -------- */
.charts { display: grid; grid-template-columns: repeat(auto-fit, minmax(22rem, 1fr)); gap: 1.4rem; margin-bottom: 1.6rem; }
ul.chart-key { grid-column: 1 / -1; list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: .4rem 1.8rem; font-size: 1.05rem; font-weight: 800; letter-spacing: .06em; }
ul.chart-key li { display: flex; align-items: center; gap: .5rem; }
ul.chart-key li::before { content: ""; width: 2.4rem; height: .5rem; background: var(--ketchup); }
ul.chart-key li.last::before { height: .3rem; background: #6f6a60; }
ul.chart-key li.older::before { height: .3rem; background: #b9b2a3; }
.chart { background: var(--cream); border: var(--edge); box-shadow: var(--shadow); padding: .7rem .9rem .6rem; }
.chart > header { display: flex; justify-content: space-between; align-items: flex-end; gap: 1rem; }
.chart h2 { margin: 0; font-size: 2.1rem; font-weight: 800; line-height: .85; letter-spacing: -.01em; }
.chart .now { color: var(--ketchup); font-size: clamp(3rem, 5.2vw, 4.6rem); font-weight: 800; line-height: .78; letter-spacing: -.03em; }
.chart svg { display: block; width: 100%; height: auto; margin-top: .5rem; overflow: visible; }
.chart svg.cut { overflow: hidden; }  /* a line may run off the top of this one */
.chart polyline { fill: none; stroke-linejoin: round; stroke-linecap: round; }
.chart polyline.older { stroke: #b9b2a3; stroke-width: 4; }
.chart polyline.last { stroke: #6f6a60; stroke-width: 4; }
.chart polyline.today { stroke: var(--ketchup); stroke-width: 9; }
.chart circle.head { fill: var(--ketchup); stroke: var(--cream); stroke-width: 4; }
.chart line.floor-line { stroke: var(--ink); stroke-width: 4; }
.chart text { fill: var(--ink); font-size: 17px; font-weight: 800; letter-spacing: .05em; }
.chart text.peak { opacity: .5; }
.chart .footnote { margin: .1rem 0 0; font-size: .85rem; font-weight: 700; letter-spacing: .08em; opacity: .6; }

.chart circle.mark { fill: var(--ink); stroke: var(--cream); stroke-width: 4; }
.chart text.mark { font-size: 20px; }

/* --- the reveal: the viewer's own lunch among everyone's, and the question it leads to --- */
.yours { margin: 0 0 1.4rem; padding: .7rem 1rem; background: var(--ketchup); color: #fff; box-shadow: 7px 7px 0 var(--ink); transform: rotate(-.6deg); font-size: clamp(1.6rem, 4.5vw, 2.8rem); font-weight: 800; line-height: .95; letter-spacing: -.01em; }
.closing { margin-top: 3rem; padding: 2rem 1.5rem 2.2rem; background: var(--ink); color: var(--cream); }
.closing h2 { margin: 0 0 1rem; max-width: 12em; color: var(--mustard); font-size: clamp(2.6rem, 8vw, 6rem); font-weight: 800; line-height: .84; letter-spacing: -.025em; text-wrap: balance; }
.closing p { margin: 0 0 .4rem; max-width: 36rem; font-size: 1.35rem; font-weight: 700; line-height: 1.1; }
.closing .ask { margin-top: 1.2rem; color: var(--mustard); }
.closing a.button { margin-top: 1.4rem; padding: .8rem 1.6rem; background: var(--mustard); color: var(--ink); font-size: 1.7rem; box-shadow: 6px 6px 0 var(--ketchup); }
.reveal { margin-bottom: 1.6rem; padding: 1.1rem 1.1rem 1.3rem; background: var(--ink); color: var(--cream); box-shadow: 7px 7px 0 var(--ketchup); }
.reveal p { margin: 0; font-size: 1.3rem; font-weight: 700; letter-spacing: .02em; opacity: .8; }
.reveal h2 { margin: .5rem 0 1rem; color: var(--mustard); font-size: 3.2rem; font-weight: 800; line-height: .84; letter-spacing: -.02em; }
.reveal a.button { padding: .7rem 1.5rem; background: var(--mustard); color: var(--ink); font-size: 1.7rem; }

/* On a phone the figures stack: each one a block, today's number large, the two earlier
   lunches side by side beneath it. */
@media (max-width: 44rem) {
  header.bar .stat b { font-size: 1.9rem; }
  table.figures, table.figures tbody, table.figures tr, table.figures th, table.figures td { display: block; }
  table.figures thead { display: none; }
  table.figures tr { display: grid; grid-template-columns: 1fr 1fr; padding: .7rem .8rem; border-bottom: 3px solid var(--ink); }
  table.figures tbody tr:last-child { border-bottom: 0; }
  table.figures th, table.figures td { padding: 0; border: 0; text-align: left; }
  table.figures th[scope="row"] { grid-column: 1 / -1; font-size: 1.05rem; letter-spacing: .05em; }
  table.figures td.today { grid-column: 1 / -1; margin: .15rem 0 .35rem; font-size: 3.4rem; }
  table.figures td:not(.today) { font-size: 1.35rem; }
  table.figures td:not(.today)::before { content: attr(data-label); display: block; font-size: .8rem; font-weight: 700; letter-spacing: .08em; opacity: .6; }
}

/* --- every event, as it happened --------------------------------------------------- */
ol.feed { list-style: none; margin: 0; padding: 0; display: grid; background: var(--cream); border: var(--edge); box-shadow: var(--shadow); }
ol.feed li { display: grid; grid-template-columns: 4.5rem 6rem 1fr auto; gap: .9rem; align-items: baseline; padding: .4rem .8rem; border-bottom: 2px solid rgb(17 17 17 / .12); font-size: 1.05rem; }
ol.feed .seq { color: var(--ketchup); font-weight: 800; }
ol.feed .time { font-weight: 800; }
ol.feed .who { font-size: .85rem; font-weight: 700; letter-spacing: .06em; opacity: .6; }
ol.feed li.person { background: var(--ketchup); color: #fff; }
@media (max-width: 34rem) { ol.feed li { grid-template-columns: 3.5rem 1fr; } ol.feed .who, ol.feed .time { display: none; } }

/* --- the title screen -------------------------------------------------------------- */
main.welcome { max-width: 46rem; min-height: 86vh; display: grid; align-content: center; justify-items: start; gap: 1rem; }
.welcome .kicker { margin: 0; padding: .1rem .5rem; background: var(--ink); color: var(--mustard); font-size: 1rem; font-weight: 800; letter-spacing: .14em; }
.welcome h1 { margin: 0; font-size: clamp(3.4rem, 11vw, 7.5rem); font-weight: 800; line-height: .82; letter-spacing: -.025em; text-wrap: balance; }
.welcome .story { margin: 0; max-width: 34rem; font-size: 1.35rem; font-weight: 700; line-height: 1.12; letter-spacing: .01em; text-wrap: pretty; }
.welcome button, .welcome a.button { margin-top: 1rem; padding: .8rem 1.8rem; font-size: 1.9rem; box-shadow: 7px 7px 0 var(--ketchup); transform: rotate(-1.5deg); }

/* --- the floor: four stages, and every order a ticket moving across them ------------ */
.pass-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-end; gap: 1.5rem 3rem; margin-bottom: 2.25rem; }
.pass-title h1 { margin: 0; max-width: 8em; font-size: clamp(3rem, 7vw, 6.4rem); font-weight: 800; line-height: .82; letter-spacing: -.025em; }
ul.legend { list-style: none; margin: 1rem 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: .4rem 1.3rem; font-size: 1.05rem; font-weight: 700; letter-spacing: .04em; }
ul.legend li { display: flex; align-items: center; gap: .4rem; }
/* Each station is a line through the kitchen, marked as a transit map marks a route. */
.bullet { display: inline-grid; place-items: center; flex: none; width: 1.45rem; height: 1.45rem; color: #fff; font-size: .95rem; font-weight: 800; line-height: 1; }
.bullet.at-barista { background: var(--barista); }
.bullet.at-salad { background: var(--salad); }
.bullet.at-sandwich { background: var(--sandwich); }
.bullet.at-expediter { background: var(--expediter); }

.invite { display: flex; gap: 1rem; align-items: center; max-width: 27rem; padding: .8rem 1.2rem .8rem .8rem; background: var(--ink); color: var(--mustard); transform: rotate(1.5deg); box-shadow: 8px 8px 0 var(--ketchup); }
.invite canvas.qr { display: block; width: 7rem; height: 7rem; background: #fff; }
.invite strong { display: block; font-size: 2.3rem; font-weight: 800; line-height: .88; letter-spacing: -.01em; }
.invite p { margin: .45rem 0 .35rem; color: var(--cream); font-size: .95rem; line-height: 1.15; letter-spacing: .02em; }
.invite a { color: var(--mustard); font-size: .85rem; font-weight: 700; text-transform: none; word-break: break-all; }

.floor { display: grid; grid-template-columns: .8fr 2fr 1fr .9fr; gap: 1.75rem; align-items: start; }
.lane > header { display: flex; align-items: flex-end; gap: .6rem; padding-bottom: .5rem; border-bottom: 7px solid var(--ink); }
.lane .count { font-size: 5.2rem; font-weight: 800; line-height: .74; letter-spacing: -.04em; color: var(--ketchup); }
.lane-ready .count { color: var(--relish); }
.lane-gone .count, .lane-line .count { color: var(--ink); }
.lane h2 { margin: 0; font-size: 1.9rem; font-weight: 800; line-height: .9; letter-spacing: -.01em; }
.lane .hint { margin: .15rem 0 0; font-size: .8rem; font-weight: 700; letter-spacing: .1em; }
.lane-empty { margin: 1.5rem 0; font-size: 1.1rem; font-weight: 700; opacity: .45; }
ol.lane-cards { list-style: none; margin: 0; padding: 1.1rem 0 0; display: grid; gap: 1.1rem; align-items: start; }
/* Two columns of tickets, each at its own length. */
.lane-made ol.lane-cards { display: block; columns: 2; column-gap: 1.1rem; }
.lane-made .floor-card { display: inline-block; width: 100%; break-inside: avoid; margin-bottom: 1.1rem; }
.lane-made .floor-card.guest { width: calc(100% - 4px); }

.floor-card { background: var(--cream); border: var(--edge); box-shadow: var(--shadow); padding: .6rem .75rem .7rem; }
.floor-card > header { display: flex; align-items: baseline; gap: .5rem; }
.floor-card .who { font-size: 1.55rem; font-weight: 800; line-height: .95; letter-spacing: -.01em; overflow-wrap: anywhere; }
.floor-card .ticket-time { margin-left: auto; font-size: 1.45rem; font-weight: 800; line-height: .95; }
.floor-card .badge.you { align-self: center; margin: 0; background: var(--mustard); color: var(--ink); }
ul.floor-items { list-style: none; margin: 0; padding: .5rem 0 0; display: grid; gap: .3rem; }
ul.floor-items li { display: flex; align-items: center; gap: .5rem; font-size: 1.12rem; line-height: 1; letter-spacing: .01em; }
ul.floor-items li.done { opacity: .38; }
ul.floor-items li.done > span:last-child { text-decoration: line-through; text-decoration-thickness: 2px; }
ul.floor-items li.done .bullet { background: var(--ink); }
.floor-note { margin: .6rem -.75rem -.7rem; padding: .3rem .75rem; background: var(--ink); color: var(--mustard); font-size: .95rem; font-weight: 800; letter-spacing: .06em; }
.lane-ready .floor-card { box-shadow: 5px 5px 0 var(--relish); }
.lane-ready .floor-note { background: var(--relish); color: #fff; }

.floor-card.guest { background: var(--ketchup); color: #fff; transform: rotate(-1.6deg); box-shadow: 7px 7px 0 var(--ink); }
.floor-card.guest .who { font-size: 2.5rem; }
.floor-card.guest .bullet { outline: 2px solid #fff; }
.floor-card.guest ul.floor-items li.done .bullet { background: #fff; color: var(--ketchup); }
.lane-ready .floor-card.guest { box-shadow: 7px 7px 0 var(--relish); }

/* Someone in line is not a ticket yet: an outline. */
.floor-card.person { display: flex; align-items: baseline; gap: .5rem; background: none; box-shadow: none; padding: .45rem .7rem; }
.floor-card.person .who { font-size: 1.3rem; }
.floor-card.person .ticket-time { font-size: 1.15rem; font-weight: 700; }

/* Handed off: the older, the fainter. */
.lane-gone .floor-card { background: none; border-width: 2px; box-shadow: none; opacity: .7; }
.lane-gone .floor-card:nth-child(n+3) { opacity: .48; }
.lane-gone .floor-card:nth-child(n+5) { opacity: .3; }
.lane-gone .floor-card.guest { background: var(--ketchup); opacity: .95; }
.lane-gone .floor-card .who, .lane-gone .floor-card .ticket-time { font-size: 1.25rem; }
.lane-gone ul.floor-items { display: flex; flex-wrap: wrap; gap: .15rem .7rem; padding-top: .3rem; }
.lane-gone ul.floor-items li { font-size: .95rem; opacity: 1; }
.lane-gone ul.floor-items li.done > span:last-child { text-decoration: none; }
.lane-gone ul.floor-items .bullet { display: none; }

@media (max-width: 70rem) { .floor { grid-template-columns: 1fr 1fr; } }
@media (max-width: 34rem) {
  .floor { grid-template-columns: 1fr; }
  .lane-made ol.lane-cards { columns: 1; }
  .invite { display: none; }
}

/* --- rewind: the floor as it stood at any earlier moment ------------------------------
   The past floor sits beside the live one and takes its place while it has anything in it. */
body:has(#rewind) main { padding-bottom: 1rem; }
body:has(#then > *) main .floor { display: none; }
.then { max-width: 100rem; margin: 0 auto; padding: 0 2rem; }
.then-banner { display: flex; flex-wrap: wrap; align-items: baseline; gap: .3rem 1.2rem; margin: 0 0 1.6rem; padding: .6rem 1rem; background: var(--ink); color: var(--cream); box-shadow: 7px 7px 0 var(--ketchup); transform: rotate(-.5deg); font-size: 1.2rem; font-weight: 700; letter-spacing: .04em; }
.then-banner strong { color: var(--mustard); font-size: clamp(2rem, 5vw, 3.6rem); font-weight: 800; line-height: .9; letter-spacing: -.02em; }
.rewind { position: sticky; bottom: 0; z-index: 4; display: flex; align-items: center; gap: 1.2rem; margin-top: 2rem; padding: .7rem 2rem max(.7rem, env(safe-area-inset-bottom)); background: var(--ink); color: var(--mustard); font-size: 1.3rem; font-weight: 800; letter-spacing: .08em; }
.rewind input[type="range"] { flex: 1; height: 2.2rem; margin: 0; accent-color: var(--ketchup); cursor: ew-resize; }
.rewind button { background: var(--mustard); color: var(--ink); }
body:has(#then > *) .rewind button { background: var(--ketchup); color: #fff; }
@media (max-width: 34rem) { .then { padding: 0 1rem; } .rewind { padding-inline: 1rem; gap: .7rem; } }

/* --- ordering, on a phone: the menu, the sheets and the basket ---------------------- */
order-basket { display: block; padding-bottom: 5.5rem; }
.menu-section h2 { margin: 1.6rem 0 .6rem; padding-bottom: .25rem; border-bottom: 5px solid var(--ink); font-size: 2.2rem; font-weight: 800; line-height: .9; letter-spacing: -.01em; }
ul.menu { list-style: none; margin: 0; padding: 0; display: grid; gap: .7rem; }
button.menu-item { width: 100%; display: flex; justify-content: space-between; align-items: baseline; gap: 1rem; padding: .7rem .85rem; background: var(--cream); color: var(--ink); border: var(--edge); box-shadow: 4px 4px 0 var(--ink); font-size: 1.5rem; letter-spacing: 0; text-align: left; }
button.menu-item:hover { filter: none; }
button.menu-item:active { transform: translate(3px, 3px); box-shadow: 1px 1px 0 var(--ink); }
.price { color: var(--ketchup); font-weight: 800; }
.basket-hint { margin: 1.5rem 0 0; text-align: center; font-size: 1.05rem; font-weight: 700; letter-spacing: .06em; opacity: .6; }
.basket-bar { position: fixed; left: 0; right: 0; bottom: 0; z-index: 5; display: flex; justify-content: space-between; align-items: center; gap: 1rem; padding: .7rem max(1rem, calc((100vw - 34rem) / 2)) max(.7rem, env(safe-area-inset-bottom)); background: var(--ink); color: var(--mustard); font-size: 1.35rem; font-weight: 800; }
.basket-bar[hidden] { display: none; }
.basket-bar button { padding: .6rem 1.1rem; background: var(--mustard); color: var(--ink); font-size: 1.25rem; }

/* A sheet is pinned to the bottom of the screen by its own edges, with nothing about its
   size left for the browser to work out from its contents: the dialog is a plain box, and
   the part that lays the contents out (and scrolls, if it must) is .sheet-body inside it. */
dialog.sheet { position: fixed; inset: auto 0 0 0; width: min(100%, 34rem); max-width: 100%; height: auto; max-height: none; margin: 0 auto; padding: 0; border: 0; border-top: 6px solid var(--ink); background: var(--cream); color: var(--ink); overflow: hidden; touch-action: manipulation; text-transform: uppercase; }
dialog.sheet[open] { display: block; animation: sheet-up .22s cubic-bezier(.2, .8, .2, 1); }
dialog.sheet::backdrop { background: rgb(17 17 17 / .6); }
@keyframes sheet-up { from { transform: translateY(2rem); opacity: 0; } }
@media (min-width: 40rem) { dialog.sheet { inset: 0; height: fit-content; margin: auto; border: var(--edge); box-shadow: 9px 9px 0 var(--ketchup); overflow: visible; } }
html:has(dialog.sheet[open]) { overflow: hidden; }  /* the page behind an open sheet stays put */
.sheet-body { display: flex; flex-direction: column; gap: 1rem; max-height: 85vh; overflow-y: auto; overscroll-behavior: contain; padding: 1.1rem 1.1rem max(1.4rem, env(safe-area-inset-bottom)); }
.sheet-body > * { flex: none; }
.sheet-body > header { display: flex; justify-content: space-between; align-items: baseline; gap: 1rem; }
dialog.sheet h2 { margin: 0; font-size: 2.6rem; font-weight: 800; line-height: .88; letter-spacing: -.02em; }
.sheet-body > header .price { font-size: 1.9rem; }
.choice-name { margin-bottom: .4rem; font-size: .95rem; font-weight: 800; letter-spacing: .12em; }
.pills { display: flex; flex-wrap: wrap; gap: .5rem; }
/* A choice: one per group, like a radio button, but a plain button to tap. Chosen or not
   it is the same size, so choosing never re-wraps the row. */
button.pill { padding: .5rem .85rem; background: #fff; color: var(--ink); box-shadow: inset 0 0 0 3px var(--ink); font-size: 1.2rem; font-weight: 700; letter-spacing: .01em; -webkit-tap-highlight-color: transparent; transition: background .12s, color .12s, transform .08s; }
button.pill:hover { filter: none; }
button.pill[aria-checked="true"] { background: var(--ink); color: var(--mustard); }
button.pill:focus-visible { outline: 3px solid var(--ketchup); outline-offset: 2px; }
.sheet-actions { display: grid; grid-template-columns: auto 1fr; gap: .7rem; margin-top: .3rem; }
.sheet-actions button { padding: .8rem 1.1rem; font-size: 1.5rem; }
.sheet-actions button:last-child { box-shadow: 4px 4px 0 var(--ketchup); }
dialog.sheet form { display: grid; gap: 1rem; }
label.order-name { display: grid; gap: .35rem; font-size: .95rem; font-weight: 800; letter-spacing: .12em; }
label.order-name input { width: 100%; padding: .6rem .7rem; background: #fff; color: var(--ink); border: var(--edge); border-radius: 0; font: inherit; font-size: 1.5rem; font-weight: 700; letter-spacing: 0; }
ul.basket-lines { list-style: none; margin: 0; padding: 0; display: grid; }
ul.basket-lines li { display: grid; grid-template-columns: 1fr auto auto; align-items: center; gap: .75rem; padding: .5rem 0; border-top: 2px solid rgb(17 17 17 / .14); }
ul.basket-lines .what { display: grid; }
ul.basket-lines strong { font-size: 1.4rem; font-weight: 800; line-height: 1; }
ul.basket-lines small { font-size: .9rem; font-weight: 700; letter-spacing: .04em; opacity: .65; }
ul.basket-lines .price { font-size: 1.3rem; }
ul.basket-lines button { padding: .3rem .6rem; font-size: .85rem; }

/* --- my order: a customer's phone after ordering ------------------------------------ */
ol.my-orders { list-style: none; margin: 0; padding: 0; display: grid; gap: 1.3rem; }
.my-order { background: var(--cream); border: var(--edge); box-shadow: var(--shadow); padding: .8rem .9rem .5rem; }
.my-order h2 { margin: 0; font-size: 3rem; font-weight: 800; line-height: .85; letter-spacing: -.02em; }
.my-order .note { margin: .4rem 0 .7rem; font-size: 1rem; font-weight: 700; letter-spacing: .05em; }
.my-order.stage-ready { background: var(--relish); color: #fff; box-shadow: 7px 7px 0 var(--ink); transform: rotate(-1deg); }
.my-order.stage-handed-off { background: none; box-shadow: none; }
.my-order.stage-handed-off h2 { font-size: 2.2rem; }
ul.my-items { list-style: none; margin: 0; padding: 0; display: grid; }
ul.my-items li { display: grid; grid-template-columns: 1fr auto; align-items: baseline; gap: .15rem 1rem; padding: .5rem 0; border-top: 2px solid rgb(17 17 17 / .14); }
ul.my-items .what { font-size: 1.3rem; font-weight: 800; line-height: 1; }
ul.my-items li.done .what { opacity: .45; text-decoration: line-through; text-decoration-thickness: 2px; }
ul.my-items .done { font-size: .9rem; font-weight: 800; letter-spacing: .08em; }
/* Where an unfinished item is, and the way to go and make it, sit under its name. */
ul.my-items .pending { grid-column: 1 / -1; font-size: .9rem; font-weight: 700; letter-spacing: .04em; }
ul.my-items a, .my-order .note a { color: var(--ketchup); font-weight: 800; }
.my-order.stage-ready a { color: var(--mustard); }
.next-steps { display: grid; justify-items: center; gap: 1rem; margin: 1.8rem 0; font-weight: 700; letter-spacing: .05em; }
.next-steps a.button { padding: .8rem 1.5rem; font-size: 1.5rem; box-shadow: 5px 5px 0 var(--ketchup); }

/* --- times that keep themselves ------------------------------------------------------ */
live-time, cooking-batch { display: inline-block; }

/* --- movement -------------------------------------------------------------------------
   Each ticket, order, batch and event has its own view-transition-name, so when a
   screen changes the browser can tell what arrived, what left and what merely moved. */
.ticket, .order, .batch, .floor-card, .my-order, ol.feed li, ol.line li { view-transition-class: card; }
::view-transition { pointer-events: none; }                 /* never swallow a click mid-animation */
::view-transition-old(root), ::view-transition-new(root) { animation: none; }  /* no whole-page crossfade */
::view-transition-group(*.card) { animation-duration: .38s; animation-timing-function: cubic-bezier(.2, .8, .2, 1); }
::view-transition-new(*.card):only-child { animation: arrive .42s cubic-bezier(.2, .8, .2, 1) both; }
::view-transition-old(*.card):only-child { animation: leave .5s cubic-bezier(.4, 0, .7, .2) both; }
@keyframes arrive {
  from { opacity: 0; transform: translateY(14px) scale(.96); }
}
@keyframes leave {
  25% { opacity: 1; transform: scale(1.03); filter: brightness(1.15) saturate(1.4); }
  to { opacity: 0; transform: translateX(48px) scale(.92); }
}
@media (prefers-reduced-motion: reduce) {
  ::view-transition-group(*), ::view-transition-old(*), ::view-transition-new(*) { animation: none !important; }
}
