/* Page skeleton: the artifact host added this in the preview (see tools/build_ples.py). */
:root { color-scheme: light; padding-top: env(safe-area-inset-top, 0px); padding-bottom: env(safe-area-inset-bottom, 0px); }
body { margin: 0; }
img { max-width: 100%; }
[hidden] { display: none !important; }

/* Layout: the seating chart at the entrance of a ball, made live. A wide engraved floor plan, place cards at each table,
   and a paper ticket beside it that fills in as you choose (it docks to the bottom on phones). Colours and faces follow aug.sk. */
:root {
  --bg: #f0ede2;
  --paper: #fbf9f3;
  --ink: #2a2320;
  --muted: #6c6258;
  --line: rgba(64, 44, 28, .15);
  --line-strong: rgba(64, 44, 28, .32);
  --accent: #9a3839;
  --accent-deep: #7c2a2b;
  --accent-ink: #ffffff;
  --accent-soft: rgba(154, 56, 57, .08);
  --gold: #a8741f;
  --gold-fill: #dd9933;
  --gold-soft: rgba(221, 153, 51, .18);
  --ok: #2e7a4f;
  --ok-soft: rgba(46, 122, 79, .11);
  --warn: #a35f0e;
  --warn-soft: rgba(221, 153, 51, .16);
  --bad: #b2402f;
  --bad-soft: rgba(178, 64, 47, .1);
  --cloth: #fffdf7;
  --taken: #cbbfac;
  --taken-ink: #8a7d6c;
  --floor-a: rgba(150, 105, 55, .10);
  --floor-b: rgba(150, 105, 55, .05);
  --glass: rgba(251, 249, 243, .82);
  --shadow: 0 1px 0 rgba(255, 255, 255, .6) inset, 0 18px 40px -26px rgba(60, 35, 15, .45);
  --shadow-lift: 0 30px 60px -30px rgba(50, 25, 10, .5);
  --scrim: rgba(38, 26, 20, .42);
  --dk: 0;
  --spot: 221 153 51;
  --spot-a: 0;
  --font-display: "Literata", Georgia, "Times New Roman", serif;
  --font-body: "Rubik", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --font-code: ui-monospace, "SFMono-Regular", "Cascadia Mono", Consolas, monospace;
  --ease-out: cubic-bezier(.23, 1, .32, 1);
  --ease-io: cubic-bezier(.77, 0, .175, 1);
  --spring: cubic-bezier(.34, 1.4, .64, 1);
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #18120f; --paper: #221a16; --ink: #f2e9da; --muted: #b0a291; --line: rgba(255, 232, 200, .12); --line-strong: rgba(255, 232, 200, .28);
    --accent: #d8706c; --accent-deep: #e58985; --accent-ink: #1b0f0d; --accent-soft: rgba(216, 112, 108, .13);
    --gold: #e3b062; --gold-fill: #e3a94c; --gold-soft: rgba(227, 169, 76, .18); --ok: #74cf98; --ok-soft: rgba(116, 207, 152, .13);
    --warn: #e9b465; --warn-soft: rgba(233, 180, 101, .15); --bad: #f08c78; --bad-soft: rgba(240, 140, 120, .13);
    --cloth: #2b211c; --taken: #57493e; --taken-ink: #a39381; --floor-a: rgba(255, 214, 160, .07); --floor-b: rgba(255, 214, 160, .03);
    --glass: rgba(30, 23, 19, .82); --shadow: 0 1px 0 rgba(255, 240, 220, .04) inset, 0 22px 44px -24px rgba(0, 0, 0, .8);
    --shadow-lift: 0 30px 60px -24px rgba(0, 0, 0, .85); --scrim: rgba(8, 5, 4, .62); --dk: 1; --spot: 240 186 100; --spot-a: .12;
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --bg: #18120f; --paper: #221a16; --ink: #f2e9da; --muted: #b0a291; --line: rgba(255, 232, 200, .12); --line-strong: rgba(255, 232, 200, .28);
  --accent: #d8706c; --accent-deep: #e58985; --accent-ink: #1b0f0d; --accent-soft: rgba(216, 112, 108, .13);
  --gold: #e3b062; --gold-fill: #e3a94c; --gold-soft: rgba(227, 169, 76, .18); --ok: #74cf98; --ok-soft: rgba(116, 207, 152, .13);
  --warn: #e9b465; --warn-soft: rgba(233, 180, 101, .15); --bad: #f08c78; --bad-soft: rgba(240, 140, 120, .13);
  --cloth: #2b211c; --taken: #57493e; --taken-ink: #a39381; --floor-a: rgba(255, 214, 160, .07); --floor-b: rgba(255, 214, 160, .03);
  --glass: rgba(30, 23, 19, .82); --shadow: 0 1px 0 rgba(255, 240, 220, .04) inset, 0 22px 44px -24px rgba(0, 0, 0, .8);
  --shadow-lift: 0 30px 60px -24px rgba(0, 0, 0, .85); --scrim: rgba(8, 5, 4, .62); --dk: 1; --spot: 240 186 100; --spot-a: .12;
  color-scheme: dark;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  background: var(--bg); color: var(--ink); font-family: var(--font-body); font-size: 16px; line-height: 1.55;
  padding-block: 0 64px;
  padding-left: max(16px, env(safe-area-inset-left, 0px));
  padding-right: max(16px, env(safe-area-inset-right, 0px));
  -webkit-tap-highlight-color: transparent;
}
body::before { content: ""; position: fixed; inset: 0 0 auto; height: env(safe-area-inset-top, 0px); background: var(--bg); z-index: 50; }
button, input, select { font: inherit; color: inherit; }
button { cursor: pointer; }
:focus-visible { outline: 2px solid var(--gold-fill); outline-offset: 3px; border-radius: 6px; }
h1, h2, h3 { font-family: var(--font-display); font-weight: 600; text-wrap: balance; margin: 0; letter-spacing: -.01em; }
p { margin: 0; }
.wrap { max-width: 1180px; margin: 0 auto; display: flex; flex-direction: column; gap: 28px; }
.eyebrow { font-size: 12px; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: var(--accent); }
.muted { color: var(--muted); }
.num { font-variant-numeric: tabular-nums; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* header */
.top {
  position: sticky; top: env(safe-area-inset-top, 0px); z-index: 40; margin-inline: calc(-1 * max(16px, env(safe-area-inset-left, 0px))) calc(-1 * max(16px, env(safe-area-inset-right, 0px)));
  padding: 10px max(16px, env(safe-area-inset-right, 0px)) 10px max(16px, env(safe-area-inset-left, 0px));
  background: var(--glass); -webkit-backdrop-filter: blur(14px) saturate(1.3); backdrop-filter: blur(14px) saturate(1.3);
  border-bottom: 1px solid var(--line);
}
.top-in { max-width: 1180px; margin: 0 auto; display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.brand { display: flex; align-items: center; gap: 12px; min-width: 0; text-decoration: none; color: inherit; }
.brand img { width: 44px; height: auto; display: block; flex: none; }
.brand b { display: block; font-family: var(--font-display); font-weight: 600; font-size: 17px; line-height: 1.15; }
.brand small { display: block; font-size: 12.5px; color: var(--muted); line-height: 1.3; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.brand > span { min-width: 0; }
.tools { display: flex; align-items: center; gap: 8px; flex: none; }
.icon-btn { width: 38px; height: 38px; border-radius: 10px; border: 1px solid var(--line); background: var(--paper); display: grid; place-items: center; color: var(--gold); transition: transform .16s var(--ease-out); }
.icon-btn:active { transform: scale(.94); }
.icon-btn svg { width: 19px; height: 19px; grid-area: 1 / 1; }
/* sun and moon share one spot; --dk (0 light, 1 dark) turns one out and the other in */
.theme-sun, .theme-moon { transition: transform .7s var(--spring), opacity .35s ease; }
.theme-sun { opacity: calc(1 - var(--dk)); transform: rotate(calc(var(--dk) * 120deg)) scale(calc(1 - var(--dk) * .6)); }
.theme-moon { opacity: var(--dk); transform: rotate(calc((1 - var(--dk)) * -120deg)) scale(calc(.4 + var(--dk) * .6)); }
.theme-sun path { transition: stroke-dashoffset .6s var(--ease-out); stroke-dasharray: 3; stroke-dashoffset: calc(var(--dk) * 3); }
::view-transition-old(root), ::view-transition-new(root) { animation: none; mix-blend-mode: normal; }
::view-transition-new(root) { z-index: 2; }
:root.theming, :root.theming * { transition: background-color .5s ease, color .5s ease, border-color .5s ease, fill .5s ease, stroke .5s ease !important; }

/* evening lights: a canvas behind everything, only visible in the dark theme */
#bokeh { position: fixed; inset: 0; width: 100%; height: 100%; z-index: 0; pointer-events: none; opacity: var(--dk); transition: opacity 1.2s ease; }
.wrap { position: relative; z-index: 1; }

/* intro */
.intro { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); gap: 20px 48px; align-items: end; padding-top: 36px; }
.intro h1 { font-size: clamp(32px, 5.2vw, 54px); line-height: 1.04; font-weight: 600; letter-spacing: -.025em; margin-top: 10px; }
.intro h1 em { font-style: italic; font-weight: 500; color: var(--accent); }
.intro .lead { margin-top: 14px; color: var(--muted); font-size: 17px; max-width: 54ch; }
.facts { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0; border-top: 1px solid var(--line-strong); }
.facts div { padding: 12px 0 12px; border-bottom: 1px solid var(--line); display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.facts div:nth-child(odd) { padding-right: 16px; }
.facts div:nth-child(even) { padding-left: 16px; border-left: 1px solid var(--line); }
.facts dt { font-size: 12px; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }
.facts dd { margin: 0; font-family: var(--font-display); font-size: 18px; font-weight: 500; line-height: 1.3; }
.facts dd b { color: var(--accent); font-weight: 600; }
.where { display: inline-flex; align-items: center; gap: 2px; margin-top: 2px; border: 0; background: none; padding: 2px 0; font: 500 13px/1.3 var(--font-body); color: var(--accent); }
.where svg { width: 15px; height: 15px; transition: transform .3s var(--ease-out); }
.where[aria-expanded="true"] svg { transform: rotate(180deg); }
@media (hover: hover) { .where:hover { text-decoration: underline; text-underline-offset: 3px; } }
.facts dd .where { display: flex; }

/* venue: folded away until asked for */
.venue { grid-column: 1 / -1; display: grid; grid-template-rows: 0fr; transition: grid-template-rows .45s var(--ease-out); }
.venue.open { grid-template-rows: 1fr; }
.venue-clip { overflow: hidden; min-height: 0; }
.venue-in { display: grid; grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr); gap: 0; margin-top: 4px; overflow: hidden; opacity: 0; transform: translateY(-6px); transition: opacity .3s ease, transform .45s var(--ease-out); }
.venue.open .venue-in { opacity: 1; transform: none; }
.v-map { position: relative; background: var(--bg); border-right: 1px solid var(--line); min-width: 0; }
.v-map svg { display: block; width: 100%; height: 100%; min-height: 260px; }
.v-map .rd { fill: none; stroke: var(--paper); stroke-linecap: round; stroke-linejoin: round; }
.v-map .rd-case { fill: none; stroke: var(--line-strong); stroke-linecap: round; stroke-linejoin: round; }
.v-map .path { fill: none; stroke: var(--line-strong); stroke-width: 1; stroke-dasharray: 2 3; }
.v-map .bld { fill: var(--taken); opacity: .45; }
.v-map .grn { fill: var(--ok-soft); }
.v-map .tram { fill: none; stroke: var(--muted); stroke-width: 1.4; stroke-dasharray: 6 3; opacity: .6; }
.v-map .ven { fill: var(--accent); }
.v-map .ven-lbl { fill: var(--accent); font: 600 12px var(--font-body); paint-order: stroke; stroke: var(--bg); stroke-width: 4px; stroke-linejoin: round; }
.v-map .st-lbl { fill: var(--muted); font: italic 500 11px var(--font-display); paint-order: stroke; stroke: var(--bg); stroke-width: 3px; }
.v-map .pk { cursor: pointer; }
.v-map .pk-area { fill: var(--gold-soft); stroke: var(--gold-fill); stroke-width: 1; transition: fill .2s ease; }
.v-map .pk-pin { fill: var(--paper); stroke: var(--gold); stroke-width: 1.5; transition: fill .2s ease, transform .3s var(--spring); transform-box: fill-box; transform-origin: center; }
.v-map .pk-txt { fill: var(--gold); font: 700 10px var(--font-body); text-anchor: middle; dominant-baseline: central; pointer-events: none; }
.v-map .pk.on .pk-area { fill: var(--gold-fill); fill-opacity: .45; }
.v-map .pk.on .pk-pin { fill: var(--gold-fill); stroke: var(--gold-fill); transform: scale(1.25); }
.v-map .pk.on .pk-txt { fill: var(--paper); }
.v-map .bus { fill: var(--paper); stroke: var(--ink); stroke-width: 1.3; }
.v-map .bus-txt { fill: var(--ink); font: 700 8.5px var(--font-body); text-anchor: middle; dominant-baseline: central; }
.v-map .scale { stroke: var(--muted); stroke-width: 1.5; fill: none; }
.v-map .scale-txt { fill: var(--muted); font: 10.5px var(--font-body); }
.v-attr { position: absolute; right: 6px; bottom: 4px; font-size: 10.5px; color: var(--muted); }
.v-attr a { color: inherit; }
.v-info { padding: 18px 20px; display: flex; flex-direction: column; gap: 14px; min-width: 0; }
.v-info h3 { font-size: 19px; line-height: 1.2; }
.v-info .addr { font-size: 14px; color: var(--muted); margin-top: 2px; }
.v-nav { display: flex; flex-wrap: wrap; gap: 6px; }
.v-nav a, .v-nav button { height: 34px; padding: 0 11px; border-radius: 8px; border: 1px solid var(--line-strong); background: transparent; display: inline-flex; align-items: center; gap: 6px; font-size: 13.5px; font-weight: 500; color: var(--ink); text-decoration: none; }
.v-nav svg { width: 15px; height: 15px; }
@media (hover: hover) { .v-nav a:hover, .v-nav button:hover { background: var(--accent-soft); } }
.v-sec { display: flex; flex-direction: column; gap: 6px; }
.v-sec h4 { margin: 0; font-size: 11.5px; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); font-weight: 500; }
.v-park { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; }
.v-park li { display: grid; grid-template-columns: 24px minmax(0, 1fr) auto; gap: 10px; align-items: center; padding: 7px 6px; margin-inline: -6px; border-radius: 8px; cursor: pointer; transition: background-color .2s ease; font-size: 14.5px; }
.v-park li.on { background: var(--gold-soft); }
.v-park li > i { width: 22px; height: 22px; border-radius: 50%; display: grid; place-items: center; border: 1.5px solid var(--gold); color: var(--gold); font: 700 10.5px var(--font-body); font-style: normal; }
.v-park li.on > i { background: var(--gold-fill); border-color: var(--gold-fill); color: var(--paper); }
.v-park li small { display: block; font-size: 12.5px; color: var(--muted); }
.v-park li a { font-size: 13px; color: var(--accent); text-decoration: none; font-weight: 500; white-space: nowrap; }
@media (hover: hover) { .v-park li:hover { background: var(--gold-soft); } .v-park li a:hover { text-decoration: underline; } }
.v-note { font-size: 13px; color: var(--muted); }

/* booking layout */
.book { display: grid; grid-template-columns: minmax(0, 1fr) 330px; gap: 24px; align-items: start; }
.panel { background: var(--paper); border: 1px solid var(--line); border-radius: 14px; box-shadow: var(--shadow); min-width: 0; }
/* a soft warm light follows the mouse over panels; --spot-a is 0 in the light theme, so it only shows in the evening */
@property --glow { syntax: '<number>'; inherits: false; initial-value: 0; }
.panel, .plan-box, .t-part { --glow: 0; transition: --glow .5s ease; }
.wrap :is(.panel, .plan-box, .t-part) { background-image: radial-gradient(380px circle at var(--mx, 50%) var(--my, 50%), rgb(var(--spot) / calc(var(--spot-a) * var(--glow))), transparent 70%); }
.lit { --glow: 1; }

/* seating chart */
.chart { padding: 20px 20px 16px; display: flex; flex-direction: column; gap: 14px; }
.chart-head { display: flex; flex-wrap: wrap; gap: 12px 24px; align-items: end; justify-content: space-between; }
.chart-head h2 { font-size: 22px; }
.chart-head p { font-size: 14.5px; color: var(--muted); margin-top: 2px; }
.find { position: relative; flex: 1 1 260px; max-width: 360px; min-width: 0; }
.find label { display: block; font-size: 13px; font-weight: 500; margin-bottom: 5px; }
.find input { width: 100%; height: 42px; border-radius: 10px; border: 1px solid var(--line-strong); background: var(--bg); padding: 0 38px 0 38px; font-size: 16px; transition: border-color .2s ease, box-shadow .2s ease; }
.find input:focus { outline: none; border-color: var(--gold-fill); box-shadow: 0 0 0 3px var(--gold-soft); }
.find .ico { position: absolute; left: 12px; bottom: 12px; width: 18px; height: 18px; color: var(--muted); pointer-events: none; }
.find .clear { position: absolute; right: 6px; bottom: 6px; width: 30px; height: 30px; border: 0; border-radius: 7px; background: transparent; color: var(--muted); display: grid; place-items: center; }
.hits { display: flex; flex-wrap: wrap; gap: 6px; min-height: 0; }
.hits:empty { display: none; }
.hit { display: inline-flex; align-items: center; gap: 8px; border: 1px solid var(--gold-fill); background: var(--gold-soft); color: var(--ink); border-radius: 999px; padding: 5px 12px 5px 10px; font-size: 14px; animation: hitIn .35s var(--ease-out) backwards; }
.hit i { font-family: var(--font-display); font-style: italic; font-weight: 500; }
.hit span { color: var(--muted); font-size: 13px; }
.hit.none { border-color: var(--line-strong); background: transparent; color: var(--muted); }
@keyframes hitIn { from { opacity: .35; transform: translateY(4px); } }

.plan-box { position: relative; border-radius: 10px; background: var(--bg); border: 1px solid var(--line); overflow: hidden; }
.plan { display: block; width: 100%; height: auto; }
.plan text { font-family: var(--font-body); }
.plan .wall { stroke: var(--line-strong); stroke-width: 2; fill: none; }
.plan .win { stroke: var(--gold); stroke-width: 1.4; fill: var(--paper); }
.plan .lbl { fill: var(--muted); font-size: 11px; letter-spacing: .32em; font-weight: 500; }
.plan .floor { fill: url(#herring); stroke: var(--line); }
.plan .floor-lbl { fill: var(--muted); font-family: var(--font-display); font-style: italic; font-size: 22px; letter-spacing: .06em; opacity: .8; }
.tbl { cursor: pointer; outline: none; transform-box: fill-box; transform-origin: center; transition: transform .4s var(--spring); }
@media (hover: hover) { .tbl:hover { transform: scale(1.06); } }
.tbl:active { transform: scale(.97); }
.tbl .cloth { fill: var(--cloth); stroke: var(--line-strong); stroke-width: 1.2; transition: stroke .2s ease, fill .2s ease; }
.tbl .tno { fill: var(--ink); font-family: var(--font-display); font-weight: 600; font-size: 21px; text-anchor: middle; dominant-baseline: central; }
.tbl .free { fill: var(--muted); font-size: 11.5px; text-anchor: middle; }
.tbl .free.full { fill: var(--taken-ink); }
.tbl .s { stroke-width: 1.3; transition: fill .2s ease, stroke .2s ease; }
.tbl .s.f { fill: var(--paper); stroke: var(--muted); stroke-width: 1.5; }
.tbl .s.t { fill: var(--taken); stroke: var(--taken); }
.tbl .s.m { fill: var(--accent); stroke: var(--accent); }
.tbl .s.h { fill: var(--gold-fill); stroke: var(--gold-fill); }
.tbl .ring { fill: none; stroke: var(--gold-fill); stroke-width: 2; stroke-dasharray: 3 5; opacity: 0; transition: opacity .3s ease; }
.tbl.match .ring { opacity: 1; animation: spin 14s linear infinite; transform-box: fill-box; transform-origin: center; }
.tbl.mine .cloth { stroke: var(--accent); stroke-width: 2; }
.tbl.isfull .tno { fill: var(--taken-ink); }
.tbl .s.r { fill: var(--bg); stroke: var(--gold); stroke-width: 1.3; stroke-dasharray: 2 2; }
.tbl.reserved .cloth { fill: var(--gold-soft); stroke: var(--gold); stroke-dasharray: 4 3; }
.tbl.reserved .tno { fill: var(--gold); }
.tbl .free.res { fill: var(--gold); font-style: italic; }
.tbl .hover-disc { fill: var(--accent-soft); opacity: 0; transition: opacity .2s ease; }
@media (hover: hover) { .tbl:hover .hover-disc { opacity: 1; } .tbl:hover .cloth { stroke: var(--accent); } }
.tbl:focus-visible .cloth { stroke: var(--gold-fill); stroke-width: 3; }
@keyframes spin { to { transform: rotate(360deg); } }
.tbl .pop { transform-box: fill-box; transform-origin: center; animation: pop .55s var(--spring) backwards; }
@keyframes pop { from { transform: scale(.2); } }
.plan.enter .tbl { animation: tblIn .7s var(--ease-out) backwards; animation-delay: calc(var(--i) * 45ms + 120ms); transform-box: fill-box; transform-origin: center; }
@keyframes tblIn { from { transform: scale(.7); } }

.tip { position: absolute; z-index: 5; pointer-events: none; min-width: 180px; max-width: 260px; background: var(--paper); border: 1px solid var(--line-strong); border-radius: 10px; padding: 10px 12px; box-shadow: var(--shadow-lift); font-size: 13.5px; opacity: 0; transform: translateY(4px); transition: opacity .15s ease, transform .15s var(--ease-out); }
.tip.on { opacity: 1; transform: none; }
.tip b { font-family: var(--font-display); font-size: 15px; display: block; }
.tip i { font-family: var(--font-display); }

.legend { display: flex; flex-wrap: wrap; gap: 6px 18px; font-size: 13px; color: var(--muted); }
.legend span { display: inline-flex; align-items: center; gap: 7px; }
.dot { width: 11px; height: 11px; border-radius: 50%; display: inline-block; border: 1.5px solid var(--muted); background: var(--paper); flex: none; }
.dot.t { background: var(--taken); border-color: var(--taken); }
.dot.m { background: var(--accent); border-color: var(--accent); }
.dot.h { background: var(--gold-fill); border-color: var(--gold-fill); }
.dot.r { background: var(--gold-soft); border: 1.5px dashed var(--gold); }
.plan-note { font-size: 13px; color: var(--muted); }

/* ticket */
.ticket { position: sticky; top: 84px; display: flex; flex-direction: column; filter: drop-shadow(0 20px 26px rgba(60, 35, 15, .14)); }
.t-part { background: var(--paper); border: 1px solid var(--line); padding: 20px 20px 18px; position: relative; }
.t-top { border-radius: 14px 14px 0 0; border-bottom: 0; display: flex; flex-direction: column; gap: 4px; }
.t-top::after { content: ""; position: absolute; inset: 7px; border: 1px solid var(--gold-soft); border-radius: 10px 10px 0 0; border-bottom: 0; pointer-events: none; }
.t-top .eyebrow { color: var(--gold); }
.t-top h2 { font-size: 23px; line-height: 1.15; margin-top: 2px; }
.t-top p { font-size: 14px; color: var(--muted); }
.perf { height: 22px; position: relative; background: var(--paper); border-inline: 1px solid var(--line); }
.perf::before { content: ""; position: absolute; left: 16px; right: 16px; top: 50%; border-top: 1.5px dashed var(--line-strong); }
.perf i { position: absolute; top: 0; width: 22px; height: 22px; border-radius: 50%; background: var(--bg); border: 1px solid var(--line); }
.perf i:first-child { left: -12px; clip-path: inset(0 0 0 50%); }
.perf i:last-child { right: -12px; clip-path: inset(0 50% 0 0); }
.t-bot { border-radius: 0 0 14px 14px; border-top: 0; display: flex; flex-direction: column; gap: 14px; }
.t-rows { margin: 0; display: flex; flex-direction: column; gap: 12px; }
.t-rows > div { display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.t-rows dt { font-size: 11.5px; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }
.t-rows dd { margin: 0; font-size: 15px; min-width: 0; }
.t-empty { color: var(--muted); font-size: 14px; }
.seatchips { display: flex; flex-wrap: wrap; gap: 6px; }
.seatchip { display: inline-flex; align-items: center; gap: 4px; padding: 3px 4px 3px 10px; border-radius: 999px; background: var(--accent-soft); color: var(--accent); font-size: 13.5px; font-weight: 500; }
.seatchip.new { animation: chipIn .45s var(--spring) backwards; }
.seatchip button { width: 22px; height: 22px; border: 0; border-radius: 50%; background: transparent; color: inherit; display: grid; place-items: center; padding: 0; }
.seatchip button:hover { background: var(--accent-soft); }
.seatchip.locked { padding-right: 10px; }
@keyframes chipIn { from { transform: scale(.7); } }
.t-total { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; padding-top: 12px; border-top: 1px solid var(--line); }
.t-total span { font-size: 14px; color: var(--muted); }
.t-total b { font-family: var(--font-display); font-size: 30px; font-weight: 600; font-variant-numeric: tabular-nums; letter-spacing: -.02em; }
.hold { display: flex; align-items: center; gap: 8px; font-size: 13.5px; color: var(--warn); background: var(--warn-soft); border-radius: 8px; padding: 7px 10px; }
.hold svg { width: 16px; height: 16px; flex: none; }
.cta { height: 50px; border: 0; border-radius: 11px; background: var(--accent); color: var(--accent-ink); font-weight: 600; font-size: 16px; display: flex; align-items: center; justify-content: center; gap: 8px; padding: 0 18px; transition: transform .16s var(--ease-out), background-color .2s ease, opacity .2s ease; }
.cta:hover { background: var(--accent-deep); }
.cta:active { transform: scale(.97); }
.cta:disabled { opacity: .45; cursor: not-allowed; transform: none; background: var(--accent); }
.cta svg { width: 18px; height: 18px; }
.steps { list-style: none; margin: 0; padding: 0; display: flex; gap: 6px; font-size: 12.5px; color: var(--muted); }
.steps li { flex: 1; display: flex; flex-direction: column; gap: 5px; }
.steps li::before { content: ""; height: 3px; border-radius: 2px; background: var(--line); transition: background-color .3s ease; }
.steps li.on { color: var(--ink); font-weight: 500; }
.steps li.on::before, .steps li.done::before { background: var(--accent); }
.t-sum { display: none; }
.t-x { display: none; }

/* step panels */
.step { padding: 24px; display: flex; flex-direction: column; gap: 22px; animation: stepIn .45s var(--ease-out) backwards; }
@keyframes stepIn { from { opacity: .35; transform: translateY(10px); } }
.step-head { display: flex; flex-direction: column; gap: 6px; }
.step-head h2 { font-size: clamp(24px, 3vw, 30px); }
.step-head p { color: var(--muted); max-width: 60ch; }
.back { align-self: flex-start; border: 0; background: transparent; color: var(--muted); font-size: 14px; display: inline-flex; gap: 6px; align-items: center; padding: 4px 0; }
.back:hover { color: var(--ink); }
.back svg { width: 16px; height: 16px; }
.grid2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.field { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.field label { font-size: 14px; font-weight: 500; }
.field label small { font-weight: 400; color: var(--muted); }
.field input, .field select { height: 46px; border-radius: 10px; border: 1px solid var(--line-strong); background: var(--bg); padding: 0 14px; font-size: 16px; width: 100%; transition: border-color .2s ease, box-shadow .2s ease; }
.field input:focus, .field select:focus { outline: none; border-color: var(--gold-fill); box-shadow: 0 0 0 3px var(--gold-soft); }
.field .hint { font-size: 13px; color: var(--muted); }
.field .err { font-size: 13px; color: var(--bad); display: none; }
.field.bad input { border-color: var(--bad); }
.field.bad .err { display: block; }
.field.bad .hint { display: none; }
fieldset { border: 0; margin: 0; padding: 0; min-width: 0; }

.sn { border: 1px solid var(--line); border-radius: 12px; background: var(--bg); padding: 14px 16px; display: flex; flex-direction: column; gap: 10px; font-size: 14.5px; }
.sn p { color: var(--muted); max-width: 62ch; }
.sn p i { font-family: var(--font-display); font-weight: 500; color: var(--ink); transition: opacity .25s ease, text-decoration-color .25s ease; text-decoration: line-through transparent; }
.check { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 12px; align-items: start; font-size: 14.5px; }
.check input { width: 20px; height: 20px; margin: 1px 0 0; accent-color: var(--accent); }
.check.bad { color: var(--bad); }
.linkish { border: 0; background: none; padding: 0; color: var(--accent); text-decoration: underline; text-underline-offset: 2px; font-size: inherit; }

/* payment */
.pay { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 24px; align-items: start; }
.qr { width: 220px; padding: 14px; border-radius: 12px; background: #ffffff; border: 1px solid var(--line); display: flex; flex-direction: column; gap: 8px; align-items: center; }
.qr svg { width: 100%; height: auto; display: block; }
.qr small { font-size: 11px; color: #5b524a; letter-spacing: .06em; font-weight: 500; }
.kv { display: flex; flex-direction: column; border-top: 1px solid var(--line); }
.kv > div { display: grid; grid-template-columns: 150px minmax(0, 1fr) auto; gap: 4px 12px; align-items: center; padding: 11px 0; border-bottom: 1px solid var(--line); }
.kv dt { font-size: 13.5px; color: var(--muted); }
.kv dd { margin: 0; font-size: 16px; font-weight: 500; overflow-wrap: anywhere; min-width: 0; }
.kv dd.code { font-family: var(--font-code); font-size: 15px; letter-spacing: .02em; }
.kv dd.big { font-family: var(--font-display); font-size: 24px; font-weight: 600; }
.copy { height: 32px; padding: 0 10px; border-radius: 8px; border: 1px solid var(--line); background: transparent; font-size: 13px; color: var(--muted); display: inline-flex; align-items: center; gap: 6px; }
.copy:hover { color: var(--ink); border-color: var(--line-strong); }
.copy svg { width: 14px; height: 14px; }
.copy.ok { color: var(--ok); border-color: var(--ok); }
.deadline { display: flex; gap: 12px; align-items: flex-start; border-radius: 12px; padding: 14px 16px; background: var(--warn-soft); color: var(--ink); font-size: 14.5px; }
.deadline svg { width: 20px; height: 20px; color: var(--warn); flex: none; margin-top: 1px; }
.deadline b { font-weight: 600; }
.next { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; counter-reset: n; }
.next li { counter-increment: n; padding: 14px; border-radius: 12px; border: 1px solid var(--line); font-size: 14px; color: var(--muted); display: flex; flex-direction: column; gap: 6px; }
.next li::before { content: counter(n); width: 26px; height: 26px; border-radius: 50%; display: grid; place-items: center; background: var(--accent-soft); color: var(--accent); font-weight: 600; font-size: 13px; }
.next li b { color: var(--ink); font-weight: 500; font-size: 15px; }
.hold.wait { color: var(--ink); background: var(--gold-soft); }
.hold.wait b { font-family: var(--font-code); font-weight: 500; }

/* tickets */
.tk { display: grid; grid-template-columns: minmax(0, 1fr) auto; background: var(--paper); border: 1px solid var(--line); border-radius: 12px; overflow: hidden; animation: tkIn .6s var(--ease-out) backwards; animation-delay: calc(var(--i) * 120ms + 150ms); }
@keyframes tkIn { from { opacity: .35; transform: translateY(14px) rotate(-.6deg); } }
.tk-main { padding: 16px 18px; display: flex; flex-direction: column; gap: 10px; min-width: 0; }
.tk-main h3 { font-size: 19px; }
.tk-main .meta { display: flex; flex-wrap: wrap; gap: 4px 16px; font-size: 13.5px; color: var(--muted); }
.tk-seat { display: flex; gap: 22px; }
.tk-seat div { display: flex; flex-direction: column; }
.tk-seat small { font-size: 11px; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }
.tk-seat b { font-family: var(--font-display); font-size: 28px; line-height: 1.1; font-weight: 600; }
.tk-stub { width: 132px; border-left: 1.5px dashed var(--line-strong); padding: 14px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 6px; background: var(--cloth); }
.tk-stub .qrmini { width: 96px; background: #fff; padding: 6px; border-radius: 6px; }
.tk-stub .qrmini svg { display: block; width: 100%; height: auto; }
.tk-stub small { font-family: var(--font-code); font-size: 11px; color: var(--muted); }
.done-actions { display: flex; flex-wrap: wrap; gap: 10px; }
.ghost { height: 46px; padding: 0 16px; border-radius: 10px; border: 1px solid var(--line-strong); background: transparent; font-weight: 500; font-size: 15px; display: inline-flex; align-items: center; gap: 8px; }
.ghost:hover { background: var(--accent-soft); }
.ghost svg { width: 16px; height: 16px; flex: none; }
.hold.paid { color: var(--ok); background: var(--ok-soft); }

/* table close-up dialog */
.scrim { position: fixed; inset: 0; z-index: 60; background: var(--scrim); display: grid; place-items: center; padding: max(16px, env(safe-area-inset-top, 0px)) max(16px, env(safe-area-inset-right, 0px)) max(16px, env(safe-area-inset-bottom, 0px)) max(16px, env(safe-area-inset-left, 0px)); animation: fade .25s ease; }
.scrim.out { animation: fade .2s ease reverse forwards; }
@keyframes fade { from { opacity: 0; } }
.sheet { width: min(560px, 100%); max-height: 100%; overflow: auto; background: var(--paper); border-radius: 18px; border: 1px solid var(--line); box-shadow: var(--shadow-lift); display: flex; flex-direction: column; transform-origin: var(--ox, 50%) var(--oy, 50%); animation: zoomIn .45s var(--ease-out); overscroll-behavior: contain; }
.scrim.out .sheet { animation: zoomIn .2s ease-in reverse forwards; }
@keyframes zoomIn { from { transform: scale(.35); opacity: 0; } }
.sheet-h { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; padding: 20px 20px 4px; }
.sheet-h h2 { font-size: 26px; }
.sheet-h p { font-size: 14px; color: var(--muted); }
.x { width: 38px; height: 38px; flex: none; border-radius: 10px; border: 1px solid var(--line); background: transparent; display: grid; place-items: center; color: var(--muted); }
.x svg { width: 18px; height: 18px; }
.closeup { position: relative; width: min(100%, 420px); aspect-ratio: 1; margin: 4px auto 0; container-type: inline-size; }
.closeup .tcloth { position: absolute; left: 50%; top: 50%; width: 44%; aspect-ratio: 1; transform: translate(-50%, -50%); border-radius: 50%; background: radial-gradient(circle at 50% 42%, var(--cloth) 0 58%, var(--bg) 100%); border: 1px solid var(--line-strong); display: grid; place-items: center; text-align: center; box-shadow: 0 16px 30px -18px rgba(60, 35, 15, .45); }
.closeup .tcloth::before { content: ""; position: absolute; inset: 7%; border-radius: 50%; border: 1px solid var(--gold-soft); }
.closeup .tcloth b { display: block; font-family: var(--font-display); font-weight: 600; font-size: 13cqw; line-height: 1; }
.closeup .tcloth small { display: block; font-size: max(11px, 2.8cqw); color: var(--muted); margin-top: 4px; }
.pc { position: absolute; transform: translate(-50%, -50%); width: 21.5%; height: 11cqw; justify-content: center; padding: 0 .8cqw; border-radius: 5px; border: 1px solid var(--line-strong); background: var(--cloth); text-align: center; display: flex; flex-direction: column; align-items: center; gap: 1px; font-size: clamp(11px, 3.1cqw, 13.5px); line-height: 1.2; transition: transform .2s var(--ease-out), background-color .2s ease, border-color .2s ease, color .2s ease, box-shadow .2s ease; perspective: 400px; }
.pc small { font-size: .78em; color: var(--muted); font-variant-numeric: tabular-nums; }
.pc b { font-family: var(--font-display); font-style: italic; font-weight: 500; max-width: 100%; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pc.free { cursor: pointer; border-style: dashed; color: var(--muted); }
.pc.free b { font-style: normal; font-family: var(--font-body); font-weight: 400; }
@media (hover: hover) { .pc.free:hover { border-color: var(--accent); color: var(--accent); background: var(--accent-soft); } .pc.mine:hover { filter: brightness(1.06); } }
.pc.free:active, .pc.mine:active { transform: translate(-50%, -50%) scale(.94); }
.pc.taken { background: var(--bg); color: var(--taken-ink); border-color: transparent; }
.pc.res { background: var(--gold-soft); color: var(--gold); border: 1px dashed var(--gold); }
.pc.res small { color: inherit; }
.pc.res b { font-style: normal; font-family: var(--font-body); font-weight: 400; }
.closeup .tcloth.res { background: var(--gold-soft); border: 1px dashed var(--gold); }
.pc.taken.named { color: var(--ink); border-color: var(--line); background: var(--cloth); }
.pc.taken.named small { color: var(--muted); }
.pc.mine { cursor: pointer; background: var(--accent); border-color: var(--accent); color: var(--accent-ink); box-shadow: 0 8px 16px -8px var(--accent); }
.pc.mine small { color: inherit; opacity: .8; }
.pc.mine b { font-style: normal; font-family: var(--font-body); font-weight: 600; }
.pc.flip { animation: flip .5s var(--spring); }
.pc.flip::after { content: ""; position: absolute; inset: -3px; border-radius: 8px; border: 2px solid var(--accent); pointer-events: none; animation: burst .65s var(--ease-out) forwards; }
@keyframes burst { from { opacity: .8; transform: scale(.92); } to { opacity: 0; transform: scale(1.4); } }
.pc.unpick { animation: unpick .4s var(--spring); }
@keyframes unpick { from { transform: translate(-50%, -50%) scale(.82); } }
/* cards are dealt from the middle of the table out to their seats */
.closeup.deal .pc { animation: deal .6s var(--ease-out) backwards; animation-delay: calc(var(--i) * 32ms + 140ms); }
.closeup.deal .tcloth { animation: clothIn .55s var(--spring) backwards; }
@keyframes deal { from { transform: translate(calc(-50% + var(--dx)), calc(-50% + var(--dy))) scale(.35) rotate(-10deg); opacity: 0; } }
@keyframes clothIn { from { transform: translate(-50%, -50%) scale(.6); } }
.fly { position: fixed; z-index: 70; left: 0; top: 0; width: 16px; height: 16px; margin: -8px 0 0 -8px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 0 4px var(--accent-soft), 0 6px 14px -4px var(--accent); pointer-events: none; }
.bump { animation: bump .45s var(--spring); }
.sheet-f p.bump { transform-origin: left center; }
@keyframes bump { 40% { transform: scale(1.12); } }
@keyframes flip { from { transform: translate(-50%, -50%) rotateX(85deg); } }
.pc.hit { box-shadow: 0 0 0 2px var(--gold-fill), 0 0 0 6px var(--gold-soft); }
.sheet-who { padding: 10px 20px 0; font-size: 14px; color: var(--muted); text-align: center; }
.sheet-who i { font-family: var(--font-display); color: var(--ink); }
.sheet-f { position: sticky; bottom: 0; display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 14px 20px calc(16px + env(safe-area-inset-bottom, 0px)); margin-top: 12px; border-top: 1px solid var(--line); background: var(--paper); }
.sheet-f p { font-size: 14px; color: var(--muted); }
.sheet-f p b { color: var(--ink); font-weight: 500; }
.sheet-f .cta { height: 46px; min-width: 120px; }

/* toast */
.toast { position: fixed; left: 50%; bottom: calc(24px + env(safe-area-inset-bottom, 0px)); z-index: 80; transform: translate(-50%, 20px); opacity: 0; background: var(--ink); color: var(--bg); padding: 11px 16px; border-radius: 10px; font-size: 14.5px; max-width: min(440px, calc(100vw - 32px)); box-shadow: var(--shadow-lift); transition: opacity .25s ease, transform .35s var(--ease-out); pointer-events: none; }
.toast.on { opacity: 1; transform: translate(-50%, 0); }

.foot { font-size: 13px; color: var(--muted); border-top: 1px solid var(--line); padding-top: 16px; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px 24px; }
.foot b { color: var(--accent); font-weight: 600; }

/* tablet */
@media (max-width: 1020px) {
  .book { grid-template-columns: minmax(0, 1fr) 290px; gap: 18px; }
}

/* phone: the ticket docks to the bottom */
@media (max-width: 760px) {
  body { padding-bottom: 150px; }
  .brand { gap: 8px; }
  .brand small { display: none; }
  .brand img { width: 34px; }
  .brand b { font-size: 15px; line-height: 1.1; }
  .tools { gap: 6px; }
  .icon-btn { width: 34px; height: 34px; }
  .intro { grid-template-columns: minmax(0, 1fr); padding-top: 24px; gap: 18px; }
  .intro .lead { font-size: 16px; }
  .facts dd { font-size: 16px; }
  .venue-in { grid-template-columns: minmax(0, 1fr); }
  .v-map { border-right: 0; border-bottom: 1px solid var(--line); aspect-ratio: 4 / 3; }
  .v-map svg { min-height: 0; }
  .v-info { padding: 16px; }
  .book { grid-template-columns: minmax(0, 1fr); }
  .chart { padding: 16px 12px 14px; }
  .chart-head { padding-inline: 4px; }
  .find { max-width: none; }
  .legend, .plan-note { padding-inline: 4px; }
  .step { padding: 18px 16px; }
  .grid2 { grid-template-columns: minmax(0, 1fr); }
  .pay { grid-template-columns: minmax(0, 1fr); justify-items: center; }
  .pay .kv { width: 100%; }
  .kv > div { grid-template-columns: minmax(0, 1fr) auto; }
  .kv dt { grid-column: 1 / -1; }
  .next { grid-template-columns: minmax(0, 1fr); }
  .next li { flex-direction: row; align-items: center; gap: 12px; }
  .next li::before { flex: none; }
  .tk { grid-template-columns: minmax(0, 1fr); }
  .tk-stub { width: auto; border-left: 0; border-top: 1.5px dashed var(--line-strong); flex-direction: row; justify-content: flex-start; gap: 14px; }
  .tk-stub .qrmini { width: 76px; }
  .tk-seat b { font-size: 24px; }

  .ticket { position: fixed; top: auto; left: 0; right: 0; bottom: 0; z-index: 45; filter: none; }
  .ticket .t-top, .ticket .perf { display: none; }
  .ticket .t-bot { border-radius: 18px 18px 0 0; border: 1px solid var(--line); border-bottom: 0; box-shadow: 0 -16px 36px -18px rgba(40, 20, 10, .35);
    padding: 12px max(16px, env(safe-area-inset-right, 0px)) calc(12px + env(safe-area-inset-bottom, 0px)) max(16px, env(safe-area-inset-left, 0px)); gap: 10px; max-height: 78vh; overflow: auto; }
  .ticket .t-rows, .ticket .t-total, .ticket .steps { display: none; }
  .ticket.open .t-rows, .ticket.open .t-total { display: flex; }
  .ticket .t-sum { display: flex; align-items: center; justify-content: space-between; gap: 12px; border: 0; background: transparent; padding: 0; text-align: left; width: 100%; }
  .t-sum span { display: flex; flex-direction: column; min-width: 0; }
  .t-sum b { font-size: 15px; font-weight: 600; }
  .t-sum small { font-size: 13px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
  .t-sum strong { font-family: var(--font-display); font-size: 24px; font-weight: 600; font-variant-numeric: tabular-nums; display: flex; align-items: center; gap: 6px; }
  .t-sum strong svg { width: 18px; height: 18px; color: var(--muted); transition: transform .3s var(--ease-out); }
  .ticket.open .t-sum strong svg { transform: rotate(180deg); }
  .ticket .hold { padding: 5px 9px; font-size: 13px; }
  .ticket .cta { height: 48px; }
  .ticket.hidden-m { display: none; }

  .scrim { place-items: end center; padding: 0; }
  .sheet { width: 100%; border-radius: 20px 20px 0 0; max-height: 94%; border-bottom: 0; animation: sheetUp .45s var(--ease-out); }
  .scrim.out .sheet { animation: sheetUp .22s ease-in reverse forwards; }
  .sheet-h { padding: 16px 16px 0; }
  .sheet-h h2 { font-size: 23px; }
  .sheet-f { padding-inline: 16px; }
  .closeup { width: min(100% - 8px, 400px); }
  .toast { bottom: calc(150px + env(safe-area-inset-bottom, 0px)); }

}
@keyframes sheetUp { from { transform: translateY(100%); } }
@media (max-width: 380px) {
  .brand b { font-size: 13px; }
  .brand img { width: 30px; }
  .facts { grid-template-columns: minmax(0, 1fr); }
  .facts div:nth-child(even) { padding-left: 0; border-left: 0; }
}

/* ---------- added for the real site ---------- */

/* keyboard */
.skip { position: fixed; left: max(12px, env(safe-area-inset-left, 0px)); top: calc(env(safe-area-inset-top, 0px) + 8px); z-index: 90; padding: 11px 16px; border-radius: 10px; background: var(--ink); color: var(--bg); font-size: 15px; font-weight: 500; text-decoration: none; opacity: 0; transform: translateY(-220%); transition: transform .2s var(--ease-out), opacity .2s ease; }
.skip:focus { opacity: 1; transform: none; }
[tabindex="-1"]:focus, [tabindex="-1"]:focus-visible { outline: none; }
input, .sn { scroll-margin-top: 130px; }

/* links inside running text */
.foot a, .plain a, .check a, .final-note a, .state-box a:not(.ghost) { color: var(--accent); text-underline-offset: 2px; }
a.ghost { color: inherit; text-decoration: none; }

/* a calm message above the plan */
.notice { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: 10px; align-items: start; padding: 11px 12px; border-radius: 10px; background: var(--warn-soft); color: var(--ink); font-size: 14.5px; line-height: 1.45; }
.notice > svg { width: 18px; height: 18px; margin-top: 1px; color: var(--warn); }
.notice.bad { background: var(--bad-soft); }
.notice.bad > svg { color: var(--bad); }
.notice button { width: 28px; height: 28px; margin: -4px -4px -4px 0; border: 0; border-radius: 7px; background: transparent; color: var(--muted); display: grid; place-items: center; padding: 0; }
.notice button svg { width: 15px; height: 15px; }

/* first load: the room appears as an outline, then fills in */
.skel-tbl { fill: var(--line); animation: skel 1.5s ease-in-out infinite; animation-delay: calc(var(--i) * 70ms); }
@keyframes skel { 50% { opacity: .35; } }
.skel-line { display: block; height: 14px; border-radius: 7px; background: var(--line); animation: skel 1.5s ease-in-out infinite; }
.step.loading { min-height: 320px; gap: 16px; }
.state-box { display: flex; flex-direction: column; align-items: flex-start; gap: 12px; padding: 12px 4px; }
.state-box h2 { font-size: clamp(22px, 3vw, 26px); }
.state-box p { color: var(--muted); max-width: 56ch; }

/* button that is working */
.spin { width: 17px; height: 17px; flex: none; border-radius: 50%; border: 2px solid currentColor; border-right-color: transparent; animation: spin .7s linear infinite; }
.cta.loading:disabled, .ghost.loading:disabled { opacity: .8; cursor: progress; }
.ghost:disabled { opacity: .6; cursor: not-allowed; }
.t-err { font-size: 14px; line-height: 1.4; color: var(--bad); background: var(--bad-soft); border-radius: 8px; padding: 8px 10px; }
.cta.final { padding-inline: 8px; font-size: 15.5px; white-space: nowrap; }
.final-note { font-size: 13px; line-height: 1.45; color: var(--muted); }

/* surname choice: two cards, nothing picked at the start */
.sn-head { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 16px; align-items: center; }
.sn-card { position: relative; width: 112px; height: 46px; flex: none; border-radius: 5px; border: 1px dashed var(--line-strong); background: var(--cloth); display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 1px; padding: 0 6px; text-align: center; font-size: 13.5px; line-height: 1.2; color: var(--muted); transition: border-color .2s ease, color .2s ease; }
.sn-card small { font-size: .78em; color: var(--muted); font-variant-numeric: tabular-nums; }
.sn-card b { font-family: var(--font-body); font-weight: 400; max-width: 100%; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.sn-card.named { border-style: solid; border-color: var(--line); color: var(--ink); }
.sn-card.named b { font-family: var(--font-display); font-style: italic; font-weight: 500; }
.sn-card.hidden-name { border-color: transparent; background: var(--bg); color: var(--taken-ink); }
.choices { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.choice { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 11px; align-items: start; min-height: 44px; padding: 12px 14px; border-radius: 10px; border: 1px solid var(--line-strong); background: var(--paper); cursor: pointer; transition: border-color .2s ease, background-color .2s ease, box-shadow .2s ease; }
.choice input { width: 20px; height: 20px; margin: 1px 0 0; accent-color: var(--accent); }
.choice b { display: block; font-weight: 500; font-size: 14.5px; line-height: 1.35; }
.choice small { display: block; margin-top: 4px; font-size: 13px; line-height: 1.4; color: var(--muted); }
.choice:has(input:checked) { border-color: var(--accent); background: var(--accent-soft); }
.choice:has(input:focus-visible) { outline: 2px solid var(--gold-fill); outline-offset: 2px; }
@media (hover: hover) { .choice:hover { border-color: var(--accent); } }
.sn > .err { display: none; font-size: 13.5px; color: var(--bad); }
.sn.bad { border-color: var(--bad); }
.sn.bad > .err { display: block; }
.sn.bad .choice { border-color: var(--bad); }
.agree { display: flex; flex-direction: column; gap: 8px; }
.agree .err { display: none; font-size: 13.5px; color: var(--bad); padding-left: 32px; }
.agree.bad .err { display: block; }
.plain { font-size: 13.5px; color: var(--muted); max-width: 62ch; }

/* phone: during the details step the ticket lands in the page under the form instead of floating over it */
.hold-m { display: none; }

/* booking page */
.booked .intro { grid-template-columns: minmax(0, 1fr); padding-top: 24px; }
.booked .intro-copy, .booked .f-price, .booked .f-free { display: none; }
.book.solo { grid-template-columns: minmax(0, 1fr); max-width: 720px; width: 100%; margin-inline: auto; }
.quiet { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 6px 16px; padding: 12px 0 0; border-top: 1px solid var(--line); font-size: 14px; color: var(--muted); }
.quiet p { flex: 1 1 260px; min-width: 0; }
.quiet i { font-family: var(--font-display); font-weight: 500; color: var(--ink); }
.quiet .linkish { min-height: 44px; font-size: 14px; white-space: nowrap; }
.quiet .linkish:disabled { opacity: .6; cursor: progress; }
.quiet .copy { flex: none; }
.tks { display: flex; flex-direction: column; gap: 14px; }
.tk-side { font-size: 17px; line-height: 2; }
.tk-note { font-size: 14px; color: var(--muted); }
.step-head i { font-family: var(--font-display); }
.next li b { display: block; margin-bottom: 2px; }
.deadline.over { background: var(--bad-soft); }
.deadline.over svg { color: var(--bad); }

/* 404: a place card with nobody's name on it */
.nf { min-height: calc(100vh - 200px); min-height: calc(100svh - 200px); display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 24px 48px; align-items: center; padding-block: 32px; }
.nf h1 { font-size: clamp(32px, 5.2vw, 50px); line-height: 1.06; letter-spacing: -.025em; margin-top: 10px; }
.nf h1 em { font-style: italic; font-weight: 500; color: var(--accent); }
.nf p.lead { margin-top: 14px; color: var(--muted); font-size: 17px; max-width: 46ch; }
.nf .cta { display: inline-flex; margin-top: 22px; text-decoration: none; }
.nf .closeup { width: min(100%, 420px); }
.nf .tcloth b { font-size: 11cqw; }
.nf .pc { cursor: default; }
.nf .pc.taken { background: var(--paper); border-color: var(--line); color: var(--muted); }
.nf .pc.empty { border: 1px dashed var(--accent); color: var(--accent); background: var(--accent-soft); }
.nf .pc.empty b { font-style: italic; }
.nf .p1 { left: 50%; top: 10%; --i: 0; --dx: 0cqw; --dy: 40cqw; }
.nf .p2 { left: 86%; top: 30%; --i: 1; --dx: -36cqw; --dy: 20cqw; }
.nf .p3 { left: 86%; top: 70%; --i: 2; --dx: -36cqw; --dy: -20cqw; }
.nf .p4 { left: 50%; top: 90%; --i: 3; --dx: 0cqw; --dy: -40cqw; }
.nf .p5 { left: 14%; top: 70%; --i: 4; --dx: 36cqw; --dy: -20cqw; }
.nf .p6 { left: 14%; top: 30%; --i: 5; --dx: 36cqw; --dy: 20cqw; }

/* phone */
@media (max-width: 760px) {
  body.flowing { padding-bottom: 64px; }
  .brand { min-height: 44px; }
  .find input { height: 44px; }
  .find .ico { bottom: 13px; }
  .ticket .t-sum { min-height: 44px; }
  .icon-btn { width: 44px; height: 44px; }
  .where { min-height: 44px; }
  .find .clear { width: 44px; height: 44px; right: 0; bottom: 0; }
  .x { width: 44px; height: 44px; }
  .back { min-height: 44px; }
  .copy { min-height: 44px; }
  .v-nav a, .v-nav button { height: 44px; }
  .v-park li a { padding: 12px 0; }
  .hit { min-height: 44px; }
  .ghost { min-height: 46px; }
  .seatchip button { position: relative; }
  .seatchip button::after { content: ""; position: absolute; inset: -11px; }
  .notice button { width: 44px; height: 44px; margin: -12px -10px -12px 0; }
  .pc::before { content: ""; position: absolute; inset: -2px 0; }
  .check { padding-block: 6px; }
  .foot a { display: inline-block; padding-block: 10px; }
  .tk-stub { align-items: center; }
  .tk-stub .qrmini { width: 124px; }
  .sn-head { grid-template-columns: minmax(0, 1fr); }
  .choices { grid-template-columns: minmax(0, 1fr); }

  /* opaque, with a paper edge: the form scrolls underneath it */
  .hold-m { display: flex; position: sticky; top: calc(env(safe-area-inset-top, 0px) + 71px); z-index: 30; background: linear-gradient(var(--warn-soft), var(--warn-soft)), var(--paper); box-shadow: 0 0 0 6px var(--paper); }
  .ticket.flow { position: static; filter: drop-shadow(0 20px 26px rgba(60, 35, 15, .14)); }
  .ticket.flow .t-top { display: flex; }
  .ticket.flow .perf { display: block; }
  .ticket.flow .t-sum { display: none; }
  .ticket.flow .t-rows, .ticket.flow .t-total { display: flex; }
  .ticket.flow .t-bot { border-radius: 0 0 14px 14px; border: 1px solid var(--line); border-top: 0; box-shadow: none; padding: 20px 20px 18px; max-height: none; overflow: visible; }
  body.flowing .toast { bottom: calc(24px + env(safe-area-inset-bottom, 0px)); }

  .booked .intro { padding-top: 16px; }
  .nf { grid-template-columns: minmax(0, 1fr); padding-top: 20px; }
  .nf .closeup { margin-inline: auto; }
}

/* a printed ticket is a valid ticket */
@media print {
  .top, #bokeh, .ticket, .foot, .intro, .done-actions, .quiet, .skip, .toast { display: none !important; }
  body { padding: 0; background: #fff; color: #000; }
  .panel { border: 0; box-shadow: none; background: none; }
  .tk { break-inside: avoid; animation: none; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
}
