/* ============================================================
   FLAPBOARD · retro split-flap display · visual system
   Scene: dark room, aluminium bezel, glossy flap tiles.
   ============================================================ */

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

/* Any author `display` rule outranks the UA's `[hidden] { display: none }`, so
   full-screen overlays like #pair and #remote stayed painted over the board
   even while marked hidden. This puts the attribute back in charge. */
[hidden] { display: none !important; }

:root {
  --page-0: #131316;
  --page-1: #0a0a0c;
  --bezel-hi: #4a4d55;
  --bezel-mid: #1b1d21;
  --bezel-lo: #0d0e11;
  --tile-hi: #2c2f35;
  --tile-lo: #15171c;
  --glyph: #fbfaf6;
  --glyph-shadow: rgba(0, 0, 0, 0.55);
  --accent: #f5a524;
  --chrome-fg: #c6c9cf;
  --mono: "IBM Plex Mono", ui-monospace, SFMono-Regular, Menlo, monospace;
  --flap: "Archivo", "Helvetica Neue", Helvetica, Arial, sans-serif;
  --fw: 112%;
  --fweight: 700;
}

body[data-theme="amber"] {
  --page-0: #17120c;
  --page-1: #090705;
  --bezel-hi: #55452c;
  --bezel-mid: #241d13;
  --bezel-lo: #100c07;
  --tile-hi: #352a1a;
  --tile-lo: #1a1309;
  --glyph: #ffc46b;
  --accent: #ffb347;
}

body[data-theme="ivory"] {
  --page-0: #e6e2d8;
  --page-1: #cfcbc0;
  --bezel-hi: #fdfdfb;
  --bezel-mid: #d9d5cb;
  --bezel-lo: #b3aea2;
  --tile-hi: #fdfcfa;
  --tile-lo: #e6e2d6;
  --glyph: #101114;
  --glyph-shadow: rgba(110, 102, 86, 0.3);
  --chrome-fg: #3f4249;
  --accent: #b96e14;
}

body[data-theme="nord"] {
  --page-0: #0c1016;
  --page-1: #07090d;
  --bezel-hi: #3d4855;
  --bezel-mid: #171d26;
  --bezel-lo: #0b0e13;
  --tile-hi: #26303c;
  --tile-lo: #131922;
  --glyph: #e8f0fa;
  --accent: #62a0ea;
}

body[data-theme="forest"] {
  --page-0: #0c120e;
  --page-1: #060907;
  --bezel-hi: #3c4f41;
  --bezel-mid: #16211a;
  --bezel-lo: #0a0f0c;
  --tile-hi: #24332a;
  --tile-lo: #111a15;
  --glyph: #f0f5e8;
  --accent: #58b97c;
}

body[data-theme="crimson"] {
  --page-0: #140b0d;
  --page-1: #0a0607;
  --bezel-hi: #55403f;
  --bezel-mid: #231618;
  --bezel-lo: #100a0b;
  --tile-hi: #352325;
  --tile-lo: #1a1011;
  --glyph: #fbeee9;
  --accent: #e2566d;
}

body[data-theme="mint"] {
  --page-0: #0a1211;
  --page-1: #050b0a;
  --bezel-hi: #3d5451;
  --bezel-mid: #152220;
  --bezel-lo: #0a1110;
  --tile-hi: #22332f;
  --tile-lo: #101b19;
  --glyph: #eaf7f2;
  --accent: #4fd1b5;
}

html, body { height: 100%; }

body {
  background:
    radial-gradient(110% 80% at 50% -10%,
      color-mix(in srgb, var(--page-0) 92%, white 8%) 0%,
      var(--page-0) 38%,
      var(--page-1) 100%);
  color: var(--chrome-fg);
  font-family: var(--mono);
  overflow: hidden;
  user-select: none;
  -webkit-user-select: none;
}

