/* Kakuro — the same calm dusk-paper look as its sister game Takuzu: warm paper and soft ink by
   day, a deep evening sky by night; clue cells deep indigo with cream sums, white cells paper
   tiles. The board is DOM (js/board.js); its motion is transform and opacity only. */
:root {
  color-scheme: light;
  --bg: #f4efe4; --bg-2: #ebe2cf; --surface: #fffcf6; --surface-2: #f3ece0; --text: #1c2236; --muted: #535869;
  --line: rgba(28, 34, 54, 0.12); --accent: #4351c2; --accent-ink: #ffffff; --accent-soft: rgba(67, 81, 194, 0.12);
  --hot: #c03a27; --hot-soft: rgba(192, 58, 39, 0.13);
  --tray: #e4d9c3; --tray-edge: rgba(90, 66, 30, 0.16); --tile: #fdf9f2; --tile-given: #ebe1cd; --tile-edge: rgba(70, 52, 20, 0.12);
  --sun-a: #ffd27c; --sun-b: #f2a43c; --sun-c: #d47e1b; --sun-ring: rgba(212, 126, 27, 0.22);
  --moon: #4955c6; --moon-soft: rgba(73, 85, 198, 0.14); --glow: rgba(255, 244, 214, 0.95);
  --shadow: 70, 52, 20; --backdrop: rgba(28, 26, 34, 0.38);
  --ease: cubic-bezier(0.2, 0.8, 0.2, 1); --spring: cubic-bezier(0.3, 1.45, 0.5, 1);
  --blk-a: #36418f; --blk-b: #262f6e; --blk-ink: #fdf6e6; --blk-line: rgba(255, 246, 224, 0.42);
  --ca-accent: #4351c2; /* the accounts SDK's sheets and chip */
}
:root[data-theme="dark"] {
  color-scheme: dark;
  --bg: #12172b; --bg-2: #1b2244; --surface: #1b2239; --surface-2: #242c49; --text: #eef0f8; --muted: #aab0c8;
  --line: rgba(200, 210, 255, 0.14); --accent: #9ca8ff; --accent-ink: #111633; --accent-soft: rgba(156, 168, 255, 0.16);
  --hot: #ff8a76; --hot-soft: rgba(255, 138, 118, 0.16);
  --tray: #0d1224; --tray-edge: rgba(0, 0, 0, 0.4); --tile: #2b3559; --tile-given: #2d3758; --tile-edge: rgba(0, 0, 0, 0.32);
  --sun-a: #ffd98d; --sun-b: #f3ae4a; --sun-c: #d98a2a; --sun-ring: rgba(243, 174, 74, 0.2);
  --moon: #bcc4ff; --moon-soft: rgba(188, 196, 255, 0.16); --glow: rgba(188, 196, 255, 0.5);
  --shadow: 0, 0, 0; --backdrop: rgba(3, 6, 16, 0.62);
  --blk-a: #121735; --blk-b: #0a0d20; --blk-ink: #d8ddff; --blk-line: rgba(200, 210, 255, 0.3);
  --ca-accent: #9ca8ff;
}
* { 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%; }
body {
  margin: 0; height: 100%; overflow: hidden; overscroll-behavior: none; color: var(--text);
  /* a still sky: a soft light from above and a faint warmth low down — nothing moves behind the board */
  background: radial-gradient(130% 75% at 50% -10%, var(--bg-2), transparent 62%), radial-gradient(90% 60% at 50% 115%, color-mix(in srgb, var(--sun-b) 9%, transparent), transparent 70%), var(--bg);
  font: 16px/1.45 -apple-system, BlinkMacSystemFont, "SF Pro Text", Inter, "Segoe UI", Roboto, sans-serif;
  -webkit-font-smoothing: antialiased;
}
/* a game page: no text selection or long-press callouts anywhere, HUD and
   menus included; form fields and prose (the rules) opt back in */
body { -webkit-user-select: none; user-select: none; -webkit-touch-callout: none; -webkit-tap-highlight-color: transparent; }
input, textarea, select, .prose p, .prose li { -webkit-user-select: text; user-select: text; }
[hidden] { display: none !important; }
button { font: inherit; color: inherit; }
svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 1.9; stroke-linecap: round; stroke-linejoin: round; flex: 0 0 auto; display: block; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
:focus-visible { outline: 2.5px solid var(--accent); outline-offset: 2px; }
.board:focus-visible { outline: none; }

/* ------------------------------------------------------------------ the page */
.app {
  height: calc(100dvh / var(--ca-zoom, 1)); display: grid; grid-template-rows: auto auto minmax(0, 1fr) auto auto auto; grid-template-columns: minmax(0, 1fr);
  padding: env(safe-area-inset-top) env(safe-area-inset-right) env(safe-area-inset-bottom) env(safe-area-inset-left);
}
/* every part has its own cell (the hint box shares the helper's and the digits': explicit columns,
   or the grid would push them aside into a column of their own) */
