* { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --bg: #05070d;
  --panel: rgba(14, 18, 28, 0.82);
  --line: #1d2735;
  --text: #e8edf5;
  --muted: #8a97a8;
  --accent: #ffb347;
  /* one quiet hue per pattern category — used only as a small tick beside the category name,
     never on chips or chrome (the fountain stays the only real color on the page) */
  --cat-holiday: #ff7a59;
  --cat-ambient: #5ad1c4;
  --cat-motion: #9d8cff;
  --cat-gameday: #4f9cff;
  --display: "Fraunces", Georgia, "Times New Roman", serif;
  --sans: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}

/* Display face for titles and leads: a warm, slightly old-fashioned serif — this is a
   neighborhood art project, not a dashboard. Self-hosted (no runtime CDN), latin subset only. */
@font-face {
  font-family: "Fraunces";
  src: url("/fonts/Fraunces-latin.woff2") format("woff2");
  font-weight: 500 700; font-style: normal; font-display: swap;
}

html, body { height: 100%; background: var(--bg); color: var(--text); font-family: var(--sans);
  -webkit-font-smoothing: antialiased; }

/* App layout is scoped to body.live so document pages (about/proposal) can NEVER inherit the
   fullscreen canvas/panel overlays — even if a stale cache mixes HTML and CSS versions. */
body.live #app { position: fixed; inset: 0; }

/* --- Document pages (About, and the text parts of Proposal) --------------- */
body.page { height: auto; min-height: 100%; overflow-y: auto; }
/* High specificity (#topbar.static-bar) so it overrides the absolute app-layout #topbar rule. */
#topbar.static-bar { position: relative; inset: auto; background: var(--bg);
  border-bottom: 1px solid var(--line); display: flex; align-items: center; gap: 16px;
  padding: 14px 22px; pointer-events: auto; }
.static-bar h1 { font-size: 19px; font-weight: 600; }
.doc { max-width: 760px; margin: 0 auto; padding: 40px 22px 80px; }
.doc-block { margin-bottom: 44px; }
.doc-block h2 { font-size: 12px; text-transform: uppercase; letter-spacing: 1.4px;
  color: var(--muted); margin-bottom: 14px; }
.doc .lead { font-family: var(--sans); font-weight: 500; font-size: 21px; line-height: 1.45;
  letter-spacing: -0.005em; margin-bottom: 18px; color: var(--text); }