/* faint plaster noise over the wall */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  opacity: 0.05;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='120' height='120'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2'/%3E%3C/filter%3E%3Crect width='120' height='120' filter='url(%23n)' opacity='0.6'/%3E%3C/svg%3E");
}

/* soft light bloom behind the board */
#stage::before {
  content: "";
  position: fixed;
  left: 50%;
  top: 46%;
  width: min(90vw, 1300px);
  height: 62vh;
  transform: translate(-50%, -50%);
  background: radial-gradient(50% 50% at 50% 50%,
    color-mix(in srgb, var(--accent) 9%, transparent), transparent 70%);
  pointer-events: none;
  z-index: 0;
}

body.idle { cursor: none; }
body.idle #chrome, body.idle #statusbar { opacity: 0; pointer-events: none; }

/* ---------- stage & frame ---------- */

#stage {
  position: relative;
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 12px;
  padding: 54px 18px 32px;
  z-index: 1;
}

#frame {
  position: relative;
  background:
    linear-gradient(180deg,
      var(--bezel-hi) 0%,
      var(--bezel-mid) 14%,
      var(--bezel-lo) 58%,
      var(--bezel-mid) 88%,
      var(--bezel-hi) 100%);
  border-radius: 22px;
  padding: clamp(10px, 1.5vmin, 18px);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.16),
    inset 0 -1px 0 rgba(255, 255, 255, 0.04),
    inset 0 0 0 1px rgba(0, 0, 0, 0.55),
    0 34px 90px rgba(0, 0, 0, 0.66),
    0 12px 28px rgba(0, 0, 0, 0.5);
}

/* engraved brand plate on the bezel */
#frame::after {
  content: "FLAPBOARD";
  position: absolute;
  right: clamp(14px, 2vmin, 26px);
  bottom: 4px;
  font-family: var(--mono);
  font-size: 8px;
  letter-spacing: 0.42em;
  color: rgba(255, 255, 255, 0.2);
}
body[data-theme="ivory"] #frame::after { color: rgba(60, 56, 48, 0.35); }

#board {
  display: grid;
  gap: var(--gap);
  grid-template-columns: repeat(22, var(--cw));
  grid-auto-rows: var(--chh);
  border-radius: 2px;
  background: #000;
  padding: calc(var(--gap) + 1px);
  box-shadow:
    inset 0 3px 12px rgba(0, 0, 0, 0.85),
    inset 0 -1px 0 rgba(255, 255, 255, 0.03);
}
body[data-theme="ivory"] #board { background: #b9b4a8; }

/* ---------- tiles ---------- */

.tile {
  position: relative;
  width: var(--cw);
  height: var(--chh);
  perspective: 260px;
  border-radius: 0;
  overflow: hidden;
  font-size: var(--fs);
}

.face {
  position: absolute;
  left: 0;
  width: 100%;
  height: 50%;
  overflow: hidden;
  background-image:
    linear-gradient(115deg, rgba(255, 255, 255, 0.07) 0%, rgba(255, 255, 255, 0.015) 32%, transparent 50%),
    linear-gradient(180deg, var(--tile-hi), var(--tile-lo));
}
/* the lower half sits in the shadow cast by the seam above it */
.face.bot {
  background-image:
    linear-gradient(115deg, rgba(255, 255, 255, 0.07) 0%, rgba(255, 255, 255, 0.015) 32%, transparent 50%),
    linear-gradient(180deg, color-mix(in srgb, var(--tile-hi) 78%, black), color-mix(in srgb, var(--tile-lo) 84%, black));
}
.face.top { top: 0; box-shadow: inset 0 -3px 5px rgba(0, 0, 0, 0.34); }
.face.bot { bottom: 0; box-shadow: inset 0 -3px 5px rgba(0, 0, 0, 0.3); }

