﻿/* ══════════════════════════════════════════════════════════════════════════
   SHOPCORE GUEST DISPLAY
   ══════════════════════════════════════════════════════════════════════════

   Designed as a broadcast channel, because that is the only structure that
   fits the problem: several unrelated things shown to an audience that is not
   watching, arrives mid-loop, and needs one specific thing the instant it
   happens.

   ── Four rules ────────────────────────────────────────────────────────────

   1. The frame never moves. Venue, section, weather, clock. A guest who looks
      up for one second has still been told something.

   2. Nothing scrolls that a guest might need to read. A menu board that
      scrolls is one where the thing you wanted has just gone past. Content is
      fitted or paginated, never scrolled.

   3. Colour is structural. The accent is the venue's and appears on section
      headers, the live pip and the called number — nowhere else. Everything
      that is merely present is grey.

   4. Every effect is drawn. Gradients, masks and transforms; no images, no
      library. A television playing a looping MP4 background burns a decoder
      all day and the file has to be shipped, cached and replaced at rebrand.
      These cost a compositor layer and re-tint themselves from one token.

   ── Sizing ────────────────────────────────────────────────────────────────

   Everything is in vmin-based clamps rather than pixels, because this runs on
   a 15" counter screen and a 4K wall from the same file. Type that is right on
   one and wrong on the other is the single most common fault in digital
   signage, and a fixed pixel size guarantees it.
   ══════════════════════════════════════════════════════════════════════════ */

/* ── Tokens ─────────────────────────────────────────────────────────────── */

:root {
    /* Set per channel from the snapshot, so a venue's accent runs through every
       scene without any of them naming a colour. */
    --accent: #f2704f;
    --accent-ink: #ffffff;
    --accent-soft: rgba(242, 112, 79, 0.22);
    --accent-glow: rgba(242, 112, 79, 0.45);

    /* The type dial. The channel's TextScalePercent lands here and resizes the
       whole broadcast from one number in the back office. */
    --scale: 1;

    --bg: #100e0c;
    --bg-soft: #1a1714;
    --card: #1f1b17;
    --card-hi: #29241f;
    --edge: #3a342d;
    --edge-soft: #2a2520;

    /* The bands round the scene: frame and ticker. Near-black in both themes,
       because a bright band above a bright menu reads as one slab. */
    --chrome: #0b0a09;
    --chrome-ink: #fbf6ec;

    /* Two faces, bundled. --font-display is for anything shouted (headings,
       numbers, prices); --font-body for anything read. */
    --font-display: "Barlow Condensed", "Arial Narrow", "Roboto Condensed", Impact, sans-serif;
    --font-body: "Inter", "Segoe UI Variable Display", "Segoe UI", system-ui, -apple-system, Roboto, Arial, sans-serif;

    --ink: #fbf6ec;
    --ink-strong: #ffffff;
    --ink-muted: #bdb3a4;
    --ink-faint: #8f8576;

    --ready: #22c55e;
    --ready-ink: #04170a;
    --ready-soft: #0f2a19;
    --prep: #fbbf24;
    --prep-soft: #2c2410;

    --radius: 0.9vmin;   /* clamp() below, in @supports */
    --radius-lg: 1.4vmin;   /* clamp() below, in @supports */
    --gap: 1.3vmin;   /* clamp() below, in @supports */
    --pad: 2vmin;   /* clamp() below, in @supports */

    /* The three bands the scene has to live between. Declared once so the
       scene area can be sized off them rather than guessed at. */
    --frame-h: 7.6vmin;   /* clamp() below, in @supports */
    --rail-h: 6.6vmin;   /* clamp() below, in @supports */
    --ticker-h: 5vmin;   /* clamp() below, in @supports */

    /* One dissolve length, so scene changes, slide changes and the call-out all
       feel like the same instrument. */
    --fade: 620ms;
    --ease: cubic-bezier(0.22, 0.61, 0.36, 1);
    --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
}

:root[data-theme="light"] {
    --bg: #f4ecdd;
    --bg-soft: #fbf6ec;
    --card: #ffffff;
    --card-hi: #faf5ea;
    --edge: #dfd3bd;
    --edge-soft: #ebe2d0;

    --ink: #1a1510;
    --ink-strong: #000000;
    --ink-muted: #6a5f50;
    --ink-faint: #8b7f6d;

    --ready: #16a34a;
    --ready-ink: #ffffff;
    --ready-soft: #e4f6ea;
    --prep-soft: #fff3d6;
}

* { box-sizing: border-box; }

html, body {
    margin: 0;
    height: 100%;
    background: var(--bg);
    color: var(--ink);
    font-family: var(--font-body);
    font-optical-sizing: auto;

    /* A screen nobody is meant to touch. Without this, one passing sleeve leaves
       half the menu board highlighted in blue for the afternoon. */
    overflow: hidden;
    -webkit-user-select: none;
    user-select: none;
    -webkit-tap-highlight-color: transparent;
    -webkit-font-smoothing: antialiased;
}

[hidden] { display: none !important; }

/* ══ Pairing ═══════════════════════════════════════════════════════════════ */

.pairing {
    height: 100%;
    display: grid;
    place-items: center;
    padding: 24px;
    background: radial-gradient(120% 90% at 50% 0%, var(--bg-soft), var(--bg));
}

.pairing__card {
    width: 520px; max-width: 100%;
    width: min(520px, 100%);
    text-align: center;
    background: var(--card);
    border: 1px solid var(--edge);
    border-radius: 20px;
    padding: 40px 36px;
}

.pairing__mark { margin-bottom: 18px; border-radius: 16px; }
.pairing__title { margin: 0 0 10px; font-size: 30px; font-weight: 700; letter-spacing: -0.02em; }
.pairing__lead { margin: 0 0 28px; color: var(--ink-muted); font-size: 16px; line-height: 1.55; }
.pairing__lead strong { color: var(--ink); font-weight: 600; }
.pairing__form { display: grid; gap: 8px; text-align: left; }

.pairing__label {
    font-size: 12px; font-weight: 600; letter-spacing: 0.06em;
    text-transform: uppercase; color: var(--ink-faint); margin-top: 6px;
}

.pairing__code, .pairing__name {
    width: 100%;
    background: var(--bg-soft);
    border: 1px solid var(--edge);
    border-radius: 12px;
    color: var(--ink);
    font-size: 18px;
    padding: 14px 16px;
    outline: none;
    transition: border-color 0.2s ease;
}

.pairing__code:focus, .pairing__name:focus { border-color: var(--accent); }

/* Typed once, on a remote control, by somebody squinting at a laptop across the
   room. Big, spaced and unambiguous. */
.pairing__code {
    font-size: 34px; font-weight: 700; letter-spacing: 0.34em;
    text-align: center; text-transform: uppercase;
    font-family: ui-monospace, "Cascadia Mono", Consolas, monospace;
}

.pairing__go {
    margin-top: 18px; padding: 16px;
    background: var(--accent); color: var(--accent-ink);
    border: 0; border-radius: 12px;
    font-size: 17px; font-weight: 700; cursor: pointer;
    transition: filter 0.15s ease, transform 0.08s ease;
}

.pairing__go:hover { filter: brightness(1.08); }
.pairing__go:active { transform: translateY(1px); }
.pairing__go:disabled { opacity: 0.5; cursor: default; }

.pairing__error {
    margin: 12px 0 0; padding: 12px 14px;
    background: #2c1517; border: 1px solid #7f1d1d; border-radius: 10px;
    color: #ffb3ad; font-size: 14px;
}

.pairing__foot { margin: 26px 0 0; color: var(--ink-faint); font-size: 13px; }

/* ══ The stage ═════════════════════════════════════════════════════════════
   A grid, not a stack of absolutely positioned guesses. The scene gets exactly
   the room the three bands leave it, which is what makes "everything fits"
   true rather than aspirational. */

.stage {
    position: relative;
    height: 100%;
    font-size: calc(1rem * var(--scale));
    overflow: hidden;
    display: grid;
    grid-template-rows: var(--frame-h) 1fr auto auto;
}

/* ── The backdrop ───────────────────────────────────────────────────────────
   Two enormous, very soft accent clouds drifting in opposite directions at
   different speeds, so they never repeat a composition. Nobody looks at this;
   they would notice its absence, because a flat dark panel behind flat dark
   cards is exactly what a powered-down screen looks like. */

.stage::before,
.stage::after {
    content: "";
    position: absolute;
    z-index: 0;
    border-radius: 50%;
    pointer-events: none;
    background: radial-gradient(circle at center, var(--accent-soft), transparent 62%);
    filter: blur(46px);
    will-change: transform;
}

.stage::before {
    width: 92vw; height: 92vw;
    top: -36vw; left: -24vw;
    animation: aurora 52s var(--ease) infinite alternate;
}

.stage::after {
    width: 76vw; height: 76vw;
    right: -28vw; bottom: -32vw;
    opacity: 0.66;
    animation: aurora 67s var(--ease) infinite alternate-reverse;
}

/* Full-bleed scenes cover it anyway, and compositing two blurred layers under a
   playing video is where a cheap television's dissolves start to stutter. */
.stage[data-scene="Reel"]::before,
.stage[data-scene="Reel"]::after,
.stage[data-scene="Stream"]::before,
.stage[data-scene="Stream"]::after { animation-play-state: paused; opacity: 0; }

/* ══ The frame ═════════════════════════════════════════════════════════════
   Row one. Never animates out. A solid band, not frosted glass: backdrop blur
   over a playing video is a compositing pass per frame on a cheap television,
   and a solid band is also simply easier to read. */

.frame {
    position: relative;
    z-index: 3;
    display: flex;
    align-items: center;
    gap: clamp(12px, 2vmin, 40px);
    padding: 0 var(--pad);
    background: var(--chrome);
    color: var(--chrome-ink);
    border-bottom: clamp(2px, 0.3vmin, 5px) solid var(--accent);
}

.frame__id { display: flex; align-items: center; gap: clamp(10px, 1.4vmin, 26px); min-width: 0; }

/* The venue's own mark. Never stretched: `contain` inside a fixed height lets a
   wide wordmark and a square badge both arrive intact. */
.frame__logo {
    height: clamp(26px, 4.2vmin, 68px);
    width: auto;
    max-width: clamp(100px, 16vmin, 260px);
    object-fit: contain;
}

.frame__names { display: flex; flex-direction: column; min-width: 0; line-height: 1.05; }

.frame__venue {
    font-family: var(--font-display);
    font-size: clamp(16px, 2.7vmin, 46px);
    font-weight: 800;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}

.frame__branch {
    font-size: clamp(9px, 1.15vmin, 19px);
    font-weight: 500;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    opacity: 0.62;
    white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}

/* The segment label: a kicker, the way a printed board names a panel
   ("SIGNATURE", "FEATURED", "FRESH"). Tells somebody arriving mid-loop what
   they are looking at before they have read any of it. */
.frame__section {
    margin-left: auto;
    display: flex; align-items: center; gap: 0.65em;
    font-family: var(--font-display);
    font-size: clamp(14px, 2.1vmin, 36px);
    font-weight: 700;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    white-space: nowrap;
}