.doc .muted-text { color: #a9b4c4; line-height: 1.65; font-size: 16px; }
.doc .muted-text + .muted-text { margin-top: 10px; }
.doc a { color: var(--accent); }
.contact { list-style: none; display: flex; flex-direction: column; gap: 10px; }
.contact li { display: flex; gap: 16px; align-items: baseline; }
.contact .k { width: 70px; color: var(--muted); font-size: 13px; text-transform: uppercase;
  letter-spacing: 0.5px; }
.contact .v { font-size: 17px; }
.contact .v a { color: var(--text); text-decoration: none; }
.contact .v a:hover { color: var(--accent); }
.back { margin-top: 40px; }
.back a { color: var(--muted); text-decoration: none; font-size: 14px; }
.back a:hover { color: var(--accent); }

/* --- Proposal page --------------------------------------------------------- */
.prop { max-width: 960px; margin: 0 auto; padding: 32px 22px 80px; }

/* The Fountain Jukebox interaction section: concept sign card + how-it-works walkthrough */
.interact-row { display: flex; gap: 28px; align-items: flex-start; margin-top: 14px; }
.sign-card {
  flex: 0 0 240px; background: #f4f6f9; border: 1px solid var(--line); border-radius: 14px;
  padding: 20px 18px 16px; text-align: center; color: #1a2230;
}
.sign-head { font-size: 17px; font-weight: 700; letter-spacing: 0.2px; margin-bottom: 14px; }
.sign-card .qr { display: flex; justify-content: center; }
.sign-card .qr svg { width: 150px; height: 150px; display: block; }
.sign-sub { font-size: 13px; color: #4a5765; margin-top: 12px; }
.sign-url { font-size: 15px; font-weight: 600; color: #0d1b2a; margin-top: 2px; word-break: break-all; }
.sign-caption { font-size: 11px; color: #6a7684; margin-top: 12px; line-height: 1.4; }
.interact-copy { flex: 1; min-width: 0; }
.how-list { margin: 16px 0 0; padding-left: 20px; color: var(--text); }
.how-list li { margin-bottom: 9px; line-height: 1.5; font-size: 15px; }
.how-list strong { color: var(--text); }
.small-note { font-size: 13px; margin-top: 16px; font-style: italic; }

@media (max-width: 640px) {
  .interact-row { flex-direction: column; align-items: stretch; }
  .sign-card { flex: none; align-self: center; max-width: 260px; width: 100%; }
}

/* Proposed timeline: a phase list with a fixed 'when' column and a description column, joined by a
   subtle rail down the left so it reads as a sequence. */
.timeline { list-style: none; margin: 16px 0 0; padding: 0; }
.timeline li {
  display: flex; gap: 16px; align-items: baseline; padding: 12px 0;
  border-left: 2px solid var(--line); padding-left: 18px; position: relative;
}
.timeline li::before {
  content: ''; position: absolute; left: -6px; top: 18px;
  width: 10px; height: 10px; border-radius: 50%; background: var(--accent);
  border: 2px solid var(--bg);
}
.timeline .when {
  flex: 0 0 130px; font-size: 12px; font-weight: 600; color: var(--accent);
  text-transform: uppercase; letter-spacing: 0.5px; line-height: 1.4;
}
.timeline .what { flex: 1; min-width: 0; color: var(--text); font-size: 15px; line-height: 1.5; }
.timeline .what strong { color: var(--text); }

@media (max-width: 560px) {
  .timeline li { flex-direction: column; gap: 4px; }
  .timeline .when { flex: none; }
}

/* Nightly-hours mini schedule inside the "Live for the season" phase: scannable label/value rows
   so the on/off behavior reads at a glance rather than buried in the sentence. */
.hours { margin: 10px 0 0; display: flex; flex-direction: column; gap: 6px; }
.hours > div { display: flex; gap: 12px; align-items: baseline; }
.hours dt {
  flex: 0 0 96px; font-size: 12px; font-weight: 600; color: var(--accent);
  text-transform: uppercase; letter-spacing: 0.5px;
}
.hours dd { flex: 1; min-width: 0; margin: 0; font-size: 14px; color: var(--text); line-height: 1.45; }

@media (max-width: 560px) {
  .hours > div { flex-direction: column; gap: 1px; }
  .hours dt { flex: none; }
}
.prop .lead { font-family: var(--sans); font-weight: 500; font-size: 21px; line-height: 1.45;
  letter-spacing: -0.005em; margin-bottom: 12px; }
.prop-drawing { margin: 28px 0 40px; }
.view-tabs { display: flex; gap: 4px; margin-bottom: 10px; }
.view-tabs button {
  background: var(--panel); border: 1px solid var(--line); color: var(--muted);
  padding: 8px 14px; border-radius: 8px; cursor: pointer; font-size: 13px;
}
.view-tabs button:hover { color: var(--text); }
.view-tabs button.active { background: var(--accent); color: #1a1205; border-color: var(--accent); font-weight: 600; }
.drawing-row { display: flex; flex-direction: column; gap: 12px; }
.drawing-wrap { position: relative; flex: none; width: 100%; height: 520px; border: 1px solid var(--line);
  border-radius: 12px; overflow: hidden; background: #f4f6f9; }
.drawing-wrap #scene { position: absolute; inset: 0; width: 100%; height: 100%; touch-action: none; }
.legend { flex: none; list-style: none; width: 100%;
  background: var(--panel); border: 1px solid var(--line); border-radius: 10px;
  padding: 10px 14px; font-size: 12.5px; color: var(--text); display: flex; flex-wrap: wrap; gap: 8px 22px; }
.legend li { display: flex; align-items: flex-start; line-height: 1.3; flex: 0 0 auto; }
.legend .sw { flex: 0 0 12px; width: 12px; height: 12px; border-radius: 3px; margin-right: 9px;
  margin-top: 2px; }
.legend .leg-sub { color: var(--muted); font-size: 11px; }
.caption { color: var(--muted); font-size: 13px; margin-top: 10px; }

@media (max-width: 700px) {
  .drawing-wrap { height: 360px; }
  .legend { gap: 8px 16px; }
}

.bom { width: 100%; border-collapse: collapse; font-size: 14px; }
.bom th, .bom td { text-align: left; padding: 9px 10px; border-bottom: 1px solid var(--line); }
.bom th { color: var(--muted); font-size: 12px; text-transform: uppercase; letter-spacing: 0.5px; }
.bom .num { text-align: right; font-variant-numeric: tabular-nums; }
.bom tfoot td { font-weight: 700; border-bottom: none; border-top: 2px solid var(--line); font-size: 15px; }
.bom .detail { display: block; color: var(--muted); font-size: 12px; margin-top: 2px; }
.bom-note { margin-top: 12px; font-style: italic; }
.est { color: var(--muted); font-weight: 400; text-transform: none; letter-spacing: 0; font-size: 12px; }

@media (max-width: 640px) {
  .bom .detail { font-size: 11px; }
}

/* Print: clean BOM + drawing for PDF export to the HOA */
@media print {
  #nav, .view-tabs, .back { display: none; }
  body.page { background: #fff; }
  .drawing-row { page-break-inside: avoid; }
  .drawing-wrap { height: 380px; border-color: #999; }
  .prop-bom { page-break-inside: avoid; }
  /* keep the concept sign + QR intact and crisp in the exported PDF */
  .prop-interact, .sign-card, .interact-row { page-break-inside: avoid; }
  .sign-card { border-color: #999; }
  .prop-timeline { page-break-inside: avoid; }
  .timeline li { page-break-inside: avoid; }
}

/* fullscreen scene canvas only on the live jukebox page */
body.live #scene { position: absolute; inset: 0; width: 100%; height: 100%; display: block;
  touch-action: none; cursor: grab; }
body.live #scene:active { cursor: grabbing; }

body.live #topbar {
  position: absolute; top: 0; left: 0; right: 0; padding: 14px 22px;
  display: flex; align-items: center; gap: 16px;
  background: var(--bg);                 /* solid header bar, matching the doc pages */
  border-bottom: 1px solid var(--line);  /* the divide between title/nav and the scene */
  pointer-events: auto;
  z-index: 20;            /* above the pattern panel so the nav links are clickable */
}
#topbar h1 { font-family: var(--display); font-size: 21px; font-weight: 600; letter-spacing: 0;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis; min-width: 0; }
.static-bar h1 { font-family: var(--display); font-size: 21px; letter-spacing: 0; }
/* Brand lockup: the name in the display face, the place as a small letter-spaced line beneath. */
h1.brand { display: flex; flex-direction: column; line-height: 1.05; }
h1.brand .brand-sub { font-family: var(--sans);
  font-size: 10.5px; font-weight: 500; letter-spacing: 2.2px; text-transform: uppercase;
  color: var(--muted); margin-top: 3px; }
#info { color: var(--muted); font-size: 12px; }
#info:empty { display: none; }

/* Corner nav (right side of topbar). pointer-events re-enabled (topbar is none). */
#nav { margin-left: auto; display: flex; gap: 4px; pointer-events: auto; align-self: center; }
#nav a {
  color: var(--muted); text-decoration: none; font-size: 13px; padding: 6px 12px;
  border-radius: 7px; transition: background 0.12s, color 0.12s;
}
#nav a:hover { background: rgba(255,255,255,0.06); color: var(--text); }
#nav a.active { color: var(--accent); background: rgba(255,179,71,0.12); }

/* desktop: the pattern panel can be put away (#panelToggle); the scene is full-width underneath */
body.live #panelToggle { display: none; }
@media (min-width: 641px) {
  body.live #panelToggle {
    display: inline-flex; align-items: center; gap: 6px; position: absolute; z-index: 11;
    top: calc(var(--topbar-h, 52px) + 12px); right: 332px; padding: 7px 12px; border-radius: 9px;
    font: 600 12.5px var(--sans); color: var(--muted); background: rgba(14, 18, 28, 0.9);
    border: 1px solid var(--line); cursor: pointer; transition: right .25s ease, color .15s;
  }
  body.live #panelToggle:hover { color: var(--text); }
  body.live #panel { transition: transform .25s ease; }
  body.live.panel-hidden #panel { transform: translateX(100%); }
  body.live.panel-hidden #panelToggle { right: 12px; color: var(--text); }
}
body.live #panel {
  position: absolute; top: 0; right: 0; bottom: 0; width: 320px; max-width: 80vw;
  z-index: 10;            /* below the topbar nav (z 20) */
  background: var(--panel); backdrop-filter: blur(10px);
  border-left: 1px solid var(--line);
  display: flex; flex-direction: column; padding: 64px 16px 16px;
  overflow: hidden;                 /* panel itself doesn't scroll; the list section does */
}
/* Document pages never show the jukebox chrome, even if markup/cache is mixed.
   NOTE: do NOT blanket-hide #scene here — the Proposal page has its OWN #scene canvas (the
   engineering drawing) inside .drawing-wrap. Only the fullscreen jukebox #scene (the one that is
   a direct child of #app) must be suppressed; the proposal's wrapped canvas must stay visible. */
body.page #panel, body.page #app { display: none !important; }
body.page #app > #scene { display: none !important; }

/* The mobile pattern strip is hidden on desktop (the sidebar handles desktop). */
#patternStrip { display: none; }
/* Sheet bar is desktop-hidden; sheet-body is the column holding pinned params + scrolling list. */
#sheetBar { display: none; }
.sheet-body { display: flex; flex-direction: column; flex: 1; min-height: 0; }
.section h2 { font-size: 12px; text-transform: uppercase; letter-spacing: 1px;
  color: var(--muted); margin-bottom: 10px; }

/* Desktop order: the pattern LIST leads (choosing is the job), and the current pattern's
   controls sit BELOW it as a collapsible "Adjust" section — closed by default so the whole
   library is visible at once. (DOM order stays params-first for the mobile sheet, which shows
   only the params; `order` flips it here.) */
.section.pinned {
  flex: 0 0 auto; order: 2;
  padding-top: 10px; margin-top: 6px;
  border-top: 1px solid var(--line);
}
.list-section {
  flex: 1 1 auto; min-height: 0; display: flex; flex-direction: column;
  overflow: hidden; order: 1;
}
.list-section h2 { flex: 0 0 auto; }
.list-section #patterns { overflow-y: auto; flex: 1 1 auto; padding-right: 4px; }

/* the Adjust header is the toggle; the body collapses to nothing on desktop */
#adjustToggle {
  display: flex; align-items: center; gap: 8px; width: 100%;
  background: none; border: none; color: var(--text); font: inherit; font-size: 13px;
  font-weight: 600; padding: 4px 2px; cursor: pointer; text-align: left;
}
#adjustToggle .adj-name { color: var(--accent); }
#adjustToggle .adj-chev { margin-left: auto; color: var(--muted); font-size: 12px;
  transition: transform 0.2s; }
#current.collapsed #adjustToggle .adj-chev { transform: rotate(-90deg); }
#adjustBody { padding-top: 8px; max-height: 56vh; overflow-y: auto; }
#current.collapsed #adjustBody { display: none; }

#patterns { list-style: none; display: flex; flex-direction: column; gap: 4px; }
#patterns li {
  padding: 9px 12px; border-radius: 8px; cursor: pointer; font-size: 14px;
  border: 1px solid transparent; transition: background 0.12s, border-color 0.12s;
}
#patterns li:hover { background: rgba(255,255,255,0.04); }
#patterns li:focus-visible, #stripChips li:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
#patterns li.active { background: rgba(255,179,71,0.12); border-color: var(--accent); color: var(--accent); }

#patternName { display: none; }
#patternDesc { color: var(--muted); font-size: 12.5px; margin: 0 0 12px; line-height: 1.45; }

.param { display: grid; grid-template-columns: 96px 1fr 40px; align-items: center;
  gap: 8px; margin-bottom: 10px; }
.param label { font-size: 12px; color: var(--muted); }
.param input[type=range] { width: 100%; accent-color: var(--accent); }
.param input[type=color] { width: 100%; height: 26px; border: none; background: none; cursor: pointer; }
.param select { width: 100%; background: #0d1320; color: var(--text);
  border: 1px solid var(--line); border-radius: 6px; padding: 4px; }
.param .val { font-size: 11px; color: var(--muted); text-align: right; font-variant-numeric: tabular-nums; }

#panel footer { margin-top: auto; color: var(--muted); order: 3; padding-top: 10px; }
#panel footer small { font-size: 11px; line-height: 1.5; }

@media (max-width: 640px) {
  /* ---- MOBILE: browse-first. A swipeable pattern STRIP owns the bottom; the fountain stays
     full-screen behind it. Tapping a chip goes live immediately. Params are secondary, behind
     the "Tweak" button (which opens #panel as a params-only sheet). ---- */

  /* the strip: a horizontal, snap-scrolling rail of pattern chips, full width along the bottom.
     Night/Day sits above-left and Customize above-right, so the strip owns the whole bottom row. */
  #patternStrip {
    display: flex; flex-direction: column; align-items: stretch; gap: 4px;
    position: absolute; left: 0; right: 0;
    bottom: calc(env(safe-area-inset-bottom, 0px) + 8px);
    z-index: 15; padding: 0 10px; pointer-events: auto;
  }
  /* category tabs: a STATIC row (there are four) — text with a category-colored underline, so
     they read as tabs, not as more things to pick */
  #catTabs {
    list-style: none; display: flex; gap: 2px; padding: 0 2px;
  }
  #catTabs li {
    position: relative; flex: 0 0 auto; padding: 8px 10px 9px;
    font-size: 11px; font-weight: 700; letter-spacing: 1px; text-transform: uppercase;
    color: var(--muted); cursor: pointer; -webkit-tap-highlight-color: transparent;
    border-bottom: 2px solid transparent; transition: color 0.15s, border-color 0.15s;
  }
  #catTabs li.active { color: var(--text); border-bottom-color: var(--cat, var(--accent)); }
  #catTabs li[data-cat="Holiday"] { --cat: var(--cat-holiday); }
  #catTabs li[data-cat="Ambient"] { --cat: var(--cat-ambient); }
  #catTabs li[data-cat="Motion"] { --cat: var(--cat-motion); }
  #catTabs li[data-cat="Game Day"] { --cat: var(--cat-gameday); }
  /* "something is over here": the fountain's current pattern (accent) or one of the queued
     picks (grey) lives in a tab that isn't selected */
  #catTabs li.has-live::after, #catTabs li.has-queued::after {
    content: ''; position: absolute; top: 5px; right: 2px;
    width: 6px; height: 6px; border-radius: 50%; background: #6b7686;
  }
  #catTabs li.has-live::after { background: var(--accent); }
  #stripChips {
    list-style: none; display: flex; gap: 8px; min-width: 0;
    overflow-x: auto; scroll-snap-type: x proximity; padding: 4px 2px;
    scroll-padding-left: 2px;
    -webkit-overflow-scrolling: touch; scrollbar-width: none;
  }
  #stripChips li[hidden] { display: none; }
  #stripChips::-webkit-scrollbar { display: none; }
  #stripChips li {
    scroll-snap-align: start; flex: 0 0 auto; white-space: nowrap;
    padding: 11px 16px; border-radius: 999px; font-size: 15px; font-weight: 500;
    color: var(--text); background: rgba(14, 18, 28, 0.94); border: 1px solid var(--line);
    /* NO backdrop-filter: a live blur over the animating WebGL canvas re-blurs every frame; with
       one per chip (~11) it tanked mobile GPUs. A near-opaque solid fill looks the same here. */
    cursor: pointer; -webkit-tap-highlight-color: transparent;
    transition: background 0.15s, border-color 0.15s, color 0.15s;
  }
  #stripChips li.active {
    background: var(--accent); color: #1a1205; border-color: var(--accent); font-weight: 700;
  }
  /* "Customize" is a distinct ACTION, not a pattern — pinned to the bottom-RIGHT corner (out of
     the swipeable rail entirely) so it never reads as a selectable pattern. Square-ish, its own fill. */
  #tweakBtn {
    /* FIXED, not absolute: this button lives INSIDE #patternStrip (bottom: 10px), so absolute
       positioning resolved bottom:72px from the STRIP's edge — floating it 10px above its
       row-mate (#queueBtn anchors to the viewport-sized #app). fixed = same viewport
       coordinates as the rest of the row. */
    position: fixed; right: 12px;
    bottom: calc(env(safe-area-inset-bottom, 0px) + var(--strip-h, 62px) + 18px);  /* above the strip */
    z-index: 16; display: inline-flex; align-items: center; gap: 6px;
    padding: 11px 16px; border-radius: 10px; font-size: 14px; font-weight: 600;
    color: var(--text); background: rgba(40, 48, 62, 0.96);
    border: 1px solid #37424f;     /* lighter border so it reads against the near-black scene */
    cursor: pointer; -webkit-tap-highlight-color: transparent;
  }
  #tweakBtn::before { content: "⚙"; font-size: 14px; line-height: 1; }
  body.live:not(.previewing) #tweakBtn { display: none; }
  #tweakBtn[aria-expanded="true"] { background: var(--accent); color: #1a1205; border-color: var(--accent); }

  /* #panel is now a PARAMS-ONLY sheet, hidden until "Tweak" opens it (fully off-screen when closed).
     Selector is scoped to body.live to out-specify the desktop `body.live #panel` sidebar rule. */
  body.live #panel {
    top: auto; left: 0; right: 0; bottom: 0; width: 100%; max-width: 100%;
    height: auto; max-height: 70vh;
    border-left: none; border-top: 1px solid var(--line);
    border-radius: 16px 16px 0 0;
    padding: 0 0 env(safe-area-inset-bottom, 0px);
    transform: translateY(101%);   /* fully hidden when closed */
    transition: transform 0.28s cubic-bezier(0.22, 0.61, 0.36, 1);
    overflow: hidden;
  }
  body.live #panel.open { transform: translateY(0); }

  /* When the Customize sheet is open, hide the strip and the Customize button so neither obscures the
     sheet's controls (the sheet spans the bottom of the screen). */
  body.live:has(#panel.open) #patternStrip,
  body.live:has(#panel.open) #tweakBtn { display: none !important; }

  /* the sheet bar becomes the sheet's header/close affordance */
  #sheetBar {
    display: flex; align-items: center; gap: 12px;
    width: 100%; height: var(--bar-h, 56px); flex: 0 0 auto;
    padding: 0 18px; background: none; border: none; color: var(--text);
    cursor: pointer; text-align: left; -webkit-tap-highlight-color: transparent;
  }
  #sheetBar .grip {
    position: absolute; top: 8px; left: 50%; transform: translateX(-50%);
    width: 40px; height: 4px; border-radius: 2px; background: var(--line);
  }
  #sheetBar .bar-label { display: flex; flex-direction: column; flex: 1; }
  #sheetBar .bar-now { font-size: 16px; font-weight: 600; }
  #sheetBar .bar-hint { font-size: 11px; color: var(--muted); }
  #sheetBar .chev { color: var(--muted); transition: transform 0.28s; font-size: 13px; transform: rotate(180deg); }

  .sheet-body {
    flex: 1; min-height: 0; overflow-y: auto;
    padding: 4px 16px 20px; -webkit-overflow-scrolling: touch;
  }
  /* the in-sheet pattern LIST is now redundant with the strip — hide it in the tweak sheet */
  .list-section { display: none; }
  .section.pinned { border-bottom: none; }
  /* the sheet header (#sheetBar) already shows the pattern name, so drop the duplicate h2 title
     inside the sheet body — keeps the tweak sheet from repeating "Holiday" twice. */
  #current #patternName { display: none; }
  #current #patternDesc { margin-top: 2px; }
  #adjustToggle { display: none; }
  #panel footer { display: none; }   /* gesture hints don't belong in the tweak sheet */
  #current.collapsed #adjustBody { display: block; }
  #adjustBody { max-height: none; overflow: visible; padding-top: 0; }
  .section.pinned { border-top: none; padding-top: 0; margin-top: 0; }

  /* Bigger touch targets on mobile */
  .param { grid-template-columns: 92px 1fr 38px; margin-bottom: 16px; }
  .param input[type=range] { height: 28px; }
  .param input[type=color] { height: 34px; }
  .param select { padding: 8px; font-size: 15px; }

  #topbar { padding: 10px 14px; gap: 10px; }
  #topbar h1 { font-size: 16px; flex: 1 1 auto; }
  #info { display: none; }   /* keep the top clean on phones */
  #nav { flex: 0 0 auto; gap: 1px; }
  #nav a { padding: 6px 7px; font-size: 12px; }
}
/* narrowest phones: let the title take two lines rather than truncate — the floating bar hangs
   from the measured header height, so a taller header can't collide with it */
