/* ==========================================================================
   UnboxmoU - pixel launch site
   Design language: 8-bit arcade cabinet built on the logo's own palette.
   Radius is 0 everywhere and every shadow is a hard offset block. Nothing
   on this page is allowed to be soft; that is the whole idea.
   ========================================================================== */

/* --------------------------------------------------------------------------
   Tokens. Dark is the default because charcoal is the logo's ground: the
   closed box. Light is the same box opened, on cream. Both are on-brand,
   so the toggle is a real brand gesture rather than a settings control.
   -------------------------------------------------------------------------- */
:root{
  color-scheme: dark;

  --bg:        #1A1914;
  --surface:   #22211B;
  --surface-2: #2E2E26;
  --line:      rgba(242,240,226,.15);
  --line-firm: rgba(242,240,226,.45);   /* 3.7:1 or better on every ground: form controls need 3:1 */
  --text:      #F2F0E2;
  --text-dim:  rgba(242,240,226,.64);
  --accent:    #F7BE2C;
  --accent-lo: #FBD469;
  --accent-text: #F7BE2C;   /* accent used as type */
  --on-accent: #22211B;
  --shadow:    #000000;

  /* Type. Jersey 25 is the display face: a bitmap-derived block letter with
     correct numerals. Silkscreen was the obvious pixel pick but its 4 is a
     broken glyph that reads as a plus, and this page prints a lot of numbers
     (player counts, prices, closing time). Body copy is Geist so paragraphs
     stay readable at length. */
  --display: "Jersey 25", ui-monospace, monospace;
  --body:    "Geist", ui-sans-serif, system-ui, sans-serif;
  --mono:    "Geist Mono", ui-monospace, SFMono-Regular, monospace;

  /* Jersey is narrower per character than Silkscreen, so the whole scale moves
     up a step and the display sizes hit considerably harder. */
  --fs-mega: clamp(3.2rem, 9.4vw, 8.2rem);
  --fs-xl:   clamp(2.4rem, 6vw, 5rem);
  --fs-lg:   clamp(1.8rem, 3.6vw, 3rem);
  --fs-md:   clamp(1.08rem, 1.6vw, 1.32rem);
  --fs-bd:   clamp(1rem, 1.1vw, 1.1rem);
  --fs-sm:   .92rem;
  --fs-xs:   .86rem;

  --gut: clamp(1.15rem, 4vw, 4rem);
  --sec: clamp(4.5rem, 10vh, 8rem);
  --maxw: 1360px;

  /* The pixel grid. One cell is the unit the whole page snaps to. */
  --cell: 32px;
  --px: 3px;              /* one "pixel" of border / shadow offset */

  --e-step: steps(4, end);
  --e-out: cubic-bezier(.22,.68,.24,1);
  --t-fast: .16s;
  --t-mid: .34s;
  --side-dim: .7;   /* how far the carousel's side posters dim */
}

/* Light = the box opened. Applies on OS preference unless the reader has
   explicitly chosen dark, and always when they explicitly choose light. */
@media (prefers-color-scheme: light){
  :root:not([data-theme="dark"]){
    color-scheme: light;
    --bg:        #F2F0E2;
    --surface:   #FAF8ED;
    --surface-2: #EDEAD8;
    --line:      rgba(34,33,27,.18);
    --line-firm: rgba(34,33,27,.55);   /* 3.5:1 or better, as in dark */
    --text:      #22211B;
    --text-dim:  rgba(34,33,27,.68);
    --accent-text: #8A5A08;
    --shadow:    #22211B;
    --side-dim:  .84;        /* .7 on cream reads as disabled */
  }
}
:root[data-theme="light"]{
  color-scheme: light;
  --bg:        #F2F0E2;
  --surface:   #FAF8ED;
  --surface-2: #EDEAD8;
  --line:      rgba(34,33,27,.18);
  --line-firm: rgba(34,33,27,.55);
  --text:      #22211B;
  --text-dim:  rgba(34,33,27,.68);
  --accent-text: #8A5A08;
  --shadow:    #22211B;
  --side-dim:  .84;
}

/* --------------------------------------------------------------------------
   Base
   -------------------------------------------------------------------------- */
*,*::before,*::after{ box-sizing:border-box }
html{ scroll-behavior:smooth; -webkit-text-size-adjust:100% }
/* The sticky header never covers a focused element or an anchor's landing (WCAG
   2.4.11). One rule for every page: the header, the admin bar when it is showing
   and a little air. Under 601px WordPress lets the bar scroll away. */
html{ scroll-padding-top:calc(64px + 1rem) }
html:has(.admin-bar){ scroll-padding-top:calc(64px + var(--wp-admin--admin-bar--height, 32px) + 1rem) }
@media (max-width: 600px){ html:has(.admin-bar){ scroll-padding-top:calc(64px + 1rem) } }
body{
  margin:0; background:var(--bg); color:var(--text);
  font-family:var(--body); font-size:var(--fs-bd); line-height:1.6;
  overflow-x:hidden; -webkit-font-smoothing:antialiased;
}
img{ display:block; max-width:100% }
a{ color:inherit; text-decoration:none }
button{ font:inherit; color:inherit; background:none; border:0; cursor:pointer }
h1,h2,h3,h4,p,figure,blockquote{ margin:0 }
ul,ol{ margin:0; padding:0; list-style:none }
:focus-visible{ outline:var(--px) solid var(--accent-text); outline-offset:var(--px) }

.wrap{ width:100%; max-width:var(--maxw); margin-inline:auto; padding-inline:var(--gut) }
.sr-only{
  position:absolute; width:1px; height:1px; padding:0; margin:-1px;
  overflow:hidden; clip:rect(0 0 0 0); white-space:nowrap; border:0;
}
.skip{
  position:fixed; top:0; left:0; z-index:200; transform:translateY(-120%);
  background:var(--accent); color:var(--on-accent); padding:.7rem 1.1rem;
  font-family:var(--display); font-size:var(--fs-xs);
}
.skip:focus{ transform:translateY(0) }

/* Every render is a real Blender render at ~250px, upscaled hard. */
.px-img{ image-rendering:pixelated; image-rendering:crisp-edges }

/* --------------------------------------------------------------------------
   The pixel grid overlay. This is the aura.build hairline canvas rewritten
   as graph paper, which doubles as the grid a board game is printed on.
   Fixed + pointer-events:none so it never costs a scroll repaint.
   -------------------------------------------------------------------------- */
