/* Star Meadows — three looks (meadow, night, glass), each light and dark. Every colour
   is a custom property set per [data-style][data-theme] on <html>; the board itself is
   painted on a canvas (js/looks.js). */

:root {
  --sans: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --serif: "Iowan Old Style", "Palatino Linotype", Palatino, "Book Antiqua", Georgia, serif;
  --ease: cubic-bezier(0.4, 0.1, 0.2, 1);
  --spring: cubic-bezier(0.3, 1.4, 0.5, 1);
  --ca-accent: #3f3b96; /* the accounts SDK's sheets and chip */
  color-scheme: light;
}
/* ------------------------------------------------------------------ the looks */
:root, [data-style="meadow"][data-theme="light"] {
  --bg-a: #e8f2f2; --bg-b: #f3efd9; --bg-c: #d9e8c0; --bg-d: #c6dca4;
  --ink: #2b2d1f; --ink-soft: #5b5c47; --line: rgba(60, 70, 30, 0.14);
  --card: rgba(255, 255, 248, 0.62); --card-border: rgba(255, 255, 255, 0.8);
  --btn-bg: rgba(255, 255, 248, 0.72); --btn-hover: rgba(255, 255, 250, 0.96); --btn-border: rgba(70, 80, 40, 0.16);
  --accent: #2e6b4f; --accent-2: #3d8463; --accent-ink: #ffffff; --accent-soft: rgba(46, 107, 79, 0.12);
  --gold: #e3a52a; --good: #2f7a4a; --warn: #b2392f;
  --sheet: #fbfaf2; --sheet-2: #f1efe2; --shadow: 50, 60, 30; --backdrop: rgba(30, 40, 20, 0.36);
  --toast-bg: rgba(38, 44, 30, 0.95); --toast-ink: #fbfaf2;
}
[data-style="meadow"][data-theme="dark"] {
  --bg-a: #14202a; --bg-b: #1a2a22; --bg-c: #1f3324; --bg-d: #17281c;
  --ink: #eef0dc; --ink-soft: #b9bea2; --line: rgba(230, 240, 200, 0.13);
  --card: rgba(30, 44, 34, 0.66); --card-border: rgba(220, 240, 200, 0.1);
  --btn-bg: rgba(36, 52, 40, 0.8); --btn-hover: rgba(48, 68, 52, 0.95); --btn-border: rgba(220, 240, 200, 0.14);
  --accent: #96d6ac; --accent-2: #b4e6c4; --accent-ink: #10241a; --accent-soft: rgba(150, 214, 172, 0.14);
  --gold: #ffd36a; --good: #8fdca6; --warn: #ff8a7c;
  --sheet: #1b2a22; --sheet-2: #22342a; --shadow: 0, 0, 0; --backdrop: rgba(4, 10, 6, 0.55);
  --toast-bg: rgba(236, 240, 220, 0.96); --toast-ink: #18241c;
}
[data-style="night"][data-theme="light"] {
  --bg-a: #efe8f8; --bg-b: #fbe8de; --bg-c: #e3dcf6; --bg-d: #f4d9e6;
  --ink: #26223f; --ink-soft: #565075; --line: rgba(60, 50, 120, 0.13);
  --card: rgba(255, 253, 255, 0.6); --card-border: rgba(255, 255, 255, 0.85);
  --btn-bg: rgba(255, 253, 255, 0.72); --btn-hover: rgba(255, 255, 255, 0.96); --btn-border: rgba(70, 60, 130, 0.16);
  --accent: #4b3f9e; --accent-2: #6052b8; --accent-ink: #ffffff; --accent-soft: rgba(75, 63, 158, 0.12);
  --gold: #d99a1e; --good: #3b7d55; --warn: #b8334f;
  --sheet: #fcfaff; --sheet-2: #f1edfa; --shadow: 50, 40, 100; --backdrop: rgba(30, 24, 60, 0.36);
  --toast-bg: rgba(34, 30, 60, 0.95); --toast-ink: #fcfaff;
}
[data-style="night"][data-theme="dark"] {
  --bg-a: #070a1e; --bg-b: #111539; --bg-c: #1a1650; --bg-d: #0a1a33;
  --ink: #eceeff; --ink-soft: #b2b6dd; --line: rgba(180, 190, 255, 0.13);
  --card: rgba(20, 24, 60, 0.66); --card-border: rgba(170, 180, 255, 0.12);
  --btn-bg: rgba(26, 30, 72, 0.82); --btn-hover: rgba(36, 42, 96, 0.96); --btn-border: rgba(170, 180, 255, 0.16);
  --accent: #c3bfff; --accent-2: #dcd9ff; --accent-ink: #17133e; --accent-soft: rgba(195, 191, 255, 0.14);
  --gold: #ffd77a; --good: #9fe0b8; --warn: #ff8fa2;
  --sheet: #12163a; --sheet-2: #1a1f4a; --shadow: 0, 0, 10; --backdrop: rgba(2, 3, 14, 0.6);
  --toast-bg: rgba(236, 238, 255, 0.96); --toast-ink: #141838;
}
[data-style="glass"][data-theme="light"] {
  --bg-a: #efebe4; --bg-b: #e3ddd2; --bg-c: rgba(224, 86, 107, 0.16); --bg-d: rgba(79, 127, 224, 0.15);
  --ink: #26252b; --ink-soft: #57545d; --line: rgba(40, 38, 46, 0.14);
  --card: rgba(255, 253, 250, 0.66); --card-border: rgba(255, 255, 255, 0.8);
  --btn-bg: rgba(255, 253, 250, 0.76); --btn-hover: rgba(255, 255, 255, 0.98); --btn-border: rgba(40, 38, 46, 0.18);
  --accent: #8a2537; --accent-2: #a8324a; --accent-ink: #ffffff; --accent-soft: rgba(138, 37, 55, 0.1);
  --gold: #c98a12; --good: #2f7a52; --warn: #b5243c;
  --sheet: #fbf9f6; --sheet-2: #f0ece6; --shadow: 30, 28, 36; --backdrop: rgba(24, 22, 28, 0.4);
  --toast-bg: rgba(30, 29, 35, 0.95); --toast-ink: #fbf9f6;
}
[data-style="glass"][data-theme="dark"] {
  --bg-a: #121116; --bg-b: #1b1a21; --bg-c: rgba(168, 40, 63, 0.22); --bg-d: rgba(44, 85, 176, 0.22);
  --ink: #f2eff7; --ink-soft: #b9b4c6; --line: rgba(240, 236, 255, 0.12);
  --card: rgba(32, 30, 40, 0.7); --card-border: rgba(255, 255, 255, 0.08);
  --btn-bg: rgba(38, 36, 48, 0.85); --btn-hover: rgba(52, 50, 64, 0.96); --btn-border: rgba(255, 255, 255, 0.12);
  --accent: #ff9aaa; --accent-2: #ffb8c3; --accent-ink: #2b0a12; --accent-soft: rgba(255, 154, 170, 0.13);
  --gold: #ffcf5a; --good: #8fdcb0; --warn: #ff8195;
  --sheet: #1c1b22; --sheet-2: #25232d; --shadow: 0, 0, 0; --backdrop: rgba(4, 4, 8, 0.6);
  --toast-bg: rgba(242, 239, 247, 0.96); --toast-ink: #1c1b22;
}
[data-theme="dark"] { color-scheme: dark; }