@media (max-width: 430px) {
  body.live #topbar h1 { white-space: normal; line-height: 1.12; font-size: 16px; }

}

/* --- Funding ring (live page) ----------------------------------------------- */
/* Just the ring, anchored top-left under the header: "19% / funded" in the middle; tap opens a
   small card below it. On phones the jukebox bar / game banner / queue sheet start to its right
   (see the max-width: 640px block below), so nothing ever pushes it around. */
body.live #fundRing { position: absolute; left: 14px; top: calc(var(--topbar-h, 52px) + 12px); z-index: 14; }
#fundRing .fr-ring {
  position: relative; display: block; width: 76px; height: 76px; padding: 0; border-radius: 50%;
  border: 1px solid var(--line); background: rgba(10, 13, 20, 0.82); color: var(--text);
  cursor: pointer; -webkit-tap-highlight-color: transparent;
}
#fundRing .fr-ring:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
#fundRing svg { position: absolute; inset: 5px; width: calc(100% - 10px); height: calc(100% - 10px); overflow: visible; }
#fundRing circle.lit { filter: drop-shadow(0 0 2px currentColor); }
#fundRing .fr-mid { position: absolute; inset: 0; display: grid; place-items: center; }
#fundRing .fr-a, #fundRing .fr-b { grid-area: 1 / 1; display: flex; flex-direction: column; align-items: center;
  line-height: 1.05; transition: opacity .5s ease; }
