:root {
  color-scheme: light dark;
  --bg: #f4efe4;
  --bg2: #ebe3d3;
  --surface: #fffdf8;
  --surface2: #f6f1e7;
  --text: #1d1a16;
  --muted: #645b4f;
  --line: rgba(60, 45, 25, 0.13);
  --accent: #1d6e54;
  --accent-text: #17654c;
  --accent-soft: rgba(29, 110, 84, 0.12);
  --ca-accent: #1d6e54; /* the accounts SDK's sheets and chip: white on it is 6:1 */
  --gold1: #ffcf6e;
  --gold2: #eda332;
  --gold-ink: #2b1700;
  --danger: #b4232f;
  --shadow: 0 18px 40px -22px rgba(40, 25, 5, 0.45);
  --radius: 18px;
  --font: -apple-system, BlinkMacSystemFont, "SF Pro Text", Inter, "Segoe UI", Roboto, sans-serif;
  --round: -apple-system, BlinkMacSystemFont, "SF Pro Rounded", "SF Pro Display", "Segoe UI", Roboto, sans-serif;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0f1512;
    --bg2: #151d19;
    --surface: #18211d;
    --surface2: #1f2a25;
    --text: #edf0ea;
    --muted: #a3ada5;
    --line: rgba(255, 255, 255, 0.1);
    --accent: #1d6e54;
    --accent-text: #6fd3ad;
    --accent-soft: rgba(111, 211, 173, 0.13);
    --shadow: 0 18px 40px -22px rgba(0, 0, 0, 0.8);
    --danger: #ff6b6b;
  }
}
* { 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%; background: var(--bg); }
body {
  margin: 0;
  height: calc(100dvh / var(--ca-zoom, 1));
  overflow: hidden;
  display: flex;
  flex-direction: column;
  background:
    radial-gradient(120% 80% at 50% -20%, rgba(255, 255, 255, 0.55), transparent 60%),
    var(--bg);
  color: var(--text);
  font: 16px/1.45 var(--font);
  -webkit-font-smoothing: antialiased;
  padding: env(safe-area-inset-top) env(safe-area-inset-right) 0 env(safe-area-inset-left);
  -webkit-user-select: none;
  user-select: none;
  -webkit-touch-callout: none;
  -webkit-tap-highlight-color: transparent;
}
@media (prefers-color-scheme: dark) {
  body { background: radial-gradient(120% 80% at 50% -20%, rgba(80, 140, 110, 0.12), transparent 60%), var(--bg); }
}
button { font: inherit; color: inherit; }
button, select, input { -webkit-tap-highlight-color: transparent; }
:focus-visible { outline: 3px solid var(--accent-text); outline-offset: 2px; }
svg { fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }

/* ---- the bar ---------------------------------------------------------------------------- */
/* the bar (App Standard §4.1): the SDK's brand at the left, the Dice / Timer switch in the middle, the
   SDK's tools and chip at the right. The switch stays in the page's middle while both sides fit: the
   left side is never narrower than the brand without its name (the 30 px mark, the divider, the 30 px
   icon: 89 px), the right one never narrower than the tools and the chip — the name goes first. */
.bar { flex: none; display: grid; grid-template-columns: minmax(89px, 1fr) auto minmax(max-content, 1fr); align-items: center; gap: 10px; padding: 8px 14px; min-height: 56px; }
.bar > .ca-end { justify-self: end; }
.tabs { justify-self: center; display: flex; padding: 3px; gap: 2px; border-radius: 999px; background: var(--bg2); box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.08); }
.tab {
  display: flex; align-items: center; gap: 6px; min-height: 40px; padding: 0 14px; border: 0; border-radius: 999px;
  background: transparent; color: var(--muted); font-weight: 620; font-size: 15px; cursor: pointer;
  transition: background-color 0.2s, color 0.2s;
}
.tab svg { width: 19px; height: 19px; }
.tab[aria-selected="true"] { background: var(--surface); color: var(--text); box-shadow: 0 2px 8px -3px rgba(0, 0, 0, 0.3); }
@media (max-width: 350px) { .tab { padding: 0 11px; } .tab svg { display: none; } }

main { flex: 1; min-height: 0; display: flex; }
.view { flex: 1; min-height: 0; min-width: 0; }
.view[hidden] { display: none; }