.frame__dot {
    width: 0.55em; height: 0.55em; border-radius: 50%;
    background: var(--accent);
    box-shadow: 0 0 0 0.22em var(--accent-soft);
    animation: pip 2.4s ease-in-out infinite;
}

.frame__wx {
    display: flex; align-items: baseline; gap: 0.4em;
    padding-left: clamp(12px, 2vmin, 40px);
    border-left: 1px solid rgba(255, 255, 255, 0.18);
    font-family: var(--font-display);
    font-size: clamp(16px, 2.4vmin, 40px);
    font-weight: 700;
    white-space: nowrap;
}

.frame__wx-glyph { font-size: 1.1em; }
.frame__wx-temp { font-variant-numeric: tabular-nums; }

.frame__clock {
    padding-left: clamp(12px, 2vmin, 40px);
    border-left: 1px solid rgba(255, 255, 255, 0.18);
    font-family: var(--font-display);
    font-size: clamp(20px, 3.2vmin, 54px);
    font-weight: 700;
    font-variant-numeric: tabular-nums;
    letter-spacing: 0.04em;
    white-space: nowrap;
}

/* ══ Scenes ════════════════════════════════════════════════════════════════
   Row two. The scene gets exactly what the bands leave it. */

.scenes { position: relative; z-index: 1; min-height: 0; }

.scene {
    position: absolute;
    top: 0; right: 0; bottom: 0; left: 0; inset: 0;
    padding: var(--pad);
    opacity: 0;
    visibility: hidden;
    transform: none;
    transition: opacity var(--fade) var(--ease),
                transform var(--fade) var(--ease),
                visibility 0s linear var(--fade);
    /* Opacity only. A layer promoted for transform is rasterised once and then
       resampled, which is what softened every photo and every line of text. */
    will-change: opacity;
    display: flex;
    flex-direction: column;
    min-height: 0;
}

.scene.is-live {
    opacity: 1;
    visibility: visible;
    transform: none;
    transition: opacity var(--fade) var(--ease),
                transform var(--fade) var(--ease),
                visibility 0s;
}

/* The children of a live scene arrive just after it does, so a scene assembles
   rather than appearing whole. One pass, no loop. */
.scene.is-live [data-enter] {
    animation: rise 600ms var(--ease-out) both;
    animation-delay: calc(var(--i, 0) * 55ms + 110ms);
}

.scene__title {
    margin: 0 0 clamp(8px, 1.2vmin, 24px);
    font-size: clamp(17px, 2.6vmin, 48px);
    font-weight: 800;
    letter-spacing: -0.01em;
    flex: none;
}

.scene__title::after {
    content: "";
    display: block;
    width: clamp(40px, 5.5vmin, 120px);
    height: clamp(3px, 0.35vmin, 6px);
    margin-top: clamp(5px, 0.6vmin, 12px);
    border-radius: 99px;
    background: linear-gradient(90deg, var(--accent), var(--accent-glow), var(--accent));
    background-size: 260% 100%;
}

.scene.is-live .scene__title::after { animation: sweep 2.6s var(--ease) both 280ms; }

/* A code in the corner of any scene — a menu, an offer, the wifi. White card,
   because a QR on a photograph is a QR nothing scans. */
.scene__qr {
    position: absolute;
    right: var(--pad); bottom: var(--pad);
    margin: 0;
    padding: clamp(5px, 0.6vmin, 12px);
    background: #fff;
    border-radius: clamp(6px, 0.7vmin, 14px);
    animation: rise 700ms var(--ease-out) both 400ms;
    text-align: center;
}

.scene__qr-img { display: block; width: clamp(70px, 9vmin, 190px); height: auto; }

.scene__qr-cap {
    margin-top: 4px;
    color: #101b26;
    font-size: clamp(8px, 0.85vmin, 14px);
    font-weight: 700;
}

/* ── Photographs ─────────────────────────────────────────────────────────────
   One component for every picture on the screen.

   A photo is shown whole whenever its shape is close to the space it has been
   given, and otherwise shown whole anyway, on a soft copy of itself that fills
   the rest. Cropping a landscape dish to fill a portrait panel (or the reverse)
   is what cut plates in half; bars are what made a screen look faulty.

   The soft copy is a 32-pixel canvas stretched up, which costs nothing, rather
   than a blur filter, which costs a compositing pass on every frame. */

.photo { position: relative; width: 100%; height: 100%; overflow: hidden; background: #000; }

.photo__ambient { position: absolute; top: 0; right: 0; bottom: 0; left: 0; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0.62; }

.photo__img {
    position: relative;
    display: block;
    width: 100%; height: 100%;
    object-fit: cover;
    image-rendering: auto;
}

.photo[data-fit="contain"] .photo__img { object-fit: contain; }

/* Where a picture must fill its frame whatever the ratio (a round plate, a
   thumbnail), the caller asks for it and the ambient copy is not drawn. */
.photo[data-fit="cover"] .photo__ambient { display: none; }

/* ── The reel ───────────────────────────────────────────────────────────── */

.scene--reel { padding: 0; }

.reel__layer {
    position: absolute; top: 0; right: 0; bottom: 0; left: 0; inset: 0;
    opacity: 0;
    transition: opacity var(--fade) var(--ease);
}
.reel__layer.is-live { opacity: 1; }

.reel__layer video {
    width: 100%; height: 100%;
    object-fit: contain;
    display: block;
    background: #000;
}

/* No push-in on stills and no vignette over them. Both resampled the picture
   every frame and darkened it, and a photograph a venue paid for should reach
   the wall as it left the camera. Movement comes from the cross-fade. */

.reel__caption {
    position: absolute; left: 0; right: 0; bottom: 0;
    z-index: 2;
    padding: clamp(14px, 2.6vmin, 52px);
    font-size: clamp(16px, 2.7vmin, 50px);
    font-weight: 700; line-height: 1.15; color: #fff;
    text-shadow: 0 2px 28px rgba(0, 0, 0, 0.72);
    background: linear-gradient(transparent, rgba(0, 0, 0, 0.8));
    animation: rise 700ms var(--ease-out) both 240ms;
}

/* ══ The menu board ════════════════════════════════════════════════════════

   One poster per category, the way a fast-casual counter hangs them: a colour
   per poster, a small kicker over a very large condensed heading, a round
   photograph, then the rows - name left, price right, the description quieter
   beneath.

   It never scrolls. Script measures the content against the space and shrinks
   the photograph, then the type, then splits into pages that cross-fade.

   Type inside a poster is in em, off one base on .menu, so a single --fit
   number (set by script) scales the whole board together. */

.menu {
    --base: 1.62vmin;   /* clamp() below, in @supports */
    position: relative;
    flex: 1;
    min-height: 0;
    display: grid;
    grid-template-columns: repeat(var(--cols, 3), minmax(0, 1fr));
    grid-template-rows: repeat(var(--rows, 1), minmax(0, 1fr));
    gap: var(--gap);
    font-size: calc(var(--base) * var(--fit, 1));

    /* One width for a price column and its size heading, so they line up
       whatever their own font sizes are. */
    --col-w: calc(var(--base) * var(--fit, 1) * 3.7);
}

/* One page of the board. All pages are built; one is shown. */
.menu__page {
    position: absolute;
    top: 0; right: 0; bottom: 0; left: 0; inset: 0;
    display: grid;
    grid-template-columns: repeat(var(--cols, 3), minmax(0, 1fr));
    grid-template-rows: repeat(var(--rows, 1), minmax(0, 1fr));
    gap: var(--gap);
    opacity: 0;
    visibility: hidden;
    transform: translateY(2.4%);
    transition: opacity 520ms var(--ease), transform 520ms var(--ease), visibility 0s linear 520ms;
}

/* The live page rests with no transform at all, so nothing on it is resampled. */
.menu__page.is-live {
    opacity: 1;
    visibility: visible;
    transform: none;
    transition: opacity 520ms var(--ease), transform 520ms var(--ease), visibility 0s;
}

/* Each row follows its poster in, top to bottom, so a page assembles. */
.scene.is-live .menu__page.is-live [data-row] {
    animation: menuRow 480ms var(--ease-out) both;
    animation-delay: calc(var(--i, 0) * 70ms + var(--r, 0) * 32ms + 260ms);
}

@keyframes menuRow {
    from { opacity: 0; transform: translateX(-1.2em); }
    to   { opacity: 1; transform: none; }
}

/* ── A poster ─────────────────────────────────────────────────────────────── */

.menu__page.is-live .menu__cat,
.menu__page.is-live .menu__promo { animation: pop 560ms var(--ease-out) both; animation-delay: calc(var(--i, 0) * 70ms); }

.menu__cat {
    --pbg: #f3ead6;
    --pink: #17120d;
    --pmuted: rgba(23, 18, 13, 0.64);
    --prule: rgba(23, 18, 13, 0.16);
    --pacc: var(--accent);
    --pacc-ink: var(--accent-ink);

    position: relative;
    min-height: 0;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 0.9em;
    padding: 1.6em 1.7em 1.4em;
    border-radius: var(--radius-lg);
    background: var(--pbg);
    color: var(--pink);
    overflow: hidden;
    container-type: size;
    box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.08), 0 20px 50px rgba(0, 0, 0, 0.35);
}

/* Four tones, cycled. Cream and white are printed-board paper, charcoal is the
   dark poster, and the fourth is the venue's own accent. */
.menu__cat[data-tone="1"] {
    --pbg: #14110e;
    --pink: #fbf6ec;
    --pmuted: rgba(251, 246, 236, 0.66);
    --prule: rgba(251, 246, 236, 0.18);
}

.menu__cat[data-tone="2"] {
    --pbg: var(--accent);
    --pink: var(--accent-ink);
    --pmuted: color-mix(in srgb, var(--accent-ink) 74%, transparent);
    --prule: color-mix(in srgb, var(--accent-ink) 28%, transparent);
    --pacc: var(--accent-ink);
    --pacc-ink: var(--accent);
}

.menu__cat[data-tone="3"] {
    --pbg: #ffffff;
    --pink: #17120d;
    --pmuted: rgba(23, 18, 13, 0.64);
    --prule: rgba(23, 18, 13, 0.16);
}

.menu__head { flex: none; display: flex; flex-direction: column; gap: 0.15em; min-width: 0; }

.menu__kicker {
    font-family: var(--font-display);
    font-size: 1.45em;
    font-weight: 700;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--pmuted);
    line-height: 1;
}

/* The heading is sized from the poster's own width, so a short word is huge and
   a long one still fits. --chars is the longest word, set by script. */
.menu__catname {
    margin: 0;
    font-family: var(--font-display);
    font-size: clamp(28px, 7.4vmin, 150px);
    font-weight: 800;
    line-height: 0.88;
    letter-spacing: 0.005em;
    text-transform: uppercase;
    overflow-wrap: anywhere;
}

@supports (width: 1cqw) {
    .menu__catname { font-size: min(calc(176cqw / var(--chars, 6)), 25cqw, 11vmin); }
}

/* ── The plate ────────────────────────────────────────────────────────────── */

