/* Quiz Atlas — an old atlas in modern light: a calm sea, paper land, six clear player colours.
   Nothing flickers or sweeps; motion is short and springy, transform and opacity only. */
:root {
  color-scheme: light dark;
  --sea-a: #dcebee; --sea-b: #c4dde4; --land-shadow: rgba(40, 70, 80, .16); --shore: #eef7f6; --coast: #6d9aab; --decor: #e7e2d6; --decor-line: #cfc8b8;
  --paper: #f8f1e3; --line: rgba(74, 62, 44, .42); --inner: rgba(74, 62, 44, .28);
  --bg: #eef4f1; --surface: #fffdf9; --surface-2: #f4efe4; --text: #17232b; --muted: #52616b; --faint: #6b7880;
  --hair: rgba(23, 35, 43, .12); --chip: #f3ede1; --chip-line: rgba(23, 35, 43, .14);
  --accent: #116b72; --accent-2: #0d565c; --accent-ink: #fff; --accent-soft: rgba(17, 107, 114, .12);
  --good: #1f8a52; --good-soft: rgba(31, 138, 82, .14); --bad: #c2412d; --bad-soft: rgba(194, 65, 45, .12); --gold: #e2a72a;
  --shadow: 0 18px 50px -24px rgba(23, 35, 43, .45), 0 2px 6px rgba(23, 35, 43, .06);
  --ca-accent: #116b72;
  --p0: #f3a184; --p1: #92bbef; --p2: #97d3a8; --p3: #f5cb7d; --p4: #c0aaf0; --p5: #f2a7ca;
  --s0: #cf4f33; --s1: #2f69c9; --s2: #22894b; --s3: #b77a08; --s4: #6f4bcc; --s5: #bd3f78;
  --r-north: #eef2eb; --r-sea: #f4efe2; --r-iberia: #f8ecd8; --r-gaul: #f5f0de; --r-heart: #f1efe2; --r-med: #f7ead8; --r-balkan: #eff1e1; --r-east: #ecefe7; --r-anatolia: #f6e9d6;
  --side-w: clamp(340px, calc(30vw / var(--ca-zoom, 1)), 430px);
  --ca-tool-bg: rgba(255, 255, 255, .6);
}
@media (prefers-color-scheme: dark) {
  :root {
    --sea-a: #0c1b2b; --sea-b: #0f2438; --land-shadow: rgba(0, 0, 0, .4); --shore: #16324a; --coast: #4d7f98; --decor: #18222e; --decor-line: #24303d;
    --paper: #2a3542; --line: rgba(210, 222, 232, .34); --inner: rgba(210, 222, 232, .2);
    --bg: #0b1622; --surface: #131e2b; --surface-2: #1b2938; --text: #e8eef2; --muted: #a6b4bf; --faint: #93a2ad;
    --hair: rgba(232, 238, 242, .12); --chip: #213142; --chip-line: rgba(232, 238, 242, .16);
    --accent: #4fc0c3; --accent-2: #7fd6d8; --accent-ink: #062226; --accent-soft: rgba(79, 192, 195, .16);
    --good: #59cf8b; --good-soft: rgba(89, 207, 139, .16); --bad: #ff8a73; --bad-soft: rgba(255, 138, 115, .14); --gold: #f2c14e;
    --shadow: 0 20px 60px -24px rgba(0, 0, 0, .7), 0 2px 6px rgba(0, 0, 0, .25);
    --ca-accent: #4fc0c3;
    --p0: #b3604a; --p1: #456fae; --p2: #3c8458; --p3: #a8822f; --p4: #6c58a8; --p5: #9e4d77;
    --s0: #ff8e70; --s1: #85b4ff; --s2: #78d6a0; --s3: #f5c75e; --s4: #bea8ff; --s5: #ff9acb;
    --r-north: #29353f; --r-sea: #2c3440; --r-iberia: #2f3540; --r-gaul: #2d3541; --r-heart: #2b3440; --r-med: #2f343f; --r-balkan: #2b3540; --r-east: #29343f; --r-anatolia: #30343e;
    --ca-tool-bg: rgba(19, 30, 43, .6);
  }
}
* { box-sizing: border-box; }
/* no double-tap zoom on iOS: js/touch-guard.js adds the same rule plus a JS
   fallback; this copy covers Safari before 16.4 under the strict CSP */
:where(html, body, body *) { touch-action: manipulation; }
html { -webkit-text-size-adjust: 100%; height: 100%; }
body {
  margin: 0; height: calc(100dvh / var(--ca-zoom, 1)); display: flex; flex-direction: column; overflow: hidden;
  background: var(--bg); color: var(--text);
  font: 16px/1.45 -apple-system, BlinkMacSystemFont, "SF Pro Text", Inter, "Segoe UI", Roboto, sans-serif;
  -webkit-font-smoothing: antialiased; font-variant-numeric: tabular-nums;
  padding: calc(env(safe-area-inset-top) + var(--ca-space-top, 0px)) env(safe-area-inset-right) 0 env(safe-area-inset-left);
}
/* a game page: no text selection or long-press callouts anywhere; fields and prose opt back in */
body { -webkit-user-select: none; user-select: none; -webkit-touch-callout: none; -webkit-tap-highlight-color: transparent; }
input, textarea, [contenteditable], .prose p, .explain, .q-text { -webkit-user-select: text; user-select: text; }
button { font: inherit; color: inherit; }
[hidden] { display: none !important; }
.muted { color: var(--muted); }
.small { font-size: 13.5px; }

