/* Billiards — the room around the table. The table is a canvas (render.js); the plates, the
   cue's controls, the face-to-face seats, the cards and the sheets are DOM on top. Light and
   dark follow the system. */

:root {
  --round: "SF Pro Rounded", ui-rounded, "Nunito", "Arial Rounded MT Bold", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --sans: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --ease: cubic-bezier(0.4, 0.1, 0.2, 1);
  --spring: cubic-bezier(0.25, 0.85, 0.3, 1.15);
  --flip: 0rad;
  --face-rot: 0rad;
  --face-base: 0rad;
  color-scheme: light;
  --bg-a: #f1ebe0;
  --bg-b: #d9cdb9;
  --ink: #241c14;
  --ink-soft: #5d5144;
  --paper: #fffcf6;
  --paper-2: #f2ece1;
  --glass: rgba(255, 251, 244, 0.88);
  --line: rgba(60, 40, 20, 0.14);
  --accent: #1d7a46;
  --accent-ink: #176238;
  --accent-soft: rgba(29, 122, 70, 0.2);
  --gold: #b8862b;
  --btn-bg: rgba(255, 255, 255, 0.7);
  --btn-hover: rgba(255, 255, 255, 0.96);
  --btn-line: rgba(60, 40, 20, 0.16);
  --primary-a: #26904f;
  --primary-b: #186b3a;
  --primary-line: #135a30;
  --primary-ink: #ffffff;
  --danger-a: #d8553e;
  --danger-b: #b13a22;
  --backdrop: rgba(30, 20, 10, 0.42);
  --toast: rgba(30, 24, 18, 0.93);
  --scrim-top: rgba(241, 235, 224, 0.92);
  --scrim-bottom: rgba(217, 205, 185, 0.62);
  --p0: #d8a01c;
  --p1: #2f6fd0;
  --ca-accent: #1d7a46; /* the accounts SDK's sheets and chip */
}
@media (prefers-color-scheme: dark) {
  :root {
    color-scheme: dark;
    --bg-a: #15201b;
    --bg-b: #070b09;
    --ink: #efe9df;
    --ink-soft: rgba(239, 233, 223, 0.7);
    --paper: #18211d;
    --paper-2: #222d28;
    --glass: rgba(20, 28, 24, 0.86);
    --line: rgba(220, 235, 220, 0.14);
    --accent: #5fcf8a;
    --accent-ink: #7fe0a3;
    --accent-soft: rgba(95, 207, 138, 0.2);
    --gold: #e7b95a;
    --btn-bg: rgba(255, 255, 255, 0.07);
    --btn-hover: rgba(255, 255, 255, 0.13);
    --btn-line: rgba(220, 235, 220, 0.18);
    --primary-a: #2f9a5a;
    --primary-b: #1f7442;
    --primary-line: #175c33;
    --backdrop: rgba(0, 4, 2, 0.6);
    --toast: rgba(36, 48, 42, 0.96);
    --scrim-top: rgba(10, 16, 13, 0.9);
    --scrim-bottom: rgba(6, 10, 8, 0.6);
    --p0: #f0bd45;
    --p1: #6aa2f5;
    --ca-accent: #5fcf8a;
  }
}