.menu__plate {
    position: relative;
    flex: none;
    width: 76%;
    aspect-ratio: 1;
    margin: 0.2em auto 0.1em;
    border-radius: 50%;
}

@supports (width: 1cqw) {
    /* As large as the poster's width allows, and never so tall that the rows
       have nothing left. --plate is the shrink script applies when they would. */
    .menu__plate { width: calc(min(86cqw, 40cqh) * var(--plate, 1)); }
}

.menu__thumb { opacity: 0; transition: opacity 500ms var(--ease); }
.menu__thumb.is-loaded { opacity: 1; }

.menu__plate-img,
.menu__thumb {
    display: block;
    object-fit: cover;
    object-position: center;
    border-radius: 50%;
    image-rendering: auto;
}

.menu__plate-img {
    position: absolute;
    top: 0; right: 0; bottom: 0; left: 0; inset: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 900ms var(--ease);
    box-shadow: 0 0.9em 2em rgba(0, 0, 0, 0.28), 0 0 0 0.28em rgba(255, 255, 255, 0.9);
}

.menu__plate-img.is-live.is-loaded { opacity: 1; }

/* ── Rows ─────────────────────────────────────────────────────────────────── */

.menu__rows {
    flex: 1 1 0;
    min-height: 0;
    display: flex;
    flex-direction: column;
    justify-content: space-evenly;
    gap: 0.5em;
    overflow: hidden;
    border-top: 1px solid var(--prule);
    padding-top: 0.8em;
}

.menu__entry {
    display: flex;
    align-items: center;
    gap: 0.8em;
    min-width: 0;
}

.menu__text { flex: 1; min-width: 0; }

.menu__row {
    display: flex;
    align-items: baseline;
    gap: 0.2em 0.6em;
}

.menu__item {
    flex: 1 1 auto;
    font-size: 1.5em;
    font-weight: 800;
    line-height: 1.12;
    letter-spacing: -0.012em;
    min-width: 0;
    overflow-wrap: break-word;
    hyphens: none;
}

.menu__price {
    flex: none;
    margin-left: auto;
    font-family: var(--font-display);
    font-size: 1.85em;
    font-weight: 700;
    line-height: 1;
    letter-spacing: 0.01em;
    font-variant-numeric: tabular-nums;
    white-space: nowrap;
}

.menu__price small {
    margin-right: 0.28em;
    font-size: 0.5em;
    font-weight: 600;
    letter-spacing: 0.1em;
    color: var(--pmuted);
}

.menu__price--none { color: var(--pmuted); }

.menu__desc {
    margin-top: 0.2em;
    font-size: 1.04em;
    font-weight: 500;
    line-height: 1.3;
    color: var(--pmuted);
}

.menu__thumb {
    flex: none;
    width: 3.6em;
    height: 3.6em;
    box-shadow: 0 0 0 0.14em var(--prule);
}

/* A signature item: a badge, not a box. One per section, so it still means
   something. */
.menu__tag {
    padding: 0.18em 0.6em;
    border-radius: 99px;
    background: var(--pacc);
    color: var(--pacc-ink);
    font-size: 0.74em;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    white-space: nowrap;
}

.menu__tag { flex: none; }
[data-layout="compact"] .menu__tag-text { display: none; }
[data-layout="compact"] .menu__thumb { display: none; }

/* Sold out stays on the board, struck through and said plainly. A guest who
   cannot see it will ask for it; one who can see it will order something else. */
.menu__tag--out { background: transparent; color: var(--pink); box-shadow: inset 0 0 0 0.12em currentColor; }

.menu__entry.is-out .menu__item,
.menu__entry.is-out .menu__price { opacity: 0.45; text-decoration: line-through; }
.menu__entry.is-out .menu__desc,
.menu__entry.is-out .menu__thumb { opacity: 0.4; }

/* ── Price matrix ─────────────────────────────────────────────────────────── */

.menu__sizes {
    flex: none;
    display: flex;
    justify-content: flex-end;
    gap: 0.5em;
    margin-bottom: -0.4em;
}

.menu__size {
    width: var(--col-w);
    text-align: right;
    font-family: var(--font-display);
    font-size: 1.1em;
    font-weight: 700;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--pmuted);
}

.menu__cat--matrix .menu__row { flex-wrap: nowrap; }
.menu__prices { margin-left: auto; display: flex; gap: 0.5em; }
.menu__prices .menu__price { margin-left: 0; width: var(--col-w); text-align: right; }
.menu__prices .menu__price small { display: none; }

/* A tall screen has the width of a phone and the height of a door: scale the
   board off the narrow side but give it more of it. */
.stage[data-orientation="Portrait"] .menu { --base: clamp(13px, 2.3vmin, 44px); }
.stage[data-orientation="Portrait"] .menu__plate { width: calc(min(38cqw, 60cqh) * var(--plate, 1)); }

/* ── Compact: two rows, or a tall screen ──────────────────────────────────────
   The poster turns to a header with the photograph beside it, and the rows
   run underneath. */

.menu[data-layout="compact"] .menu__cat,
.menu__page[data-layout="compact"] .menu__cat {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    grid-template-rows: auto auto minmax(0, 1fr);
    grid-template-areas: "head plate" "sizes sizes" "rows rows";
    column-gap: 1em;
    row-gap: 0.5em;
    padding: 1.2em 1.4em 1.1em;
}

[data-layout="compact"] .menu__head { grid-area: head; align-self: center; }
[data-layout="compact"] .menu__rows { grid-area: rows; }
[data-layout="compact"] .menu__sizes { grid-area: sizes; margin-bottom: 0; }

[data-layout="compact"] .menu__plate {
    grid-area: plate;
    width: auto;
    height: 100%;
    margin: 0;
}

@supports (width: 1cqw) {
    [data-layout="compact"] .menu__plate { width: calc(min(34cqw, 34cqh) * var(--plate, 1)); height: auto; }
    [data-layout="compact"] .menu__catname { font-size: min(calc(120cqw / var(--chars, 6)), 17cqw, 8vmin); }
}

[data-layout="compact"] .menu__item { font-size: 1.32em; }
[data-layout="compact"] .menu__price { font-size: 1.6em; }

/* Which page of the board is showing. Only drawn when there is more than one. */
.menu__pager {
    flex: none;
    display: flex;
    justify-content: center;
    gap: 0.6em;
    padding-top: clamp(8px, 1vmin, 18px);
}

.menu__pip {
    position: relative;
    overflow: hidden;
    width: clamp(10px, 1.3vmin, 24px);
    height: clamp(6px, 0.8vmin, 14px);
    border-radius: 99px;
    background: var(--edge);
    transition: width 400ms var(--ease), background 300ms ease;
}

.menu__pip.is-live { width: clamp(34px, 5vmin, 90px); }

.menu__pip.is-live::after {
    content: "";
    position: absolute;
    top: 0; right: 0; bottom: 0; left: 0;
    background: var(--accent);
    transform-origin: left center;
    animation: pageFill var(--page-ms, 9000ms) linear both;
}

@keyframes pageFill {
    from { transform: scaleX(0); }
    to   { transform: scaleX(1); }
}

/* ── Deal posters ─────────────────────────────────────────────────────────────
   The photograph in full, then a solid band with the words and the price.
   Nothing is drawn over the picture. */

.menu__promo {
    position: relative;
    min-height: 0;
    min-width: 0;
    display: flex;
    flex-direction: column;
    border-radius: var(--radius-lg);
    overflow: hidden;
    background: var(--accent);
    color: var(--accent-ink);
    box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.08), 0 20px 50px rgba(0, 0, 0, 0.35);
}

