:root {
  color-scheme: light dark;
  --bg: #fff6ec;
  --bg2: #ffeeda;
  --surface: #ffffff;
  --text: #1d1a24;
  --muted: #6b6577;
  --line: rgba(60, 35, 10, 0.12);
  --accent: #f4502c;
  --accent-ink: #ffffff;
  --accent-soft: rgba(244, 80, 44, 0.12);
  --good: #0f9d58;
  --good-soft: rgba(15, 157, 88, 0.14);
  --warn: #b86e00;
  --warn-soft: rgba(232, 154, 0, 0.18);
  --ca-accent: #f4502c; /* the accounts SDK's sheets and chip */
  --c1: #f4502c; --c2: #4f63f5; --c3: #0f9d70; --c4: #e89a00; --c5: #d6336c; --c6: #1098ad;
  --shadow: 0 1px 0 rgba(60, 35, 10, 0.06), 0 12px 32px -18px rgba(60, 35, 10, 0.45);
  /* a spring that overshoots a little and settles; engines without linear() get a plain overshoot */
  --spring: cubic-bezier(0.34, 1.56, 0.64, 1);
  --soft: cubic-bezier(0.2, 0.8, 0.2, 1);
}
@supports (transition-timing-function: linear(0, 1)) {
  :root { --spring: linear(0, 0.009, 0.035 2.1%, 0.141 4.4%, 0.723 12.9%, 0.938 16.7%, 1.017, 1.077, 1.121, 1.149 24.3%, 1.159, 1.163, 1.161, 1.154 29.9%, 1.129 32.8%, 1.051 39.6%, 1.017 43.1%, 0.991, 0.977 51%, 0.974 53.8%, 0.975 57.1%, 0.997 69.8%, 1.003 76.9%, 1); }
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #14131a; --bg2: #1a1822; --surface: #211f2b; --text: #f3f0f8; --muted: #a8a2b8; --line: rgba(255, 255, 255, 0.11);
    --accent: #ff7355; --accent-soft: rgba(255, 115, 85, 0.16); --good: #3ecf8e; --good-soft: rgba(62, 207, 142, 0.16); --warn: #ffc14d; --warn-soft: rgba(255, 193, 77, 0.16);
    --ca-accent: #ff7355; --c1: #ff7355; --c2: #8091ff; --c3: #3ecf8e; --c4: #ffc14d; --c5: #ff6b9d; --c6: #4dd4e6;
    --shadow: 0 1px 0 rgba(255, 255, 255, 0.04), 0 14px 34px -18px rgba(0, 0, 0, 0.9);
  }
}
* { 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%; }
body {
  margin: 0; min-height: calc(100dvh / var(--ca-zoom, 1)); display: flex; flex-direction: column;
  background: var(--bg) radial-gradient(circle at 1px 1px, var(--line) 1px, transparent 1.5px) 0 0 / 22px 22px;
  color: var(--text);
  font: 16px/1.5 -apple-system, BlinkMacSystemFont, "SF Pro Text", Inter, "Segoe UI", Roboto, sans-serif;
  -webkit-font-smoothing: antialiased;
  /* (--ca-space-top: the strip the call rests in while a game is played inside a Shared Space) */
  padding: calc(env(safe-area-inset-top) + var(--ca-space-top, 0px)) env(safe-area-inset-right) env(safe-area-inset-bottom) env(safe-area-inset-left);
}
/* the game and the podium never scroll as a page: they fill the screen (what is left of it above a keyboard) */
body[data-screen="game"], body[data-screen="podium"] { height: calc(100dvh / var(--ca-zoom, 1)); overflow: hidden; }
/* (--kbh, --kbt: the height the browser shows above the keyboard and where it shows it — iOS slides
   the page up instead of making it shorter; min-height must go, or the page stays as tall as the screen) */
html.kb body[data-screen="game"] { position: fixed; left: 0; right: 0; top: var(--kbt, 0px); bottom: auto; height: var(--kbh, calc(100dvh / var(--ca-zoom, 1))); min-height: 0; padding-bottom: 0; }
/* a game page: no text selection or long-press callouts anywhere, HUD and
   menus included; form fields and long text (the Help sheet) opt back in */
body { -webkit-user-select: none; user-select: none; -webkit-touch-callout: none; -webkit-tap-highlight-color: transparent; }
input, textarea, [contenteditable], .sheet p { -webkit-user-select: text; user-select: text; }
[hidden] { display: none !important; }
button { font: inherit; color: inherit; }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; }

/* the bar (App Standard §4.1): the SDK's brand at its left, its tools and the chip at its right, in the
   look the game's own round buttons had; the brand gives way first (its name goes, the icon stays) */
