/* Midnight Files — film noir, strictly black and white. Most of the picture is near black; the
   light comes in stripes through the blinds, onto the wall, the figure, the notes and the buttons.
   Notes are typewritten paper with a pin. One corner radius (4px), one line width (1px) for the UI. */

:root {
  color-scheme: dark;
  --black: #0b0b0c;
  --wall: #1d1d20;
  --fog: #5b5b5e;
  --band: #bdbdbd;
  --white: #f2f2f0;
  --paper-dim: #7d7b76;
  --bg: #0b0b0c;
  --text: #f2f2f0;
  --muted: #b5b5b3;
  /* words that stand straight on the scene keep clear of the figure behind them */
  --halo: 0 1px 2px rgba(0, 0, 0, 0.7);
  --mist: rgba(11, 11, 12, 0.5);
  --faint: #929290;
  --surface: #141416;
  --surface-2: #1d1d20;
  --line: rgba(242, 242, 240, 0.16);
  --paper: #e3e1db;
  --paper-2: #d2cfc8;
  --ink: #141414;
  --ink-2: #3a3a39;
  --btn: #1d1d20;
  --btn-fg: #f2f2f0;
  --btn-line: #5b5b5e;
  --hi: #e9e8e4;
  --hi-fg: #0b0b0c;
  --focus: #f2f2f0;
  --dim: 0;
  --radius: 4px;
  --shadow: 0 16px 30px -12px rgba(0, 0, 0, 0.8), 0 2px 6px rgba(0, 0, 0, 0.55);
  --stripe-angle: 172deg;
  --ca-accent: #4a4a4e; /* the accounts SDK's sheets and chip */
  --type: "American Typewriter", "Courier New", Courier, "Liberation Mono", monospace;
  --mono: "Courier New", Courier, "Liberation Mono", monospace;
  --serif: Didot, "Bodoni 72", "Bodoni MT", "Libre Bodoni", Georgia, serif;
  --sans: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --hand: "Bradley Hand", "Segoe Print", "Ink Free", "Comic Neue", cursive;
  --safe-t: env(safe-area-inset-top);
  --safe-b: env(safe-area-inset-bottom);
  --safe-l: env(safe-area-inset-left);
  --safe-r: env(safe-area-inset-right);
}
:root[data-theme='light'] {
  color-scheme: light;
  --bg: #cfcfcc;
  --text: #0b0b0c;
  --muted: #333335;
  --halo: 0 0 3px rgba(232, 232, 230, 0.85);
  --mist: rgba(207, 207, 204, 0.8);
  --faint: #47474a;
  --surface: #e6e6e3;
  --surface-2: #d8d8d5;
  --line: rgba(11, 11, 12, 0.18);
  --paper: #f4f3ef;
  --paper-2: #e7e5df;
  --btn: #1d1d20;
  --btn-fg: #f2f2f0;
  --btn-line: #1d1d20;
  --hi: #1d1d20;
  --hi-fg: #f2f2f0;
  --focus: #0b0b0c;
  --shadow: 0 16px 30px -14px rgba(0, 0, 0, 0.55), 0 2px 6px rgba(0, 0, 0, 0.25);
}
@media (prefers-color-scheme: light) {
  :root:not([data-theme]) {
    color-scheme: light;
    --bg: #cfcfcc;
    --text: #0b0b0c;
    --muted: #333335;
    --halo: 0 0 3px rgba(232, 232, 230, 0.85);
    --mist: rgba(207, 207, 204, 0.8);
    --faint: #47474a;
    --surface: #e6e6e3;
    --surface-2: #d8d8d5;
    --line: rgba(11, 11, 12, 0.18);
    --paper: #f4f3ef;
    --paper-2: #e7e5df;
    --btn: #1d1d20;
    --btn-fg: #f2f2f0;
    --btn-line: #1d1d20;
    --hi: #1d1d20;
    --hi-fg: #f2f2f0;
    --focus: #0b0b0c;
    --shadow: 0 16px 30px -14px rgba(0, 0, 0, 0.55), 0 2px 6px rgba(0, 0, 0, 0.25);
  }
}

* { box-sizing: border-box; }
/* no double-tap zoom on iOS: js/touch-guard.js adds the same rule plus a JS
   fallback; this copy covers Safari before 16.4 under the strict CSP */