.menu__promo-photo { position: relative; flex: 1 1 0; min-height: 0; background: #000; }

.menu__promo-img {
    position: absolute;
    top: 0; right: 0; bottom: 0; left: 0; inset: 0;
    width: 100%; height: 100%;
    object-fit: cover;
    display: block;
    image-rendering: auto;
    opacity: 0;
    transition: opacity 500ms var(--ease);
}
.menu__promo-img.is-loaded { opacity: 1; }

.menu__promo-body {
    flex: none;
    position: relative;
    display: flex;
    flex-direction: column;
    gap: 0.25em;
    padding: 1.1em 1.4em 1.2em;
}

.menu__promo-flag {
    align-self: flex-start;
    padding: 0.2em 0.8em;
    border-radius: 99px;
    background: var(--accent-ink);
    color: var(--accent);
    font-size: 0.78em;
    font-weight: 800;
    letter-spacing: 0.14em;
    text-transform: uppercase;
}

.menu__promo-name {
    font-family: var(--font-display);
    font-size: 2.5em;
    font-weight: 800;
    line-height: 0.95;
    text-transform: uppercase;
}

.menu__promo-desc { font-size: 1em; line-height: 1.3; opacity: 0.9; }

.menu__promo-price {
    margin-top: 0.15em;
    font-family: var(--font-display);
    font-size: 3.6em;
    font-weight: 800;
    line-height: 0.9;
    font-variant-numeric: tabular-nums;
}

.menu__promo-price small {
    margin-right: 0.2em;
    font-size: 0.38em;
    font-weight: 700;
    letter-spacing: 0.1em;
    opacity: 0.85;
}

/* No photograph: the poster is all band, and the price takes the room. */
.menu__promo:not(.has-photo) .menu__promo-body { flex: 1; justify-content: center; }
.menu__promo:not(.has-photo) .menu__promo-price { font-size: 5.6em; }

[data-layout="compact"] .menu__promo { flex-direction: row; }
[data-layout="compact"] .menu__promo-photo { flex: 1 1 45%; }
[data-layout="compact"] .menu__promo-body { flex: 1 1 55%; justify-content: center; }
[data-layout="compact"] .menu__promo-name { font-size: 2em; }
[data-layout="compact"] .menu__promo-price { font-size: 2.8em; }

/* ══ The order board ═══════════════════════════════════════════════════════
   Two panels side by side, the way a queue screen is: what is ready, large and
   green, and what is being made, smaller and amber. Somebody waiting reads the
   first and glances at the second. Stacked when the screen is tall. */

.board {
    flex: 1;
    min-height: 0;
    display: grid;
    grid-template-columns: minmax(0, 1.7fr) minmax(0, 1fr);
    gap: var(--gap);
}

.stage[data-orientation="Portrait"] .board {
    grid-template-columns: minmax(0, 1fr);
    grid-template-rows: minmax(0, 1.6fr) minmax(0, 1fr);
}

/* A board with only one panel switched on gives it the whole screen. */
.board:has(> [hidden]) { grid-template-columns: minmax(0, 1fr); grid-template-rows: minmax(0, 1fr); }

.board__group {
    min-height: 0;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: clamp(10px, 1.6vmin, 30px);
    padding: clamp(14px, 2.2vmin, 44px);
    border-radius: var(--radius-lg);
    overflow: hidden;
}

#ready-group { background: var(--ready); color: var(--ready-ink); }
#preparing-group { background: #14110e; color: #fbf6ec; box-shadow: inset 0 0 0 1px var(--edge); }

.board__heading {
    margin: 0;
    flex: none;
    display: flex; align-items: center; gap: 0.5em;
    font-family: var(--font-display);
    font-size: clamp(22px, 4.4vmin, 84px);
    font-weight: 800;
    line-height: 1;
    letter-spacing: 0.1em;
    text-transform: uppercase;
}

.board__heading--prep { color: var(--prep); }

/* How many, as a badge. A queue with six waiting reads differently to one
   with one. */
.board__count {
    margin-left: auto;
    min-width: 1.5em;
    padding: 0.05em 0.45em;
    border-radius: 99px;
    background: currentColor;
    text-align: center;
    font-size: 0.78em;
    letter-spacing: 0;
    font-variant-numeric: tabular-nums;
}

.board__count:empty { display: none; }

/* Which page of a long list is showing. Only there when there is more than one. */
.board__page {
    margin-left: auto;
    font-size: 0.5em;
    letter-spacing: 0.08em;
    font-variant-numeric: tabular-nums;
    opacity: 0.75;
}
.board__page:empty { display: none; }
.board__page + .board__count { margin-left: 0.6em; }
#ready-group .board__count { background: var(--ready-ink); color: var(--ready); }
.board__heading--prep .board__count { background: var(--prep); color: #1a1100; }

/* The one deliberate loop on the board: a live indicator that does not move is
   not read as live. */
.board__pip {
    width: 0.55em; height: 0.55em; border-radius: 50%;
    background: currentColor;
    animation: pip 2s ease-in-out infinite;
}

.board__list {
    margin: 0; padding: 0; list-style: none;
    flex: 1;
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(clamp(120px, 20vmin, 400px), 1fr));
    grid-auto-rows: min-content;
    gap: clamp(8px, 1.2vmin, 24px);
    align-content: start;
    min-height: 0;
    overflow: hidden;
}

.board__item {
    display: flex; flex-direction: column; align-items: center;
    padding: clamp(8px, 1.3vmin, 26px) clamp(6px, 1vmin, 20px);
    border-radius: var(--radius);
    background: #ffffff;
    color: #0a1a10;
    text-align: center;
    box-shadow: 0 8px 22px rgba(0, 0, 0, 0.22);
}

.board__item[hidden] { display: none; }

/* The part of a long number that is not the end of it: small, above the part
   that is. Both are fitted to the card by script, so neither can run off it. */
.board__prefix {
    display: block;
    max-width: 100%;
    margin-bottom: 0.1em;
    font-family: var(--font-display);
    font-size: clamp(11px, 2vmin, 38px);
    font-weight: 700;
    letter-spacing: 0.08em;
    line-height: 1;
    white-space: nowrap;
    overflow: hidden;
    opacity: 0.6;
}

.board__number {
    display: block;
    max-width: 100%;
    white-space: nowrap;
    overflow: hidden;
    font-family: var(--font-display);
    font-size: clamp(34px, 8.6vmin, 170px);
    font-weight: 800;
    line-height: 0.92;
    letter-spacing: 0.01em;
    font-variant-numeric: tabular-nums;
}

.board__name {
    display: block;
    margin-top: 0.15em;
    max-width: 100%;
    font-family: var(--font-display);
    font-size: clamp(14px, 2.5vmin, 46px);
    font-weight: 700;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}

.board__meta {
    display: block;
    margin-top: 0.2em;
    font-size: clamp(10px, 1.4vmin, 24px);
    font-weight: 600;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    opacity: 0.62;
    white-space: nowrap;
}

/* A page of the list arrives together, in order. */
.board__item { animation: rise 520ms var(--ease-out) both; animation-delay: calc(var(--i, 0) * 40ms); }

/* The freshest number carries the glow and a ring. One item, not the list:
   highlighting everything highlights nothing. */
.board__item.is-new {
    box-shadow: 0 0 0 clamp(3px, 0.5vmin, 9px) var(--ready-ink), 0 0 60px rgba(255, 255, 255, 0.7);
    animation: pop 620ms var(--ease-out) both;
}

.board__list--quiet { grid-template-columns: repeat(auto-fill, minmax(clamp(90px, 13vmin, 260px), 1fr)); }

.board__list--quiet .board__item {
    background: rgba(251, 191, 36, 0.12);
    color: var(--prep);
    box-shadow: inset 0 0 0 1px rgba(251, 191, 36, 0.5);
}

.board__list--quiet .board__number { font-size: clamp(24px, 5vmin, 100px); }
.board__list--quiet .board__meta {
    font-size: clamp(9px, 1.15vmin, 20px);
    letter-spacing: 0.03em;
    white-space: normal;
    opacity: 0.75;
}

.board__empty {
    margin: 0;
    flex: 1;
    display: grid; place-items: center;
    font-family: var(--font-display);
    font-size: clamp(20px, 4vmin, 80px);
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    opacity: 0.55;
    text-align: center;
}

/* ══ Offers ════════════════════════════════════════════════════════════════ */

.offers {
    flex: 1;
    min-height: 0;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(clamp(140px, 20vmin, 400px), 1fr));
    gap: var(--gap);
    align-content: start;
    overflow: hidden;
}

.offer {
    position: relative;
    background: var(--card);
    border: 1px solid var(--edge);
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: 0 18px 44px rgba(0, 0, 0, 0.28);
    display: flex;
    flex-direction: column;
}

:root[data-theme="light"] .offer { box-shadow: 0 14px 34px rgba(16, 27, 38, 0.12); }

.offer__img { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; display: block; }
.offer__body { padding: clamp(8px, 1vmin, 22px); display: flex; flex-direction: column; gap: 0.3em; }

.offer__name {
    font-size: clamp(12px, 1.6vmin, 28px);
    font-weight: 800;
    line-height: 1.2;
}

.offer__desc {
    font-size: clamp(9px, 1.1vmin, 19px);
    color: var(--ink-muted);
    line-height: 1.35;
}

.offer__price {
    margin-top: auto;
    font-size: clamp(14px, 2vmin, 36px);
    font-weight: 900;
    color: var(--accent);
    font-variant-numeric: tabular-nums;
}

/* A corner flash, drawn rather than an image, so it costs nothing and scales. */
.offer__flag {
    position: absolute;
    top: clamp(6px, 0.8vmin, 14px); left: clamp(6px, 0.8vmin, 14px);
    z-index: 2;
    padding: 0.2em 0.7em;
    border-radius: 99px;
    background: var(--accent);
    color: var(--accent-ink);
    font-size: clamp(8px, 0.95vmin, 16px);
    font-weight: 800;
    letter-spacing: 0.06em;
    text-transform: uppercase;
}

/* ══ A stream ══════════════════════════════════════════════════════════════ */