.bar { flex: none; display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 10px 16px; --ca-tool-bg: var(--surface); --ca-tool-line: var(--line); --ca-tool-ink: var(--muted); }
.icon-btn { display: inline-grid; place-items: center; padding: 0; width: 40px; height: 40px; border-radius: 50%; border: 1px solid var(--line); background: var(--surface); color: var(--muted); cursor: pointer; transition: transform 0.25s var(--spring); }
.icon-btn svg { display: block; }
.icon-btn:active { transform: scale(0.9); }
.icon-btn.quiet { width: 36px; height: 36px; background: none; }
body[data-screen="game"] .bar { padding-top: 6px; padding-bottom: 4px; }
html.kb .bar { display: none; }

.stage { flex: 1; min-height: 0; display: flex; flex-direction: column; }
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 46px; padding: 0 18px; border-radius: 15px; border: 1px solid var(--line); background: var(--surface); color: var(--text); font-weight: 650; text-decoration: none; cursor: pointer; transition: transform 0.3s var(--spring), background 0.15s; }
.btn:active { transform: scale(0.96); }
.btn.primary { border-color: transparent; background: var(--accent); color: var(--accent-ink); box-shadow: 0 10px 22px -12px var(--accent); }
.btn.soft { min-height: 44px; background: var(--bg2); }
.btn[disabled] { opacity: 0.5; cursor: default; }

/* ---- home ---- */
.home { width: min(100%, 560px); margin: 0 auto; padding: 4px 18px 28px; display: flex; flex-direction: column; align-items: stretch; gap: 14px; }
.hero { display: grid; place-items: center; }
.hero-art { width: min(100%, 360px); height: auto; overflow: visible; }
.hero-paper { filter: drop-shadow(0 14px 18px rgba(60, 35, 10, 0.16)); }
.ink { fill: none; stroke: #2a2433; stroke-width: 5; stroke-linecap: round; stroke-linejoin: round; stroke-dasharray: 1; stroke-dashoffset: 1; animation: ink 7s var(--soft) infinite; }
.i1 { stroke: var(--c2); animation-delay: 0s; } .i2 { animation-delay: 0.9s; } .i3 { stroke: var(--c1); animation-delay: 1.5s; } .i4 { stroke: var(--c4); animation-delay: 2.2s; } .i5 { stroke: var(--c4); stroke-width: 4; animation-delay: 2.7s; }
@keyframes ink { 0% { stroke-dashoffset: 1; } 14%, 86% { stroke-dashoffset: 0; } 100% { stroke-dashoffset: 0; opacity: 0; } }
.pencil { transform: translate(262px, 100px) rotate(18deg); animation: pencil 3.5s ease-in-out infinite; }
@keyframes pencil { 0%, 100% { transform: translate(262px, 100px) rotate(18deg); } 50% { transform: translate(256px, 108px) rotate(12deg); } }
.bubble { transform-box: fill-box; transform-origin: center; animation: bob 4s ease-in-out infinite; }
.bubble text { fill: #fff; font: 800 22px/1 -apple-system, BlinkMacSystemFont, Inter, "Segoe UI", sans-serif; }
.b1 rect { fill: var(--c2); } .b2 rect { fill: var(--c3); } .b3 rect { fill: var(--c5); }
.b2 { animation-delay: -1.3s; } .b3 { animation-delay: -2.4s; }
@keyframes bob { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-7px); } }
.lead { margin: 0; text-align: center; font-size: 17px; color: var(--muted); }
.actions { display: grid; gap: 10px; }
.btn.big { min-height: 64px; flex-direction: column; gap: 0; border-radius: 20px; font-size: 18px; line-height: 1.25; }
.btn.big small { font-size: 13px; font-weight: 500; opacity: 0.82; }
.offline { margin: 0; padding: 10px 14px; border-radius: 14px; background: var(--warn-soft); color: var(--text); font-size: 14px; }
.setup { display: grid; gap: 10px; padding: 14px; border-radius: 20px; background: var(--surface); box-shadow: var(--shadow); }
.setup-row { display: grid; grid-template-columns: minmax(0, 0.8fr) minmax(0, 2fr); align-items: center; gap: 10px; }
.setup-label { font-size: 14px; color: var(--muted); }
.seg { display: grid; grid-auto-flow: column; grid-auto-columns: 1fr; gap: 4px; padding: 4px; border-radius: 14px; background: var(--bg2); }
.seg button { min-height: 40px; min-width: 0; padding: 0 4px; border: 0; border-radius: 10px; background: none; font-size: 14px; font-weight: 600; color: var(--muted); cursor: pointer; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; transition: transform 0.3s var(--spring), background 0.15s, color 0.15s; }
.seg button[aria-checked="true"] { background: var(--surface); color: var(--text); box-shadow: 0 1px 2px rgba(0, 0, 0, 0.12); }
.seg button:active { transform: scale(0.94); }