.top { grid-row: 1; grid-column: 1; }
.hud { grid-row: 2; grid-column: 1; }
.stage { grid-row: 3; grid-column: 1; }
.helper { grid-row: 4; grid-column: 1; }
.pad { grid-row: 5; grid-column: 1; }
.dock { grid-row: 6; grid-column: 1; }
.top { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 10px 14px 4px; min-height: 56px; min-width: 0; }
/* the round's mode (the daily, a duel): in the bar's middle beside the brand, in the side column above the HUD */
.mode-line { margin: 0; min-width: 0; font-size: 12.5px; font-weight: 600; line-height: 1.25; color: var(--muted); display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; overflow: hidden; text-wrap: balance; }
.top .mode-line { flex: 1 0 auto; text-align: center; }
.hud .mode-line { display: none; }
@media (max-width: 599.98px) {
  .top.with-line .ca-start { flex: none; width: var(--ca-brand-icon-w); }
  .top .mode-line { flex: 1 1 0; }
}

.hud { display: flex; align-items: center; gap: 8px; padding: 4px 14px 6px; min-width: 0; }
.chip {
  appearance: none; display: inline-flex; align-items: center; gap: 6px; min-height: 44px; padding: 0 13px; border-radius: 15px; border: 1px solid var(--line);
  background: var(--surface); color: var(--text); font-size: 15px; white-space: nowrap; font-variant-numeric: tabular-nums; cursor: pointer;
  box-shadow: 0 1px 2px rgba(var(--shadow), 0.07); transition: transform 0.2s var(--spring), background 0.2s;
}
.chip:active { transform: scale(0.97); }
.chip svg { width: 18px; height: 18px; color: var(--muted); }
.chip b { font-weight: 650; }
.size-chip { min-width: 0; flex: 0 1 auto; margin-right: auto; gap: 6px; text-align: left; }
.size-chip b, .size-chip small { overflow: hidden; text-overflow: ellipsis; }
.size-chip small { font-size: 14px; color: var(--muted); font-weight: 600; }
.size-chip small::before { content: "· "; }
.size-chip svg { margin-left: 2px; }
.time-chip { min-width: 92px; justify-content: center; }
.time-chip .ic-pause { display: none; }
@media (hover: hover) { .time-chip:hover .ic-clock { display: none; } .time-chip:hover .ic-pause { display: block; } }
.time-chip[aria-pressed="true"] { background: var(--accent-soft); border-color: transparent; }
.time-chip.off b { display: none; }
.time-chip.off { min-width: 44px; padding: 0 12px; }

.stage { position: relative; min-height: 0; min-width: 0; display: grid; place-items: center; }