.scene--stream { padding: 0; }
.stream { position: absolute; top: 0; right: 0; bottom: 0; left: 0; inset: 0; background: #000; }
.stream iframe, .stream video { width: 100%; height: 100%; border: 0; display: block; }

/* ══ Weather ═══════════════════════════════════════════════════════════════
   The detailed version. The frame carries the one-glance version, which is why
   this scene is allowed to be a panel rather than a headline. */

.wx { flex: 1; min-height: 0; display: flex; flex-direction: column; gap: var(--gap); }

.wx__now {
    display: grid;
    grid-template-columns: auto 1fr auto;
    align-items: center;
    gap: clamp(10px, 2vmin, 40px);
    background: var(--card);
    border: 1px solid var(--edge);
    border-radius: var(--radius-lg);
    padding: clamp(10px, 1.6vmin, 34px);
}

.wx__glyph { font-size: clamp(44px, 9vmin, 180px); line-height: 1; }

.wx__temp {
    font-size: clamp(34px, 7vmin, 140px);
    font-weight: 900;
    line-height: 0.95;
    letter-spacing: -0.03em;
    font-variant-numeric: tabular-nums;
}

.wx__desc { font-size: clamp(14px, 2vmin, 40px); font-weight: 700; margin-top: 0.1em; }
.wx__place { font-size: clamp(10px, 1.2vmin, 22px); color: var(--ink-muted); margin-top: 0.2em; }

.wx__stats {
    display: grid;
    grid-template-columns: repeat(2, auto);
    gap: clamp(6px, 1vmin, 20px) clamp(12px, 2vmin, 44px);
}

.wx__stat { display: flex; flex-direction: column; align-items: flex-end; }
.wx__stat span { font-size: clamp(14px, 1.9vmin, 36px); font-weight: 800; font-variant-numeric: tabular-nums; }

.wx__stat small {
    font-size: clamp(8px, 0.9vmin, 15px);
    color: var(--ink-faint);
    letter-spacing: 0.06em;
    text-transform: uppercase;
}

/* The next few hours — the horizon that decides whether anybody sits outside. */
.wx__hours {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: clamp(5px, 0.8vmin, 14px);
}

.wx__hour {
    background: var(--card);
    border: 1px solid var(--edge);
    border-radius: var(--radius);
    padding: clamp(5px, 0.8vmin, 16px) 4px;
    text-align: center;
}

.wx__hour b { display: block; font-size: clamp(11px, 1.5vmin, 26px); font-weight: 800; }
.wx__hour span { display: block; font-size: clamp(13px, 1.8vmin, 32px); }
.wx__hour small { display: block; font-size: clamp(8px, 0.9vmin, 15px); color: var(--ink-faint); }

.wx__days { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(5px, 0.8vmin, 14px); }

.wx__day {
    background: var(--card);
    border: 1px solid var(--edge);
    border-radius: var(--radius);
    padding: clamp(6px, 1vmin, 20px);
    display: flex;
    align-items: center;
    gap: 0.6em;
}

.wx__day-glyph { font-size: clamp(18px, 2.6vmin, 46px); }
.wx__day-label { font-size: clamp(10px, 1.25vmin, 22px); font-weight: 800; text-transform: uppercase; }
.wx__day-temps { margin-left: auto; font-size: clamp(11px, 1.4vmin, 25px); font-variant-numeric: tabular-nums; }
.wx__day-temps b { font-weight: 800; }
.wx__day-temps span { color: var(--ink-faint); }

.wx__stale { margin: 0; color: var(--ink-faint); font-size: clamp(9px, 1vmin, 17px); }

/* ══ Trending ══════════════════════════════════════════════════════════════ */

.news {
    flex: 1; min-height: 0;
    margin: 0; padding: 0; list-style: none;
    display: flex; flex-direction: column;
    gap: clamp(5px, 0.8vmin, 16px);
    overflow: hidden;
}

.news__item {
    background: var(--card);
    border: 1px solid var(--edge);
    border-left: clamp(3px, 0.4vmin, 7px) solid var(--accent);
    border-radius: var(--radius);
    padding: clamp(7px, 1vmin, 20px) clamp(9px, 1.3vmin, 26px);
}

.news__title {
    font-size: clamp(11px, 1.5vmin, 27px);
    font-weight: 700;
    line-height: 1.3;
}

.news__source {
    margin-top: 0.25em;
    display: flex;
    align-items: center;
    gap: 0.6em;
    font-size: clamp(8px, 0.95vmin, 16px);
    color: var(--ink-faint);
    letter-spacing: 0.05em;
    text-transform: uppercase;
}

/* Why this headline is near the top. Without it the ordering reads as
   arbitrary, which is worse than no ordering at all. */
.news__flag {
    padding: 0.15em 0.6em;
    border-radius: 99px;
    background: var(--accent-soft);
    border: 1px solid var(--accent);
    color: var(--ink);
    font-weight: 800;
    letter-spacing: 0.08em;
}

.news__flag.is-breaking {
    background: #d3352f;
    border-color: #d3352f;
    color: #fff;
    animation: pip 2.2s ease-in-out infinite;
}

/* ══ Welcome ═══════════════════════════════════════════════════════════════ */

.welcome {
    flex: 1;
    display: flex; flex-direction: column;
    align-items: center; justify-content: center;
    gap: clamp(8px, 1.4vmin, 28px);
    text-align: center;
}

/* The venue's brand on the venue's wall, so it gets real furniture: its own
   plate, a hairline in the accent, and a soft lift. Contained, never stretched
   — and removed in script rather than left as a broken-image glyph. */
.welcome__logo {
    max-width: min(40vw, 460px);
    max-height: 28vh;
    object-fit: contain;
    padding: clamp(10px, 1.4vmin, 30px) clamp(14px, 1.9vmin, 40px);
    background: var(--card);
    border: 1px solid var(--edge);
    border-radius: var(--radius-lg);
    box-shadow: 0 24px 60px rgba(0, 0, 0, 0.34), 0 0 0 6px var(--accent-soft);
    animation: logoIn 1100ms var(--ease-out) both;
}

/* A light-mode logo is usually dark ink on white, and a white plate on a white
   scene disappears. The plate stays; the shadow does the separating. */
:root[data-theme="light"] .welcome__logo {
    background: #fff;
    box-shadow: 0 18px 44px rgba(16, 27, 38, 0.14), 0 0 0 6px var(--accent-soft);
}

.welcome__name {
    font-size: clamp(26px, 5vmin, 120px);
    font-weight: 900;
    letter-spacing: -0.03em;
    line-height: 1;
    animation: rise 900ms var(--ease-out) both 240ms;
}

.welcome__tag {
    font-size: clamp(11px, 1.5vmin, 26px);
    letter-spacing: 0.34em;
    text-transform: uppercase;
    color: var(--accent);
    font-weight: 700;
    animation: rise 900ms var(--ease-out) both 380ms;
}

.welcome__clock {
    font-size: clamp(20px, 3.4vmin, 70px);
    font-weight: 800;
    font-variant-numeric: tabular-nums;
    color: var(--ink-muted);
    animation: rise 900ms var(--ease-out) both 500ms;
}

/* ══ The rail ══════════════════════════════════════════════════════════════
   Row three. On screen whatever scene is running. The numbers are the biggest
   type outside a scene because they are the one thing somebody tuned in for. */

.rail {
    position: relative;
    z-index: 3;
    display: flex;
    align-items: center;
    gap: clamp(10px, 1.6vmin, 30px);
    height: var(--rail-h);
    padding: 0 var(--pad);
    background: var(--ready);
    color: var(--ready-ink);
    overflow: hidden;
}

.rail__label {
    flex: none;
    font-family: var(--font-display);
    font-size: clamp(14px, 2.2vmin, 38px);
    font-weight: 800;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    padding-right: clamp(10px, 1.6vmin, 30px);
    border-right: 2px solid rgba(0, 0, 0, 0.25);
}

.rail__chips { display: flex; flex: 1; gap: clamp(8px, 1.2vmin, 22px); align-items: center; min-width: 0; overflow: hidden; }
.rail__chip { flex: none; max-width: 100%; }
.rail__chip--more { background: transparent; color: var(--ready-ink); box-shadow: inset 0 0 0 0.12em currentColor; }

.rail__chip {
    padding: 0 clamp(10px, 1.4vmin, 26px);
    border-radius: var(--radius);
    background: var(--ready-ink);
    color: var(--ready);
    font-family: var(--font-display);
    font-size: clamp(20px, 3.4vmin, 60px);
    font-weight: 800;
    line-height: 1.25;
    letter-spacing: 0.03em;
    font-variant-numeric: tabular-nums;
    white-space: nowrap;
    animation: pop 520ms var(--ease-out) both;
    animation-delay: calc(var(--i, 0) * 80ms);
}

/* ══ The ticker ════════════════════════════════════════════════════════════
   Row four. Headlines and the venue's own message, on one line. */

.ticker {
    position: relative;
    z-index: 3;
    display: flex;
    align-items: center;
    height: var(--ticker-h);
    background: var(--chrome);
    color: var(--chrome-ink);
    overflow: hidden;
}

.ticker__flag {
    flex: none;
    align-self: stretch;
    display: grid;
    place-items: center;
    padding: 0 clamp(12px, 1.8vmin, 34px);
    background: var(--accent);
    color: var(--accent-ink);
    font-family: var(--font-display);
    font-size: clamp(13px, 1.9vmin, 32px);
    font-weight: 800;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    white-space: nowrap;
}

.ticker__window { flex: 1; overflow: hidden; margin-right: calc(var(--pad) + clamp(22px, 3.2vmin, 54px)); }

.ticker__track {
    display: inline-block;
    white-space: nowrap;
    padding-left: 100%;
    font-size: clamp(13px, 1.9vmin, 33px);
    font-weight: 600;
    letter-spacing: 0.01em;
    animation: marquee 40s linear infinite;
}

/* ══ Scene progress ════════════════════════════════════════════════════════ */

.progress {
    position: absolute;
    left: 0; right: 0; bottom: 0;
    z-index: 5;
    height: clamp(2px, 0.3vmin, 5px);
    background: rgba(255, 255, 255, 0.08);
    pointer-events: none;
}

.progress span {
    display: block;
    height: 100%;
    width: 100%;
    transform-origin: left center;
    transform: scaleX(0);
    background: var(--accent);
}

/* ══ The ShopCore mark ═════════════════════════════════════════════════════ */

.brand {
    position: absolute;
    right: var(--pad);
    bottom: calc((var(--ticker-h) - clamp(16px, 2.4vmin, 40px)) / 2);
    z-index: 4;
    width: clamp(16px, 2.4vmin, 40px);
    height: auto;
    opacity: 0.7;
    pointer-events: none;
}

/* ══ The sting ═════════════════════════════════════════════════════════════
   The venue's logo, wiping across between scenes.

   Two elements moving in opposite directions: a band of the venue's accent that
   sweeps in from the left and out to the right, and the mark itself which rides
   it. The wipe is what makes it read as a transition rather than as a logo
   fading in — the same reason a broadcaster wipes rather than dissolves into an
   ident. */

.sting {
    position: absolute;
    top: 0; right: 0; bottom: 0; left: 0; inset: 0;
    z-index: 20;
    display: grid;
    place-items: center;
    pointer-events: none;
    overflow: hidden;
}

.sting__wipe {
    position: absolute;
    top: -10%; bottom: -10%; left: -30%; right: -30%; inset: -10% -30%;
    background: linear-gradient(100deg,
        transparent 0%,
        var(--accent) 22%,
        color-mix(in srgb, var(--accent) 78%, #000) 50%,
        var(--accent) 78%,
        transparent 100%);
    transform: translateX(-100%);
    animation: stingWipe 1100ms var(--ease) both;
}

.sting__logo {
    position: relative;
    max-width: min(34vw, 380px);
    max-height: 24vh;
    object-fit: contain;
    opacity: 0;
    animation: stingMark 1100ms var(--ease) both;
    filter: drop-shadow(0 10px 30px rgba(0, 0, 0, 0.35));
}

/* The band crosses the screen once. Deliberately quicker on the way out than on
   the way in: a transition that lingers on the way out reads as a stall. */
@keyframes stingWipe {
    0%   { transform: translateX(-105%); }
    45%  { transform: translateX(0); }
    55%  { transform: translateX(0); }
    100% { transform: translateX(105%); }
}

/* The mark rides the band: visible only while the colour is actually behind it,
   so it never appears floating over the scene it is covering. */
@keyframes stingMark {
    0%   { opacity: 0; transform: scale(0.92); }
    35%  { opacity: 1; transform: scale(1); }
    58%  { opacity: 1; transform: scale(1.01); }
    75%  { opacity: 0; transform: scale(1.03); }
    100% { opacity: 0; }
}

@media (prefers-reduced-motion: reduce) {
    .sting { display: none; }
}

/* ══ The call ══════════════════════════════════════════════════════════════
   A lower third, over the running scene. Announces just as loudly as a takeover
   and lets everybody else carry on reading the menu. The number is set in the
   display face at a size readable from the door. */

.callout {
    position: fixed;
    left: 0; right: 0;
    bottom: calc(var(--rail-h) + var(--ticker-h));
    z-index: 40;
    padding: 0 var(--pad) clamp(10px, 1.6vmin, 30px);
    animation: lowerThird 520ms var(--ease-out) both;
    pointer-events: none;
}

.callout__bar {
    display: flex;
    align-items: center;
    gap: clamp(16px, 3vmin, 60px);
    padding: clamp(10px, 1.8vmin, 36px) clamp(18px, 3vmin, 60px);
    border-radius: var(--radius-lg);
    background: var(--ready);
    color: var(--ready-ink);
    box-shadow: 0 28px 80px rgba(0, 0, 0, 0.55), 0 0 0 clamp(3px, 0.45vmin, 8px) rgba(255, 255, 255, 0.9);
}

.callout__label {
    flex: none;
    display: flex; align-items: center; gap: 0.55em;
    font-family: var(--font-display);
    font-size: clamp(16px, 2.6vmin, 46px);
    font-weight: 800;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    line-height: 1.05;
    max-width: 6em;
}

.callout__pulse {
    flex: none;
    width: 0.7em; height: 0.7em; border-radius: 50%;
    background: currentColor;
    animation: pip 1.2s ease-in-out infinite;
}

.callout__id { display: flex; flex: 1; align-items: center; gap: clamp(12px, 2vmin, 40px); min-width: 0; }

.callout__number {
    font-family: var(--font-display);
    font-size: clamp(48px, 11vmin, 210px);
    white-space: nowrap;
    flex: none;
    font-weight: 800;
    line-height: 0.9;
    letter-spacing: 0.01em;
    font-variant-numeric: tabular-nums;
}

.callout__name {
    font-family: var(--font-display);
    font-size: clamp(22px, 4vmin, 76px);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    /* The whole name, on two lines if it needs them. A called name cut off with
       three dots is a guest wondering whether it was theirs. */
    line-height: 1.05;
    min-width: 0; max-width: 38%;
    white-space: normal; overflow-wrap: anywhere;
}

.callout__qrwrap {
    margin: 0 0 0 auto;
    flex: none;
    background: #fff;
    border-radius: var(--radius);
    padding: clamp(5px, 0.7vmin, 12px);
    text-align: center;
}

.callout__qr { display: block; width: clamp(60px, 9vmin, 170px); height: auto; }

/* An upright or square screen has no room for label, number, name and code in
   one row, so the label takes a row of its own and the rest wrap under it. */
@media (max-aspect-ratio: 1/1) {
    .callout__bar { flex-wrap: wrap; }
    .callout__label { flex-basis: 100%; max-width: none; }
    .callout__id { flex-basis: 60%; }
    .callout__name { max-width: 50%; }
}

.callout__qrcap {
    margin-top: 3px;
    color: #111;
    font-size: clamp(8px, 0.95vmin, 15px);
    font-weight: 700;
}

/* ══ Trouble ═══════════════════════════════════════════════════════════════ */

.trouble {
    position: fixed;
    left: 50%; transform: translateX(-50%);
    bottom: calc(var(--rail-h) + var(--ticker-h) + clamp(8px, 1.2vmin, 20px));
    z-index: 50;
    display: flex; align-items: center; gap: 0.6em;
    padding: 0.45em 1em;
    border-radius: 99px;
    background: rgba(10, 15, 20, 0.9);
    border: 1px solid var(--edge);
    color: var(--ink-muted);
    font-size: clamp(10px, 1.15vmin, 19px);
    -webkit-backdrop-filter: blur(10px);
    backdrop-filter: blur(10px);
}

.trouble__dot {
    width: 0.55em; height: 0.55em; border-radius: 50%;
    background: var(--prep);
    animation: pip 1.6s ease-in-out infinite;
}

/* ══ The way in ════════════════════════════════════════════════════════════ */

.settings-tap {
    position: fixed;
    right: 0; bottom: 0;
    z-index: 60;
    width: 56px; height: 56px;
    display: grid; place-items: center;
    border: 0; background: transparent; color: var(--ink-faint);
    opacity: 0; cursor: pointer; transition: opacity 0.3s ease;
}

.settings-tap.is-shown { opacity: 0.65; }

.panel {
    position: fixed;
    top: 0; right: 0; bottom: 0; left: 0; inset: 0;
    z-index: 70;
    display: grid;
    place-items: center;
    background: rgba(6, 10, 15, 0.82);
    -webkit-backdrop-filter: blur(10px);
    backdrop-filter: blur(10px);
    animation: calloutIn 260ms ease both;
}

.panel__card {
    width: min(420px, 92vw);
    background: var(--card);
    border: 1px solid var(--edge);
    border-radius: 20px;
    padding: 28px;
    display: grid;
    gap: 10px;
}

.panel__title { margin: 0; font-size: 22px; font-weight: 800; }
.panel__meta { margin: 0 0 8px; color: var(--ink-faint); font-size: 13px; line-height: 1.5; }

.panel__btn {
    padding: 15px 18px;
    border-radius: 12px;
    border: 1px solid var(--edge);
    background: var(--card-hi);
    color: var(--ink);
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    text-align: left;
    transition: border-color 0.15s ease, transform 0.08s ease;
}

.panel__btn:hover { border-color: var(--accent); }
.panel__btn:active { transform: translateY(1px); }
.panel__btn--danger { color: #ff9c9c; border-color: #7f1d1d; }
.panel__btn--quiet { color: var(--ink-faint); background: transparent; }

/* ══ Motion ════════════════════════════════════════════════════════════════ */

@keyframes rise {
    from { opacity: 0; transform: translateY(14px); }
    to   { opacity: 1; transform: none; }
}

@keyframes pop {
    0%   { opacity: 0; transform: scale(0.86); }
    60%  { opacity: 1; transform: scale(1.03); }
    100% { opacity: 1; transform: scale(1); }
}

/* The call arriving. Slides up from under its own edge rather than fading in,
   because a band that fades is a band somebody misses. */
@keyframes lowerThird {
    from { opacity: 0; transform: translateY(110%); }
    to   { opacity: 1; transform: none; }
}

@keyframes calloutIn {
    from { opacity: 0; }
    to   { opacity: 1; }
}

@keyframes pip {
    0%, 100% { opacity: 1; }
    50%      { opacity: 0.25; }
}

@keyframes marquee {
    from { transform: translateX(0); }
    to   { transform: translateX(-100%); }
}

/* The backdrop clouds. Long, slow, and never in the same place at the same time
   as each other. */
@keyframes aurora {
    from { transform: translate3d(0, 0, 0) scale(1); }
    to   { transform: translate3d(6vw, 8vh, 0) scale(1.18); }
}

@keyframes sweep {
    from { background-position: 120% 0; }
    to   { background-position: -60% 0; }
}

@keyframes logoIn {
    0%   { opacity: 0; transform: translateY(18px) scale(0.94); }
    70%  { opacity: 1; transform: translateY(0) scale(1.015); }
    100% { opacity: 1; transform: none; }
}


/* ══ THE TRANSITION ENGINE ═════════════════════════════════════════════════

   How one scene becomes the next.

   A broadcast changes shot in a dozen different ways, and a screen that only
   ever dissolves reads as a slideshow however good the scenes are. Each of
   these is a different piece of grammar rather than a variation: a cut is
   abrupt on purpose, a wipe says "and now something else", a push says "the
   next in a series", a zoom says "look at this".

   Implemented as data attributes on the stage rather than classes on scenes, so
   the incoming and outgoing scenes animate as a pair without either needing to
   know about the other. Every one is transform and opacity only, which is the
   difference between a smooth change on a cheap television and a stutter. */

.scene {
    /* The default. Overridden per transition below. */
    transition: opacity var(--fade) var(--ease),
                transform var(--fade) var(--ease),
                clip-path var(--fade) var(--ease),
                visibility 0s linear var(--fade);
}

/* ── Cut ─────────────────────────────────────────────────────────────────
   No transition at all. Abrupt on purpose: the right grammar for the order
   board, which is urgent, and wrong for almost everything else. */
.stage[data-transition="Cut"] .scene,
.stage[data-transition="Cut"] .scene.is-live {
    transition: visibility 0s;
    transform: none;
}

/* ── Wipes ───────────────────────────────────────────────────────────────
   The new scene sweeps across. clip-path rather than a moving mask, because a
   clip is composited and a mask is not. */
.stage[data-transition="WipeLeft"] .scene { clip-path: inset(0 0 0 100%); opacity: 1; transform: none; }
.stage[data-transition="WipeLeft"] .scene.is-live { clip-path: inset(0 0 0 0); }

.stage[data-transition="WipeRight"] .scene { clip-path: inset(0 100% 0 0); opacity: 1; transform: none; }
.stage[data-transition="WipeRight"] .scene.is-live { clip-path: inset(0 0 0 0); }

/* ── Pushes ──────────────────────────────────────────────────────────────
   The new scene arrives from an edge. Reads as "the next in a series", which
   is exactly what a menu page or a second offers wall is. */
.stage[data-transition="PushUp"] .scene { opacity: 1; transform: translateY(100%); }
.stage[data-transition="PushUp"] .scene.is-live { transform: none; }

.stage[data-transition="PushDown"] .scene { opacity: 1; transform: translateY(-100%); }
.stage[data-transition="PushDown"] .scene.is-live { transform: none; }

.stage[data-transition="SlideOver"] .scene { opacity: 1; transform: translateX(100%); }
.stage[data-transition="SlideOver"] .scene.is-live { transform: none; }

/* ── Zooms ───────────────────────────────────────────────────────────────
   "Look at this" and "we are finished with that". A hero shot earns one. */
.stage[data-transition="ZoomIn"] .scene { opacity: 0; transform: scale(0.86); }
.stage[data-transition="ZoomIn"] .scene.is-live { opacity: 1; transform: none; }

.stage[data-transition="ZoomOut"] .scene { opacity: 0; transform: scale(1.16); }
.stage[data-transition="ZoomOut"] .scene.is-live { opacity: 1; transform: none; }

/* ── Iris ────────────────────────────────────────────────────────────────
   Opens from the centre. The oldest transition there is and still the most
   theatrical, which is why it is worth having and worth using rarely. */
.stage[data-transition="Iris"] .scene { clip-path: circle(0% at 50% 50%); opacity: 1; transform: none; }
.stage[data-transition="Iris"] .scene.is-live { clip-path: circle(75% at 50% 50%); }

/* ══ POP-UPS ═══════════════════════════════════════════════════════════════

   Information that arrives over whatever is playing, and leaves.

   A broadcast interrupts itself constantly and none of it stops the programme.
   The scene underneath never pauses here either, because the guest reading the
   menu did not ask to be interrupted. */

.pops {
    position: fixed;
    right: var(--pad);
    bottom: calc(var(--rail-h) + var(--ticker-h) + clamp(10px, 1.4vmin, 26px));
    z-index: 35;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: clamp(6px, 0.9vmin, 16px);
    pointer-events: none;
    max-width: min(46vw, 640px);
}

.pop {
    display: flex;
    align-items: center;
    gap: clamp(8px, 1.1vmin, 20px);
    padding: clamp(8px, 1.1vmin, 22px) clamp(11px, 1.5vmin, 30px);
    border-radius: var(--radius-lg);
    background: var(--card);
    border: 1px solid var(--edge);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.42);
    -webkit-backdrop-filter: blur(14px);
    backdrop-filter: blur(14px);
    animation: popIn 460ms var(--ease-out) both;
}

/* Leaving is its own animation, run by script before the node is removed —
   otherwise a pop vanishes mid-sentence, which reads as a glitch. */
.pop.is-going { animation: popOut 340ms var(--ease) both; }

/* A few different ways in, picked at random, so a run of pops is not one
   repeated slide. Leaving is always popOut (above wins on specificity). */
.pop--bounce { animation: popBounce 640ms var(--ease-out) both; }
.pop--drop   { animation: popDrop 520ms var(--ease-out) both; }

.pop__mark {
    flex: none;
    display: grid; place-items: center;
    width: clamp(24px, 3vmin, 54px);
    height: clamp(24px, 3vmin, 54px);
    border-radius: var(--radius);
    background: var(--accent-soft);
    border: 1px solid var(--accent);
    font-size: clamp(12px, 1.5vmin, 26px);
    font-weight: 800;
}

.pop__body { min-width: 0; }

.pop__title {
    font-size: clamp(11px, 1.4vmin, 25px);
    font-weight: 800;
    line-height: 1.2;
}

.pop__text {
    margin-top: 0.1em;
    font-size: clamp(9px, 1.1vmin, 19px);
    color: var(--ink-muted);
    line-height: 1.3;
}

/* The one that must not be missed. Accent-filled rather than carded, and it is
   the only pop allowed to pulse. */
.pop--urgent {
    background: linear-gradient(100deg, var(--accent), color-mix(in srgb, var(--accent) 70%, #000));
    color: var(--accent-ink);
    border-color: rgba(255, 255, 255, 0.28);
}

.pop--urgent .pop__text { color: rgba(255, 255, 255, 0.88); }
.pop--urgent .pop__mark { background: rgba(0, 0, 0, 0.22); border-color: rgba(255, 255, 255, 0.3); }

@keyframes popIn {
    from { opacity: 0; transform: translateX(24px) scale(0.96); }
    to   { opacity: 1; transform: none; }
}

@keyframes popBounce {
    0%   { opacity: 0; transform: scale(0.6); }
    55%  { opacity: 1; transform: scale(1.07); }
    80%  { transform: scale(0.97); }
    100% { opacity: 1; transform: none; }
}

@keyframes popDrop {
    from { opacity: 0; transform: translateY(-36px); }
    to   { opacity: 1; transform: none; }
}

@keyframes popOut {
    from { opacity: 1; transform: none; }
    to   { opacity: 0; transform: translateX(24px) scale(0.98); }
}

/* ══ THE WIDER SCENE LIBRARY ═══════════════════════════════════════════════ */

/* ── Hero ────────────────────────────────────────────────────────────────
   One dish, edge to edge, price enormous. The single most effective screen in
   the trade: a photograph that fills a television and one number. */

.scene--hero { padding: 0; }

.hero__img {
    position: absolute; top: 0; right: 0; bottom: 0; left: 0; inset: 0;
    width: 100%; height: 100%;
    object-fit: cover;
}

.hero__body {
    position: relative;
    z-index: 1;
    margin-top: auto;
    padding: var(--pad);
    background: linear-gradient(transparent, rgba(0, 0, 0, 0.82));
    color: #fff;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 0.15em;
}

.hero__flag {
    padding: 0.2em 0.8em;
    border-radius: 99px;
    background: var(--accent);
    color: var(--accent-ink);
    font-size: clamp(9px, 1.1vmin, 19px);
    font-weight: 800;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    animation: rise 600ms var(--ease-out) both 120ms;
}

.hero__name {
    margin: 0.15em 0 0;
    font-size: clamp(26px, 5.4vmin, 116px);
    font-weight: 900;
    line-height: 1.02;
    letter-spacing: -0.03em;
    text-shadow: 0 3px 30px rgba(0, 0, 0, 0.55);
    animation: rise 700ms var(--ease-out) both 200ms;
}

.hero__desc {
    margin: 0.2em 0 0;
    max-width: 60%;
    font-size: clamp(11px, 1.5vmin, 27px);
    line-height: 1.35;
    opacity: 0.9;
    animation: rise 700ms var(--ease-out) both 300ms;
}

.hero__price {
    align-self: flex-end;
    margin-top: -0.4em;
    font-size: clamp(34px, 7.5vmin, 160px);
    font-weight: 900;
    line-height: 1;
    letter-spacing: -0.04em;
    font-variant-numeric: tabular-nums;
    color: var(--accent);
    text-shadow: 0 4px 40px rgba(0, 0, 0, 0.6);
    animation: pop 700ms var(--ease-out) both 380ms;
}

/* ── Split ───────────────────────────────────────────────────────────────
   Prices on one half, something appetising on the other. What most boards
   above a counter actually are. */

.scene--split { padding: 0; }
.split { display: grid; grid-template-columns: 1.15fr 1fr; height: 100%; }
.split__menu { padding: var(--pad); overflow: hidden; display: flex; flex-direction: column; }
.split__media { position: relative; overflow: hidden; background: var(--bg-soft); }
.split__media img, .split__media video { width: 100%; height: 100%; object-fit: cover; display: block; }

.stage[data-orientation="Portrait"] .split { grid-template-columns: 1fr; grid-template-rows: 1.2fr 1fr; }

/* ── Combo ───────────────────────────────────────────────────────────────
   Items, a bracket, one price. The "Duo Deal" panel, given a whole screen. */

.combo {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: clamp(10px, 2vmin, 44px);
    flex-wrap: wrap;
}

.combo__item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.4em;
    text-align: center;
    animation: rise 620ms var(--ease-out) both;
    animation-delay: calc(var(--i, 0) * 120ms + 140ms);
}

.combo__img {
    width: clamp(80px, 16vmin, 320px);
    height: clamp(80px, 16vmin, 320px);
    object-fit: cover;
    border-radius: var(--radius-lg);
    border: 1px solid var(--edge);
}

.combo__name { font-size: clamp(11px, 1.5vmin, 27px); font-weight: 700; max-width: 9em; }

.combo__plus {
    font-size: clamp(22px, 4vmin, 80px);
    font-weight: 300;
    color: var(--ink-faint);
    line-height: 1;
}

.combo__price {
    font-size: clamp(30px, 6vmin, 130px);
    font-weight: 900;
    line-height: 1;
    letter-spacing: -0.03em;
    color: var(--accent);
    font-variant-numeric: tabular-nums;
    animation: pop 700ms var(--ease-out) both 460ms;
}

/* ── The card scenes ─────────────────────────────────────────────────────
   Wifi, hours, loyalty, social, allergens, wait. All the same shell: a panel,
   centred, with rows. One layout for six scenes is the reason a seventh costs
   twenty lines rather than a hundred. */

.scene--card { align-items: center; justify-content: center; }

.card {
    width: min(72%, 900px);
    background: var(--card);
    border: 1px solid var(--edge);
    border-radius: var(--radius-lg);
    padding: clamp(16px, 2.4vmin, 52px);
    text-align: center;
    box-shadow: 0 26px 70px rgba(0, 0, 0, 0.3);
    animation: rise 640ms var(--ease-out) both 100ms;
}

.card--wide { width: min(88%, 1200px); }
:root[data-theme="light"] .card { box-shadow: 0 20px 50px rgba(16, 27, 38, 0.12); }

.card__icon {
    font-size: clamp(15px, 2vmin, 34px);
    font-weight: 900;
    letter-spacing: 0.1em;
    color: var(--accent);
    margin-bottom: 0.3em;
}

.card__title {
    margin: 0 0 clamp(8px, 1.2vmin, 24px);
    font-size: clamp(18px, 2.8vmin, 56px);
    font-weight: 900;
    letter-spacing: -0.01em;
}

.card__lead {
    margin: clamp(8px, 1.2vmin, 22px) 0 0;
    font-size: clamp(11px, 1.4vmin, 25px);
    color: var(--ink-muted);
    line-height: 1.4;
}

.card__rows { display: grid; gap: clamp(5px, 0.7vmin, 14px); }

.card__row {
    display: flex;
    align-items: baseline;
    gap: 0.6em;
    padding: clamp(5px, 0.7vmin, 14px) clamp(8px, 1.1vmin, 22px);
    background: var(--card-hi);
    border-radius: var(--radius);
    text-align: left;
}

.card__key {
    flex: none;
    min-width: 6em;
    font-size: clamp(9px, 1.1vmin, 19px);
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--ink-faint);
}

.card__val {
    flex: 1;
    font-size: clamp(12px, 1.6vmin, 30px);
    font-weight: 700;
    font-variant-numeric: tabular-nums;
    word-break: break-word;
}

/* Today's row, marked. On an opening-hours card it is the only row anybody is
   actually reading. */
.card__row.is-today {
    background: var(--accent-soft);
    border: 1px solid var(--accent);
}

.card__qr {
    display: block;
    margin: clamp(12px, 1.6vmin, 30px) auto 0;
    width: clamp(90px, 13vmin, 260px);
    height: auto;
    background: #fff;
    padding: clamp(5px, 0.6vmin, 12px);
    border-radius: var(--radius);
}

.wait__figure {
    font-size: clamp(40px, 8vmin, 170px);
    font-weight: 900;
    line-height: 1;
    letter-spacing: -0.04em;
    color: var(--accent);
    font-variant-numeric: tabular-nums;
}

/* ── Countdown ───────────────────────────────────────────────────────────
   A number that moves is a number people act on. */

.scene--countdown { align-items: center; justify-content: center; }
.countdown { text-align: center; }

.countdown__label {
    font-size: clamp(12px, 1.7vmin, 32px);
    font-weight: 800;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--accent);
}

.countdown__clock {
    margin-top: 0.1em;
    font-size: clamp(52px, 12vmin, 260px);
    font-weight: 900;
    line-height: 1;
    letter-spacing: -0.04em;
    font-variant-numeric: tabular-nums;
}

.countdown__note {
    margin-top: 0.3em;
    font-size: clamp(11px, 1.5vmin, 28px);
    color: var(--ink-muted);
}

/* ── Gallery ─────────────────────────────────────────────────────────────
   A photograph wall, and the team board on the same grid. */

.gallery {
    flex: 1;
    min-height: 0;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(clamp(110px, 17vmin, 340px), 1fr));
    gap: var(--gap);
    align-content: center;
    overflow: hidden;
}