/* (four words do not fit beside their label on a narrow screen: the label goes above them) */
@media (max-width: 480px), (max-height: 480px) { .setup-row.wide { grid-template-columns: minmax(0, 1fr); gap: 2px; } .setup-row.wide .setup-label { font-size: 12.5px; } }
/* shorter screens: the picture gives way first, then the spaces — the page never has to scroll */
@media (max-height: 830px) { .hero-art { height: 170px; width: auto; } }
@media (max-height: 760px) { .hero-art { height: 104px; } .home { gap: 12px; padding-bottom: 16px; } }
@media (max-height: 700px) { .hero { display: none; } }
@media (max-height: 600px) { .lead { font-size: 15px; } .setup { gap: 6px; padding: 10px 14px; } .home { gap: 10px; padding-bottom: 12px; } }
/* a phone on its side: the two buttons beside the settings */
@media (max-height: 480px) and (min-width: 540px) {
  .bar { padding-top: 6px; padding-bottom: 6px; }
  .home { width: min(100%, 900px); display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.25fr); align-items: center; column-gap: 16px; padding-bottom: 8px; }
  .hero, .lead { display: none; }
  .offline { grid-column: 1 / -1; }
  .setup { gap: 5px; padding: 8px 12px; grid-column: 2; grid-row: 1 / span 2; }
  .seg button { min-height: 36px; }
}