/* ---- the dice view ------------------------------------------------------------------------ */
.dice-view {
  display: grid;
  grid-template-rows: minmax(150px, 1fr) auto auto;
  gap: 10px;
  padding: 4px 12px calc(10px + env(safe-area-inset-bottom));
}
/* the recent rolls: only where there is room beside the tray */
.recent { display: none; }
@media (min-width: 760px) and (min-aspect-ratio: 5/4) {
  .dice-view { grid-template-columns: minmax(0, 1fr) minmax(340px, 400px); grid-template-rows: auto minmax(0, 1fr) auto; padding: 6px 18px 18px; column-gap: 18px; }
  .tray { grid-row: 1 / 4; }
  .result { grid-column: 2; }
  .recent { grid-column: 2; display: flex; flex-direction: column; min-height: 0; border-top: 1px solid var(--line); padding-top: 8px; }
  .controls { grid-column: 2; align-self: end; }
}
.recent-h { margin: 0 0 4px; font-size: 13px; font-weight: 650; color: var(--muted); letter-spacing: 0.02em; }
.recent .hist-list { overflow-y: auto; overscroll-behavior: contain; min-height: 0; flex: 1; mask-image: linear-gradient(#000 80%, transparent); -webkit-mask-image: linear-gradient(#000 80%, transparent); }
.hist-list.compact li { min-height: 44px; padding: 5px 0; }
.hist-list.compact .sum { font-size: 18px; }
@media (max-height: 520px) and (min-aspect-ratio: 1/1) {
  .dice-view { grid-template-columns: minmax(0, 1fr) minmax(300px, 46%); grid-template-rows: auto 1fr; column-gap: 12px; padding-bottom: calc(6px + env(safe-area-inset-bottom)); }
  .tray { grid-row: 1 / 3; }
  .result { grid-column: 2; }
  .controls { grid-column: 2; align-self: end; }
}

.tray {
  position: relative; min-height: 0; border-radius: 26px; overflow: hidden;
  background: radial-gradient(130% 100% at 50% 30%, #2f8565 0%, #1d5d46 55%, #123f30 100%);
  box-shadow: inset 0 0 0 1px rgba(0, 0, 0, 0.25), inset 0 10px 30px rgba(0, 0, 0, 0.35), inset 0 -2px 0 rgba(255, 255, 255, 0.06), 0 1px 0 rgba(255, 255, 255, 0.6), var(--shadow);
}
/* the felt's weave, the wood's grain, the slate's grit — background only, drawn once */
.tray::before { content: ""; position: absolute; inset: 0; pointer-events: none; opacity: 0.5;
  background: repeating-linear-gradient(45deg, rgba(255, 255, 255, 0.025) 0 2px, transparent 2px 4px), repeating-linear-gradient(-45deg, rgba(0, 0, 0, 0.05) 0 2px, transparent 2px 4px); }
.tray::after { content: ""; position: absolute; inset: 0; border-radius: inherit; pointer-events: none; box-shadow: inset 0 0 0 7px rgba(0, 0, 0, 0.12), inset 0 0 0 8px rgba(255, 255, 255, 0.05); }
.tray[data-tray="wood"] { background: linear-gradient(100deg, #6e4225 0%, #845030 22%, #6a3f22 40%, #8b5634 63%, #6f4224 82%, #7d4b2c 100%); }
.tray[data-tray="wood"]::before { opacity: 0.6; background: repeating-linear-gradient(92deg, rgba(0, 0, 0, 0.07) 0 1px, transparent 1px 9px), repeating-linear-gradient(88deg, rgba(255, 220, 170, 0.05) 0 2px, transparent 2px 23px); }
.tray[data-tray="slate"] { background: radial-gradient(130% 100% at 50% 30%, #4c5661 0%, #333b44 55%, #222830 100%); }
.tray[data-tray="slate"]::before { opacity: 0.55; background: repeating-radial-gradient(circle at 30% 40%, rgba(255, 255, 255, 0.025) 0 1px, transparent 1px 3px); }
.tray canvas { position: absolute; inset: 0; width: 100%; height: 100%; display: block; touch-action: none; cursor: pointer; }
.tray-hint { position: absolute; left: 0; right: 0; bottom: 14px; margin: 0; text-align: center; color: rgba(255, 255, 255, 0.82); font-size: 14px; font-weight: 560; pointer-events: none; text-shadow: 0 1px 2px rgba(0, 0, 0, 0.4); padding: 0 16px; transition: opacity 0.3s; }
.tray-hint.gone { opacity: 0; }
.deck-btn { position: absolute; top: 10px; right: 10px; display: flex; align-items: center; gap: 5px; min-height: 44px; min-width: 44px; padding: 0 12px; border-radius: 999px; border: 0; background: rgba(0, 0, 0, 0.32); color: #fff; font-weight: 650; font-size: 14px; cursor: pointer; font-variant-numeric: tabular-nums; }
.deck-btn svg { width: 20px; height: 20px; }
.deck-btn[hidden] { display: none; }

.result { display: flex; flex-direction: column; gap: 8px; min-width: 0; }
.result-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; min-height: 58px; }
.result-main { display: flex; align-items: baseline; gap: 12px; min-width: 0; flex: 1; }
.total { flex: none; font: 780 46px/1 var(--round); letter-spacing: -0.03em; font-variant-numeric: tabular-nums; min-width: 1ch; }
.total.empty { color: var(--muted); opacity: 0.6; }
.total.small-total { font-size: 28px; letter-spacing: -0.01em; }
.total.pop { animation: pop 0.42s cubic-bezier(0.2, 1.6, 0.4, 1); }
.total.gold { color: #b9790c; }
.total.red { color: var(--danger); }
@media (prefers-color-scheme: dark) { .total.gold { color: #f5c542; } }
@keyframes pop { 0% { transform: scale(0.6); opacity: 0.2; } 100% { transform: scale(1); opacity: 1; } }
.detail { color: var(--muted); font-size: 14px; line-height: 1.3; overflow: hidden; text-overflow: ellipsis; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
.chips { display: flex; gap: 6px; overflow-x: auto; overscroll-behavior: contain; scrollbar-width: none; min-height: 44px; padding: 1px 1px 2px; }
.chips::-webkit-scrollbar { display: none; }
.chips:empty { display: none; }
.chip {
  flex: none; position: relative; width: 44px; height: 44px; border-radius: 12px; border: 1px solid var(--line);
  background: var(--surface); padding: 0; cursor: pointer; display: grid; place-items: center; box-shadow: 0 1px 2px rgba(0, 0, 0, 0.06);
  transition: transform 0.15s, border-color 0.2s, background-color 0.2s;
}
.chip canvas { width: 36px; height: 36px; display: block; }
.chip[aria-pressed="true"] { border-color: var(--accent-text); background: var(--accent-soft); box-shadow: 0 0 0 2px var(--accent-text) inset; }
.chip[aria-pressed="true"]::after { content: ""; position: absolute; top: -4px; right: -4px; width: 16px; height: 16px; border-radius: 50%; background: var(--accent) url("/icons/lock.svg") center / 10px no-repeat; box-shadow: 0 0 0 2px var(--surface); }
.chip:active { transform: scale(0.94); }

.seg { display: inline-flex; padding: 3px; border-radius: 12px; background: var(--bg2); gap: 2px; flex: none; }
.seg button { min-height: 36px; padding: 0 12px; border: 0; border-radius: 9px; background: transparent; color: var(--muted); font-size: 14px; font-weight: 620; cursor: pointer; transition: background-color 0.2s, color 0.2s; white-space: nowrap; }
.seg button[aria-checked="true"] { background: var(--surface); color: var(--text); box-shadow: 0 1px 4px -1px rgba(0, 0, 0, 0.25); }
.view-seg button { min-height: 36px; padding: 0 10px; font-size: 13px; }

.controls { display: flex; flex-direction: column; gap: 8px; min-width: 0; }
.row-scroll { display: flex; gap: 6px; overflow-x: auto; overscroll-behavior: contain; scrollbar-width: none; align-items: center; min-width: 0; }
.row-scroll::-webkit-scrollbar { display: none; }
.sets-row { min-height: 40px; }
.sets-list { display: flex; gap: 6px; }
.pill { flex: none; min-height: 38px; padding: 0 14px; border-radius: 999px; border: 1px solid var(--line); background: var(--surface); font-size: 14px; font-weight: 600; cursor: pointer; white-space: nowrap; display: inline-flex; align-items: center; gap: 6px; transition: background-color 0.2s, border-color 0.2s; }
.pill small { color: var(--muted); font-weight: 560; }
.pill.on { border-color: var(--accent-text); background: var(--accent-soft); }
.pill-icon { padding: 0; width: 44px; min-height: 40px; justify-content: center; }
.pill-icon svg { width: 20px; height: 20px; }

.picker { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 6px; }
.die-btn {
  position: relative; aspect-ratio: 1; min-height: 44px; max-height: 64px; border-radius: 14px; border: 1px solid var(--line);
  background: linear-gradient(180deg, var(--surface), var(--surface2)); cursor: pointer; padding: 0; display: grid; place-items: center;
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.6) inset, 0 2px 5px -3px rgba(0, 0, 0, 0.3); transition: transform 0.12s;
}
.die-btn canvas { width: 82%; height: 82%; display: block; pointer-events: none; }
.die-btn:active { transform: scale(0.92); }
.die-btn .count { position: absolute; top: -5px; right: -5px; min-width: 20px; height: 20px; padding: 0 5px; border-radius: 10px; background: var(--accent); color: #fff; font-size: 12px; font-weight: 750; line-height: 20px; text-align: center; box-shadow: 0 0 0 2px var(--bg); font-variant-numeric: tabular-nums; }
.die-btn .count:empty { display: none; }
@media (max-height: 700px) and (max-aspect-ratio: 1/1) {
  .picker { display: flex; overflow-x: auto; overscroll-behavior: contain; scrollbar-width: none; padding-top: 6px; margin-top: -6px; }
  .picker::-webkit-scrollbar { display: none; }
  .die-btn { flex: none; width: 48px; height: 48px; }
}
/* a short phone upright (an iPhone SE, the feed's 4:5 frame): the tray keeps its room */
@media (max-height: 620px) and (max-aspect-ratio: 1/1) {
  .sets-row { display: none; }
  .result-head { min-height: 46px; }
  .total { font-size: 36px; }
  .dice-view { gap: 8px; }
}
@media (max-height: 520px) and (min-aspect-ratio: 1/1) {
  .bar { min-height: 48px; padding-top: 4px; padding-bottom: 4px; }
  .sets-row, .chips { display: none; }
  .tab { min-height: 36px; }
  .result-head { min-height: 40px; }
  .total { font-size: 32px; }
  .controls { gap: 6px; }
  .round-btn { width: 46px; height: 46px; }
  .roll-btn { height: 48px; }
  .chips { min-height: 40px; }
  .chip { width: 40px; height: 40px; }
  .chip canvas { width: 32px; height: 32px; }
  .picker { display: flex; overflow-x: auto; overscroll-behavior: contain; scrollbar-width: none; padding-top: 6px; margin-top: -6px; }
  .die-btn { flex: none; width: 46px; height: 46px; }
}

.pool-row { display: flex; align-items: center; gap: 8px; min-height: 44px; }
.pool { flex: 1; }
.group { flex: none; display: inline-flex; align-items: center; border-radius: 12px; background: var(--surface); border: 1px solid var(--line); overflow: hidden; }
.group b { padding: 0 2px; min-width: 42px; text-align: center; font: 700 14px/1 var(--round); font-variant-numeric: tabular-nums; white-space: nowrap; }
.mini { width: 40px; height: 42px; border: 0; background: transparent; font-size: 20px; font-weight: 600; color: var(--accent-text); cursor: pointer; display: grid; place-items: center; }
.mini:active { background: var(--accent-soft); }
.mod { flex: none; display: inline-flex; align-items: center; border-radius: 12px; background: var(--surface); border: 1px solid var(--line); }
.mod-val { min-width: 36px; text-align: center; font: 700 15px/1 var(--round); font-variant-numeric: tabular-nums; }

.actions { display: flex; align-items: center; gap: 10px; }
.round-btn { flex: none; width: 52px; height: 52px; border-radius: 50%; border: 1px solid var(--line); background: var(--surface); color: var(--text); display: grid; place-items: center; cursor: pointer; box-shadow: 0 2px 6px -4px rgba(0, 0, 0, 0.4); transition: transform 0.12s; }
.round-btn svg { width: 23px; height: 23px; }
.round-btn:active { transform: scale(0.93); }
.round-btn.accent { background: var(--accent); color: #fff; border-color: transparent; }
.roll-btn {
  flex: 1; height: 56px; border-radius: 999px; border: 0; cursor: pointer; position: relative; overflow: hidden;
  background: linear-gradient(180deg, var(--gold1), var(--gold2)); color: var(--gold-ink);
  font: 760 19px/1 var(--round); letter-spacing: 0.01em;
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.65) inset, 0 -3px 0 rgba(150, 80, 0, 0.25) inset, 0 10px 22px -12px rgba(190, 110, 10, 0.85);
  transition: transform 0.12s, filter 0.2s;
}
.roll-btn:active { transform: scale(0.97) translateY(1px); }
.roll-btn:disabled { filter: grayscale(0.7) opacity(0.55); cursor: default; }
.roll-btn::after { content: ""; position: absolute; inset: 0; background: linear-gradient(100deg, transparent 30%, rgba(255, 255, 255, 0.45) 50%, transparent 70%); transform: translateX(-120%); }
.roll-btn.shine::after { animation: shine 0.8s ease-out; }
@keyframes shine { to { transform: translateX(120%); } }

/* ---- the timer view ----------------------------------------------------------------------- */
.timer-view { display: flex; flex-direction: column; align-items: stretch; padding: 4px 14px calc(12px + env(safe-area-inset-bottom)); gap: 10px; }
.timer-seg { align-self: center; }
.glass-pane { flex: 1; min-height: 0; display: flex; flex-direction: column; align-items: center; gap: 8px; }
.glass-pane[hidden], .clock-pane[hidden] { display: none; }
.glass-stage { flex: 1; min-height: 120px; width: 100%; max-width: 520px; border: 0; background: transparent; padding: 0; cursor: pointer; position: relative; border-radius: 24px; transition: transform 0.75s cubic-bezier(0.5, 0, 0.2, 1); }
.glass-stage canvas { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }
.glass-stage.turning { transform: rotate(180deg); }
.glass-stage.snap { transition: none; }
.glass-stage.done { animation: glow 1.4s ease-in-out 3; }
@keyframes glow { 50% { filter: drop-shadow(0 0 22px rgba(240, 180, 70, 0.85)); } }
.glass-side { display: flex; flex-direction: column; align-items: center; gap: 8px; width: 100%; max-width: 520px; }
.glass-time { margin: 0; font: 760 54px/1 var(--round); letter-spacing: -0.02em; font-variant-numeric: tabular-nums; }
.glass-time.up { color: #b9790c; }
@media (prefers-color-scheme: dark) { .glass-time.up { color: #f5c542; } }
.glass-note { margin: 0; min-height: 20px; color: var(--muted); font-size: 14px; font-weight: 560; }
.presets { display: flex; flex-wrap: wrap; gap: 6px; justify-content: center; }
.presets .pill[aria-checked="true"] { border-color: var(--accent-text); background: var(--accent-soft); color: var(--text); }
.glass-actions { display: flex; align-items: center; gap: 12px; width: 100%; max-width: 420px; margin-top: 2px; }
@media (min-aspect-ratio: 1/1) and (min-width: 640px), (max-height: 560px) and (min-aspect-ratio: 1/1) {
  .glass-pane { flex-direction: row; justify-content: center; gap: 28px; }
  .glass-stage { flex: 1 1 0; max-width: 46%; height: 100%; }
  .glass-side { flex: 1 1 0; max-width: 420px; justify-content: center; }
}
@media (max-height: 600px) and (max-aspect-ratio: 1/1) { .glass-time { font-size: 42px; } .glass-note { min-height: 0; } }

.clock-pane { flex: 1; min-height: 0; display: flex; flex-direction: column; gap: 10px; }
.clock-grid { flex: 1; min-height: 0; display: grid; gap: 10px; grid-template-columns: 1fr; }
.clock-grid[data-n="2"] { grid-template-rows: 1fr 1fr; }
.clock-grid[data-n="3"] { grid-template-rows: repeat(3, 1fr); }
.clock-grid[data-n="4"] { grid-template-columns: 1fr 1fr; grid-template-rows: 1fr 1fr; }
.clock-grid[data-n="5"], .clock-grid[data-n="6"] { grid-template-columns: 1fr 1fr; grid-template-rows: repeat(3, 1fr); }
.clock-grid[data-n="5"] .tile:last-child { grid-column: 1 / 3; }
@media (min-aspect-ratio: 1/1) {
  .clock-grid[data-n="2"] { grid-template-columns: 1fr 1fr; grid-template-rows: 1fr; }
  .clock-grid[data-n="3"] { grid-template-columns: repeat(3, 1fr); grid-template-rows: 1fr; }
  .clock-grid[data-n="5"], .clock-grid[data-n="6"] { grid-template-columns: repeat(3, 1fr); grid-template-rows: 1fr 1fr; }
  .clock-grid[data-n="5"] .tile:last-child { grid-column: auto; }
}
.tile {
  --pc: #3e8ef7;
  position: relative; min-height: 0; border: 0; border-radius: 22px; cursor: pointer; padding: 10px; overflow: hidden;
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px;
  background: color-mix(in srgb, var(--pc) 15%, var(--surface)); color: var(--text);
  box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--pc) 35%, transparent);
  transition: background-color 0.25s, box-shadow 0.25s, transform 0.25s, color 0.25s;
}
.tile .inner { display: flex; flex-direction: column; align-items: center; gap: 2px; }
.clock-grid.facing .tile:first-child .inner { transform: rotate(180deg); }
@media (min-aspect-ratio: 1/1) {
  .clock-grid.facing .tile:first-child .inner { transform: rotate(90deg); }
  .clock-grid.facing .tile:last-child .inner { transform: rotate(-90deg); }
}
.tile .who { display: flex; align-items: center; gap: 7px; font-weight: 680; font-size: 16px; max-width: 100%; }
.tile .who i { width: 12px; height: 12px; border-radius: 50%; background: var(--pc); box-shadow: 0 0 0 2px rgba(255, 255, 255, 0.7); flex: none; }
.tile .who span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.tile .time { font: 780 clamp(34px, calc(11vmin / var(--ca-zoom, 1)), 104px)/1 var(--round); font-variant-numeric: tabular-nums; letter-spacing: -0.02em; }
.clock-grid[data-n="5"] .time, .clock-grid[data-n="6"] .time { font-size: clamp(28px, calc(8vmin / var(--ca-zoom, 1)), 80px); }
.tile .note { font-size: 13px; font-weight: 600; min-height: 18px; opacity: 0.85; }
.tile.active { background: var(--pc); color: #fff; box-shadow: 0 14px 34px -14px var(--pc), inset 0 0 0 2px rgba(255, 255, 255, 0.35); }
.tile.active .who i { background: #fff; }
.tile.active .time, .tile.active .who, .tile.active .note { text-shadow: 0 1px 2px rgba(0, 0, 0, 0.25); }
.tile.low .time { animation: beat 1s ease-in-out infinite; }
.tile.over .time { color: #fff; }
.tile.over:not(.active) .time { color: var(--danger); }
.tile.over.active { background: color-mix(in srgb, var(--pc) 55%, #b4232f); }
@keyframes beat { 50% { transform: scale(1.06); } }
.clock-bar { flex: none; display: flex; align-items: center; gap: 10px; }
.clock-info { flex: 1; min-width: 0; display: flex; flex-direction: column; align-items: center; text-align: center; }
.clock-round { font-weight: 700; font-size: 15px; }
.clock-hint { color: var(--muted); font-size: 13px; line-height: 1.25; }

/* ---- sheets ------------------------------------------------------------------------------- */
.sheet {
  border: 0; padding: 0; margin: auto auto 0; width: 100%; max-width: 560px; max-height: calc(88dvh / var(--ca-zoom, 1));
  border-radius: 24px 24px 0 0; background: var(--surface); color: var(--text); box-shadow: 0 -20px 60px -30px rgba(0, 0, 0, 0.55);
  display: none; flex-direction: column; overflow: hidden;
}
.sheet[open] { display: flex; animation: up 0.28s cubic-bezier(0.2, 0.9, 0.3, 1); }
@keyframes up { from { transform: translateY(40px); opacity: 0; } }
@media (min-width: 640px) and (min-height: 560px) {
  .sheet { margin: auto; border-radius: 24px; max-height: calc(82dvh / var(--ca-zoom, 1)); box-shadow: 0 30px 80px -30px rgba(0, 0, 0, 0.55); }
}
.small-sheet { max-width: 420px; }
.sheet::backdrop { background: rgba(12, 14, 12, 0.45); }
.sheet-head { flex: none; display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 16px 16px 10px 22px; border-bottom: 1px solid var(--line); }
.sheet-head h2 { margin: 0; font: 700 19px/1.2 var(--round); }
.x { width: 44px; height: 44px; border-radius: 50%; border: 0; background: var(--bg2); font-size: 24px; line-height: 1; cursor: pointer; color: var(--muted); flex: none; }
.sheet-body { flex: 1; min-height: 0; overflow-y: auto; overscroll-behavior: contain; padding: 8px 22px calc(22px + env(safe-area-inset-bottom)); }
.sheet h3 { margin: 18px 0 8px; font-size: 15px; font-weight: 700; }
.row { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 11px 0; border-bottom: 1px solid var(--line); min-height: 52px; }
.row.col { flex-direction: column; align-items: stretch; gap: 8px; }
.row > span { font-weight: 560; }
.row-text { display: flex; flex-direction: column; gap: 2px; }
.row-help { display: block; color: var(--muted); font-size: 13px; font-weight: 450; line-height: 1.3; }
select, input[type="text"], input:not([type]), input[type="number"] {
  font: inherit; color: var(--text); background: var(--bg2); border: 1px solid var(--line); border-radius: 11px; min-height: 44px; padding: 0 12px;
  -webkit-user-select: text; user-select: text;
}
.switch { appearance: none; -webkit-appearance: none; flex: none; width: 52px; height: 32px; border-radius: 16px; background: var(--bg2); border: 1px solid var(--line); position: relative; cursor: pointer; transition: background-color 0.2s; margin: 0; }
.switch::after { content: ""; position: absolute; top: 3px; left: 3px; width: 24px; height: 24px; border-radius: 50%; background: #fff; box-shadow: 0 2px 4px rgba(0, 0, 0, 0.3); transition: transform 0.2s; }
.switch:checked { background: var(--accent); border-color: transparent; }
.switch:checked::after { transform: translateX(20px); }
.swatches { display: flex; flex-wrap: wrap; gap: 8px; }
.swatch { width: 50px; height: 50px; border-radius: 14px; border: 2px solid transparent; background: var(--bg2); cursor: pointer; padding: 0; display: grid; place-items: center; }
.swatch canvas { width: 40px; height: 40px; }
.swatch[aria-checked="true"] { border-color: var(--accent-text); background: var(--accent-soft); }
.trays .swatch { width: auto; height: 44px; padding: 0 12px 0 6px; display: inline-flex; gap: 8px; font-size: 14px; font-weight: 600; }
.trays .swatch i { width: 30px; height: 30px; border-radius: 9px; background: radial-gradient(#2f8565, #123f30); }
.trays .swatch[data-tray="wood"] i { background: linear-gradient(100deg, #6e4225, #8b5634, #6f4224); }
.trays .swatch[data-tray="slate"] i { background: radial-gradient(#4c5661, #222830); }
.btn { min-height: 46px; padding: 0 20px; border-radius: 14px; border: 0; background: var(--accent); color: #fff; font-weight: 650; cursor: pointer; margin-top: 16px; }
.btn.ghost-btn { background: var(--bg2); color: var(--text); }
.btn.danger { background: var(--danger); color: #fff; }
@media (prefers-color-scheme: dark) { .btn.danger { color: #1a0505; } }
.version { color: var(--muted); font-size: 13px; margin: 14px 0 0; }
.prose p { -webkit-user-select: text; user-select: text; margin: 10px 0; line-height: 1.5; }
.prose .keys { color: var(--muted); font-size: 14px; }
.muted { color: var(--muted); }
.small { font-size: 13px; }

.field { display: flex; flex-direction: column; gap: 5px; flex: 1; min-width: 0; font-size: 13px; font-weight: 600; color: var(--muted); }
.field input { width: 100%; font-size: 16px; font-weight: 500; }
.save-set { padding-top: 8px; }
.save-line { display: flex; gap: 10px; align-items: flex-end; }
.save-line .btn { margin: 0; }
.save-what { margin: 6px 0 10px; font: 700 16px/1.3 var(--round); }
.set-list, .hist-list { list-style: none; margin: 0; padding: 0; }
.set-list li, .hist-list li { display: flex; align-items: center; gap: 10px; padding: 9px 0; border-bottom: 1px solid var(--line); min-height: 56px; }
.set-list .what, .hist-list .what { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.set-list .what b, .hist-list .what b { font-weight: 650; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.set-list .what small, .hist-list .what small { color: var(--muted); font-size: 13px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.set-list .empty, .hist-list .empty { color: var(--muted); font-size: 14px; min-height: 0; border: 0; }
.hist-list .sum { font: 760 22px/1 var(--round); font-variant-numeric: tabular-nums; min-width: 44px; text-align: right; }
.icon-btn { width: 44px; height: 44px; border-radius: 12px; border: 1px solid var(--line); background: var(--bg2); cursor: pointer; display: grid; place-items: center; flex: none; color: var(--text); }
.icon-btn svg { width: 20px; height: 20px; }
.use-btn { min-height: 40px; padding: 0 14px; border-radius: 11px; border: 0; background: var(--accent-soft); color: var(--accent-text); font-weight: 650; cursor: pointer; flex: none; }

.figures { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; margin: 10px 0 0; }
.figures div { background: var(--bg2); border-radius: 14px; padding: 10px 12px; }
.figures dt { color: var(--muted); font-size: 13px; font-weight: 560; }
.figures dd { margin: 2px 0 0; font: 760 24px/1.1 var(--round); font-variant-numeric: tabular-nums; }
.stat-types { padding: 2px 0 8px; }
.histo { display: flex; align-items: flex-end; gap: 3px; height: 150px; padding: 8px 4px 22px; position: relative; background: var(--bg2); border-radius: 14px; }
.histo .bar-col { flex: 1; min-width: 0; height: 100%; display: flex; flex-direction: column; justify-content: flex-end; align-items: center; position: relative; }
.histo .bar-col i { display: block; width: 100%; max-width: 34px; border-radius: 5px 5px 2px 2px; background: linear-gradient(180deg, var(--gold1), var(--gold2)); height: calc(var(--h) * 1%); min-height: 2px; transform-origin: bottom; animation: grow 0.5s cubic-bezier(0.2, 0.9, 0.3, 1); }
.histo .bar-col span { position: absolute; bottom: -19px; font-size: 11px; color: var(--muted); font-variant-numeric: tabular-nums; white-space: nowrap; }
.histo .even { position: absolute; left: 4px; right: 4px; border-top: 2px dashed var(--accent-text); opacity: 0.7; bottom: calc(22px + (100% - 30px) * var(--e) / 100); pointer-events: none; }
.histo .none { margin: auto; color: var(--muted); font-size: 14px; align-self: center; text-align: center; padding: 0 12px; }
@keyframes grow { from { transform: scaleY(0); } }

.players { display: flex; flex-direction: column; gap: 8px; padding: 10px 0; border-bottom: 1px solid var(--line); }
.player-edit { display: flex; align-items: center; gap: 8px; }
.player-edit input { flex: 1; min-width: 0; }
.player-edit .dot { width: 44px; height: 44px; border-radius: 12px; border: 0; background: var(--pc); cursor: pointer; flex: none; box-shadow: inset 0 0 0 2px rgba(255, 255, 255, 0.4); color: #fff; font-weight: 750; }
.wide-seg { display: flex; width: 100%; }
.wide-seg button { flex: 1; }
.spin-pair { display: flex; align-items: flex-end; gap: 8px; }
.spin-pair input { text-align: center; font: 700 26px/1 var(--round); min-height: 56px; }
.colon { font: 700 28px/56px var(--round); }
.confirm-q { font-size: 17px; font-weight: 600; margin: 14px 0 4px; line-height: 1.4; }
.confirm-row { display: flex; gap: 10px; }
.confirm-row .btn { flex: 1; }

.toast {
  position: fixed; left: 50%; bottom: calc(96px + env(safe-area-inset-bottom)); z-index: 5; transform: translate(-50%, 12px); opacity: 0; pointer-events: none;
  background: rgba(25, 25, 22, 0.92); color: #fff; padding: 10px 16px; border-radius: 14px; font-size: 15px; font-weight: 600; box-shadow: 0 10px 30px -12px rgba(0, 0, 0, 0.6);
  transition: opacity 0.25s, transform 0.25s; display: flex; align-items: center; gap: 12px; max-width: calc(100% - 32px);
}
.toast.on { opacity: 1; transform: translate(-50%, 0); pointer-events: auto; }
.toast button { border: 0; background: transparent; color: #ffd27a; font-weight: 700; min-height: 36px; cursor: pointer; padding: 0 4px; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition-duration: 0.01ms !important; animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; }
  .glass-stage { transition: none; }
}

/* 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 ---- */