.gallery__cell {
    position: relative;
    border-radius: var(--radius);
    overflow: hidden;
    aspect-ratio: 4 / 3;
    background: var(--card);
    border: 1px solid var(--edge);
    animation: rise 620ms var(--ease-out) both;
    animation-delay: calc(var(--i, 0) * 70ms + 120ms);
}

.gallery__cell img { width: 100%; height: 100%; object-fit: cover; display: block; }

.gallery__cap {
    position: absolute;
    left: 0; right: 0; bottom: 0;
    padding: clamp(5px, 0.8vmin, 16px);
    background: linear-gradient(transparent, rgba(0, 0, 0, 0.8));
    color: #fff;
    font-size: clamp(9px, 1.15vmin, 20px);
    font-weight: 700;
}

.gallery--team .gallery__cell { aspect-ratio: 1; border-radius: 50%; }

/* ── Quote, story, message ───────────────────────────────────────────────
   Three scenes, one layout: a paragraph, set as large as it can be. */

.scene--quote { align-items: center; justify-content: center; }

.quote { max-width: min(80%, 1400px); margin: 0; text-align: center; }

.quote__text {
    margin: 0;
    font-size: clamp(17px, 3vmin, 62px);
    font-weight: 700;
    line-height: 1.28;
    letter-spacing: -0.01em;
    animation: rise 720ms var(--ease-out) both 120ms;
}

