/* Components. Everything is a dark frosted surface with a brass hairline; colour is used sparingly,
   lit like a bottle under a bar lamp: category tints on meters and chips, amber on anything live. */

/* ---------- keyed lists ----------
   Every card sits in an .it. On enter and leave motion.js animates the card's own box (height, padding and borders)
   with its content kept at natural size, so the page height always changes continuously and never jumps. */
.list{display:block}
.it{display:block}
.it>.it-in{min-height:0;margin-inline:-14px}
.it-pad{padding:8px 14px var(--gap,18px)}
.it.leave{pointer-events:none}
#joinBox{--gap:18px}
/* The room between two cards is kept mostly under each card, so the first card sits right under its column's heading;
   the 3px above every card is room for its hover lift and its top border. The queue and the drinks list are scanned
   as lists, so their cards sit closer together (12px between two) than the making guides (28px). */
#queueBox,#drinkList{--gap:9px}
#guideBox{--gap:25px}
#queueBox .it-pad,#drinkList .it-pad,#guideBox .it-pad{padding-top:3px}
#menuRows,.menu-old{--gap:0px}
#menuRows .it>.it-in,.menu-old .it>.it-in{margin-inline:-10px}
#menuRows .it-pad,.menu-old .it-pad{padding:0 10px}
#menuRows.noanim *{transition:none!important;animation:none!important}
#mine{padding-bottom:8px;scroll-margin-top:12px;position:relative}
/* the bar's note under a guest's order (guest.js renderBarNote) takes no gap of its own while it is empty: it pulls up
   over the column's gap, and its card brings its own room as it grows in */
#barNote{margin-top:-20px}
.mine-tk{position:relative;isolation:isolate}
/* The amber of a ready card is its own layer, so it fades in and out with the contents instead of the card flipping
   between amber and dark in one frame. The card's own fill stays dark underneath. */