#fundRing .fr-mid b { font-size: 16px; font-weight: 700; letter-spacing: -0.3px; }
#fundRing .fr-mid i { font-style: normal; font-size: 10px; color: var(--muted); letter-spacing: .2px; }
#fundRing .fr-b { opacity: 0; }
#fundRing .fr-b i { font-size: 9px; letter-spacing: 0; }
#fundRing.show-people .fr-a { opacity: 0; }
#fundRing.show-people .fr-b { opacity: 1; }
#fundRing .fr-plus { position: absolute; right: -2px; bottom: -2px; width: 20px; height: 20px; border-radius: 50%;
  display: grid; place-items: center; font-size: 14px; font-weight: 700; line-height: 1;
  background: var(--accent); color: #1a1206; border: 2px solid #0a0d14; transition: transform .2s ease; }
#fundRing.open .fr-plus { transform: rotate(45deg); }
#fundRing .fr-card {
  position: absolute; left: 0; top: calc(100% + 10px); width: 250px; padding: 16px;
  border-radius: 14px; border: 1px solid var(--line); background: rgba(14, 18, 28, 0.97);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.45);
}
#fundRing .fr-card[hidden] { display: none; }
#fundRing .fr-big { font-size: 16px; font-weight: 650; margin: 0 0 4px; }
#fundRing .fr-sub { font-size: 13px; color: var(--muted); margin: 0 0 14px; line-height: 1.4; }
#fundRing .fr-venmo { display: flex; align-items: center; justify-content: center; gap: 8px; padding: 10px 12px;
  border-radius: 10px; background: #3d95ce; color: #fff; font-weight: 650; font-size: 14px; text-decoration: none; }
