/* Piston Island — a pastel sky, a floating island, soft panels. Light and dark follow the
   system (or the player's choice: html[data-theme]); the canvas has the same palette in
   js/render.js. Motion is transform and opacity only. */
:root {
  color-scheme: light dark;
  --sky-top: #fbe7d6;
  --sky-bottom: #d6ebf5;
  --ink: #37324d;
  --muted: #5f5975;
  --surface: #fffaf3;
  --panel: rgba(255, 255, 255, 0.66);
  --panel-strong: rgba(255, 255, 255, 0.86);
  --line: rgba(55, 50, 77, 0.13);
  --accent: #c2512f;
  --accent-ink: #a8431f;
  --ca-accent: #c2512f; /* the accounts SDK's sheets and chip */
  --gold: #eeaa2c;
  --star-off: rgba(55, 50, 77, 0.16);
  --shadow: 0 18px 40px -22px rgba(70, 50, 90, 0.55);
  --c0: #f2b84b; --c0d: #c98d24; --c0i: #5e3f06;
  --c1: #5f86e0; --c1d: #3f62b6; --c1i: #10224f;
  --c2: #e96d8d; --c2d: #bd4867; --c2i: #4f0f24;
  --c3: #9b7fdc; --c3d: #7459b4; --c3i: #24134f;
  --c4: #3fb6a4; --c4d: #23897a; --c4i: #06352e;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --sky-top: #1b2040;
    --sky-bottom: #39466f;
    --ink: #eef0fb;
    --muted: #bcc1dc;
    --surface: #252b4f;
    --panel: rgba(24, 29, 60, 0.62);
    --panel-strong: rgba(24, 29, 60, 0.86);
    --line: rgba(255, 255, 255, 0.14);
    --accent: #c2512f;
    --accent-ink: #ffb59c;
    --star-off: rgba(255, 255, 255, 0.18);
    --shadow: 0 18px 40px -22px rgba(0, 0, 0, 0.8);
  }
}
:root[data-theme="dark"] {
  color-scheme: dark;
  --sky-top: #1b2040;
  --sky-bottom: #39466f;
  --ink: #eef0fb;
  --muted: #bcc1dc;
  --surface: #252b4f;
  --panel: rgba(24, 29, 60, 0.62);
  --panel-strong: rgba(24, 29, 60, 0.86);
  --line: rgba(255, 255, 255, 0.14);
  --accent: #c2512f;
  --accent-ink: #ffb59c;
  --star-off: rgba(255, 255, 255, 0.18);
  --shadow: 0 18px 40px -22px rgba(0, 0, 0, 0.8);
}
:root[data-theme="light"] { color-scheme: light; }

* { box-sizing: border-box; }
/* no double-tap zoom on iOS: js/touch-guard.js adds the same rule plus a JS
   fallback; this copy covers Safari before 16.4 under the strict CSP */
:where(html, body, body *) { touch-action: manipulation; }
html { -webkit-text-size-adjust: 100%; background: var(--sky-bottom); }
body {
  margin: 0; min-height: calc(100dvh / var(--ca-zoom, 1)); display: flex; flex-direction: column;
  background: linear-gradient(var(--sky-top), var(--sky-bottom)) fixed; color: var(--ink);
  font: 16px/1.45 -apple-system, BlinkMacSystemFont, "SF Pro Text", Inter, "Segoe UI", Roboto, sans-serif;
  -webkit-font-smoothing: antialiased;
  padding: env(safe-area-inset-top) env(safe-area-inset-right) env(safe-area-inset-bottom) env(safe-area-inset-left);
}
/* a game page: no text selection or long-press callouts anywhere, HUD and
   menus included; form fields and long text (the Help sheet) opt back in */
