/* Page frame: the title card, the guest "phone", and the bartender's guide-next-to-queue board. */

/* ---------- title card ---------- */
.top{margin-bottom:22px}
.title-row{display:flex;align-items:center;flex-wrap:wrap;gap:10px 16px}
.logo-block{display:flex;flex-direction:column;line-height:.9}
.logo-jp{font-family:var(--font-jp);font-size:13px;font-weight:600;letter-spacing:.42em;color:var(--brass);margin-bottom:6px}
h1{
  font-size:clamp(38px,7.6vw,62px);
  font-weight:600;font-style:italic;letter-spacing:.005em;
  /* An italic word mark leans past its own box, and background-clip:text paints the brass only inside the
     padding box: with no room to lean into, the arm of the closing "r" is cut off square at the edge.
     The padding is that room; the negative margin takes the space straight back, so the word mark keeps
     its size and the sticker beside it does not move. */
  padding-inline:.12em;margin-inline:-.12em;
  /* The word mark is two background layers: the brass letters, and the highlight that crosses them.
     Only the highlight's background-position moves, so the brass itself never repaints.
     The glow is a text-shadow rather than a drop-shadow filter: a filter re-rasterises its whole subtree
     every time the highlight moves, which made the blurred glow flicker. */
  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%);
  background-size:280% 100%,280% 100%;
  background-position:120% 0,120% 0;
  -webkit-background-clip:text;background-clip:text;color:transparent;
  text-shadow:0 3px 14px rgba(224,160,68,.28);
}
/* the small brass plaque by the word mark: a bar door sign */
.sticker{
  display:inline-block;font-family:var(--font-jp);font-size:12px;font-weight:600;letter-spacing:.18em;
  padding:5px 14px 5px 16px;border:1px solid var(--brass-line);border-radius:4px;
  background:linear-gradient(180deg,rgba(224,160,68,.14),rgba(224,160,68,.04));
  color:var(--amber-lt);box-shadow:inset 0 1px 0 rgba(255,225,180,.12);
}
/* the narrowest phones: the plaque and the gaps give up a little room so it stays up by the word mark */
@media (max-width:359px){.title-row{column-gap:12px}.sticker{padding-inline:8px 9px}}
/* glass emblem beside the word mark. The glow sits on the still paths rather than on the svg root: a filter
   re-rasterises its whole subtree, and the liquid inside animates, which would make the glow flicker. */
.logo-mark{display:block;width:44px;height:44px;flex:none;opacity:.9}
.logo-mark .bowl,.logo-mark .rim,.logo-mark .stem,.logo-mark .base{filter:drop-shadow(0 4px 16px rgba(224,160,68,.32))}
.tagline{margin-top:12px;font-size:13px;font-weight:500;letter-spacing:.06em;color:var(--ink-3);text-transform:uppercase}
.tagline .jp{display:inline-block;white-space:nowrap}
.tagline .jp.wrapped .sep{display:none}
.tagline .jp{text-transform:none;letter-spacing:.12em;color:var(--brass)}

/* ---------- page widths and the bartender board ---------- */
/* The guest page is a handset: one narrow column, centred. */
.wrap.narrow{max-width:560px}

/* The bartender's guide is the working surface, so it leads and stays in view; the queue scrolls next
   to it. On a narrow screen the two stack, guide first, so an accepted order is never off-screen. */
.bar-layout{display:flex;flex-direction:column}
#pickup{order:-1}
/* the guide and the ready list travel as one column, so on a wide screen the sticky guide can never be drawn over the list under it */
.guidecol{display:contents}
.tabpane[hidden]{display:none}
.tabpane{display:flex;flex-direction:column}
/* positioned, so a crossfade can lay a picture of what was there exactly over it (motion.js crossfade) */
.bar-layout,.pane-body{position:relative}
/* The bartender's tablet is a working screen: the page uses all of it, edge to edge but for the gutter, with no cap on
   its width, and the tabs and the pane under them span it too. */
body:has(.bar-layout)>.wrap{max-width:none}
.btabs{margin:0 0 18px}
/* On a tablet or wider the bartender page is one fixed screen, not a page that scrolls: the title card on top and
   three columns filling the rest, each with its heading held in place and only its body scrolling (.pane-body),
   fading in at the top edge once something has scrolled under the heading. The tab bar goes away. */