#fundRing .fr-venmo .v { font-weight: 800; font-style: italic; }
#fundRing .fr-more { display: block; margin-top: 12px; font-size: 13px; color: var(--accent); text-decoration: none; }
@media (max-width: 640px) {
  body.live #fundRing { left: 12px; }
  #fundRing .fr-ring { width: 68px; height: 68px; }
  #fundRing .fr-mid b { font-size: 15px; }
}

/* --- Game-mode banner (sports takeover) ------------------------------------ */
/* Scoped to body.live: only the jukebox page ever shows it (doc pages have no #app). */
body.live #gameBanner {
  position: absolute; top: calc(var(--topbar-h, 52px) + 10px); left: 50%; transform: translateX(-50%);
  width: max-content; max-width: min(560px, 92vw); padding: 10px 18px; text-align: center;
  background: rgba(14, 18, 28, 0.94); border: 1px solid #37424f; border-radius: 12px;
  z-index: 18; pointer-events: none;
}
body.live #gameBanner .gb-head { font-size: 15px; font-weight: 600; letter-spacing: 0.2px; }
body.live #gameBanner .gb-sub { font-size: 12px; color: var(--muted); margin-top: 3px; }
body.live #gameBanner.flash { animation: gbFlash 0.45s ease 2; }
@keyframes gbFlash { 50% { border-color: #7bb2dd; } }
@media (max-width: 640px) {
  body.live #gameBanner { padding: 8px 14px; }
  body.live #gameBanner .gb-head { font-size: 13px; }
  body.live #gameBanner .gb-sub { font-size: 11px; }
}

/* --- Jukebox bar (now playing / up next) ------------------------------------ */
body.live #jukeboxBar {
  position: absolute; top: calc(var(--topbar-h, 52px) + 10px); left: 50%; transform: translateX(-50%);
  width: max-content; max-width: min(560px, 92vw); padding: 8px 16px; text-align: center;
  background: rgba(14, 18, 28, 0.94); border: 1px solid #37424f; border-radius: 12px;
  z-index: 17; cursor: pointer;
}
body.live #jukeboxBar .jb-main { font-size: 14px; font-weight: 600; letter-spacing: 0.2px; }
body.live #jukeboxBar .jb-next { font-size: 11.5px; color: var(--muted); margin-top: 2px; }
body.live #jukeboxBar .jb-game { font-size: 11.5px; color: var(--text); margin-top: 5px; padding-top: 5px;
  border-top: 1px solid var(--line); }