.face i {
  position: absolute;
  left: 0;
  width: 100%;
  height: var(--chh);
  top: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--flap);
  font-stretch: var(--fw);
  font-weight: var(--fweight);
  font-style: normal;
  font-size: var(--fs);
  line-height: 1;
  color: var(--glyph);
  letter-spacing: 0;
  text-shadow: 0 1px 1px var(--glyph-shadow);
}
.face.bot i { top: calc(-1 * var(--chh) / 2); }

.face.leaf { z-index: 6; backface-visibility: hidden; will-change: transform; }
.face.top.leaf { transform-origin: center bottom; }
.face.bot.leaf { transform-origin: center top; z-index: 7; }

/* midline slit — a single hairline, the way a real flap seam reads */
.tile::after {
  content: "";
  position: absolute;
  left: 0; right: 0;
  top: 50%;
  height: 1px;
  background: rgba(0, 0, 0, 0.92);
  z-index: 5;
  pointer-events: none;
}
.tile.colored::after { background: rgba(0, 0, 0, 0.5); }

/* solid colour flaps (statics via tile root class, leaves via face class) */
.tile.c-red .face, #board .face.c-red     { background-image: linear-gradient(115deg, rgba(255,255,255,.16) 0%, rgba(255,255,255,.03) 32%, transparent 50%), linear-gradient(180deg, #e2566d, #ab2c43); }
.tile.c-orange .face, #board .face.c-orange { background-image: linear-gradient(115deg, rgba(255,255,255,.16) 0%, rgba(255,255,255,.03) 32%, transparent 50%), linear-gradient(180deg, #fb8c40, #d3641c); }
.tile.c-yellow .face, #board .face.c-yellow { background-image: linear-gradient(115deg, rgba(255,255,255,.2) 0%, rgba(255,255,255,.04) 32%, transparent 50%), linear-gradient(180deg, #f8cd4e, #d9a41e); }
.tile.c-green .face, #board .face.c-green   { background-image: linear-gradient(115deg, rgba(255,255,255,.16) 0%, rgba(255,255,255,.03) 32%, transparent 50%), linear-gradient(180deg, #4bb377, #2c7d51); }
.tile.c-blue .face, #board .face.c-blue     { background-image: linear-gradient(115deg, rgba(255,255,255,.16) 0%, rgba(255,255,255,.03) 32%, transparent 50%), linear-gradient(180deg, #4d87dc, #2a63b4); }
.tile.c-violet .face, #board .face.c-violet { background-image: linear-gradient(115deg, rgba(255,255,255,.16) 0%, rgba(255,255,255,.03) 32%, transparent 50%), linear-gradient(180deg, #8a70de, #5d47ad); }
.tile.c-white .face, #board .face.c-white   { background-image: linear-gradient(115deg, rgba(255,255,255,.35) 0%, rgba(255,255,255,.08) 32%, transparent 50%), linear-gradient(180deg, #f4f2ea, #ddd9cc); }
.tile.c-black .face, #board .face.c-black   { background-image: linear-gradient(115deg, rgba(255,255,255,.05) 0%, transparent 40%), linear-gradient(180deg, #17181c, #07080a); }
.tile.c-black { box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.09); }

/* ---------- status bar ---------- */

#statusbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 18px;
  width: min(94vw, 1240px);
  min-height: 18px;
  font-size: 13px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: color-mix(in srgb, var(--chrome-fg) 82%, transparent);
  transition: opacity 0.45s ease;
  z-index: 1;
}

/* ---------- chrome ---------- */

#chrome {
  position: fixed;
  top: 0; left: 0; right: 0;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 14px;
  background: linear-gradient(180deg, rgba(12, 12, 15, 0.92), rgba(12, 12, 15, 0.75));
  backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  z-index: 20;
  transition: opacity 0.45s ease;
}
body[data-theme="ivory"] #chrome {
  background: linear-gradient(180deg, rgba(240, 237, 230, 0.95), rgba(240, 237, 230, 0.85));
  border-bottom-color: rgba(0, 0, 0, 0.08);
}

.chrome-brand { display: flex; align-items: center; gap: 9px; font-size: 12px; font-weight: 600; letter-spacing: 0.24em; color: var(--chrome-fg); }