* { box-sizing: border-box; }
/* iPhone, iPad: no double-tap zoom — 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; }
[hidden] { display: none !important; }
html, body { height: 100%; margin: 0; overflow: hidden; overscroll-behavior: none; }
body {
  font-family: var(--sans);
  color: var(--ink);
  background: var(--bg-a);
  -webkit-user-select: none;
  user-select: none;
  -webkit-tap-highlight-color: transparent;
  -webkit-touch-callout: none;
  -webkit-text-size-adjust: 100%;
  touch-action: pan-x pan-y;
}
input, select, textarea, .prose p, .prose li { -webkit-user-select: text; user-select: text; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; margin: -1px; }

/* -------------------------------------------------------------- backgrounds */
.bg { position: fixed; inset: 0; z-index: 0; pointer-events: none; overflow: hidden; background: linear-gradient(170deg, var(--bg-a) 0%, var(--bg-b) 62%); transition: background 0.6s; }
.bg i { position: absolute; display: block; }
/* meadow: a sky, a warm sun, two rolling hills */
[data-style="meadow"] .bg .l1 { width: calc(70vmax / var(--ca-zoom, 1)); height: calc(70vmax / var(--ca-zoom, 1)); right: calc(-24vmax / var(--ca-zoom, 1)); top: calc(-30vmax / var(--ca-zoom, 1)); border-radius: 50%; background: radial-gradient(circle closest-side, rgba(255, 238, 170, 0.75), rgba(255, 238, 170, 0.25) 45%, transparent 70%); }
[data-style="meadow"][data-theme="dark"] .bg .l1 { background: radial-gradient(circle closest-side, rgba(220, 230, 255, 0.22), rgba(200, 210, 255, 0.06) 45%, transparent 70%); }
[data-style="meadow"] .bg .l2 { left: calc(-30vw / var(--ca-zoom, 1)); right: calc(-10vw / var(--ca-zoom, 1)); bottom: calc(-38vh / var(--ca-zoom, 1)); height: calc(70vh / var(--ca-zoom, 1)); border-radius: 50%; background: radial-gradient(ellipse at 50% 30%, var(--bg-c), transparent 70%); }
[data-style="meadow"] .bg .l3 { left: calc(20vw / var(--ca-zoom, 1)); right: calc(-40vw / var(--ca-zoom, 1)); bottom: calc(-44vh / var(--ca-zoom, 1)); height: calc(72vh / var(--ca-zoom, 1)); border-radius: 50%; background: radial-gradient(ellipse at 40% 30%, var(--bg-d), transparent 68%); }
/* night: a starfield and a soft band of milk */
[data-style="night"] .bg .l1 { inset: -10%; background:
    radial-gradient(1.2px 1.2px at 12% 18%, rgba(255, 255, 255, 0.9), transparent 60%),
    radial-gradient(1px 1px at 72% 12%, rgba(255, 255, 255, 0.75), transparent 60%),
    radial-gradient(1.6px 1.6px at 38% 36%, rgba(255, 246, 220, 0.85), transparent 60%),
    radial-gradient(1px 1px at 86% 44%, rgba(255, 255, 255, 0.7), transparent 60%),
    radial-gradient(1.3px 1.3px at 22% 72%, rgba(220, 230, 255, 0.8), transparent 60%),
    radial-gradient(1px 1px at 58% 82%, rgba(255, 255, 255, 0.65), transparent 60%),
    radial-gradient(1.5px 1.5px at 92% 88%, rgba(255, 240, 210, 0.8), transparent 60%),
    radial-gradient(1px 1px at 48% 6%, rgba(255, 255, 255, 0.7), transparent 60%);
  background-size: 260px 260px; opacity: 0.9; }
[data-style="night"][data-theme="light"] .bg .l1 { opacity: 0.25; filter: invert(0.6) sepia(0.4) hue-rotate(200deg); }
[data-style="night"] .bg .l2 { left: -20%; right: -20%; top: 30%; height: 40%; transform: rotate(-18deg); background: radial-gradient(ellipse at center, var(--bg-c), transparent 70%); opacity: 0.8; }
[data-style="night"] .bg .l3 { width: calc(60vmax / var(--ca-zoom, 1)); height: calc(60vmax / var(--ca-zoom, 1)); left: calc(-20vmax / var(--ca-zoom, 1)); bottom: calc(-26vmax / var(--ca-zoom, 1)); border-radius: 50%; background: radial-gradient(circle closest-side, var(--bg-d), transparent 72%); }
/* glass: pools of coloured light on stone, and the rays that make them */
[data-style="glass"] .bg .l1 { width: calc(80vmax / var(--ca-zoom, 1)); height: calc(80vmax / var(--ca-zoom, 1)); left: calc(-30vmax / var(--ca-zoom, 1)); top: calc(-30vmax / var(--ca-zoom, 1)); border-radius: 50%; background: radial-gradient(circle closest-side, var(--bg-c), transparent 70%); }
[data-style="glass"] .bg .l2 { width: calc(70vmax / var(--ca-zoom, 1)); height: calc(70vmax / var(--ca-zoom, 1)); right: calc(-28vmax / var(--ca-zoom, 1)); bottom: calc(-30vmax / var(--ca-zoom, 1)); border-radius: 50%; background: radial-gradient(circle closest-side, var(--bg-d), transparent 70%); }
[data-style="glass"] .bg .l3 { inset: -20%; background: repeating-linear-gradient(115deg, rgba(255, 255, 255, 0.06) 0 40px, transparent 40px 140px); }
[data-style="glass"][data-theme="dark"] .bg .l3 { background: repeating-linear-gradient(115deg, rgba(255, 255, 255, 0.025) 0 40px, transparent 40px 140px); }

/* ------------------------------------------------------------------- layout */
.app {
  position: fixed; inset: 0; z-index: 1; display: flex; flex-direction: column;
  max-width: 760px; margin: 0 auto;
  padding: env(safe-area-inset-top) env(safe-area-inset-right) env(safe-area-inset-bottom) env(safe-area-inset-left);
}
.top { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 10px 10px 4px 14px; }
/* The puzzle's line — a level, today's daily, a friend's challenge, a race, and the meadow's size — in
   the bar's middle between the brand and the tools (App Standard §4.1). On a phone the brand keeps only
   its mark and icon beside it; a long line takes a second row, and the SDK's tools go to the menu before
   it is squeezed. In the side column of a phone held sideways the HUD's first box says the mode. */
.mode-line { flex: 1 1 0; min-width: 7.5em; margin: 0; font-size: 12.5px; line-height: 1.25; color: var(--ink-soft); letter-spacing: 0.02em; text-align: center; display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; overflow: hidden; text-wrap: balance; }
.mode-line:empty { visibility: hidden; }
@media (max-width: 599.98px) {
  .top .ca-start { flex: none; width: var(--ca-brand-icon-w); }
}

.icon-btn {
  appearance: none; border: 0; background: transparent; color: var(--ink);
  width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center; cursor: pointer;
  transition: background 0.2s, transform 0.2s var(--spring);
}
.icon-btn:hover { background: var(--accent-soft); }
.icon-btn:active { transform: scale(0.9); }
.icon-btn svg, .btn svg, .tabs svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; flex: 0 0 auto; }
:focus-visible { outline: 2.5px solid var(--accent); outline-offset: 2px; }
.board:focus-visible { outline: none; }