/* ---- the bar ---------------------------------------------------------------------------------------------- */
.bar { position: relative; z-index: 5; display: flex; align-items: center; gap: 8px; min-height: 56px; padding: 8px 12px 8px 16px;
  background: color-mix(in srgb, var(--bg) 88%, transparent); border-bottom: 1px solid var(--hair); }
.bar .ca-end { margin-left: auto; }
.back-tool svg { fill: none; stroke: currentColor; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }

/* ---- the stage: the map under everything, the panels over it (phones) or beside it (wide screens) ---------- */
.stage { position: relative; flex: 1; min-height: 0; overflow: hidden; }
.map-host { position: absolute; inset: 0; background: radial-gradient(120% 90% at 40% 30%, var(--sea-a), var(--sea-b)); }
.map-frame { position: absolute; inset: 0; overflow: hidden; touch-action: none; }
svg.map { display: block; width: 100%; height: 100%; overflow: visible; transform-origin: 0 0; transform: translate(var(--cx, 0px), var(--cy, 0px)) scale(var(--ck, 1)); }
svg.map.moving { transition: transform .8s cubic-bezier(.22, 1, .36, 1); will-change: transform; }
.m-decor { fill: var(--decor); }
.m-shadow { fill: var(--land-shadow); }
.m-shore { fill: none; stroke: var(--shore); stroke-width: calc(7px / var(--ck, 1)); stroke-linejoin: round; stroke-linecap: round; vector-effect: non-scaling-stroke; opacity: .9; }
.t { fill: var(--paper); stroke: none; transition: fill .55s ease, opacity .35s ease; }
.t[data-realm="north"] { fill: var(--r-north); } .t[data-realm="sea"] { fill: var(--r-sea); } .t[data-realm="iberia"] { fill: var(--r-iberia); }
.t[data-realm="gaul"] { fill: var(--r-gaul); } .t[data-realm="heart"] { fill: var(--r-heart); } .t[data-realm="med"] { fill: var(--r-med); }
.t[data-realm="balkan"] { fill: var(--r-balkan); } .t[data-realm="east"] { fill: var(--r-east); } .t[data-realm="anatolia"] { fill: var(--r-anatolia); }
.t[data-own="0"] { fill: var(--p0); } .t[data-own="1"] { fill: var(--p1); } .t[data-own="2"] { fill: var(--p2); }
.t[data-own="3"] { fill: var(--p3); } .t[data-own="4"] { fill: var(--p4); } .t[data-own="5"] { fill: var(--p5); }
svg.map[data-picking] .t:not(.sel):not(.chosen) { opacity: .5; }
.t.sel { cursor: pointer; }
.t.sel:focus { outline: none; }
.t.sel:focus-visible { stroke: var(--accent); stroke-width: calc(3px / var(--ck, 1)); vector-effect: non-scaling-stroke; }
.t.pop { animation: land-pop .9s ease-out; }
@keyframes land-pop { 0% { fill-opacity: .35; } 100% { fill-opacity: 1; } }
.m-inner { fill: none; stroke: var(--inner); stroke-width: calc(.9px / var(--ck, 1)); stroke-dasharray: 2 3; vector-effect: non-scaling-stroke; }
.m-border { fill: none; stroke: var(--line); stroke-width: calc(1.1px / var(--ck, 1)); stroke-linejoin: round; vector-effect: non-scaling-stroke; }
.m-coast { fill: none; stroke: var(--coast); stroke-width: calc(1px / var(--ck, 1)); stroke-linejoin: round; vector-effect: non-scaling-stroke; opacity: .85; }
.m-glow path { pointer-events: none; vector-effect: non-scaling-stroke; stroke-linejoin: round; }
.g-sel { fill: none; stroke: var(--accent); stroke-width: calc(1.6px / var(--ck, 1)); opacity: .8; }
.g-chosen { fill: color-mix(in srgb, var(--accent) 26%, transparent); stroke: var(--accent); stroke-width: calc(3px / var(--ck, 1)); }
.m-marks, .m-fx, .m-labels, .m-arcs { pointer-events: none; }
.mk-lm { fill: none; stroke: color-mix(in srgb, var(--text) 62%, transparent); stroke-width: 1.7px; stroke-linecap: round; stroke-linejoin: round; transition: opacity .3s; }
.mk-lm.hide { opacity: 0; }
.mk-tower path { stroke: var(--surface); stroke-width: 1.4px; stroke-linejoin: round; }
.mk-tower[data-own="0"] path { fill: var(--s0); } .mk-tower[data-own="1"] path { fill: var(--s1); } .mk-tower[data-own="2"] path { fill: var(--s2); }
.mk-tower[data-own="3"] path { fill: var(--s3); } .mk-tower[data-own="4"] path { fill: var(--s4); } .mk-tower[data-own="5"] path { fill: var(--s5); }
.mk-pips circle { fill: var(--text); stroke: var(--surface); stroke-width: .8px; }
.mk-stars path { fill: var(--gold); stroke: color-mix(in srgb, var(--gold) 50%, #000); stroke-width: .8px; }
.mk-chest { fill: var(--gold); stroke: color-mix(in srgb, var(--gold) 45%, #000); stroke-width: 1.3px; stroke-linejoin: round; }
.lbl { display: none; font-weight: 650; fill: var(--text); letter-spacing: .01em; paint-order: stroke; stroke: var(--paper); stroke-width: var(--halo, 3px); stroke-linejoin: round; }
.lbl.on { display: inline; }
.fx { fill: none; stroke-width: calc(2px / var(--ck, 1)); vector-effect: non-scaling-stroke; transform-box: fill-box; transform-origin: center; animation: ripple 1s cubic-bezier(.2, .8, .3, 1) forwards; }
.fx-claim, .fx-home { stroke: var(--accent); } .fx-hold { stroke: var(--gold); } .fx-tap { stroke: var(--accent); animation-duration: .6s; }
@keyframes ripple { from { transform: scale(.35); opacity: .85; } to { transform: scale(2.3); opacity: 0; } }
.arc { fill: none; stroke-width: calc(2.6px / var(--ck, 1)); stroke-linecap: round; stroke-dasharray: 100; stroke-dashoffset: 100; vector-effect: non-scaling-stroke; animation: draw .8s cubic-bezier(.3, .7, .2, 1) forwards; }
.arc[data-own="0"] { stroke: var(--s0); } .arc[data-own="1"] { stroke: var(--s1); } .arc[data-own="2"] { stroke: var(--s2); }
.arc[data-own="3"] { stroke: var(--s3); } .arc[data-own="4"] { stroke: var(--s4); } .arc[data-own="5"] { stroke: var(--s5); }
@keyframes draw { to { stroke-dashoffset: 0; } }
html[data-ca-lite] .m-shore, html[data-ca-lite] .m-shadow { display: none; }

/* ---- what floats over the map on a phone ------------------------------------------------------------------- */
.hud { position: absolute; z-index: 2; top: 8px; left: 8px; right: 8px; pointer-events: none; }
.hud > * { pointer-events: auto; }
.side { position: absolute; z-index: 3; left: 0; right: 0; bottom: 0; display: flex; flex-direction: column; justify-content: flex-end; max-height: 72%; padding: 0 8px calc(8px + env(safe-area-inset-bottom)); pointer-events: none; }
.panel { pointer-events: auto; position: relative; min-height: 0; overflow: auto; overscroll-behavior: contain; background: var(--surface); border: 1px solid var(--hair); border-radius: 22px; box-shadow: var(--shadow); padding: 16px 16px 14px; animation: rise .42s cubic-bezier(.34, 1.4, .64, 1); }
@keyframes rise { from { transform: translateY(14px); opacity: 0; } }
body[data-view="home"] .panel.home { animation: none; }
.kicker { margin: 0 0 2px; font-size: 12.5px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--accent); }
.tagline { margin: 0 0 12px; font-size: 16.5px; line-height: 1.35; font-weight: 560; }
.choices { display: grid; gap: 8px; }
.choice { display: flex; align-items: center; gap: 12px; width: 100%; min-height: 60px; padding: 10px 14px; border-radius: 16px; border: 1px solid var(--chip-line); background: var(--chip); text-align: left; cursor: pointer; transition: transform .15s ease, background-color .2s; }
.choice:active { transform: scale(.985); }
.choice:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; }
.choice:disabled { opacity: .5; cursor: default; }
.choice-ic { flex: none; display: grid; place-items: center; width: 40px; height: 40px; border-radius: 12px; background: var(--accent-soft); color: var(--accent); }
.choice-ic svg { display: block; width: 24px; height: 24px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.choice-t { display: flex; flex-direction: column; min-width: 0; }
.choice-t b { font-size: 16.5px; line-height: 1.25; }
.choice-t small { color: var(--muted); font-size: 13.5px; line-height: 1.3; }
.choice-main { background: var(--accent); border-color: transparent; color: var(--accent-ink); }
.choice-main .choice-t small { color: color-mix(in srgb, var(--accent-ink) 82%, transparent); }
.choice-main .choice-ic { background: color-mix(in srgb, var(--accent-ink) 18%, transparent); color: var(--accent-ink); }
.choice.done .choice-ic { background: var(--good-soft); color: var(--good); }
@media (hover: hover) { .choice:not(.choice-main):hover { background: color-mix(in srgb, var(--chip) 80%, var(--accent) 6%); } .choice-main:hover { background: var(--accent-2); } }

/* ---- the timer: a thin bar shrinking on the compositor ------------------------------------------------------ */
.timer { position: absolute; left: 18px; right: 18px; top: 0; height: 3px; border-radius: 0 0 3px 3px; overflow: hidden; background: var(--hair); }
.timer i { display: block; height: 100%; background: var(--accent); transform-origin: left center; }

/* ---- the question card ------------------------------------------------------------------------------------------ */
.card { padding-top: 14px; container-type: inline-size; }
.card-head { display: flex; align-items: center; gap: 8px; min-height: 28px; }
.topic { display: inline-flex; align-items: center; height: 26px; padding: 0 10px; border-radius: 13px; background: var(--accent-soft); color: var(--accent); font-size: 13px; font-weight: 700; white-space: nowrap; }
.step { flex: 1; min-width: 0; color: var(--muted); font-size: 13px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.clock { flex: none; display: grid; place-items: center; min-width: 34px; height: 28px; padding: 0 8px; border-radius: 14px; background: var(--chip); font-weight: 750; font-size: 15px; }
.clock:empty { display: none; }
.clock.low { background: var(--bad-soft); color: var(--bad); }
.context { margin: 8px 0 0; padding: 7px 10px; border-radius: 11px; background: var(--surface-2); color: var(--muted); font-size: 13.5px; line-height: 1.35; }
.q-text { margin: 10px 2px 12px; font-size: 19.5px; line-height: 1.32; font-weight: 650; letter-spacing: -.005em; text-wrap: pretty; }
.answers { display: grid; gap: 8px; grid-template-columns: minmax(0, 1fr); }
.answers.k-t { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.ans { position: relative; display: flex; align-items: center; gap: 10px; min-height: 50px; padding: 8px 12px; border-radius: 14px; border: 1.5px solid var(--chip-line); background: var(--chip); text-align: left; cursor: pointer; transition: transform .14s ease, background-color .25s, border-color .25s, opacity .3s; }
.ans:active:not(:disabled) { transform: scale(.98); }
.ans:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; }
.ans:disabled { cursor: default; }
.ans-key { flex: none; display: grid; place-items: center; width: 26px; height: 26px; border-radius: 9px; background: var(--surface); border: 1px solid var(--chip-line); font-size: 13px; font-weight: 750; color: var(--muted); }
.ans-key:empty { display: none; }
.ans-t { flex: 1; min-width: 0; font-size: 16px; font-weight: 560; line-height: 1.25; overflow-wrap: break-word; hyphens: auto; }
.k-t .ans { justify-content: center; min-height: 58px; }
.k-t .ans-t { flex: none; font-size: 17px; font-weight: 700; text-align: center; }
.ans-marks { display: flex; gap: 3px; margin-left: auto; }
.ans-marks:empty { display: none; }
.mark { display: block; width: 11px; height: 11px; border-radius: 50%; border: 2px solid var(--surface); }
.mark[data-c="0"] { background: var(--s0); } .mark[data-c="1"] { background: var(--s1); } .mark[data-c="2"] { background: var(--s2); }
.mark[data-c="3"] { background: var(--s3); } .mark[data-c="4"] { background: var(--s4); } .mark[data-c="5"] { background: var(--s5); }
.ans.chosen { border-color: var(--accent); background: var(--accent-soft); }
.ans.gone { opacity: .28; transform: scale(.98); }
.ans.right { border-color: var(--good); background: var(--good-soft); animation: right-pop .5s cubic-bezier(.34, 1.56, .64, 1); }
.ans.right .ans-key { background: var(--good); color: #fff; border-color: transparent; }
.ans.wrong { border-color: var(--bad); background: var(--bad-soft); animation: nudge .38s ease; }
@keyframes right-pop { 40% { transform: scale(1.025); } }
@keyframes nudge { 25% { transform: translateX(-3px); } 75% { transform: translateX(3px); } }
.card.watch .ans { cursor: default; }

/* the number pad */
.numpad { display: grid; gap: 8px; }
.pad-show { display: flex; align-items: baseline; justify-content: center; gap: 8px; min-height: 52px; padding: 6px 12px; border-radius: 14px; background: var(--surface-2); border: 1.5px solid var(--chip-line); }
.pad-value { font-size: 30px; font-weight: 750; letter-spacing: .01em; line-height: 1.3; }
.pad-unit { color: var(--muted); font-size: 17px; font-weight: 600; }
.numpad.answer .pad-show { border-color: var(--good); background: var(--good-soft); }
.numpad.sent .pad-show { border-color: var(--accent); }
.pad-range { margin: 0; text-align: center; color: var(--accent); font-weight: 650; font-size: 14px; }
.pad-keys { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 7px; }
.key { display: grid; place-items: center; min-height: 48px; border-radius: 13px; border: 1px solid var(--chip-line); background: var(--chip); font-size: 20px; font-weight: 650; cursor: pointer; transition: transform .12s ease, background-color .2s; }
.key:active:not(:disabled) { transform: scale(.96); }
.key:disabled { opacity: .45; cursor: default; }
.key svg { display: block; width: 24px; height: 24px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linejoin: round; stroke-linecap: round; }
.key-send { background: var(--accent); color: var(--accent-ink); border-color: transparent; font-size: 16px; font-weight: 750; }
.key:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; }

/* after the answer */
.after { margin-top: 10px; animation: rise .4s cubic-bezier(.34, 1.4, .64, 1); }
.verdict { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 8px; margin: 0; font-weight: 750; font-size: 16.5px; }
.verdict svg { flex: none; width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 2.6; stroke-linecap: round; stroke-linejoin: round; }
.verdict.ok { color: var(--good); }
.verdict.no { color: var(--bad); }
.verdict small { color: var(--muted); font-weight: 560; font-size: 13.5px; }
.verdict .gain { margin-left: auto; padding: 2px 9px; border-radius: 10px; background: var(--accent-soft); color: var(--accent); font-size: 13.5px; font-weight: 750; }
.explain { margin: 6px 0 0; font-size: 15px; line-height: 1.45; }
.source { margin: 6px 0 0; color: var(--faint); font-size: 12.5px; line-height: 1.35; }
.card-foot { position: sticky; bottom: -14px; z-index: 1; display: flex; flex-wrap: wrap; align-items: center; justify-content: flex-end; gap: 8px; margin: 12px -4px -2px; padding: 6px 4px 2px; background: var(--surface); }
.card:not(.revealed) .card-foot { position: static; margin: 10px 0 0; padding: 0; }
.jokers { display: flex; gap: 6px; margin-right: auto; }
.jokers:empty { display: none; }
.joker { display: inline-flex; align-items: center; gap: 6px; height: 40px; padding: 0 10px 0 9px; border-radius: 13px; border: 1px solid var(--chip-line); background: var(--surface-2); font-size: 13.5px; font-weight: 650; cursor: pointer; transition: transform .12s ease; }
.joker > svg { width: 18px; height: 18px; fill: none; stroke: var(--accent); stroke-width: 2; stroke-linejoin: round; }
.joker .cost { display: inline-flex; align-items: center; gap: 2px; color: var(--muted); font-weight: 700; }
.joker .cost svg, .spark { width: 13px; height: 13px; fill: var(--gold); stroke: none; }
.joker:disabled { opacity: .45; cursor: default; }
.joker.on { opacity: 1; border-color: var(--accent); background: var(--accent-soft); }
.joker:active:not(:disabled) { transform: scale(.96); }
.flag { display: inline-flex; align-items: center; gap: 6px; height: 40px; padding: 0 12px; border-radius: 13px; border: 1px solid transparent; background: none; color: var(--muted); font-size: 13.5px; font-weight: 600; cursor: pointer; }
.flag svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linejoin: round; stroke-linecap: round; }
.flag.done { color: var(--accent); }
.flag.done svg { fill: var(--accent-soft); }
.flag.mini { width: 44px; height: 44px; padding: 0; justify-content: center; flex: none; }
@media (hover: hover) { .flag:hover { background: var(--chip); } }
.pause { position: absolute; inset: 0; display: grid; place-content: center; gap: 12px; padding: 20px; text-align: center; background: var(--surface); border-radius: inherit; }
.pause p { margin: 0; font-weight: 650; }
.card.paused .q-text, .card.paused .answers, .card.paused .numpad { visibility: hidden; }

/* buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; min-height: 46px; padding: 0 20px; border-radius: 14px; border: 0; background: var(--accent); color: var(--accent-ink); font-weight: 700; font-size: 15.5px; line-height: 1.2; cursor: pointer; transition: transform .12s ease, background-color .2s, opacity .2s; }
.btn:active:not(:disabled) { transform: scale(.97); }
.btn:disabled { opacity: .45; cursor: default; }
.btn:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; }
.btn-quiet { background: var(--chip); color: var(--text); border: 1px solid var(--chip-line); }
@media (hover: hover) { .btn:not(.btn-quiet):not(:disabled):hover { background: var(--accent-2); } }

/* ---- the pick panel ------------------------------------------------------------------------------------------ */
.pick { display: grid; gap: 6px; padding-top: 14px; }
.pick-title { margin: 2px 0 0; font-size: 17.5px; font-weight: 750; line-height: 1.3; }
.pick-hint { margin: 0; color: var(--muted); font-size: 14px; line-height: 1.35; }
.chips { display: flex; flex-wrap: wrap; gap: 6px; min-height: 40px; align-items: center; margin: 2px 0; }
.chip { display: inline-flex; flex-direction: column; justify-content: center; min-height: 40px; max-width: 100%; padding: 4px 12px; border-radius: 12px; border: 1.5px solid var(--accent); background: var(--accent-soft); text-align: left; cursor: pointer; animation: rise .35s cubic-bezier(.34, 1.56, .64, 1); }
.chip span { font-weight: 700; font-size: 14.5px; line-height: 1.2; }
.chip .lm { color: var(--muted); font-size: 12px; }
.chip-hint { color: var(--faint); font-size: 14px; }
.pick .btn { width: 100%; }

/* ---- the note panel -------------------------------------------------------------------------------------------- */
.note { display: grid; grid-template-columns: auto minmax(0, 1fr); align-items: center; column-gap: 12px; row-gap: 4px; padding-top: 16px; }
.note-ic { grid-row: span 2; display: grid; place-items: center; width: 44px; height: 44px; border-radius: 14px; background: var(--accent-soft); color: var(--accent); }
.note-ic svg { width: 26px; height: 26px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.note-title { margin: 0; font-weight: 750; font-size: 16.5px; line-height: 1.3; }
.note-text { margin: 0; color: var(--muted); font-size: 14.5px; line-height: 1.4; }
.note-acts { grid-column: 1 / -1; display: flex; justify-content: flex-end; gap: 8px; }
.note-acts:empty { display: none; }
.note-acts .btn { min-width: 120px; }
.note.event .note-ic { background: color-mix(in srgb, var(--gold) 22%, transparent); color: color-mix(in srgb, var(--gold) 70%, var(--text)); }
.note.good .note-ic { background: var(--good-soft); color: var(--good); }
.note.bad .note-ic { background: var(--bad-soft); color: var(--bad); }
.note:not(:has(.note-ic:not([hidden]))) .note-title { grid-column: 1 / -1; }

/* ---- the end ----------------------------------------------------------------------------------------------------- */
.end { display: grid; gap: 10px; }
.end-title { margin: 0; font-size: 23px; line-height: 1.2; letter-spacing: -.01em; }
.podium { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.pod { display: grid; grid-template-columns: 30px minmax(0, 1fr) auto; align-items: center; gap: 10px; min-height: 52px; padding: 7px 12px; border-radius: 15px; background: var(--chip); border: 1px solid var(--chip-line); border-left: 6px solid var(--s0); animation: rise .45s cubic-bezier(.34, 1.4, .64, 1) backwards; }
.pod:nth-child(2) { animation-delay: .06s; } .pod:nth-child(3) { animation-delay: .12s; } .pod:nth-child(4) { animation-delay: .18s; } .pod:nth-child(5) { animation-delay: .24s; } .pod:nth-child(6) { animation-delay: .3s; }
.pod[data-c="1"] { border-left-color: var(--s1); } .pod[data-c="2"] { border-left-color: var(--s2); } .pod[data-c="3"] { border-left-color: var(--s3); } .pod[data-c="4"] { border-left-color: var(--s4); } .pod[data-c="5"] { border-left-color: var(--s5); }
.pod.solo { grid-template-columns: minmax(0, 1fr) auto; }
.pod.me { background: var(--accent-soft); }
.pod-rank { display: grid; place-items: center; width: 30px; height: 30px; border-radius: 50%; background: var(--surface); font-weight: 800; }
.pod:first-child .pod-rank { background: var(--gold); color: #3a2a00; }
.pod-name { display: flex; flex-direction: column; min-width: 0; }
.pod-name b { font-size: 16px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pod-name small { color: var(--muted); font-size: 12.5px; line-height: 1.3; }
.pod-total { font-size: 20px; font-weight: 800; }
.end-body p { margin: 0; }
.end-board:empty { display: none; }
.end-qs summary { min-height: 44px; display: flex; align-items: center; font-weight: 650; cursor: pointer; }
.end-acts { position: sticky; bottom: -14px; z-index: 1; display: flex; flex-wrap: wrap; justify-content: flex-end; align-items: center; gap: 8px; margin: 0 -4px -2px; padding: 8px 4px 2px; background: var(--surface); }
.end-acts p { margin: 0 auto 0 0; }
.qlist { list-style: none; margin: 0; padding: 0; display: grid; gap: 4px; }
.qrow { display: flex; align-items: center; gap: 8px; padding: 6px 0 6px 2px; border-bottom: 1px solid var(--hair); }
.qrow-t { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.qrow-t b { font-size: 14px; font-weight: 600; line-height: 1.3; }
.qrow-t small { color: var(--good); font-size: 13px; font-weight: 650; }

/* ---- players along the top ------------------------------------------------------------------------------------ */
.players { list-style: none; margin: 0; padding: 0; display: flex; gap: 6px; }
.pl { position: relative; flex: 1 1 0; min-width: 0; display: grid; grid-template-columns: 30px minmax(0, 1fr); grid-template-rows: auto auto; column-gap: 7px; align-items: center; padding: 6px 9px 6px 6px; border-radius: 15px; background: var(--surface); border: 1px solid var(--hair); box-shadow: 0 6px 18px -12px rgba(0, 0, 0, .45); max-width: 220px; transition: transform .3s cubic-bezier(.34, 1.56, .64, 1), box-shadow .3s; }
.pl-av { grid-row: span 2; position: relative; display: grid; place-items: center; width: 30px; height: 30px; border-radius: 50%; background: var(--p0); box-shadow: 0 0 0 2.5px var(--s0); overflow: hidden; }
.pl[data-c="1"] .pl-av { background: var(--p1); box-shadow: 0 0 0 2.5px var(--s1); } .pl[data-c="2"] .pl-av { background: var(--p2); box-shadow: 0 0 0 2.5px var(--s2); }
.pl[data-c="3"] .pl-av { background: var(--p3); box-shadow: 0 0 0 2.5px var(--s3); } .pl[data-c="4"] .pl-av { background: var(--p4); box-shadow: 0 0 0 2.5px var(--s4); }
.pl[data-c="5"] .pl-av { background: var(--p5); box-shadow: 0 0 0 2.5px var(--s5); }
.pl-ini { font-weight: 800; font-size: 14px; color: var(--text); }
.pl-av.has-fig .pl-ini { display: none; }
.pl-av > :not(.pl-ini) { position: absolute; inset: 0; width: 100%; height: 100%; }
.pl-name { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 13.5px; font-weight: 650; line-height: 1.25; }
.pl-sub { display: flex; align-items: center; gap: 8px; min-width: 0; color: var(--muted); font-size: 12px; font-weight: 650; line-height: 1.3; }
.pl-score { color: var(--text); font-weight: 800; font-size: 14px; }
.pl-extra { display: flex; gap: 7px; margin-left: auto; }
.pl-extra > span { display: inline-flex; align-items: center; gap: 2px; }
.pl-extra svg { width: 12px; height: 12px; }
.pl-score.bump { animation: bump .5s cubic-bezier(.34, 1.56, .64, 1); }
@keyframes bump { 40% { transform: scale(1.22); } }
.pl-towers svg { fill: currentColor; }
.pl.me { border-color: color-mix(in srgb, var(--accent) 45%, transparent); }
.pl.answered::after { content: ""; position: absolute; top: -4px; right: -4px; width: 16px; height: 16px; border-radius: 50%; background: var(--good) url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><path d="M6 12.5l4 4L18 8" fill="none" stroke="white" stroke-width="3" stroke-linecap="round" stroke-linejoin="round"/></svg>') center / 12px no-repeat; animation: rise .3s cubic-bezier(.34, 1.56, .64, 1); }
.pl.turn { transform: translateY(2px); box-shadow: 0 0 0 2px var(--accent), 0 8px 22px -12px rgba(0, 0, 0, .5); }
.pl.lead .pl-name::before { content: ""; display: inline-block; width: 12px; height: 12px; margin-right: 3px; vertical-align: -1px; background: var(--gold); -webkit-mask: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><path d="M3.5 8l4.5 4 4-7 4 7 4.5-4-2 10h-13z"/></svg>') center / contain no-repeat; mask: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><path d="M3.5 8l4.5 4 4-7 4 7 4.5-4-2 10h-13z"/></svg>') center / contain no-repeat; }
.players[data-n="5"] .pl-extra, .players[data-n="6"] .pl-extra { display: none; }
@media (max-width: 479.98px) {
  .players[data-n="3"] .pl-towers, .players[data-n="4"] .pl-towers { display: none; }
  .players[data-n="4"] .pl-extra { margin-left: 0; }
  .players[data-n="5"] .pl-name, .players[data-n="6"] .pl-name { display: none; }
  .players[data-n="4"] .pl { padding-right: 6px; column-gap: 6px; }
  .players[data-n="5"] .pl, .players[data-n="6"] .pl { grid-template-columns: minmax(0, 1fr); justify-items: center; padding: 6px 4px; }
  .players[data-n="5"] .pl-av, .players[data-n="6"] .pl-av { grid-row: auto; width: 26px; height: 26px; }
  .players[data-n="5"] .pl-score, .players[data-n="6"] .pl-score { font-size: 13px; }
  .players[data-n="5"] .pl-sub, .players[data-n="6"] .pl-sub { justify-content: center; }
}
.tour-hud { display: flex; gap: 6px; }
.stat { flex: 1 1 0; min-width: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; min-height: 48px; padding: 4px 8px; border-radius: 15px; background: var(--surface); border: 1px solid var(--hair); box-shadow: 0 6px 18px -12px rgba(0, 0, 0, .45); }
.stat span { color: var(--muted); font-size: 11.5px; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; }
.stat b { font-size: 18px; font-weight: 800; line-height: 1.15; }
.stat-clock, .stat-sparks { flex-direction: row; gap: 6px; }
.stat-clock svg { width: 22px; height: 22px; fill: none; stroke: var(--accent); stroke-width: 2; stroke-linecap: round; }
.stat-clock b { font-size: 21px; }
.stat-clock.low b, .stat-clock.low svg { color: var(--bad); stroke: var(--bad); }
.stat-sparks { flex: 0 0 auto; }
.stat-sparks svg { width: 18px; height: 18px; }
.stat-sparks .spark { width: 18px; height: 18px; }

/* toasts and floating points */
.toasts { position: absolute; z-index: 6; top: 70px; left: 50%; transform: translateX(-50%); display: grid; gap: 6px; justify-items: center; width: min(92%, 420px); pointer-events: none; }
.toast { margin: 0; padding: 9px 16px; border-radius: 14px; background: color-mix(in srgb, var(--text) 90%, transparent); color: var(--bg); font-size: 14px; font-weight: 650; text-align: center; box-shadow: var(--shadow); animation: rise .35s cubic-bezier(.34, 1.56, .64, 1); transition: opacity .4s, transform .4s; }
.toast.good { background: var(--good); color: #fff; }
.toast.bad { background: var(--bad); color: var(--bg); }
.toast.out { opacity: 0; transform: translateY(-6px); }
.float { position: absolute; z-index: 7; left: var(--x); top: var(--y); transform: translateX(-50%); padding: 2px 8px; border-radius: 10px; background: var(--accent); color: var(--accent-ink); font-weight: 800; font-size: 13px; pointer-events: none; animation: float 1.25s cubic-bezier(.2, .8, .3, 1) forwards; }
@keyframes float { from { transform: translate(-50%, 0) scale(.8); opacity: 0; } 20% { opacity: 1; transform: translate(-50%, 4px) scale(1); } to { transform: translate(-50%, 26px); opacity: 0; } }

/* ---- wide screens: the panels beside the map ------------------------------------------------------------------ */
body.wide .stage { display: grid; grid-template-columns: minmax(0, 1fr) var(--side-w); grid-template-rows: auto minmax(0, 1fr); }
body.wide .map-host { position: relative; grid-column: 1; grid-row: 1 / span 2; }
body.wide .hud { position: relative; grid-column: 2; grid-row: 1; inset: auto; padding: 12px 12px 0; }
body.wide .side { position: relative; grid-column: 2; grid-row: 2; inset: auto; max-height: none; justify-content: flex-start; padding: 12px; overflow: auto; }
body.wide .hud, body.wide .side { background: color-mix(in srgb, var(--bg) 70%, transparent); border-left: 1px solid var(--hair); }
body.wide .players { flex-wrap: wrap; }
body.wide .pl { flex: 1 1 calc(50% - 3px); max-width: none; }
body.wide .players[data-n="5"] .pl-extra, body.wide .players[data-n="6"] .pl-extra { display: flex; }
body.wide .toasts { left: calc((100% - var(--side-w)) / 2); }
@container (min-width: 380px) { .answers.k-m.short { grid-template-columns: repeat(2, minmax(0, 1fr)); } .answers.k-m.short .ans { min-height: 54px; } }
@container (min-width: 520px) { .answers.k-m { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
/* a phone held sideways: the sheet narrower and to the side */
@media (max-height: 500px) and (min-width: 560px) {
  body:not(.wide) .side { left: auto; width: min(58%, 440px); max-height: none; top: 8px; justify-content: flex-start; }
  body:not(.wide) .hud { right: calc(min(58%, 440px) + 16px); }
  body:not(.wide) .players { flex-wrap: wrap; }
  body:not(.wide) .pl { flex: 1 1 64px; }
  body:not(.wide) .players[data-n="4"] .pl-name, body:not(.wide) .players[data-n="5"] .pl-name, body:not(.wide) .players[data-n="6"] .pl-name { display: none; }
  .q-text { font-size: 17px; margin: 6px 2px 8px; }
  .ans { min-height: 44px; }
  .key { min-height: 44px; }
}
/* short phones: tighter, so the map keeps some room */
@media (max-height: 700px) {
  .q-text { font-size: 18px; }
  .panel { padding: 13px 13px 12px; }
  .tagline { font-size: 15.5px; margin-bottom: 10px; }
  .choice { min-height: 54px; padding: 8px 12px; }
}

/* ---- sheets ---------------------------------------------------------------------------------------------------------- */
.sheet { border: 0; border-radius: 24px; padding: 0; width: min(calc(94vw / var(--ca-zoom, 1)), 440px); max-height: calc(88dvh / var(--ca-zoom, 1)); background: var(--surface); color: var(--text); box-shadow: 0 30px 80px -30px rgba(0, 0, 0, .55); }
.sheet[open] { display: flex; flex-direction: column; animation: rise .38s cubic-bezier(.34, 1.4, .64, 1); }
.sheet-wide { width: min(calc(94vw / var(--ca-zoom, 1)), 580px); }
.sheet-small { width: min(calc(92vw / var(--ca-zoom, 1)), 380px); }
.sheet::backdrop { background: rgba(10, 16, 24, .42); }
.sheet > h2 { margin: 0; padding: 20px 22px 6px; font-size: 19px; }
.sheet-small > p { margin: 0; padding: 0 22px; }
.sheet-body { flex: 1 1 auto; min-height: 0; overflow: auto; overscroll-behavior: contain; padding: 6px 22px 8px; }
.sheet-body h3 { margin: 18px 0 8px; font-size: 15px; }
.sheet-foot { display: flex; justify-content: flex-end; gap: 8px; padding: 10px 22px 18px; margin: 0; }
.sheet-foot.two .btn { flex: 1; }
.prose p { margin: 6px 0 10px; line-height: 1.5; }
.prose h3 { margin-top: 16px; }
.version { color: var(--faint); font-size: 13px; }
.row { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 52px; padding: 8px 0; border-bottom: 1px solid var(--hair); }
.row-col { flex-direction: column; align-items: stretch; gap: 8px; }
.row select { min-height: 40px; padding: 0 10px; border-radius: 11px; border: 1px solid var(--chip-line); background: var(--chip); color: var(--text); font: inherit; }
.switch { appearance: none; -webkit-appearance: none; flex: none; position: relative; width: 50px; height: 30px; margin: 0; border-radius: 15px; background: var(--chip-line); cursor: pointer; transition: background-color .2s; }
.switch::after { content: ""; position: absolute; top: 3px; left: 3px; width: 24px; height: 24px; border-radius: 50%; background: #fff; box-shadow: 0 1px 3px rgba(0, 0, 0, .3); transition: transform .25s cubic-bezier(.34, 1.56, .64, 1); }
.switch:checked { background: var(--accent); }
.switch:checked::after { transform: translateX(20px); }
.switch:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; }
.seg { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 4px; padding: 4px; border-radius: 13px; background: var(--chip); }
.seg label { position: relative; display: grid; place-items: center; min-height: 40px; border-radius: 10px; font-weight: 650; font-size: 14.5px; cursor: pointer; }
.seg input { position: absolute; opacity: 0; inset: 0; margin: 0; cursor: pointer; }
.seg label:has(input:checked) { background: var(--surface); box-shadow: 0 1px 4px rgba(0, 0, 0, .14); color: var(--accent); }
.seg label:has(input:focus-visible) { outline: 3px solid var(--accent); outline-offset: 1px; }
.tabs { display: flex; gap: 4px; padding: 4px; margin: 4px 0 10px; border-radius: 13px; background: var(--chip); }
.tabs button { flex: 1; min-height: 40px; border: 0; border-radius: 10px; background: none; font-weight: 650; cursor: pointer; }
.tabs button[aria-selected="true"] { background: var(--surface); color: var(--accent); box-shadow: 0 1px 4px rgba(0, 0, 0, .14); }
.stats { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 6px; margin: 0; }
.st { display: flex; flex-direction: column; padding: 8px 10px; border-radius: 12px; background: var(--chip); }
.st dt { color: var(--muted); font-size: 12.5px; }
.st dd { margin: 0; font-weight: 800; font-size: 18px; }
.matches { list-style: none; margin: 0; padding: 0; }
.matches li { display: flex; justify-content: space-between; gap: 8px; padding: 8px 0; border-bottom: 1px solid var(--hair); font-size: 14px; }

/* the report: not modal, the game goes on beneath it */
.pop { position: fixed; z-index: 20; inset: calc(env(safe-area-inset-top) + var(--ca-space-top, 0px) + 64px) 0 auto; margin: 0 auto; width: min(calc(94vw / var(--ca-zoom, 1)), 420px); padding: 16px 18px 14px; border: 1px solid var(--hair); border-radius: 20px; background: var(--surface); color: var(--text); box-shadow: var(--shadow); }
.pop[open] { animation: rise .35s cubic-bezier(.34, 1.4, .64, 1); }
.pop h2 { margin: 0 0 4px; font-size: 16.5px; }
.pop p { margin: 0 0 10px; }
.why { display: flex; flex-wrap: wrap; gap: 6px; }
.why-chip { position: relative; display: inline-flex; align-items: center; min-height: 40px; padding: 0 12px; border-radius: 12px; border: 1px solid var(--chip-line); background: var(--chip); font-size: 14px; font-weight: 600; cursor: pointer; }
.why-chip input { position: absolute; opacity: 0; inset: 0; margin: 0; cursor: pointer; }
.why-chip:has(input:checked) { border-color: var(--accent); background: var(--accent-soft); color: var(--accent); }
.why-chip:has(input:focus-visible) { outline: 3px solid var(--accent); outline-offset: 1px; }
.note-field { display: grid; gap: 4px; margin-top: 10px; font-size: 13.5px; color: var(--muted); }
.note-field textarea { width: 100%; padding: 8px 10px; border-radius: 12px; border: 1px solid var(--chip-line); background: var(--chip); color: var(--text); font: inherit; font-size: 16px; resize: none; }
.pop-foot { display: flex; justify-content: flex-end; margin-top: 10px; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .arc { stroke-dashoffset: 0; }
}

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