/* A review is a quotation and is marked as one. */
.scene--quote blockquote .quote__text::before { content: "\201C"; }
.scene--quote blockquote .quote__text::after { content: "\201D"; }

.quote__text--plain {
    font-size: clamp(12px, 1.9vmin, 36px);
    font-weight: 500;
    line-height: 1.5;
    color: var(--ink-muted);
    text-align: left;
}

.quote__text--big { font-size: clamp(22px, 4.4vmin, 96px); font-weight: 900; }

.quote__by {
    margin-top: clamp(8px, 1.2vmin, 24px);
    font-size: clamp(11px, 1.4vmin, 25px);
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--accent);
    animation: rise 720ms var(--ease-out) both 260ms;
}

/* ── Events ──────────────────────────────────────────────────────────────
   What is on this week. Same anatomy as the news list, different content. */

.events {
    flex: 1; min-height: 0;
    margin: 0; padding: 0; list-style: none;
    display: flex; flex-direction: column;
    gap: clamp(5px, 0.8vmin, 16px);
    overflow: hidden;
}

.event {
    display: flex;
    align-items: center;
    gap: clamp(10px, 1.4vmin, 28px);
    background: var(--card);
    border: 1px solid var(--edge);
    border-left: clamp(3px, 0.4vmin, 7px) solid var(--accent);
    border-radius: var(--radius);
    padding: clamp(7px, 1vmin, 20px) clamp(10px, 1.4vmin, 28px);
}

.event__when {
    flex: none;
    min-width: 7em;
    font-size: clamp(10px, 1.25vmin, 22px);
    font-weight: 800;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--accent);
}

.event__what { font-size: clamp(11px, 1.5vmin, 28px); font-weight: 700; }

/* ── Clock ───────────────────────────────────────────────────────────────
   A bumper, and what to show when there is genuinely nothing to say. */