/* ---- the game ---- */
.game { flex: 1; min-height: 0; width: 100%; max-width: 1180px; margin: 0 auto; padding: 0 12px 10px; display: grid; grid-template-columns: minmax(0, 1fr); grid-template-rows: auto auto auto minmax(0, 1fr); gap: 8px; }
.hud { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: 10px; }
.clock { position: relative; width: 44px; height: 44px; display: grid; place-items: center; }
.clock.off { visibility: hidden; }
.clock svg { position: absolute; inset: 0; transform: rotate(-90deg); }
.ring-bg, .ring { fill: none; stroke-width: 4; }
.ring-bg { stroke: var(--line); }
.ring { stroke: var(--accent); stroke-linecap: round; stroke-dasharray: 1; stroke-dashoffset: 0; }
.ring.run { animation: ring linear forwards; }
@keyframes ring { from { stroke-dashoffset: var(--from, 0); } to { stroke-dashoffset: 1; } }
.clock b { position: relative; font-size: 15px; font-weight: 700; font-variant-numeric: tabular-nums; }
.clock.low .ring { stroke: #e03131; }
.clock.low b { color: #e03131; animation: pulse 1s var(--soft) infinite; }
@keyframes pulse { 0% { transform: scale(1.25); } 100% { transform: scale(1); } }
.wordbox { min-width: 0; display: grid; justify-items: center; gap: 1px; }
.wlabel { font-size: 12.500px; font-weight: 600; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 100%; }
.word { display: flex; flex-wrap: wrap; justify-content: center; gap: 3px 4px; min-height: 30px; max-width: 100%; }
.word .ltr { display: inline-grid; place-items: center; min-width: 17px; height: 28px; padding: 0 2px; border-bottom: 3px solid var(--text); font-size: 19px; font-weight: 750; line-height: 1; text-transform: uppercase; border-radius: 2px 2px 0 0; }
.word .ltr.gap { border-color: transparent; min-width: 9px; }
.word .ltr.pop { animation: pop 0.6s var(--spring) both; color: var(--accent); }
.word.known .ltr { border-color: var(--accent); color: var(--accent); }
.word.small .ltr { min-width: 12px; height: 24px; font-size: 15px; border-bottom-width: 2px; }
@keyframes pop { from { transform: translateY(-14px) scale(0.4); opacity: 0; } to { transform: none; opacity: 1; } }
.roundbox { display: flex; align-items: center; gap: 4px; }
.round { font-size: 13px; font-weight: 650; color: var(--muted); white-space: nowrap; }

.players { list-style: none; margin: 0; padding: 2px; display: flex; gap: 6px; overflow-x: auto; scrollbar-width: none; }
.players::-webkit-scrollbar { display: none; }
.pl { position: relative; flex: 1 1 0; min-width: 52px; max-width: 150px; display: grid; grid-template-columns: auto minmax(0, 1fr); align-items: center; gap: 0 7px; padding: 5px 8px 5px 5px; border-radius: 14px; background: var(--surface); box-shadow: inset 0 0 0 1px var(--line); transition: transform 0.45s var(--spring), box-shadow 0.2s, opacity 0.2s; }
.pl .av { grid-row: span 2; width: 32px; height: 32px; border-radius: 50%; display: grid; place-items: center; color: #fff; font-weight: 750; font-size: 15px; background: var(--pc, var(--c1)); }
.pl .nm { font-size: 12px; font-weight: 600; color: var(--muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pl .sc { font-size: 15px; font-weight: 750; font-variant-numeric: tabular-nums; line-height: 1.1; }
.pl .mk { position: absolute; left: 24px; top: 22px; width: 18px; height: 18px; border-radius: 50%; display: grid; place-items: center; font-size: 11px; background: var(--surface); box-shadow: 0 0 0 1px var(--line); transform: scale(0); transition: transform 0.45s var(--spring); }
.pl[data-draw] { box-shadow: inset 0 0 0 2px var(--accent); }
.pl[data-draw] .mk, .pl[data-ok] .mk { transform: scale(1); }
.pl[data-ok] { box-shadow: inset 0 0 0 2px var(--good); background: linear-gradient(var(--good-soft), var(--good-soft)), var(--surface); }
.pl[data-out] { opacity: 0.45; }
.pl.bump { animation: bump 0.6s var(--spring); }
@keyframes bump { 0% { transform: scale(0.9); } 45% { transform: scale(1.09); } 100% { transform: none; } }
.pl.in { animation: plin 0.5s var(--spring) both; }
/* four or more on a narrow screen: the face and the points, no name */
.players[data-many] .pl { grid-template-columns: minmax(0, 1fr); justify-items: center; gap: 1px; padding: 5px 2px 4px; min-width: 44px; }
.players[data-many] .pl .av { grid-row: auto; width: 30px; height: 30px; font-size: 14px; }
.players[data-many] .pl .nm { display: none; }
.players[data-many] .pl .sc { font-size: 13.5px; }
.players[data-many] .pl .mk { left: calc(50% + 4px); top: 20px; }
@keyframes plin { from { transform: scale(0.5); opacity: 0; } }

.easel { position: relative; width: 100%; min-width: 0; }
.paper { --cs-sk-radius: 16px; --cs-sk-shadow: 0 1px 0 rgba(60, 35, 10, 0.08), 0 16px 34px -20px rgba(60, 35, 10, 0.55); min-height: 60px; }
.paper:empty { width: var(--paper-w, 100%); margin: 0 auto; aspect-ratio: 4 / 3; border-radius: 16px; background: #fbfbfc; box-shadow: var(--cs-sk-shadow); }
.fly { position: absolute; top: 0; left: calc((100% - var(--paper-w, 100%) - var(--side, 0px)) / 2); width: var(--paper-w, 100%); aspect-ratio: 4 / 3; pointer-events: none; overflow: hidden; border-radius: 16px; }
.fly i { position: absolute; bottom: 6%; font-style: normal; font-size: 30px; animation: fly 1.8s var(--soft) forwards; will-change: transform, opacity; }
@keyframes fly { 0% { transform: translateY(20px) scale(0.3); opacity: 0; } 18% { transform: translateY(-10px) scale(1.15); opacity: 1; } 100% { transform: translate(var(--dx, 0), -210px) scale(0.9) rotate(var(--rot, 0deg)); opacity: 0; } }
/* the guesses, for the one who draws: small notes over the foot of the paper (the eyes are there) */
.pops { position: absolute; top: 0; left: calc((100% - var(--paper-w, 100%) - var(--side, 0px)) / 2); width: var(--paper-w, 100%); aspect-ratio: 4 / 3; display: flex; flex-direction: column; justify-content: flex-end; align-items: flex-start; gap: 4px; padding: 8px; pointer-events: none; overflow: hidden; border-radius: 16px; }
.pops .msg { max-width: 86%; background: rgba(255, 255, 255, 0.94); color: #1d1a24; box-shadow: 0 6px 16px -8px rgba(60, 35, 10, 0.5), 0 0 0 1px rgba(60, 35, 10, 0.1); animation: popnote 3s var(--soft) both; }
.pops .msg.ok { background: #e2f5ea; }
.pops .msg.me { align-self: flex-end; background: #ffe9e2; }
.pops .msg.near { align-self: flex-end; background: #fff1cf; color: #8a5200; }
@keyframes popnote { 0% { transform: translateY(12px) scale(0.9); opacity: 0; } 7% { transform: none; opacity: 1; } 85% { opacity: 1; } 100% { opacity: 0; } }
.veil { position: absolute; top: 0; left: calc((100% - var(--paper-w, 100%) - var(--side, 0px)) / 2); width: var(--paper-w, 100%); aspect-ratio: 4 / 3; display: grid; place-items: center; padding: 12px; border-radius: 16px; background: rgba(255, 252, 246, 0.94); color: #1d1a24; text-align: center; animation: veil 0.25s ease both; overflow: hidden; }
.veil[data-kind="reveal"] { background: rgba(255, 252, 246, 0.86); }
/* (three words and their button never hide in a small paper: this veil is as tall as it needs) */
.veil[data-kind="pick"], .veil[data-kind="pass"] { aspect-ratio: auto; min-height: calc(var(--paper-w, 320px) * 0.75); z-index: 3; box-shadow: var(--shadow); background: rgba(255, 252, 246, 0.98); }
.veil[data-kind="reveal"] { aspect-ratio: auto; min-height: calc(var(--paper-w, 320px) * 0.75); z-index: 3; }
.veil.out { animation: veilout 0.2s ease both; }
@keyframes veil { from { opacity: 0; } }
@keyframes veilout { to { opacity: 0; } }
.veil-in { display: grid; justify-items: center; gap: 8px; width: 100%; max-height: 100%; }
.veil h3 { margin: 0; font-size: 17px; font-weight: 700; letter-spacing: -0.01em; }
.veil p { margin: 0; font-size: 14px; color: #6b6577; }
.veil .bigav { width: 54px; height: 54px; border-radius: 50%; display: grid; place-items: center; color: #fff; font-size: 24px; font-weight: 750; background: var(--pc, var(--c1)); animation: rise 0.5s var(--spring) both; }
.dots { display: inline-flex; gap: 5px; }
.dots i { width: 7px; height: 7px; border-radius: 50%; background: currentColor; opacity: 0.35; animation: dot 1.2s ease-in-out infinite; }
.dots i:nth-child(2) { animation-delay: 0.15s; } .dots i:nth-child(3) { animation-delay: 0.3s; }
@keyframes dot { 30% { transform: translateY(-5px); opacity: 1; } 60% { transform: none; opacity: 0.35; } }
.choices { display: grid; gap: 8px; width: min(100%, 320px); }
.choice { display: flex; align-items: center; justify-content: space-between; gap: 10px; min-height: 48px; padding: 6px 16px; border: 0; border-radius: 16px; background: #fff; color: #1d1a24; font-size: 18px; font-weight: 700; box-shadow: 0 0 0 1px rgba(60, 35, 10, 0.12), 0 8px 18px -12px rgba(60, 35, 10, 0.6); cursor: pointer; animation: rise 0.55s var(--spring) both; transition: transform 0.3s var(--spring); }
.choice:nth-child(2) { animation-delay: 0.07s; } .choice:nth-child(3) { animation-delay: 0.14s; }
.choice:active { transform: scale(0.96); }
.choice .lv { display: inline-flex; gap: 3px; flex: none; }
.choice .lv i { width: 7px; height: 7px; border-radius: 50%; background: rgba(60, 35, 10, 0.16); }
.choice .lv i.on { background: var(--c1); }
@keyframes rise { from { transform: translateY(18px) scale(0.9); opacity: 0; } }
.pickbar { width: min(100%, 320px); height: 5px; border-radius: 3px; background: rgba(60, 35, 10, 0.1); overflow: hidden; }
.pickbar i { display: block; height: 100%; border-radius: 3px; background: var(--c1); transform-origin: left; animation: shrink linear forwards; }
@keyframes shrink { to { transform: scaleX(0); } }
.reveal-word { font-size: clamp(22px, calc(7vw / var(--ca-zoom, 1)), 34px); font-weight: 800; letter-spacing: -0.02em; line-height: 1.1; color: var(--c1); animation: rise 0.6s var(--spring) both; overflow-wrap: anywhere; }
.gains { list-style: none; margin: 2px 0 0; padding: 0; display: flex; flex-wrap: wrap; justify-content: center; gap: 6px; max-width: 100%; }
.gains li { display: inline-flex; align-items: center; gap: 6px; padding: 4px 10px 4px 4px; border-radius: 999px; background: #fff; font-size: 13.500px; font-weight: 650; box-shadow: 0 0 0 1px rgba(60, 35, 10, 0.1); animation: rise 0.5s var(--spring) both; }
.gains li i { width: 22px; height: 22px; border-radius: 50%; display: grid; place-items: center; font-style: normal; color: #fff; font-size: 12px; background: var(--pc, var(--c1)); }
.gains li b { color: #0f9d58; font-variant-numeric: tabular-nums; }
.gains li.zero b { color: #8a8494; }

.deck { min-height: 0; display: flex; flex-direction: column; gap: 6px; }
.feed { flex: 1 1 auto; min-height: 0; overflow-y: auto; overscroll-behavior: contain; display: flex; flex-direction: column; gap: 4px; padding: 2px; scrollbar-width: thin; }
.feed:focus { outline: none; }
.msg { align-self: flex-start; max-width: 100%; display: flex; align-items: baseline; gap: 6px; padding: 5px 11px; border-radius: 14px; background: var(--surface); box-shadow: inset 0 0 0 1px var(--line); font-size: 14.500px; line-height: 1.3; animation: msg 0.4s var(--spring) both; overflow-wrap: anywhere; }
.msg b { flex: none; font-weight: 700; color: var(--pc, var(--text)); }
.msg.me { align-self: flex-end; background: var(--accent-soft); box-shadow: none; }
.msg.ok { background: var(--good-soft); box-shadow: none; font-weight: 650; }
.msg.ok em { font-style: normal; color: var(--good); font-variant-numeric: tabular-nums; }
.msg.near { align-self: flex-end; background: var(--warn-soft); box-shadow: none; font-weight: 700; color: var(--warn); }
.deck .tools { flex: none; }
.msg.sys { align-self: center; background: none; box-shadow: none; color: var(--muted); font-size: 13px; padding: 2px 8px; }
@keyframes msg { from { transform: translateY(10px) scale(0.92); opacity: 0; } }
.tools { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
.tools .btn { min-width: 0; padding: 0 8px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.reacts { display: flex; gap: 6px; justify-content: flex-end; }
.reacts:empty { display: none; }
.reacts button { width: 44px; height: 40px; border: 0; border-radius: 13px; background: var(--surface); box-shadow: inset 0 0 0 1px var(--line); font-size: 19px; cursor: pointer; transition: transform 0.3s var(--spring); }
.reacts button:active { transform: scale(0.82); }
.guess { display: flex; gap: 8px; }
.guess input { flex: 1; min-width: 0; height: 50px; padding: 0 16px; border-radius: 16px; border: 2px solid var(--line); background: var(--surface); color: var(--text); font: inherit; font-size: 17px; outline: none; transition: border-color 0.15s; }
.guess input:focus { border-color: var(--accent); }
.guess input:disabled { opacity: 0.6; }
.guess.shake input { animation: shake 0.4s var(--soft); border-color: var(--warn); }
@keyframes shake { 20% { transform: translateX(-6px); } 45% { transform: translateX(5px); } 70% { transform: translateX(-3px); } }
.send { flex: none; width: 50px; height: 50px; border: 0; border-radius: 16px; background: var(--accent); color: var(--accent-ink); display: grid; place-items: center; cursor: pointer; transition: transform 0.3s var(--spring); }
.send:active { transform: scale(0.88); }
html.kb .players, html.kb .reacts { display: none; }
html.kb .game { gap: 6px; padding-bottom: 6px; }
html.kb .wlabel { display: none; }
html.kb .clock, html.kb .clock svg { width: 38px; height: 38px; }
html.kb .word .ltr { height: 26px; font-size: 17px; }
/* a short screen: the reactions, the list of guesses and the players' strip give way to the paper
   (app.js `layout`); guesses then show as notes over the foot of the paper */
.deck[data-noreact] .reacts { display: none; }
.deck[data-feed="pops"] .feed { display: none; }
.deck[data-feed="pops"] { justify-content: flex-end; }
.game[data-tight] .players { display: none; }

/* a wide screen: the paper on the left, the players and the guesses beside it */
@media (min-width: 540px) and (min-aspect-ratio: 11/10) {
  .game { grid-template-columns: minmax(0, 1fr) clamp(220px, calc(32vw / var(--ca-zoom, 1)), 360px); grid-template-rows: auto minmax(0, 1fr); column-gap: 20px; padding-bottom: 16px; }
  .hud { grid-column: 1 / -1; }
  .easel { grid-column: 1; grid-row: 2; align-self: start; }
  .players { grid-column: 2; grid-row: 2; align-self: start; flex-direction: column; overflow: visible; }
  .pl, .players[data-many] .pl { flex: none; max-width: none; grid-template-columns: auto minmax(0, 1fr) auto; justify-items: start; gap: 0 7px; padding: 7px 14px 7px 7px; }
  .pl .av, .players[data-many] .pl .av { grid-row: auto; width: 36px; height: 36px; font-size: 15px; }
  .pl .nm, .players[data-many] .pl .nm { display: block; font-size: 15px; color: var(--text); }
  .pl .sc, .players[data-many] .pl .sc { font-size: 17px; }
  .pl .mk, .players[data-many] .pl .mk { left: 30px; top: 28px; }
  .deck { grid-column: 2; grid-row: 2; align-self: stretch; margin-top: var(--plh, 0px); }
  .word .ltr { min-width: 22px; height: 34px; font-size: 24px; }
}

/* a phone on its side: every line of height is the paper's — the clock and the word go beside it too */
@media (max-height: 480px) and (min-width: 540px) and (min-aspect-ratio: 11/10) {
  body[data-screen="game"] .bar { padding-top: 4px; padding-bottom: 2px; }
  .game { grid-template-rows: auto auto minmax(0, 1fr); column-gap: 12px; padding-bottom: 6px; row-gap: 6px; }
  .hud { grid-column: 2; grid-row: 1; gap: 6px; }
  .easel { grid-column: 1; grid-row: 1 / span 3; align-self: center; }
  .players, .players[data-many] { grid-column: 2; grid-row: 2; flex-direction: row; }
  .pl, .players[data-many] .pl { flex: 1 1 0; min-width: 40px; grid-template-columns: minmax(0, 1fr); justify-items: center; gap: 0; padding: 4px 2px; }
  .pl .av, .players[data-many] .pl .av { width: 26px; height: 26px; font-size: 13px; }
  .pl .nm, .players[data-many] .pl .nm { display: none; }
  .pl .sc, .players[data-many] .pl .sc { font-size: 13px; }
  .pl .mk, .players[data-many] .pl .mk { left: calc(50% + 2px); top: 16px; width: 16px; height: 16px; font-size: 10px; }
  .deck { grid-column: 2; grid-row: 3; margin-top: 0; overflow-y: auto; overscroll-behavior: contain; }
  .word .ltr { min-width: 13px; height: 24px; font-size: 16px; }
  .clock { width: 38px; height: 38px; }
  .clock svg { width: 38px; height: 38px; }
  .tools .btn { min-height: 44px; padding: 0 8px; font-size: 14px; }
  .guess input, .send { height: 46px; }
  .reacts button { width: 40px; height: 36px; }
}

/* ---- the podium ---- */
.podium { position: relative; flex: 1; min-height: 0; width: min(100%, 640px); margin: 0 auto; padding: 4px 16px 16px; display: flex; flex-direction: column; gap: 10px; overflow-y: auto; overscroll-behavior: contain; }
.confetti { position: fixed; inset: 0; width: 100%; height: 100%; pointer-events: none; z-index: 5; }
.podium-title { margin: 6px 0 0; text-align: center; font-size: 26px; font-weight: 800; letter-spacing: -0.02em; animation: rise 0.6s var(--spring) both; }
.podium-title:focus { outline: none; }
.rank { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.rank li { position: relative; display: grid; grid-template-columns: 30px 38px minmax(0, 1fr) auto; align-items: center; gap: 10px; padding: 9px 14px 9px 10px; border-radius: 18px; background: var(--surface); box-shadow: var(--shadow); overflow: hidden; animation: rise 0.6s var(--spring) both; animation-delay: calc(var(--i) * 90ms); }
.rank li::before { content: ""; position: absolute; inset: 0; background: var(--pc); opacity: 0.13; transform-origin: left; transform: scaleX(var(--f, 0)); animation: grow 0.9s var(--spring) both; animation-delay: calc(var(--i) * 90ms + 200ms); }
@keyframes grow { from { transform: scaleX(0); } }
.rank li > * { position: relative; }
.rank .pos { font-size: 20px; font-weight: 800; text-align: center; font-variant-numeric: tabular-nums; }
.rank .av { width: 38px; height: 38px; border-radius: 50%; display: grid; place-items: center; color: #fff; font-weight: 750; background: var(--pc); }
.rank .nm { font-weight: 700; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.rank .nm small { display: block; font-weight: 500; font-size: 12.500px; color: var(--muted); }
.rank .sc { font-size: 20px; font-weight: 800; font-variant-numeric: tabular-nums; }
.rank li[data-me] { box-shadow: var(--shadow), inset 0 0 0 2px var(--pc); }
.gallery-title { margin: 8px 0 0; font-size: 15px; color: var(--muted); font-weight: 650; }
.gallery { display: grid; grid-template-columns: repeat(auto-fill, minmax(132px, 1fr)); gap: 10px; }
.gallery p { grid-column: 1 / -1; margin: 0; color: var(--muted); font-size: 14px; }
.pic { display: grid; gap: 4px; padding: 6px 6px 8px; border: 0; border-radius: 16px; background: var(--surface); box-shadow: var(--shadow); text-align: start; cursor: pointer; animation: rise 0.5s var(--spring) both; transition: transform 0.3s var(--spring); }
.pic:active { transform: scale(0.96); }
.pic img { display: block; width: 100%; height: auto; aspect-ratio: 4 / 3; border-radius: 11px; background: #fbfbfc; }
.pic b { font-size: 14px; padding: 0 4px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pic small { font-size: 12px; color: var(--muted); padding: 0 4px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.podium-acts { margin-top: 6px; position: sticky; bottom: 0; z-index: 2; padding: 22px 0 2px; background: linear-gradient(transparent, var(--bg) 24px); }
.waiting { margin: 0; text-align: center; color: var(--muted); font-size: 14px; }

/* ---- sheets ---- */
.sheet { border: 0; border-radius: 24px; padding: 20px; width: min(calc(92vw / var(--ca-zoom, 1)), 440px); max-height: min(calc(88dvh / var(--ca-zoom, 1)), 640px); background: var(--surface); color: var(--text); box-shadow: 0 30px 80px -30px rgba(0, 0, 0, 0.5); }
.sheet[open] { display: flex; flex-direction: column; gap: 4px; animation: sheet 0.4s var(--spring) both; }
@keyframes sheet { from { transform: translateY(24px) scale(0.94); opacity: 0; } }
.sheet::backdrop { background: rgba(20, 14, 10, 0.5); }
.sheet h2 { margin: 0 0 8px; font-size: 19px; letter-spacing: -0.01em; }
.sheet h3 { margin: 16px 0 6px; font-size: 15px; }
/* (WebKit gives a 0% flex basis no height inside a dialog that is as tall as its content) */
.sheet-body { flex: 1 1 auto; min-height: 0; overflow-y: auto; overscroll-behavior: contain; }
.sheet .btn { width: 100%; margin-top: 10px; }
.sheet form { margin: 0; }
.sheet-acts { display: grid; gap: 0; }
.row { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 48px; padding: 6px 0; border-bottom: 1px solid var(--line); }
.row select { min-height: 40px; padding: 0 10px; border-radius: 11px; border: 1px solid var(--line); background: var(--bg2); color: var(--text); font: inherit; }
.row input[type="checkbox"] { width: 24px; height: 24px; accent-color: var(--accent); }
.prose p { margin: 0 0 10px; }
.note { margin: 0 0 10px; color: var(--muted); font-size: 14.500px; }
.version { color: var(--muted); font-size: 13px; }
.stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(96px, 1fr)); gap: 8px; margin: 0; }
.stats div { padding: 10px 12px; border-radius: 14px; background: var(--bg2); }
.stats dt { font-size: 12.500px; color: var(--muted); }
.stats dd { margin: 0; font-size: 22px; font-weight: 800; font-variant-numeric: tabular-nums; }
.names { display: grid; gap: 8px; margin-bottom: 4px; }
.name-row { display: flex; align-items: center; gap: 8px; }
.name-row i { flex: none; width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; font-style: normal; color: #fff; font-weight: 750; background: var(--pc); }
.name-row input { flex: 1; min-width: 0; height: 46px; padding: 0 12px; border-radius: 13px; border: 1px solid var(--line); background: var(--bg2); color: var(--text); font: inherit; }
.name-row button { flex: none; display: grid; place-items: center; padding: 0; width: 44px; height: 44px; border: 0; border-radius: 13px; background: none; color: var(--muted); cursor: pointer; }
.name-row button svg { display: block; width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2.2; stroke-linecap: round; }
.who-list { display: grid; gap: 8px; }
.who-list .btn { margin: 0; justify-content: flex-start; gap: 12px; min-height: 54px; }
.who-list .btn i { width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; font-style: normal; color: #fff; font-weight: 750; background: var(--pc); }
.picture img { display: block; width: 100%; height: auto; border-radius: 14px; background: #fbfbfc; box-shadow: inset 0 0 0 1px var(--line); }
.picture .note { margin: 8px 0 0; }
.toast { position: fixed; left: 50%; bottom: calc(env(safe-area-inset-bottom) + 84px); z-index: 20; transform: translateX(-50%); max-width: calc(100% - 32px); padding: 10px 18px; border-radius: 999px; background: #1d1a24; color: #fff; font-size: 14.500px; font-weight: 600; box-shadow: 0 14px 34px -14px rgba(0, 0, 0, 0.7); animation: toast 0.45s var(--spring) both; }
@keyframes toast { from { transform: translate(-50%, 16px) scale(0.9); opacity: 0; } }

@media (prefers-reduced-motion: reduce) {
  * { transition: none !important; animation: none !important; }
  .pops .msg { animation: popnote 3s linear both !important; }
  .ink { stroke-dashoffset: 0; }
  .pl .mk { transition: none; }
  .ring.run { animation: ring linear forwards !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 ---- */