.mine-tk::before{content:"";position:absolute;inset:0;z-index:-1;border-radius:inherit;pointer-events:none;
  background:linear-gradient(150deg,#dc9f43,#b8791f 58%,#98601a);opacity:0;transition:opacity .7s ease-in-out}
.mine-tk.ready::before{opacity:1}
/* The card itself keeps the normal ink while it is ready: only the ready content takes the dark amber-card ink. */
.ticket.ready.mine-tk{color:var(--ink);background:linear-gradient(180deg,var(--card-a),var(--card-b))}
.ticket.ready .mine-body{color:#231604}
/* the content is what changes; the card's own border, radius and fill stay where they are.
   The wrapper is stretched back over the card's padding and pays it back as padding of its own, so the
   content sits exactly where it did while the clip edge — and the radius — become the card's border.
   Clipping 16px inside the card instead would slice the warm glow off anything the content lights up
   (the making pulse, the brass queue digit, a lit meter segment) and leave it flat on the left edge. */
.mine-clip{
  position:relative;overflow:hidden;border-radius:inherit;
  margin:calc(-1 * var(--tk-pad));padding:var(--tk-pad);
}
.mine-body{display:flex;flex-direction:column;gap:10px;min-width:0}
/* the sheen that sweeps across the card while its content changes.
   It is invisible at rest — transform alone is not enough, because the sheen's soft glow reaches some
   40px past the element, so off to the left it still lay a faint warm band on the card's left edge.
   The fade in guest.js lights it for the sweep only. */
.wipe-clip{position:absolute;inset:0;z-index:2;border-radius:inherit;overflow:hidden;pointer-events:none}
.wipe{
  position:absolute;inset:0;opacity:0;transform:translateX(-104%);
  background:linear-gradient(90deg,transparent,rgba(255,232,196,.20) 45%,rgba(255,246,225,.30) 50%,rgba(255,232,196,.20) 55%,transparent);
  box-shadow:0 0 30px 12px rgba(255,224,178,.10);
}

/* ---------- buttons ---------- */
.btn{
  position:relative;isolation:isolate;overflow:hidden;
  min-height:44px;padding:9px 20px;border-radius:var(--r-pill);
  border:1px solid var(--line);
  background:linear-gradient(180deg,rgba(255,255,255,.085),rgba(255,255,255,.03));
  color:var(--ink);font-weight:600;font-size:14px;cursor:pointer;
  box-shadow:inset 0 1px 0 rgba(255,255,255,.06),0 6px 18px rgba(0,0,0,.32);
  transition:transform var(--t-2) var(--ease),border-color var(--t-2) var(--ease),box-shadow var(--t-2) var(--ease),color var(--t-2) var(--ease);
}
@media (hover:hover){
  .btn:hover{transform:translateY(-1px) scale(var(--lift));border-color:var(--brass-line);box-shadow:var(--lift-2)}
}
.btn:active{transform:translateY(0) scale(.995)}
.btn[disabled]{opacity:.42;cursor:not-allowed;box-shadow:none}
.btn[disabled]:hover{transform:none;border-color:var(--line)}
/* armed overlay: a warm fill that grows in behind the label */
.btn::before{
  content:"";position:absolute;inset:0;border-radius:inherit;z-index:-1;opacity:0;
  background:linear-gradient(180deg,var(--amber-lt),var(--amber));
  transition:opacity var(--t-3) var(--ease);
}
/* armed, the fill is shaded like a rounded surface: light along the top, falling off smoothly into the lower edge */
.btn[data-armed]{color:var(--on-amber);border-color:var(--brass-line)}
.btn[data-armed]::before{opacity:1;
  box-shadow:inset 0 8px 10px -6px rgba(255,248,230,.45),inset 0 -9px 12px -6px rgba(90,40,0,.34);
  background:linear-gradient(180deg,#f7d39a 0%,var(--amber-lt) 30%,var(--amber) 70%,#b9782c 100%)}
.btn[data-armed][data-danger]{color:var(--on-danger)}
.btn[data-armed][data-danger]::before{
  box-shadow:inset 0 8px 10px -6px rgba(255,215,205,.35),inset 0 -9px 12px -6px rgba(50,0,0,.4);
  background:linear-gradient(180deg,var(--danger),var(--danger-dk))}
/* a single slow sheen pass while armed */
.btn[data-armed]::after{
  content:"";position:absolute;inset:0;border-radius:inherit;pointer-events:none;
  background:linear-gradient(105deg,transparent 34%,rgba(255,255,255,.18) 44%,rgba(255,255,255,.5) 50%,rgba(255,255,255,.18) 56%,transparent 66%);
  transform:translateX(-130%);animation:shine 2.6s var(--ease-soft) .3s infinite;
}
.btn-primary{background:linear-gradient(180deg,var(--amber-lt),var(--amber-dk));color:var(--on-amber);border-color:rgba(255,224,170,.32)}
.btn-sky{background:linear-gradient(180deg,rgba(124,192,212,.20),rgba(124,192,212,.07));color:var(--ink);border-color:rgba(124,192,212,.26)}
.btn-dark{background:linear-gradient(180deg,rgba(255,255,255,.06),rgba(0,0,0,.35));color:var(--amber-lt);border-color:var(--brass-line)}
/* the quiet call to action: brass hairline and amber type, no fill, so only one button per screen is bright */
.btn-soft{background:linear-gradient(180deg,rgba(224,160,68,.10),rgba(224,160,68,.03));color:var(--amber-lt);border-color:var(--brass-line)}
.btn-ghost{background:transparent;border-style:dashed;border-color:var(--line);color:var(--ink-2);box-shadow:none}
.btn-ghost:hover{border-color:var(--brass-line);color:var(--ink)}
/* an armed button keeps its dark label on the fill under a pointer too: a tap leaves the button hovered on a touch
   screen, and the outline's hover colour would otherwise win, leaving pale text on the amber */
.btn[data-armed]:hover{color:var(--on-amber);border-color:var(--brass-line)}
.btn[data-armed][data-danger]:hover{color:var(--on-danger)}
/* The gradient is laid out over the border box. By default it starts inside the border and repeats under it, which showed the light top colour as a pale line along the bottom edge. Written after the variants because their background shorthand resets the origin. */
.btn{background-origin:border-box}
.btn-small{min-height:38px;padding:6px 16px;font-size:13px}
/* a button that is only an icon: square, with the glyph centred */
.btn-icon{width:44px;padding:0;display:inline-grid;place-items:center}
.btn-icon svg{display:block;width:20px;height:20px}
#soundBtn .off{display:none}
#soundBtn[aria-pressed="false"] .on{display:none}
#soundBtn[aria-pressed="false"] .off{display:inline}
/* Status labels can be longer than one line ("Tilaus kesken"), so the order buttons hold a constant width
   and a constant height: a two-line label wraps inside the reserved box instead of stretching the row. */
.btn-small[data-act]{min-width:104px;min-height:44px}
.btn-small.btn-icon[data-act]{width:44px;min-width:44px;padding:0}
/* the guest's language and sound buttons are a pair of circles, a size up from the language circle elsewhere */
.phone-tools .btn-icon{--d:44px;width:var(--d);height:var(--d);min-width:var(--d);min-height:var(--d);padding:0;border-radius:50%}
.phone-tools .lang-btn{padding-left:.08em}
.btn-small[data-act="order"]{width:104px;padding-inline:10px;white-space:normal;line-height:1.15}
.banner .btn[data-act]{width:158px;min-height:44px;padding-inline:12px;white-space:normal;line-height:1.15}

/* ---------- segmented controls ---------- */
.seg-ctl{display:inline-flex;border:1px solid var(--line);border-radius:var(--r-pill);overflow:hidden;background:rgba(255,255,255,.03)}
.sbtn{font-weight:600;font-size:13px;background:transparent;border:0;padding:7px 15px;min-height:36px;color:var(--ink-2);cursor:pointer;transition:color var(--t-2) var(--ease),background-color var(--t-2) var(--ease)}
.sbtn+.sbtn{border-left:1px solid var(--line-2)}
.sbtn:hover{color:var(--ink)}
.sbtn[aria-pressed="true"]{background:linear-gradient(180deg,rgba(224,160,68,.22),rgba(224,160,68,.10));color:var(--amber-lt)}

.menutabs{display:flex;width:100%;margin-top:6px;position:relative;isolation:isolate}
.menutabs .tab-ind{
  position:absolute;top:0;bottom:0;left:0;width:0;z-index:0;pointer-events:none;
  background:linear-gradient(180deg,rgba(224,160,68,.22),rgba(224,160,68,.09));
}.menutabs .sbtn{
  position:relative;z-index:1;flex:1;min-width:0;padding:7px 4px;font-size:13px;line-height:1.15;
  display:flex;flex-direction:column;align-items:center;gap:1px;
  transition:color var(--t-swap) var(--ease);
}
.menutabs .sbtn[aria-pressed="true"]{background:transparent}
.menutabs .sbtn small{font-size:11px;font-weight:600;opacity:.7}
/* the drinks list's sort selector: the same fading highlight as the tabs, on a compact control */
.sorttabs{position:relative;isolation:isolate}
.sorttabs .tab-ind{position:absolute;top:0;bottom:0;left:0;width:0;z-index:0;pointer-events:none;background:linear-gradient(180deg,rgba(224,160,68,.22),rgba(224,160,68,.09))}
.sorttabs .sbtn{position:relative;z-index:1;transition:color var(--t-swap) var(--ease)}
.sorttabs .sbtn[aria-pressed="true"]{background:transparent}

/* ---------- form controls ---------- */
select{
  background:#101419;border:1px solid var(--line);border-radius:var(--r-pill);
  padding:7px 14px;min-height:42px;font-weight:500;max-width:100%;cursor:pointer;
  transition:border-color var(--t-2) var(--ease),background-color var(--t-2) var(--ease);
}
select:hover{border-color:var(--brass-line);background:#141920}
/* The open list is drawn by the system, and on Windows it fills with the select's own background: the form's
   see-through one came out light grey under the white text. The options carry a solid dark fill of their own. */
select option{background:#12161c;color:var(--ink)}
.toggle{display:inline-flex;align-items:center;gap:9px;font-size:13px;font-weight:500;color:var(--ink-2);cursor:pointer}
.toggle:hover{color:var(--ink)}
.toggle input[type=checkbox]{width:18px;height:18px;accent-color:var(--amber)}
.toggle input[type=range]{accent-color:var(--amber);height:18px}

.empty{
  display:flex;align-items:center;gap:16px;
  padding:20px;border:1px dashed var(--line);border-radius:var(--r-lg);
  background:rgba(255,255,255,.02);color:var(--ink-2);font-weight:500;
}
.empty .glass{width:48px;height:48px;flex:none;opacity:.85}

/* ---------- tickets ---------- */
.ticket{
  /* the one place the card's padding is written down: a clip layer inside the card needs to know it to
     stretch back out to the card's border (see .mine-clip) */
  --tk-pad:16px;
  position:relative;min-width:0;
  display:flex;flex-direction:column;gap:11px;padding:var(--tk-pad);
  border:1px solid var(--line);border-radius:var(--r-lg);
  background:linear-gradient(180deg,var(--card-a),var(--card-b));
  box-shadow:var(--shadow-1),inset 0 1px 0 rgba(255,255,255,.045);
  transition:border-color var(--t-2) var(--ease),box-shadow var(--t-2) var(--ease);
}
@media (hover:hover){
  .ticket:hover{border-color:var(--brass-line);box-shadow:var(--lift-2)}
}
/* the quest card catching the lamp light once, when an order lands on it. The gold edge, the glow round it and the
   light washing down it are drawn once on a layer of their own, which only fades in and out: animating the card's
   own border and shadow instead repainted the whole blurred card on every frame, which phones felt. */
.ticket.glow:not(.ready)::after{
  content:"";position:absolute;inset:-1px;border-radius:inherit;pointer-events:none;opacity:0;
  border:1px solid rgba(255,232,190,.55);
  box-shadow:0 0 40px -6px rgba(224,160,68,.62),inset 0 0 48px -10px rgba(224,160,68,.45);
  background:linear-gradient(180deg,rgba(255,232,190,.20),rgba(255,232,190,.05) 34%,transparent 62%);
  animation:glowSheen 1.15s var(--ease-out);
}
.tk-head{display:flex;justify-content:space-between;align-items:center;gap:8px;padding-bottom:9px;border-bottom:1px solid var(--line-2)}
.tk-title{display:flex;align-items:center;flex-wrap:wrap;gap:6px 10px}
.pos{display:flex;align-items:center;gap:16px}
/* queue position, cut from brass */
.num,.q-pos{
  display:flex;flex-direction:column;align-items:center;line-height:1;font-family:var(--font-display);font-weight:600;
  background:linear-gradient(180deg,var(--amber-lt),var(--amber-dk));
  -webkit-background-clip:text;background-clip:text;color:transparent;
  filter:drop-shadow(0 2px 10px rgba(224,160,68,.30));
  /* With background-clip:text the brass is painted only where the glyphs are, and only inside this box.
     The span below is shrunk to the digit's cap height, so the serif foot hangs below it: this padding is
     the room that lets the foot be painted at all. Its bottom edge is where the digit would be cut off. */
  padding-bottom:.28em;
}
.num{font-size:56px}
.num small,.q-pos small{font-family:var(--font-body);font-size:11px;font-weight:700;letter-spacing:.16em;line-height:1;margin-bottom:7px}
.q-pos small{font-size:9px;margin-bottom:5px}
/* the digit's line box is tightened to its cap height, so the № label sits close above the number */
.num span,.q-pos span{display:block;line-height:.55}
.q-pos{flex:none;min-width:42px;font-size:36px}
.fillrow{display:flex;justify-content:space-between;gap:8px;font-size:13px;flex-wrap:wrap}
.fillrow b{color:var(--ink)}
.actions{display:flex;gap:10px;flex-wrap:wrap}
.making{display:flex;align-items:center;gap:16px}
/* a slow amber ember while the drink is being made */
.pulse{
  flex:none;width:20px;height:20px;border-radius:50%;
  background:radial-gradient(circle at 35% 32%,#fff3dc,var(--amber) 48%,var(--amber-dk));
  box-shadow:0 0 18px -2px rgba(224,160,68,.65);
  animation:pulse 3.4s var(--ease-soft) infinite;
}
/* ready: the card is lit from within, and breathes once every few seconds.
   Contrast is tuned for the amber: dark type directly on the card, and a dark dialogue panel so the
   line from Bartender-san stays the easiest thing to read on it. */
.ticket.ready{
  color:#231604;border-color:rgba(255,232,190,.48);
  background:linear-gradient(150deg,#dc9f43,#b8791f 58%,#98601a);
  box-shadow:0 10px 28px rgba(0,0,0,.5),inset 0 1px 0 rgba(255,255,255,.35);
}
/* The breath is an amber copy of the card's shape laid behind it, which grows a few pixels past the card's edge and
   fades as it goes: only its size and opacity change, so the phone never repaints the card for it (animating the
   card's own shadow did, on every frame, for as long as the drink waited). It sits in the order box, under the card,
   which covers all of it but the ring round the edge. */
#mine:has(> .mine-tk.ready)::before{
  content:"";position:absolute;left:0;right:0;top:0;bottom:8px;border-radius:var(--r-lg);pointer-events:none;
  background:rgba(224,160,68,.34);opacity:0;
  animation:ring 4.4s var(--ease-out) infinite;
}
.ticket.ready .mine-body .tk-head{border-color:rgba(35,22,4,.22)}
.ticket.ready .mine-body .eyebrow,.ticket.ready .mine-body .lbl{color:rgba(35,22,4,.72)}
.ticket.ready .mine-body .jp{color:rgba(35,22,4,.62)}
.ticket.ready .mine-body .dn{color:#1d1203}
.ticket.ready .mine-body .dlg{background:rgba(24,14,3,.62);border-color:rgba(255,232,190,.22);color:#fbf0dc}
.ticket.ready .mine-body .dlg p b{color:#fff}
.ticket.ready .mine-body .dlg .plate{background:linear-gradient(180deg,#3a2a12,#20160a);color:var(--amber-lt);border-color:rgba(255,232,190,.35)}
.ticket.ready .mine-body .ing li{background:rgba(255,255,255,.30);border-color:rgba(255,255,255,.45);color:#231604}
.ticket.ready .mine-body .btn-dark{background:linear-gradient(180deg,#3a2a12,#1d1408);color:#f7dda6;border-color:rgba(255,232,190,.42)}

/* ingredient chips */
.ings{list-style:none;display:flex;flex-wrap:wrap;gap:4px;margin-top:2px}
.ings li{
  font-size:11.5px;font-weight:500;line-height:1.35;padding:2px 10px;border-radius:var(--r-pill);
  background:rgba(255,255,255,.05);border:1px solid var(--line-2);color:var(--ink-2);
}

/* ---------- dialogue box ---------- */
/* the line from Bartender-san. A quiet panel with a brass name plate — no pointer, no bubble. */
.dlg{
  position:relative;margin-top:13px;padding:18px 16px 16px;
  border:1px solid var(--line);border-radius:var(--r-md);
  background:linear-gradient(180deg,rgba(255,255,255,.055),rgba(255,255,255,.02));
  font-size:13.5px;color:var(--ink-2);
}
.dlg .plate{
  position:absolute;top:-12px;left:14px;padding:2px 14px;
  border:1px solid var(--brass-line);border-radius:var(--r-pill);
  background:linear-gradient(180deg,#241a0f,#171009);
  color:var(--amber-lt);font-family:var(--font-display);font-weight:600;font-size:12px;letter-spacing:.04em;
  box-shadow:0 3px 10px rgba(0,0,0,.4);
}
.dlg p b{color:var(--ink)}
/* each new line fades up a few pixels instead of switching */
.dlg-text{display:inline-block}
.dlg-text.say{animation:say .5s var(--ease-out)}

/* ---------- meters ---------- */
/* The party tally is a row of dots, one per seat. Each dot is round and the same size whatever the card
   is wide, so a marker never changes shape with the space it is given: only its colour says "taken". */
.meter{display:flex;align-items:center;gap:6px}
.seg{
  display:block;width:12px;height:12px;border-radius:50%;flex:none;
  border:1px solid var(--cat);background:rgba(255,255,255,.035);box-shadow:0 0 12px -4px var(--cat);
  transition:background-color var(--t-3) var(--ease),border-color var(--t-3) var(--ease),box-shadow var(--t-3) var(--ease);
}
.seg.on{background:var(--cat);border-color:var(--cat);box-shadow:0 0 14px -3px var(--cat),inset 0 1px 0 rgba(255,255,255,.25)}
.meter-wrap.boosted>.meter .seg.on{border-color:var(--brass-line);box-shadow:0 0 0 1px var(--brass-line),0 0 18px -3px var(--cat)}
.lbl.merge{color:var(--brass);font-weight:600;margin-top:4px}
/* a brew of several parties: each party's dots, a brass + between them */
.meters{display:flex;align-items:center;flex-wrap:wrap;gap:6px 10px}
.m-plus{color:var(--brass);font-weight:700;font-size:15px;line-height:1}

/* ---------- chips, stars, tags ---------- */
.chip{
  display:inline-flex;align-items:center;
  font-size:10.5px;font-weight:700;letter-spacing:.06em;text-transform:uppercase;
  padding:2px 10px;border-radius:var(--r-pill);white-space:nowrap;
  border:1px solid var(--cat);color:var(--cat);
  background:color-mix(in srgb,var(--cat) 14%,transparent);
}
/* how demanding a drink is: three brass ticks, filled up to the level. Ticks rather than further dots:
   the party tally is already a dot row, so the difficulty scale keeps its own shape. */
.grade{display:inline-flex;align-items:center;gap:3px;flex:none}
.grade i{width:13px;height:3px;border-radius:2px;background:rgba(255,255,255,.13)}
.grade i.on{background:var(--brass);box-shadow:0 0 8px -2px var(--brass)}
.tag{font-size:11px;font-weight:600}
.tag.up{color:var(--up)}
.tag.down{color:var(--down)}
.tag.info{color:var(--ink-3)}

/* ---------- party banner ---------- */
.banner{
  position:relative;display:grid;grid-template-columns:auto minmax(0,1fr);column-gap:16px;align-items:start;
  /* Two rows only — the circle beside the body, then the action row across the card — and the vertical
     rhythm is a margin on the body rather than a row gap, so the circle's row ends exactly where the
     button's row begins. That is what lets the circle be centred against the button at all. */
  --b-gap:20px;--b-pad:16px;
  padding:var(--b-pad);border:1px solid var(--line);border-radius:var(--r-lg);
  background:linear-gradient(180deg,var(--card-a),var(--card-b));
  box-shadow:var(--shadow-1),inset 0 1px 0 rgba(255,255,255,.045);
  --s:60px;
  transition:border-color var(--t-2) var(--ease),box-shadow var(--t-2) var(--ease);
}
@media (hover:hover){
  .banner:hover{border-color:var(--brass-line);box-shadow:var(--lift-2)}
}
/* The circle sits centred on the band between the card's top edge and the top of the button. Its row
   already ends where the button's row begins, and the negative top margin lets its own box reach back up
   through the card's padding to the border, so the two visible gaps — card to ring, ring to button —
   come out the same. The 1px is the card's border, which is outside the padding. */
.banner .seal{grid-row:1;align-self:center;margin-top:calc(-1 * (var(--b-pad) + 1px))}
/* The action row spans the card: the button sits at the left edge — under the circle — and the party's
   dots follow it on the same line, so the tally reads as the button's own count. */
.banner .b-foot{grid-column:1/-1;display:flex;align-items:center;gap:16px;min-width:0}
/* the dots sit under the circle and the button is centred in the room between the last dot and the card's right edge */
.banner .b-foot .btn{margin-inline:auto}
.b-body{min-width:0;display:flex;flex-direction:column;gap:6px;margin-bottom:var(--b-gap)}
/* a refined amber plaque for the menu tag line, never a star */
.b-tag{font-size:10.5px;font-weight:700;letter-spacing:.16em;text-transform:uppercase;color:var(--brass)}
.b-drink{font-family:var(--font-display);font-weight:600;font-size:20px;line-height:1.2}
/* the drink's tags (Shotti, Holiton), on their own line under the name */
.b-tags{display:flex;flex-wrap:wrap;gap:4px 8px}
.b-party{font-size:13px;color:var(--ink-2)}
.b-party b{color:var(--ink);font-weight:600}

/* the party tally: a thin brass ring around a serif numeral, like a small wax seal */
.seal{
  position:relative;width:var(--s);height:var(--s);flex:none;
  display:flex;flex-direction:column;align-items:center;justify-content:center;gap:5px;
  border:1px solid var(--brass-line);border-radius:50%;
  background:radial-gradient(circle at 50% 26%,rgba(224,160,68,.16),transparent 72%);
  box-shadow:inset 0 0 0 4px rgba(255,255,255,.02),0 6px 18px rgba(0,0,0,.4);
}
.seal b{font-family:var(--font-display);font-weight:600;font-size:calc(var(--s) * .34);line-height:1;color:var(--amber-lt)}
.seal small{font-size:9.5px;font-weight:600;letter-spacing:.1em;text-transform:uppercase;color:var(--ink-3)}
/* the one featured party: a warm pool of lamp light, nothing louder than that */
.banner.feat{
  --b-pad:18px;--s:80px;
  background:
    radial-gradient(64% 116% at 12% 46%,rgba(224,160,68,.20),transparent 70%),
    linear-gradient(180deg,#1b1913,#0f1218);
  border-color:var(--brass-line);
}
.banner.feat .seal{box-shadow:inset 0 0 0 4px rgba(255,255,255,.03),0 8px 22px rgba(0,0,0,.5)}
.banner.feat .seal b{font-size:calc(var(--s) * .32)}
/* A full party has nothing left to count down, so the ring says so in words rather than counting.
   Set in the body face at a size that fits inside the ring, which is wider on the featured card. */
.seal b.word,.banner.feat .seal b.word{
  font-family:var(--font-body);font-size:calc(var(--s) * .16);
  font-weight:700;letter-spacing:.06em;text-transform:uppercase;line-height:1;
}
.banner.feat .b-tag{color:var(--amber-lt)}
.banner.feat .b-drink{font-size:25px}
.banner.feat .b-party{color:var(--ink-2)}

/* ---------- menu ---------- */
.menu{display:flex;flex-direction:column;gap:6px}
.menu>h3{font-size:22px}
.menunote{margin-top:8px}
/* The rows and the menu note cross fade when the tab changes: what is leaving is lifted into its own layer,
   laid exactly where it stood and kept out of the wrap's height, and fades out there while what arrives fades
   in beneath it (the wrap is held at least as tall as the old layer meanwhile, guest.js swapTab). The layer and
   the wrap are laid out the same way, with the gap the note and the rows had as siblings in the menu column, so
   the two line up exactly. */
.rows-wrap,.menu-old{display:flex;flex-direction:column;gap:6px}
.rows-wrap{position:relative}
.rows-wrap>*,.menu-old>*{flex:none}
.menu-old{position:absolute;left:0;right:0;top:0;pointer-events:none}
.mrow{
  display:flex;align-items:center;justify-content:space-between;gap:12px;padding:11px 0;
  border-top:1px solid var(--line-2);
  transition:background-color var(--t-2) var(--ease);
}
/* the recommended row's warm wash is its own layer reaching 10px past the row, so it fades in and out instead of the row's
   background and padding switching in one frame */
.mrow{position:relative;isolation:isolate}
.mrow::before{content:"";position:absolute;inset:0 -10px;z-index:-1;border-radius:var(--r-md);pointer-events:none;
  background:linear-gradient(90deg,rgba(224,160,68,.10),transparent);opacity:0;transition:opacity var(--t-3) var(--ease)}
.mrow.spot::before{opacity:1}
.m-main{min-width:0;display:flex;flex-direction:column;gap:3px}
.m-name{font-weight:600;display:flex;flex-wrap:wrap;align-items:center;gap:4px 8px}
/* thumbs on a drink this guest was served (guest.js thumbs): bare icons, small and quiet, by the name and far from the order button.
   A pressed thumb takes its colour and a light fill.
   The negative margin keeps the row as tall as it was, while each thumb still has a fair-sized place to tap. */
.rate{display:inline-flex;gap:0;margin-block:-6px;margin-left:-2px}
.rate[hidden]{display:none}
.thumb{
  width:28px;height:32px;padding:0;display:inline-grid;place-items:center;cursor:pointer;
  color:var(--ink-3);background:transparent;border:0;border-radius:50%;
  /* coming back: room opens first, then the thumb fades and grows into it */
  transition:color var(--t-2) var(--ease),background-color var(--t-2) var(--ease),
    width .34s var(--ease),opacity .26s var(--ease) .12s,transform .34s var(--ease-out) .12s;
  -webkit-tap-highlight-color:transparent;
}
.thumb svg{width:17px;height:17px;display:block}
.thumb.down svg{transform:scaleY(-1)}
.thumb:focus-visible{outline:2px solid var(--amber-lt);outline-offset:2px}
.thumb.up[aria-pressed="true"]{color:var(--up)}
.thumb.down[aria-pressed="true"]{color:var(--down)}
.thumb svg path{fill:currentColor;fill-opacity:0;transition:fill-opacity var(--t-2) var(--ease)}
.thumb[aria-pressed="true"] svg path{fill-opacity:.22}
@media (hover:hover){.thumb:hover{color:var(--ink-2)}}
/* the thumb not chosen folds away while a rating stands (guest.js patchRow); the chosen one glides into its place */
.thumb.gone{width:0;opacity:0;transform:scale(.5);pointer-events:none;
  /* going: it fades and shrinks where it stands first, then its room closes and the chosen one glides over */
  transition:color var(--t-2) var(--ease),opacity .16s var(--ease-soft),transform .2s var(--ease-soft),width .34s var(--ease) .1s}
.m-tagbox{display:grid;grid-template-rows:0fr;transition:grid-template-rows var(--t-2) var(--ease)}
.m-tagbox.on{grid-template-rows:1fr}
.m-tagin{min-height:0;overflow:hidden;display:flex;flex-wrap:wrap;gap:4px 8px}
.m-tagin .hint-chip{
  max-width:320px;white-space:nowrap;
  transition:max-width var(--t-2) var(--ease),opacity var(--t-2) var(--ease),transform var(--t-2) var(--ease),margin var(--t-2) var(--ease),padding var(--t-2) var(--ease),border-width var(--t-2) var(--ease);
}
.m-tagin .hint-chip.off{max-width:0;opacity:0;transform:scale(.85);padding-inline:0;border-width:0;margin-right:-8px;overflow:hidden}
.m-tagbox.on .m-tagin{padding:3px 0 1px}
/* informational, so it stays quiet: brass hairline and amber type, no bright fill */
.hint-chip{
  font-size:11.5px;font-weight:600;color:var(--amber-lt);
  background:linear-gradient(180deg,rgba(224,160,68,.16),rgba(224,160,68,.05));
  border:1px solid var(--brass-line);border-radius:var(--r-pill);padding:1px 10px;
}

/* ---------- queue cards (bartender) ---------- */
.ticket.q{flex-direction:row;gap:16px}
/* the next party gets a warm halo, not a shout */
.ticket.q.sug{border-color:var(--brass-line);box-shadow:0 0 0 1px var(--brass-line),0 10px 30px rgba(0,0,0,.5),0 0 34px -6px var(--glow-warm)}
.q-body{--g:8px;flex:1;min-width:0;display:flex;flex-direction:column;gap:var(--g)}
/* the name, its tags and the wait on the first line (the tags wrap under a long name); the difficulty always
   gets its own line right under that, so it never wanders */
.q-head{display:flex;flex-direction:column;align-items:flex-start;gap:var(--g,8px)}
/* the name and its tags wrap among themselves, so a long name pushes the tags to a second line while the wait time keeps
   its place at the end of the first */
.q-name{align-self:stretch;display:flex;align-items:flex-start;gap:4px 10px}
.q-id{flex:1 1 auto;min-width:0;display:flex;align-items:center;flex-wrap:wrap;gap:4px 10px}
.q-name h3{min-width:0}
.flags{display:flex;flex-wrap:wrap;gap:6px}
.flag{font-size:11.5px;font-weight:600;padding:2px 11px;border-radius:var(--r-pill);border:1px solid var(--line);font-variant-numeric:tabular-nums}
/* the next party in line: a brass hairline, no flashing */
.f-sug{color:var(--amber-lt);border-color:var(--brass-line);background:linear-gradient(180deg,rgba(224,160,68,.12),rgba(224,160,68,.04))}
.f-full{color:var(--mint);border-color:rgba(111,201,169,.42);background:color-mix(in srgb,var(--mint) 14%,transparent)}
.members{list-style:none;display:flex;flex-wrap:wrap;gap:6px}
.members li{
  display:inline-flex;flex-wrap:wrap;align-items:center;gap:2px 9px;max-width:100%;
  padding:4px 12px;border:1px solid var(--line-2);border-radius:var(--r-md);
  background:rgba(255,255,255,.035);font-size:13px;
}


/* ---------- how it works ---------- */

/* ---------- the order that flies up to the quest card ---------- */
.fly{
  position:fixed;left:0;top:0;z-index:50;pointer-events:none;white-space:nowrap;
  padding:8px 18px;border-radius:var(--r-pill);
  background:linear-gradient(180deg,var(--amber-lt),var(--amber));
  color:var(--on-amber);font-weight:600;font-size:14px;
  border:1px solid rgba(255,232,190,.45);
  box-shadow:0 12px 30px rgba(0,0,0,.55),0 0 26px -6px rgba(224,160,68,.7);
  will-change:transform,opacity;
}

/* ---------- the making guide (bartender) ---------- */
/* The recipe of the drink on the board: measures in one column so a glance is enough, and the method
   numbered in order. It is always open, because it is what the hands are following. */
.gd-block{margin-top:15px}
.gd-block>.eyebrow{display:flex;align-items:baseline;gap:8px}
.gd-block>.eyebrow .dim{font-weight:600;letter-spacing:.04em;text-transform:none}
/* the measure column is em-based, so every line lines up no matter what the amounts are */
.gd-lines{list-style:none;margin-top:6px}
.gd-lines li{
  display:grid;grid-template-columns:5.4em minmax(0,1fr);gap:12px;align-items:baseline;
  padding:8px 0;border-top:1px solid var(--line-2);font-size:15px;
}
.gd-lines b{font-weight:600;font-variant-numeric:tabular-nums;color:var(--amber-lt)}
.gd-lines span{color:var(--ink)}
.gd-steps{list-style:none;counter-reset:gd;margin-top:9px;padding:0;display:flex;flex-direction:column;gap:9px}
.gd-steps li{counter-increment:gd;display:grid;grid-template-columns:21px minmax(0,1fr);gap:10px;font-size:14px;color:var(--ink-2)}
.gd-steps li::before{
  content:counter(gd);display:flex;align-items:center;justify-content:center;
  width:21px;height:21px;border:1px solid var(--brass-line);border-radius:50%;
  font-size:11px;font-weight:600;font-variant-numeric:tabular-nums;color:var(--brass);
}

/* one compact row per drink being made: the board shows a single guide, these switch between them */

/* ---------- glass emblem (inline SVG) ---------- */
.glass{display:block;overflow:visible}
.glass .stem,.glass .base{stroke:var(--brass);stroke-width:1.2;fill:none;opacity:.8}
.glass .bowl{fill:rgba(124,192,212,.10);stroke:var(--brass);stroke-width:1.2}
.glass .pour{opacity:.9}
.glass .rim{stroke:rgba(255,232,190,.55);stroke-width:1}

/* ---------- bartender: shift bar and the evening's numbers ---------- */
.data{display:flex;flex-direction:column;gap:14px;margin-top:26px;padding:16px;border:1px solid var(--line);border-radius:var(--r-lg);background:var(--surface)}
.kpis{display:grid;grid-template-columns:repeat(auto-fill,minmax(130px,1fr));gap:10px}
.kpi{padding:10px 12px;border:1px solid var(--line-2);border-radius:var(--r-md);background:rgba(255,255,255,.03);display:flex;flex-direction:column;gap:2px}
.kpi b{font-family:var(--font-display);font-size:24px;font-weight:600;color:var(--amber-lt);font-variant-numeric:tabular-nums;line-height:1.1}
.kpi .lbl{color:var(--ink-3);font-size:11.5px}
.chartbox{border:1px solid var(--line-2);border-radius:var(--r-md);padding:10px;background:rgba(0,0,0,.18)}
.legend{display:flex;gap:16px;flex-wrap:wrap;margin-top:6px;font-size:11.5px;color:var(--ink-3)}
.legend i{display:inline-block;width:10px;height:10px;border-radius:2px;margin-right:6px;vertical-align:-1px}
.cols2{display:grid;grid-template-columns:repeat(auto-fit,minmax(240px,1fr));gap:16px}
.data h4{font-family:var(--font-display);font-size:15px;font-weight:600;margin-bottom:6px}
.dt{width:100%;border-collapse:collapse;font-size:13px;font-variant-numeric:tabular-nums}
.dt th{text-align:left;font-weight:600;color:var(--ink-3);font-size:11.5px;padding:3px 8px 3px 0}
.dt td{padding:4px 8px 4px 0;border-top:1px solid var(--line-2)}
.small{font-size:12px}

/* ---------- sold-out drinks ---------- */





.f-out{color:var(--on-danger);background:var(--danger);border-color:var(--danger)}
.m-tagin .hint-chip.out{color:var(--down);border-color:rgba(212,129,158,.5)}
.mrow.sold .m-name,.mrow.sold .ings{opacity:.5}

/* ---------- bartender: the drinks view ---------- */
.btabs .sbtn{min-height:52px;font-size:15px}
.btabs .sbtn small:empty{display:none}
.drow{flex-direction:row;flex-wrap:wrap;justify-content:space-between;align-items:center;gap:10px 16px;padding:12px 16px}
.drow.sold{opacity:.62}
/* not .rec: that is the recipe fold, which is invisible until it opens */
.drow.spot{border-color:var(--amber)}
.drow .dr-main{flex:1 1 300px;min-width:0}
.drow .dstats{display:flex;flex-wrap:wrap;align-items:baseline;gap:6px 18px;margin-top:6px}
.drow .dk{display:inline-flex;align-items:baseline;gap:5px}
.drow .dk b{font-family:var(--font-display);font-size:18px;font-variant-numeric:tabular-nums;color:var(--amber-lt)}
.drow .dr-act{display:flex;gap:8px}
.drow .dr-act .btn[aria-pressed="true"]{border-color:var(--danger);color:var(--danger)}
.f-alone{color:var(--sky,#7cc0d4);border-color:currentColor}

/* guest chips in the queue: the name is the remove button, coloured by pace */
.members li .mchip{
  font:inherit;font-weight:600;font-size:13px;padding:3px 12px;min-height:34px;cursor:pointer;color:var(--ink);
  border:1px solid var(--line-2);border-radius:var(--r-pill);background:rgba(255,255,255,.05);
  transition:background-color var(--t-2) var(--ease),border-color var(--t-2) var(--ease),color var(--t-2) var(--ease);
}
.members li .mchip.g-long,.members li .mchip.g-first{color:var(--mint);border-color:rgba(111,201,169,.5);background:color-mix(in srgb,var(--mint) 13%,transparent)}
.members li .mchip.g-busy{color:#ff9a8c;border-color:rgba(217,86,70,.6);background:color-mix(in srgb,var(--danger) 17%,transparent)}
.members li .mchip[data-armed]{background:var(--danger);border-color:var(--danger);color:var(--on-danger)}
.dn-btn{all:unset;cursor:pointer;color:inherit;font:inherit;border-bottom:1px dashed var(--line);}
.dn-btn:hover{border-bottom-color:var(--brass)}
.dn-btn:focus-visible{outline:2px solid var(--brass);outline-offset:3px;border-radius:3px}
/* The recipe folds open on a 0fr -> 1fr row, so its height is eased by CSS from the first frame to the last and
   nothing is inserted or removed at the ends. The negative margin cancels the parent's flex gap while it is
   shut, and eases back to nothing as it opens. */
.rec{--t-rec:calc(var(--t-2) * 1.2);display:grid;grid-template-rows:0fr;margin-top:calc(-1 * var(--g,0px));opacity:0;
  transition:grid-template-rows var(--t-rec) var(--ease),margin-top var(--t-rec) var(--ease),opacity var(--t-rec) var(--ease)}
.rec.open{grid-template-rows:1fr;margin-top:0;opacity:1}
.rec-in{min-height:0;overflow:hidden;visibility:hidden;transition:visibility 0s var(--t-rec)}
.rec.open>.rec-in{visibility:visible;transition-delay:0s}
/* the first measure needs no rule above it: the box's own border is already the line */
.rec-open .gd-lines{margin-top:0}
.rec-open .gd-lines li:first-child{border-top:0;padding-top:0}
/* a closing rule under the last measure, where the method begins (when there is a method) */
.rec-open .gd-lines:has(+ .gd-steps) li:last-child{border-bottom:1px solid var(--line-2)}
.rec-open{padding:10px 12px;margin:2px 0;border:1px solid var(--line-2);border-radius:var(--r-md);background:rgba(0,0,0,.2);display:flex;flex-direction:column;gap:10px}
.q .members li{padding:0;border:0;background:none;gap:2px 8px;align-items:center}
/* the guests of a brew, one row per party, a hairline between the parties */
.q .members+.members{border-top:1px solid var(--line);padding-top:var(--g)}
.q-wait{flex:none;margin-left:auto;margin-top:3px;font-variant-numeric:tabular-nums;font-size:13px}
/* the dots are centred under the seal: their box is exactly as wide as the seal, and a wider row overflows evenly both ways */
.banner .b-foot .meter-wrap{width:var(--s);flex:none;display:flex;justify-content:center}


/* header tools: the shift and the evening's numbers sit on the logo row */
.title-row{position:relative}
/* The header row is a layer of its own above the page, so the menus that open from its tools (the bar's state, the
   shift, the test console) always lie over the sections below. Without it, while the page rises in after a reload, the
   entrance animations make each section a layer of its own that paints after the header, and an open menu slid under
   them until the entrance was over. */
.title-row{z-index:10}
.top-tools{margin-left:auto;display:flex;align-items:center;gap:8px;flex-wrap:wrap}
.shift-wrap{position:relative}
/* the FI / EN switch: the last thing on the logo row, at its right end; right after the header tools when they are
   showing (on a phone the tools fill their own row, and the switch wraps to the right end of the next one) */
/* the language switch: one button that names the other language, in a circle (--d across) wherever it is. Its
   letter-spacing trails after the last letter, so the same amount on the left keeps "EN" centred. */
.lang-btn{--d:38px;width:var(--d);height:var(--d);min-width:var(--d);min-height:var(--d);padding:0 0 0 .08em;border-radius:50%;
  display:inline-grid;place-items:center;font-size:12px;font-weight:600;letter-spacing:.08em;flex:none}
.title-row > .lang-btn{margin-left:auto}
@media (min-width:600px){body:not(.gated) .top-tools:not([hidden]) + .lang-btn{margin-left:0}}
/* a sign-in card carries its own, in its head; the header's waits until the card is gone */
body.gated .title-row > .lang-btn,body:has(#gate) .title-row > .lang-btn{display:none}
.tk-end{display:flex;align-items:center;gap:12px}
.gate .tk-head .lang-btn{--d:34px}
.shiftpop{position:absolute;right:0;top:calc(100% + 8px);z-index:20;width:min(340px,86vw);display:flex;flex-direction:column;gap:10px;padding:14px;border:1px solid var(--brass-line);border-radius:var(--r-lg);background:#12161c;box-shadow:0 18px 40px rgba(0,0,0,.6)}
.shiftpop[hidden]{display:none}
.shiftpop input{font:inherit;color:var(--ink);background:rgba(0,0,0,.28);border:1px solid var(--line);border-radius:var(--r-md);padding:6px 10px;min-height:34px;min-width:0;flex:1}
.shiftpop .who{display:flex;align-items:center;gap:8px}
.shiftpop .names{display:flex;flex-wrap:wrap;gap:6px}
.shiftpop .now{display:flex;align-items:baseline;gap:8px}
.shiftpop .now b{font-family:var(--font-display);font-size:18px;color:var(--amber-lt)}
.shiftpop .now.none b{color:var(--ink-3);font-size:14px;font-family:var(--font-body);font-weight:600}
#shiftToggle[data-has-name]{color:var(--amber-lt)}
/* the bar's state (bar.js buildState): a small lamp before the word, lit mint while the bar is open, amber while it is
   closing, dark while it is closed */
.bar-state{display:inline-flex;align-items:center;justify-content:center;gap:8px}
.bar-state .bs-dot{flex:none;width:8px;height:8px;border-radius:50%;background:var(--ink-3);transition:background-color .3s,box-shadow .3s}
.bar-state[data-state="open"] .bs-dot{background:var(--mint);box-shadow:0 0 8px rgba(111,201,169,.7)}
.bar-state[data-state="last"] .bs-dot{background:var(--amber);box-shadow:0 0 8px rgba(224,160,68,.7)}
.bar-state[data-state="last"]{color:var(--amber-lt)}
.state-note{margin:0;line-height:1.4}
.state-acts{display:flex;flex-direction:column;gap:8px}
/* the one behind the bar now: amber, and nothing to tap */
.shiftpop .names .is-cur{cursor:default;box-shadow:none}
.shiftpop .names .is-cur:hover{transform:none}
/* the name picked to take over: clearly blue, light type on a darker fill, so it never reads as the amber current one */
.shiftpop .names .picked{background:linear-gradient(180deg,rgba(124,192,212,.38),rgba(124,192,212,.18));border-color:var(--blue);color:#f2fbff;
  box-shadow:0 0 0 1px rgba(124,192,212,.35),0 6px 18px rgba(0,0,0,.32)}
/* dvh, not vh: on a tablet vh is the height with the browser's bars hidden, so 92vh ran past the visible screen and the
   centred dialog was cut off at both ends while the bars showed */
.datadlg{width:min(980px,96vw);max-height:92vh;max-height:92dvh;padding:14px;color:var(--ink);background:#0e1218;border:1px solid var(--brass-line);border-radius:var(--r-lg);box-shadow:0 30px 80px rgba(0,0,0,.7)}
.datadlg::backdrop{background:rgba(3,5,8,.72)}
.datadlg[open]::backdrop{animation:bdIn .26s ease-out}
.datadlg.closing::backdrop{animation:bdOut .18s ease-in forwards}
@keyframes bdIn{from{opacity:0}}
@keyframes bdOut{to{opacity:0}}
.datadlg .data{margin:0;border:0;background:none;padding:6px 4px}
.datadlg .sec-h{padding-right:130px;margin-top:0}
.datadlg .dlg-x{position:absolute;top:12px;right:14px;z-index:2}

/* the time of the evening, large, in the title row */
.bigclock{position:relative;display:flex;align-items:baseline;margin-left:10px;
  font-family:var(--font-display);font-weight:600;font-size:clamp(34px,6.2vw,56px);line-height:1;font-variant-numeric:tabular-nums;letter-spacing:.01em}
/* One continuous brass field cropped to the digits (background-clip:text on the row): the brass never moves, and a
   digit crossfading in it reveals whatever brass is already there, as a window cut into the plate. The display
   serif's digits hang below a line-height of 1; the padding is the room for that foot and the negative margin takes
   the space straight back (as on the word mark). Same brass as the word mark, same slow highlight crossing it, a beat
   later. No text-shadow: WebKit shows it alone when the clip is broken, which read as a blur.
   The transient digits (.drop-g) wear the same field, but as boxes of their own rather than the row: their
   brass is read off the row and shifted onto the cell (motion.js plateField) so each piece is cut from the same plate. */
.bigclock b,.bigclock .drop-g{
  background:
    linear-gradient(100deg,transparent 40%,rgba(255,246,226,.95) 50%,transparent 60%),
    linear-gradient(100deg,var(--amber-dk) 0%,var(--amber-lt) 22%,#fff6e2 30%,var(--amber-lt) 40%,var(--amber) 62%,var(--amber-dk) 100%);
  -webkit-background-clip:text;background-clip:text;color:transparent;
  text-shadow:0 3px 14px rgba(224,160,68,.28);
}
.bigclock b{
  padding:0 .06em .22em;margin:0 -.06em -.22em;
  background-size:280% 100%,280% 100%;background-position:120% 0,120% 0;
}
/* The digit cells stay plain inline boxes: positioning or transforming a child of the clipped row breaks the clip in
   WebKit (Safari/iOS), leaving the digits as transparent text with only their blurred shadow showing — a smeary clock.
   Child opacity is no help either: WebKit builds the mask from every glyph whatever its opacity. A digit that changes is
   therefore swapped while its cell is hidden (visibility drops it from the mask, motion.js setClock), and the old and new
   digits crossfade as transient elements laid over the cell: .drop carries the place and the fade, .drop-g the glyph. */
/* The face is the digits' own box, and the transient digits are placed against it in em: when the window is resized
   while a digit is fading, the pieces grow and move with the digits they cover instead of staying behind in pixels. */
.bigclock .clock-face{position:relative;display:flex}
.bigclock .drop{position:absolute;pointer-events:none}
.bigclock .drop-g{display:block;width:100%;height:100%;text-align:center}
/* The bundled Playfair subset has no tabular figures, so font-variant-numeric does nothing and a "1" is little more
   than half as wide as a "0". Each digit cell is therefore as wide as the widest digit, with its digit centred: a digit
   that changes no longer resizes its cell and pushes every digit after it sideways. The negative margins draw the cells
   together to the spacing of an average digit; the width itself stays that of the "0", since a glyph wider than its
   cell would spill out to the right only instead of staying centred. */
.bigclock .cd.n{display:inline-block;width:.64em;margin:0 -.045em;text-align:center}
/* the time is one line, however little room the row leaves it */
.bigclock b{white-space:nowrap}
#testPop .seg-ctl{align-self:flex-start}
/* recipe actions: serve and interrupt side by side */
.actions.two{display:flex;flex-wrap:nowrap;gap:10px;align-items:stretch}
.actions.two .btn:first-child{flex:1 1 auto}
.actions.two .btn-small{flex:0 0 auto;min-width:0}
/* drinks served and not yet picked up: stays at the top until everybody has taken theirs, or it is dismissed */
.pickup{margin:0;padding-bottom:20px}
#pkRows{display:flex;flex-direction:column;gap:10px}
.pk-empty{font-size:14px}
.pk{display:grid;grid-template-columns:minmax(0,1fr) auto;align-items:center;gap:8px 12px;padding:10px 12px 12px 16px;border:1px solid var(--brass-line);border-radius:var(--r-lg);background:linear-gradient(180deg,rgba(224,160,68,.14),rgba(224,160,68,.05))}
.pk-d{font-family:var(--font-display);font-weight:600;font-size:20px;color:var(--amber-lt)}
.pk-l{font-size:12px;color:var(--ink-3);text-transform:uppercase;letter-spacing:.08em}
.pk ul{grid-column:1 / -1;list-style:none;display:flex;flex-wrap:wrap;gap:6px}
.pk li{padding:3px 12px;border:1px solid var(--line-2);border-radius:var(--r-pill);background:rgba(255,255,255,.05);font-size:13px;font-weight:600}
.pk-x{grid-column:2;grid-row:1;flex:none;width:36px;height:36px;display:grid;place-items:center;border-radius:50%;border:1px solid var(--line);background:rgba(0,0,0,.25);color:var(--ink-2);cursor:pointer}
.pk-x svg{display:block;width:12px;height:12px}
.pk-x:hover{color:var(--ink);border-color:var(--brass-line)}

/* logo and sticker stay on one line; the clock follows them, and the tools wrap below when there is no room */
.brand{display:flex;align-items:center;flex-wrap:nowrap;gap:10px 16px;min-width:0}
.brand .sticker{flex:none}
/* The time of the evening stands in the title row on its own, level with the foot of the word mark. On a phone it reads
   hours and minutes (bar.js), a size down, and takes the sticker's place beside the logo; where even that has no room
   it is left out. */
.title-row > .bigclock{align-self:flex-end;margin:0 0 6px}
/* and the language button comes up beside it, ahead of the tools that wrap below */
@media (max-width:599px){.title-row > .top-tools{order:1}.brand{column-gap:12px}.brand .sticker{display:none}.title-row > .bigclock{font-size:30px}}
@media (max-width:329px){.title-row > .bigclock{display:none}}
/* The clock stands a third of the way from the logo to the tools: its box reaches over all the room between them (the
   row's gap on either side), and the time sits in it after one share of what the digits leave and before two. When
   the row runs out of room the tools wrap below as always, and the clock keeps the line with the logo. */
@media (min-width:600px){
  .title-row > .bigclock{flex:1 1 auto;display:grid;grid-template-columns:minmax(0,1fr) auto minmax(0,2fr);align-items:end}
  .title-row > .bigclock .clock-face{grid-column:2}
}

/* ---------- the door (live) ---------- */
/* Until a guest is through the door with their name and the evening's passcode, or the bartender has signed in,
   the page shows only the door card; everything that needs an evening waits behind it. */
body.gated .phone,body.gated .btabs,body.gated .bar-layout,body.gated .top-tools,body.gated .page-foot{display:none}
/* the clock is the evening's: with no evening yet there is no time to show, so it keeps its place but is not seen,
   and it comes in with the board */
body.gated .bigclock{visibility:hidden}
.gate{max-width:460px;margin:8px auto 28px}
.gate .gate-text{margin:6px 0 14px;font-size:15px;line-height:1.5}
.gate-form{display:flex;flex-direction:column;gap:12px}
.field{display:flex;flex-direction:column;gap:6px}
.field input{font:inherit;font-size:17px;color:var(--ink);background:rgba(0,0,0,.28);border:1px solid var(--line);border-radius:var(--r-md);padding:10px 12px;min-height:44px}
.field input:focus,.shiftpop input:focus{outline:none;border-color:var(--brass-line);box-shadow:0 0 0 3px var(--glow-warm)}
/* Codes are matched without regard to case. Some phone keyboards (Samsung's among them) capitalise the first letter
   whatever the field asks, so a code field shows what is typed in lowercase, which is also how the code is used. */
.code-input{text-transform:lowercase}
.gate-err{min-height:1.3em;margin:0;font-size:14px;color:var(--down)}
.gate-err:empty{min-height:0}
.gate .actions .btn{width:100%}
/* The bartender's text size scales the working area as a whole (CSS zoom), so cards, buttons and text keep their
   proportions; the header, with the logo and the clock, stays as it is. motion.js divides what it measures on
   screen by the zoom before it moves anything, so the motion still lands where it should. */
.bar-layout,nav.btabs{zoom:var(--bar-zoom,1)}
.shift-size{display:flex;align-items:center;justify-content:space-between;gap:10px;padding-top:12px;border-top:1px solid var(--line-2)}
.shift-size .sbtn{min-width:46px;line-height:1;font-family:var(--font-display)}
/* the evening in the bartender menu: its passcode and signing out, under a rule */
.shift-eve{display:flex;flex-direction:column;align-items:flex-start;gap:8px;margin-top:4px;padding-top:12px;border-top:1px solid var(--line-2)}
.shift-eve[hidden]{display:none}
#eveCode{letter-spacing:.04em}
/* a note the bar could not take a tap: at the foot of the screen, above everything, gone by itself */
.toast{position:fixed;left:50%;bottom:calc(18px + env(safe-area-inset-bottom));z-index:60;max-width:min(440px,calc(100vw - 32px));
  padding:11px 16px;border:1px solid var(--brass-line);border-radius:var(--r-lg);background:#12161c;color:var(--ink);font-size:14px;
  box-shadow:var(--shadow-2);opacity:0;transform:translate(-50%,8px);pointer-events:none;transition:opacity .25s ease,transform .25s ease}
.toast.on{opacity:1;transform:translate(-50%,0)}
@media (prefers-reduced-motion:reduce){.toast{transition:none}}

/* Phones: the page gutter, the handset and the ticket each pad the content, and the three add up to a quarter
   of a 375px screen. Tighten each layer so the text and chips get the room back. */
@media (max-width:480px){
  .ticket{--tk-pad:13px}
}

/* ---------- the admin page ---------- */
.admin{display:flex;flex-direction:column;gap:16px;max-width:1100px;margin:8px auto 40px}
.adm-sec h3{margin:0;font-size:18px}
.adm-sec>.dim.small{margin:10px 0 0}
.adm-sec .actions{display:flex;flex-wrap:wrap;gap:8px;margin-top:12px}
.adm-codes{display:grid;grid-template-columns:repeat(auto-fit,minmax(260px,1fr));gap:18px;margin-top:12px}
.adm-code{display:flex;flex-direction:column;gap:8px;align-items:flex-start}
.adm-code>b{font-size:22px;letter-spacing:.02em;word-break:break-all}
.adm-code .field{align-self:stretch}
.adm-code .actions{margin-top:0}
.adm-code p{margin:0}
.adm-scroll{overflow-x:auto;margin-top:12px;-webkit-overflow-scrolling:touch}
.adm-table{width:100%;border-collapse:collapse;font-size:14px}
.adm-table th{text-align:left;font-weight:600;font-size:12px;color:var(--ink-3);padding:6px 10px 6px 0;border-bottom:1px solid var(--line);white-space:nowrap}
.adm-table td{padding:8px 10px 8px 0;border-bottom:1px solid var(--line-2);vertical-align:middle;white-space:nowrap}
.adm-table code{font-size:12px;color:var(--ink-2)}
.adm-table td.adm-acts{text-align:right;white-space:normal;min-width:180px}
.adm-acts .btn{margin:3px 0 3px 6px}
.adm-on{--cat:var(--mint);margin-left:6px}
.adm-off{--cat:var(--ink-3);margin-left:6px}
/* the menu editor: one drink's form under the list */
.adm-drink{display:flex;flex-direction:column;gap:12px;margin-top:16px;padding:16px;border:1px solid var(--brass-line);border-radius:var(--r-lg);background:rgba(0,0,0,.18)}
.adm-drink[hidden]{display:none}
.adm-drink h4{margin:0;font-family:var(--font-display);font-size:17px}
.adm-drink-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(220px,1fr));gap:12px}
.field textarea,.field select{font:inherit;font-size:15px;color:var(--ink);background:rgba(0,0,0,.28);border:1px solid var(--line);border-radius:var(--r-md);padding:9px 12px;min-height:44px}
.field textarea{resize:vertical;line-height:1.45}
.field textarea:focus,.field select:focus{outline:none;border-color:var(--brass-line);box-shadow:0 0 0 3px var(--glow-warm)}
/* a phone: each row becomes a small card, its cells labelled from the hidden header row */
@media (max-width:720px){
  .adm-table thead{display:none}
  .adm-table,.adm-table tbody,.adm-table tr{display:block}
  .adm-table tr{padding:10px 0;border-bottom:1px solid var(--line-2)}
  .adm-table td{display:inline-block;border:0;padding:2px 14px 2px 0;white-space:normal}
  .adm-table td:first-child{display:block;font-weight:600;padding-bottom:4px}
  .adm-table td[data-l]::before{content:attr(data-l) " ";color:var(--ink-3);font-size:12px}
  .adm-table td.adm-acts{display:block;text-align:left;min-width:0;padding-top:6px}
  .adm-table td.adm-acts::before{content:none}
  .adm-acts .btn{margin:4px 6px 0 0}
}


/* the door's note for iPhones: notifications need the page on the Home Screen. Below the button, under a rule */
.gate-tip{margin:16px 0 0;padding-top:12px;border-top:1px solid var(--line-2);font-size:13px;line-height:1.5}

/* The connection is lost: a quiet pill at the top of the screen, its dot breathing while the page tries again.
   It takes no taps, so nothing under it is blocked. */
.netnote{position:fixed;top:calc(10px + env(safe-area-inset-top));left:50%;z-index:70;display:flex;align-items:center;gap:9px;
  width:max-content;max-width:calc(100vw - 32px);padding:7px 15px;border:1px solid var(--brass-line);border-radius:var(--r-pill);
  background:rgba(18,22,28,.94);color:var(--ink-2);font-size:13px;box-shadow:var(--shadow-2);
  opacity:0;transform:translate(-50%,-6px);pointer-events:none;transition:opacity .35s var(--ease-soft),transform .35s var(--ease-soft)}
.netnote.on{opacity:1;transform:translate(-50%,0)}
.netnote i{flex:none;width:7px;height:7px;border-radius:50%;background:var(--amber);animation:netPulse 1.6s ease-in-out infinite}
@keyframes netPulse{0%,100%{opacity:.35}50%{opacity:1}}

/* the admin's QR code for the open evening, beside what it does and the button to print it */
.adm-qr{display:flex;align-items:center;gap:20px;margin-top:18px;padding-top:18px;border-top:1px solid var(--line-2)}
.adm-qr[hidden]{display:none}
.qr-img{flex:none;display:block;width:140px;border-radius:10px;overflow:hidden;line-height:0;box-shadow:var(--shadow-1)}
.qr-img svg{display:block;width:100%;height:auto}
.adm-qr-side{display:flex;flex-direction:column;align-items:flex-start;gap:8px;min-width:0}
.adm-qr-side p{margin:0}
@media (max-width:480px){.adm-qr{flex-direction:column;align-items:flex-start}}

/* The printed QR sheet: on paper, only it is printed, black on white, centred on the page. */
.qr-sheet{display:none}
@media print{
  @page{margin:14mm}
  /* the page is dark-only on screen; the paper, margins included, is light */
  html:has(body.print-qr),body.print-qr{background:#fff!important;color-scheme:light!important}
  body.print-qr > :not(#qrSheet){display:none!important}
  body.print-qr #qrSheet{display:flex;flex-direction:column;align-items:center;gap:5mm;padding-top:14mm;color:#000;text-align:center;font-family:var(--font-body)}
  .qr-sheet .qs-jp{font-family:var(--font-jp);font-size:13pt;letter-spacing:.3em}
  .qr-sheet .qs-name{font-family:var(--font-display);font-weight:700;font-size:40pt;line-height:1}
  .qr-sheet .qs-scan{font-family:var(--font-display);font-style:italic;font-size:20pt;margin-top:4mm}
  .qr-sheet .qs-scan > span:first-child{color:#888}
  .qr-sheet svg{width:105mm;height:105mm;margin:4mm 0}
  .qr-sheet .qs-code{display:flex;flex-direction:column;gap:2mm;font-size:11pt;color:#444}
  .qr-sheet .qs-code b{font-size:22pt;letter-spacing:.06em;color:#000}
  .qr-sheet .qs-url{font-size:10pt;color:#666;margin-top:3mm}
}