@media (min-width:980px){
  nav.btabs{display:none}
  body:has(.bar-layout){height:100vh;height:100dvh;overflow:hidden;padding-bottom:0}
  body:has(.bar-layout)>.wrap{height:100%;min-height:0;display:flex;flex-direction:column}
  .wrap>.top{flex:none}
  .bar-layout{display:grid;flex:1 1 0;min-height:0;grid-template-columns:minmax(0,1fr) minmax(0,1.1fr) minmax(0,.9fr);grid-template-rows:minmax(0,1fr);gap:18px;max-width:none;align-items:stretch}
  .bar-layout>.tabpane,.bar-layout>.tabpane[hidden],.guidecol{display:flex;flex-direction:column;min-height:0}
  .guidecol{grid-column:1;grid-row:1}
  .guidecol>.tabpane,.guidecol>.tabpane[hidden]{flex:1 1 0;min-height:0}
  #tabOrders{grid-column:2;grid-row:1}
  #tabDrinks{grid-column:3;grid-row:1}
  /* The scrolling body clips at its own edge, so it reaches 16px out on each side, past the 18px gap and into the edge of
     the neighbouring column's body (they only overlap where both are empty): the soft shadows of the cards are not cut at
     the card's own edge but fade out over the space between and behind the columns. Its scroll bar would sit in that
     overlap under the next column, so it is left out; the wheel and touch still scroll. */
  .pane-body{flex:1 1 auto;min-height:0;overflow:hidden auto;--f:0px;padding-inline:16px;margin-inline:-16px;scrollbar-width:none;
    -webkit-mask-image:linear-gradient(to bottom,transparent 0,#000 var(--f));mask-image:linear-gradient(to bottom,transparent 0,#000 var(--f));
    transition:--f var(--t-2) var(--ease)}
  .pane-body::-webkit-scrollbar{display:none}
  .pane-body{padding-top:0;padding-bottom:14px}
  .pane-body.scrolled{--f:26px}
  /* the ready list sits under the drinks being made, inside the same scrolling body (bar.js moves it there) */
  .pane-body>#pickup{margin-top:14px;padding-bottom:6px}
}

/* ---------- guest: a dark frosted handset ---------- */
.phone{
  position:relative;display:flex;flex-direction:column;gap:20px;padding:18px;
  border:1px solid var(--line);border-radius:var(--r-xl);
  /* No backdrop-filter here. The handset is 86-92% opaque, so the blur changed the pixels by at most
     4/255, while it forced the browser to re-sample the lamp and the shelves behind it on every frame
     they moved: the frosted pane shimmered and cost real frame time. The fill alone reads the same. */
  background:linear-gradient(180deg,rgba(24,29,36,.86),rgba(13,17,22,.92));
  box-shadow:var(--shadow-2),inset 0 1px 0 rgba(255,255,255,.05);
  /* The browser's scroll anchoring corrected the page on every frame of the order card's height ease, fighting a
     guest's own scrolling until the page shook. A card out of sight changes in one step instead, and the page holds
     the view itself (motion.js holdAbove). */
  overflow-anchor:none;
}
.phone::before{
  content:"";position:absolute;inset:0;border-radius:inherit;pointer-events:none;
  background:radial-gradient(90% 40% at 50% 0,rgba(224,160,68,.07),transparent 70%);
}
.phone-top{display:flex;align-items:center;justify-content:space-between;gap:10px 12px;flex-wrap:wrap}
.phone-tools{display:flex;align-items:center;gap:8px}
.page-foot{display:flex;justify-content:center;margin-top:22px}
.page-foot:has(> [hidden]){display:none}
.hello{font-family:var(--font-display);font-size:21px;font-weight:600;color:var(--ink)}
#guestRest{display:flex;flex-direction:column}
.joins{display:flex;flex-direction:column;gap:22px}
.sec-label{display:flex;flex-direction:column;gap:3px}

/* ---------- bartender board ---------- */
/* Every column's heading row is the same height whatever sits beside the title (the drinks' sort control is the tallest
   thing there), so side by side the three columns begin at the same line. */
.rail-head{display:flex;justify-content:space-between;align-items:center;gap:10px 20px;min-height:38px;margin-bottom:0}
#boardPane{display:flex;flex-direction:column}
.sec-h{display:flex;justify-content:space-between;align-items:baseline;gap:8px;margin-top:6px}
/* a count beside a column's title, quieter than the title itself */
.h-count{margin-left:8px;font-family:var(--font-body);font-size:14px;font-weight:600;color:var(--ink-3);font-variant-numeric:tabular-nums}

@media (max-width:480px){
  .phone{padding:12px}
}

@property --f{syntax:'<length>';inherits:false;initial-value:0px}