.grid-overlay{
  position:fixed; inset:0; z-index:1; pointer-events:none; opacity:.5;
  background-image:
    linear-gradient(to right, var(--line) 1px, transparent 1px),
    linear-gradient(to bottom, var(--line) 1px, transparent 1px);
  background-size: var(--cell) var(--cell);
  mask-image: radial-gradient(ellipse 130% 90% at 50% 0%, #000 20%, transparent 78%);
}
main, header, footer{ position:relative; z-index:2 }

/* --------------------------------------------------------------------------
   Type roles
   -------------------------------------------------------------------------- */
.display{
  font-family:var(--display); font-weight:400; line-height:.92;
  letter-spacing:.01em; text-transform:uppercase;
}
/* The arcade hard shadow. No blur, offset on the pixel unit. */
.display--shadow{ text-shadow: var(--px) var(--px) 0 var(--shadow) }
.meta{
  font-family:var(--display); font-weight:400; font-size:var(--fs-xs);
  letter-spacing:.14em; text-transform:uppercase; color:var(--text-dim);
}
.lede{ font-size:var(--fs-md); line-height:1.55; max-width:38ch; color:var(--text-dim) }

/* --------------------------------------------------------------------------
   Buttons. Hard block shadow that collapses on press, which is the arcade
   convention and gives a real tactile push.
   -------------------------------------------------------------------------- */
.btn{
  display:inline-flex; align-items:center; gap:.55em; white-space:nowrap;
  padding:.85em 1.4em; border:var(--px) solid var(--text); border-radius:0;
  background:var(--accent); color:var(--on-accent);
  font-family:var(--display); font-size:var(--fs-xs); letter-spacing:.06em;
  text-transform:uppercase;
  box-shadow: var(--px) var(--px) 0 0 var(--text);
  transition: transform var(--t-fast) var(--e-out),
              box-shadow var(--t-fast) var(--e-out),
              background var(--t-fast) linear;
}
/* A phone keeps :hover after a tap, which would leave a button lit and lifted,
   so hover only counts on a real pointer, here and on the small controls below.
   The press and keyboard focus count everywhere. */
@media (hover:hover){
  .btn:hover{
    background:var(--accent-lo);
    transform:translate(-2px,-2px);
    box-shadow: calc(var(--px) + 2px) calc(var(--px) + 2px) 0 0 var(--text);
  }
}
.btn:active{ transform:translate(var(--px),var(--px)); box-shadow:0 0 0 0 var(--text) }
.btn i{ font-size:1.1em }

.btn--ghost{ background:transparent; color:var(--text) }
@media (hover:hover){ .btn--ghost:hover{ background:color-mix(in srgb, var(--accent) 16%, transparent) } }

/* On the yellow event block the border flips to ink so contrast holds. The label
   is --accent, not --accent-text: --accent-text is brown on cream (2.73:1 on the
   ink), and the page's yellow ring would vanish on the yellow band (1:1), so the
   ring there is ink too. */
.on-accent .btn{ background:var(--on-accent); color:var(--accent); border-color:var(--on-accent);
  box-shadow: var(--px) var(--px) 0 0 rgba(34,33,27,.34) }
.on-accent :focus-visible{ outline-color:var(--on-accent) }
@media (hover:hover){ .on-accent .btn:hover{ background:#12110D; box-shadow:calc(var(--px) + 2px) calc(var(--px) + 2px) 0 0 rgba(34,33,27,.34) } }

/* --------------------------------------------------------------------------
   Header
   -------------------------------------------------------------------------- */
/* Solid, not frosted. A blurred backdrop on a sticky bar forces a composited
   layer that repaints on every scroll frame, and it fights a design whose
   whole premise is hard edges. The bar is opaque with a 2px rule instead. */
.hdr{
  position:sticky; top:0; z-index:100; height:64px;
  display:flex; align-items:center;
  background:var(--bg); border-bottom:2px solid var(--line-firm);
}

.hdr__in{ display:flex; align-items:center; gap:1.5rem; width:100%;
  max-width:var(--maxw); margin-inline:auto; padding-inline:var(--gut) }
@media (max-width: 1080px){ .hdr__in{ gap:.9rem } }
/* The client's mascot, then the text wordmark. No flex gap: the wordmark's text
   and its span would split into separate items, so the mark carries its own margin. */
.brand{ display:inline-flex; align-items:center; font-family:var(--display); font-weight:700; font-size:.95rem;
  letter-spacing:.02em; text-transform:uppercase; margin-right:auto }
.brand span{ color:var(--accent-text) }
.brand__mark{ height:34px; width:auto; margin-right:.5rem }
/* A Site Logo set in the Customizer replaces the mark and the wordmark. */
.custom-logo{ display:block; height:36px; width:auto; max-width:min(180px, 26vw); object-fit:contain }

/* Desktop: five links in the bar. The element is also a popover, so the browser's
   own [popover] box (fixed, centred, bordered, padded, filled) is reset here. */
.nav{ display:flex; align-items:center; gap:1.4rem;
  position:static; inset:auto; width:auto; height:auto; margin:0; padding:0;
  border:0; overflow:visible; background:none; color:inherit }
@media (max-width: 1180px){ .nav{ gap:1rem } }
.nav a{
  font-family:var(--display); font-size:var(--fs-xs); letter-spacing:.07em;
  text-transform:uppercase; color:var(--text-dim);
  padding-bottom:2px; border-bottom:2px solid transparent;
  transition:color var(--t-fast), border-color var(--t-fast);
}
.nav a:hover, .nav a[aria-current="page"]{ color:var(--text); border-bottom-color:var(--accent-text) }
.nav a:focus-visible{ outline-offset:4px }

.hdr .btn{ padding:.62em 1.05em }
/* Phones keep a way to Book and to the account: the CTA shrinks to "Book" and
   the account icon sits with the menu button and the toggle as one strip of
   three, their 2px edges shared. */
@media (max-width: 560px){ .hdr__cta-more{ display:none } .hdr__in{ gap:.4rem }
  .hdr__icon, .toggle{ margin-left:calc(-.4rem - 2px) } }
/* Under 360px the strip and the wordmark leave no room for Book: it is the first
   link in the menu ("Rooms & Booking"), one tap away. */
@media (max-width: 359px){ .hdr__cta{ display:none } }

.toggle, .hdr__icon, .hdr__menu{
  width:44px; height:44px; display:grid; place-items:center; flex:none;
  border:2px solid var(--line-firm); background:transparent; font-size:1.1rem;
  transition:border-color var(--t-fast), color var(--t-fast);
}
.hdr__menu{ display:none }   /* shown only where the browser can open a popover, below */
@media (hover:hover){ .toggle:hover, .hdr__icon:hover, .hdr__menu:hover{ border-color:var(--accent); color:var(--accent-text) } }
.toggle:active, .hdr__icon:active, .hdr__menu:active{ background:color-mix(in srgb, var(--accent) 16%, transparent) }

/* Phone and tablet menu (1080px and below). The panel is a sheet fixed to the
   bottom of the screen, not a dropdown: a dropdown under the sticky header would
   cover the header and its menu button when WordPress's admin bar scrolls away. A
   sheet never meets either, and puts the five links in the thumb zone. */
@media (max-width: 1080px){ .nav{ display:none } }   /* no Popover: no menu button, the footer's list is the way in */
@supports selector(:popover-open){
  @media (max-width: 1080px){
    .hdr__menu{ display:grid }
    .hdr__menu:has(+ .nav:popover-open){ background:var(--accent); color:var(--on-accent); border-color:var(--text) }   /* the pressed key */
    .nav:popover-open{
      display:flex; flex-direction:column; align-items:stretch; gap:0;
      position:fixed; inset:auto 0 0 0; width:auto; height:auto; max-height:min(80dvh, 30rem);
      margin:0; overflow:auto; overscroll-behavior:contain;
      padding:.4rem max(var(--gut), (100% - 40rem) / 2) calc(1rem + env(safe-area-inset-bottom));
      background:var(--bg); color:var(--text);
      border:0; border-top:var(--px) solid var(--text);
      box-shadow:0 calc(var(--px) * -2) 0 0 var(--accent);   /* a 6px accent lip above the ink rule: the board's .board__rule */
    }
    .nav::backdrop{ background:color-mix(in srgb, var(--on-accent) 55%, transparent) }
    .nav:popover-open a{ display:flex; align-items:center; gap:.7rem; min-height:52px; padding:.6rem 0;
      font-size:var(--fs-md); color:var(--text); border-bottom:0 }
    .nav:popover-open a + a{ border-top:1px solid var(--line) }
    .nav:popover-open a[aria-current="page"]{ color:var(--accent-text) }
    .nav:popover-open a[aria-current="page"]::before{ content:""; width:10px; height:10px; background:var(--accent-text); flex:none }   /* raw --accent is 1.48:1 on the light ground */
    .nav:popover-open a:focus-visible{ outline-offset:calc(var(--px) * -1) }
    @media (hover:hover){ .nav:popover-open a:hover{ background:color-mix(in srgb, var(--accent) 16%, transparent) } }
  }
}
/* Without Popover: one plain "Menu" link to the footer's Visit list. */
.hdr__menu-link{ display:none }
@supports not selector(:popover-open){
  @media (max-width: 1080px){
    .hdr__menu-link{ display:inline-flex; align-items:center; min-height:44px; padding-inline:.4rem;
      font-family:var(--display); font-size:var(--fs-xs); letter-spacing:.07em; text-transform:uppercase;
      text-decoration:underline; text-underline-offset:3px }
  }
}

/* --------------------------------------------------------------------------
   Hero. Asymmetric split: type carries the left, the render owns the right.
   -------------------------------------------------------------------------- */
/* Just under a full screen, so the fact strip below shows a sliver. That does
   the job a "scroll" label would do, without printing the word. */
.hero{
  position:relative; isolation:isolate; overflow:hidden;
  min-height: calc(94vh - 64px);
  min-height: calc(94lvh - 64px);
  display:flex; align-items:flex-end;
  padding-block: clamp(2rem, 5vh, 4rem) clamp(2.5rem, 6vh, 4rem);
}
.hero__in{
  position:relative; z-index:3;
  width:100%; max-width:var(--maxw); margin-inline:auto; padding-inline:var(--gut);
}

/* --------------------------------------------------------------------------
   The world. Three renders from one Blender camera, stacked and moved at
   different rates so the room has real depth rather than one flat image
   sliding about. --mx / --my are set by the pointer, -1 to 1.
   -------------------------------------------------------------------------- */
.world{ position:absolute; inset:0; z-index:0; pointer-events:none }
/* Each layer fills the hero and covers. All three share one aspect ratio and
   one box, so they crop identically at every viewport and stay registered. */
.world__layer{ position:absolute; inset:0 }
.world__layer .plx{ position:absolute; inset:0 }
.world__layer img{ width:100%; height:100%; object-fit:cover; object-position:50% 54% }
/* Far moves least and sits deepest, near moves most and is scaled up hardest.
   The difference between the three IS the depth cue. --z also guarantees the
   layer is oversized enough that drifting never exposes an edge. */
.world__layer--far  { --depth:  7px; --z:1.05; opacity:.7 }
.world__layer--mid  { --depth: 16px; --z:1.08 }
.world__layer--near { --depth: 36px; --z:1.2; --lift:-5% }

/* Shared parallax transform for anything inside a [data-parallax] scene. */
.js [data-parallax] .plx{
  transform:scale(var(--z, 1))
            translate3d(calc(var(--mx, 0) * var(--depth, 0px)),
                        calc(var(--my, 0) * var(--depth, 0px) * .55 + var(--lift, 0px)), 0);
  transition:transform .55s cubic-bezier(.22,.68,.24,1);
  will-change:transform;
}
/* Snappy while the pointer is in the scene, slow easing on the way home. */
.js [data-parallax].is-live .plx{ transition:transform .12s linear }

/* Scrim. The room is busy, so the headline gets its own ground: a wash from
   the bottom-left where the copy sits, fading out across the room. */
.world__scrim{
  position:absolute; inset:0; z-index:2;
  background:
    linear-gradient(to top, var(--bg) 2%, color-mix(in srgb, var(--bg) 72%, transparent) 22%, transparent 54%),
    linear-gradient(to right, var(--bg) 12%, color-mix(in srgb, var(--bg) 86%, transparent) 36%,
                    color-mix(in srgb, var(--bg) 30%, transparent) 62%, transparent 80%);
}
/* Capped in ch so the title breaks where the client broke it: the first line,
   then "@ SS15, SUBANG JAYA" (.nb) on the second. nowrap keeps that part whole.
   The first line needs about 26.1ch; 30ch clears it and is far short of fitting .nb too.
   site.js wraps each word in .boot__w, so a narrow phone breaks between words. */
.hero h1{ font-size:var(--fs-xl); max-width:30ch; margin-bottom:1.1rem }
.hero h1 .nb{ white-space:nowrap }
.boot__w{ display:inline-block; white-space:nowrap }
.hero .lede{ max-width:52ch; font-size:var(--fs-md); color:var(--text) }
.hero__cta{ display:flex; flex-wrap:wrap; gap:.85rem }

@media (max-width: 880px){
  .hero{ min-height:calc(88vh - 64px); min-height:calc(88lvh - 64px); padding-block:2rem 2.5rem }
  .world__layer--near{ --z:1.28 }
  /* The copy now fills most of the hero, so the wash rises with it: text never sits on bare art.
     It reaches the title (the title is about 80 to 90% up), which is why the dark text shadow
     goes here: on a wash it only smears. Worst case under the title, art at its brightest
     (dark theme) or darkest (light theme) behind a 74% wash: 7.5:1 or better, need 3:1 (large). */
  .world__scrim{
    background:linear-gradient(to top, var(--bg) 62%,
      color-mix(in srgb, var(--bg) 85%, transparent) 84%, color-mix(in srgb, var(--bg) 55%, transparent) 100%);
  }
  .hero h1{ text-shadow:none }
}
@media (max-width: 560px){ .hero h1{ font-size:var(--fs-lg) } .hero .lede{ font-size:var(--fs-bd) } }

/* Pixel speech bubble. The tail is two stacked blocks, so it stays pixel
   art rather than a smooth CSS triangle. */
.bubble{
  position:absolute; z-index:3;
  background:var(--accent); color:var(--on-accent);
  border:var(--px) solid var(--on-accent);
  font-family:var(--display); font-size:var(--fs-xs); letter-spacing:.04em;
  padding:.55rem .75rem; text-transform:lowercase; white-space:nowrap;
}
.bubble::before,.bubble::after{ content:""; position:absolute; background:var(--accent) }
.bubble::before{ width:12px; height:6px; bottom:-6px; left:18px;
  border-left:var(--px) solid var(--on-accent); border-right:var(--px) solid var(--on-accent) }
.bubble::after{ width:6px; height:6px; bottom:-12px; left:18px;
  border-left:var(--px) solid var(--on-accent);
  border-right:var(--px) solid var(--on-accent);
  border-bottom:var(--px) solid var(--on-accent) }

/* --------------------------------------------------------------------------
   What's on. The café's current events open the page: one pixel-framed poster
   per event on a scroll-snap track, each one a link to the event's own page.
   Centre mode: the slide in the middle is the hero, its neighbours step back.
   Scroll-snap is the carousel; site.js adds the arrows, marks the middle slide
   and centres a side slide you click or tab to. Nothing moves on its own, since
   a carousel that plays itself needs a pause control.
   -------------------------------------------------------------------------- */
.spotlight{ padding-block:clamp(1.4rem,4vh,3rem) clamp(1.6rem,4vh,2.6rem); border-bottom:1px solid var(--line);
  /* One width rules the slide, and its 4:5 poster is that width tall and a
     quarter: sized off the viewport so the middle poster clears the fold
     under the header and the heading, with the neighbours peeking either side.
     The 240px floor gives way on a phone on its side, where the fold comes first:
     the poster then gets what is left of the screen under the 165px above it. */
  --slide-w:min(70vw, 420px, max(min(240px, (100svh - 165px) * .8), (100svh - 340px) * .8)) }
.spotlight__hd{ display:flex; align-items:flex-end; justify-content:space-between;
  gap:1.5rem; flex-wrap:wrap; margin-bottom:1rem }
.spotlight h2{ font-size:var(--fs-lg) }   /* the poster is the hero here, not the heading */
/* One poster per column, edge to edge of the page: the track sits outside the
   wrap, straight in the full-width section. The inline padding lets the first
   and last slides reach the middle; padding percentages are measured off the
   section, whose width leaves out the page's scrollbar, so the middle poster
   sits on the visible page's true centre. */
.spotlight .track{ grid-auto-columns:var(--slide-w); gap:1rem;
  padding:calc(var(--px) * 2 + 2px) calc(50% - var(--slide-w) / 2) 1.4rem;   /* room for the lifted shadow and the focus ring */
  scroll-margin-bottom:.75rem }   /* focus stops clear of the fold, the no-JS scrollbar included (the sticky header is html's scroll-padding) */
/* The arrows, dots, swipes and clickable side posters do the scrollbar's job.
   Without JS the row keeps it, the only visible cue there. */
.js .spotlight .track{ scrollbar-width:none }
.js .spotlight .track::-webkit-scrollbar{ display:none }
html:not(.js) .spotlight .arrows, html:not(.js) .spotlight__dots{ display:none }
/* The global ring sits outside the box, and the box runs to the page's edges,
   so the ring would fall past them, where the body clips it. Drawn inside, it
   runs through the track's padding, and the slides, whose transforms would
   paint them over it, drop below it. */
.spotlight .track:focus-visible{ outline-offset:calc(var(--px) * -2); isolation:isolate }
.spotlight .track:focus-visible .slide{ z-index:-1 }
/* The controls: the slide's hard-offset block as a chunky button, lit in the
   accent under the pointer. The shelf keeps its hairline arrows. A phone keeps
   :hover after a tap, which would leave one lit, so hover only counts on a real
   pointer; focus counts everywhere. */
.spotlight .arrows button{ width:44px; height:44px; border:var(--px) solid var(--text);
  background:var(--surface); box-shadow:var(--px) var(--px) 0 0 var(--text) }
.spotlight .arrows button:focus-visible:not(:disabled){ background:var(--accent);
  color:var(--on-accent); border-color:var(--text) }
@media (hover:hover){
  .spotlight .arrows button:hover:not(:disabled){ background:var(--accent);
    color:var(--on-accent); border-color:var(--text) }
}
.spotlight .arrows button:disabled{ opacity:.5; box-shadow:none }
/* Where you are: one pixel per poster under the track, lit for the middle one. */
.spotlight__dots{ display:flex; justify-content:center; gap:.4rem }
.spotlight__dots li{ width:10px; height:10px; border:2px solid var(--text) }
.spotlight__dots .is-on{ background:var(--accent-text) }

/* The frame: a button's hard-offset block, with the corner pixels of the box
   and of its shadow knocked out to the page ground so it reads as pixel art,
   not a card. The overlay spans the border box and the shadow (--off deep),
   so each corner steps: one pixel off the box, one off the shadow where it
   pokes out. */
.slide{
  --off:var(--px);
  position:relative; scroll-snap-align:center; display:flex; flex-direction:column;
  background:var(--surface); color:var(--text);
  border:var(--px) solid var(--text); box-shadow:var(--off) var(--off) 0 0 var(--text);
}
.slide::before{
  content:""; position:absolute; z-index:2; pointer-events:none;
  inset:calc(var(--px) * -1) calc(var(--px) * -1 - var(--off)) calc(var(--px) * -1 - var(--off)) calc(var(--px) * -1);
  --notch:linear-gradient(var(--bg), var(--bg)); --notch-size:var(--px);
  background:
    var(--notch) 0 0 / var(--notch-size) var(--notch-size) no-repeat,
    var(--notch) calc(100% - var(--off)) 0 / var(--notch-size) var(--notch-size) no-repeat,
    var(--notch) 100% var(--off) / var(--notch-size) var(--notch-size) no-repeat,
    var(--notch) 0 calc(100% - var(--off)) / var(--notch-size) var(--notch-size) no-repeat,
    var(--notch) var(--off) 100% / var(--notch-size) var(--notch-size) no-repeat,
    var(--notch) 100% 100% / var(--notch-size) var(--notch-size) no-repeat;
}
/* The middle slide is the hero: an accent frame on a deeper block. The rest
   step back toward it, smaller and dimmer. All scale about the same edge, so a
   move only ever animates the transform, and each shifts toward the middle by
   the 18% of a width that every shrunken slide nearer the middle gave up (on
   the left, its own too), so all the gaps in the row stay one gap. --d is a
   slide's signed distance from the middle, printed by the server and kept by
   site.js. Only with JS, which keeps .is-active true: without it the row is a
   plain line of equal links. */
.js .spotlight .slide{ transform-origin:left center }
.js .spotlight .slide.is-active{ --off:calc(var(--px) * 2); border-color:var(--accent-text) }
.js .spotlight .slide:not(.is-active){ transform:translateX(calc((1 - var(--d)) * 18%)) scale(.82) }
.js .spotlight .slide:has(~ .is-active){ transform:translateX(calc(var(--d) * -18%)) scale(.82) }
/* Browsers snap to the transformed box, so grow the snap area on the side the
   transform pulls in until its centre is back on the layout box's, or every
   move lands off centre and hops. The farther out, the more it was pulled.
   --pull is that growth, signed like --d. Chrome does not interpolate
   scroll-margin, so it reads this registered length, which keeps step with the
   transform: the centre then holds still all through a move too. */
@property --pull{ syntax:"<length>"; inherits:false; initial-value:0px }
.js .spotlight .slide{ scroll-margin-inline:max(var(--pull) * -1, 0px) max(var(--pull), 0px) }
.js .spotlight .slide:not(.is-active){ --pull:calc(var(--slide-w) * .18 * (var(--d) * 2 - 1)) }
.js .spotlight .slide:has(~ .is-active){ --pull:calc(var(--slide-w) * .18 * (var(--d) * 2 + 1)) }
/* Only the poster dims: the plate's text keeps its contrast. */
.js .spotlight .slide:not(.is-active) .slide__pic{ opacity:var(--side-dim) }
@media (hover:hover){ .js .spotlight .slide:not(.is-active):hover .slide__pic{ opacity:.9 } }
/* The poster. A photo, so never .px-img: it stays crisp at its own scale.
   One portrait frame for every slide so the row never steps, and the poster
   is shown whole inside it, never cropped: whatever shape the café uploads
   is letterboxed on a pixel checker of the two surface tokens. */
.slide__pic{ display:block; position:relative; aspect-ratio:4/5; overflow:hidden;
  background:repeating-conic-gradient(var(--surface-2) 0 25%, var(--surface) 0 50%) 0 0 / 4px 4px;
  border-bottom:var(--px) solid var(--text) }
.slide__pic img{ width:100%; height:100%; object-fit:contain }
/* No poster yet: the box-stack render, small and sharp on the ground. */
.slide__pic .px-img{ padding:14% }
/* The plate: when (the bubble's tail points at the title) beside the slide's
   pixel prop, then the title on two lines across the plate, then the cue. */
.slide__plate{ flex:1; display:grid; grid-template-columns:1fr auto; align-content:start;
  column-gap:.8rem; row-gap:.4rem; padding:.9rem 1rem .85rem }
.slide__plate > *{ grid-column:1 / -1 }
.slide__plate > .slide__badge{ grid-column:1; position:relative; justify-self:start; margin-bottom:10px;
  white-space:normal; line-height:1.25; text-transform:uppercase; letter-spacing:.08em }   /* a long date range wraps on a phone rather than run under the prop */
.slide__title{ font-family:var(--display); font-size:clamp(1.5rem, 2.2vw, 2rem); line-height:.95;
  text-transform:uppercase; letter-spacing:.01em;
  display:-webkit-box; -webkit-box-orient:vertical; -webkit-line-clamp:2; overflow:hidden; overflow-wrap:anywhere }
.slide__go{ display:inline-flex; align-items:center; gap:.45em; font-family:var(--display);
  font-size:var(--fs-xs); letter-spacing:.06em; text-transform:uppercase; color:var(--accent-text) }
.slide__plate > .slide__prop{ grid-column:2; grid-row:1; width:44px; height:44px }
/* Feedback that needs no motion: the title lights up, the cue underlines. A
   phone keeps :hover after a tap, which would leave a slide lit once it has
   moved on, so hover only counts on a real pointer; focus counts everywhere. */
.slide:focus-visible .slide__title{ color:var(--accent-text) }
@media (hover:hover){
  .slide:hover .slide__title{ color:var(--accent-text) }
  .slide:hover .slide__go{ text-decoration:underline; text-underline-offset:3px }
}
@media (max-width: 560px){
  .spotlight__hd{ margin-bottom:.9rem }
  .slide__plate{ padding:.8rem .8rem .75rem }
  .slide__plate > .slide__badge{ letter-spacing:.04em }
}

/* --------------------------------------------------------------------------
   The shelf. Ten titles is past the point where a list works, so it is a
   horizontal scroll-snap track with real controls.
   -------------------------------------------------------------------------- */
.shelf{ padding-block:var(--sec); border-top:1px solid var(--line) }
.shelf__hd{ display:flex; align-items:flex-end; justify-content:space-between;
  gap:1.5rem; flex-wrap:wrap; margin-bottom:2.2rem }
.shelf h2{ font-size:var(--fs-xl); max-width:22ch }
.shelf__tools{ display:flex; align-items:center; gap:.6rem }
/* "Top 10" is a sticker, not an eyebrow: the same object as the rank badge below. */
.shelf__hd .meta{ display:inline-block; margin-bottom:.7rem; padding:.22rem .6rem;
  font-size:var(--fs-sm); letter-spacing:.08em; color:var(--on-accent); background:var(--accent);
  border:2px solid var(--on-accent); box-shadow:2px 2px 0 0 var(--on-accent) }

.roller{
  display:inline-flex; align-items:center; gap:.6rem;
  border:var(--px) solid var(--text); padding:.4rem .9rem .4rem .45rem;
  background:var(--surface); font-family:var(--display);
  font-size:var(--fs-xs); text-transform:uppercase; letter-spacing:.05em;
  box-shadow:var(--px) var(--px) 0 0 var(--text);
  transition:transform var(--t-fast) var(--e-out), box-shadow var(--t-fast) var(--e-out);
}
@media (hover:hover){ .roller:hover{ transform:translate(-2px,-2px);
  box-shadow:calc(var(--px) + 2px) calc(var(--px) + 2px) 0 0 var(--text) } }
.roller:active{ transform:translate(var(--px),var(--px)); box-shadow:0 0 0 0 var(--text) }
.roller[data-rolling="true"]{ pointer-events:none }
.roller img{ width:34px; height:34px }

.arrows{ display:flex; gap:.4rem }
.arrows button{ width:44px; height:44px; display:grid; place-items:center;
  border:2px solid var(--line-firm); transition:border-color var(--t-fast), color var(--t-fast) }
@media (hover:hover){ .arrows button:hover:not(:disabled){ border-color:var(--accent); color:var(--accent-text) } }
.arrows button:disabled{ opacity:.32; cursor:default }

.track{
  display:grid; grid-auto-flow:column; grid-auto-columns:minmax(236px,300px);   /* capped: a short shelf keeps a full shelf's card size */
  gap:1rem; overflow-x:auto; scroll-snap-type:x mandatory;
  padding:var(--px) var(--px) 1.4rem;
  scrollbar-width:thin; scrollbar-color:var(--line-firm) transparent;
  counter-reset:rank;
}
.track::-webkit-scrollbar{ height:8px }
.track::-webkit-scrollbar-thumb{ background:var(--line-firm) }
.game{
  position:relative; counter-increment:rank;
  scroll-snap-align:start; background:var(--surface);
  border:2px solid var(--line); padding:1.3rem 1.2rem 1.1rem;
  display:flex; flex-direction:column; gap:.9rem; min-height:172px;
}
.game:hover{ border-color:var(--line-firm) }   /* the lift is in the motion block below */

/* The card's picture: a client photo or the pixel loop in one 5:3 window, so a
   mixed row reads as one shelf. Each loop frame is 200x120, also 5:3. */
.game__pic{ aspect-ratio:5/3; margin:-1.3rem -1.2rem .1rem; overflow:hidden;
  background:var(--surface-2); border-bottom:2px solid var(--line) }
.game__pic > img{ width:100%; height:100%; object-fit:cover; object-position:50% 50% }
.game__pic .game__reel{ margin:0; border:0; height:100% }

/* The rank, 1 to 10: a printed sticker, theme-constant so it holds on any photo.
   The shop's Top row wears the same badge (pages.css owns that card). The second
   content value is the silent form: the order is already the list's order, so a
   screen reader is not read a bare numeral before every title. */
.shelf--top .item:not(.item--all){ counter-increment:rank }
.game::before, .shelf--top .item:not(.item--all)::before{
  content:counter(rank); content:counter(rank) / "";
  position:absolute; z-index:3; top:.55rem; left:.55rem;
  display:grid; place-items:center; min-width:2.1rem; height:2.1rem; padding:0 .35rem;
  font-family:var(--display); font-size:1.45rem; line-height:1; font-variant-numeric:tabular-nums;
  background:var(--accent); color:var(--on-accent);
  border:2px solid var(--on-accent); box-shadow:2px 2px 0 0 var(--on-accent) }

/* Hover footage. Eight Blender frames on one sheet, stepped by CSS so ten
   cards can all be primed without ten timers. Frame 0 shows at rest, so the
   card reads as a still of the table until the pointer arrives. */
.game__reel{
  position:relative; overflow:hidden; aspect-ratio:5/3;
  margin:-1.3rem -1.2rem .1rem; background:var(--surface-2);
  border-bottom:2px solid var(--line);
}
.game__reel img{
  position:absolute; inset:0; width:800%; height:100%; max-width:none;
  transform:translate3d(0, 0, 0);
}
/* steps(8) across a -100% travel lands exactly on each of the eight frames. */
@keyframes reel{ to{ transform:translate3d(-100%, 0, 0) } }
.game h3{ font-family:var(--display); font-size:1.24rem; line-height:1.15 }
.game dl{ margin:auto 0 0; display:flex; gap:1.1rem; font-family:var(--mono);
  font-size:var(--fs-xs); color:var(--text-dim) }
.game dt{ display:block; opacity:.62; margin-bottom:.15rem }
.game dd{ margin:0; font-variant-numeric:tabular-nums }
/* One accent, three intensities. Extra hues would break the page's colour
   lock, and yellow text on the cream light theme fails AA, so the escalation
   is carried by fill weight rather than by hue. */
.tag{
  align-self:flex-start; font-family:var(--display); font-size:.6rem;
  letter-spacing:.08em; text-transform:uppercase;
  padding:.28rem .5rem; border:2px solid var(--line-firm); color:var(--text);
}
.tag--medium{ border-color:var(--accent) }
.tag--chaotic{ border-color:var(--accent); background:var(--accent); color:var(--on-accent) }

/* The roll result. Border only, so it reads as a selection cursor. */
.game[data-picked="true"]{
  border-color:var(--accent); box-shadow:var(--px) var(--px) 0 0 var(--accent);
  transform:translate(calc(var(--px) * -1), calc(var(--px) * -1));
}
.shelf__note{ margin-top:.6rem; font-size:var(--fs-xs); color:var(--text-dim) }
.shelf__result{ font-family:var(--display); font-size:var(--fs-xs);
  color:var(--accent-text); min-height:1.2em; margin-top:.9rem }

/* The last card, "view all": dashed means "more, not a game", and it takes no
   rank. The shop's Top row has the same card as .item--all; the doubled class
   keeps it above pages.css's .item, whose padding and solid border it replaces. */
.game--all, .item.item--all{ justify-content:center; align-items:flex-start; gap:1rem;
  padding:1.3rem 1.2rem 1.1rem; border:2px dashed var(--line-firm); background:transparent;
  font-family:var(--display); font-size:1.24rem; line-height:1.15; text-transform:uppercase; color:var(--text) }
.game--all{ counter-increment:none }
.game--all::before{ content:none }
.game--all i, .item--all i{ font-size:1.6rem; color:var(--accent-text) }
@media (hover:hover){ .game--all:hover, .item.item--all:hover{ border-style:solid; border-color:var(--accent);
  background:color-mix(in srgb, var(--accent) 16%, transparent) } }
.game--all:focus-visible, .item.item--all:focus-visible{ outline-offset:calc(var(--px) * -1 - 2px) }   /* the track clips an outer ring */
.game--all:active, .item.item--all:active{ transform:translate(var(--px), var(--px)); box-shadow:none }

/* --------------------------------------------------------------------------
   The board. Styled after the menu board hanging over the counter in the
   hero render, so the page and the room agree with each other.
   -------------------------------------------------------------------------- */
.menu{ padding-block:var(--sec); border-top:1px solid var(--line) }
.menu__hd{ margin-bottom:2rem }
.menu h2{ font-size:var(--fs-xl); margin-bottom:.9rem }

.board{ border:var(--px) solid var(--line-firm); background:var(--surface);
  box-shadow:var(--px) var(--px) 0 0 var(--line) }
.board__rule{ height:10px; background:var(--accent) }
/* Four tiles, each its name and nothing else (blueprint 2.4): cells of one
   board frame split by 1px rules, not four cards. Two columns hold down to 320px. */
.board__grid{ display:grid; grid-template-columns:repeat(4, minmax(0, 1fr)); grid-auto-rows:1fr }
.board__tile{ position:relative; display:block; container-type:inline-size;
  padding:1.6rem clamp(1rem, 2vw, 1.6rem) 3.2rem; border-left:1px solid var(--line); color:var(--text) }
.board__tile:first-child{ border-left:0 }
/* One word group per tile, set from the tile's own width. 19cqi fits BEVERAGE
   (4.09em) with room to spare, even in a monospace fallback (4.96em). The cap
   keeps every tile name smaller than the section's h2. The 1.375rem line is the
   fallback for a browser without container units. */
.board__tile h3{ font-family:var(--display); font-weight:400; line-height:.92;
  text-transform:uppercase; letter-spacing:.02em; color:var(--accent-text);
  font-size:1.375rem;
  font-size:min(19cqi, calc(var(--fs-xl) * .8)) }
/* The arrow grows with the name (tile names are 36 to 46px from 768 up), capped at 2.2rem. */
.board__tile > i{ position:absolute; right:1.1rem; bottom:1rem; font-size:1.4rem; font-size:min(max(1.4rem, 12cqi), 2.2rem); color:var(--accent-text) }
@media (hover:hover){ a.board__tile:hover{ background:color-mix(in srgb, var(--accent) 16%, transparent) }
  a.board__tile:hover h3{ color:var(--text) } }
a.board__tile:active{ background:color-mix(in srgb, var(--accent) 26%, transparent) }
a.board__tile:focus-visible{ outline-offset:calc(var(--px) * -1 - 2px) }
@media (prefers-reduced-motion:no-preference){ .board__tile > i{ transition:transform var(--t-fast) var(--e-out) }
  @media (hover:hover){ a.board__tile:hover > i{ transform:translateX(3px) } } }
@media (max-width:900px){ .board__grid{ grid-template-columns:repeat(2, minmax(0, 1fr)) }
  .board__tile:nth-child(3){ border-left:0 } .board__tile:nth-child(n+3){ border-top:1px solid var(--line) } }
@media (max-width:560px){ .board__tile{ padding:1rem .8rem 2.6rem }
  .board__tile > i{ right:.8rem; bottom:.8rem } }

/* --------------------------------------------------------------------------
   Ticker. The one marquee on this page. It carries the room's actual voice,
   which is the thing a cafe sells that a feature list cannot.
   -------------------------------------------------------------------------- */
.ticker{ overflow:hidden; border-block:1px solid var(--line);
  background:var(--surface); padding-block:1rem }
.ticker__row{ display:flex; width:max-content }
.ticker__row span{ font-family:var(--display); font-size:var(--fs-md);
  text-transform:lowercase; padding-inline:1.6rem; display:inline-flex;
  align-items:center; gap:1.6rem; color:var(--text-dim) }
.ticker__row span::after{ content:""; width:10px; height:10px;
  background:var(--accent); flex:none }
@keyframes slide{ from{ transform:translate3d(0,0,0) } to{ transform:translate3d(-50%,0,0) } }

/* --------------------------------------------------------------------------
   Events. Full-bleed accent block, the one place the yellow takes over.
   -------------------------------------------------------------------------- */
.events{ background:var(--accent); color:var(--on-accent); padding-block:var(--sec) }
.events__in{ display:grid; gap:2rem; align-items:center;
  grid-template-columns:minmax(0,1.2fr) minmax(0,.8fr) }
.events h2{ font-size:var(--fs-xl) }
.events p{ font-size:var(--fs-md); color:rgba(34,33,27,.8); max-width:40ch; margin-top:1.1rem }
.events__cta{ justify-self:end }
@media (max-width: 780px){
  .events__in{ grid-template-columns:1fr }
  .events__cta{ justify-self:start }
}

/* --------------------------------------------------------------------------
   Find us
   -------------------------------------------------------------------------- */
.find{ padding-block:var(--sec) }
.find__in{ display:grid; gap:clamp(2rem,5vw,4rem);
  grid-template-columns:minmax(0,1fr) minmax(0,1fr); align-items:center }
.find h2{ font-size:var(--fs-xl); margin-bottom:1.8rem }
.find__rows{ display:grid; gap:1.4rem; margin-bottom:2rem }
.find__row{ display:grid; gap:.3rem }
.find__row dt{ font-family:var(--display); font-size:var(--fs-xs);
  color:var(--text-dim); letter-spacing:.07em; text-transform:uppercase }
.find__row dd{ margin:0; font-size:var(--fs-md); line-height:1.45 }
.find__row a:hover{ color:var(--accent-text) }
.find__art{ justify-self:center; width:min(420px,100%) }
.find__art img{ width:100% }
@media (max-width: 820px){
  .find__in{ grid-template-columns:1fr }
  .find__art{ order:-1; width:min(300px,80%); justify-self:start }
}
/* Opening hours (template-parts/hours.php): two groups, Normal first. Here and
   not in home.css, because the Prices and hours page prints the same partial. */
.hours__h{ font-family:var(--display); font-weight:400; font-size:var(--fs-sm); text-transform:uppercase;
  letter-spacing:.06em; color:var(--text); margin-bottom:.4rem }
.hours ul + .hours__h{ margin-top:1.1rem }
.hours li{ display:flex; align-items:baseline; gap:.55rem; font-size:var(--fs-bd); line-height:1.5 }
.hours li i{ color:var(--accent-text); flex:none; transform:translateY(.12em) }
.hours__note{ margin-top:.35rem; font-size:var(--fs-sm); color:var(--text-dim); max-width:44ch }

/* --------------------------------------------------------------------------
   Close + footer
   -------------------------------------------------------------------------- */
.close{ padding-block:var(--sec); border-top:1px solid var(--line); text-align:center }
.close h2{ font-size:var(--fs-mega); margin-bottom:1.4rem }
.close p{ font-size:var(--fs-md); color:var(--text-dim); margin-inline:auto; margin-bottom:2.2rem }
.close__cta{ display:flex; gap:.85rem; justify-content:center; flex-wrap:wrap }

.ftr{ border-top:1px solid var(--line); background:var(--surface); padding-block:3.5rem 2rem }
.ftr__in{ display:grid; gap:2.5rem; grid-template-columns:1.6fr 1fr 1fr }
.ftr h4{ font-family:var(--display); font-size:var(--fs-xs); letter-spacing:.08em;
  text-transform:uppercase; color:var(--text-dim); margin-bottom:1rem }
.ftr li+li{ margin-top:.55rem }
.ftr a{ display:inline-block; padding-block:.3rem }   /* a 44px-ish row without a taller list */
.ftr a:hover{ color:var(--accent-text) }
.ftr__brand{ display:flex; align-items:center; font-family:var(--display); font-size:1.1rem; text-transform:uppercase;
  margin-bottom:.9rem }   /* the mark beside the wordmark, as in the header */
.ftr__brand span{ color:var(--accent-text) }
.ftr__brand .custom-logo{ height:44px; max-width:200px }
/* The client's "-" bullets, as the ticker's square in the accent, real list markers. */
.ftr__blurb{ list-style:square; padding-left:1.1em; font-size:var(--fs-sm); color:var(--text-dim); max-width:34ch }
.ftr__blurb li::marker{ color:var(--accent-text) }
.ftr__blurb li + li{ margin-top:.35rem }
.ftr__base{ display:flex; justify-content:space-between; gap:1.5rem; flex-wrap:wrap;
  margin-top:3rem; padding-top:1.4rem; border-top:1px solid var(--line);
  font-size:var(--fs-xs); color:var(--text-dim) }
@media (max-width: 720px){ .ftr__in{ grid-template-columns:1fr 1fr }
  .ftr__col--brand{ grid-column:span 2 } }

/* --------------------------------------------------------------------------
   Motion. Everything below is gated: the page is fully readable and fully
   laid out with none of it running.
   -------------------------------------------------------------------------- */
@media (prefers-reduced-motion: no-preference){

  /* Hero headline boots in a character at a time, on a steps() curve so it
     snaps like bitmap text rather than easing like a fade. */
  .js .boot span{
    display:inline-block;
    animation: boot .34s var(--e-step) both;
    animation-delay: calc(var(--i) * var(--step, 34ms));   /* site.js sets --step so a long title still ends inside the failsafe */
  }
  /* The headline must never depend on an animation firing. `both` holds each
     character at opacity 0 until its delay elapses, so if the animation never
     starts the hero has no headline at all. A timer adds this class shortly
     after load and hands the type back unconditionally. */
  .js .boot.is-done span{ animation:none; opacity:1; transform:none }
  @keyframes boot{
    from{ opacity:0; transform:translateY(.22em) scaleY(.55) }
    to{ opacity:1; transform:none }
  }

  /* Section entrances. Driven by IntersectionObserver, never a scroll handler. */
  .js .reveal{ opacity:0; transform:translateY(18px);
    transition:opacity .55s var(--e-out), transform .55s var(--e-out) }
  .js .reveal.in{ opacity:1; transform:none }
  .js .reveal[data-d="1"]{ transition-delay:.07s }

  /* The ticker is the one marquee: it moves only for a mouse (a touch or keyboard
     reader has no way to pause it, WCAG 2.2.2) and the hover pauses it. */
  @media (hover:hover) and (pointer:fine){
    .ticker__row{ animation:slide 34s linear infinite }
    .ticker:hover .ticker__row{ animation-play-state:paused }
  }

  /* The shelf's card lifts and tints on the same short ease; under reduce the
     border change is instant and nothing slides. */
  .game{ transition:border-color var(--t-fast), transform var(--t-fast) var(--e-out),
    box-shadow var(--t-fast) var(--e-out) }
  @media (hover:hover){
    .game:hover:not([data-picked="true"]){ transform:translate(-2px,-2px); box-shadow:2px 2px 0 0 var(--line-firm) }
  }

  /* The phone menu is a bottom sheet: four hard steps up, the boot's curve. */
  .nav:popover-open{ animation:sheet var(--t-fast) var(--e-step) }
  @keyframes sheet{ from{ transform:translateY(100%) } }

  .game:hover .game__reel img,
  .game:focus-within .game__reel img{ animation:reel .78s steps(8) infinite }

  /* A poster lifts like a button and sinks on the press. The shadow keeps its
     depth on hover, since the corner notches are cut for that offset. Coming
     to the middle, a slide grows and lights up on the same ease, and --pull
     runs with the transform so a click mid-move has nothing off centre to snap to. */
  .slide{ transition:transform var(--t-mid) var(--e-out), --pull var(--t-mid) var(--e-out),
    translate var(--t-fast) var(--e-out), box-shadow var(--t-fast) var(--e-out), border-color var(--t-fast) linear }
  .slide__pic{ transition:opacity var(--t-mid) var(--e-out) }
  /* The lift and the press go straight up and down on translate, not on
     transform: the row snaps to a slide's transformed box, so a sideways nudge,
     or a transform transition restarted out of step with --pull, moves that
     target and the row hops under a wheel or a trackpad. A phone keeps :hover
     after a tap, which would leave a slide lifted once it has moved on. */
  @media (hover:hover){
    .slide:hover{ translate:0 -2px }
    .slide:hover .slide__go i{ transform:translateX(3px) }
  }
  .slide:active{ translate:0 var(--px); box-shadow:0 0 0 0 var(--text) }
  .slide__go i{ transition:transform var(--t-fast) var(--e-out) }
  /* Its arrows lift and press like .btn, the lift only on a real pointer. */
  .spotlight .arrows button{ transition:transform var(--t-fast) var(--e-out), box-shadow var(--t-fast) var(--e-out), background var(--t-fast) linear }
  @media (hover:hover){
    .spotlight .arrows button:hover:not(:disabled){ transform:translate(-2px,-2px); box-shadow:calc(var(--px) + 2px) calc(var(--px) + 2px) 0 0 var(--text) }
  }
  .spotlight .arrows button:active:not(:disabled){ transform:translate(var(--px),var(--px)); box-shadow:0 0 0 0 var(--text) }

}

@media (prefers-reduced-motion: reduce){
  html{ scroll-behavior:auto }
}

/* ==========================================================================
   WordPress additions. Everything above is the prototype's stylesheet as it
   shipped; everything below exists because the page is now a theme.
   ========================================================================== */

/* --------------------------------------------------------------------------
   WordPress plumbing. The admin bar sits over the sticky header for anyone
   logged in (staff, customers in their account), so the header parks under
   it. Under 600px WordPress lets the bar scroll away, so top goes back to 0.
   -------------------------------------------------------------------------- */
.admin-bar .hdr{ top:var(--wp-admin--admin-bar--height, 32px) }
@media (max-width: 600px){ .admin-bar .hdr{ top:0 } }
.screen-reader-text{
  position:absolute; width:1px; height:1px; padding:0; margin:-1px;
  overflow:hidden; clip:rect(0 0 0 0); white-space:nowrap; border:0;
}

/* Events now carries two buttons: mail us, or book the space outright. */
.events__cta{ display:flex; flex-wrap:wrap; gap:.85rem }

/* The booking page's pre-order lists link to /#game-ID: the card lands clear
   of the sticky header (html's scroll-padding) and wears the roll's selection cursor. */
.game:target{ border-color:var(--accent); box-shadow:var(--px) var(--px) 0 0 var(--accent) }

/* --------------------------------------------------------------------------
   Inner pages. Book, Account, the staff console, Privacy: one plain section
   on the same grid, the title in the display face, then whatever the editor
   holds. The base reset zeroes every margin, so prose gets its rhythm back
   here, on direct children only so none of it leaks into the booking UI.
   -------------------------------------------------------------------------- */
.doc{ padding-block:var(--sec) }
.doc h1{ font-size:var(--fs-xl); max-width:18ch; margin-bottom:2.2rem }
.doc__body > * + *{ margin-top:1.1em }
.doc__body > :is(p, ul, ol, blockquote){ max-width:68ch }
.doc__body > :is(h2, h3, h4){ font-family:var(--display); font-weight:400;
  line-height:1; text-transform:uppercase; letter-spacing:.02em; margin-top:2.4rem }
.doc__body > h2{ font-size:var(--fs-lg) }
.doc__body > h3{ font-size:1.6rem }
.doc__body > h4{ font-size:1.2rem }
.doc__body > ul{ list-style:square; padding-left:1.3em }
.doc__body > ol{ list-style:decimal; padding-left:1.5em }
.doc__body > :is(ul, ol) > li + li{ margin-top:.4em }
.doc__body img{ height:auto }
:where(.doc, .nb-ui) a:not([class]){ color:var(--accent-text); text-decoration:underline;
  text-underline-offset:3px }
.doc__alt{ margin-top:2.6rem; padding-top:1.2rem; border-top:1px solid var(--line);
  font-size:var(--fs-sm); color:var(--text-dim) }
/* The two notes above the booking form (B13, B11): house rules, so the accent
   edge the food note wears, not the red an error wears. */
.doc__top{ margin:0 0 .6rem; padding:.85rem 1.1rem; max-width:68ch; font-size:var(--fs-sm);
  background:var(--surface); border:2px solid var(--line-firm); border-left:10px solid var(--accent) }
.doc__top + :not(.doc__top){ margin-top:1.6rem }
/* An event's page: when it is on over the title, the poster in the slide's
   hard frame, then the body and the event's own button. */
.doc__when{ margin-bottom:.9rem; font-size:var(--fs-md); color:var(--accent-text) }
/* The poster whole, any shape: no taller than most of the screen, the frame
   shrunk to it so a portrait poster does not float in bands of the slide's checker. */
.doc__fig{ width:fit-content; max-width:720px; margin-bottom:2.2rem;
  background:repeating-conic-gradient(var(--surface-2) 0 25%, var(--surface) 0 50%) 0 0 / 4px 4px;
  border:var(--px) solid var(--text); box-shadow:var(--px) var(--px) 0 0 var(--text) }
.doc__fig img{ width:auto; height:auto; max-height:80vh; margin-inline:auto }
.doc__lead{ font-size:var(--fs-md); max-width:52ch; margin:-1.2rem 0 2.2rem }
.doc__cta{ margin-top:2.2rem }

/* ==========================================================================
   Booking UI. Everything the Nexora booking plugin prints sits inside .nb-ui
   (.nb-booking, .nb-account, .nb-staff). The plugin ships markup and
   behaviour; how it looks is this page's job, on the same rules as the rest
   of it: radius 0, no blur, hard offset blocks that collapse on press, one
   accent, tokens only.
   ========================================================================== */

/* Brand red, for errors. #BE3A28 reads 4.8:1 on the cream so light mode uses
   it straight, but only 3.2:1 on charcoal, so dark mode lifts it toward the
   cream for type: 5.4:1 on the surface. Same move --accent-text makes. */
:root{ --red:#BE3A28; --red-text:color-mix(in srgb, #BE3A28 62%, #F2F0E2) }
@media (prefers-color-scheme: light){
  :root:not([data-theme="dark"]){ --red-text:#BE3A28 }
}
:root[data-theme="light"]{ --red-text:#BE3A28 }

.nb-ui{ max-width:100%; overflow-wrap:break-word }
.nb-ui *{ border-radius:0 }
/* The display rules below would otherwise beat the browser's own [hidden]. */
.nb-ui [hidden]{ display:none !important }

.nb-ui > * + *,
.nb-ui form > * + *,
.nb-ui :is(.nb-result, .nb-notice) > * + *{ margin-top:1rem }
.nb-ui > * + :is(form, h2, h3, .nb-scroll){ margin-top:2.6rem }
/* A table under a form (the staff Holidays list) is not a direct child, so it gets its own gap. */
.nb-ui form + :is(table, .nb-scroll){ margin-top:1.6rem }
/* A <noscript> notice leading the UI is hidden whenever JS runs; it mustn't
   push the form down as if it were there. */
.nb-ui > noscript:first-child + *{ margin-top:0 }

.nb-ui :is(h2, h3, h4), .nb-ui .nb-result-title{ font-family:var(--display); font-weight:400;
  line-height:1; text-transform:uppercase; letter-spacing:.02em }
.nb-ui h2{ font-size:var(--fs-lg) }
.nb-ui h3, .nb-ui .nb-mine-title{ font-size:1.6rem }
.nb-ui h4, .nb-ui .nb-result-title{ font-size:1.2rem }

/* Labels read like the shelf's meta lines. Labels here wrap their inputs, so
   the control inside resets back to body type. */
.nb-ui label, .nb-ui legend{
  display:block; font-family:var(--mono); font-size:var(--fs-xs); font-weight:500;
  letter-spacing:.06em; text-transform:uppercase; color:var(--text-dim);
}
/* Bottom margin, so two fields in one paragraph get the same gap as two
   paragraphs (it collapses into the next block's top margin). */
.nb-ui label{ margin-bottom:1rem }
/* The class names are the fallback where :has() isn't supported (:is() drops
   just that argument there instead of the whole rule). */
.nb-ui label:is(.nb-kind label, .nb-inline, :has(> input[type="checkbox"], > input[type="radio"])){
  display:inline-flex; align-items:center; gap:.6rem; margin:0 1.4rem 0 0; font-family:var(--body);
  font-size:var(--fs-sm); font-weight:400; letter-spacing:0; text-transform:none;
  color:var(--text); cursor:pointer;
}
/* A fieldset only groups the radios; its legend is one more field label. */
.nb-ui fieldset{ margin:0; min-width:0; padding:0; border:0 }
.nb-ui legend{ padding:0; margin-bottom:.6rem }

.nb-ui :where(input:not([type="checkbox"], [type="radio"], [type="submit"], [type="button"], [type="reset"], [type="hidden"]), select, textarea){
  display:block; width:100%; max-width:34rem; margin-top:.45rem;
  padding:.8em 1em; border:2px solid var(--line-firm); border-radius:0;
  background-color:var(--surface); color:var(--text);
  font-family:var(--body); font-size:var(--fs-bd); font-weight:400; line-height:1.4;
  letter-spacing:normal; text-transform:none;
  transition:border-color var(--t-fast);
}
.nb-ui :where(input, select, textarea):hover{ border-color:var(--text) }
.nb-ui :where(input, select, textarea):focus-visible{ outline:var(--px) solid var(--accent-text);
  outline-offset:0; border-color:var(--accent) }
.nb-ui ::placeholder{ color:var(--text-dim); opacity:1 }
.nb-ui textarea{ min-height:6.5em; resize:vertical }
/* Chrome's date fields carry 1px of their own: pin the box to a text input's,
   so a date beside a select (the staff console's Day and Branch) lines up. */
.nb-ui input[type="date"]{ height:calc(var(--fs-bd) * 3 + 4px) }
/* Native arrows are rounded and differ per OS; this one is two hard halves. */
.nb-ui select{
  appearance:none; padding-right:2.6em; cursor:pointer;
  background-image:linear-gradient(45deg, transparent 50%, currentColor 50%),
                   linear-gradient(135deg, currentColor 50%, transparent 50%);
  background-position:calc(100% - 1.3em) 50%, calc(100% - .9em) 50%;
  background-size:.4em .4em; background-repeat:no-repeat;
}
/* Square ticks: an accent block inside a ring of ground, like a lit pixel. */
.nb-ui :where(input[type="checkbox"], input[type="radio"]){
  appearance:none; flex:none; width:1.15rem; height:1.15rem; margin:0;
  border:2px solid var(--line-firm); background:var(--surface); cursor:pointer;
}
.nb-ui :where(input[type="checkbox"], input[type="radio"]):checked{
  background:var(--accent); border-color:var(--text); box-shadow:inset 0 0 0 2px var(--surface);
}

/* Buttons are .btn: accent block, ink border, hard shadow, collapse on press.
   Not the dashboard's booking boxes: they are buttons too, but staff.css owns
   their size and place, and the press would shift them. */
.nb-ui :where(button:not(.nb-dash__item), .button, input[type="submit"], input[type="button"]){
  display:inline-flex; align-items:center; justify-content:center; gap:.55em;
  padding:.85em 1.4em; border:var(--px) solid var(--text); border-radius:0;
  background:var(--accent); color:var(--on-accent); cursor:pointer;
  font-family:var(--display); font-size:var(--fs-xs); line-height:1.2;
  letter-spacing:.06em; text-transform:uppercase; text-decoration:none;
  box-shadow:var(--px) var(--px) 0 0 var(--text);
  transition: transform var(--t-fast) var(--e-out),
              box-shadow var(--t-fast) var(--e-out),
              background var(--t-fast) linear;
}
.nb-ui :where(button:not(.nb-dash__item), .button, input[type="submit"], input[type="button"]):hover{
  background:var(--accent-lo);
  transform:translate(-2px,-2px);
  box-shadow: calc(var(--px) + 2px) calc(var(--px) + 2px) 0 0 var(--text);
}
.nb-ui :where(button:not(.nb-dash__item), .button, input[type="submit"], input[type="button"]):active{
  transform:translate(var(--px),var(--px)); box-shadow:0 0 0 0 var(--text) }
/* Secondary is .btn--ghost. */
.nb-ui :where(.nb-secondary, .nb-result button[type="button"]){ background:transparent; color:var(--text) }
.nb-ui :where(.nb-secondary, .nb-result button[type="button"]):hover{
  background:color-mix(in srgb, var(--accent) 16%, transparent) }
.nb-ui :where(button, .button, input[type="submit"], input[type="button"]):disabled{
  opacity:.4; pointer-events:none }
/* Row actions stay buttons, a size down so a table row is not all button. */
.nb-ui td :where(button, .button){ padding:.5em .85em }

.nb-ui .nb-tabs{ display:flex; flex-wrap:wrap; gap:.5rem }
.nb-ui .nb-tabs > :where(button, a, [role="tab"]){
  background:transparent; color:var(--text-dim); border:2px solid var(--line-firm);
  box-shadow:none; transform:none; padding:.65em 1.05em;
}
.nb-ui .nb-tabs > :where(button, a, [role="tab"]):hover{
  background:transparent; color:var(--text); border-color:var(--accent);
  box-shadow:none; transform:none }
.nb-ui .nb-tabs > [aria-selected="true"]{
  background:var(--accent); color:var(--on-accent); border-color:var(--text);
  box-shadow:var(--px) var(--px) 0 0 var(--text) }

/* Panels. The result is a framed panel like the menu board; the notice is the
   same panel on quieter ground. Errors carry a red block down the edge, so
   the state reads without leaning on the text colour alone. */
.nb-ui :is(.nb-notice, .nb-error, .nb-warn):not(.nb-result, .nb-msg):empty{ display:none }
/* The result is the form's live region: empty, it collapses but stays
   rendered, since a display:none region isn't read out when it fills. */
.nb-ui .nb-result:empty{ margin:0; padding:0; border:0; box-shadow:none }
.nb-ui .nb-result{ padding:1.2rem 1.3rem; border:var(--px) solid var(--line-firm);
  background:var(--surface); box-shadow:var(--px) var(--px) 0 0 var(--line) }
.nb-ui .nb-notice{ padding:.85rem 1.1rem; border:2px solid var(--line-firm);
  background:var(--surface-2); color:var(--text) }
.nb-ui :is(.nb-error, .nb-warn){ padding:.85rem 1.1rem; border:2px solid var(--red);
  border-left-width:10px; background:var(--surface) }
.nb-ui .nb-error{ color:var(--red-text) }
.nb-ui .nb-warn{ color:var(--text) }
/* The shelf's .tag. */
.nb-ui .nb-badge{ display:inline-block; font-family:var(--display); font-size:.6rem;
  line-height:1.2; letter-spacing:.08em; text-transform:uppercase; vertical-align:middle;
  padding:.28rem .5rem; border:2px solid var(--line-firm); color:var(--text) }

/* Tables: hard 2px rules, mono headers. Wide ones scroll inside .nb-scroll
   rather than pushing the page sideways on a phone. */
.nb-ui .nb-scroll{ max-width:100%; overflow-x:auto;
  scrollbar-width:thin; scrollbar-color:var(--line-firm) transparent }
.nb-ui table{ width:100%; border-collapse:collapse; border:2px solid var(--line-firm);
  background:var(--surface); font-size:var(--fs-sm) }
/* On a phone a scrolling table keeps a readable width instead of squeezing
   every cell to a word per line. */
.nb-ui .nb-scroll > table{ min-width:36rem }
.nb-ui table :is(th, td){ padding:.7rem .9rem; text-align:left; vertical-align:middle;
  border-bottom:2px solid var(--line) }
.nb-ui table th{ font-family:var(--mono); font-size:var(--fs-xs); font-weight:500;
  letter-spacing:.06em; text-transform:uppercase; white-space:nowrap;
  color:var(--text-dim); background:var(--surface-2); border-bottom-color:var(--line-firm) }
.nb-ui table tr:last-child > td{ border-bottom:0 }
/* The plugin keeps cells on one line; here they wrap, so a long reject reason
   in My bookings makes a taller row, not a table wider than the phone. */
.nb-ui table td{ white-space:normal }
/* My bookings on a phone: the When cell keeps a readable width (two lines, not six)
   and the table scrolls sideways as one strip inside .nb-scroll. */
.nb-ui .nb-mine td:nth-child(2){ min-width:12rem }

/* Staff console day picker: ‹ date › Today on one row, bottoms aligned. */
.nb-ui .nb-day-nav{ display:flex; flex-wrap:wrap; align-items:flex-end; gap:.6rem }
.nb-ui .nb-day-nav label{ margin:0 }
.nb-ui .nb-day-nav :is(input, select){ width:auto }

/* Staff console bookings: framed like the result panel. Cancelled and rejected
   ones go quiet with a dashed frame on bare ground, instead of the plugin's
   faded opacity, which takes their text below 4.5:1. */
.nb-ui .nb-card{ padding:1.1rem 1.3rem; border:2px solid var(--line-firm); background:var(--surface) }
.nb-ui .nb-card > * + *{ margin-top:.5rem }
.nb-ui .nb-card h3{ font-size:1.2rem }
.nb-ui .nb-card .nb-actions{ gap:.6rem; margin-top:1rem }
.nb-ui :is(.nb-card--cancelled, .nb-card--rejected){ opacity:1; border-style:dashed; background:transparent }
.nb-ui .nb-badge.nb-warn{ border-color:var(--red) }
/* The console's status line and a card's result line, as .nb-notice;
   :where() so .nb-error still wins. */
.nb-ui :where(.nb-msg:not(:empty), .nb-outcome){ padding:.85rem 1.1rem; border:2px solid var(--line-firm);
  background:var(--surface-2) }
/* A card's in-place question (approve? reject, with a reason?): set off from
   the card above it by a dashed rule, like a torn-off ticket. */
.nb-ui .nb-confirm{ padding-top:1rem; border-top:2px dashed var(--line-firm) }
.nb-ui .nb-confirm > * + *{ margin-top:.75rem }

/* Booking page additions: the food reminder, branch cards, the pre-order
   lists, member prices, and the change-time picker in My bookings. */
/* The house rule wears the accent down its edge, the way an error wears red. */
.nb-ui .nb-food-note{ border-left:10px solid var(--accent) }

/* Branches are cards, one per shop: the name in the display face, the address
   under it. The chosen card gets the ink frame and hard shadow of a button.
   fieldset.nb-branch > label outranks the radio-label rule above. */
.nb-ui fieldset.nb-branch > label{ margin:0 .8rem .8rem 0; padding:.85rem 1.1rem;
  border:2px solid var(--line-firm); background:var(--surface) }
.nb-ui fieldset.nb-branch > label:hover{ border-color:var(--text) }
.nb-ui fieldset.nb-branch > label:has(:checked){ border-color:var(--text);
  box-shadow:var(--px) var(--px) 0 0 var(--text) }
.nb-ui .nb-branch label > span{ font-family:var(--display); font-size:1.15rem; line-height:1.1;
  text-transform:uppercase; letter-spacing:.02em }
.nb-ui .nb-branch-address{ display:block; margin-top:.25rem; font-family:var(--mono);
  font-size:var(--fs-xs); text-transform:none; letter-spacing:.02em; color:var(--text-dim) }

/* Pre-order lists: a framed panel that opens like a menu board, a square
   +/- cursor for the marker, and one title per ruled line. */
.nb-ui .nb-preorder{ max-width:34rem; border:2px solid var(--line-firm); background:var(--surface) }
.nb-ui .nb-preorder > summary{ display:flex; align-items:center; gap:.7rem; padding:.8rem 1rem;
  list-style:none; cursor:pointer; font-family:var(--display); font-size:1.15rem; line-height:1.1;
  text-transform:uppercase; letter-spacing:.02em }
.nb-ui .nb-preorder > summary::-webkit-details-marker{ display:none }
.nb-ui .nb-preorder > summary::before{ content:"+"; flex:none; display:grid; place-items:center;
  width:1.15rem; height:1.15rem; border:2px solid var(--line-firm); font-family:var(--mono);
  font-size:.9rem; line-height:1 }
.nb-ui .nb-preorder > summary:hover{ color:var(--accent-text) }
.nb-ui .nb-preorder[open] > summary{ border-bottom:2px dashed var(--line-firm) }
.nb-ui .nb-preorder[open] > summary::before{ content:"-"; background:var(--accent);
  color:var(--on-accent); border-color:var(--text) }
.nb-ui .nb-preorder > fieldset{ padding:0 1rem .4rem }
.nb-ui .nb-preorder legend{ padding-top:.9rem; margin-bottom:.3rem; font-family:var(--body);
  font-size:var(--fs-sm); letter-spacing:0; text-transform:none }
.nb-ui .nb-preorder label.nb-inline{ display:flex; margin:0; padding:.55rem 0 }
.nb-ui .nb-preorder label.nb-inline + label{ border-top:1px solid var(--line) }

/* Member and birthday prices: their own line in the quote, mono, with the
   ticker's square bullet. */
.nb-ui .nb-member{ display:flex; align-items:center; gap:.55rem; margin-top:.35rem;
  font-family:var(--mono); font-size:var(--fs-sm); color:var(--accent-text) }
.nb-ui .nb-member::before{ content:""; flex:none; width:10px; height:10px; background:var(--accent) }

/* The quote's price line (blueprint 2.2): the normal and the member price are
   two same-styled items side by side, in the member line's look. The plugin's ", " between them is real text for other themes;
   here it is hidden from sight only, so a screen reader still hears a list. */
.nb-ui .nb-price__n, .nb-ui .nb-price__m{ display:inline-flex; align-items:center; gap:.55rem; white-space:nowrap;
  margin:.35rem 1.4rem 0 0; font-family:var(--mono); font-size:var(--fs-sm);
  font-variant-numeric:tabular-nums; color:var(--accent-text) }
.nb-ui .nb-price__n::before, .nb-ui .nb-price__m::before{ content:""; flex:none; width:10px; height:10px; background:var(--accent) }
.nb-ui .nb-price__sep{ position:absolute; width:1px; height:1px; padding:0; margin:-1px;
  overflow:hidden; clip:rect(0 0 0 0); white-space:nowrap; border:0 }
/* With a member price the label has a row to itself and the two items share the
   next one, in two columns, so they keep one top edge at every width (blueprint B10)
   and keep their bullet and size. The comma is out of flow. At 390px the two do not
   fit in 305px side by side at full size, so each may wrap inside its own column
   rather than push out of the panel. A single price stays inline, as before. */
.nb-ui .nb-price:has(.nb-price__m){ display:grid; grid-template-columns:auto auto; justify-content:start; column-gap:1rem }
.nb-ui .nb-price:has(.nb-price__m) > :is(.nb-price__n, .nb-price__m){ grid-row:2; margin-right:0; white-space:normal }
.nb-ui .nb-price:has(.nb-price__m) > .nb-price__n{ grid-column:1 }
.nb-ui .nb-price:has(.nb-price__m) > .nb-price__m{ grid-column:2 }
/* The member note under it: the house-rule edge in the accent (booking C8). */
.nb-ui .nb-member-note{ padding:.7rem 1rem; border-left:6px solid var(--accent); background:var(--surface-2);
  font-size:var(--fs-sm); color:var(--text) }
.nb-ui .nb-member-note a{ white-space:nowrap }

/* WhatsApp links in errors, notices and My bookings. The plugin's anchor has
   no class, so it is styled by its href: a ghost button that never competes
   with the accent Book button, and never takes the error's red. */
.nb-ui a[href^="https://wa.me/"]{ display:inline-flex; align-items:center; min-height:44px; padding:.55em 1em; margin-top:.6rem;
  border:2px solid var(--text); color:var(--text); background:var(--surface); text-decoration:none;
  font-family:var(--display); font-size:var(--fs-xs); letter-spacing:.06em; text-transform:uppercase;
  box-shadow:var(--px) var(--px) 0 0 var(--text) }
@media (hover:hover){ .nb-ui a[href^="https://wa.me/"]:hover{ background:color-mix(in srgb, var(--accent) 16%, var(--surface)) } }
.nb-ui a[href^="https://wa.me/"]:active{ transform:translate(var(--px), var(--px)); box-shadow:none }
.nb-ui td a[href^="https://wa.me/"]{ margin-top:0 }

/* My bookings: "Change requested" and pre-order lines under a cell, and the
   change-time picker as a torn-off row under its booking. */
.nb-ui .nb-mine-note{ margin-top:.45rem; padding:.3rem .6rem; border-left:6px solid var(--accent);
  background:var(--surface-2); font-family:var(--mono); font-size:var(--fs-xs); color:var(--text) }
.nb-ui .nb-mine tr.nb-change > td{ padding-block:1rem; background:var(--surface-2);
  border-top:2px dashed var(--line-firm) }
.nb-ui .nb-change label{ display:inline-block; margin:0 1rem .8rem 0; vertical-align:top }
.nb-ui .nb-change :is(input, select){ width:auto; min-width:11em }
.nb-ui .nb-change fieldset > p{ margin-top:.2rem }

/* ==========================================================================
   Staff dashboard. staff.css lays out the grid and staff.js puts every box
   and line in it, so nothing here sets a size, a spacing inside the grid or
   a position: this only paints. One fill per state, then a frame in the text
   colour, so each box clears 3:1 against the grid on both themes (yellow on
   cream alone would not). Text on each fill:
     booked  ink on #F7BE2C  9.5:1     pending  ink on #FBD469  11.3:1
     arrived ink on #7CC46A  7.7:1     change   ink on #7FB2E0   7.2:1
     late    --bg on --red-text  4.8:1 light, 5.9:1 dark
     done, no-show: --text on a 35% tint, 6.7:1 or better
   Green and blue are lifted to the yellow's weight, so the four live states
   read as one set of arcade lamps.
   ========================================================================== */
:root{ --green:#7CC46A; --blue:#7FB2E0 }

/* The branch picker: the Day input's box beside it (its 2px frame, .8em
   padding and 1.4 line-height at the body size), in the display face so the
   shop's name reads like its sign. */
.nb-ui .nb-dash__branch select{ font-family:var(--display); font-size:1.15rem; line-height:calc(var(--fs-bd) * 1.4);
  text-transform:uppercase; letter-spacing:.02em; padding:calc(var(--fs-bd) * .8) 2.4em calc(var(--fs-bd) * .8) .8em }
.nb-ui .nb-dash__key{ font-family:var(--mono); font-size:var(--fs-xs); border:2px solid var(--text) }
.nb-ui .nb-dash__note{ font-size:var(--fs-sm); color:var(--text-dim) }

/* The board: the menu board's frame, mono headers like a table's. */
.nb-ui .nb-dash__grid{ background:var(--surface); color:var(--text); border:2px solid var(--line-firm);
  scrollbar-color:var(--line-firm) transparent }
.nb-ui :is(.nb-dash__corner, .nb-dash__hour){ background:var(--surface-2); color:var(--text-dim);
  font-family:var(--mono); font-weight:500; letter-spacing:.06em; text-transform:uppercase;
  border-bottom:2px solid var(--line-firm) }
.nb-ui .nb-dash__hour{ border-left:1px solid var(--line-firm) }
/* The room names stick over what scrolls under them, so their ground is solid. */
.nb-ui :is(.nb-dash__corner, .nb-dash__label){ border-right:2px solid var(--line-firm) }
.nb-ui .nb-dash__label{ background:var(--surface-2); color:var(--text); font-family:var(--display);
  font-size:1.05rem; font-weight:400; text-transform:uppercase; letter-spacing:.02em;
  border-bottom:1px solid var(--line) }
.nb-ui .nb-dash__type{ font-family:var(--mono); letter-spacing:.02em; text-transform:none; color:var(--text-dim) }
.nb-ui .nb-dash__cell{ border-left:1px solid var(--line); border-bottom:1px solid var(--line) }
.nb-ui .nb-dash__cell--hour{ border-left-color:var(--line-firm) }
.nb-ui .nb-dash__cell:hover{ background:color-mix(in srgb, var(--accent) 16%, transparent) }
/* Closed between sessions: hard hatching. */
.nb-ui .nb-dash__gap{ color:var(--text-dim); font-family:var(--display); font-weight:400;
  letter-spacing:.14em; text-transform:uppercase;
  background:repeating-linear-gradient(135deg, var(--line) 0 3px, transparent 3px 9px) var(--surface) }
/* B12: the console shows no staff-only marking. The plugin still prints the
   band, the legend chip and the cell class (staff.js), so the theme hides the
   first two and drops the tint; the cells stay live. The band's selector is one
   class deeper than staff.css's `.nb-dash .nb-dash__band`, so load order is moot. */
.nb-ui .nb-dash .nb-dash__band, .nb-ui .nb-dash__key--staff{ display:none }
.nb-ui .nb-dash__cell--staff{ background:none }

/* Booking boxes. The hover is the button's hard shadow without its lift. */
.nb-ui .nb-dash__item{ border:2px solid var(--text); background:var(--accent); color:var(--on-accent);
  font-family:var(--body) }
.nb-ui .nb-dash__item:hover{ box-shadow:var(--px) var(--px) 0 0 var(--text) }
.nb-ui .nb-dash__tag{ font-family:var(--display); font-weight:400; letter-spacing:.08em }
/* The states, also worn by the colour key. Change comes last: it wins. */
.nb-ui .nb-dash__item--pending{ background:var(--accent-lo); color:var(--on-accent); border-style:dashed }
.nb-ui .nb-dash__item--booked{ background:var(--accent); color:var(--on-accent) }
.nb-ui .nb-dash__item--late{ background:var(--red-text); color:var(--bg) }
.nb-ui .nb-dash__item--arrived{ background:var(--green); color:var(--on-accent) }
.nb-ui .nb-dash__item--done{ background:color-mix(in srgb, var(--green) 35%, var(--surface));
  color:var(--text); border-color:var(--text-dim) }
.nb-ui .nb-dash__item--noshow{ background:color-mix(in srgb, var(--red) 35%, var(--surface));
  color:var(--text); border-color:var(--text-dim) }
.nb-ui .nb-dash__item--change{ background:var(--blue); color:var(--on-accent) }
/* Where a drag or a resize lands: a dashed cursor over a yellow wash. */
.nb-ui .nb-dash__ghost{ border:2px dashed var(--text); color:var(--text); font-family:var(--mono);
  background:color-mix(in srgb, var(--accent) 25%, transparent) }

/* Now: the brand red, with a 1px rim of ground each side so it reads across
   a red or yellow box too. Red on the grid: 5.2:1 light, 5.4:1 dark. */
.nb-ui .nb-dash__now{ background:var(--red-text); box-shadow:-1px 0 0 var(--bg), 1px 0 0 var(--bg) }
.nb-ui .nb-dash__now-label{ background:var(--red-text); color:var(--bg); font-family:var(--mono); font-weight:500 }

/* The panel and the new-booking form under the board: the result panel in
   ink, with the button's hard shadow. A resize or an edit form inside it is
   torn off by a dashed rule, like a card's confirm step. */
.nb-ui .nb-dash__panel{ background:var(--surface); color:var(--text);
  border:var(--px) solid var(--text); box-shadow:var(--px) var(--px) 0 0 var(--text) }
.nb-ui .nb-dash__panel > * + *{ margin-top:.75rem }
.nb-ui .nb-dash__panel > * + :is(.nb-dash__form, .nb-dash__resize){ padding-top:1rem;
  border-top:2px dashed var(--line-firm) }
/* A change request wears the blue down its edge, as an error wears red. */
.nb-ui .nb-dash__change{ padding:.85rem 1.1rem; border:2px solid var(--line-firm);
  border-left:10px solid var(--blue); background:var(--surface-2) }
.nb-ui .nb-dash__preview{ font-family:var(--mono); font-size:var(--fs-sm); color:var(--accent-text) }

/* Loading, closed and error states. */
.nb-ui .nb-dash__skel{ background:var(--surface-2) }
.nb-ui .nb-dash__state--closed{ padding:.85rem 1.1rem; border:2px solid var(--line-firm); background:var(--surface-2) }
.nb-ui .nb-dash__state--error{ padding:.85rem 1.1rem; border:2px solid var(--red);
  border-left-width:10px; background:var(--surface); color:var(--red-text) }
.nb-ui .nb-dash__state--error > * + *{ margin-top:.75rem }

/* Older browsers. A declaration with var() parses whatever the browser makes of
   the value inside, so a plain fallback beside it cannot help: only @supports can.
   Without color-mix the washes over the art vanish, so the copy gets a solid ground. */
@supports not (color:color-mix(in srgb, red, red)){
  .hero__in{ background:var(--bg); padding:1rem }
  :root{ --red-text:#D27F6F }
}
/* Without svh the carousel's height sum is invalid and the width collapses. */
@supports not (height:1svh){
  .spotlight{ --slide-w:min(70vw, 420px) }
}