.stats { display: grid; grid-template-columns: 1.1fr 1fr 1fr 0.9fr; gap: 8px; padding: 4px 14px 6px; }
.stat {
  background: var(--card); border: 1px solid var(--card-border); border-radius: 13px; padding: 5px 6px;
  display: flex; flex-direction: column; align-items: center; line-height: 1.15; min-width: 0;
  box-shadow: 0 1px 2px rgba(var(--shadow), 0.06);
}
.stat span { font-size: 10.5px; letter-spacing: 0.07em; text-transform: uppercase; color: var(--ink-soft); white-space: nowrap; max-width: 100%; overflow: hidden; text-overflow: ellipsis; }
.stat b { font-family: var(--serif); font-size: 19px; font-weight: 600; font-variant-numeric: tabular-nums lining-nums; white-space: nowrap; max-width: 100%; overflow: hidden; text-overflow: ellipsis; }
.stat.meadows b { transition: color 0.4s; }
.stat.meadows.done b { color: var(--good); }
.stat.off b { visibility: hidden; }

.stage { flex: 1; min-height: 0; position: relative; margin: 0 4px; }
.board { position: absolute; inset: 0; width: 100%; height: 100%; display: block; touch-action: none; outline: none; }
.busy {
  position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%);
  display: flex; align-items: center; gap: 10px; padding: 10px 16px; border-radius: 999px;
  background: var(--sheet); color: var(--ink-soft); box-shadow: 0 6px 20px rgba(var(--shadow), 0.22); font-size: 14px; white-space: nowrap;
  animation: fade 0.3s;
}
.busy i { width: 16px; height: 16px; border-radius: 50%; border: 2px solid var(--accent-soft); border-top-color: var(--accent); animation: spin 0.9s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
@keyframes fade { from { opacity: 0; } }

.countdown {
  position: absolute; inset: 0; display: grid; place-items: center; pointer-events: none;
  font-family: var(--serif); font-size: clamp(48px, calc(18vmin / var(--ca-zoom, 1)), 120px); font-weight: 600; color: var(--accent);
  text-shadow: 0 4px 30px rgba(var(--shadow), 0.3);
}
.countdown span { animation: count 0.9s var(--ease) both; }
@keyframes count { from { transform: scale(1.6); opacity: 0; } 40% { transform: scale(1); opacity: 1; } to { transform: scale(0.85); opacity: 0; } }
.countdown.cover { background: color-mix(in srgb, var(--sheet) 80%, transparent); pointer-events: auto; border-radius: 18px; }

/* the hint, in words, over the bottom of the board */
.hint-card {
  position: absolute; left: 10px; right: 10px; bottom: 6px; margin: 0 auto; max-width: 520px;
  display: flex; align-items: center; gap: 10px; padding: 10px 10px 10px 14px; border-radius: 16px;
  background: var(--sheet); border: 1px solid var(--card-border); box-shadow: 0 10px 30px -8px rgba(var(--shadow), 0.45);
  transform: translateY(12px); opacity: 0; transition: transform 0.3s var(--spring), opacity 0.2s;
}
.hint-card.show { transform: none; opacity: 1; }
.hint-card p { flex: 1; margin: 0; font-size: 14px; line-height: 1.4; max-height: 7.2em; overflow: auto; overscroll-behavior: contain; -webkit-user-select: text; user-select: text; }
.hint-actions { display: flex; flex-direction: column; gap: 6px; flex: 0 0 auto; }
.hint-actions .btn { margin: 0; min-height: 40px; padding: 8px 12px; }
.hint-actions .btn.subtle { min-height: 32px; padding: 4px; align-self: flex-end; }

.actions { display: flex; gap: 8px; padding: 6px 14px 12px; }
.btn {
  appearance: none; flex: 1; min-width: 0; border: 1px solid var(--btn-border); background: var(--btn-bg); color: var(--ink);
  font: 500 15px var(--sans); padding: 10px 12px; min-height: 48px; border-radius: 14px;
  display: inline-flex; align-items: center; justify-content: center; gap: 8px; cursor: pointer;
  box-shadow: 0 1px 2px rgba(var(--shadow), 0.08);
  transition: transform 0.15s, background 0.2s, opacity 0.2s, box-shadow 0.2s;
}
.btn svg { width: 19px; height: 19px; }
.btn span { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.btn.square { flex: 0 0 52px; padding: 0; }
.btn.square svg { width: 22px; height: 22px; }
.btn:hover { background: var(--btn-hover); }
.btn:active { transform: scale(0.96); }
.btn:disabled { opacity: 0.4; cursor: default; transform: none; }
.btn.primary {
  background: linear-gradient(180deg, var(--accent-2), var(--accent)); color: var(--accent-ink); border-color: transparent;
  box-shadow: 0 4px 12px -4px rgba(var(--shadow), 0.55), inset 0 1px 0 rgba(255, 255, 255, 0.25);
}
.btn.primary:hover { filter: brightness(1.06); }
.btn.primary.next { animation: nudge 2.6s var(--ease) infinite; flex: 1.7; }
@keyframes nudge { 0%, 70%, 100% { transform: none; } 80% { transform: translateX(3px); } 90% { transform: translateX(-1px); } }
.btn.subtle { flex: 0 0 auto; background: transparent; box-shadow: none; border-color: transparent; color: var(--ink-soft); font-size: 14px; min-height: 40px; }
.btn.subtle:hover { background: var(--accent-soft); color: var(--ink); }
.btn.small { flex: 0 0 auto; min-height: 40px; padding: 6px 12px; font-size: 14px; border-radius: 12px; }
.btn.wide { width: 100%; flex: none; }

/* ------------------------------------------------------------ the race bar */
.race-bar { display: flex; gap: 6px; padding: 0 14px 4px; overflow-x: auto; overscroll-behavior: contain; scrollbar-width: none; }
.race-bar::-webkit-scrollbar { display: none; }
.racer { flex: 1 0 auto; min-width: 86px; max-width: 200px; display: flex; align-items: center; gap: 7px; padding: 4px 8px 4px 4px; border-radius: 12px; background: var(--card); border: 1px solid var(--card-border); }
.racer .fig { width: 28px; height: 28px; font-size: 13px; }
.racer .who { display: flex; flex-direction: column; min-width: 0; flex: 1; line-height: 1.15; }
.racer .who b { font-size: 12.5px; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.racer .who small { font-size: 11px; color: var(--ink-soft); white-space: nowrap; }
.racer .bar { height: 4px; border-radius: 4px; background: var(--line); overflow: hidden; margin-top: 3px; }
.racer .bar i { display: block; height: 100%; width: 100%; background: var(--accent); transform-origin: left; transform: scaleX(var(--p, 0)); transition: transform 0.4s var(--ease); }
.racer.done { border-color: var(--good); }
.racer.done .bar i { background: var(--good); }
.racer.out { opacity: 0.5; }
.racer.me { background: var(--accent-soft); }

/* ------------------------------------------------------------ toast, backdrop */
.toast {
  position: fixed; left: 50%; bottom: calc(86px + env(safe-area-inset-bottom)); z-index: 60; max-width: min(calc(92vw / var(--ca-zoom, 1)), 440px);
  transform: translate(-50%, 16px); opacity: 0; pointer-events: none;
  background: var(--toast-bg); color: var(--toast-ink); padding: 10px 16px; border-radius: 14px; font-size: 14px; line-height: 1.35; text-align: center;
  box-shadow: 0 10px 30px -10px rgba(0, 0, 0, 0.5); transition: transform 0.3s var(--spring), opacity 0.25s;
}
.toast.show { transform: translate(-50%, 0); opacity: 1; }
.backdrop { position: fixed; inset: 0; z-index: 40; background: var(--backdrop); opacity: 0; transition: opacity 0.25s; }
.backdrop.show { opacity: 1; }

/* ------------------------------------------------------------------ sheets */
.sheet {
  position: fixed; z-index: 50; left: 0; right: 0; bottom: 0; margin: 0 auto; width: min(100%, 560px);
  max-height: min(calc(88dvh / var(--ca-zoom, 1)), 860px); display: flex; flex-direction: column;
  background: var(--sheet); color: var(--ink); border-radius: 22px 22px 0 0;
  box-shadow: 0 -10px 40px -10px rgba(var(--shadow), 0.45);
  transform: translateY(104%); transition: transform 0.34s var(--ease);
  padding-bottom: env(safe-area-inset-bottom);
}
.sheet.show { transform: none; }
.sheet > header { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 12px 10px 4px 20px; flex: 0 0 auto; }
.sheet > header h2 { margin: 0; font-family: var(--serif); font-size: 21px; font-weight: 600; }
.sheet-tabs { flex: 0 0 auto; padding: 4px 14px 6px; }
.sheet-tabs:empty { display: none; }
.sheet-body { flex: 1 1 auto; min-height: 0; overflow-y: auto; overscroll-behavior: contain; padding: 6px 20px 22px; -webkit-overflow-scrolling: touch; }
.sheet-body h3 { font-family: var(--serif); font-size: 17px; font-weight: 600; margin: 20px 0 8px; }
.sheet-body h3:first-child { margin-top: 6px; }
.sheet-body h4 { font-size: 13px; letter-spacing: 0.06em; text-transform: uppercase; color: var(--ink-soft); margin: 16px 0 6px; font-weight: 600; }
.muted { color: var(--ink-soft); }
.small { font-size: 13px; }
.note { font-size: 14px; color: var(--ink-soft); background: var(--sheet-2); border-radius: 12px; padding: 10px 12px; }
.stack { display: flex; flex-direction: column; gap: 8px; margin: 12px 0; }
.version { color: var(--ink-soft); font-size: 12.5px; margin-top: 18px; }
@media (min-width: 700px) and (min-height: 560px) {
  .sheet { bottom: auto; top: 50%; border-radius: 22px; transform: translateY(-46%) scale(0.98); opacity: 0; transition: transform 0.3s var(--ease), opacity 0.22s; max-height: min(calc(84dvh / var(--ca-zoom, 1)), 820px); }
  .sheet.show { transform: translateY(-50%); opacity: 1; }
}

.tabs { display: flex; gap: 4px; padding: 3px; border-radius: 14px; background: var(--sheet-2); overflow-x: auto; scrollbar-width: none; overscroll-behavior: contain; }
.tabs::-webkit-scrollbar { display: none; }
.tabs button {
  appearance: none; flex: 1 0 auto; border: 0; background: transparent; color: var(--ink-soft); font: 500 14px var(--sans);
  min-height: 40px; padding: 6px 10px; border-radius: 11px; display: inline-flex; align-items: center; justify-content: center; gap: 6px; cursor: pointer;
  transition: background 0.2s, color 0.2s;
}
.tabs button svg { width: 18px; height: 18px; }
.tabs button[aria-selected="true"] { background: var(--sheet); color: var(--ink); box-shadow: 0 1px 4px rgba(var(--shadow), 0.14); }
.tabs.pills { background: transparent; padding: 0 0 4px; flex-wrap: wrap; overflow: visible; }
.tabs.pills button { flex: 0 0 auto; border: 1px solid var(--line); min-height: 36px; border-radius: 999px; padding: 4px 12px; }
.tabs.pills button[aria-selected="true"] { background: var(--accent); color: var(--accent-ink); border-color: transparent; }

/* -------------------------------------------------------------- the daily */
.daily-card { display: flex; gap: 14px; align-items: center; padding: 14px; border-radius: 18px; background: linear-gradient(140deg, var(--accent-soft), transparent 70%), var(--sheet-2); }
.daily-art { width: 64px; height: 64px; flex: 0 0 auto; border-radius: 18px; display: grid; place-items: center; background: linear-gradient(160deg, var(--accent-2), var(--accent)); color: var(--accent-ink); box-shadow: 0 6px 16px -6px rgba(var(--shadow), 0.5); }
.daily-art svg { width: 34px; height: 34px; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linejoin: round; stroke-linecap: round; }
.daily-info { min-width: 0; }
.daily-info h3 { margin: 0 0 2px !important; }
.daily-info p { margin: 2px 0; font-size: 14px; }
.streak { display: flex; align-items: center; gap: 6px; color: var(--ink); font-weight: 500; }
.streak svg { width: 18px; height: 18px; flex: 0 0 auto; fill: var(--gold); stroke: none; }
.done-line { display: flex; align-items: center; gap: 8px; margin: 0; font-weight: 600; color: var(--good); }
.done-line svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }
.board-host { min-height: 60px; }

/* ------------------------------------------------------------- the levels */
.chapters { display: flex; gap: 8px; overflow-x: auto; padding: 4px 2px 8px; margin: 0 -2px; scrollbar-width: none; overscroll-behavior: contain; }
.chapters::-webkit-scrollbar { display: none; }
.chapter {
  appearance: none; position: relative; flex: 0 0 auto; min-width: 86px; border: 1px solid var(--line); background: var(--sheet-2); color: var(--ink);
  border-radius: 14px; padding: 8px 10px 10px; display: flex; flex-direction: column; align-items: flex-start; gap: 1px; cursor: pointer; font: inherit; overflow: hidden;
  transition: transform 0.2s var(--spring), border-color 0.2s;
}
.chapter b { font-family: var(--serif); font-size: 17px; font-weight: 600; }
.chapter small { font-size: 12px; color: var(--ink-soft); }
.chapter .meter { position: absolute; left: 0; right: 0; bottom: 0; height: 4px; background: var(--good); transform-origin: left; transform: scaleX(var(--p, 0)); }
.chapter[aria-selected="true"] { border-color: var(--accent); box-shadow: 0 0 0 2px var(--accent-soft); }
.chapter.locked { opacity: 0.6; }
.chapter .lock { position: absolute; top: 8px; right: 8px; width: 14px; height: 14px; fill: none; stroke: currentColor; stroke-width: 2; }
.chapter-line { display: flex; flex-wrap: wrap; gap: 4px 10px; align-items: baseline; margin: 6px 0 10px; }
.chapter-line b { font-family: var(--serif); font-size: 16px; }
.levels { display: grid; grid-template-columns: repeat(auto-fill, minmax(64px, 1fr)); gap: 9px; }
.level {
  appearance: none; position: relative; aspect-ratio: 1; border: 1px solid var(--line); border-radius: 14px; padding: 0; overflow: hidden;
  background: var(--sheet-2); color: var(--ink); cursor: pointer; font: inherit; transition: transform 0.2s var(--spring), box-shadow 0.2s;
}
.level:hover:not(:disabled) { transform: translateY(-2px); box-shadow: 0 6px 14px -6px rgba(var(--shadow), 0.4); }
.level .pic { position: absolute; inset: 0; opacity: 0.55; transition: opacity 0.3s; }
.level .pic canvas { width: 100%; height: 100%; display: block; }
.level.done .pic { opacity: 1; }
.level .num { position: absolute; left: 6px; top: 4px; font-family: var(--serif); font-size: 16px; font-weight: 700; color: var(--ink); text-shadow: 0 0 6px var(--sheet), 0 0 2px var(--sheet); }
.level.done .num { font-size: 13px; }
.level .mini-stars { position: absolute; left: 0; right: 0; bottom: 3px; display: flex; justify-content: center; gap: 1px; }
.level .mini-stars svg { width: 14px; height: 14px; fill: rgba(255, 255, 255, 0.55); stroke: rgba(0, 0, 0, 0.35); stroke-width: 1.2; }
.level .mini-stars svg.on { fill: var(--gold); stroke: rgba(80, 50, 0, 0.6); }
.level.current { box-shadow: 0 0 0 2.5px var(--accent); }
.level.locked { cursor: default; opacity: 0.55; }
.level .lock { position: absolute; inset: 0; margin: auto; width: 20px; height: 20px; fill: none; stroke: var(--ink-soft); stroke-width: 1.8; }

/* ------------------------------------------------------------- free play */
.sizes { display: flex; flex-direction: column; gap: 8px; margin-top: 8px; }
.size-row { display: flex; align-items: center; gap: 12px; padding: 8px 8px 8px 10px; border-radius: 16px; background: var(--sheet-2); }
.size-badge { flex: 0 0 auto; width: 52px; height: 44px; border-radius: 12px; display: grid; place-items: center; font-family: var(--serif); font-weight: 700; font-size: 16px; background: var(--accent-soft); color: var(--ink); }
.size-text { flex: 1; min-width: 0; display: flex; flex-direction: column; line-height: 1.25; }
.size-text small { color: var(--ink-soft); font-size: 12.5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.size-row .btn.primary { width: 44px; padding: 0; }

/* the race's size */
.size-pick { display: grid; grid-template-columns: repeat(auto-fill, minmax(62px, 1fr)); gap: 6px; }
.size-pick button { appearance: none; min-height: 44px; border-radius: 12px; border: 1px solid var(--line); background: var(--sheet-2); color: var(--ink); font: 600 15px var(--serif); cursor: pointer; }
.size-pick button[aria-checked="true"] { background: var(--accent); color: var(--accent-ink); border-color: transparent; }

/* ----------------------------------------------------------------- rules */
.rules-fig { display: flex; align-items: center; justify-content: center; gap: 12px; margin: 4px 0 12px; }
.rules-fig canvas { width: 132px; height: 132px; border-radius: 12px; box-shadow: 0 6px 18px -8px rgba(var(--shadow), 0.5); }
.rules-fig .arrow { font-size: 22px; color: var(--ink-soft); }
.prose p, .prose li { font-size: 15px; line-height: 1.55; margin: 0 0 10px; }
.prose .lead { font-size: 16.5px; font-weight: 500; }
.tips { padding-left: 20px; }

/* --------------------------------------------------------------- settings */
.looks { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin-bottom: 8px; }
.look { appearance: none; border: 2px solid transparent; background: var(--sheet-2); color: var(--ink); border-radius: 16px; padding: 8px 6px 6px; display: flex; flex-direction: column; align-items: center; gap: 6px; cursor: pointer; font: 500 13.5px var(--sans); transition: border-color 0.2s, transform 0.2s var(--spring); }
.look canvas { width: 84px; max-width: 100%; height: auto; aspect-ratio: 1; border-radius: 10px; }
.look[aria-checked="true"] { border-color: var(--accent); }
.look:active { transform: scale(0.96); }
.row { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 12px 0; border-bottom: 1px solid var(--line); }
.row-text { display: flex; flex-direction: column; min-width: 0; }
.row-text b { font-weight: 500; font-size: 15px; }
.row-text small { color: var(--ink-soft); font-size: 12.5px; line-height: 1.35; margin-top: 2px; }
.toggle { position: relative; cursor: pointer; }
.toggle input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.switch { flex: 0 0 auto; width: 46px; height: 28px; border-radius: 14px; background: var(--line); position: relative; transition: background 0.2s; }
.switch::after { content: ""; position: absolute; left: 3px; top: 3px; width: 22px; height: 22px; border-radius: 50%; background: #fff; box-shadow: 0 1px 3px rgba(0, 0, 0, 0.3); transition: transform 0.25s var(--spring); }
.toggle input:checked + .switch { background: var(--accent); }
.toggle input:checked + .switch::after { transform: translateX(18px); }
.toggle input:focus-visible + .switch { outline: 2.5px solid var(--accent); outline-offset: 2px; }
.seg { display: flex; gap: 2px; padding: 3px; border-radius: 12px; background: var(--sheet-2); flex: 0 1 auto; flex-wrap: wrap; justify-content: flex-end; }
.seg button { appearance: none; border: 0; background: transparent; color: var(--ink-soft); font: 500 13.5px var(--sans); min-height: 36px; padding: 4px 10px; border-radius: 9px; cursor: pointer; }
.seg button[aria-checked="true"] { background: var(--sheet); color: var(--ink); box-shadow: 0 1px 4px rgba(var(--shadow), 0.14); }
.choice { flex-wrap: wrap; }
.select { font: 15px var(--sans); color: var(--ink); background: var(--sheet-2); border: 1px solid var(--line); border-radius: 10px; padding: 8px 10px; min-height: 40px; }
#settings-body > .btn.subtle { margin: 10px 0 0 -8px; }

/* ----------------------------------------------------------------- results */
.tiles { display: grid; grid-template-columns: repeat(auto-fill, minmax(96px, 1fr)); gap: 8px; }
.tile { display: flex; flex-direction: column; gap: 2px; padding: 10px 12px; border-radius: 14px; background: var(--sheet-2); }
.tile span { font-size: 11.5px; letter-spacing: 0.05em; text-transform: uppercase; color: var(--ink-soft); }
.tile b { font-family: var(--serif); font-size: 20px; font-weight: 600; font-variant-numeric: tabular-nums; }
.times { display: grid; grid-template-columns: repeat(auto-fill, minmax(120px, 1fr)); gap: 4px 16px; }
.time-row { display: flex; justify-content: space-between; padding: 6px 0; border-bottom: 1px solid var(--line); font-size: 14px; }
.time-row b { font-variant-numeric: tabular-nums; }
.cards, .friend-list { display: flex; flex-direction: column; gap: 8px; }
.friend-card, .friend-row { display: flex; align-items: center; gap: 12px; padding: 8px 10px; border-radius: 14px; background: var(--sheet-2); }
.fig { flex: 0 0 auto; width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; overflow: hidden; background: var(--accent-soft); color: var(--ink); font-weight: 700; }
.fig > * { width: 100%; height: 100%; }
.card-text { display: flex; flex-direction: column; min-width: 0; line-height: 1.3; }
.card-text small { color: var(--ink-soft); font-size: 12.5px; }
.card-text .today { color: var(--good); }
.friend-row .name { flex: 1; min-width: 0; font-weight: 500; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ch-head { display: flex; gap: 14px; align-items: center; margin: 4px 0 14px; }
.ch-head canvas { width: 96px; height: 96px; flex: 0 0 auto; border-radius: 12px; box-shadow: 0 6px 18px -8px rgba(var(--shadow), 0.5); }
.ch-head p { margin: 0; font-size: 15px; line-height: 1.45; }

/* ---------------------------------------------------------------- dialogs */
.dialog {
  position: fixed; z-index: 55; left: 50%; top: 50%; width: min(calc(92vw / var(--ca-zoom, 1)), 380px); max-height: calc(90dvh / var(--ca-zoom, 1)); overflow: auto; overscroll-behavior: contain;
  transform: translate(-50%, -46%) scale(0.96); opacity: 0; transition: transform 0.34s var(--spring), opacity 0.22s;
  background: var(--sheet); color: var(--ink); border-radius: 24px; padding: 22px 20px 16px; text-align: center;
  box-shadow: 0 30px 80px -24px rgba(var(--shadow), 0.6);
}
.dialog.show { transform: translate(-50%, -50%); opacity: 1; }
.dialog .row { border: 0; padding: 4px 0 0; gap: 8px; }
.dialog p { font-size: 15.5px; line-height: 1.45; margin: 0 0 14px; }
#confirm { z-index: 58; }
.result h2 { font-family: var(--serif); font-size: 26px; font-weight: 600; margin: 4px 0 6px; }
.result #result-text { color: var(--ink-soft); font-size: 14.5px; margin-bottom: 8px; }
.result .stars { display: flex; justify-content: center; gap: 6px; margin: 4px 0 10px; }
.result .stars svg { width: 40px; height: 40px; fill: var(--line); stroke: none; }
.result .stars svg.on { fill: var(--gold); filter: drop-shadow(0 2px 6px rgba(200, 140, 0, 0.45)); animation: pop 0.6s var(--spring) both; }
.result .stars svg.on:nth-child(2) { animation-delay: 0.15s; }
.result .stars svg.on:nth-child(3) { animation-delay: 0.3s; }
@keyframes pop { from { transform: scale(0) rotate(-40deg); } }
.total { display: flex; flex-direction: column; align-items: center; margin: 4px 0 10px; }
.total span { font-size: 12px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--ink-soft); }
.total b { font-family: var(--serif); font-size: 34px; font-weight: 600; font-variant-numeric: tabular-nums; }
.total em { font-style: normal; font-size: 13px; color: var(--good); font-weight: 600; }
.res-row { display: flex; justify-content: center; gap: 18px; margin-bottom: 10px; font-size: 14px; }
.res-row:empty { display: none; }
.res-row div { display: flex; gap: 6px; }
.res-row span { color: var(--ink-soft); }
.result .btn.subtle { margin: 8px auto 0; }
.petals { position: absolute; inset: 0; pointer-events: none; overflow: hidden; border-radius: inherit; }
.petals i { position: absolute; top: -12px; width: 10px; height: 10px; border-radius: 60% 0 60% 0; background: var(--gold); opacity: 0; }
.result.show .petals i { animation: drift 2.6s var(--ease) forwards; }
.petals i:nth-child(1) { left: 8%; animation-delay: 0.1s; background: #f3b8ae; }
.petals i:nth-child(2) { left: 22%; animation-delay: 0.5s; }
.petals i:nth-child(3) { left: 36%; animation-delay: 0.25s; background: #c8bdf0; }
.petals i:nth-child(4) { left: 50%; animation-delay: 0.7s; background: #a6d6ea; }
.petals i:nth-child(5) { left: 64%; animation-delay: 0.15s; background: #f6dc8f; }
.petals i:nth-child(6) { left: 76%; animation-delay: 0.45s; background: #bfe0a3; }
.petals i:nth-child(7) { left: 88%; animation-delay: 0.3s; background: #f5c1dd; }
.petals i:nth-child(8) { left: 44%; animation-delay: 0.9s; background: #9fdcc4; }
@keyframes drift { 0% { opacity: 0; transform: translate(0, 0) rotate(0); } 15% { opacity: 0.9; } 100% { opacity: 0; transform: translate(30px, 260px) rotate(320deg); } }

/* ------------------------------------------------------------ small screens */
@media (max-width: 440px) {
  .tabs button { padding: 6px 8px; gap: 5px; }
}
@media (max-width: 400px) {
  .sheet-tabs .tabs button svg { display: none; }
}
@media (max-width: 380px) {
  .stats { gap: 5px; padding: 2px 10px 4px; }
  .stat b { font-size: 17px; }
  .stat span { font-size: 9.5px; letter-spacing: 0.04em; }
  .actions { gap: 6px; padding: 6px 10px 10px; }
  .btn.square { flex-basis: 46px; }
  .btn { font-size: 14px; padding: 8px 10px; }
}
@media (max-width: 340px) {
  .btn { padding: 8px 8px; gap: 6px; } /* "Puzzles" whole beside Hint on a 320 px phone */
}
/* a tall screen upright (a portrait monitor, a big tablet): the column as wide as the height leaves
   room for the board */
@media (orientation: portrait) and (min-width: 800px) {
  .app { max-width: max(760px, calc(calc(100dvh / var(--ca-zoom, 1)) - 360px)); }
}
@media (max-height: 620px) and (orientation: portrait) {
  .top { padding-top: 4px; padding-bottom: 0; }
  .stat { padding: 2px 4px; }
  .stat span { font-size: 9px; }
  .stat b { font-size: 15px; }
  .btn { min-height: 42px; }
  .actions { padding-bottom: 6px; }
}
/* sideways: the board on the left, everything else in a column on the right */
@media (orientation: landscape) and (max-height: 560px) {
  .app { max-width: none; display: grid; grid-template-columns: minmax(0, 1fr) minmax(220px, 290px); grid-template-rows: auto auto auto 1fr; padding-left: max(env(safe-area-inset-left), 6px); }
  .stage { grid-column: 1; grid-row: 1 / span 4; margin: 4px 0; }
  .top { grid-column: 2; grid-row: 1; padding: 6px 4px 2px 6px; }
  .mode-line { display: none; }
  .top .ca-start { flex: 0 100 auto; width: auto; }
  .stats { grid-column: 2; grid-row: 2; grid-template-columns: 1fr 1fr; padding: 2px 6px; gap: 5px; }
  .race-bar { grid-column: 2; grid-row: 3; padding: 2px 6px; flex-wrap: wrap; }
  .actions { grid-column: 2; grid-row: 4; align-self: end; display: grid; grid-template-columns: 1fr 1fr; padding: 4px 6px 8px; gap: 6px; }
  .actions .btn.square { flex: none; width: auto; }
  .stat b { font-size: 16px; }
  .hint-card { bottom: 4px; }
}
@media (orientation: landscape) and (max-height: 560px) and (max-width: 640px) {
  .app { grid-template-columns: minmax(0, 1fr) 210px; }
  .btn { padding: 8px 8px; gap: 6px; font-size: 14px; } /* "Puzzles" whole in its half of the column */
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition-duration: 0.01ms !important; animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; }
}
html[data-ca-lite] .bg .l1, html[data-ca-lite] .bg .l3 { display: none; }

/* cloud-apps bar 1.30.0 */
:root { --ca-brand-icon-w: 89px; } /* the brand's width with the icon alone (the mark, the divider, the app's icon) */
.ca-start { display: flex; align-items: center; flex: 0 100 auto; min-width: min(var(--ca-brand-icon-w), 100%); }
.ca-brand { display: flex; align-items: center; min-width: 0; height: 40px; color: inherit; font-family: inherit; }
.ca-brand a { display: flex !important; align-items: center !important; box-sizing: border-box !important; color: inherit !important; text-decoration: none !important; border-radius: 12px !important; -webkit-tap-highlight-color: transparent; transition: background-color .15s ease; }
.ca-brand-home { flex: none !important; justify-content: center !important; width: 40px !important; height: 40px !important; padding: 0 !important; margin: 0 0 0 -5px !important; }
.ca-brand-home img { display: block !important; width: 30px !important; height: 30px !important; margin: 0 !important; transition: transform .38s cubic-bezier(.34, 1.56, .64, 1); }
.ca-brand-sep { flex: none; display: block; width: 1.5px; height: 18px; margin: 0 4px; border-radius: 1px; background: currentColor; opacity: .22; transform: rotate(18deg); }
.ca-brand-app { flex: 0 1 auto !important; min-width: 44px !important; height: 40px !important; padding: 0 9px 0 5px !important; margin: 0 !important; }
.ca-brand-in { display: flex; flex-wrap: wrap; align-items: center; align-content: flex-start; column-gap: 9px; min-width: 0; height: 40px; overflow: hidden; }
.ca-brand-in img { flex: none; display: block !important; width: 30px !important; height: 30px !important; margin: 5px 0 !important; border-radius: 8px; }
.ca-brand[data-ca-icon] .ca-brand-name { display: none !important; }
.ca-brand[data-ca-icon] .ca-brand-app { padding-right: 5px !important; }
.ca-brand-name { display: block; height: 40px; margin: 0 !important; padding: 0 !important; line-height: 40px !important; white-space: nowrap; font-family: var(--ca-brand-font, inherit); font-size: 17px !important; font-weight: 700; letter-spacing: -.015em; color: inherit; text-shadow: var(--ca-brand-shadow, none); }
@media (hover: hover) { .ca-brand a:hover { background-color: color-mix(in srgb, currentColor 7%, transparent); } .ca-brand-home:hover img { transform: rotate(-6deg) scale(1.06); } }
.ca-brand a:focus-visible { outline: 3px solid var(--ca-accent, #4f6bff); outline-offset: -3px; }
.ca-end { display: flex; align-items: center; justify-content: flex-end; gap: 10px; flex: none; min-width: 0; }
.ca-tools { display: flex; align-items: center; gap: 6px; }
.ca-tools[hidden] { display: none !important; }
.ca-tool { position: relative; flex: none; display: inline-grid; place-items: center !important; box-sizing: border-box !important; width: 36px !important; height: 36px !important; min-width: 0 !important; min-height: 0 !important; max-width: none !important; padding: 0 !important; margin: 0; border-radius: 50% !important;
  border: 1px solid var(--ca-tool-line, color-mix(in srgb, currentColor 16%, transparent)) !important; background: var(--ca-tool-bg, color-mix(in srgb, currentColor 6%, transparent)) !important; color: var(--ca-tool-ink, inherit) !important;
  font: inherit; line-height: 0 !important; letter-spacing: 0; text-decoration: none !important; box-shadow: none; cursor: pointer; -webkit-tap-highlight-color: transparent; transition: background-color .15s ease, transform .12s ease; }
.ca-tool[hidden] { display: none !important; }
.ca-tool::before { content: ""; position: absolute; inset: -4px; }
.ca-tool svg { display: block; width: 20px !important; height: 20px !important; margin: 0 !important; pointer-events: none; }
.ca-tool svg[hidden] { display: none !important; }
@media (hover: hover) { .ca-tool:hover { background: var(--ca-tool-hover, color-mix(in srgb, currentColor 13%, transparent)) !important; } }
.ca-tool:active { transform: scale(.94); }
.ca-tool:focus-visible { outline: 3px solid var(--ca-accent, #4f6bff); outline-offset: 2px; }
.ca-tool-talk { color: var(--ca-accent, #4f6bff) !important; border-color: color-mix(in srgb, var(--ca-accent, #4f6bff) 50%, transparent) !important; background: color-mix(in srgb, var(--ca-accent, #4f6bff) 13%, transparent) !important; }
.ca-tool .ca-tlive { position: absolute; top: 1px; right: 1px; width: 9px; height: 9px; border-radius: 50%; background: #22c55e; box-shadow: 0 0 0 2px color-mix(in srgb, #22c55e 30%, transparent); }
.ca-tool-talk.ca-new::after { content: ""; position: absolute; inset: -1px; border-radius: 50%; pointer-events: none; animation: ca-bar-ring 1.2s ease-out 2; }
@keyframes ca-bar-ring { from { box-shadow: 0 0 0 0 color-mix(in srgb, var(--ca-accent, #4f6bff) 55%, transparent); } to { box-shadow: 0 0 0 11px transparent; } }
.ca-tool .ca-tcount, .ca-tool .ca-tunread { position: absolute; right: -5px; display: grid; place-items: center; box-sizing: border-box; min-width: 17px; height: 17px; padding: 0 4px; border-radius: 9px; color: #fff; font: 700 10.5px/1 -apple-system, BlinkMacSystemFont, Inter, "Segoe UI", Roboto, sans-serif; font-variant-numeric: tabular-nums; letter-spacing: 0; pointer-events: none; }
.ca-tool .ca-tcount { bottom: -5px; background: #1f9d55; }
.ca-tool .ca-tunread { top: -5px; background: #e5484d; }
@media (max-width: 599.98px), (max-height: 499.98px) { .ca-tools-app { display: none !important; } }
.ca-end[data-ca-cramped] .ca-tools-app { display: none !important; }
.ca-end[data-ca-tight] .ca-tool-friends { display: none !important; }
@media (prefers-reduced-motion: reduce) { .ca-tool, .ca-brand a, .ca-brand-home img { transition: none; } .ca-tool-talk.ca-new::after { animation: none; } }
/* end of the cloud-apps bar */
/* ---- cloud-apps: big screens (App Standard §6.5) — written by `cloud-apps vendor-sdk`; do not edit ---- */
/* Past 1584 × 990 the page is laid out at about 1440 × 900 and zoomed to fill the screen; viewport
   units in this file are divided by --ca-zoom. cloud-kit.js turns it off where the engine has no
   standard zoom (html[data-ca-zoom="off"]). */
@media (min-width: 1585px) and (min-height: 991px) { :root { --ca-zoom: 1.1; } }
@media (min-width: 1656px) and (min-height: 1035px) { :root { --ca-zoom: 1.15; } }
@media (min-width: 1728px) and (min-height: 1080px) { :root { --ca-zoom: 1.2; } }
@media (min-width: 1800px) and (min-height: 1125px) { :root { --ca-zoom: 1.25; } }
@media (min-width: 1872px) and (min-height: 1170px) { :root { --ca-zoom: 1.3; } }
@media (min-width: 1945px) and (min-height: 1215px) { :root { --ca-zoom: 1.35; } }
@media (min-width: 2016px) and (min-height: 1260px) { :root { --ca-zoom: 1.4; } }
@media (min-width: 2088px) and (min-height: 1305px) { :root { --ca-zoom: 1.45; } }
@media (min-width: 2160px) and (min-height: 1350px) { :root { --ca-zoom: 1.5; } }
@media (min-width: 2232px) and (min-height: 1395px) { :root { --ca-zoom: 1.55; } }
@media (min-width: 2304px) and (min-height: 1440px) { :root { --ca-zoom: 1.6; } }
@media (min-width: 2376px) and (min-height: 1485px) { :root { --ca-zoom: 1.65; } }
@media (min-width: 2448px) and (min-height: 1530px) { :root { --ca-zoom: 1.7; } }
@media (min-width: 2520px) and (min-height: 1575px) { :root { --ca-zoom: 1.75; } }
@media (min-width: 2592px) and (min-height: 1620px) { :root { --ca-zoom: 1.8; } }
@media (min-width: 2664px) and (min-height: 1665px) { :root { --ca-zoom: 1.85; } }
@media (min-width: 2736px) and (min-height: 1710px) { :root { --ca-zoom: 1.9; } }
@media (min-width: 2808px) and (min-height: 1755px) { :root { --ca-zoom: 1.95; } }
@media (min-width: 2880px) and (min-height: 1800px) { :root { --ca-zoom: 2; } }
@media (min-width: 2952px) and (min-height: 1845px) { :root { --ca-zoom: 2.05; } }
@media (min-width: 3024px) and (min-height: 1890px) { :root { --ca-zoom: 2.1; } }
@media (min-width: 3096px) and (min-height: 1935px) { :root { --ca-zoom: 2.15; } }
@media (min-width: 3169px) and (min-height: 1981px) { :root { --ca-zoom: 2.2; } }
@media (min-width: 3240px) and (min-height: 2025px) { :root { --ca-zoom: 2.25; } }
@media (min-width: 3312px) and (min-height: 2070px) { :root { --ca-zoom: 2.3; } }
@media (min-width: 3384px) and (min-height: 2115px) { :root { --ca-zoom: 2.35; } }
@media (min-width: 3456px) and (min-height: 2160px) { :root { --ca-zoom: 2.4; } }
@media (min-width: 3529px) and (min-height: 2205px) { :root { --ca-zoom: 2.45; } }
@media (min-width: 3600px) and (min-height: 2250px) { :root { --ca-zoom: 2.5; } }
@media (min-width: 3672px) and (min-height: 2295px) { :root { --ca-zoom: 2.55; } }
@media (min-width: 3744px) and (min-height: 2340px) { :root { --ca-zoom: 2.6; } }
@media (min-width: 3816px) and (min-height: 2385px) { :root { --ca-zoom: 2.65; } }
@media (min-width: 3889px) and (min-height: 2430px) { :root { --ca-zoom: 2.7; } }
@media (min-width: 3960px) and (min-height: 2475px) { :root { --ca-zoom: 2.75; } }
@media (min-width: 4032px) and (min-height: 2520px) { :root { --ca-zoom: 2.8; } }
@media (min-width: 4104px) and (min-height: 2565px) { :root { --ca-zoom: 2.85; } }
@media (min-width: 4176px) and (min-height: 2610px) { :root { --ca-zoom: 2.9; } }
@media (min-width: 4248px) and (min-height: 2655px) { :root { --ca-zoom: 2.95; } }
@media (min-width: 4320px) and (min-height: 2700px) { :root { --ca-zoom: 3; } }
@media (min-width: 4392px) and (min-height: 2745px) { :root { --ca-zoom: 3.05; } }
@media (min-width: 4464px) and (min-height: 2790px) { :root { --ca-zoom: 3.1; } }
@media (min-width: 4536px) and (min-height: 2835px) { :root { --ca-zoom: 3.15; } }
@media (min-width: 4608px) and (min-height: 2880px) { :root { --ca-zoom: 3.2; } }
@media (min-width: 4680px) and (min-height: 2925px) { :root { --ca-zoom: 3.25; } }
@media (min-width: 4752px) and (min-height: 2970px) { :root { --ca-zoom: 3.3; } }
@media (min-width: 4824px) and (min-height: 3015px) { :root { --ca-zoom: 3.35; } }
@media (min-width: 4896px) and (min-height: 3060px) { :root { --ca-zoom: 3.4; } }
@media (min-width: 4968px) and (min-height: 3105px) { :root { --ca-zoom: 3.45; } }
@media (min-width: 5040px) and (min-height: 3150px) { :root { --ca-zoom: 3.5; } }
@media (min-width: 5112px) and (min-height: 3195px) { :root { --ca-zoom: 3.55; } }
@media (min-width: 5184px) and (min-height: 3240px) { :root { --ca-zoom: 3.6; } }
@media (min-width: 5256px) and (min-height: 3285px) { :root { --ca-zoom: 3.65; } }
@media (min-width: 5328px) and (min-height: 3330px) { :root { --ca-zoom: 3.7; } }
@media (min-width: 5400px) and (min-height: 3375px) { :root { --ca-zoom: 3.75; } }
@media (min-width: 5472px) and (min-height: 3420px) { :root { --ca-zoom: 3.8; } }
@media (min-width: 5544px) and (min-height: 3465px) { :root { --ca-zoom: 3.85; } }
@media (min-width: 5616px) and (min-height: 3510px) { :root { --ca-zoom: 3.9; } }
@media (min-width: 5688px) and (min-height: 3555px) { :root { --ca-zoom: 3.95; } }
@media (min-width: 5760px) and (min-height: 3600px) { :root { --ca-zoom: 4; } }
@media (min-width: 5832px) and (min-height: 3645px) { :root { --ca-zoom: 4.05; } }
@media (min-width: 5904px) and (min-height: 3690px) { :root { --ca-zoom: 4.1; } }
@media (min-width: 5977px) and (min-height: 3736px) { :root { --ca-zoom: 4.15; } }
@media (min-width: 6048px) and (min-height: 3780px) { :root { --ca-zoom: 4.2; } }
@media (min-width: 6120px) and (min-height: 3825px) { :root { --ca-zoom: 4.25; } }
@media (min-width: 6192px) and (min-height: 3870px) { :root { --ca-zoom: 4.3; } }
@media (min-width: 6264px) and (min-height: 3915px) { :root { --ca-zoom: 4.35; } }
@media (min-width: 6337px) and (min-height: 3961px) { :root { --ca-zoom: 4.4; } }
@media (min-width: 6408px) and (min-height: 4005px) { :root { --ca-zoom: 4.45; } }
@media (min-width: 6480px) and (min-height: 4050px) { :root { --ca-zoom: 4.5; } }
@media (min-width: 6552px) and (min-height: 4095px) { :root { --ca-zoom: 4.55; } }
@media (min-width: 6624px) and (min-height: 4140px) { :root { --ca-zoom: 4.6; } }
@media (min-width: 6697px) and (min-height: 4185px) { :root { --ca-zoom: 4.65; } }
@media (min-width: 6768px) and (min-height: 4230px) { :root { --ca-zoom: 4.7; } }
@media (min-width: 6840px) and (min-height: 4275px) { :root { --ca-zoom: 4.75; } }
@media (min-width: 6912px) and (min-height: 4320px) { :root { --ca-zoom: 4.8; } }
@media (min-width: 6984px) and (min-height: 4365px) { :root { --ca-zoom: 4.85; } }
@media (min-width: 7057px) and (min-height: 4410px) { :root { --ca-zoom: 4.9; } }
@media (min-width: 7128px) and (min-height: 4455px) { :root { --ca-zoom: 4.95; } }
@media (min-width: 7200px) and (min-height: 4500px) { :root { --ca-zoom: 5; } }
@media (min-width: 1585px) and (min-height: 991px) {
  html { zoom: var(--ca-zoom, 1); }
  html[data-ca-zoom='off'] { --ca-zoom: 1 !important; }
}
/* ---- end of big screens ---- */