body.live #jukeboxBar .jb-game[hidden] { display: none; }
body.live #queueBtn.locked { background: rgba(40, 48, 62, 0.96); color: var(--muted); border-color: #37424f; }
body.live #jukeboxBar.flash { animation: gbFlash 0.45s ease 2; }
@media (max-width: 640px) {
  body.live #jukeboxBar { padding: 7px 12px; }
  body.live #jukeboxBar .jb-main { font-size: 13px; }
  body.live #jukeboxBar .jb-next { font-size: 11px; }
}
/* hide the bar when the mobile tweak sheet is open, like the other floating controls */
body.live:has(#panel.open) #jukeboxBar { display: none; }

/* queue position badges on pattern chips / list items */
#patterns li.queued, #stripChips li.queued { position: relative; }
#patterns li.queued::after, #stripChips li.queued::after {
  content: attr(data-qpos); position: absolute; top: -6px; right: -4px;
  min-width: 16px; height: 16px; line-height: 16px; text-align: center;
  font-size: 10px; font-weight: 700; border-radius: 8px; padding: 0 3px;
  background: #37424f; color: var(--text);
}
#patterns li.queued-mine::after, #stripChips li.queued-mine::after {
  background: var(--accent); color: #1a1205;
}

/* Preview-mode action button: submits the previewed pattern (with tweaks) to the queue. */
body.live #queueBtn {
  position: absolute; left: 50%; transform: translateX(-50%);
  bottom: calc(env(safe-area-inset-bottom, 0px) + var(--strip-h, 62px) + 18px);
  z-index: 16; border: 1px solid var(--accent); border-radius: 10px;
  background: var(--accent); color: #1a1205;
  font-family: inherit; font-weight: 700; font-size: 14px;
  padding: 10px 18px; cursor: pointer; white-space: nowrap;
  -webkit-tap-highlight-color: transparent;
}
body.live #queueBtn:active { transform: translateX(-50%) scale(0.97); }
body.live:has(#panel.open) #queueBtn { display: none; }
@media (min-width: 641px) { body.live #queueBtn { bottom: 24px; } }

@media (max-width: 640px) {
  /* Night/Day · Queue · Customize sit on ONE row above the strip. They already share a bottom
     offset (+72px in their own rules), but each had a different box height, so their TOPS were
     ragged (Customize, the tallest, poked up). One fixed height + centered content = a true row. */
  body.live #queueBtn, body.live #tweakBtn {
    height: 42px; box-sizing: border-box; align-items: center;
  }
  body.live #queueBtn { display: inline-flex; }
}

/* --- Full-queue panel (expands under the jukebox bar) ----------------------- */
body.live #queueSheet .qs-btn.qs-del.armed { background: #7a2430; border-color: #b0404f; color: #fff; }
body.live #queueSheet {
  position: absolute; top: calc(var(--topbar-h, 52px) + 80px); left: 50%; transform: translateX(-50%);
  width: min(420px, 92vw); max-height: 46vh; overflow-y: auto;
  background: rgba(14, 18, 28, 0.96); border: 1px solid #37424f; border-radius: 12px;
  z-index: 17; padding: 6px;
}
body.live #queueSheet .qs-row {
  display: flex; align-items: center; gap: 8px;
  padding: 9px 10px; border-radius: 8px; font-size: 13.5px;
}
body.live #queueSheet .qs-now { font-weight: 600; border-bottom: 1px solid var(--line);
  border-radius: 8px 8px 0 0; margin-bottom: 2px; }
body.live #queueSheet .qs-empty { color: var(--muted); font-size: 12.5px; }
body.live #queueSheet .qs-empty:first-child { padding: 12px 14px; }
body.live #queueSheet .qs-mine { background: rgba(255, 179, 71, 0.08); }
body.live #queueSheet .qs-label { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis;
  white-space: nowrap; }
body.live #queueSheet .qs-btn {
  flex: none; font-family: inherit; font-size: 12px; font-weight: 600;
  color: var(--text); background: rgba(40, 48, 62, 0.96); border: 1px solid #37424f;
  border-radius: 7px; padding: 5px 10px; cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}
body.live #queueSheet .qs-del { color: #ff8d7e; }

/* per-entry ETA in the queue panel */
body.live #queueSheet .qs-eta {
  flex: none; color: var(--muted); font-size: 12px; font-variant-numeric: tabular-nums;
}

/* --- Pattern categories ------------------------------------------------------ */
/* Desktop sidebar: section headers between category groups. */
#patterns li.cat-header {
  cursor: default; pointer-events: none; position: relative;
  font-size: 11px; text-transform: uppercase; letter-spacing: 1px;
  color: var(--muted); padding: 14px 4px 4px 14px; background: none; border: none;
}
#patterns li.cat-header:first-child { padding-top: 2px; }
#patterns li.cat-header::before {
  content: ''; position: absolute; left: 2px; bottom: 7px;
  width: 3px; height: 11px; border-radius: 2px; background: var(--cat, var(--muted));
}
#patterns li.cat-header[data-cat="Holiday"] { --cat: var(--cat-holiday); }
#patterns li.cat-header[data-cat="Ambient"] { --cat: var(--cat-ambient); }
#patterns li.cat-header[data-cat="Motion"] { --cat: var(--cat-motion); }
#patterns li.cat-header[data-cat="Game Day"] { --cat: var(--cat-gameday); }
/* ===== Support page (/support): neighbor-facing ask — trust facts, funding bar, Venmo, notes ===== */
.sup .lead strong { color: var(--text); }
.sup .doc-block h2 { margin-bottom: 12px; }

/* family photo: the whole composition (Santa included), a rounded rectangle — a circle would crop
   it apart. Floats beside the intro on wide screens, sits above it on phones. */
.family { float: right; width: 240px; margin: 4px 0 14px 26px; }
.family img { display: block; width: 100%; height: auto; border-radius: 12px;
  border: 1px solid var(--line); }
.family figcaption { margin-top: 7px; font-size: 12.5px; color: var(--muted); text-align: center; }
.intro::after { content: ""; display: block; clear: both; }
@media (max-width: 640px) {
  .family { float: none; width: min(300px, 78%); margin: 4px auto 18px; }
}

/* live render hero: same visualizer as the jukebox, boxed */
.hero-wrap { position: relative; width: 100%; aspect-ratio: 16 / 9; min-height: 240px;
  border: 1px solid var(--line); border-radius: 10px; overflow: hidden; background: #05070d; }
.hero-wrap #scene { position: absolute; inset: 0; width: 100%; height: 100%; display: block;
  touch-action: pan-y; cursor: grab; }
.hero-wrap #scene:active { cursor: grabbing; }
.hero-badge { position: absolute; top: 10px; left: 12px; font-size: 11px; letter-spacing: 0.6px;
  text-transform: uppercase; color: var(--muted); background: rgba(14,18,28,0.85);
  border: 1px solid var(--line); border-radius: 999px; padding: 4px 10px; pointer-events: none; }