* { 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 our strict CSP */
:where(html, body, body *) { touch-action: manipulation; }
[hidden] { display: none !important; }

html, body {
  height: 100%;
  margin: 0;
  overflow: hidden;
  overscroll-behavior: none;
}
body {
  font-family: var(--sans);
  color: var(--ink);
  background: radial-gradient(120% 90% at 50% 40%, var(--bg-a), var(--bg-b)) fixed;
  -webkit-user-select: none;
  user-select: none;
  -webkit-tap-highlight-color: transparent;
  -webkit-touch-callout: none;
  -webkit-text-size-adjust: 100%;
}
button { font: inherit; color: inherit; touch-action: pan-x pan-y; }
:focus-visible { outline: 2.5px solid var(--accent); outline-offset: 2px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap; }
.muted { color: var(--ink-soft); }
.center { text-align: center; }
canvas.bicon { width: var(--s); height: var(--s); display: block; flex: 0 0 auto; }

/* --------------------------------------------------------------- stage */
.stage {
  position: fixed;
  inset: 0;
  z-index: 1;
  touch-action: none;
  padding: env(safe-area-inset-top) env(safe-area-inset-right) env(safe-area-inset-bottom) env(safe-area-inset-left);
}
.stage canvas { position: absolute; inset: 0; width: 100%; height: 100%; display: block; touch-action: none; }

/* ----------------------------------------------------------------- HUD */
.hud { position: fixed; inset: 0; z-index: 3; pointer-events: none; }
.hud-bar {
  position: absolute;
  left: 0;
  right: 0;
  top: 0;
  display: flex;
  align-items: flex-start;
  gap: 6px;
  padding: calc(env(safe-area-inset-top) + 6px) calc(env(safe-area-inset-right) + 6px) 4px calc(env(safe-area-inset-left) + 6px);
  pointer-events: none;
}
.hud-bar > * { pointer-events: auto; }
.glassy {
  background: var(--glass);
  border: 1px solid var(--line);
  box-shadow: 0 4px 14px -8px rgba(0, 0, 0, 0.5);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
}
.plates { flex: 1 1 auto; min-width: 0; display: flex; gap: 6px; justify-content: center; margin-top: 4px; }
.plate {
  position: relative;
  flex: 1 1 0;
  min-width: 0;
  max-width: 300px;
  display: grid;
  grid-template-columns: auto 1fr;
  grid-template-areas: "em txt" "tray tray";
  align-items: center;
  column-gap: 7px;
  row-gap: 3px;
  padding: 5px 9px 6px 6px;
  border-radius: 16px;
  background: var(--glass);
  border: 1.5px solid var(--line);
  box-shadow: 0 4px 14px -8px rgba(0, 0, 0, 0.5);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  opacity: 0.8;
  transition: border-color 0.3s, box-shadow 0.3s, opacity 0.3s, transform 0.3s var(--spring);
}
.plate.p0 { --pc: var(--p0); }
.plate.p1 { --pc: var(--p1); }
.plate.active {
  opacity: 1;
  border-color: var(--pc);
  box-shadow: 0 0 0 3px color-mix(in oklab, var(--pc) 32%, transparent), 0 6px 18px -6px color-mix(in oklab, var(--pc) 60%, black);
  transform: translateY(1px);
}
.pemblem { grid-area: em; display: grid; place-items: center; width: 26px; height: 26px; }
.open-emblem { display: flex; }
.open-emblem canvas + canvas { margin-left: -6px; }
.pt { grid-area: txt; display: flex; flex-direction: column; min-width: 0; line-height: 1.15; }
.pt b { font: 700 14px var(--round); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pt small { font-size: 11.5px; color: var(--ink-soft); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; font-variant-numeric: tabular-nums; }
.badges { position: absolute; top: -9px; right: 8px; display: flex; gap: 3px; pointer-events: none; }
.visits { font: 800 10.5px/1 var(--round); letter-spacing: 0.02em; padding: 3px 7px; border-radius: 999px; background: var(--pc); color: #1b130a; white-space: nowrap; box-shadow: 0 2px 6px -2px rgba(0, 0, 0, 0.5); }
.visits.hand { background: var(--paper); color: var(--ink); box-shadow: inset 0 0 0 1px var(--line), 0 2px 6px -2px rgba(0, 0, 0, 0.5); }
.tray { grid-area: tray; display: flex; gap: 2px; justify-content: flex-start; padding-left: 1px; }
@media (max-width: 420px) {
  .plate { padding: 4px 7px 5px 5px; column-gap: 5px; border-radius: 14px; }
  .pt b { font-size: 13px; }
  .pt small { font-size: 10.5px; }
  .tray { gap: 1px; }
}
@media (max-width: 360px) {
  .tray canvas { --s: 10px !important; }
}

.icon-btn {
  appearance: none;
  border: 0;
  background: transparent;
  color: var(--ink);
  width: 44px;
  height: 44px;
  flex: 0 0 auto;
  border-radius: 50%;
  display: grid;
  place-items: center;
  cursor: pointer;
  transition: background 0.2s, transform 0.15s;
}
.icon-btn:hover { background: var(--btn-bg); }
.icon-btn:active { transform: scale(0.92); }
.icon-btn svg, .btn svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }

/* ----------------------------------------------- the cue's controls */
.controls {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 3;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 6px calc(env(safe-area-inset-right) + 8px) calc(env(safe-area-inset-bottom) + 8px) calc(env(safe-area-inset-left) + 8px);
  pointer-events: none;
  transition: opacity 0.3s;
}
.controls > * { pointer-events: auto; }
.controls.off { opacity: 0.45; }
.controls.off > * { pointer-events: none; }
.spin-btn {
  appearance: none;
  flex: 0 0 auto;
  width: 54px;
  height: 54px;
  border-radius: 50%;
  padding: 3px;
  display: grid;
  place-items: center;
  cursor: pointer;
  transition: transform 0.15s;
}
.spin-btn:active { transform: scale(0.94); }
.spin-btn canvas { width: 46px; height: 46px; display: block; }
.power {
  --p: 0;
  position: relative;
  flex: 1 1 auto;
  max-width: 520px;
  margin: 0 auto;
  height: 54px;
  border-radius: 27px;
  padding: 9px 12px;
  display: flex;
  align-items: center;
  cursor: grab;
  touch-action: none;
}
.power-track {
  position: relative;
  flex: 1;
  height: 100%;
  border-radius: 999px;
  background: linear-gradient(90deg, rgba(0, 0, 0, 0.1), rgba(0, 0, 0, 0.18));
  box-shadow: inset 0 1px 3px rgba(0, 0, 0, 0.35);
  overflow: hidden;
}
.power-fill {
  position: absolute;
  inset: 0;
  transform-origin: 0 50%;
  transform: scaleX(var(--p));
  background: linear-gradient(90deg, #3fae5e, #c6d23a 45%, #f0a12a 70%, #e0472e);
  background-size: calc(100% / max(var(--p), 0.02)) 100%;
  border-radius: 999px;
}
.power-ticks { position: absolute; inset: 0; background: repeating-linear-gradient(90deg, transparent 0 calc(10% - 1px), rgba(255, 255, 255, 0.35) calc(10% - 1px) 10%); mix-blend-mode: overlay; }
.power-text { position: absolute; inset: 0; display: grid; place-items: center; font: 800 14px var(--round); color: var(--ink); letter-spacing: 0.02em; text-shadow: 0 1px 0 rgba(255, 255, 255, 0.35); pointer-events: none; font-variant-numeric: tabular-nums; }
@media (prefers-color-scheme: dark) { .power-text { text-shadow: 0 1px 2px rgba(0, 0, 0, 0.6); } }

/* sideways: the power bar stands up on the right, the spin under it */
body.land:not(.face) .controls {
  left: auto;
  top: 0;
  width: calc(76px + env(safe-area-inset-right));
  flex-direction: column-reverse;
  justify-content: center;
  padding: calc(env(safe-area-inset-top) + 58px) calc(env(safe-area-inset-right) + 8px) calc(env(safe-area-inset-bottom) + 10px) 8px;
}
body.land:not(.face) .power { flex: 1 1 auto; width: 58px; height: auto; max-height: 360px; max-width: none; margin: 0; padding: 12px 9px; }
body.land:not(.face) .power-track { width: 100%; height: 100%; background: linear-gradient(0deg, rgba(0, 0, 0, 0.1), rgba(0, 0, 0, 0.18)); }
body.land:not(.face) .power-fill { transform-origin: 50% 100%; transform: scaleY(var(--p)); background: linear-gradient(0deg, #3fae5e, #c6d23a 45%, #f0a12a 70%, #e0472e); background-size: 100% calc(100% / max(var(--p), 0.02)); background-position: bottom; }
body.land:not(.face) .power-ticks { background: repeating-linear-gradient(0deg, transparent 0 calc(10% - 1px), rgba(255, 255, 255, 0.35) calc(10% - 1px) 10%); }
body.land:not(.face) .power-text { writing-mode: vertical-rl; transform: rotate(180deg); font-size: 13px; }

/* -------------------------------------------- face to face: the seats */
.seats { position: fixed; left: 0; top: 0; width: calc(100vw / var(--ca-zoom, 1)); height: calc(100dvh / var(--ca-zoom, 1)); z-index: 3; pointer-events: none; }
.seats.turned { left: 50%; top: 50%; width: calc(100dvh / var(--ca-zoom, 1)); height: calc(100vw / var(--ca-zoom, 1)); transform: translate(-50%, -50%) rotate(90deg); }
.seat {
  position: absolute;
  left: 50%;
  width: min(100% - 16px, 560px);
  display: flex;
  flex-direction: column;
  gap: 6px;
  pointer-events: auto;
}
.seat.near { bottom: calc(env(safe-area-inset-bottom) + 6px); transform: translateX(-50%); }
.seat.far { top: calc(env(safe-area-inset-top) + 6px); transform: translateX(-50%) rotate(180deg); }
.seats.turned .seat.near { bottom: 6px; }
.seats.turned .seat.far { top: 6px; }
.seat-row { display: flex; gap: 6px; align-items: center; }
.seat-row .plate { max-width: none; }
.seat-tools { display: flex; }
.seat-tools .icon-btn { background: var(--glass); border: 1px solid var(--line); }
.controls.in-seat { position: static; padding: 0; width: 100%; }

/* -------------------------------------------------- cards in the middle */
.upright { position: fixed; inset: 0; z-index: 4; display: grid; place-items: center; pointer-events: none; padding: 16px; }
body.face .upright { transform: rotate(var(--face-rot)); }
.upright > * { grid-area: 1 / 1; }
.pop-label { display: flex; flex-direction: column; align-items: center; text-align: center; animation: popin 2.5s var(--spring) both; transform-origin: 50% 60%; max-width: min(calc(92vw / var(--ca-zoom, 1)), 520px); }
.pop-label b { font: 900 34px/1.05 var(--round); color: #fff; letter-spacing: 0.01em; text-shadow: 0 2px 0 rgba(0, 0, 0, 0.25), 0 6px 22px rgba(0, 0, 0, 0.5); }
.pop-label small { margin-top: 8px; padding: 4px 13px; border-radius: 999px; background: rgba(0, 0, 0, 0.55); color: #fff; font: 700 13.5px var(--round); }
.pop-label.good b { color: #ffe08a; }
.pop-label.bad b { color: #ffb4a6; }
@keyframes popin {
  0% { opacity: 0; transform: scale(0.5) translateY(14px); }
  12% { opacity: 1; transform: scale(1.08); }
  22% { transform: scale(1); }
  82% { opacity: 1; transform: scale(1); }
  100% { opacity: 0; transform: translateY(-22px) scale(0.97); }
}
.handover {
  pointer-events: auto;
  width: min(100%, 360px);
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 22px 22px 18px;
  border-radius: 26px;
  background: var(--glass);
  border: 1.5px solid color-mix(in oklab, var(--pc, var(--accent)) 45%, var(--line));
  box-shadow: 0 0 0 4px color-mix(in oklab, var(--pc, var(--accent)) 18%, transparent), 0 26px 60px -22px rgba(0, 0, 0, 0.6);
  -webkit-backdrop-filter: blur(16px) saturate(1.1);
  backdrop-filter: blur(16px) saturate(1.1);
  animation: cardin 0.45s var(--spring) both;
}
.handover.p0 { --pc: var(--p0); }
.handover.p1 { --pc: var(--p1); }
.handover.out { animation: cardout 0.22s var(--ease) both; }
.handover .big-ball { margin: 2px 0 10px; animation: bob 2.6s ease-in-out infinite; filter: drop-shadow(0 10px 10px rgba(0, 0, 0, 0.3)); }
.handover h2 { margin: 0; font: 800 24px/1.15 var(--round); }
.handover p { margin: 6px 0 0; font-size: 14px; color: var(--ink-soft); }
.handover .note.strong { color: var(--ink); font-weight: 700; }
.handover .btn { margin-top: 16px; width: 100%; min-height: 52px; font: 700 17px var(--round); flex: none; }
.handover .note { font-size: 12.5px; margin-top: 8px; }
@keyframes cardin { from { opacity: 0; transform: translateY(24px) scale(0.92); } }
@keyframes cardout { to { opacity: 0; transform: scale(0.96); } }
@keyframes bob { 50% { transform: translateY(-6px); } }

/* ---------------------------------------------------------------- menu */
.menu {
  position: fixed;
  inset: 0;
  z-index: 5;
  display: flex;
  flex-direction: column;
  overflow-y: auto;
  overscroll-behavior: contain;
  padding: env(safe-area-inset-top) env(safe-area-inset-right) env(safe-area-inset-bottom) env(safe-area-inset-left);
  background: linear-gradient(180deg, var(--scrim-top) 0, transparent 16%, transparent 34%, var(--scrim-bottom) 100%);
  animation: fade 0.35s var(--ease);
  touch-action: pan-y;
}
@keyframes fade { from { opacity: 0; } }
.top { display: flex; align-items: center; justify-content: space-between; gap: 10px; width: 100%; max-width: 720px; margin: 0 auto; padding: 10px 10px 4px 16px; flex: 0 0 auto; }

.card {
  width: min(100% - 20px, 560px);
  margin: auto auto 12px;
  padding: 14px 14px 10px;
  background: var(--glass);
  border: 1px solid var(--line);
  border-radius: 26px;
  box-shadow: 0 24px 60px -24px rgba(0, 0, 0, 0.5);
  -webkit-backdrop-filter: blur(18px) saturate(1.2);
  backdrop-filter: blur(18px) saturate(1.2);
  animation: rise 0.45s var(--ease);
}
.card .label, .opt-row h3 { margin: 0 0 7px 2px; font: 700 11px var(--sans); letter-spacing: 0.1em; text-transform: uppercase; color: var(--ink-soft); }
.resume { display: flex; align-items: center; gap: 10px; padding: 8px 8px 8px 14px; margin-bottom: 12px; border-radius: 16px; background: var(--accent-soft); }
.resume span { flex: 1; display: flex; flex-direction: column; line-height: 1.2; min-width: 0; }
.resume b { font: 700 15px var(--round); }
.resume small { font-size: 12.5px; color: var(--ink-soft); }
.resume .btn { flex: 0 0 auto; }

.modes { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; }
.mode {
  appearance: none;
  display: grid;
  justify-items: center;
  text-align: center;
  gap: 1px;
  padding: 8px 6px 9px;
  min-height: 64px;
  border-radius: 16px;
  border: 1.5px solid var(--line);
  background: var(--paper-2);
  cursor: pointer;
  transition: border-color 0.2s, background 0.2s, box-shadow 0.2s, transform 0.15s;
}
.mode svg { width: 28px; height: 28px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linejoin: round; stroke-linecap: round; color: var(--accent); }
.mode b { font: 700 14.5px var(--round); }
.mode small { font-size: 11.5px; color: var(--ink-soft); line-height: 1.2; }
.mode:active { transform: scale(0.98); }
.mode[aria-checked="true"] { border-color: var(--accent); background: var(--paper); box-shadow: 0 0 0 3px var(--accent-soft); }

.opts-grid { display: grid; gap: 8px; margin: 12px 0 2px; }
.opts-grid:not(:has(.opt-row:not([hidden]))) { display: none; }
.opt-row { display: grid; grid-template-columns: 92px 1fr; align-items: center; gap: 8px; }
.opt-row h3 { margin: 0; }
.opts { display: flex; flex-wrap: wrap; gap: 6px; }
.opt {
  appearance: none;
  border: 1.5px solid var(--line);
  background: var(--paper-2);
  color: var(--ink);
  font: 600 14px var(--sans);
  padding: 6px 13px;
  min-height: 44px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  cursor: pointer;
  transition: border-color 0.2s, background 0.2s, transform 0.15s, box-shadow 0.2s;
}
.opt:active { transform: scale(0.97); }
.opt[aria-checked="true"] { border-color: var(--accent); background: var(--paper); box-shadow: 0 0 0 3px var(--accent-soft); }
.names { display: flex; flex-wrap: wrap; gap: 6px; margin: 12px 0 12px; }
.name-chip {
  appearance: none;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  min-height: 44px;
  padding: 5px 11px 5px 7px;
  border-radius: 999px;
  border: 1.5px solid color-mix(in oklab, var(--pc, var(--accent)) 45%, var(--line));
  background: var(--paper);
  font: 600 14px var(--sans);
  cursor: pointer;
  max-width: 100%;
}
.name-chip.p0 { --pc: var(--p0); }
.name-chip.p1 { --pc: var(--p1); }
.name-chip span { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.name-chip .edit { width: 15px; height: 15px; fill: none; stroke: currentColor; stroke-width: 1.8; opacity: 0.55; flex: 0 0 auto; }
.name-chip.cpu { cursor: default; opacity: 0.9; }
.hint { margin: 8px 4px 2px; font-size: 12.5px; line-height: 1.4; color: var(--ink-soft); text-align: center; }

.btn {
  appearance: none;
  flex: 1;
  border: 1px solid var(--btn-line);
  background: var(--btn-bg);
  color: var(--ink);
  font: 600 15px var(--sans);
  padding: 10px 14px;
  min-height: 46px;
  border-radius: 14px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  cursor: pointer;
  transition: transform 0.15s, background 0.2s, box-shadow 0.2s, filter 0.2s;
}
.btn svg { width: 19px; height: 19px; }
.btn:hover { background: var(--btn-hover); }
.btn:active { transform: scale(0.97); }
.btn.inline { flex: none; }
.btn.primary {
  background: linear-gradient(180deg, var(--primary-a), var(--primary-b));
  color: var(--primary-ink);
  border-color: var(--primary-line);
  box-shadow: 0 6px 16px -6px rgba(0, 0, 0, 0.45), inset 0 1px 0 rgba(255, 255, 255, 0.24);
  text-shadow: 0 1px 1px rgba(0, 0, 0, 0.2);
}
.btn.primary.danger { background: linear-gradient(180deg, var(--danger-a), var(--danger-b)); border-color: var(--danger-b); }
.btn.primary:hover { filter: brightness(1.06); }
.btn.play { width: 100%; min-height: 54px; font: 700 18px var(--round); border-radius: 16px; }
/* the main action stays in view: on a short screen Play waits at the bottom while the menu
   scrolls under it */
.card > .btn.play { position: sticky; bottom: 10px; z-index: 2; }

@media (max-width: 420px) {
  .top { padding-left: 10px; }
  .opt-row { grid-template-columns: 1fr; gap: 5px; }
  .opts .opt { flex: 1 1 0; padding-left: 8px; padding-right: 8px; }
}
/* a phone held upright: the four ways to play two by two, the icon beside the words — the pair
   centred in the tile (App Standard §6: a button's content in its middle) */
@media (max-width: 479px) {
  .modes { grid-template-columns: 1fr 1fr; gap: 7px; }
  .mode { grid-template-columns: auto auto; justify-content: center; justify-items: start; align-items: center; text-align: left; column-gap: 9px; row-gap: 0; min-height: 54px; padding: 7px 10px; }
  .mode svg { grid-row: 1 / span 2; width: 26px; height: 26px; }
  .mode b { align-self: end; line-height: 1.15; }
  .mode small { align-self: start; }
}
/* the smallest phones: the word alone under a smaller icon, both centred (a word beside the icon
   would wrap off-centre in the narrow tile: "Two / players", "Dos / jugadores") */
@media (max-width: 360px) {
  .mode small { display: none; }
  .mode { grid-template-columns: minmax(0, 1fr); justify-content: stretch; justify-items: center; text-align: center; row-gap: 2px; min-height: 50px; padding: 5px 6px; }
  .mode svg { grid-row: auto; width: 22px; height: 22px; }
  .mode b { align-self: center; }
}
/* short landscape: the card goes wide */
@media (orientation: landscape) and (max-height: 560px) {
  .top { padding-top: 4px; }
  .card { width: min(100% - 24px, 820px); margin: 4px auto 8px; display: grid; grid-template-columns: 1fr 1fr; column-gap: 14px; padding: 10px 12px 8px; }
  .card > .resume, .card > .hint { grid-column: 1 / -1; }
  .card > #menu-mode, .card > #modes { grid-column: 1; }
  .card > .opts-grid, .card > .names, .card > .btn.play { grid-column: 2; }
  .card > #menu-mode { grid-row: 2; }
  .card > #modes { grid-row: 3 / span 3; align-self: start; }
  .card > .opts-grid { grid-row: 2 / span 2; margin-top: 0; }
  .card > .names { grid-row: 4; margin: 6px 0; }
  .card > .btn.play { grid-row: 5; align-self: end; }
  .card > .hint { grid-row: 6; }
  .modes { grid-template-columns: 1fr 1fr; }
  .mode { min-height: 52px; padding: 5px; }
  .mode small { display: none; }
  .opt { min-height: 40px; padding: 4px 12px; }
  .btn.play { min-height: 46px; }
}
/* a child profile has no Online way to play (App Standard §4.13): the three left share the row,
   or go two by two with the last one across */
html.ca-kid .modes { grid-template-columns: repeat(3, 1fr); }
@media (max-width: 479px), (orientation: landscape) and (max-height: 560px) {
  html.ca-kid .modes { grid-template-columns: 1fr 1fr; }
  html.ca-kid .modes > :last-child { grid-column: 1 / -1; }
}
@media (orientation: landscape) and (max-height: 420px) {
  .hint { display: none; }
}

/* -------------------------------------------------------- sheets, dialogs */
.backdrop { position: fixed; inset: 0; z-index: 20; background: var(--backdrop); -webkit-backdrop-filter: blur(3px); backdrop-filter: blur(3px); animation: fade 0.25s; }
.sheet {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  margin: 0 auto;
  z-index: 21;
  max-width: 560px;
  max-height: calc(90dvh / var(--ca-zoom, 1));
  display: flex;
  flex-direction: column;
  background: var(--paper);
  color: var(--ink);
  border-radius: 24px 24px 0 0;
  box-shadow: 0 -10px 40px rgba(0, 0, 0, 0.3);
  padding-bottom: env(safe-area-inset-bottom);
  animation: rise 0.34s var(--ease);
}
.sheet.small { max-width: 420px; }
@keyframes rise { from { transform: translateY(40px); opacity: 0; } }
.sheet header { display: flex; align-items: center; justify-content: space-between; padding: 14px 12px 6px 22px; flex: 0 0 auto; min-height: 58px; }
.sheet h2 { font: 800 23px var(--round); margin: 0; letter-spacing: 0.01em; }
.sheet-body { overflow: auto; overscroll-behavior: contain; -webkit-overflow-scrolling: touch; padding: 2px 20px 24px; font-size: 15px; line-height: 1.55; touch-action: pan-y; }
/* the rules' prose may be selected; the sheets' buttons, toggles and labels never */
.prose p, .prose li { -webkit-user-select: text; user-select: text; }
.sheet-body h3 { font: 700 16px var(--round); margin: 20px 0 8px; color: var(--ink); }
.sheet-body h3:first-child { margin-top: 6px; }
.panel-body .row, .sheet-body > .row { display: flex; gap: 8px; margin-top: 8px; }
.panel-body .tools { display: flex; justify-content: center; gap: 6px; margin-top: 12px; }
.panel-body .tools .icon-btn { border: 1px solid var(--btn-line); background: var(--btn-bg); }
.panel-body .confirm { font: 600 16px/1.4 var(--round); text-align: center; margin: 8px 0 14px; }
.prose p { margin: 0 0 12px; }
.prose ul { margin: 0; padding-left: 20px; }
.prose li { margin: 5px 0; }
.prose li b { font-weight: 650; }
.about { font-size: 13px; margin-top: 10px; }
.about b { display: block; font-weight: 600; color: var(--ink); }
.note { font-size: 12.5px; color: var(--ink-soft); margin: 10px 0 0; }
@media (min-width: 700px) and (min-height: 560px) {
  .sheet { bottom: auto; top: 50%; transform: translateY(-50%); border-radius: 24px; max-height: calc(86dvh / var(--ca-zoom, 1)); animation: popm 0.3s var(--ease); }
}
@media (orientation: landscape) and (max-height: 560px) { .sheet { max-height: calc(96dvh / var(--ca-zoom, 1)); } }
@keyframes popm { from { opacity: 0; transform: translateY(-50%) scale(0.96); } }
/* face to face: a sheet sits in the middle and faces the player it is for */
body.face .sheet {
  --face-extra: 0rad;
  top: 50%;
  left: 50%;
  right: auto;
  bottom: auto;
  width: min(calc(92vw / var(--ca-zoom, 1)), 560px);
  max-height: calc(84dvh / var(--ca-zoom, 1));
  border-radius: 24px;
  transform: translate(-50%, -50%) rotate(calc(var(--face-base) + var(--face-extra)));
  animation: fade 0.3s var(--ease);
}
body.face .sheet.facing-far { --face-extra: 3.14159rad; }
body.face.land .sheet { width: min(calc(92dvh / var(--ca-zoom, 1)), 560px); max-height: calc(92vw / var(--ca-zoom, 1)); }

/* the spin picker */
.spin-big { display: block; width: min(calc(64vw / var(--ca-zoom, 1)), 240px); height: auto; aspect-ratio: 1; margin: 4px auto 6px; touch-action: none; cursor: crosshair; }
.spin-words { margin: 0; font: 700 15px var(--round); }
.spin-words::first-letter { text-transform: uppercase; }

/* ------------------------------------------------------------- results */
.why { margin: 0 0 12px; font: 600 15.5px/1.4 var(--round); color: var(--ink-soft); }
.summary { display: grid; gap: 6px; margin: 2px 0 8px; }
.sum-row { display: grid; grid-template-columns: auto auto 1fr; align-items: center; gap: 9px; padding: 8px 12px; border-radius: 14px; background: var(--paper-2); animation: rise 0.45s var(--ease) both; }
.sum-row.p0 { --pc: var(--p0); }
.sum-row.p1 { --pc: var(--p1); animation-delay: 0.08s; }
.sum-row.first { background: color-mix(in oklab, var(--pc) 15%, var(--paper-2)); box-shadow: inset 0 0 0 1.5px color-mix(in oklab, var(--pc) 55%, transparent); }
.sum-row .pemblem { grid-area: auto; }
.sum-row .nm { font: 700 16px var(--round); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.facts { display: flex; flex-wrap: wrap; gap: 4px 10px; justify-content: flex-end; font-size: 13px; color: var(--ink-soft); font-variant-numeric: tabular-nums; }
.badge { text-align: center; margin: 0 0 12px; padding: 8px 12px; border-radius: 12px; background: linear-gradient(90deg, #f6d36b, #e9ad2e); color: #3a2400; font: 800 15px var(--round); animation: popin2 0.6s var(--spring) both 0.3s; }
@keyframes popin2 { from { opacity: 0; transform: scale(0.8); } }
.friends-board { margin: 4px 0 6px; }
.friends-head { display: flex; align-items: center; justify-content: space-between; gap: 8px; flex-wrap: wrap; margin: 18px 0 4px; }
.friends-head h3 { margin: 0 !important; }
.friends-head .opt { min-height: 36px; padding: 3px 11px; font-size: 13px; }
.tiles { display: grid; grid-template-columns: repeat(auto-fit, minmax(118px, 1fr)); gap: 8px; margin: 4px 0 6px; }
.tile { background: var(--paper-2); border-radius: 16px; padding: 10px 12px; display: flex; flex-direction: column; gap: 2px; }
.tile small { font-size: 10.5px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--ink-soft); }
.tile b { font: 800 21px var(--round); font-variant-numeric: tabular-nums; }
table { width: 100%; border-collapse: collapse; font-size: 13.5px; font-variant-numeric: tabular-nums; }
th { text-align: left; vertical-align: bottom; font-weight: 600; color: var(--ink-soft); font-size: 10.5px; letter-spacing: 0.06em; text-transform: uppercase; padding: 4px; border-bottom: 1px solid var(--line); }
td { padding: 6px 4px; border-bottom: 1px solid var(--line); white-space: nowrap; vertical-align: middle; }
th.num, td.num { text-align: right; }
td.name { font-weight: 600; max-width: 12em; overflow: hidden; text-overflow: ellipsis; }
td.who { max-width: 12em; overflow: hidden; text-overflow: ellipsis; color: var(--ink-soft); }
@media (max-width: 420px) {
  table.recent { font-size: 12px; }
  table.recent td, table.recent th { padding-left: 2px; padding-right: 2px; }
}

/* ------------------------------------------------------------- settings */
.swatch { display: inline-block; width: 24px; height: 24px; border-radius: 7px; flex: 0 0 auto; background: linear-gradient(135deg, var(--c), var(--c2, var(--c))); box-shadow: inset 0 0 0 1px rgba(0, 0, 0, 0.2); }
.swatch.wood { background: repeating-linear-gradient(100deg, var(--c) 0 3px, var(--c2) 3px 5px, var(--c) 5px 9px); }
.cues { display: grid; gap: 6px; }
.cue-opt {
  appearance: none;
  display: grid;
  gap: 4px;
  padding: 8px 12px 9px;
  border-radius: 14px;
  border: 1.5px solid var(--line);
  background: var(--paper-2);
  text-align: left;
  font: 600 13.5px var(--sans);
  cursor: pointer;
  transition: border-color 0.2s, box-shadow 0.2s, background 0.2s;
}
.cue-opt[aria-checked="true"] { border-color: var(--accent); background: var(--paper); box-shadow: 0 0 0 3px var(--accent-soft); }
.cue-pic { width: 100%; height: auto; aspect-ratio: 14 / 1; display: block; }
.toggle { display: flex; align-items: center; gap: 12px; margin-top: 14px; cursor: pointer; font-size: 15px; line-height: 1.35; min-height: 32px; }
.toggle input { position: absolute; opacity: 0; width: 0; height: 0; }
.toggle .track { flex: 0 0 auto; width: 46px; height: 28px; border-radius: 999px; background: var(--line); position: relative; transition: background 0.25s; box-shadow: inset 0 0 0 1px var(--line); }
.toggle .track::after { content: ""; position: absolute; top: 3px; left: 3px; width: 22px; height: 22px; border-radius: 50%; background: #fff; box-shadow: 0 1px 3px rgba(0, 0, 0, 0.3); transition: transform 0.25s var(--ease); }
.toggle input:checked + .track { background: var(--accent); }
.toggle input:checked + .track::after { transform: translateX(18px); }
.toggle input:focus-visible + .track { outline: 2px solid var(--accent); outline-offset: 2px; }
.field { display: grid; gap: 4px; margin-top: 10px; }
.field span { font-size: 12.5px; color: var(--ink-soft); }
.field input {
  appearance: none;
  font: 500 16px var(--sans); /* 16 px or more: iOS never zooms in on focus */
  color: var(--ink);
  background: var(--paper-2);
  border: 1.5px solid var(--line);
  border-radius: 12px;
  padding: 10px 12px;
  min-height: 44px;
  -webkit-user-select: text;
  user-select: text;
}
.field input:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft); }

/* ---------------------------------------------------------------- toast */
.toast {
  position: fixed;
  left: 50%;
  top: calc(env(safe-area-inset-top) + 76px);
  transform: translate(-50%, -6px);
  z-index: 15;
  background: var(--toast);
  color: #fff;
  padding: 9px 16px;
  border-radius: 18px;
  font-size: 14px;
  line-height: 1.35;
  width: max-content;
  max-width: min(calc(90vw / var(--ca-zoom, 1)), 460px);
  text-align: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s, transform 0.25s;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.25);
}
.toast.show { opacity: 1; transform: translate(-50%, 0); }
body.face .toast { top: 50%; transform: translate(-50%, -50%) rotate(var(--face-rot)); }

@media (prefers-reduced-motion: reduce) {
  .menu, .card, .sheet, .backdrop, .handover, .sum-row, .badge { animation: fade 0.2s; }
  .handover .big-ball { animation: none; }
  .pop-label { animation-name: fadeinout; animation-timing-function: linear; }
  .plate, .plate.active { transition: none; transform: none; }
}
@keyframes fadeinout { 0% { opacity: 0; } 12% { opacity: 1; } 82% { opacity: 1; } 100% { opacity: 0; } }
html[data-ca-lite] .glassy, html[data-ca-lite] .plate, html[data-ca-lite] .card, html[data-ca-lite] .handover { -webkit-backdrop-filter: none; backdrop-filter: 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 ---- */