/* --------------------------------------------------------------- the board */
.board {
  --cs: 34px; --gap: 2px; position: relative; display: grid; gap: var(--gap);
  grid-template-columns: repeat(var(--N, 9), var(--cs)); grid-template-rows: repeat(var(--N, 9), var(--cs));
  padding: calc(var(--cs) * 0.18); border-radius: calc(var(--cs) * 0.4);
  background: linear-gradient(180deg, color-mix(in srgb, var(--tray) 82%, #fff 18%), var(--tray));
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.35), inset 0 -1px 0 var(--tray-edge), 0 22px 48px -26px rgba(var(--shadow), 0.55);
  touch-action: none; transition: opacity 0.25s var(--ease);
}
.board:focus-visible { outline: none; }
.stage.paused .board { opacity: 0; pointer-events: none; }
.blk, .cell { position: relative; display: block; width: var(--cs); height: var(--cs); border-radius: calc(var(--cs) * 0.2); }
.blk { background: linear-gradient(160deg, var(--blk-a), var(--blk-b)); box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08); }
/* a clue: the diagonal, the across sum above it (right), the down sum below it (left) */
.blk.clue::before { content: ""; position: absolute; inset: 0; border-radius: inherit; background: linear-gradient(to top right, transparent calc(50% - 0.7px), var(--blk-line) calc(50% - 0.3px) calc(50% + 0.3px), transparent calc(50% + 0.7px)); }
.ca, .cd { position: absolute; font-weight: 720; font-size: max(9px, calc(var(--cs) * 0.32)); line-height: 1; color: var(--blk-ink); font-variant-numeric: tabular-nums; letter-spacing: -0.02em; }
.ca { top: 9%; right: 9%; }
.cd { bottom: 9%; left: 9%; }
.blk.head { box-shadow: inset 0 0 0 calc(max(1.5px, var(--cs) * 0.05)) color-mix(in srgb, var(--accent) 70%, #fff 30%); }
:root[data-theme="dark"] .blk.head { box-shadow: inset 0 0 0 calc(max(1.5px, var(--cs) * 0.05)) var(--accent); }
.blk.over .ca, .blk.over .cd { color: #ff9c8a; text-decoration: underline; text-decoration-thickness: 1.5px; text-underline-offset: 2px; }
.blk.hhead { box-shadow: inset 0 0 0 calc(max(2px, var(--cs) * 0.08)) var(--sun-b); }

.cell { background: var(--tile); box-shadow: inset 0 calc(var(--cs) * -0.05) 0 var(--tile-edge); cursor: pointer; }
.dg { position: absolute; inset: 0; display: grid; place-items: center; font-weight: 700; font-size: calc(var(--cs) * 0.56); line-height: 1; color: var(--text); font-variant-numeric: tabular-nums; pointer-events: none; }
.dg.ghost { z-index: 1; }
.notes { position: absolute; inset: 7%; display: grid; grid-template-columns: repeat(3, 1fr); grid-template-rows: repeat(3, 1fr); pointer-events: none; }
.notes i { display: grid; place-items: center; font-style: normal; font-weight: 650; font-size: max(7px, calc(var(--cs) * 0.21)); line-height: 1; color: var(--muted); visibility: hidden; }
.notes i.on { visibility: visible; }
.cell.has .notes { display: none; }
.glow { position: absolute; inset: -8%; border-radius: inherit; background: radial-gradient(circle, var(--glow), transparent 68%); opacity: 0; pointer-events: none; }

/* the marks: the selected cell's runs, the same digit, a repeat, a sum passed, a mistake, a hint */
.cell::after, .cell::before { content: ""; position: absolute; inset: 0; border-radius: inherit; pointer-events: none; opacity: 0; transition: opacity 0.2s; }
.cell.run { background: color-mix(in srgb, var(--accent) 9%, var(--tile)); }
.cell.sel { background: color-mix(in srgb, var(--accent) 20%, var(--tile)); }
.cell.sel::before { opacity: 1; box-shadow: inset 0 0 0 calc(max(2px, var(--cs) * 0.075)) var(--accent); }
.cell.same .dg { color: var(--accent); }
.cell.same:not(.sel) { background: color-mix(in srgb, var(--sun-b) 16%, var(--tile)); }
.cell.bad .dg { color: var(--hot); }
.cell.bad::after { opacity: 1; box-shadow: inset 0 0 0 calc(max(2px, var(--cs) * 0.07)) var(--hot); background: var(--hot-soft); }
.cell.wrong::after { opacity: 1; background: linear-gradient(135deg, transparent 45%, var(--hot) 46% 54%, transparent 55%), var(--hot-soft); box-shadow: inset 0 0 0 calc(max(2px, var(--cs) * 0.07)) var(--hot); }
.cell.nope::after, .blk.nope::after { content: ""; position: absolute; inset: 0; border-radius: inherit; opacity: 1; box-shadow: inset 0 0 0 calc(max(2px, var(--cs) * 0.07)) var(--hot); transition: none; }
.cell.hrun { background: color-mix(in srgb, var(--sun-b) 14%, var(--tile)); }
.cell.why .dg { color: var(--sun-c); }
.cell.target::before { opacity: 1; box-shadow: inset 0 0 0 calc(max(2.5px, var(--cs) * 0.09)) var(--sun-b), 0 0 0 calc(var(--cs) * 0.06) color-mix(in srgb, var(--sun-b) 25%, transparent); animation: target 1.6s ease-in-out infinite; }
@keyframes target { 50% { opacity: 0.45; } }
.board.keys .cell.sel { outline: 2.5px solid var(--accent); outline-offset: 1.5px; z-index: 2; }

/* the combination helper: the selected cell's two runs and every combination of each */
.helper { display: flex; flex-direction: column; gap: 4px; padding: 2px 14px 4px; min-width: 0; min-height: 64px; }
.helper-none { margin: auto 0; font-size: 13.5px; color: var(--muted); text-align: center; }
.helper-row { display: flex; align-items: center; gap: 8px; min-height: 30px; min-width: 0; }
.helper-row.done { opacity: 0.55; }
.helper-sum { flex: none; display: inline-flex; align-items: baseline; gap: 2px; min-width: 62px; padding: 3px 8px; border-radius: 9px; background: linear-gradient(160deg, var(--blk-a), var(--blk-b)); color: var(--blk-ink); font-variant-numeric: tabular-nums; }
.helper-sum b { font-size: 15px; font-weight: 750; }
.helper-sum small { font-size: 12px; opacity: 0.78; }
.arrow { width: 11px; height: 11px; align-self: center; margin-right: 3px; flex: none;
  background: linear-gradient(currentColor, currentColor) 0 50% / 70% 1.6px no-repeat; position: relative; }
.arrow::after { content: ""; position: absolute; right: 0; top: 50%; width: 5px; height: 5px; border-top: 1.6px solid currentColor; border-right: 1.6px solid currentColor; transform: translate(-1px, -50%) rotate(45deg); }
.arrow.down { transform: rotate(90deg); }
.helper-combos { display: flex; gap: 6px; min-width: 0; overflow-x: auto; scrollbar-width: none; overscroll-behavior: contain; padding: 1px 0; }
.helper-combos::-webkit-scrollbar { display: none; }
.combo { flex: none; display: inline-flex; gap: 3px; padding: 3px 8px; border-radius: 9px; background: var(--surface); border: 1px solid var(--line); font-size: 14px; font-variant-numeric: tabular-nums; }
.combo b { font-weight: 600; color: var(--text); }
.combo b.in { color: var(--accent); font-weight: 800; }
.combo.out { opacity: 0.38; text-decoration: line-through; }

/* the digits */
.pad { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 6px; padding: 4px 14px; width: 100%; max-width: 560px; margin: 0 auto; }
.key {
  appearance: none; min-height: 46px; border-radius: 13px; border: 1px solid var(--line); background: var(--surface); color: var(--text);
  font-size: 21px; font-weight: 680; line-height: 1; font-variant-numeric: tabular-nums; cursor: pointer; display: grid; place-items: center;
  box-shadow: 0 1px 2px rgba(var(--shadow), 0.08); transition: transform 0.18s var(--spring), background 0.2s, opacity 0.2s, color 0.2s;
}
.key:active { transform: scale(0.94); }
.key.used { opacity: 0.45; }
.key[aria-pressed="true"] { background: var(--accent); color: var(--accent-ink); border-color: transparent; opacity: 1; }
.key.erase svg { width: 22px; height: 22px; }
.pad.notes .key:not(.erase) { font-size: 15px; font-weight: 600; color: var(--muted); background: color-mix(in srgb, var(--accent) 7%, var(--surface)); }
.pad.notes .key[aria-pressed="true"] { color: var(--accent-ink); background: var(--accent); }
#btn-notes[aria-pressed="true"] { color: var(--accent); background: var(--accent-soft); }
.no-helper .helper { display: none; }

/* over the board: laying out a new puzzle, the pause */
.gen { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); z-index: 5; padding: 12px 18px; border-radius: 16px; background: var(--surface); border: 1px solid var(--line); box-shadow: 0 16px 40px -18px rgba(var(--shadow), 0.5); pointer-events: none; animation: rise 0.3s var(--ease) both; }
.gen p { margin: 0; font-size: 14.5px; font-weight: 600; color: var(--muted); }
.paused { position: absolute; inset: 0; z-index: 6; display: grid; place-items: center; padding: 16px; }
.paused-card { display: flex; flex-direction: column; align-items: center; gap: 6px; padding: 22px 26px 20px; border-radius: 24px; background: var(--surface); border: 1px solid var(--line); box-shadow: 0 24px 60px -24px rgba(var(--shadow), 0.55); text-align: center; animation: rise 0.3s var(--ease) both; }
.paused-card h2 { margin: 0; font-size: 22px; letter-spacing: -0.015em; }
.paused-card p { margin: 0 0 10px; font-size: 14.5px; }

.hintbox {
  grid-row: 4 / 6; grid-column: 1; align-self: end; position: relative; z-index: 4; margin: 0 10px 4px; max-width: 540px; padding: 12px 14px; border-radius: 18px; justify-self: center; width: calc(100% - 20px);
  background: var(--surface); border: 1px solid var(--line); box-shadow: 0 12px 36px -12px rgba(var(--shadow), 0.5); animation: rise 0.3s var(--ease) both;
}
.hintbox p { margin: 0 0 10px; font-size: 14.5px; line-height: 1.42; }
.hint-btns { display: flex; justify-content: flex-end; gap: 8px; }
@keyframes rise { from { transform: translateY(14px); opacity: 0; } to { transform: none; opacity: 1; } }
.gen { animation-name: gen-in; }
@keyframes gen-in { from { opacity: 0; } to { opacity: 1; } }

.dock { display: flex; align-items: center; justify-content: space-between; gap: 4px; padding: 6px 10px 10px; width: 100%; max-width: 560px; margin: 0 auto; }
.dock-btn {
  appearance: none; border: 0; background: none; color: var(--text); cursor: pointer; min-width: 52px; min-height: 54px; padding: 4px 4px; border-radius: 15px;
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px; font-size: 12px; font-weight: 620; flex: 1 1 0; min-width: 0;
  transition: transform 0.2s var(--spring), background 0.2s, opacity 0.2s;
}
.dock-btn span { max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.dock-btn svg { width: 24px; height: 24px; }
.dock-btn.accent { color: var(--accent); }
.dock-btn:active { transform: scale(0.93); background: var(--accent-soft); }
.dock-btn:disabled { opacity: 0.36; cursor: default; }
@media (hover: hover) { .dock-btn:not(:disabled):hover { background: color-mix(in srgb, var(--text) 6%, transparent); } }

/* a wide window, or a phone on its side: the HUD and the dock stand beside the board */
@media (min-width: 760px) and (min-aspect-ratio: 11/10), (orientation: landscape) and (max-height: 540px) {
  .app { grid-template-columns: clamp(250px, calc(30vw / var(--ca-zoom, 1)), 360px) minmax(0, 1fr); grid-template-rows: auto auto minmax(0, 1fr) auto auto auto; }
  .top, .hud, .helper, .pad, .dock { grid-column: 1; }
  .helper { padding: 4px 14px; }
  .pad { grid-template-columns: repeat(3, minmax(0, 1fr)); padding: 4px 14px; max-width: none; }
  .key.erase { grid-column: 1 / -1; }
  .stage { grid-column: 2; grid-row: 1 / -1; }
  .hud { flex-wrap: wrap; align-content: flex-start; }
  .top .mode-line { display: none; }
  .hud .mode-line { display: -webkit-box; flex: 1 1 100%; padding: 0 2px; }
  .size-chip { flex: 1 1 100%; margin-right: 0; }
  .size-chip svg { margin-left: auto; }
  .time-chip { flex: 1 1 100%; }
  .dock { grid-row: 6; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 4px; max-width: none; padding: 6px 14px 14px; }
  .dock-btn { flex-direction: row; justify-content: flex-start; text-align: left; gap: 10px; padding: 0 12px; min-height: 48px; font-size: 14.5px; }
  .dock-btn.accent { grid-column: 1 / -1; order: -2; background: var(--accent-soft); }
  #btn-check { order: -1; grid-column: 1 / -1; }
  #btn-notes { order: -1; grid-column: 1 / -1; }
  .hintbox { margin: 0 14px 4px; width: calc(100% - 28px); }
}
@media (orientation: landscape) and (max-height: 540px) {
  .pad { grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 4px; }
  .key { min-height: 40px; font-size: 18px; }
  .key.erase { grid-column: auto; }
  .helper { min-height: 0; gap: 2px; padding-top: 0; padding-bottom: 0; }
  .helper-row { min-height: 26px; }
  .helper-none { display: none; }
  .hud { flex-wrap: nowrap; }
  .size-chip, .time-chip { flex: 1 1 auto; }
  #btn-notes { grid-column: auto; order: 0; }
  .top { min-height: 48px; padding-top: 6px; }
  .hud { padding-bottom: 2px; gap: 6px; }
  .chip { min-height: 44px; }
  .dock { padding-top: 2px; padding-bottom: 6px; }
  .dock { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .dock-btn { min-height: 44px; font-size: 13px; gap: 6px; padding: 0 8px; }
  .dock-btn.accent, #btn-check { grid-column: auto; order: 0; }
  .dock-btn svg { width: 21px; height: 21px; }
}
@media (max-width: 359px) {
  .top, .hud { padding-left: 10px; padding-right: 10px; }
  .chip { padding: 0 10px; font-size: 14px; }
  .dock { padding-left: 2px; padding-right: 2px; gap: 0; }
  .dock-btn { font-size: 11px; padding-left: 0; padding-right: 0; letter-spacing: -0.01em; }
}

/* ------------------------------------------------------- buttons and pieces */
.btn {
  appearance: none; display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 46px; padding: 0 18px; border-radius: 14px;
  border: 1px solid var(--line); background: var(--surface-2); color: var(--text); font-weight: 650; font-size: 15.5px; line-height: 1.2; cursor: pointer; text-align: center;
  transition: transform 0.2s var(--spring), opacity 0.2s, background 0.2s;
}
.btn:active { transform: scale(0.97); }
.btn:disabled { opacity: 0.5; cursor: default; }
.btn.primary { background: var(--accent); color: var(--accent-ink); border-color: transparent; }
.btn.small { min-height: 44px; padding: 0 14px; font-size: 14.5px; border-radius: 12px; }
.btn.wide { width: 100%; }
.btn.ghost, .btn.subtle { background: none; border-color: transparent; color: var(--accent); }
.btn svg { width: 19px; height: 19px; }
.stack { display: flex; flex-direction: column; gap: 8px; }
.muted { color: var(--muted); }
.small { font-size: 13.5px; }
.round {
  appearance: none; width: 44px; height: 44px; border-radius: 50%; border: 1px solid var(--line); background: var(--surface); color: var(--text);
  display: grid; place-items: center; cursor: pointer; transition: transform 0.2s var(--spring), opacity 0.2s;
}
.round:active { transform: scale(0.92); }

.backdrop { position: fixed; inset: 0; z-index: 40; background: var(--backdrop); opacity: 0; transition: opacity 0.25s; }
.backdrop.show { opacity: 1; }
.toast {
  position: fixed; left: 50%; top: calc(env(safe-area-inset-top) + 62px); z-index: 80; transform: translate(-50%, -14px); opacity: 0; pointer-events: none;
  max-width: calc(100vw / var(--ca-zoom, 1) - 28px); width: max-content; padding: 11px 16px; border-radius: 14px; background: var(--text); color: var(--bg); font-size: 14.5px; font-weight: 600;
  text-align: center; box-shadow: 0 10px 30px -10px rgba(var(--shadow), 0.6); transition: transform 0.3s var(--spring), opacity 0.2s;
}
.toast.show { transform: translate(-50%, 0); opacity: 1; }

/* ------------------------------------------------------------------- sheets */
.sheet {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 50; max-height: calc(88dvh / var(--ca-zoom, 1)); display: flex; flex-direction: column;
  background: var(--surface); color: var(--text); border-radius: 24px 24px 0 0; box-shadow: 0 -10px 50px -12px rgba(var(--shadow), 0.4);
  padding-bottom: env(safe-area-inset-bottom); transform: translateY(102%); transition: transform 0.36s var(--ease);
}
.sheet.show { transform: none; }
.sheet-head { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 12px 10px 4px 20px; flex: 0 0 auto; }
.sheet-head h2 { margin: 0; font-size: 20px; font-weight: 700; letter-spacing: -0.015em; }
.sheet-head .round { box-shadow: none; background: var(--surface-2); border-color: transparent; }
.sheet-tabs { flex: 0 0 auto; padding: 4px 14px 6px; }
.sheet-tabs:empty { display: none; }
.sheet-body { flex: 1 1 auto; min-height: 0; overflow-y: auto; overscroll-behavior: contain; padding: 6px 20px 22px; -webkit-overflow-scrolling: touch; }
.sheet-body h3 { font-size: 16px; font-weight: 700; margin: 20px 0 8px; letter-spacing: -0.01em; }
.sheet-body h3:first-child { margin-top: 6px; }
.sheet-body h4 { font-size: 12.5px; letter-spacing: 0.06em; text-transform: uppercase; color: var(--muted); margin: 14px 0 8px; font-weight: 650; }
.sheet-body h4:first-child { margin-top: 4px; }
.sheet-body p { margin: 0 0 10px; }
.prose p, .prose li { font-size: 15px; line-height: 1.5; }
.prose ul { margin: 0 0 10px; padding-left: 20px; }
.prose li { margin-bottom: 6px; }
.version { color: var(--muted); font-size: 13px; margin-top: 18px; }
.foot { margin-top: 14px !important; }
.best-line { margin: 12px 0 10px !important; text-align: center; font-variant-numeric: tabular-nums; }
@media (min-width: 640px) and (min-height: 460px) {
  .sheet {
    left: 50%; right: auto; bottom: auto; top: 50%; width: min(500px, calc(100vw / var(--ca-zoom, 1) - 40px)); border-radius: 24px; padding-bottom: 0;
    transform: translate(-50%, -46%) scale(0.98); opacity: 0; transition: transform 0.32s var(--ease), opacity 0.22s; max-height: min(calc(86dvh / var(--ca-zoom, 1)), 800px);
  }
  .sheet.show { transform: translate(-50%, -50%); opacity: 1; }
}

.tabs { display: flex; gap: 4px; padding: 4px; border-radius: 14px; background: var(--surface-2); overflow-x: auto; scrollbar-width: none; overscroll-behavior: contain; }
.tabs::-webkit-scrollbar { display: none; }
.tabs button {
  appearance: none; flex: 1 0 auto; min-height: 44px; padding: 0 12px; border: 0; border-radius: 11px; background: none; color: var(--muted); cursor: pointer;
  display: flex; align-items: center; justify-content: center; gap: 6px; font-size: 14.5px; font-weight: 650; white-space: nowrap; transition: background 0.2s, color 0.2s;
}
.tabs button svg { width: 18px; height: 18px; }
.tabs button[aria-selected="true"] { background: var(--surface); color: var(--text); box-shadow: 0 1px 4px rgba(var(--shadow), 0.14); }
.tabs.small { margin-bottom: 8px; flex-wrap: wrap; }
.tabs.small button { flex: 1 1 auto; font-size: 13.5px; padding: 0 10px; }

/* the size and level choice */
.pick { display: grid; gap: 6px; }
.pick-size { grid-template-columns: repeat(5, minmax(0, 1fr)); }
.pick-level { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.pick button {
  appearance: none; min-height: 56px; padding: 8px 6px; border-radius: 14px; border: 1.5px solid transparent; background: var(--surface-2); color: var(--text); cursor: pointer;
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px; min-width: 0; text-align: center; transition: border-color 0.2s, background 0.2s, transform 0.2s var(--spring);
}
.pick button:active { transform: scale(0.97); }
.pick button[aria-checked="true"] { border-color: var(--accent); background: var(--accent-soft); }
.pick button:disabled { opacity: 0.4; cursor: default; }
.pick button b { font-size: 14.5px; font-weight: 680; max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pick button small { font-size: 12px; line-height: 1.25; color: var(--muted); }
.pick-level button { align-items: flex-start; text-align: left; padding: 10px 12px; }
/* a size, drawn as a little board that grows with it: a checker of the two symbols' colours */
.mini-grid {
  --m: 8; width: calc(10px + var(--m) * 1.4px); height: calc(10px + var(--m) * 1.4px); border-radius: 6px; flex: none;
  background: conic-gradient(from 90deg, color-mix(in srgb, var(--sun-b) 75%, var(--surface)) 0 25%, color-mix(in srgb, var(--moon) 60%, var(--surface)) 0 50%, color-mix(in srgb, var(--sun-b) 75%, var(--surface)) 0 75%, color-mix(in srgb, var(--moon) 60%, var(--surface)) 0) 0 0 / 50% 50%;
  box-shadow: 0 0 0 1.5px var(--surface), 0 1px 3px rgba(var(--shadow), 0.25);
}
.pick-size button { justify-content: flex-end; min-height: 64px; }
.mini-grid.big { --m: 20; }
.dots { display: flex; gap: 3px; }
.dots b { width: 7px; height: 7px; border-radius: 50%; background: var(--line); }
.dots b.on { background: var(--accent); }
.daily-card { display: flex; flex-direction: column; gap: 10px; padding: 14px; border-radius: 18px; background: linear-gradient(140deg, color-mix(in srgb, var(--sun-b) 16%, transparent), transparent 70%), var(--surface-2); }
.daily-top { display: flex; align-items: center; gap: 12px; }
.size-text { flex: 1 1 auto; min-width: 0; display: flex; flex-direction: column; }
.size-text b { font-size: 15.5px; font-weight: 650; }
.size-text small { font-size: 13px; color: var(--muted); }
.daily-card p { margin: 0; font-size: 14.5px; }
.daily-card p.done { color: var(--accent); font-weight: 650; }
.tiles { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; margin: 10px 0 0; }
.tiles.two { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.tile { display: flex; flex-direction: column; justify-content: space-between; gap: 4px; padding: 10px 12px; border-radius: 14px; background: var(--surface-2); min-width: 0; }
.tile span { font-size: 12.5px; line-height: 1.25; color: var(--muted); }
.tile b { display: flex; align-items: center; gap: 4px; font-size: 20px; font-weight: 700; font-variant-numeric: tabular-nums; }
.tile b span { font-size: inherit; color: inherit; }
.tile b svg { width: 18px; height: 18px; color: var(--sun-c); }
@media (max-width: 359px) { .tiles { grid-template-columns: repeat(2, minmax(0, 1fr)); } .pick-size button b { font-size: 13px; } }
.board-host, .record-host { min-height: 56px; }

.row { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 10px 0; border-bottom: 1px solid var(--line); min-height: 56px; }
.row-text { display: flex; flex-direction: column; min-width: 0; }
.row-text b { font-size: 15.5px; font-weight: 600; }
.row-text small { font-size: 13px; color: var(--muted); }
.row.toggle { position: relative; cursor: pointer; }
.row.toggle input { position: absolute; opacity: 0; width: 52px; height: 32px; right: 0; margin: 0; cursor: pointer; }
.switch { flex: 0 0 auto; position: relative; width: 52px; height: 32px; border-radius: 16px; background: var(--surface-2); border: 1px solid var(--line); transition: background 0.25s; }
.switch::after { content: ""; position: absolute; top: 3px; left: 3px; width: 24px; height: 24px; border-radius: 50%; background: #fff; box-shadow: 0 1px 4px rgba(0, 0, 0, 0.3); transition: transform 0.3s var(--spring); }
.row.toggle input:checked ~ .switch { background: var(--accent); border-color: transparent; }
.row.toggle input:checked ~ .switch::after { transform: translateX(20px); }
.row.toggle input:focus-visible ~ .switch { outline: 2.5px solid var(--accent); outline-offset: 2px; }
.row.choice { flex-wrap: wrap; }
.seg { display: flex; gap: 2px; padding: 3px; border-radius: 12px; background: var(--surface-2); flex: 0 1 auto; flex-wrap: wrap; justify-content: flex-end; }
.seg button { appearance: none; border: 0; background: none; color: var(--muted); min-height: 38px; padding: 0 12px; border-radius: 9px; font-size: 14px; font-weight: 600; cursor: pointer; }
.seg button[aria-checked="true"] { background: var(--surface); color: var(--text); box-shadow: 0 1px 4px rgba(var(--shadow), 0.14); }
.select { font: inherit; font-size: 15px; color: var(--text); background: var(--surface-2); border: 1px solid var(--line); border-radius: 10px; padding: 8px 10px; min-height: 44px; }
#settings-body .btn.subtle { margin-top: 8px; padding: 0 4px; }

.table { display: flex; flex-direction: column; border-radius: 14px; background: var(--surface-2); padding: 4px 10px; overflow-x: auto; }
.tr { display: grid; grid-template-columns: minmax(0, 1.1fr) repeat(4, minmax(0, 1fr)); gap: 6px; align-items: center; min-height: 40px; font-size: 13.5px; font-variant-numeric: tabular-nums; border-bottom: 1px solid var(--line); }
.tr:last-child { border-bottom: 0; }
.tr > :nth-child(n + 2) { text-align: right; }
.tr.head { font-size: 11.5px; color: var(--muted); min-height: 30px; }
.tr.head > * { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.tr b { font-weight: 650; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; display: block; }
.tr .na { color: var(--muted); opacity: 0.6; }

/* the rules' little example board */
.rule { display: flex; gap: 14px; align-items: center; padding: 12px 14px; margin-bottom: 8px; border-radius: 14px; background: var(--surface-2); }
.rule ul { margin: 0; }
.example { --cs: 34px; flex: none; display: grid; grid-template-columns: repeat(3, var(--cs)); gap: 3px; padding: 5px; border-radius: 12px; background: var(--tray); }
.example .cell { cursor: default; }
@media (max-width: 420px) { .rule { flex-direction: column; align-items: flex-start; } }

/* ------------------------------------------------------- the end of a round */
.result {
  position: fixed; left: 50%; bottom: calc(env(safe-area-inset-bottom) + 14px); z-index: 30; width: min(400px, calc(100vw / var(--ca-zoom, 1) - 24px));
  max-height: calc(100dvh / var(--ca-zoom, 1) - 28px); overflow-y: auto; overscroll-behavior: contain;
  padding: 20px 18px 12px; border-radius: 26px; background: var(--surface); color: var(--text); text-align: center; border: 1px solid var(--line);
  box-shadow: 0 26px 70px -18px rgba(var(--shadow), 0.55); transform: translate(-50%, 34px) scale(0.95); opacity: 0; transition: transform 0.5s var(--spring), opacity 0.25s;
}
.result.show { transform: translate(-50%, 0); opacity: 1; }
.result h2 { margin: 0 0 4px; font-size: 25px; font-weight: 750; letter-spacing: -0.02em; color: var(--accent); }
.result p { margin: 0 0 12px; font-size: 14.5px; color: var(--muted); }
.result-stats { display: flex; justify-content: center; gap: 10px; margin-bottom: 12px; }
.result-stats > div { flex: 1 1 0; max-width: 150px; padding: 8px 10px; border-radius: 14px; background: var(--surface-2); display: flex; flex-direction: column; }
.result-stats > div.new { background: color-mix(in srgb, var(--sun-b) 20%, var(--surface-2)); }
.result-stats small { font-size: 12px; color: var(--muted); }
.result-stats b { font-size: 22px; font-weight: 700; font-variant-numeric: tabular-nums; }
.result .btn.ghost { min-height: 44px; }
@media (orientation: landscape) and (max-height: 540px) {
  .result { left: auto; right: calc(env(safe-area-inset-right) + 12px); bottom: 12px; width: min(340px, calc(52vw / var(--ca-zoom, 1))); padding: 12px 14px 8px; transform: translate(0, 30px) scale(0.96); }
  .result.show { transform: none; }
  .result h2 { font-size: 20px; }
  .result-stats { margin-bottom: 8px; }
  .result-stats b { font-size: 18px; }
  .result .stack { flex-direction: row; flex-wrap: wrap; }
  .result .stack .btn { flex: 1 1 40%; min-height: 44px; font-size: 14px; padding: 0 10px; }
}
.confirm {
  position: fixed; left: 50%; top: 50%; z-index: 60; width: min(360px, calc(100vw / var(--ca-zoom, 1) - 32px)); padding: 20px 18px 16px; border-radius: 22px;
  background: var(--surface); color: var(--text); box-shadow: 0 24px 70px -18px rgba(var(--shadow), 0.6); transform: translate(-50%, -46%) scale(0.96); opacity: 0;
  transition: transform 0.3s var(--spring), opacity 0.2s;
}
.confirm.show { transform: translate(-50%, -50%); opacity: 1; }
.confirm p { margin: 0 0 16px; font-size: 16px; line-height: 1.4; text-align: center; }
.confirm-btns { display: flex; gap: 8px; }
.confirm-btns .btn { flex: 1 1 0; }

/* a short phone upright: the digits and the dock a little lower, the board keeps the room */
@media (orientation: portrait) and (max-height: 700px) {
  .key { min-height: 42px; font-size: 19px; border-radius: 12px; }
  .pad { gap: 5px; padding-top: 2px; padding-bottom: 2px; }
  .helper { min-height: 58px; gap: 3px; }
  .helper-row { min-height: 27px; }
  .combo { padding: 2px 7px; font-size: 13.5px; }
  .dock-btn { min-height: 48px; }
  .hud { padding-bottom: 2px; }
  .chip { min-height: 42px; }
}
/* a phone on its side with little height: no helper, the dock as a row of icons */
@media (orientation: landscape) and (max-height: 420px) {
  .helper { display: none !important; }
  .size-chip small { display: none; }
  .dock { grid-template-columns: repeat(5, minmax(0, 1fr)); padding-bottom: 6px; }
  .dock-btn, .dock-btn.accent, #btn-check, #btn-notes { grid-column: auto; order: 0; justify-content: center; padding: 0; }
  .dock-btn span { display: none; }
  .hud { padding-top: 2px; }
}
@media (prefers-reduced-motion: reduce) { * { 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 ---- */
