/* ==========================================================
   Aloha Flip TV Board — several split-flap signs on one screen
   ========================================================== */

:root {
  color-scheme: dark;
  --ui-font: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --accent: #ffb36b;
  --panel: rgba(16, 18, 30, 0.94);
  --line: rgba(255, 255, 255, 0.14);
}
*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html, body { height: 100%; margin: 0; }
body {
  background: #000;
  color: #f4f1ea;
  font-family: var(--ui-font);
  overflow: hidden;
  -webkit-font-smoothing: antialiased;
  -webkit-tap-highlight-color: transparent;
}
body.idle { cursor: none; }

/* ---------- Screen + canvas ---------- */
.screen {
  position: fixed;
  inset: 0;
  overflow: hidden;
  background: #000;
}
.canvas {
  position: absolute;
  left: 50%;
  top: 50%;
  width: var(--cw, 100vw);
  height: var(--ch, 100vh);
  overflow: hidden;
  transform: translate(-50%, -50%) var(--canvas-tf, rotate(0deg));
  transition: translate 2s ease;
  container-type: size;
}
.canvas-bg {
  position: absolute;
  inset: 0;
  background: var(--bg, #0b1026);
  background-size: cover;
  background-position: center;
}
.canvas-bg::after { content: ""; position: absolute; inset: 0; background: rgba(0, 0, 0, var(--bg-dim, 0)); }
.canvas-bg.moving { background-size: 400% 400%; animation: bgpan 60s ease-in-out infinite alternate; }
@keyframes bgpan { from { background-position: 0% 30%; } to { background-position: 100% 70%; } }

.grid-lines {
  position: absolute;
  inset: 0;
  pointer-events: none;
  opacity: 0;
  background-image:
    linear-gradient(90deg, rgba(255, 255, 255, 0.07) 1px, transparent 1px),
    linear-gradient(rgba(255, 255, 255, 0.07) 1px, transparent 1px);
  background-size: 5% 5%;
  transition: opacity 0.3s;
}
body.editing .grid-lines { opacity: 1; }

/* ---------- A sign box ---------- */
.pbox {
  position: absolute;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: var(--cap-gap, 6px);
  touch-action: none;
}
.pcap {
  font-family: var(--cap-font, "Oswald", "Roboto Condensed", "Arial Narrow", sans-serif);
  font-weight: 600;
  font-size: var(--cap-size, 18px);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--cap-color, rgba(255, 255, 255, 0.85));
  text-shadow: 0 1px 6px rgba(0, 0, 0, 0.5);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 100%;
  line-height: 1.1;
}
body.editing .pbox { cursor: grab; }
body.editing .pbox::after {
  content: "";
  position: absolute;
  inset: 0;
  border: 2px dashed rgba(255, 255, 255, 0.35);
  border-radius: 8px;
  pointer-events: none;
}
body.editing .pbox.sel::after { border: 2px solid var(--accent); box-shadow: 0 0 0 4px rgba(255, 179, 107, 0.25); }
body.editing .pbox.dragging { cursor: grabbing; opacity: 0.85; }
.ptag, .phandle { display: none; }
body.editing .ptag {
  display: block;
  position: absolute;
  top: 4px;
  left: 4px;
  z-index: 5;
  padding: 3px 8px;
  border-radius: 10px;
  background: rgba(0, 0, 0, 0.7);
  font: 600 12px var(--ui-font);
  color: #fff;
  pointer-events: none;
  white-space: nowrap;
}
body.editing .pbox.sel .ptag { background: var(--accent); color: #1a1208; }
body.editing .phandle {
  display: block;
  position: absolute;
  right: -8px;
  bottom: -8px;
  z-index: 6;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: var(--accent);
  border: 3px solid #1a1208;
  cursor: nwse-resize;
  touch-action: none;
}
.pbox.empty-note .board { opacity: 0.4; }

/* ---------- The board (split-flap tiles) ---------- */
.board {
  --tw: 30px;
  --th: 40px;
  --gap: 3px;
  --pad: 10px;
  --seam: 1px;
  --tile-r: 3px;
  display: grid;
  grid-template-columns: repeat(var(--cols), var(--tw));
  gap: var(--gap);
  padding: var(--pad);
  background: var(--frame);
  border-radius: calc(var(--pad) * 0.6);
  box-shadow: 0 1.5vmin 4vmin rgba(0, 0, 0, 0.35), inset 0 1px 0 rgba(255, 255, 255, 0.07), inset 0 0 0 1px rgba(0, 0, 0, 0.25);
  user-select: none;
  -webkit-user-select: none;
  pointer-events: none;
}
.board.no-frame { background: none; box-shadow: none; }
.tile {
  position: relative;
  width: var(--tw);
  height: var(--th);
  perspective: calc(var(--th) * 5);
  border-radius: var(--tile-r);
  box-shadow: 0 calc(var(--th) * 0.04) calc(var(--th) * 0.07) rgba(0, 0, 0, 0.45);
}
.half, .flap {
  position: absolute;
  left: 0;
  width: 100%;
  height: calc(50% - var(--seam) / 2);
  overflow: hidden;
  color: var(--tile-fg);
  background-color: var(--tile-bg);
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
}
.top {
  top: 0;
  border-radius: var(--tile-r) var(--tile-r) 1px 1px;
  background-image: linear-gradient(180deg, rgba(255, 255, 255, 0.08), rgba(255, 255, 255, 0) 70%);
  transform-origin: 50% 100%;
}
.bottom {
  bottom: 0;
  border-radius: 1px 1px var(--tile-r) var(--tile-r);
  background-image: linear-gradient(180deg, rgba(0, 0, 0, 0.16), rgba(0, 0, 0, 0) 45%);
  transform-origin: 50% 0;
}
.half { z-index: 0; }
.flap.bottom { z-index: 2; }
.flap.top { z-index: 3; }
.half span, .flap span {
  position: absolute;
  left: 0;
  width: 100%;
  height: var(--th);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--sign-font, "Oswald", "Roboto Condensed", "Arial Narrow", Arial, sans-serif);
  font-weight: 600;
  font-size: calc(var(--th) * 0.68);
  line-height: 1;
  white-space: pre;
}
.half span.emo, .flap span.emo { font-size: calc(var(--th) * 0.5); font-family: "Apple Color Emoji", "Segoe UI Emoji", "Noto Color Emoji", sans-serif; }
.top span { top: 0; }
.bottom span { bottom: 0; }
.flap i { position: absolute; inset: 0; opacity: 0; pointer-events: none; }
.flap.top i { background: linear-gradient(180deg, rgba(0, 0, 0, 0.55), #000); }
.flap.bottom i { background: linear-gradient(180deg, #000, rgba(0, 0, 0, 0.5)); }
.tile::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: 50%;
  height: var(--seam);
  transform: translateY(-50%);
  z-index: 1;
  background: rgba(0, 0, 0, 0.6);
  pointer-events: none;
}

/* ---------- Sleep (outside open hours) ---------- */
.sleep {
  position: fixed;
  inset: 0;
  z-index: 40;
  display: grid;
  place-items: center;
  background: #000;
  cursor: none;
}
.sleep.dim { background: rgba(0, 0, 0, 0.82); }
.sleep-clock { font: 300 8vmin var(--ui-font); color: rgba(255, 255, 255, 0.28); font-variant-numeric: tabular-nums; }

/* ---------- Buttons while viewing ---------- */
.view-hud {
  position: fixed;
  z-index: 30;
  top: max(12px, env(safe-area-inset-top));
  right: max(12px, env(safe-area-inset-right));
  display: flex;
  gap: 8px;
  transition: opacity 0.4s;
}
body.idle .view-hud, body.editing .view-hud, body.locked .view-hud { opacity: 0; pointer-events: none; }
.hud-btn, .bar-btn {
  height: 40px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 0 14px;
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 20px;
  background: rgba(0, 0, 0, 0.5);
  color: #fff;
  font: 600 14px var(--ui-font);
  text-decoration: none;
  white-space: nowrap;
  cursor: pointer;
}
.hud-btn.main, .bar-btn.main { background: rgba(255, 150, 80, 0.45); border-color: rgba(255, 190, 140, 0.6); }
.bar-btn.done { background: var(--accent); color: #1a1208; border-color: var(--accent); }
@media (hover: hover) { .hud-btn:hover, .bar-btn:hover { filter: brightness(1.2); } }
@supports (backdrop-filter: blur(1px)) { .hud-btn, .bar-btn { backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); } }

/* ---------- Editing toolbar ---------- */
.bar {
  position: fixed;
  z-index: 30;
  top: max(10px, env(safe-area-inset-top));
  left: max(10px, env(safe-area-inset-left));
  right: max(10px, env(safe-area-inset-right));
  display: flex;
  gap: 6px;
  overflow-x: auto;
  scrollbar-width: none;
  padding: 2px;
}
.bar::-webkit-scrollbar { display: none; }
.bar-gap { flex: 1; }
.edit-tip {
  position: fixed;
  z-index: 29;
  left: 50%;
  bottom: max(12px, env(safe-area-inset-bottom));
  transform: translateX(-50%);
  margin: 0;
  padding: 8px 14px;
  border-radius: 16px;
  background: rgba(0, 0, 0, 0.6);
  font: 500 13px var(--ui-font);
  white-space: nowrap;
  pointer-events: none;
}
body.sheet-open .edit-tip { display: none; }

.pop {
  position: fixed;
  z-index: 35;
  top: calc(max(10px, env(safe-area-inset-top)) + 50px);
  left: max(10px, env(safe-area-inset-left));
  width: min(330px, calc(100vw - 20px));
  max-height: calc(100dvh - 80px);
  overflow-y: auto;
  padding: 8px;
  border-radius: 16px;
  background: var(--panel);
  border: 1px solid var(--line);
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.5);
}
.pop button {
  display: grid;
  grid-template-columns: 34px 1fr;
  align-items: center;
  width: 100%;
  padding: 9px 8px;
  border: 0;
  border-radius: 10px;
  background: none;
  color: #fff;
  text-align: left;
  font: 600 15px var(--ui-font);
  cursor: pointer;
}
.pop button small { grid-column: 2; font-weight: 400; font-size: 12.5px; color: rgba(255, 255, 255, 0.6); }
.pop button > span:first-child { grid-row: span 2; font-size: 22px; }
.pop button:hover, .pop button:focus-visible { background: rgba(255, 255, 255, 0.08); outline: none; }

/* ---------- Settings sheet ---------- */
.sheet {
  position: fixed;
  z-index: 36;
  top: 0;
  right: 0;
  bottom: 0;
  width: min(390px, 100vw);
  display: flex;
  flex-direction: column;
  background: var(--panel);
  border-left: 1px solid var(--line);
  box-shadow: -16px 0 40px rgba(0, 0, 0, 0.4);
  padding-top: env(safe-area-inset-top);
}
@supports (backdrop-filter: blur(1px)) { .sheet, .pop { background: rgba(16, 18, 30, 0.86); backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px); } }
@media (max-width: 640px) {
  .sheet {
    top: auto;
    left: 0;
    width: 100%;
    max-height: 62dvh;
    border-left: 0;
    border-top: 1px solid var(--line);
    border-radius: 18px 18px 0 0;
    padding-top: 0;
  }
}
.sheet-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 14px 16px 8px;
}
.sheet-head h2 { margin: 0; font: 700 18px var(--ui-font); }
.x-btn {
  width: 36px;
  height: 36px;
  flex: none;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.06);
  color: #fff;
  font-size: 16px;
  cursor: pointer;
}
.sheet-body {
  flex: 1;
  overflow-y: auto;
  padding: 4px 16px calc(20px + env(safe-area-inset-bottom));
  -webkit-overflow-scrolling: touch;
}
.fld { display: grid; gap: 6px; margin: 12px 0; }
.fld > span { font: 600 12px var(--ui-font); letter-spacing: 0.06em; text-transform: uppercase; color: rgba(255, 255, 255, 0.6); }
.fld small, .note { font-size: 12.5px; color: rgba(255, 255, 255, 0.6); line-height: 1.4; }
.note { margin: 8px 0; }
.sheet input[type="text"], .sheet input[type="number"], .sheet input[type="time"], .sheet input[type="date"], .sheet input[type="url"], .sheet textarea, .sheet select {
  width: 100%;
  padding: 9px 10px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.06);
  color: #fff;
  font: 500 16px var(--ui-font);
}
.sheet textarea { min-height: 120px; resize: vertical; line-height: 1.4; text-transform: uppercase; }
.sheet input[type="text"].upper { text-transform: uppercase; }
.sheet input[type="range"] { width: 100%; accent-color: var(--accent); }
.sheet select { appearance: none; -webkit-appearance: none; }
.seg { display: flex; flex-wrap: wrap; gap: 4px; }
.seg button {
  flex: 1 1 auto;
  min-height: 36px;
  padding: 6px 10px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.05);
  color: #fff;
  font: 600 13.5px var(--ui-font);
  cursor: pointer;
}
.seg button[aria-checked="true"] { background: var(--accent); border-color: var(--accent); color: #1a1208; }
.row2 { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.chk { display: flex; align-items: center; gap: 10px; margin: 10px 0; font: 500 15px var(--ui-font); cursor: pointer; }
.chk input { width: 20px; height: 20px; accent-color: var(--accent); }
.days { display: grid; grid-template-columns: repeat(7, 1fr); gap: 4px; }
.days button { min-height: 34px; padding: 0; }
.btn {
  min-height: 40px;
  padding: 8px 14px;
  border: 1px solid var(--accent);
  border-radius: 12px;
  background: var(--accent);
  color: #1a1208;
  font: 700 14.5px var(--ui-font);
  cursor: pointer;
}
.btn.ghost { background: rgba(255, 255, 255, 0.05); color: #fff; border-color: var(--line); }
.btn.danger { background: rgba(255, 80, 80, 0.12); color: #ff9c9c; border-color: rgba(255, 120, 120, 0.4); }
.btns { display: flex; flex-wrap: wrap; gap: 8px; margin: 14px 0; }
.btns .btn { flex: 1 1 auto; }
.sec { margin: 18px 0 4px; font: 700 12px var(--ui-font); letter-spacing: 0.12em; text-transform: uppercase; color: var(--accent); }
.swatches { display: grid; grid-template-columns: repeat(auto-fill, minmax(62px, 1fr)); gap: 6px; }
.swatches button {
  display: grid;
  gap: 4px;
  justify-items: center;
  padding: 6px 2px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.04);
  color: #fff;
  font: 500 11.5px var(--ui-font);
  cursor: pointer;
}
.swatches button[aria-checked="true"] { border-color: var(--accent); box-shadow: 0 0 0 2px var(--accent) inset; }
.swatches i { display: block; width: 34px; height: 24px; border-radius: 5px; border: 1px solid rgba(255, 255, 255, 0.2); }
.tpls { display: grid; gap: 8px; }
.tpls button {
  display: grid;
  grid-template-columns: 76px 1fr;
  gap: 4px 12px;
  align-items: center;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.04);
  color: #fff;
  text-align: left;
  font: 700 15px var(--ui-font);
  cursor: pointer;
}
.tpls button small { font-weight: 400; font-size: 12.5px; color: rgba(255, 255, 255, 0.62); }
.tpls .mini { grid-row: span 2; position: relative; width: 76px; height: 44px; border-radius: 5px; background: #0b1026; border: 1px solid var(--line); overflow: hidden; }
.tpls .mini.tall { width: 30px; height: 50px; justify-self: center; }
.tpls .mini b { position: absolute; background: #2a3f66; border-radius: 1.5px; }
.share-url { width: 100%; font: 500 13px ui-monospace, Menlo, monospace !important; }

.toast {
  position: fixed;
  z-index: 60;
  left: 50%;
  bottom: max(60px, calc(env(safe-area-inset-bottom) + 50px));
  max-width: calc(100vw - 32px);
  padding: 10px 16px;
  border-radius: 14px;
  background: rgba(10, 10, 16, 0.94);
  color: #fff;
  font: 500 14px var(--ui-font);
  opacity: 0;
  pointer-events: none;
  transform: translate(-50%, 8px);
  transition: opacity 0.25s, transform 0.25s;
}
.toast.show { opacity: 1; transform: translate(-50%, 0); }

@media (prefers-reduced-motion: reduce) {
  .canvas-bg.moving { animation: none; }
  .canvas { transition: none; }
}

/* Editing: the screen makes room for the toolbar (and the side sheet on wide screens) */
body.editing .screen { top: calc(max(10px, env(safe-area-inset-top)) + 52px); bottom: 8px; left: 8px; right: 8px; }
@media (min-width: 641px) { body.editing.sheet-open .screen { right: min(398px, 100vw); } }
@media (max-width: 640px) { body.editing.sheet-open .screen { bottom: 62dvh; } }

.lock-hint {
  position: fixed;
  z-index: 31;
  top: max(12px, env(safe-area-inset-top));
  left: max(12px, env(safe-area-inset-left));
  user-select: none;
  -webkit-user-select: none;
  -webkit-touch-callout: none;
  background-image: linear-gradient(90deg, rgba(255, 179, 107, 0.7), rgba(255, 179, 107, 0.7));
  background-repeat: no-repeat;
  background-size: 0% 100%;
}
.lock-hint.holding { background-size: 100% 100%; transition: background-size 2s linear; }
.toast-act { margin-left: 10px; border: 0; background: none; color: var(--accent); font: 700 14px var(--ui-font); cursor: pointer; }
.color-in { width: 52px !important; height: 40px; padding: 2px !important; flex: none; }
@media (min-width: 641px) { body.sheet-open .bar { right: min(398px, 100vw); } }

/* Toolbar extras */
.bar-btn.icon { width: 40px; padding: 0; justify-content: center; font-size: 18px; }
.bar-btn:disabled { opacity: 0.38; cursor: default; filter: none; }
@media (max-width: 900px) { .bar .lbl { display: none; } .bar-btn { padding: 0 12px; } .bar-btn.icon { padding: 0; } }
@media (max-width: 900px) { #addBtn .lbl { display: inline; } }
.pop-h { margin: 8px 8px 2px; font: 700 11px var(--ui-font); letter-spacing: 0.12em; text-transform: uppercase; color: var(--accent); }
.pop-h:first-child { margin-top: 2px; }

/* Fit report under a sign's text */
.report { margin: 10px 0 4px; padding: 8px 10px; border-radius: 10px; background: rgba(255, 255, 255, 0.05); border: 1px solid var(--line); }
.report:empty { display: none; }
.report p { margin: 4px 0; font-size: 12.5px; line-height: 1.4; color: rgba(255, 255, 255, 0.72); }
.report p.warn { color: #ffc98a; }
body.editing .pbox.has-warn::after { border-color: rgba(255, 190, 120, 0.9); }
body.editing .pbox.has-warn .ptag { background: rgba(120, 60, 0, 0.85); }
body.editing .pbox.has-warn.sel .ptag { background: var(--accent); }

/* Boards (drafts) */
.drafts { display: grid; gap: 8px; margin-top: 8px; }
.draft { display: grid; gap: 4px; padding: 10px; border: 1px solid var(--line); border-radius: 12px; background: rgba(255, 255, 255, 0.03); }
.draft.cur { border-color: var(--accent); box-shadow: 0 0 0 1px var(--accent) inset; }
.draft small { color: rgba(255, 255, 255, 0.6); font-size: 12.5px; }
.draft .btns { margin: 4px 0 0; }
.draft .btns:empty { display: none; }
.draft .btn { min-height: 34px; padding: 4px 12px; flex: 0 0 auto; }

/* Phones: toolbar buttons keep their size (the row scrolls), Done stays in view */
.bar > * { flex: none; }
.bar .bar-gap { flex: 1 1 0; min-width: 4px; }
.bar .done { position: sticky; right: 0; z-index: 1; box-shadow: -10px 0 14px 4px rgba(0, 0, 0, 0.55); }
/* Labels and resize handles scale with the preview, so a small screen isn't covered */
body.editing .ptag { font-size: clamp(9px, 1.25cqw, 13px); padding: 0.2em 0.6em; }
body.editing .phandle { width: clamp(18px, 2.6cqw, 30px); height: clamp(18px, 2.6cqw, 30px); right: calc(clamp(18px, 2.6cqw, 30px) / -3); bottom: calc(clamp(18px, 2.6cqw, 30px) / -3); border-width: 2px; }
/* A bigger invisible grab area for fingers */
body.editing .phandle::before { content: ""; position: absolute; inset: -10px; }

/* The page a Chromecast shows: just the board */
body.cast-mode .view-hud, body.cast-mode .lock-hint, body.cast-mode .toast { display: none !important; }
body.cast-mode { cursor: none; }

/* ✨ Flip shows and effects picker */
.fx-pick { display: grid; grid-template-columns: repeat(auto-fill, minmax(84px, 1fr)); gap: 6px; }
.fx-pick .fx-h { grid-column: 1 / -1; margin-top: 6px; font: 600 11px var(--ui-font); letter-spacing: 0.08em; text-transform: uppercase; color: rgba(255, 255, 255, 0.55); }
.fx-pick button { position: relative; display: grid; justify-items: center; gap: 2px; padding: 8px 4px 6px; border: 1px solid var(--line); border-radius: 12px; background: rgba(255, 255, 255, 0.04); color: #fff; cursor: pointer; }
.fx-pick button[aria-pressed="true"] { border-color: var(--accent); background: rgba(255, 179, 107, 0.16); }
.fx-pick .fx-ic { font-size: 22px; line-height: 1.1; }
.fx-pick .fx-nm { font: 500 11px var(--ui-font); text-align: center; }
.fx-pick b { position: absolute; top: 3px; right: 5px; min-width: 16px; height: 16px; border-radius: 8px; background: var(--accent); color: #1a1208; font: 700 10px/16px var(--ui-font); text-align: center; }
.fx-pick b:empty { display: none; }
.fx-order { min-height: 1.4em; }
.move-all button { min-width: 44px; }

/* ⛶ on each sign: show just that sign full screen */
.pfs {
  position: absolute; top: 6px; right: 6px; z-index: 7;
  width: 40px; height: 40px; display: grid; place-items: center; padding: 0;
  border: 1px solid rgba(255, 255, 255, 0.25); border-radius: 12px;
  background: rgba(0, 0, 0, 0.55); color: #fff; font: 600 20px/1 var(--ui-font);
  cursor: pointer; opacity: 0.85; transition: opacity 0.3s;
}
@media (pointer: coarse) { .pfs { width: 44px; height: 44px; } }
@media (hover: hover) { .pfs { opacity: 0; } .pbox:hover .pfs, .pfs:focus-visible { opacity: 0.9; } }
@supports (backdrop-filter: blur(1px)) { .pfs { backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); } }
body.idle .pfs, body.editing .pfs, body.cast-mode .pfs, body.locked .pfs { opacity: 0 !important; pointer-events: none; }
.pbox.solo .pfs { opacity: 0.9; }
body.idle .pbox.solo .pfs { opacity: 0 !important; }
body.has-solo .view-hud { display: none; }

/* Phones and tablets: a sign's ⛶ (or ✕) only shows for a few seconds after a tap, so it doesn't cover the words */
@media (pointer: coarse) {
  body:not(.reveal) .pfs { opacity: 0 !important; pointer-events: none; }
  body.reveal:not(.idle):not(.editing):not(.locked):not(.cast-mode) .pfs { opacity: 0.9; }
}