.sup .caption a { color: var(--accent); }
@media (max-width: 640px) { .hero-wrap { aspect-ratio: 4 / 3; } }

/* trust facts */
.facts { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 14px; }
.facts li { display: flex; gap: 16px; align-items: baseline; }
.facts .f-k { flex: 0 0 88px; color: var(--muted); font-size: 12px; text-transform: uppercase;
  letter-spacing: 0.8px; padding-top: 2px; }
.facts .f-v { flex: 1; min-width: 0; font-size: 15px; line-height: 1.55; color: var(--muted); }
.facts .f-v strong { color: var(--text); font-weight: 600; }
.facts .f-v a { color: var(--accent); }
@media (max-width: 560px) {
  .facts li { flex-direction: column; gap: 3px; }
  .facts .f-k { flex: none; }
}

/* funding bar: monochrome chrome, accent fill — the fountain is the only other color on the site */
.thermo { margin: 4px 0 16px; }
.thermo-bar { height: 14px; border-radius: 999px; background: #121826; border: 1px solid var(--line);
  overflow: hidden; }
.thermo-fill { height: 100%; background: var(--accent); border-radius: 999px;
  transition: width 900ms cubic-bezier(.2,.8,.2,1); min-width: 0; }
.thermo-line { margin-top: 10px; font-size: 15px; color: var(--muted); }
.thermo-line strong { color: var(--text); font-size: 17px; }

.give { margin-top: 20px; }
.venmo-btn { display: inline-flex; align-items: center; gap: 12px; padding: 14px 20px;
  border-radius: 12px; background: #008cff; color: #fff; text-decoration: none; font-weight: 600;
  font-size: 17px; box-shadow: 0 6px 22px rgba(0,140,255,0.25); }