:where(html, body, body *) { touch-action: manipulation; }
html { -webkit-text-size-adjust: 100%; height: 100%; background: var(--bg); }
body {
  margin: 0;
  height: calc(100dvh / var(--ca-zoom, 1));
  min-height: calc(100svh / var(--ca-zoom, 1));
  display: flex;
  flex-direction: column;
  overflow: hidden;
  color: var(--text);
  font: 16px/1.5 var(--sans);
  -webkit-font-smoothing: antialiased;
  /* the wall before the scene is drawn: dark, with the blinds' stripes */
  background:
    repeating-linear-gradient(var(--stripe-angle), rgba(189, 189, 189, 0) 0 18px, rgba(189, 189, 189, 0.07) 19px 23px, rgba(189, 189, 189, 0) 24px 30px),
    radial-gradient(120% 90% at 70% 30%, #26262a 0%, #151517 55%, #0b0b0c 100%);
}
:root[data-theme='light'] body {
  background:
    repeating-linear-gradient(var(--stripe-angle), rgba(255, 255, 255, 0) 0 18px, rgba(255, 255, 255, 0.28) 19px 23px, rgba(255, 255, 255, 0) 24px 30px),
    radial-gradient(120% 90% at 70% 30%, #9c9c9e 0%, #7c7c7f 55%, #5a5a5d 100%);
}
@media (prefers-color-scheme: light) {
  :root:not([data-theme]) body {
    background:
      repeating-linear-gradient(var(--stripe-angle), rgba(255, 255, 255, 0) 0 18px, rgba(255, 255, 255, 0.28) 19px 23px, rgba(255, 255, 255, 0) 24px 30px),
      radial-gradient(120% 90% at 70% 30%, #9c9c9e 0%, #7c7c7f 55%, #5a5a5d 100%);
  }
}
/* a game page: no text selection or long-press callouts anywhere, HUD and
   menus included; form fields and long text (the Help sheet) opt back in */
body { -webkit-user-select: none; user-select: none; -webkit-touch-callout: none; -webkit-tap-highlight-color: transparent; }
input, textarea, [contenteditable], .sheet .prose, .notebook .prose { -webkit-user-select: text; user-select: text; }
button, select, input { font: inherit; color: inherit; }
button { cursor: pointer; }
button:disabled { cursor: default; }
:focus-visible { outline: 2px solid var(--focus); outline-offset: 3px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
[hidden] { display: none !important; }

/* ------------------------------------------------------------------ the scene and the film */
#scene { position: fixed; inset: 0; width: 100%; height: 100%; display: block; z-index: 0; }
.fx { position: fixed; inset: 0; z-index: 1; pointer-events: none; }
.fx > div { position: absolute; inset: 0; }
.fx-dim { background: rgba(8, 8, 9, 0.72); opacity: var(--dim); transition: opacity 0.5s ease; }
:root[data-theme='light'] .fx-dim { background: rgba(207, 207, 204, 0.78); }
@media (prefers-color-scheme: light) { :root:not([data-theme]) .fx-dim { background: rgba(207, 207, 204, 0.78); } }
body[data-screen='board'] { --dim: 0.55; }
body[data-screen='lead'], body[data-screen='call'], body[data-screen='end'] { --dim: 0.9; }
.fx-vignette { background: radial-gradient(130% 100% at 50% 45%, rgba(0, 0, 0, 0) 45%, rgba(0, 0, 0, 0.62) 100%); }
/* a still, very faint grain: it only keeps the dark gradients from banding — it never moves */
.fx-grain {
  background-image: var(--grain);
  background-size: 160px 160px;
  opacity: 0.05;
  mix-blend-mode: overlay;
}
/* ------------------------------------------------------------------ the bar */
.bar {
  position: relative;
  z-index: 3;
  display: flex;
  align-items: center;
  gap: 10px;
  /* the bar's round buttons (the SDK's tools, Back, the Notebook) in the game's own look */
  --ca-tool-bg: color-mix(in srgb, var(--surface) 78%, transparent); --ca-tool-line: var(--line); --ca-tool-hover: var(--surface-2);
  padding: calc(var(--safe-t) + 8px) calc(var(--safe-r) + 12px) 6px calc(var(--safe-l) + 12px);
  min-height: calc(var(--safe-t) + 60px);
}
/* the bar (App Standard §4.1): the SDK's brand, Back beside it off the case files, then the Notebook
   and the SDK's tools and chip at the far end; the brand gives way first (its name goes, the icon stays) */
.bar > .ca-end { margin-left: auto; }
.bar .ca-tool[hidden] { display: none !important; }
.bar .bar-notebook { margin-left: auto !important; }
.bar .bar-notebook:not([hidden]) + .ca-end { margin-left: 0; }
.icon-btn {
  width: 44px; height: 44px; flex: none;
  display: inline-grid; place-items: center;
  border-radius: 50%;
  border: 1px solid var(--line);
  background: color-mix(in srgb, var(--surface) 78%, transparent);
  color: var(--text);
  transition: background-color 0.2s ease, transform 0.15s ease;
}
.icon-btn:hover { background: var(--surface-2); }
.icon-btn:active { transform: scale(0.95); }
.icon-btn.small { width: 44px; height: 44px; }
.icon-btn:disabled { opacity: 0.35; }

/* icons, drawn as masks in the text colour */
.ic { width: 20px; height: 20px; display: inline-block; background: currentColor; mask: var(--i) center / contain no-repeat; flex: none; }
.ic-back { --i: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M15 5l-7 7 7 7'/%3E%3C/svg%3E"); }
.ic-left { --i: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M15 5l-7 7 7 7'/%3E%3C/svg%3E"); }
.ic-right { --i: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M9 5l7 7-7 7'/%3E%3C/svg%3E"); }
.ic-up { --i: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 15l7-7 7 7'/%3E%3C/svg%3E"); }
.ic-down { --i: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 9l7 7 7-7'/%3E%3C/svg%3E"); }
.ic-help { --i: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.8' stroke-linecap='round'%3E%3Ccircle cx='12' cy='12' r='8.5'/%3E%3Cpath d='M9.6 9.6a2.5 2.5 0 1 1 3.4 2.3c-.6.3-1 .8-1 1.5v.6'/%3E%3Cpath d='M12 16.8v.2'/%3E%3C/svg%3E"); }
.ic-notebook { --i: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.8' stroke-linecap='round'%3E%3Crect x='5' y='3' width='14' height='18' rx='1.5'/%3E%3Cpath d='M9 8h6M9 12h6M9 16h4M3 7h3M3 12h3M3 17h3'/%3E%3C/svg%3E"); }
.ic-bulb { --i: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.8' stroke-linecap='round'%3E%3Cpath d='M9 18h6M10 21h4M8.5 14.5A6 6 0 1 1 15.5 14.5c-.9.8-1.5 1.7-1.5 2.5h-4c0-.8-.6-1.7-1.5-2.5z'/%3E%3C/svg%3E"); }
.ic-loupe { --i: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.8' stroke-linecap='round'%3E%3Ccircle cx='10' cy='10' r='6.5'/%3E%3Cpath d='M15 15l6 6M7.5 8.5a3 3 0 0 1 3-2'/%3E%3C/svg%3E"); }
.ic-play { --i: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M8 5v14l11-7z' fill='black'/%3E%3C/svg%3E"); }

/* ------------------------------------------------------------------ buttons */
.btn {
  position: relative;
  min-height: 48px;
  padding: 0 20px;
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  border-radius: var(--radius);
  border: 1px solid var(--btn-line);
  background: var(--btn);
  color: var(--btn-fg);
  font: 600 14px/1.2 var(--sans);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  overflow: hidden;
  transition: background-color 0.2s ease, transform 0.15s ease, opacity 0.2s ease;
}
.btn:active { transform: translateY(1px); }
.btn:disabled { opacity: 0.4; }
/* the main action stands in a band of light */
.btn.primary {
  border-color: transparent;
  color: var(--hi-fg);
  background: var(--hi);
  box-shadow: 0 10px 24px -12px rgba(0, 0, 0, 0.9);
}
.btn.primary::after {
  content: '';
  position: absolute; inset: -40% -10%;
  background: linear-gradient(100deg, rgba(255, 255, 255, 0) 30%, rgba(255, 255, 255, 0.85) 48%, rgba(255, 255, 255, 0.95) 50%, rgba(255, 255, 255, 0.85) 52%, rgba(255, 255, 255, 0) 70%);
  mix-blend-mode: soft-light;
  transform: translateX(-18%);
  transition: transform 0.6s cubic-bezier(.2, .8, .2, 1);
  pointer-events: none;
}
:root[data-theme='light'] .btn.primary::after { background: linear-gradient(100deg, rgba(255, 255, 255, 0) 32%, rgba(255, 255, 255, 0.22) 48%, rgba(255, 255, 255, 0.3) 50%, rgba(255, 255, 255, 0.22) 52%, rgba(255, 255, 255, 0) 68%); mix-blend-mode: normal; }
@media (prefers-color-scheme: light) { :root:not([data-theme]) .btn.primary::after { background: linear-gradient(100deg, rgba(255, 255, 255, 0) 32%, rgba(255, 255, 255, 0.22) 48%, rgba(255, 255, 255, 0.3) 50%, rgba(255, 255, 255, 0.22) 52%, rgba(255, 255, 255, 0) 68%); mix-blend-mode: normal; } }
.btn.primary:hover::after, .btn.primary:focus-visible::after { transform: translateX(18%); }
.btn.ghost { background: color-mix(in srgb, var(--surface) 70%, transparent); color: var(--text); border-color: var(--line); }
.btn.ghost:hover { background: var(--surface-2); }
.btn.small { min-height: 44px; padding: 0 14px; font-size: 12px; }
.btn.toggle[aria-pressed='true'] { background: var(--text); color: var(--bg); border-color: var(--text); }
.btn-sub { font-weight: 500; text-transform: none; letter-spacing: 0.01em; opacity: 0.85; }
.btn .btn-sub::before { content: '· '; }

/* ------------------------------------------------------------------ paper: notes, pins, light */
.paper {
  position: relative;
  display: block;
  background: linear-gradient(160deg, color-mix(in srgb, var(--paper) 100%, white 6%) 0%, var(--paper) 45%, var(--paper-2) 100%);
  color: var(--ink);
  border: 0;
  border-radius: var(--radius);
  padding: 22px 18px 16px;
  box-shadow: var(--shadow);
  transform: rotate(var(--tilt, 0deg));
  font: 15px/1.5 var(--type);
  text-align: left;
  overflow: hidden;
}
/* the pin */
.paper::before {
  content: '';
  position: absolute; top: 7px; left: 50%;
  width: 12px; height: 12px; margin-left: -6px;
  border-radius: 50%;
  background: radial-gradient(circle at 35% 32%, #f8f8f6 0 14%, #9a9a9a 34%, #2b2b2e 64%, #0b0b0c 100%);
  box-shadow: 3px 4px 3px -1px rgba(0, 0, 0, 0.45);
  z-index: 2;
}
/* the slats' light lies across every sheet */
.paper::after {
  content: '';
  position: absolute; inset: -20%;
  pointer-events: none;
  background: repeating-linear-gradient(var(--stripe-angle), rgba(0, 0, 0, 0.075) 0 13px, rgba(0, 0, 0, 0) 15px 19px, rgba(0, 0, 0, 0.075) 21px 28px);
  mix-blend-mode: multiply;
}
.paper-title { margin: 0 0 8px; font: 700 11px/1.3 var(--sans); letter-spacing: 0.2em; text-transform: uppercase; color: var(--ink-2); }
.paper .prose { margin: 0 0 0.75em; }
.paper .prose:last-child { margin-bottom: 0; }
.hand { font-family: var(--hand); font-size: 18px; line-height: 1.35; color: #2a2a2c; }
.pencil { font-family: var(--hand); color: #343436; }

.stamp {
  position: absolute; right: 14px; top: 16px;
  padding: 2px 8px;
  border: 2px solid currentColor;
  border-radius: var(--radius);
  font: 800 11px/1.2 var(--sans);
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: rgba(20, 20, 20, 0.62);
  transform: rotate(-11deg);
  mix-blend-mode: multiply;
}
.stamp.big { position: static; display: inline-block; margin: 2px 0 10px; font-size: 15px; padding: 4px 12px; border-width: 3px; transform: rotate(-4deg); }

/* ------------------------------------------------------------------ screens */
main { position: relative; z-index: 2; flex: 1; min-height: 0; display: flex; }
.screen { flex: 1; min-width: 0; min-height: 0; display: flex; flex-direction: column; }

/* home */
#home { justify-content: space-between; padding: 0 calc(var(--safe-r) + 16px) calc(var(--safe-b) + 16px) calc(var(--safe-l) + 16px); }
.home-hero { padding-top: 2px; max-width: 560px; }
.logo { margin: 0; font: 400 clamp(34px, calc(9.6vw / var(--ca-zoom, 1)), 64px)/0.98 var(--serif); letter-spacing: 0.07em; text-transform: uppercase; color: var(--text); text-shadow: 0 0 24px rgba(242, 242, 240, 0.18), 0 2px 0 rgba(0, 0, 0, 0.5); overflow-wrap: anywhere; }
:root[data-theme='light'] .logo { text-shadow: 0 1px 0 rgba(255, 255, 255, 0.4); }
.tagline { margin: 10px 0 0; max-width: 32ch; font: italic 16px/1.4 var(--serif); color: var(--muted); text-shadow: var(--halo); }
.files { position: relative; isolation: isolate; width: 100%; max-width: 440px; }
/* a low bank of mist in front of the figure, so the files and their heading stand clear of it:
   from the screen's left edge, fading in from above and out to the right, with no edge anywhere */
.files::before {
  content: '';
  position: absolute; inset: -64px 0 -32px calc(-16px - var(--safe-l)); z-index: -1;
  pointer-events: none;
  background: linear-gradient(180deg, transparent, var(--mist) 72px);
  -webkit-mask: linear-gradient(90deg, #000 calc(100% - 48px), transparent);
  mask: linear-gradient(90deg, #000 calc(100% - 48px), transparent);
}
.files-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 10px; margin-bottom: 12px; }
.files-title { margin: 0; font: 600 12px/1.2 var(--sans); letter-spacing: 0.24em; text-transform: uppercase; color: var(--muted); }
.rating { display: flex; flex-direction: column; align-items: flex-end; gap: 2px; min-height: 44px; justify-content: center; padding: 0 2px; border: 0; background: none; color: var(--text); text-shadow: var(--halo); }
.rating-label { font: 600 10px/1.2 var(--sans); letter-spacing: 0.18em; text-transform: uppercase; color: var(--muted); }
.rating-value { font: 400 20px/1.1 var(--serif); letter-spacing: 0.04em; }
.file-list { list-style: none; margin: 0; padding: 18px 0 0; display: grid; gap: 24px; }
.file-slot { min-height: 104px; }
.file {
  position: relative;
  width: 100%; min-height: 104px;
  display: grid; gap: 2px; align-content: start;
  padding: 14px 16px 12px;
  border: 0;
  border-radius: 0 var(--radius) var(--radius) var(--radius);
  background: linear-gradient(175deg, #d9d7d1, #bdbab3);
  color: var(--ink);
  text-align: left;
  box-shadow: var(--shadow);
  overflow: visible;
  transition: transform 0.25s cubic-bezier(.2, .8, .2, 1);
}
.file::after {
  content: '';
  position: absolute; inset: 0;
  border-radius: inherit;
  pointer-events: none;
  background: repeating-linear-gradient(var(--stripe-angle), rgba(0, 0, 0, 0.08) 0 13px, rgba(0, 0, 0, 0) 15px 19px, rgba(0, 0, 0, 0.08) 21px 28px);
  mix-blend-mode: multiply;
}
.file:hover:not(:disabled) { transform: translateY(-2px) rotate(-0.4deg); }
.file-tab {
  position: absolute; left: 0; top: -17px;
  height: 18px; padding: 3px 12px 0;
  border-radius: var(--radius) var(--radius) 0 0;
  background: #d9d7d1;
  font: 700 10px/1.3 var(--sans); letter-spacing: 0.2em; text-transform: uppercase; color: var(--ink-2);
}
.file-title { font: 700 17px/1.25 var(--type); padding-right: 74px; }
.file-line { font: 13px/1.35 var(--type); color: var(--ink-2); padding-right: 8px; }
.file-status { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-top: 6px; font: 600 11px/1.2 var(--sans); letter-spacing: 0.12em; text-transform: uppercase; color: var(--ink-2); }
.file.is-open, .file.is-call { background: linear-gradient(175deg, #ecebe7, #cfcdc7); }
.file.is-open .file-tab, .file.is-call .file-tab { background: #ecebe7; }
.file.is-locked { background: linear-gradient(175deg, #8f8d88, #74726d); }
.file.is-locked .file-tab { background: #8f8d88; }
.file.is-locked .file-title, .file.is-locked .file-line, .file.is-locked .file-status { color: #1f1f1f; }
.file .stamp { top: auto; bottom: 34px; right: 12px; font-size: 10px; }
.file.is-closed .file-title { padding-right: 0; }
.file.is-closed .file-line { padding-right: 86px; }

.stars { display: inline-flex; gap: 3px; }
.star { width: 14px; height: 14px; background: currentColor; opacity: 0.25; clip-path: polygon(50% 0, 61% 35%, 98% 35%, 68% 57%, 79% 91%, 50% 70%, 21% 91%, 32% 57%, 2% 35%, 39% 35%); }
.star.on { opacity: 1; }
.stars.big .star { width: 22px; height: 22px; }

/* the board */
.board-head { padding: 0 calc(var(--safe-r) + 18px) 8px calc(var(--safe-l) + 18px); }
.board-kicker { margin: 0; font: 600 11px/1.3 var(--sans); letter-spacing: 0.24em; text-transform: uppercase; color: var(--muted); }
.board-title { margin: 2px 0 0; font: 400 clamp(24px, calc(6.4vw / var(--ca-zoom, 1)), 34px)/1.1 var(--serif); letter-spacing: 0.02em; }
.board-sub { margin: 4px 0 0; font: 13px/1.3 var(--type); color: var(--muted); }
.board-scroll, .lead-scroll { flex: 1; min-height: 0; overflow-y: auto; overscroll-behavior: contain; -webkit-overflow-scrolling: touch; scrollbar-width: thin; }
.board-wall { display: grid; gap: 26px; padding: 14px calc(var(--safe-r) + 18px) 26px calc(var(--safe-l) + 18px); max-width: 1320px; margin: 0 auto; align-items: start; }
.wall-col { display: grid; gap: 18px; min-width: 0; }
.wall-title { margin: 6px 0 -4px; font: 600 11px/1.2 var(--sans); letter-spacing: 0.24em; text-transform: uppercase; color: var(--muted); }
.intro .typed-block { white-space: pre-line; }
.intro.folded { max-height: 168px; }
.intro.folded::before { z-index: 3; }
.intro.folded .typed-block:last-of-type { -webkit-mask: linear-gradient(#000 40%, transparent); mask: linear-gradient(#000 40%, transparent); }
.unfold { position: absolute; right: 8px; bottom: 6px; width: 44px; height: 44px; display: grid; place-items: center; border: 0; border-radius: 50%; background: rgba(20, 20, 20, 0.08); color: var(--ink); z-index: 3; }
.intro:not(.folded) .unfold .ic { transform: rotate(180deg); }
.lead-grid { display: grid; gap: 16px; }
.lead-note { width: 100%; display: grid; gap: 3px; padding-top: 22px; min-height: 78px; }
button.lead-note { cursor: pointer; transition: transform 0.25s cubic-bezier(.2, .8, .2, 1); }
button.lead-note:hover { transform: rotate(0deg) translateY(-2px); }
.lead-n { font: 700 10px/1.2 var(--sans); letter-spacing: 0.2em; text-transform: uppercase; color: var(--ink-2); }
.lead-name { font: 700 16px/1.25 var(--type); }
.lead-clue { font: 14px/1.45 var(--type); color: #262626; }
.lead-go { justify-self: start; margin-top: 6px; padding: 6px 10px; border-radius: var(--radius); background: var(--black); color: var(--white); font: 600 11px/1.2 var(--sans); letter-spacing: 0.14em; text-transform: uppercase; }
.lead-note.current { box-shadow: 0 0 0 2px rgba(242, 242, 240, 0.85), var(--shadow); }
:root[data-theme='light'] .lead-note.current { box-shadow: 0 0 0 2px #0b0b0c, var(--shadow); }
.lead-note.locked { background: linear-gradient(160deg, #8e8c87, #6f6d68); color: #1d1d1d; min-height: 64px; }
.lead-note.locked .lead-n { color: #222; }
.lead-note.locked .lead-name { font-weight: 400; color: #222; }
.lead-note.call.current { background: linear-gradient(160deg, #f4f3ef, #dddbd5); }
.people { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 10px; }
.person { display: flex; gap: 10px; align-items: center; min-width: 0; padding: 8px; border-radius: var(--radius); background: color-mix(in srgb, var(--surface) 82%, transparent); border: 1px solid var(--line); }
.person-face { width: 48px; height: 48px; flex: none; border-radius: var(--radius); background: var(--wall); }
.person-text { display: grid; min-width: 0; }
.person-name { font: 700 13px/1.25 var(--type); }
.person-role { font: 12px/1.3 var(--sans); color: var(--muted); }
.board-foot, .lead-foot {
  display: flex; align-items: center; gap: 10px; flex-wrap: wrap; justify-content: flex-end;
  padding: 10px calc(var(--safe-r) + 16px) calc(var(--safe-b) + 12px) calc(var(--safe-l) + 16px);
  border-top: 1px solid var(--line);
  background: linear-gradient(to top, var(--bg) 40%, color-mix(in srgb, var(--bg) 70%, transparent));
}
.board-foot .btn.primary, .lead-foot .btn.primary { flex: 1 1 220px; max-width: 420px; }
.board-foot { flex-wrap: nowrap; }
.board-foot .btn.ghost { flex: 0 1 auto; white-space: normal; line-height: 1.15; max-width: 42%; }

/* a lead */
.lead-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 0 calc(var(--safe-r) + 16px) 8px calc(var(--safe-l) + 18px); }
.lead-title { margin: 0; font: 400 clamp(20px, calc(5.4vw / var(--ca-zoom, 1)), 28px)/1.15 var(--serif); letter-spacing: 0.01em; min-width: 0; }
.hint-btn { flex: none; }
.hint-cost { font-weight: 500; opacity: 0.7; letter-spacing: 0.04em; }
.call-step { margin: 0; font: 600 11px/1.2 var(--sans); letter-spacing: 0.18em; text-transform: uppercase; color: var(--muted); }
.desk { display: grid; gap: 22px; padding: 14px calc(var(--safe-r) + 16px) 28px calc(var(--safe-l) + 16px); max-width: 760px; margin: 0 auto; }
.brief { font-size: 15px; }
.question { padding: 2px 4px; }
.question-label { margin: 0 0 2px; font: 600 11px/1.2 var(--sans); letter-spacing: 0.22em; text-transform: uppercase; color: var(--muted); }
.question-text { margin: 0; font: 400 21px/1.3 var(--serif); }
.exhibit { display: grid; gap: 18px; min-width: 0; }
.exhibit.is-solved .answer { opacity: 0.75; pointer-events: none; }
.hints { display: grid; gap: 12px; }
.hints:empty { display: none; }
.hint-note { padding-top: 20px; background: linear-gradient(160deg, #f1f0ec, #dad8d2); }
.hint-n { font: 700 10px/1.2 var(--sans); letter-spacing: 0.2em; text-transform: uppercase; color: var(--ink-2); }
.hint-note .pencil { font-size: 18px; margin: 4px 0 0; }
.clue-pinned { background: linear-gradient(160deg, #f6f5f1, #e0ded8); }
.feedback { flex: 1 1 100%; margin: 0; min-height: 1.4em; font: 14px/1.4 var(--type); color: var(--text); }
.feedback:empty { min-height: 0; }
.feedback.bad::before { content: '✗  '; font-weight: 700; }
.feedback.good::before { content: '✓  '; font-weight: 700; }
.feedback .cost { color: var(--muted); white-space: nowrap; }
.lead-foot .feedback { order: -1; }
.ex-help { margin: 0; font: 13px/1.4 var(--sans); color: var(--muted); }
.ex-tools { display: flex; gap: 10px; flex-wrap: wrap; }
.ex-stack { display: grid; gap: 14px; }
.ex-pair { display: grid; gap: 18px; align-items: start; }
.answer { display: grid; gap: 12px; min-width: 0; }
.answer-title { margin: 0; font: 600 11px/1.2 var(--sans); letter-spacing: 0.22em; text-transform: uppercase; color: var(--muted); }

/* prints, canvases */
canvas.fit { display: block; width: 100%; height: auto; aspect-ratio: var(--ar, 4 / 3); }
.print { margin: 0; padding: 10px 10px 12px; background: #f1f1ef; border-radius: 2px; box-shadow: var(--shadow); transform: rotate(-0.5deg); }
.print.dark { background: #1a1a1c; }
.print canvas { border-radius: 1px; }
.print-tools { display: flex; justify-content: flex-end; gap: 8px; padding-top: 8px; }
.print-tools .btn.ghost { background: #e2e2df; color: #141414; border-color: rgba(0, 0, 0, 0.2); }
.print.dark .print-tools .btn.ghost { background: #2a2a2d; color: var(--white); border-color: rgba(255, 255, 255, 0.18); }
.photo-canvas { cursor: zoom-in; touch-action: none; }

/* choices */
.choices { display: grid; gap: 10px; }
.choice {
  position: relative;
  width: 100%; min-height: 50px;
  display: grid; gap: 4px; align-content: center;
  padding: 12px 14px 12px 44px;
  border: 1px solid rgba(0, 0, 0, 0.22);
  border-radius: var(--radius);
  background: linear-gradient(170deg, var(--paper), var(--paper-2));
  color: var(--ink);
  text-align: left;
  font: 15px/1.4 var(--type);
  box-shadow: 0 8px 18px -12px rgba(0, 0, 0, 0.9);
  transition: transform 0.18s ease, box-shadow 0.2s ease;
}
.choice::before {
  content: '';
  position: absolute; left: 14px; top: 50%;
  width: 18px; height: 18px; margin-top: -9px;
  border-radius: 50%;
  border: 1.5px solid #3a3a39;
  background: transparent;
}
.choice[aria-checked='true'] { transform: translateX(3px); box-shadow: 0 0 0 2px var(--focus), 0 10px 22px -12px rgba(0, 0, 0, 0.9); }
.choice[aria-checked='true']::before { background: radial-gradient(circle at 35% 32%, #f8f8f6 0 14%, #8a8a8a 34%, #202022 64%, #0b0b0c 100%); border-color: #0b0b0c; box-shadow: 2px 3px 3px -1px rgba(0, 0, 0, 0.45); }
.choice:active { transform: translateX(2px) scale(0.995); }
.choice-who { font: 700 11px/1.2 var(--sans); letter-spacing: 0.16em; text-transform: uppercase; color: var(--ink-2); }
.choice-text { font: inherit; }
.choice-h { font: 700 15px/1.2 var(--mono); justify-self: end; }
.heights .choice { grid-template-columns: 1fr auto; }

/* number wheels: the brass of a combination lock */
.wheels { display: flex; align-items: center; justify-content: center; gap: 8px; padding: 14px 10px; border-radius: var(--radius); background: linear-gradient(180deg, #1a1a1d, #0d0d0f); border: 1px solid var(--line); box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.06), var(--shadow); }
.wheel { display: grid; justify-items: center; gap: 4px; }
.wheel-btn { width: 52px; height: 36px; border: 1px solid rgba(255, 255, 255, 0.14); border-radius: var(--radius); background: #1d1d20; color: #f2f2f0; display: grid; place-items: center; }
.wheel-btn::before { content: ''; width: 16px; height: 16px; background: currentColor; mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 15l7-7 7 7'/%3E%3C/svg%3E") center / contain no-repeat; }
.wheel-btn.down::before { transform: rotate(180deg); }
.wheel-btn:active { background: #2a2a2e; }
.wheel-face {
  width: 52px; height: 66px;
  display: grid; place-items: center;
  border-radius: var(--radius);
  background: linear-gradient(180deg, #050506 0%, #2b2b2f 22%, #e9e8e4 46%, #f6f6f3 50%, #e9e8e4 54%, #2b2b2f 78%, #050506 100%);
  color: #0b0b0c;
  font: 700 34px/1 var(--mono);
  touch-action: none;
  cursor: ns-resize;
}
.wheel-num { display: block; }
.wheel-num.tick { animation: tick 0.18s ease-out; }
@keyframes tick { from { transform: translateY(-30%); opacity: 0.3; } to { transform: none; opacity: 1; } }
.wheel-colon { font: 700 34px/1 var(--mono); color: #f2f2f0; padding-bottom: 4px; }

/* the set list */
.set-head { margin: 0 0 10px; font: 700 15px/1.3 var(--type); letter-spacing: 0.08em; }
.set-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 4px; }
.set-row { display: grid; grid-template-columns: 1.6em minmax(0, auto) 1fr auto; align-items: baseline; gap: 6px; font: 15px/1.4 var(--type); }
.set-row.solo { font-style: italic; }
.set-dots { border-bottom: 1.5px dotted rgba(20, 20, 20, 0.45); transform: translateY(-4px); min-width: 12px; }
.set-d { font-weight: 700; }
.setlist .pencil { margin: 14px 0 0; font-size: 19px; transform: rotate(-1.5deg); }

/* the safe */
.safe { position: relative; perspective: 900px; }
.safe-door {
  position: relative;
  display: grid; gap: 12px; justify-items: center;
  padding: 18px 16px 20px;
  border-radius: 6px;
  background: linear-gradient(160deg, #3a3a3e 0%, #232326 48%, #141416 100%);
  border: 1px solid #47474c;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.12), var(--shadow);
  transform-origin: left center;
  transition: transform 1.1s cubic-bezier(.3, .8, .2, 1);
}
.safe.opened .safe-door { transform: rotateY(-62deg); }
.safe-inner { position: absolute; inset: 0; border-radius: 6px; background: radial-gradient(90% 80% at 50% 40%, #1a1a1d, #040405); box-shadow: inset 0 0 0 10px #2a2a2e, inset 0 0 30px rgba(0, 0, 0, 0.9); display: grid; place-items: center; }
.safe-tray { width: 58%; height: 22%; border-radius: var(--radius); background: linear-gradient(180deg, #2b2b2f, #111113); box-shadow: inset 0 2px 8px rgba(0, 0, 0, 0.9); }
.safe-bolt { position: absolute; width: 10px; height: 10px; border-radius: 50%; background: radial-gradient(circle at 35% 35%, #9a9a9e, #2a2a2e 70%); }
.safe-bolt.tl { left: 10px; top: 10px; } .safe-bolt.tr { right: 10px; top: 10px; } .safe-bolt.bl { left: 10px; bottom: 10px; } .safe-bolt.br { right: 10px; bottom: 10px; }
.safe-handle { width: 92px; height: 14px; border-radius: 7px; background: linear-gradient(180deg, #c9c9c6, #5b5b5e); box-shadow: 0 3px 0 #0b0b0c; }
.safe-display { position: relative; display: flex; gap: 6px; padding: 8px 10px; border-radius: var(--radius); background: #0b0b0c; border: 1px solid #000; box-shadow: inset 0 2px 6px rgba(0, 0, 0, 0.8); }
.safe-slot { width: 34px; height: 44px; display: grid; place-items: center; border-radius: 2px; background: #161618; color: #f2f2f0; font: 700 26px/1 var(--mono); }
.safe-slot.on { background: #202023; }
.safe-display.shake { animation: shake 0.4s ease; }
@keyframes shake { 20% { transform: translateX(-6px); } 40% { transform: translateX(6px); } 60% { transform: translateX(-4px); } 80% { transform: translateX(3px); } }
.safe-keys { position: relative; display: grid; grid-template-columns: repeat(3, 64px); gap: 10px; }
.safe-key {
  position: relative;
  height: 54px;
  border-radius: var(--radius);
  border: 1px solid #0b0b0c;
  background: linear-gradient(180deg, #d7d7d4, #a5a5a2);
  color: #111;
  font: 700 22px/1 var(--mono);
  box-shadow: 0 3px 0 #0b0b0c, inset 0 1px 0 rgba(255, 255, 255, 0.6);
  overflow: hidden;
}
.safe-key:active:not(:disabled) { transform: translateY(2px); box-shadow: 0 1px 0 #0b0b0c; }
/* fingerprint powder: grey dust and the whorls of a print */
.safe-key.powder::after {
  content: '';
  position: absolute; inset: 0;
  background:
    repeating-radial-gradient(ellipse at 58% 62%, rgba(40, 40, 42, 0) 0 2px, rgba(40, 40, 42, 0.32) 2.6px 3.2px),
    radial-gradient(circle at 55% 60%, rgba(70, 70, 72, 0.45), rgba(70, 70, 72, 0) 62%);
  mix-blend-mode: multiply;
  pointer-events: none;
}
.safe-key.clear { font: 700 14px/1 var(--sans); }
.safe-key.open { font: 700 11px/1 var(--sans); letter-spacing: 0.1em; text-transform: uppercase; background: linear-gradient(180deg, #2a2a2d, #18181b); color: #8a8a8a; }
.safe-key.open.ready { background: linear-gradient(180deg, #f6f6f3, #cfcfcc); color: #0b0b0c; }
.diary { background: repeating-linear-gradient(#ecebe6 0 27px, rgba(80, 80, 90, 0.22) 27px 28px), #ecebe6; }
.diary-lines { list-style: none; margin: 0; padding: 0; display: grid; gap: 0; }
.diary-lines li { line-height: 28px; font-size: 18px; }
.hand-title { font-family: var(--sans); }

/* the torn card */
.strips-desk { padding: 18px 12px 22px; border-radius: var(--radius); background: radial-gradient(120% 120% at 50% 30%, #2a2a2e, #121214); box-shadow: inset 0 0 0 1px var(--line); }
.strips { display: flex; justify-content: center; gap: 7px; height: clamp(140px, calc(40vw / var(--ca-zoom, 1)), 300px); transition: gap 0.5s ease; }
.strip { flex: var(--w) 1 0px; min-width: 0; padding: 0; border: 0; background: none; transform: translateX(var(--dx, 0)) rotate(var(--tilt, 0deg)); transition: transform 0.25s ease, filter 0.2s ease; filter: drop-shadow(0 6px 6px rgba(0, 0, 0, 0.6)); touch-action: none; }
.strip canvas { display: block; width: 100%; height: 100%; }
.strip.picked { transform: translateY(-12px) rotate(var(--tilt, 0deg)); filter: drop-shadow(0 14px 10px rgba(0, 0, 0, 0.7)) brightness(1.06); }
.strip.dragging { z-index: 2; transition: none; transform: translateX(var(--dx, 0)) translateY(-10px) rotate(var(--tilt, 0deg)); }
.strip.fixed { outline: 1px dashed rgba(242, 242, 240, 0.4); outline-offset: 2px; }
.strips.joined { gap: 0; }
.strips.joined .strip { transform: none; outline: 0; filter: drop-shadow(0 6px 6px rgba(0, 0, 0, 0.55)); }

/* the typed note and the machines */
.typed-note { padding: 20px 0 0; }
.typed-note .paper-title { padding: 0 18px; }
.machines .choice { padding: 10px 10px 8px 40px; }
.machines .choice canvas { border-radius: 2px; box-shadow: inset 0 0 0 1px rgba(0, 0, 0, 0.12); }

/* the tape and the card of numbers */
.tape { margin: 0; padding: 8px; border-radius: var(--radius); background: #0b0b0c; box-shadow: var(--shadow); }
.tape .print-tools .btn.ghost { color: var(--white); background: #1d1d20; border-color: rgba(255, 255, 255, 0.2); }
.card-list { padding: 22px 12px 12px; }
.directory .choice { grid-template-columns: auto 1fr; align-items: baseline; gap: 12px; padding-left: 40px; min-height: 48px; }
.dir-num { font: 700 15px/1.2 var(--mono); letter-spacing: 0.04em; }
.rooms { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.rooms .choice { padding: 10px 6px 10px 32px; min-height: 48px; font: 700 16px/1 var(--mono); }
.rooms .choice::before { left: 9px; width: 14px; height: 14px; margin-top: -7px; }

/* the sketches */
.sheet-sketch { margin: 0; padding: 0; border-radius: 2px; box-shadow: var(--shadow); background: #e6e3dc; transform: rotate(0.4deg); overflow: hidden; }
.sketch-tabs { display: flex; align-items: center; gap: 6px; padding: 8px; background: #d6d3cb; }
.sketch-tabs .icon-btn { background: #ecebe6; color: #141414; border-color: rgba(0, 0, 0, 0.2); }
.tabs { flex: 1; display: flex; justify-content: center; gap: 4px; }
.tab { min-height: 44px; min-width: 0; flex: 1; max-width: 80px; padding: 0 4px; border: 1px solid rgba(0, 0, 0, 0.2); border-radius: var(--radius); background: #ecebe6; color: #141414; font: 700 14px/1 var(--mono); }
.tab[aria-pressed='true'] { background: #141414; color: #f2f2f0; border-color: #141414; }

/* the sign and the Morse card */
.ex-pair.morse { grid-template-columns: minmax(0, 0.9fr) minmax(0, 1fr); }
.print.sign { padding: 6px; transform: rotate(0.6deg); }
.morse-card { padding: 22px 14px 14px; }
.morse-list { display: grid; grid-template-columns: auto 1fr; gap: 6px 10px; margin: 0; align-items: center; }
.morse-list dt { font: 700 16px/1 var(--mono); }
.morse-list dd { margin: 0; display: flex; gap: 4px; align-items: center; }
.dot, .dash { display: inline-block; height: 7px; border-radius: 4px; background: #151515; }
.dot { width: 7px; }
.dash { width: 20px; }
.morse-noted { margin: 0; display: flex; flex-wrap: wrap; align-items: center; gap: 14px; padding: 12px 14px; border-radius: var(--radius); background: color-mix(in srgb, var(--surface) 80%, transparent); border: 1px solid var(--line); }
.morse-noted .dot, .morse-noted .dash { background: var(--text); }
.noted-label { flex-basis: 100%; font: 600 11px/1.2 var(--sans); letter-spacing: 0.18em; text-transform: uppercase; color: var(--muted); }
.noted-group { display: inline-flex; gap: 4px; align-items: center; }

/* the enlarger */
.enlarger { margin: 0; padding: 10px; border-radius: var(--radius); background: #0b0b0c; box-shadow: var(--shadow); }
.enlarger-controls { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; padding-top: 10px; }
.enlarger-controls .btn.ghost { color: var(--white); background: #1d1d20; border-color: rgba(255, 255, 255, 0.18); }
.enlarger-controls .btn.toggle[aria-pressed='true'] { background: var(--white); color: var(--black); border-color: var(--white); }
.range-row { flex: 1 1 200px; display: flex; align-items: center; gap: 10px; min-height: 44px; color: var(--white); font: 600 12px/1 var(--sans); letter-spacing: 0.12em; text-transform: uppercase; }
.range { flex: 1; accent-color: #f2f2f0; height: 44px; }

/* the sleeping car */
.berth-board { gap: 14px; }
.car { display: flex; align-items: stretch; gap: 0; padding: 10px 6px; border-radius: var(--radius); background: linear-gradient(180deg, #2a2a2e, #141416); border: 1px solid var(--line); overflow-x: auto; }
.car-end { writing-mode: vertical-rl; transform: rotate(180deg); display: grid; place-items: center; padding: 0 4px; font: 600 10px/1 var(--sans); letter-spacing: 0.14em; text-transform: uppercase; color: #b5b5b3; }
.comp { flex: 1 1 0; min-width: 54px; min-height: 92px; display: grid; grid-template-rows: auto 1fr; justify-items: center; align-items: center; gap: 4px; padding: 8px 2px; border: 1px solid rgba(255, 255, 255, 0.16); border-radius: var(--radius); background: #0f0f11; color: #f2f2f0; }
.comp-n { font: 700 18px/1 var(--serif); }
.comp-slot { font: 700 12px/1.2 var(--type); text-align: center; overflow-wrap: anywhere; }
.comp.filled { background: linear-gradient(170deg, var(--paper), var(--paper-2)); color: var(--ink); }
.car-wall { width: 6px; flex: none; }
.car-door { width: 14px; flex: none; position: relative; }
.car-door::before { content: ''; position: absolute; left: 3px; right: 3px; top: 26%; bottom: 26%; border: 1.5px solid #f2f2f0; border-radius: 2px; }
.car-door::after { content: ''; position: absolute; left: 6px; top: 50%; width: 2px; height: 2px; border-radius: 50%; background: #f2f2f0; }
.car.shake { animation: shake 0.4s ease; }
.tags { display: flex; flex-wrap: wrap; gap: 8px; min-height: 48px; }
.tag { min-height: 44px; padding: 0 14px; border-radius: var(--radius); border: 1px solid rgba(0, 0, 0, 0.25); background: linear-gradient(170deg, var(--paper), var(--paper-2)); color: var(--ink); font: 700 14px/1 var(--type); box-shadow: 0 6px 12px -8px rgba(0, 0, 0, 0.9); }
.tag[aria-pressed='true'] { box-shadow: 0 0 0 2px var(--focus); transform: translateY(-2px); }
.clue-list { margin: 0; padding-left: 18px; display: grid; gap: 6px; }

/* tickets */
.legend { padding: 22px 14px 12px; }
.legend-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.legend-list li { display: grid; grid-template-columns: 34px 1fr; gap: 10px; align-items: center; }
.legend-list canvas { width: 34px; }
.tickets .choice { padding: 8px 8px 8px 40px; }
.tickets .choice canvas { border-radius: 3px; }

/* the print's back */
.print-back { background: linear-gradient(160deg, #f1f0ec, #d9d7d1); }
.print-back .hand { margin: 0; font-size: 20px; }

/* the blotter */
.blotter { margin: 0; display: grid; gap: 10px; }
.blot-canvas { border-radius: 2px; box-shadow: var(--shadow); touch-action: none; cursor: grab; }
.blot-tools { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.arrows { display: grid; grid-template-columns: repeat(3, 44px); grid-template-rows: repeat(2, 44px); gap: 4px; flex: none; }
.arrows > :nth-child(1) { grid-column: 2; }
.arrows > :nth-child(2) { grid-column: 1; grid-row: 2; }
.arrows > :nth-child(3) { grid-column: 3; grid-row: 2; }
.arrows > :nth-child(4) { grid-column: 2; grid-row: 2; }

/* the code page */
.telegram { background: linear-gradient(160deg, #f1efe9, #dcd9d1); }
.tele-to, .tele-from { margin: 0; font: 700 13px/1.4 var(--type); letter-spacing: 0.06em; }
.tele-nums { margin: 8px 0; font: 700 clamp(22px, calc(7vw / var(--ca-zoom, 1)), 30px)/1.2 var(--mono); letter-spacing: 0.08em; }
.code-page { padding: 22px 8px 12px; }
.code-page .paper-title { padding-left: 8px; }
.code-grid { width: 100%; border-collapse: collapse; table-layout: fixed; }
.code-grid th { font: 700 13px/1 var(--mono); color: var(--ink-2); padding: 4px 0; }
.code-grid thead th:first-child, .code-grid tbody th { width: 22px; }
.code-grid td { padding: 2px; }
.code-word { width: 100%; min-height: 44px; padding: 2px 1px; border: 1px solid rgba(0, 0, 0, 0.18); border-radius: 3px; background: rgba(255, 255, 255, 0.35); color: var(--ink); font: 700 clamp(9px, calc(2.5vw / var(--ca-zoom, 1)), 13px)/1.15 var(--mono); letter-spacing: -0.02em; }
.code-word.used { background: #141414; color: #f2f2f0; }
.small-print { margin: 10px 8px 0; font: italic 12px/1.35 var(--serif); color: var(--ink-2); }
.reads { margin: 0; display: flex; flex-wrap: wrap; align-items: baseline; gap: 6px 10px; padding: 12px 14px; border-radius: var(--radius); background: color-mix(in srgb, var(--surface) 85%, transparent); border: 1px solid var(--line); min-height: 52px; }
.reads-label { font: 600 11px/1.2 var(--sans); letter-spacing: 0.18em; text-transform: uppercase; color: var(--muted); }
.reads-word { font: 700 16px/1.3 var(--type); color: var(--faint); }
.reads-word.on { color: var(--text); }
.reads.shake { animation: shake 0.4s ease; }

/* the call */
.call-q { padding: 24px 18px 18px; }
.call-question { margin: 0; font: 400 23px/1.3 var(--serif); }
.answered { padding: 20px 16px 12px; opacity: 0.9; background: linear-gradient(160deg, #cfcdc7, #b9b7b1); }
.answered .prose { margin: 4px 0 0; font-size: 14px; }

/* the end */
.end-desk { max-width: 680px; }
.ending { padding: 28px 22px 22px; }
.ending-title { margin: 2px 0 14px; font: 400 clamp(26px, calc(7vw / var(--ca-zoom, 1)), 36px)/1.1 var(--serif); }
.ending .board-kicker { color: var(--ink-2); }
.typed { margin: 0; white-space: pre-line; font: 16px/1.6 var(--type); }
.typed.typing::after { content: '▌'; animation: caret 0.8s steps(1) infinite; margin-left: 1px; }
@keyframes caret { 50% { opacity: 0; } }
.ending-score { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; margin-top: 18px; padding-top: 14px; border-top: 1px solid rgba(0, 0, 0, 0.2); font: 15px/1.3 var(--type); }
.ending-score strong { font: 700 20px/1 var(--type); }
.end-foot { flex-direction: column; align-items: stretch; }
.end-note { margin: 0; font: 13px/1.4 var(--sans); color: var(--muted); text-align: center; }
.foot-row { display: flex; gap: 10px; justify-content: flex-end; flex-wrap: wrap; }
.foot-row .btn.primary { flex: 1 1 200px; max-width: 420px; }

/* ------------------------------------------------------------------ sheets */
.sheet {
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 20px 20px 16px;
  width: min(calc(94vw / var(--ca-zoom, 1)), 460px);
  max-height: calc(88dvh / var(--ca-zoom, 1));
  background: var(--surface);
  color: var(--text);
  box-shadow: 0 30px 80px -24px rgba(0, 0, 0, 0.8);
  flex-direction: column;
}
.sheet[open] { display: flex; }
.sheet::backdrop { background: rgba(5, 5, 6, 0.66); }
.sheet h2 { margin: 0 0 12px; font: 400 24px/1.15 var(--serif); }
.sheet h3 { margin: 16px 0 6px; font: 600 11px/1.2 var(--sans); letter-spacing: 0.2em; text-transform: uppercase; color: var(--muted); }
.sheet h4 { margin: 12px 0 4px; font: 700 13px/1.3 var(--sans); }
.sheet-body { flex: 1; min-height: 0; overflow-y: auto; overscroll-behavior: contain; margin: 0 -6px; padding: 0 6px; }
.sheet-body .prose { margin: 0 0 10px; font-size: 15px; line-height: 1.55; }
.sheet-actions { display: flex; justify-content: flex-end; gap: 10px; flex-wrap: wrap; margin: 14px 0 0; }
.sheet-actions .btn.primary { flex: 1 1 160px; }
.small-sheet { width: min(calc(92vw / var(--ca-zoom, 1)), 400px); }
.row { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 52px; padding: 6px 0; border-bottom: 1px solid var(--line); }
select { min-height: 44px; max-width: 58%; padding: 0 10px; border-radius: var(--radius); border: 1px solid var(--line); background: var(--surface-2); color: var(--text); }
.switch { appearance: none; width: 46px; height: 28px; border-radius: 14px; background: var(--surface-2); border: 1px solid var(--line); position: relative; transition: background-color 0.2s ease; flex: none; }
.switch::after { content: ''; position: absolute; top: 3px; left: 3px; width: 20px; height: 20px; border-radius: 50%; background: var(--muted); transition: transform 0.2s ease, background-color 0.2s ease; }
.switch:checked { background: var(--text); }
.switch:checked::after { transform: translateX(18px); background: var(--bg); }
.version { color: var(--muted); font-size: 13px; }
.muted { color: var(--muted); }
.nb-list { margin: 0; padding-left: 18px; display: grid; gap: 6px; }
.nb-list .prose { margin: 0; }
.results-rating { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; padding: 8px 0 4px; border-bottom: 1px solid var(--line); }
.results-rating strong { font: 400 28px/1 var(--serif); }
.results-cases { list-style: none; margin: 0; padding: 0; display: grid; gap: 0; }
.res-row { display: flex; justify-content: space-between; align-items: center; gap: 10px; min-height: 48px; border-bottom: 1px solid var(--line); }
.res-title { font: 700 14px/1.3 var(--type); }
.res-score { display: flex; align-items: center; gap: 10px; font: 14px/1 var(--type); white-space: nowrap; }
.res-none { color: var(--muted); font-size: 13px; white-space: nowrap; }
.results-leads { margin: 10px 0 0; color: var(--muted); font-size: 14px; }
.clue-sheet { background: transparent; border: 0; box-shadow: none; padding: 8px; width: min(calc(94vw / var(--ca-zoom, 1)), 520px); }
.clue-sheet::backdrop { background: rgba(5, 5, 6, 0.78); }
.clue-kicker { margin: 0 0 10px; text-align: center; font: 600 12px/1.2 var(--sans); letter-spacing: 0.24em; text-transform: uppercase; color: #f2f2f0; }
.clue-paper { padding: 28px 22px 22px; --tilt: -1deg; min-height: 140px; background: linear-gradient(160deg, #f6f5f1, #dddbd5); }
.clue-paper .typed { font-size: 17px; }
.clue-sheet .sheet-actions { flex-wrap: nowrap; }
.clue-sheet .sheet-actions .btn { flex: 1 1 0; min-width: 0; padding: 0 12px; }
.clue-sheet .sheet-actions .btn.primary { flex-grow: 1.3; }
.clue-sheet .sheet-actions .btn.ghost { color: #f2f2f0; background: #1d1d20; border-color: rgba(255, 255, 255, 0.2); }
.clue-sheet .sheet-actions .btn.primary { color: #0b0b0c; background: #e9e8e4; }
@media (max-width: 520px) {
  .sheet:not(.clue-sheet) { margin: auto auto 0; width: 100%; max-width: none; border-radius: 10px 10px 0 0; padding-bottom: calc(var(--safe-b) + 16px); }
}

/* ------------------------------------------------------------------ wider */
@media (min-width: 600px) {
  .ex-pair { grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); }
  .tickets { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .lead-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .lead-grid > .call { grid-column: 1 / -1; }
}
@media (min-width: 760px) and (orientation: landscape), (min-width: 1000px) {
  #home { flex-direction: column; justify-content: space-between; }
  .home-hero { max-width: 46%; }
  .files { max-width: 400px; }
}
@media (min-width: 900px) {
  .board-wall { grid-template-columns: minmax(0, 1.05fr) minmax(0, 1.25fr) minmax(0, 0.8fr); }
  .people { grid-template-columns: 1fr; }
  .lead-grid { grid-template-columns: 1fr; }
}
@media (min-width: 900px) and (max-aspect-ratio: 1/1) {
  .desk { max-width: 1000px; }
}
@media (min-width: 1100px), (min-width: 900px) and (orientation: landscape) {
  .desk { max-width: 1400px; grid-template-columns: minmax(230px, 290px) minmax(0, 1fr); align-items: start; column-gap: 30px; }
  .desk > .exhibit { grid-column: 2; grid-row: 1 / span 6; }
  .desk > :not(.exhibit) { grid-column: 1; }
  .lead-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (min-width: 1280px) {
  .desk > .exhibit { grid-template-columns: minmax(0, 1.75fr) minmax(280px, 1fr); align-items: start; column-gap: 26px; }
  .exhibit > :not(.answer) { grid-column: 1; }
  .exhibit > .answer { grid-column: 2; grid-row: 1 / span 6; }
  .desk.end-desk, #call-desk { grid-template-columns: none; max-width: 760px; }
  #call-desk > * { grid-column: auto; }
}
/* short screens: the header and titles give way */
@media (max-height: 620px) {
  .logo { font-size: clamp(28px, calc(7vw / var(--ca-zoom, 1)), 44px); }
  .tagline { display: none; }
  .file-list { gap: 20px; }
  .file-slot, .file { min-height: 92px; }
  .file-line { display: none; }
  .board-head, .lead-head { padding-bottom: 4px; }
  .board-sub { display: none; }
}
@media (max-height: 460px) {
  .bar { min-height: calc(var(--safe-t) + 50px); padding-top: calc(var(--safe-t) + 3px); }
  .home-hero { display: none; }
  #home { justify-content: flex-end; }
  .file-list { grid-auto-flow: column; grid-auto-columns: minmax(200px, 1fr); overflow-x: auto; padding-top: 18px; gap: 12px; }
  .files { max-width: none; }
  .board-head .board-kicker { display: none; }
}

/* ------------------------------------------------------------------ motion */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; animation: none !important; }
}

/* cloud-apps bar 1.30.0 */
:root { --ca-brand-icon-w: 89px; } /* the brand's width with the icon alone (the mark, the divider, the app's icon) */
.ca-start { display: flex; align-items: center; flex: 0 100 auto; min-width: min(var(--ca-brand-icon-w), 100%); }
.ca-brand { display: flex; align-items: center; min-width: 0; height: 40px; color: inherit; font-family: inherit; }
.ca-brand a { display: flex !important; align-items: center !important; box-sizing: border-box !important; color: inherit !important; text-decoration: none !important; border-radius: 12px !important; -webkit-tap-highlight-color: transparent; transition: background-color .15s ease; }
.ca-brand-home { flex: none !important; justify-content: center !important; width: 40px !important; height: 40px !important; padding: 0 !important; margin: 0 0 0 -5px !important; }
.ca-brand-home img { display: block !important; width: 30px !important; height: 30px !important; margin: 0 !important; transition: transform .38s cubic-bezier(.34, 1.56, .64, 1); }
.ca-brand-sep { flex: none; display: block; width: 1.5px; height: 18px; margin: 0 4px; border-radius: 1px; background: currentColor; opacity: .22; transform: rotate(18deg); }
.ca-brand-app { flex: 0 1 auto !important; min-width: 44px !important; height: 40px !important; padding: 0 9px 0 5px !important; margin: 0 !important; }
.ca-brand-in { display: flex; flex-wrap: wrap; align-items: center; align-content: flex-start; column-gap: 9px; min-width: 0; height: 40px; overflow: hidden; }
.ca-brand-in img { flex: none; display: block !important; width: 30px !important; height: 30px !important; margin: 5px 0 !important; border-radius: 8px; }
.ca-brand[data-ca-icon] .ca-brand-name { display: none !important; }
.ca-brand[data-ca-icon] .ca-brand-app { padding-right: 5px !important; }
.ca-brand-name { display: block; height: 40px; margin: 0 !important; padding: 0 !important; line-height: 40px !important; white-space: nowrap; font-family: var(--ca-brand-font, inherit); font-size: 17px !important; font-weight: 700; letter-spacing: -.015em; color: inherit; text-shadow: var(--ca-brand-shadow, none); }
@media (hover: hover) { .ca-brand a:hover { background-color: color-mix(in srgb, currentColor 7%, transparent); } .ca-brand-home:hover img { transform: rotate(-6deg) scale(1.06); } }
.ca-brand a:focus-visible { outline: 3px solid var(--ca-accent, #4f6bff); outline-offset: -3px; }
.ca-end { display: flex; align-items: center; justify-content: flex-end; gap: 10px; flex: none; min-width: 0; }
.ca-tools { display: flex; align-items: center; gap: 6px; }
.ca-tools[hidden] { display: none !important; }
.ca-tool { position: relative; flex: none; display: inline-grid; place-items: center !important; box-sizing: border-box !important; width: 36px !important; height: 36px !important; min-width: 0 !important; min-height: 0 !important; max-width: none !important; padding: 0 !important; margin: 0; border-radius: 50% !important;
  border: 1px solid var(--ca-tool-line, color-mix(in srgb, currentColor 16%, transparent)) !important; background: var(--ca-tool-bg, color-mix(in srgb, currentColor 6%, transparent)) !important; color: var(--ca-tool-ink, inherit) !important;
  font: inherit; line-height: 0 !important; letter-spacing: 0; text-decoration: none !important; box-shadow: none; cursor: pointer; -webkit-tap-highlight-color: transparent; transition: background-color .15s ease, transform .12s ease; }
.ca-tool[hidden] { display: none !important; }
.ca-tool::before { content: ""; position: absolute; inset: -4px; }
.ca-tool svg { display: block; width: 20px !important; height: 20px !important; margin: 0 !important; pointer-events: none; }
.ca-tool svg[hidden] { display: none !important; }
@media (hover: hover) { .ca-tool:hover { background: var(--ca-tool-hover, color-mix(in srgb, currentColor 13%, transparent)) !important; } }
.ca-tool:active { transform: scale(.94); }
.ca-tool:focus-visible { outline: 3px solid var(--ca-accent, #4f6bff); outline-offset: 2px; }
.ca-tool-talk { color: var(--ca-accent, #4f6bff) !important; border-color: color-mix(in srgb, var(--ca-accent, #4f6bff) 50%, transparent) !important; background: color-mix(in srgb, var(--ca-accent, #4f6bff) 13%, transparent) !important; }
.ca-tool .ca-tlive { position: absolute; top: 1px; right: 1px; width: 9px; height: 9px; border-radius: 50%; background: #22c55e; box-shadow: 0 0 0 2px color-mix(in srgb, #22c55e 30%, transparent); }
.ca-tool-talk.ca-new::after { content: ""; position: absolute; inset: -1px; border-radius: 50%; pointer-events: none; animation: ca-bar-ring 1.2s ease-out 2; }
@keyframes ca-bar-ring { from { box-shadow: 0 0 0 0 color-mix(in srgb, var(--ca-accent, #4f6bff) 55%, transparent); } to { box-shadow: 0 0 0 11px transparent; } }
.ca-tool .ca-tcount, .ca-tool .ca-tunread { position: absolute; right: -5px; display: grid; place-items: center; box-sizing: border-box; min-width: 17px; height: 17px; padding: 0 4px; border-radius: 9px; color: #fff; font: 700 10.5px/1 -apple-system, BlinkMacSystemFont, Inter, "Segoe UI", Roboto, sans-serif; font-variant-numeric: tabular-nums; letter-spacing: 0; pointer-events: none; }
.ca-tool .ca-tcount { bottom: -5px; background: #1f9d55; }
.ca-tool .ca-tunread { top: -5px; background: #e5484d; }
@media (max-width: 599.98px), (max-height: 499.98px) { .ca-tools-app { display: none !important; } }
.ca-end[data-ca-cramped] .ca-tools-app { display: none !important; }
.ca-end[data-ca-tight] .ca-tool-friends { display: none !important; }
@media (prefers-reduced-motion: reduce) { .ca-tool, .ca-brand a, .ca-brand-home img { transition: none; } .ca-tool-talk.ca-new::after { animation: none; } }
/* end of the cloud-apps bar */
/* ---- cloud-apps: big screens (App Standard §6.5) — written by `cloud-apps vendor-sdk`; do not edit ---- */
/* Past 1584 × 990 the page is laid out at about 1440 × 900 and zoomed to fill the screen; viewport
   units in this file are divided by --ca-zoom. cloud-kit.js turns it off where the engine has no
   standard zoom (html[data-ca-zoom="off"]). */
@media (min-width: 1585px) and (min-height: 991px) { :root { --ca-zoom: 1.1; } }
@media (min-width: 1656px) and (min-height: 1035px) { :root { --ca-zoom: 1.15; } }
@media (min-width: 1728px) and (min-height: 1080px) { :root { --ca-zoom: 1.2; } }
@media (min-width: 1800px) and (min-height: 1125px) { :root { --ca-zoom: 1.25; } }
@media (min-width: 1872px) and (min-height: 1170px) { :root { --ca-zoom: 1.3; } }
@media (min-width: 1945px) and (min-height: 1215px) { :root { --ca-zoom: 1.35; } }
@media (min-width: 2016px) and (min-height: 1260px) { :root { --ca-zoom: 1.4; } }
@media (min-width: 2088px) and (min-height: 1305px) { :root { --ca-zoom: 1.45; } }
@media (min-width: 2160px) and (min-height: 1350px) { :root { --ca-zoom: 1.5; } }
@media (min-width: 2232px) and (min-height: 1395px) { :root { --ca-zoom: 1.55; } }
@media (min-width: 2304px) and (min-height: 1440px) { :root { --ca-zoom: 1.6; } }
@media (min-width: 2376px) and (min-height: 1485px) { :root { --ca-zoom: 1.65; } }
@media (min-width: 2448px) and (min-height: 1530px) { :root { --ca-zoom: 1.7; } }
@media (min-width: 2520px) and (min-height: 1575px) { :root { --ca-zoom: 1.75; } }
@media (min-width: 2592px) and (min-height: 1620px) { :root { --ca-zoom: 1.8; } }
@media (min-width: 2664px) and (min-height: 1665px) { :root { --ca-zoom: 1.85; } }
@media (min-width: 2736px) and (min-height: 1710px) { :root { --ca-zoom: 1.9; } }
@media (min-width: 2808px) and (min-height: 1755px) { :root { --ca-zoom: 1.95; } }
@media (min-width: 2880px) and (min-height: 1800px) { :root { --ca-zoom: 2; } }
@media (min-width: 2952px) and (min-height: 1845px) { :root { --ca-zoom: 2.05; } }
@media (min-width: 3024px) and (min-height: 1890px) { :root { --ca-zoom: 2.1; } }
@media (min-width: 3096px) and (min-height: 1935px) { :root { --ca-zoom: 2.15; } }
@media (min-width: 3169px) and (min-height: 1981px) { :root { --ca-zoom: 2.2; } }
@media (min-width: 3240px) and (min-height: 2025px) { :root { --ca-zoom: 2.25; } }
@media (min-width: 3312px) and (min-height: 2070px) { :root { --ca-zoom: 2.3; } }
@media (min-width: 3384px) and (min-height: 2115px) { :root { --ca-zoom: 2.35; } }
@media (min-width: 3456px) and (min-height: 2160px) { :root { --ca-zoom: 2.4; } }
@media (min-width: 3529px) and (min-height: 2205px) { :root { --ca-zoom: 2.45; } }
@media (min-width: 3600px) and (min-height: 2250px) { :root { --ca-zoom: 2.5; } }
@media (min-width: 3672px) and (min-height: 2295px) { :root { --ca-zoom: 2.55; } }
@media (min-width: 3744px) and (min-height: 2340px) { :root { --ca-zoom: 2.6; } }
@media (min-width: 3816px) and (min-height: 2385px) { :root { --ca-zoom: 2.65; } }
@media (min-width: 3889px) and (min-height: 2430px) { :root { --ca-zoom: 2.7; } }
@media (min-width: 3960px) and (min-height: 2475px) { :root { --ca-zoom: 2.75; } }
@media (min-width: 4032px) and (min-height: 2520px) { :root { --ca-zoom: 2.8; } }
@media (min-width: 4104px) and (min-height: 2565px) { :root { --ca-zoom: 2.85; } }
@media (min-width: 4176px) and (min-height: 2610px) { :root { --ca-zoom: 2.9; } }
@media (min-width: 4248px) and (min-height: 2655px) { :root { --ca-zoom: 2.95; } }
@media (min-width: 4320px) and (min-height: 2700px) { :root { --ca-zoom: 3; } }
@media (min-width: 4392px) and (min-height: 2745px) { :root { --ca-zoom: 3.05; } }
@media (min-width: 4464px) and (min-height: 2790px) { :root { --ca-zoom: 3.1; } }
@media (min-width: 4536px) and (min-height: 2835px) { :root { --ca-zoom: 3.15; } }
@media (min-width: 4608px) and (min-height: 2880px) { :root { --ca-zoom: 3.2; } }
@media (min-width: 4680px) and (min-height: 2925px) { :root { --ca-zoom: 3.25; } }
@media (min-width: 4752px) and (min-height: 2970px) { :root { --ca-zoom: 3.3; } }
@media (min-width: 4824px) and (min-height: 3015px) { :root { --ca-zoom: 3.35; } }
@media (min-width: 4896px) and (min-height: 3060px) { :root { --ca-zoom: 3.4; } }
@media (min-width: 4968px) and (min-height: 3105px) { :root { --ca-zoom: 3.45; } }
@media (min-width: 5040px) and (min-height: 3150px) { :root { --ca-zoom: 3.5; } }
@media (min-width: 5112px) and (min-height: 3195px) { :root { --ca-zoom: 3.55; } }
@media (min-width: 5184px) and (min-height: 3240px) { :root { --ca-zoom: 3.6; } }
@media (min-width: 5256px) and (min-height: 3285px) { :root { --ca-zoom: 3.65; } }
@media (min-width: 5328px) and (min-height: 3330px) { :root { --ca-zoom: 3.7; } }
@media (min-width: 5400px) and (min-height: 3375px) { :root { --ca-zoom: 3.75; } }
@media (min-width: 5472px) and (min-height: 3420px) { :root { --ca-zoom: 3.8; } }
@media (min-width: 5544px) and (min-height: 3465px) { :root { --ca-zoom: 3.85; } }
@media (min-width: 5616px) and (min-height: 3510px) { :root { --ca-zoom: 3.9; } }
@media (min-width: 5688px) and (min-height: 3555px) { :root { --ca-zoom: 3.95; } }
@media (min-width: 5760px) and (min-height: 3600px) { :root { --ca-zoom: 4; } }
@media (min-width: 5832px) and (min-height: 3645px) { :root { --ca-zoom: 4.05; } }
@media (min-width: 5904px) and (min-height: 3690px) { :root { --ca-zoom: 4.1; } }
@media (min-width: 5977px) and (min-height: 3736px) { :root { --ca-zoom: 4.15; } }
@media (min-width: 6048px) and (min-height: 3780px) { :root { --ca-zoom: 4.2; } }
@media (min-width: 6120px) and (min-height: 3825px) { :root { --ca-zoom: 4.25; } }
@media (min-width: 6192px) and (min-height: 3870px) { :root { --ca-zoom: 4.3; } }
@media (min-width: 6264px) and (min-height: 3915px) { :root { --ca-zoom: 4.35; } }
@media (min-width: 6337px) and (min-height: 3961px) { :root { --ca-zoom: 4.4; } }
@media (min-width: 6408px) and (min-height: 4005px) { :root { --ca-zoom: 4.45; } }
@media (min-width: 6480px) and (min-height: 4050px) { :root { --ca-zoom: 4.5; } }
@media (min-width: 6552px) and (min-height: 4095px) { :root { --ca-zoom: 4.55; } }
@media (min-width: 6624px) and (min-height: 4140px) { :root { --ca-zoom: 4.6; } }
@media (min-width: 6697px) and (min-height: 4185px) { :root { --ca-zoom: 4.65; } }
@media (min-width: 6768px) and (min-height: 4230px) { :root { --ca-zoom: 4.7; } }
@media (min-width: 6840px) and (min-height: 4275px) { :root { --ca-zoom: 4.75; } }
@media (min-width: 6912px) and (min-height: 4320px) { :root { --ca-zoom: 4.8; } }
@media (min-width: 6984px) and (min-height: 4365px) { :root { --ca-zoom: 4.85; } }
@media (min-width: 7057px) and (min-height: 4410px) { :root { --ca-zoom: 4.9; } }
@media (min-width: 7128px) and (min-height: 4455px) { :root { --ca-zoom: 4.95; } }
@media (min-width: 7200px) and (min-height: 4500px) { :root { --ca-zoom: 5; } }
@media (min-width: 1585px) and (min-height: 991px) {
  html { zoom: var(--ca-zoom, 1); }
  html[data-ca-zoom='off'] { --ca-zoom: 1 !important; }
}
/* ---- end of big screens ---- */