.scene--clockface { align-items: center; justify-content: center; }
.clockface { text-align: center; }

.clockface__time {
    font-size: clamp(60px, 15vmin, 340px);
    font-weight: 900;
    line-height: 0.9;
    letter-spacing: -0.05em;
    font-variant-numeric: tabular-nums;
}

.clockface__date {
    margin-top: 0.2em;
    font-size: clamp(13px, 2vmin, 40px);
    font-weight: 700;
    letter-spacing: 0.24em;
    text-transform: uppercase;
    color: var(--ink-muted);
}

@media (prefers-reduced-motion: reduce) {
    .pop, .pop.is-going, .pop--bounce, .pop--drop,
    .hero__img, .hero__flag, .hero__name, .hero__desc, .hero__price,
    .combo__item, .combo__price, .card, .gallery__cell,
    .quote__text, .quote__by { animation: none; }

    .stage[data-transition] .scene,
    .stage[data-transition] .scene.is-live {
        transition: opacity 200ms linear, visibility 0s;
        transform: none;
        clip-path: none;
    }
}

/* ══ Portrait ══════════════════════════════════════════════════════════════
   A screen hung the tall way. The menu drops to one column and the weather
   stacks, because a three-column menu on a portrait screen is unreadable. */

.stage[data-orientation="Portrait"] .menu,
.stage[data-orientation="Portrait"] .menu__page { --cols: 1; }

.stage[data-orientation="Portrait"] .wx__now {
    grid-template-columns: 1fr;
    justify-items: center;
    text-align: center;
}

.stage[data-orientation="Portrait"] .wx__stats { grid-template-columns: repeat(4, auto); }
.stage[data-orientation="Portrait"] .wx__hours { grid-template-columns: repeat(3, 1fr); }
.stage[data-orientation="Portrait"] .offers { grid-template-columns: 1fr; }

/* A narrow screen cannot carry the segment label and the weather and the clock.
   The label goes first: it is the one a guest can infer from what is on screen. */
@media (max-aspect-ratio: 3/4) {
    .frame__section { display: none; }
}

/* ══ Reduced motion ════════════════════════════════════════════════════════
   Honoured here too. Somebody set this on a display machine for a reason. The
   broadcast still changes scene — it just stops moving while it does. */

@media (prefers-reduced-motion: reduce) {
    .scene, .scene.is-live { transition: opacity 200ms linear, visibility 0s; transform: none; }
    .menu__page, .menu__page.is-live { transition: opacity 200ms linear, visibility 0s; transform: none; }
    .menu__page.is-live .menu__cat, .menu__page.is-live .menu__promo, .scene.is-live .menu__page.is-live [data-row], .menu__pip.is-live::after { animation: none; }

    .scene.is-live [data-enter],
    .board__item, .rail__chip, .scene__qr, .reel__caption,
    .callout, .callout__pulse, .scene.is-live .scene__title::after,
    .welcome__logo, .welcome__name, .welcome__tag, .welcome__clock,
    .stage::before, .stage::after,
    .ticker__track, .board__pip, .frame__dot, .trouble__dot { animation: none; }

    /* The ticker still has to move or it is a truncated sentence, but it can do
       it slowly and without easing. */
    .ticker__track { animation: marquee 90s linear infinite; }
}

/* Old televisions (Chrome < 79) cannot parse clamp(); the plain values above stand in for them.
   A custom property cannot carry its own fallback, so the clamped versions live here. */
@supports (width: clamp(1px, 2px, 3px)) {
    :root { --radius: clamp(8px, 0.9vmin, 18px); --radius-lg: clamp(12px, 1.4vmin, 26px); --gap: clamp(10px, 1.3vmin, 26px); --pad: clamp(14px, 2vmin, 44px); --frame-h: clamp(52px, 7.6vmin, 124px); --rail-h: clamp(46px, 6.6vmin, 112px); --ticker-h: clamp(34px, 5vmin, 84px); }
    .menu { --base: clamp(11px, 1.62vmin, 56px); }
}


/* ══ A video with the menu and the venue's information around it ═══════════
   Three columns: menu, video, information. The two sides change by
   themselves on their own clocks. Written for old television browsers:
   grid and plain transitions only, no inset shorthand, no flex gap. */

.scene--vidmenu { padding: 0; }
.vm {
    position: absolute; top: 0; right: 0; bottom: 0; left: 0;
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 2.1fr) minmax(0, 1fr);
    grid-column-gap: var(--gap); grid-row-gap: var(--gap);
    padding: var(--gap) var(--pad) var(--gap);
}
.vm--nomenu { grid-template-columns: minmax(0, 2.1fr) minmax(0, 1fr); }
.vm--nomenu .vm__side--menu { display: none; }

.vm__side {
    position: relative; min-width: 0; min-height: 0;
    display: flex; flex-direction: column;
    border-radius: var(--radius-lg);
    padding: calc(var(--gap) * 1.4);
    overflow: hidden;
}
.vm__side--menu { background: #f3ead8; color: #1a1510; }
.vm__side--info { background: var(--card); color: var(--ink); }

.vm__kicker {
    font-family: var(--font-display); font-weight: 600;
    font-size: calc(1.5vmin * var(--scale)); letter-spacing: 0.22em; text-transform: uppercase;
    opacity: 0.6; margin-bottom: calc(var(--gap) * 0.6);
}
.vm__stage { position: relative; flex: 1; min-height: 0; }

/* The menu climbs the panel and comes round again: one tall run, laid out twice
   end to end by script so the wrap cannot be seen. A menu short enough to fit
   gets .is-static and just stands still. */
.vm__scroll { position: absolute; top: 0; right: 0; bottom: 0; left: 0; overflow: hidden; }
.vm__track { will-change: transform; }
.vm__run { padding-bottom: calc(var(--gap) * 1.6); }
.vm__block { margin-bottom: calc(var(--gap) * 1.4); }

/* Rows fade in and out at the top and bottom edge rather than being cut. */
.vm__scroll::before, .vm__scroll::after {
    content: ""; position: absolute; left: 0; right: 0; height: 7vmin; z-index: 2; pointer-events: none;
}
.vm__scroll::before { top: 0; background: linear-gradient(#f3ead8, rgba(243, 234, 216, 0)); }
.vm__scroll::after { bottom: 0; background: linear-gradient(rgba(243, 234, 216, 0), #f3ead8); }
.vm__scroll.is-static::before, .vm__scroll.is-static::after { display: none; }

.vm__cat {
    font-family: var(--font-display); font-weight: 800; text-transform: uppercase;
    font-size: calc(4.4vmin * var(--scale)); line-height: 1; margin: 0 0 calc(var(--gap) * 0.8);
    padding-bottom: calc(var(--gap) * 0.6); border-bottom: 1px solid rgba(0, 0, 0, 0.14);
}
.vm__rows { display: block; }
.vm__row { display: flex; align-items: baseline; justify-content: space-between; margin-bottom: calc(var(--gap) * 1.1); }
.vm__row-text { min-width: 0; padding-right: 1.2vmin; }
.vm__row-name { font-weight: 700; font-size: calc(2.6vmin * var(--scale)); line-height: 1.12; }
.vm__row-desc { font-size: calc(1.6vmin * var(--scale)); opacity: 0.65; margin-top: 0.3vmin; }
.vm__row .menu__price { font-family: var(--font-display); font-weight: 700; font-size: calc(3.4vmin * var(--scale)); white-space: nowrap; }
.vm__row .menu__price small { font-size: 0.45em; margin-right: 0.35em; letter-spacing: 0.08em; opacity: 0.7; }
.vm__row.is-out .vm__row-name, .vm__row.is-out .menu__price { opacity: 0.45; text-decoration: line-through; }
.vm__out {
    font-family: var(--font-display); font-weight: 700; font-size: calc(1.5vmin * var(--scale));
    letter-spacing: 0.08em; text-transform: uppercase;
    border: 2px solid currentColor; border-radius: 99px; padding: 0.2vmin 1vmin; white-space: nowrap;
}

.vm__info {
    position: absolute; top: 0; right: 0; bottom: 0; left: 0;
    display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center;
    opacity: 0; transition: opacity 0.7s ease;
}
.vm__info.is-live { opacity: 1; }
.vm__info-label {
    font-family: var(--font-display); font-weight: 600; letter-spacing: 0.2em; text-transform: uppercase;
    font-size: calc(2vmin * var(--scale)); color: var(--accent); margin-bottom: 1.4vmin;
}
.vm__info-value { font-family: var(--font-display); font-weight: 700; font-size: calc(5vmin * var(--scale)); line-height: 1.05; word-break: break-word; }
.vm__info-value--text { font-family: inherit; font-weight: 600; font-size: calc(3.1vmin * var(--scale)); line-height: 1.25; }
.vm__info-name { font-family: var(--font-display); font-weight: 800; text-transform: uppercase; font-size: calc(5.6vmin * var(--scale)); line-height: 1; }
.vm__info-sub { font-size: calc(2.2vmin * var(--scale)); letter-spacing: 0.2em; text-transform: uppercase; opacity: 0.7; margin-top: 0.8vmin; }
.vm__clock { font-family: var(--font-display); font-weight: 700; font-size: calc(13vmin * var(--scale)); line-height: 1; color: var(--accent); margin-top: 3vmin; }
.vm__date { font-size: calc(2.6vmin * var(--scale)); opacity: 0.8; margin-top: 1vmin; }

.vm__dots { display: flex; justify-content: center; margin-top: calc(var(--gap) * 0.8); min-height: 0.8vmin; }
.vm__dot { width: 2.2vmin; height: 0.8vmin; margin: 0 0.4vmin; border-radius: 99px; background: currentColor; opacity: 0.18; }
.vm__dot.is-live { width: 4.4vmin; background: var(--accent); opacity: 1; }

.vm__center { position: relative; min-width: 0; min-height: 0; display: flex; flex-direction: column; justify-content: center; }
.vm__video {
    position: relative; width: 100%; background: #000;
    border: 0.35vmin solid var(--accent); border-radius: var(--radius-lg); overflow: hidden;
    padding-top: 56.25%;
}
.vm__video iframe { position: absolute; top: 0; left: 0; width: 100%; height: 100%; border: 0; display: block; }
.vm__caption {
    margin-top: calc(var(--gap) * 1.2); text-align: center;
    font-family: var(--font-display); font-weight: 600; letter-spacing: 0.12em; text-transform: uppercase;
    font-size: calc(3vmin * var(--scale));
}

/* Upright screen: the video takes the top, the menu and the information share the bottom. */
.stage[data-orientation="Portrait"] .vm {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    grid-template-rows: auto minmax(0, 1fr);
}
.stage[data-orientation="Portrait"] .vm__center { grid-column: 1 / 3; grid-row: 1; }
.stage[data-orientation="Portrait"] .vm__side--menu { grid-column: 1; grid-row: 2; }
.stage[data-orientation="Portrait"] .vm__side--info { grid-column: 2; grid-row: 2; }
.stage[data-orientation="Portrait"] .vm--nomenu .vm__side--info { grid-column: 1 / 3; }