body { -webkit-user-select: none; user-select: none; -webkit-touch-callout: none; -webkit-tap-highlight-color: transparent; }
input, textarea, [contenteditable], .prose p, .prose li { -webkit-user-select: text; user-select: text; }
[hidden] { display: none !important; }
button { font: inherit; color: inherit; }
:focus-visible { outline: 3px solid var(--accent-ink); outline-offset: 2px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.muted { color: var(--muted); }
.small { font-size: 13px; }

/* ------------------------------------------------------------------ top bar */
/* the SDK's brand at the left (App Standard §4.1); on an island its name gives way to Back and the
   island's name (the mark and the icon stay), then the SDK's tools and chip, in the game's round
   panel buttons */
.bar { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 10px 14px; min-height: 60px;
  --ca-tool-bg: var(--panel); --ca-tool-line: transparent; --ca-tool-ink: var(--ink); --ca-tool-hover: color-mix(in srgb, var(--ink) 9%, var(--panel)); }
.bar > .ca-start { margin-right: auto; }
.title { display: none; flex: 1; min-width: 0; margin: 0; font-size: 20px; font-weight: 750; letter-spacing: -0.02em; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
body.playing .title { display: block; }
body.playing .bar .ca-brand-name { display: none; }
.icon-btn {
  width: 44px; height: 44px; flex: none; border-radius: 50%; border: 0; padding: 0; cursor: pointer;
  background: var(--panel); color: var(--ink); display: grid; place-items: center;
  transition: transform 0.12s ease;
}
.icon-btn:active { transform: scale(0.94); }
.icon-btn svg, .tool svg, .btn svg { width: 24px; height: 24px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.icon-btn .dot { fill: currentColor; stroke-width: 1.4; }

/* ------------------------------------------------------------------ buttons */
.btn {
  min-height: 46px; padding: 0 18px; border-radius: 15px; border: 0; cursor: pointer;
  background: var(--panel-strong); color: var(--ink); font-weight: 650;
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  box-shadow: 0 3px 0 var(--line); transition: transform 0.12s ease;
}
.btn:active { transform: translateY(2px); }
.btn.primary { background: var(--accent); color: #fff; box-shadow: 0 4px 0 #8f3518, 0 12px 22px -12px rgba(160, 60, 30, 0.8); }
.btn.big { min-height: 58px; font-size: 20px; border-radius: 19px; letter-spacing: -0.01em; }
.btn.small { min-height: 44px; padding: 0 14px; font-size: 14px; }
.btn.wide { width: 100%; }
.btn:disabled { opacity: 0.55; cursor: default; }

/* ------------------------------------------------------------------ home */
main { flex: 1; min-height: 0; display: flex; flex-direction: column; }
.screen { flex: 1; min-height: 0; }
#home { width: 100%; max-width: 760px; margin: 0 auto; padding: 0 14px 28px; display: flex; flex-direction: column; gap: 14px; }
.hero { display: grid; gap: 4px; }
#hero-canvas { width: calc(100% + 28px); margin: 0 -14px; height: clamp(170px, calc(34dvh / var(--ca-zoom, 1)), 320px); display: block; }
.hero-text { display: grid; gap: 10px; }
.kicker { margin: 0; text-align: center; font-weight: 650; color: var(--muted); min-height: 1.45em; }
.btn.daily { justify-content: flex-start; text-align: left; padding: 8px 16px; min-height: 58px; gap: 12px; }
.daily-text { display: grid; min-width: 0; }
.daily-text b { font-weight: 700; }
.daily-text small { color: var(--muted); font-weight: 500; font-size: 13px; line-height: 1.3; }
.totals { margin: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.totals div { background: var(--panel); border-radius: 15px; padding: 8px 6px; text-align: center; min-width: 0; }
.totals dt { font-size: 12px; color: var(--muted); line-height: 1.25; overflow-wrap: anywhere; }
.totals dd { margin: 0; font-size: 20px; font-weight: 750; font-variant-numeric: tabular-nums; }
.worlds { display: grid; gap: 14px; }
.world { background: var(--panel); border-radius: 22px; padding: 14px; display: grid; gap: 10px; }
.world-head { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; flex-wrap: wrap; }
.world h2 { margin: 0; font-size: 18px; letter-spacing: -0.015em; }
.world .world-sub { margin: 0; color: var(--muted); font-size: 13px; }
.world .world-count { color: var(--muted); font-size: 13px; font-variant-numeric: tabular-nums; white-space: nowrap; }
.levels { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 8px; }
.level {
  position: relative; aspect-ratio: 1; min-height: 44px; border: 0; border-radius: 14px; cursor: pointer; padding: 0;
  background: var(--panel-strong); color: var(--ink); font-weight: 750; font-size: 17px;
  display: grid; place-items: center; align-content: center; gap: 1px;
  box-shadow: 0 3px 0 var(--line); transition: transform 0.12s ease;
}
.level:active { transform: translateY(2px); }
.level .pips { display: flex; gap: 1px; height: 10px; }
.level .pips svg { width: 10px; height: 10px; fill: var(--star-off); }
.level .pips svg.on { fill: var(--gold); }
.level.next { box-shadow: 0 0 0 3px var(--accent-ink), 0 3px 0 var(--line); }
.level.locked { cursor: default; background: transparent; box-shadow: inset 0 0 0 2px var(--line); color: var(--muted); }
.level.locked .pips { display: none; } /* the lock alone, in the middle of its tile (§6) */
.level .lock { width: 14px; height: 14px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; }
.world.is-locked .levels { opacity: 0.6; }
.world-lock { margin: 0; color: var(--muted); font-size: 14px; }
@media (min-width: 720px) {
  .hero { grid-template-columns: 1.3fr 1fr; align-items: center; gap: 18px; }
  .levels { grid-template-columns: repeat(12, minmax(0, 1fr)); }
}

/* ------------------------------------------------------------------ play */
body.playing { height: calc(100dvh / var(--ca-zoom, 1)); overflow: hidden; }
#play { position: relative; display: flex; flex-direction: column; min-height: 0; }
.stage { position: relative; flex: 1; min-height: 0; }
#island { position: absolute; inset: 0; width: 100%; height: 100%; display: block; touch-action: none; border-radius: 18px; }
#island:focus-visible { outline: 2px solid var(--line); outline-offset: -6px; }
.hud { position: absolute; top: 4px; left: 0; right: 0; display: flex; justify-content: center; gap: 8px; pointer-events: none; }
.hud-item { background: var(--panel); border-radius: 13px; padding: 4px 12px 5px; min-width: 70px; text-align: center; display: grid; }
.hud-item span { font-size: 11px; color: var(--muted); line-height: 1.2; white-space: nowrap; }
.hud-item b { font-size: 19px; line-height: 1.15; font-variant-numeric: tabular-nums; }
.hud-item.bump b { animation: bump 0.26s ease; }
.controls { padding: 0 12px 10px; display: grid; gap: 10px; width: 100%; max-width: 560px; margin: 0 auto; }
.say { min-height: 42px; display: grid; place-items: center; }
.tip, .note { margin: 0; text-align: center; font-size: 14px; line-height: 1.32; padding: 6px 12px; border-radius: 12px; background: var(--panel); max-width: 46ch; }
.note { background: var(--panel-strong); font-weight: 600; }
.note.warn { color: var(--accent-ink); }
.buttons { display: flex; justify-content: center; gap: 10px; padding-bottom: 8px; }
.cbtn {
  --c: var(--c0); --cd: var(--c0d); --ci: var(--c0i);
  position: relative; flex: 1 1 0; min-width: 0; max-width: 104px; height: 62px; border: 0; border-radius: 17px; cursor: pointer; padding: 0;
  background: var(--c); color: var(--ci); box-shadow: 0 6px 0 var(--cd), 0 14px 18px -12px rgba(40, 30, 60, 0.7);
  display: flex; align-items: center; justify-content: center; gap: 4px;
  transition: transform 0.09s ease, box-shadow 0.09s ease;
}
.cbtn.c1 { --c: var(--c1); --cd: var(--c1d); --ci: var(--c1i); }
.cbtn.c2 { --c: var(--c2); --cd: var(--c2d); --ci: var(--c2i); }
.cbtn.c3 { --c: var(--c3); --cd: var(--c3d); --ci: var(--c3i); }
.cbtn.c4 { --c: var(--c4); --cd: var(--c4d); --ci: var(--c4i); }
.cbtn:active, .cbtn.down { transform: translateY(5px); box-shadow: 0 1px 0 var(--cd), 0 4px 8px -6px rgba(40, 30, 60, 0.7); }
.cbtn svg { fill: currentColor; }
.cbtn .mark { width: 24px; height: 24px; }
.cbtn .arrow { width: 14px; height: 14px; }
.cbtn .sink {
  --c: var(--c0); --cd: var(--c0d); --ci: var(--c0i);
  position: absolute; right: -4px; top: -8px; height: 24px; padding: 0 5px; border-radius: 12px; display: flex; align-items: center; gap: 1px;
  background: var(--c); color: var(--ci); box-shadow: 0 0 0 2.5px var(--surface);
}
.cbtn .sink.c1 { --c: var(--c1); --ci: var(--c1i); }
.cbtn .sink.c2 { --c: var(--c2); --ci: var(--c2i); }
.cbtn .sink.c3 { --c: var(--c3); --ci: var(--c3i); }
.cbtn .sink.c4 { --c: var(--c4); --ci: var(--c4i); }
.cbtn .sink + .sink { right: 26px; }
.cbtn .sink .mark { width: 12px; height: 12px; }
.cbtn .sink .arrow { width: 10px; height: 10px; }
.cbtn .key { position: absolute; left: 7px; top: 4px; font-size: 11px; font-weight: 700; opacity: 0.7; display: none; }
@media (hover: hover) and (pointer: fine) { .cbtn .key { display: block; } }
/* a game controller in use (the SDK marks <html data-ca-pad>): each colour button wears the mark of the button that presses it */
.cbtn .pad-key { position: absolute; left: 4px; top: 3px; line-height: 0; display: none; }
html[data-ca-pad] .cbtn .pad-key { display: block; }
html[data-ca-pad] .cbtn .key { display: none; }
.cbtn.is-off { opacity: 0.5; box-shadow: 0 3px 0 var(--cd); transform: translateY(3px); }
.cbtn.nope { animation: shake 0.3s ease; }
.cbtn.hinted::after, .tool.hinted::after {
  content: ""; position: absolute; inset: -5px; border-radius: 21px; border: 3px solid var(--accent-ink); pointer-events: none;
  animation: ring 1.1s ease-in-out infinite;
}
.tools { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; }
.tool {
  position: relative; min-height: 50px; border: 0; border-radius: 14px; cursor: pointer; padding: 5px 2px 4px;
  background: var(--panel); color: var(--ink); display: grid; justify-items: center; gap: 0; font-size: 12px; font-weight: 600; line-height: 1.2;
  transition: transform 0.12s ease;
}
.tool:active { transform: scale(0.96); }
.tool:disabled { opacity: 0.45; cursor: default; }
.tool svg { width: 22px; height: 22px; }
.tool span { max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }


/* the result card */
.win {
  position: absolute; z-index: 2; left: 50%; bottom: 10px; width: min(calc(100% - 20px), 400px); max-height: calc(100% - 16px); overflow: auto; overscroll-behavior: contain;
  background: var(--surface); border-radius: 24px; padding: 14px 16px 16px; text-align: center; box-shadow: var(--shadow);
  transform: translate(-50%, 24px); opacity: 0; transition: transform 0.32s cubic-bezier(0.2, 0.9, 0.3, 1.2), opacity 0.2s ease;
}
.win.show { transform: translate(-50%, 0); opacity: 1; }
.win h2 { margin: 2px 0 4px; font-size: 20px; letter-spacing: -0.015em; }
.win-line { margin: 0; font-weight: 600; }
.win-sub { margin: 2px 0 0; color: var(--muted); font-size: 14px; min-height: 1.45em; }
.win-stars { display: flex; justify-content: center; gap: 6px; }
.star { width: 42px; height: 42px; fill: var(--star-off); }
.star:nth-child(2) { width: 52px; height: 52px; margin-top: -6px; }
.star.on { fill: var(--gold); animation: pop 0.42s cubic-bezier(0.2, 0.9, 0.3, 1.5) backwards; }
.star.on:nth-child(2) { animation-delay: 0.16s; }
.star.on:nth-child(3) { animation-delay: 0.32s; }
.win-actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; }
.win-actions .btn { flex: 1 1 40%; padding: 0 10px; min-width: 0; }
.win-actions .primary { flex-basis: 100%; }
body.won .controls { visibility: hidden; }

/* a phone held sideways: the island on the left, the buttons in a column on the right */
@media (orientation: landscape) and (max-height: 520px) {
  .bar { min-height: 48px; padding: 4px 12px; }
  .title { font-size: 17px; }
  #play { flex-direction: row; }
  .controls { width: 232px; flex: none; margin: 0; padding: 0 10px 6px 4px; align-content: center; gap: 8px; }
  .buttons { flex-wrap: wrap; gap: 8px 8px; }
  .cbtn { flex: 1 1 60px; height: 50px; }
  .say { min-height: 34px; }
  .tip, .note { font-size: 13px; padding: 4px 8px; }
  .tool { min-height: 44px; font-size: 11px; letter-spacing: -0.01em; }
  .hud-item { padding: 2px 10px 3px; min-width: 60px; }
  .hud-item b { font-size: 16px; }
  .win { bottom: 4px; padding: 8px 12px 10px; }
  .win-stars .star { width: 30px; height: 30px; }
  .win-stars .star:nth-child(2) { width: 36px; height: 36px; margin-top: -4px; }
  .win h2 { font-size: 17px; }
  .win { left: auto; right: 6px; width: min(calc(100% - 12px), 330px); transform: translate(0, 24px); }
  .win.show { transform: translate(0, 0); }
  .win-actions { margin-top: 8px; }
  .win-actions .btn { min-height: 44px; font-size: 13px; padding: 0 6px; }
  #hero-canvas { height: clamp(150px, calc(56dvh / var(--ca-zoom, 1)), 260px); width: 100%; margin: 0; }
  .hero { grid-template-columns: 1.2fr 1fr; align-items: center; gap: 14px; }
}
@media (max-width: 359px) {
  .bar { padding: 8px 10px; gap: 6px; }
  .title { font-size: 18px; }
  .buttons { gap: 7px; }
  .levels { gap: 6px; }
  .hud-item { min-width: 62px; padding: 3px 8px 4px; }
}

/* ------------------------------------------------------------------ sheets */
.sheet {
  border: 0; border-radius: 24px; padding: 0; width: min(calc(94vw / var(--ca-zoom, 1)), 440px); max-height: min(calc(90dvh / var(--ca-zoom, 1)), 740px);
  background: var(--surface); color: var(--ink); box-shadow: 0 30px 80px -30px rgba(0, 0, 0, 0.6); overflow: hidden;
}
.sheet[open] { display: flex; flex-direction: column; animation: sheet-in 0.22s ease; }
.sheet::backdrop { background: rgba(30, 26, 50, 0.45); }
.sheet-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 12px 12px 8px 20px; flex: none; }
.sheet-head h2 { margin: 0; font-size: 19px; letter-spacing: -0.015em; }
.sheet-head .close { background: transparent; }
.sheet-body { padding: 0 20px 20px; overflow: auto; overscroll-behavior: contain; min-height: 0; }
.sheet h3 { margin: 18px 0 8px; font-size: 15px; }
.row { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 8px 0; min-height: 52px; border-bottom: 1px solid var(--line); }
.row > span { min-width: 0; }
select {
  min-height: 44px; max-width: 58%; border-radius: 12px; border: 1px solid var(--line); background: var(--panel-strong); color: var(--ink);
  font: inherit; padding: 0 10px;
}
.switch {
  appearance: none; -webkit-appearance: none; flex: none; width: 50px; height: 30px; border-radius: 15px; margin: 7px 0; cursor: pointer;
  background: var(--star-off); position: relative; transition: background-color 0.15s ease;
}
.switch::after { content: ""; position: absolute; left: 3px; top: 3px; width: 24px; height: 24px; border-radius: 50%; background: #fff; box-shadow: 0 1px 3px rgba(0, 0, 0, 0.3); transition: transform 0.15s ease; }
.switch:checked { background: var(--accent); }
.switch:checked::after { transform: translateX(20px); }
.version { color: var(--muted); font-size: 13px; margin: 14px 0 0; }
.prose p, .prose li { line-height: 1.5; }
.prose ul { padding-left: 20px; margin: 8px 0; display: grid; gap: 6px; }
.stats { margin: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.stats div { background: var(--panel); border: 1px solid var(--line); border-radius: 14px; padding: 8px 6px; text-align: center; min-width: 0; }
.stats dt { font-size: 12px; color: var(--muted); line-height: 1.25; overflow-wrap: anywhere; }
.stats dd { margin: 0; font-size: 19px; font-weight: 750; font-variant-numeric: tabular-nums; }
.world-stats { display: grid; gap: 6px; margin-top: 12px; }
.ws-row { display: grid; grid-template-columns: 1fr auto; gap: 4px 10px; align-items: center; font-size: 14px; }
.ws-row .ws-bar { grid-column: 1 / -1; height: 6px; border-radius: 3px; background: var(--star-off); overflow: hidden; }
.ws-row .ws-fill { display: block; height: 100%; width: 100%; background: var(--gold); border-radius: 3px; transform-origin: left; transform: scaleX(var(--k, 0)); }
.ws-row .ws-num { color: var(--muted); font-variant-numeric: tabular-nums; }
.tabs { display: grid; grid-auto-flow: column; grid-auto-columns: 1fr; gap: 4px; padding: 4px; border-radius: 14px; background: var(--star-off); }
.tabs button { min-height: 40px; border: 0; border-radius: 11px; background: transparent; cursor: pointer; font-weight: 600; font-size: 14px; padding: 0 4px; }
.tabs button[aria-selected="true"] { background: var(--surface); box-shadow: 0 1px 3px rgba(0, 0, 0, 0.16); }
.board-host { min-height: 140px; margin-top: 8px; }
#board-note { margin: 8px 0 0; }
.stack { display: grid; gap: 8px; }
.ch-desc { margin: 0 0 12px; line-height: 1.45; }
.friend-list { display: grid; gap: 6px; }
.friend-row { display: flex; align-items: center; gap: 10px; min-height: 48px; }
.friend-row .fig { width: 36px; height: 36px; border-radius: 50%; background: var(--star-off); display: grid; place-items: center; font-weight: 700; overflow: hidden; flex: none; }
.friend-row .name { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

/* the landing page's live demo (account.gate({ demo })) */
.pi-demo { width: 100%; height: 100%; display: block; border-radius: inherit; }

@keyframes bump { 40% { transform: scale(1.22); } }
@keyframes shake { 20% { transform: translateX(-5px); } 45% { transform: translateX(5px); } 70% { transform: translateX(-3px); } 90% { transform: translateX(2px); } }
@keyframes ring { 0%, 100% { transform: scale(1); opacity: 1; } 50% { transform: scale(1.06); opacity: 0.45; } }
@keyframes pop { from { transform: scale(0.2) rotate(-25deg); opacity: 0; } }
@keyframes sheet-in { from { transform: translateY(14px); opacity: 0; } }
@media (prefers-reduced-motion: reduce) { * { transition: none !important; animation: none !important; } }

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