.chrome-actions { display: flex; align-items: center; gap: 8px; }

.chrome-btn {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.1em;
  color: var(--chrome-fg);
  background: transparent;
  border: 1px solid color-mix(in srgb, var(--chrome-fg) 28%, transparent);
  border-radius: 999px;
  padding: 5px 12px;
  cursor: pointer;
  transition: all 0.15s ease;
}
.chrome-btn:hover { border-color: var(--accent); color: var(--accent); transform: translateY(-1px); }
.chrome-btn:active { transform: translateY(1px) scale(0.98); }
.chrome-btn--accent { background: var(--accent); border-color: var(--accent); color: #141414; font-weight: 600; }
.chrome-btn--accent:hover { filter: brightness(1.08); color: #141414; }

#dots { display: flex; gap: 6px; margin: 0 4px; }
#dots i { width: 6px; height: 6px; border-radius: 50%; background: color-mix(in srgb, var(--chrome-fg) 25%, transparent); transition: all 0.2s ease; }
#dots i.on { background: var(--accent); transform: scale(1.3); }

/* ---------- QR overlay ---------- */

#qr-overlay {
  position: absolute;
  left: 50%;
  top: 42%;
  transform: translate(-50%, -50%);
  background: #fff;
  padding: 10px;
  border-radius: 10px;
  box-shadow: 0 18px 50px rgba(0, 0, 0, 0.65), 0 0 0 1px rgba(0, 0, 0, 0.4);
  animation: qrIn 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}
#qr-overlay img { display: block; width: min(30vh, 240px); height: auto; image-rendering: pixelated; }
@keyframes qrIn { from { opacity: 0; scale: 0.92; } to { opacity: 1; scale: 1; } }

/* ---------- drawer ---------- */

#drawer {
  position: fixed;
  top: 0; right: 0; bottom: 0;
  width: min(400px, 94vw);
  background: rgba(17, 18, 21, 0.97);
  backdrop-filter: blur(14px);
  border-left: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: -30px 0 70px rgba(0, 0, 0, 0.55);
  z-index: 40;
  overflow-y: auto;
  overscroll-behavior: contain;
  padding: 18px 20px 26px;
  animation: slideIn 0.28s cubic-bezier(0.16, 1, 0.3, 1);
}
@keyframes slideIn { from { transform: translateX(46px); opacity: 0; } to { transform: none; opacity: 1; } }

.drawer-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  margin-bottom: 6px;
  position: sticky;
  top: -18px;
  z-index: 2;
  margin-inline: -20px;
  padding: 14px 20px 10px;
  background: rgba(17, 18, 21, 0.97);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}