.venmo-btn:hover { background: #1a97ff; }
.venmo-btn.disabled { background: #1d2735; color: var(--muted); box-shadow: none; cursor: default; }
.venmo-btn .v-logo { display: inline-grid; place-items: center; width: 30px; height: 30px;
  border-radius: 8px; background: #fff; color: #008cff; font-weight: 800; font-size: 18px; }
.venmo-btn .v-handle { font-weight: 400; opacity: 0.85; margin-left: 4px; }
.amounts { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; }
.amounts a { display: inline-block; padding: 8px 16px; border-radius: 999px; border: 1px solid var(--line);
  color: var(--text); text-decoration: none; font-size: 14px; background: rgba(255,255,255,0.03); }
.amounts a:hover { border-color: var(--accent); color: var(--accent); }
.sup .small-note { font-size: 13px; margin-top: 14px; font-style: italic; }
@media (max-width: 560px) {
  .venmo-btn { width: 100%; justify-content: center; box-sizing: border-box; }
}

/* neighbor note form */
.note-form { margin-top: 16px; display: flex; flex-direction: column; gap: 14px; }
.kinds { display: flex; flex-wrap: wrap; gap: 8px; }
.kinds label { position: relative; cursor: pointer; }
.kinds input { position: absolute; opacity: 0; width: 0; height: 0; }
.kinds span { display: inline-block; padding: 8px 14px; border-radius: 999px; border: 1px solid var(--line);
  color: var(--muted); font-size: 14px; background: rgba(255,255,255,0.03); }
.kinds input:checked + span { border-color: var(--accent); color: var(--accent); background: rgba(255,179,71,0.12); }
.kinds input:focus-visible + span { outline: 2px solid var(--accent); outline-offset: 2px; }
.field { display: flex; flex-direction: column; gap: 6px; flex: 1; min-width: 0; }
.field > span { font-size: 12px; color: var(--muted); text-transform: uppercase; letter-spacing: 0.6px; }
.field > span em { font-style: normal; text-transform: none; letter-spacing: 0; opacity: 0.8; }
.field input, .field textarea { width: 100%; box-sizing: border-box; padding: 10px 12px; border-radius: 8px;
  border: 1px solid var(--line); background: #0d1320; color: var(--text); font: inherit; font-size: 15px; }
.field input:focus, .field textarea:focus { outline: none; border-color: var(--accent); }
.field textarea { resize: vertical; min-height: 90px; }
.field-row { display: flex; gap: 12px; }
@media (max-width: 560px) { .field-row { flex-direction: column; } }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.note-actions { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; }
.note-actions button { padding: 11px 22px; border-radius: 10px; border: none; background: var(--accent);
  color: #1a1205; font: inherit; font-size: 15px; font-weight: 600; cursor: pointer; }
.note-actions button:hover { filter: brightness(1.08); }
.note-actions button:disabled { opacity: 0.6; cursor: default; }
.note-status { font-size: 14px; color: var(--muted); }

/* Phones: the jukebox bar (and the game banner / queue sheet that share its slot) runs full width
   under the header, held to exactly two lines so its height never changes; the funding ring is
   anchored just below it on the left, over the empty sky above the fountain. Last in the file on
   purpose — it overrides the rules above. */
@media (max-width: 640px) {
  body.live #jukeboxBar, body.live #gameBanner, body.live #queueSheet {
    left: 12px; right: 12px; transform: none; width: auto; max-width: none;
  }
  body.live #jukeboxBar .jb-main, body.live #jukeboxBar .jb-next {
    white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
  }
  /* below the jukebox bar, however tall it is (a live game adds a line) */
  body.live #fundRing { top: calc(var(--jb-bottom, calc(var(--topbar-h, 52px) + 60px)) + 12px); }
}

/* Trees on/off: a small round button — top-right on phones (across from the funding ring), under
   the funding ring on desktop. Dim when the trees are off. */
body.live #treeToggle {
  position: absolute; z-index: 14; left: 22px; top: calc(var(--topbar-h, 52px) + 104px);
  width: 42px; height: 42px; border-radius: 50%; padding: 9px; display: grid; place-items: center;
  background: rgba(10, 13, 20, 0.82); border: 1px solid var(--line); color: #c9d2de; cursor: pointer;
  -webkit-tap-highlight-color: transparent; transition: color .2s, opacity .2s;
}
body.live #treeToggle svg { width: 22px; height: 22px; }
body.live #treeToggle.off { color: #4b5566; }
body.live #treeToggle.off::after { content: ""; position: absolute; width: 26px; height: 2px; background: #4b5566;
  transform: rotate(-45deg); border-radius: 1px; }
body.live #treeToggle:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
@media (max-width: 640px) {
  body.live #treeToggle { left: auto; right: 12px; top: calc(var(--jb-bottom, calc(var(--topbar-h, 52px) + 60px)) + 12px); }
}


/* --- Customize controls: palettes, Speed, named sliders, segmented choices ------------------
   Shared by the desktop Adjust section and the mobile sheet. No numbers or units anywhere: ends
   are named, and a tick under each slider marks where it was designed to sit. */
.ctl { margin: 0 0 14px; }
.ctl-head { display: flex; justify-content: space-between; align-items: baseline; gap: 8px; margin-bottom: 4px; }
.ctl-label { font-size: 12px; font-weight: 600; color: var(--text); }
.ctl-word { font-size: 12px; color: var(--muted); }
.ctl input[type=range] { width: 100%; height: 28px; margin: 0; accent-color: var(--accent); }
.ctl-ends { position: relative; display: flex; justify-content: space-between; margin-top: 1px; font-size: 11px; color: #5c6878; }
.ctl-tick { position: absolute; top: -9px; width: 1px; height: 6px; background: #5c6878; transform: translateX(-50%); }
.pal-chips { display: flex; gap: 8px; overflow-x: auto; padding: 2px 2px 8px; scrollbar-width: none; scroll-snap-type: x proximity; }
.pal-chips::-webkit-scrollbar { display: none; }
.pal-chip {
  flex: 0 0 auto; width: 84px; min-height: 54px; padding: 6px 6px 5px;
  background: #111827; border: 1px solid #243044; border-radius: 12px;
  color: var(--text); font: 11px/1.2 var(--sans); text-align: center; cursor: pointer;
  scroll-snap-align: start; -webkit-tap-highlight-color: transparent;
}
.pal-chip canvas { display: block; width: 100%; height: 22px; margin-bottom: 3px; }
.pal-chip[aria-pressed="true"] { border-color: var(--accent); box-shadow: inset 0 0 0 1px var(--accent); }
.pal-custom { margin: 4px 0 2px; }
.pal-hint { margin-bottom: 6px; font-size: 12px; color: var(--muted); }
.sw-grid { display: grid; grid-template-columns: repeat(6, 1fr); gap: 8px; max-width: 320px; }
.sw { aspect-ratio: 1; min-height: 32px; border-radius: 50%; border: 2px solid rgba(255, 255, 255, 0.08); cursor: pointer; padding: 0; }
.sw[aria-pressed="true"] { border-color: #fff; box-shadow: 0 0 0 2px var(--accent); }
.pal-sticky { font-size: 12px; color: var(--muted); }
.pal-sticky:not(:empty) { margin-top: 2px; }
.link-btn { padding: 0; background: none; border: 0; color: var(--accent); font: inherit; cursor: pointer; text-decoration: underline; text-underline-offset: 2px; }
.seg { display: flex; gap: 6px; }
.seg button {
  flex: 1; min-height: 38px; background: #111827; border: 1px solid #243044; border-radius: 10px;
  color: var(--text); font: 13px var(--sans); cursor: pointer; -webkit-tap-highlight-color: transparent;
}
.seg button[aria-pressed="true"] { background: #2a2012; border-color: var(--accent); color: #ffd9a8; }
.pal-chip:focus-visible, .seg button:focus-visible, .sw:focus-visible, .link-btn:focus-visible,
#sheetActions button:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
#resetLink { margin-top: 2px; font-size: 12px; }
#sheetActions { display: none; }
@media (max-width: 640px) {
  #resetLink { display: none; }            /* the sheet has its own Reset */
  body.live #panel { max-height: 62vh; }   /* leave the ring room above the sheet */
  body.live.previewing #sheetActions {
    display: block; flex: 0 0 auto; padding: 8px 16px 12px;
    border-top: 1px solid var(--line); background: var(--panel);
  }
  #sheetStatus { min-height: 1.3em; margin: 0 0 8px; font-size: 11.5px; color: var(--muted); text-align: center; }
  .sa-row { display: flex; gap: 10px; }
  #sheetReset {
    padding: 12px 16px; background: transparent; color: var(--muted);
    border: 1px solid var(--line); border-radius: 12px; font: 600 14px var(--sans); cursor: pointer;
  }
  #sheetGo {
    flex: 1; padding: 12px 14px; background: var(--accent); color: #1a1205;
    border: 1px solid var(--accent); border-radius: 12px; font: 700 14px var(--sans); cursor: pointer;
  }
  #sheetGo.locked { background: rgba(40, 48, 62, 0.96); color: var(--muted); border-color: #37424f; }
}

/* Pull-to-refresh only from the top of the screen (the top bar and the jukebox bar): a pull starts
   only on something that allows vertical panning, so everything below takes it away — the scene
   (orbit), the sheet handle (drags the sheet), the strip (sideways only), the floating buttons —
   and a scrolled sheet stops at its own edges instead of handing the pull to the page. */
@media (max-width: 640px) {
  #sheetBar { touch-action: none; cursor: grab; }
  #sheetBar:active { cursor: grabbing; }
  .sheet-body { touch-action: pan-y; overscroll-behavior: contain; }
  body.live #patternStrip { touch-action: pan-x; }
  body.live #fundRing, body.live #treeToggle, body.live #queueBtn, body.live #sheetActions { touch-action: none; }
  /* the gap between the top bar and the jukebox bar shows the scene; cover it (and the bar's sides)
     down to the bar's bottom edge, under the bar and above the scene, so a pull there refreshes */
  body.live #pullZone { position: absolute; left: 0; right: 0; top: 0; height: calc(var(--jb-bottom, 0px) + 6px);
    z-index: 12; touch-action: pan-y; }
}
#pullZone { display: none; }
@media (max-width: 640px) { body.live #pullZone { display: block; } }

/* The phone sheet slides over a live WebGL scene: a backdrop blur there re-blurs every frame of the
   slide (the strip dropped its blur for the same reason). Solid instead, and its own compositor
   layer so the slide is a pure transform. */
@media (max-width: 640px) {
  body.live #panel { backdrop-filter: none; -webkit-backdrop-filter: none; background: #0b0f18; will-change: transform; }
}