body[data-theme="ivory"] .drawer-head { background: rgba(238, 235, 228, 0.97); }
.drawer-head h2 { font-size: 13px; letter-spacing: 0.26em; color: #fff; font-weight: 600; }

.drawer-section { border-top: 1px solid rgba(255, 255, 255, 0.07); padding: 14px 0 6px; margin-top: 12px; }
.drawer-section:first-of-type { border-top: 0; }
.drawer-section h3 { font-size: 10px; letter-spacing: 0.24em; color: var(--accent); font-weight: 600; margin-bottom: 12px; }
.drawer-section h3 .beta { font-style: normal; color: #777; margin-left: 6px; letter-spacing: 0.1em; }
.drawer-foot { padding-bottom: 0; }

.field { display: block; margin-bottom: 12px; }
.field > span { display: block; font-size: 11px; color: #9a9ea6; margin-bottom: 6px; }
.field.grow { flex: 1; margin-bottom: 0; }
.field.date-w { width: 150px; margin-bottom: 0; }

.field input[type="text"], .field input[type="number"], .field input[type="date"],
.field textarea, .field select, .row select {
  width: 100%;
  background: #0b0c0e;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 8px;
  color: #eee;
  font-family: var(--mono);
  font-size: 13px;
  padding: 9px 10px;
  outline: none;
  transition: border-color 0.15s ease;
  color-scheme: dark;
}
.field textarea { resize: vertical; line-height: 1.5; }
.field input:focus, .field textarea:focus, .field select:focus { border-color: var(--accent); }

.check { display: flex; align-items: center; gap: 10px; font-size: 12px; color: #cfd2d8; margin-bottom: 10px; cursor: pointer; }
.check input { accent-color: var(--accent); width: 15px; height: 15px; cursor: pointer; }

.row { display: flex; gap: 8px; margin-bottom: 12px; align-items: flex-end; }
.row > * { min-width: 0; }
.row .ghost-btn { flex: 1; }
.row select { width: 84px; }

.ghost-btn {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.1em;
  color: var(--chrome-fg);
  background: rgba(255, 255, 255, 0.04);
  border: 1px dashed rgba(255, 255, 255, 0.2);
  border-radius: 8px;
  padding: 9px 10px;
  cursor: pointer;
  transition: all 0.15s ease;
}
.ghost-btn:hover { border-color: var(--accent); color: var(--accent); }

.primary-btn {
  width: 100%;
  font-family: var(--mono);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.18em;
  background: var(--accent);
  color: #141414;
  border: 0;
  border-radius: 10px;
  padding: 12px;
  cursor: pointer;
  transition: transform 0.12s ease, filter 0.15s ease;
}
.primary-btn:hover { filter: brightness(1.08); }
.primary-btn:active { transform: scale(0.985); }

.hint { font-size: 10.5px; color: #75797f; line-height: 1.65; margin-top: 8px; }
.hint code { color: var(--accent); font-size: 10px; background: rgba(255, 255, 255, 0.05); padding: 1px 5px; border-radius: 4px; }

/* ---------- toast ---------- */

#toast {
  position: fixed;
  left: 50%;
  bottom: 26px;
  transform: translateX(-50%) translateY(20px);
  background: rgba(24, 25, 29, 0.97);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-left: 3px solid var(--accent);
  color: #e8e9ec;
  font-size: 12px;
  letter-spacing: 0.06em;
  padding: 10px 16px;
  border-radius: 8px;
  opacity: 0;
  pointer-events: none;
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  z-index: 60;
}
#toast.show { opacity: 1; transform: translateX(-50%) translateY(0); }

/* ---------- phone pairing (TV side) ---------- */

#pair {
  position: fixed;
  inset: 0;
  z-index: 50;
  background: rgba(10, 11, 13, 0.96);
  backdrop-filter: blur(14px);
  display: flex;
  flex-direction: column;
  animation: fadeIn 0.2s ease;
}
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }
.pair-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 20px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  flex: 0 0 auto;
}
.pair-head h2 { font-size: 13px; letter-spacing: 0.26em; color: #fff; font-weight: 600; }
.pair-body { flex: 1; overflow-y: auto; padding: 28px 20px 40px; text-align: center; }
.pair-lead { color: var(--chrome-fg); font-size: 14px; line-height: 1.6; max-width: 44ch; margin: 0 auto 22px; }
.pair-qr { display: inline-block; background: #fff; padding: 12px; border-radius: 8px; }
.pair-qr img { display: block; width: min(46vh, 320px); height: auto; image-rendering: pixelated; }
.pair-room { margin-top: 18px; font-size: 34px; letter-spacing: 0.3em; color: var(--accent); font-weight: 600; }
.pair-status { margin-top: 10px; font-size: 12px; letter-spacing: 0.2em; color: var(--chrome-fg); }
.pair-help { margin: 26px auto 0; max-width: 46ch; color: #9aa0aa; font-size: 12.5px; line-height: 1.65; }
.pair-help code { color: var(--accent); background: rgba(255, 255, 255, 0.06); padding: 1px 6px; border-radius: 4px; }
.pair-lan { margin-top: 10px; color: var(--accent); word-break: break-all; }

/* ---------- phone remote ---------- */

#remote {
  position: fixed;
  inset: 0;
  z-index: 50;
  overflow-y: auto;
  background: radial-gradient(120% 70% at 50% 0%, #16181d, #08090b 70%);
  color: var(--chrome-fg);
  display: flex;
  flex-direction: column;
  gap: 14px;
  padding: 14px 14px 24px;
}
.remote-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 11px;
  letter-spacing: 0.2em;
  color: var(--chrome-fg);
  flex: 0 0 auto;
}
#remote-status { color: var(--accent); }
.remote-mirror {
  display: grid;
  grid-template-columns: repeat(22, 1fr);
  gap: 1px;
  background: #000;
  padding: 2px;
  border-radius: 3px;
  flex: 0 0 auto;
}
.rm {
  aspect-ratio: 1.1;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(180deg, var(--tile-hi), var(--tile-lo));
  color: var(--glyph);
  font-family: var(--flap);
  font-stretch: var(--fw);
  font-weight: 700;
  font-size: clamp(6px, 2.1vw, 15px);
  line-height: 1;
  user-select: none;
  -webkit-user-select: none;
  -webkit-tap-highlight-color: transparent;
}
.rm:active { background: var(--accent); color: #141414; }
.rm.on { animation: rmHit 0.22s ease; }
@keyframes rmHit { from { background: var(--accent); color: #141414; } to { background: none; } }
.remote-hint { font-size: 12px; line-height: 1.6; color: #8d929b; }
.remote-form { display: flex; gap: 8px; }
.remote-form input {
  flex: 1;
  min-width: 0;
  background: #0b0c0e;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 8px;
  color: #fff;
  font-family: var(--mono);
  font-size: 15px;
  padding: 12px 12px;
  outline: none;
}
.remote-form input:focus { border-color: var(--accent); }
.remote-form .primary-btn { width: auto; flex: 0 0 auto; padding: 12px 20px; }
.remote-bar { display: grid; grid-template-columns: repeat(5, 1fr); gap: 6px; }
.remote-bar .ghost-btn { padding: 12px 4px; text-align: center; }

/* ---------- misc ---------- */

.chrome-btn--exit { border-color: color-mix(in srgb, var(--accent) 60%, transparent); color: var(--accent); }
.chrome-btn--exit:hover { background: var(--accent); color: #141414; }

#rotate-hint {
  position: fixed;
  left: 50%;
  bottom: 18px;
  transform: translateX(-50%);
  z-index: 30;
  font-size: 11px;
  letter-spacing: 0.18em;
  text-align: center;
  color: var(--accent);
  background: rgba(17, 18, 21, 0.94);
  border: 1px solid color-mix(in srgb, var(--accent) 45%, transparent);
  border-radius: 999px;
  padding: 9px 16px;
  max-width: calc(100vw - 32px);
}
body[data-theme="ivory"] #rotate-hint { background: rgba(238, 235, 228, 0.95); }

/* phones: the toolbar is a single scrollable row rather than a wrapped mess */
@media (max-width: 760px) {
  #chrome { height: 40px; padding: 0 8px; }
  .chrome-brand span { display: none; }
  .chrome-actions {
    overflow-x: auto;
    overflow-y: hidden;
    scrollbar-width: none;
    -webkit-overflow-scrolling: touch;
    gap: 6px;
    padding: 0 2px;
  }
  .chrome-actions::-webkit-scrollbar { display: none; }
  .chrome-btn { padding: 5px 10px; font-size: 10.5px; flex: 0 0 auto; }
  #dots { display: none; }
  #drawer { width: 100vw; }
  #stage { padding: 46px 10px 40px; }
  #statusbar { font-size: 11.5px; letter-spacing: 0.06em; }
}

@media (prefers-reduced-motion: reduce) {
  #drawer, #qr-overlay { animation: none; }
  .face.leaf { display: none; }
}
