:root {
  color-scheme: light dark;
  --panel: rgba(255, 255, 255, 0.94);
  --panel-solid: #ffffff;
  --soft: #eef2f8;
  --text: #17233f;
  --muted: #55607a;
  --line: rgba(20, 30, 60, 0.13);
  --accent: #1f7a3d;
  --accent-ink: #ffffff;
  --gold: #b9770a;
  --danger: #b3261e;
  --ca-accent: #1f7a3d; /* the accounts SDK's sheets and chip */
  --glass: rgba(16, 28, 66, 0.42);
  --r: 22px;
}
@media (prefers-color-scheme: dark) {
  :root { --panel: rgba(19, 26, 48, 0.94); --panel-solid: #131a30; --soft: #1e2744; --text: #eef2fb; --muted: #aab4ca; --line: rgba(255, 255, 255, 0.14); --gold: #f2c14e; --danger: #ff8a80; --accent: #2a8f4b; }
}
* { 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: 100%; overflow: hidden; color: var(--text);
  background: linear-gradient(#1e4fb8, #3f8fe0);
  font: 16px/1.45 -apple-system, BlinkMacSystemFont, "SF Pro Text", Inter, "Segoe UI", Roboto, sans-serif;
  -webkit-font-smoothing: antialiased;
}
/* a game page: no text selection or long-press callouts anywhere, HUD and
   menus included; form fields and long text (the help) opt back in */
body { -webkit-user-select: none; user-select: none; -webkit-touch-callout: none; -webkit-tap-highlight-color: transparent; }
input, textarea, .prose p, .prose li { -webkit-user-select: text; user-select: text; }
button { font: inherit; color: inherit; }
h1, h2, h3, p { margin: 0; }
.sprite { position: absolute; width: 0; height: 0; overflow: hidden; }
.ic { width: 22px; height: 22px; flex: none; }
[hidden] { display: none !important; }

/* ------------------------------------------------------------------ the picture */
.stage { position: fixed; inset: 0; }
.view { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }
.pad { position: absolute; inset: 0; touch-action: none; }
.names { position: absolute; inset: 0; pointer-events: none; overflow: hidden; }
.tag-name, .names .tag { position: absolute; left: 0; top: 0; transform: translate(calc(var(--x) - 50%), calc(var(--y) - 100%)); font-weight: 650; font-size: 12px; line-height: 1.2; color: #fff; background: rgba(15, 22, 48, 0.6); padding: 2px 8px; border-radius: 9px; white-space: nowrap; }
.stick-ring, .stick-knob { position: absolute; left: 0; top: 0; border-radius: 50%; pointer-events: none; opacity: 0; transform: translate(calc(var(--x, 0px) - 50%), calc(var(--y, 0px) - 50%)); transition: opacity 0.12s; }
.stick-ring { width: 112px; height: 112px; border: 2px solid rgba(255, 255, 255, 0.6); background: rgba(255, 255, 255, 0.1); }
.stick-knob { width: 46px; height: 46px; background: rgba(255, 255, 255, 0.85); box-shadow: 0 4px 14px rgba(0, 0, 0, 0.25); }
.stick-ring.on, .stick-knob.on { opacity: 1; }

/* ---------------------------------------------------------------------- the bar */
.bar {
  position: fixed; left: 0; right: 0; top: 0; z-index: 3; display: flex; align-items: center; gap: 10px;
  padding: calc(env(safe-area-inset-top) + 10px) calc(env(safe-area-inset-right) + 12px) 10px calc(env(safe-area-inset-left) + 12px);
  pointer-events: none;
  /* white over the sky, as the bar always was: the brand, and round buttons of glass (the SDK's tools
     and the game's own Back, View and Pause alike) */
  color: #fff;
  --ca-tool-bg: var(--glass); --ca-tool-line: rgba(255, 255, 255, 0.22); --ca-tool-ink: #fff; --ca-tool-hover: rgba(255, 255, 255, 0.3);
}
.bar > * { pointer-events: auto; }
.bar .ca-brand-name { text-shadow: 0 2px 10px rgba(8, 20, 60, 0.55); }
.bar .ca-brand img { filter: drop-shadow(0 2px 6px rgba(8, 20, 60, 0.35)); }
.bar-title { flex: 1 1 0; min-width: 0; pointer-events: none; }
.title { font-size: 19px; font-weight: 750; line-height: 1.2; letter-spacing: -0.02em; color: #fff; text-shadow: 0 2px 10px rgba(8, 20, 60, 0.55); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.title:empty { display: none; }
.sub { font-size: 13px; font-weight: 600; color: #fff; text-shadow: 0 1px 6px rgba(8, 20, 60, 0.7); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; min-height: 0; }
.sub:empty { display: none; }
/* in a round or the builder on a phone the brand keeps its mark and icon: the world's name has the room */
@media (max-width: 699.98px) {
  body:is([data-screen='play'], [data-screen='build']) .bar .ca-brand-name { display: none; }
  .title { font-size: 17px; }
}
.icon-btn { width: 44px; height: 44px; flex: none; display: grid; place-items: center; border-radius: 50%; border: 0; background: var(--glass); color: #fff; cursor: pointer; }
.icon-btn.ghost { background: transparent; color: var(--muted); }
.icon-btn:focus-visible, .btn:focus-visible, .tile:focus-visible, .seg button:focus-visible, .item:focus-visible, .world:focus-visible, .turn:focus-visible { outline: 3px solid #ffd34d; outline-offset: 2px; }

/* --------------------------------------------------------------------- the title */
#main { position: fixed; inset: 0; z-index: 2; pointer-events: none; }
#main > * { pointer-events: none; }
.home { position: absolute; inset: 0; display: flex; align-items: flex-end; justify-content: center; padding: 76px calc(env(safe-area-inset-right) + 12px) calc(env(safe-area-inset-bottom) + 12px) calc(env(safe-area-inset-left) + 12px); }
.home-card { pointer-events: auto; width: min(100%, 440px); max-height: 100%; overflow: auto; overscroll-behavior: contain; background: var(--panel); border-radius: var(--r); padding: 16px; box-shadow: 0 18px 50px -18px rgba(5, 15, 50, 0.6); display: grid; gap: 12px; }
.tag { color: var(--muted); font-size: 14px; }
.stars-line { display: flex; align-items: center; gap: 6px; font-weight: 650; font-size: 14px; color: var(--gold); }
.stars-line .ic { width: 18px; height: 18px; }
.btn { min-height: 46px; padding: 0 18px; border-radius: 14px; border: 0; background: var(--accent); color: var(--accent-ink); font-weight: 650; cursor: pointer; display: inline-flex; align-items: center; justify-content: center; gap: 8px; }
.btn.soft { background: var(--soft); color: var(--text); }
.btn.danger { color: var(--danger); }
.btn.big { min-height: 62px; width: 100%; justify-content: flex-start; text-align: start; padding: 0 18px; border-radius: 18px; font-size: 18px; }
.btn.big .ic { width: 30px; height: 30px; }
.btn-two { display: grid; text-align: left; line-height: 1.2; min-width: 0; }
.btn-two small { font-size: 13px; font-weight: 550; opacity: 0.92; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.btn:disabled { opacity: 0.5; cursor: default; }
.tiles { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
/* a child profile has no "With friends" tile (App Standard §4.13): My planet takes the whole row */
html.ca-kid #home-planet { grid-column: 1 / -1; }
.tile { min-height: 72px; text-align: left; padding: 10px 12px; border-radius: 16px; border: 0; background: var(--soft); color: var(--text); cursor: pointer; display: grid; grid-template-columns: auto 1fr; column-gap: 9px; align-items: center; }
.tile .ic { grid-row: span 2; width: 26px; height: 26px; color: var(--accent); }
.tile b { font-weight: 650; line-height: 1.2; align-self: end; }
.tile small { color: var(--muted); font-size: 12.5px; line-height: 1.25; align-self: start; }
.open-note { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 10px 12px; border-radius: 14px; background: var(--soft); font-size: 14px; font-weight: 600; }
@media (min-width: 760px) and (min-height: 520px) {
  .home { align-items: center; justify-content: flex-start; padding-left: calc(env(safe-area-inset-left) + calc(6vw / var(--ca-zoom, 1))); }
  .home-card { width: 360px; }
}
@media (max-height: 520px) and (orientation: landscape) {
  .home { align-items: stretch; justify-content: flex-start; padding-top: 64px; }
  .home-card { width: min(calc(46vw / var(--ca-zoom, 1)), 340px); align-content: start; gap: 8px; padding: 12px; }
  .tag, .tile small { display: none; }
  .tile { min-height: 48px; }
  .tile b { align-self: center; }
  .btn.big { min-height: 50px; }
}
@media (max-height: 620px) and (orientation: portrait) {
  .tile small, .tag { display: none; }
  .tile { min-height: 50px; }
  .tile b { align-self: center; }
}

/* ----------------------------------------------------------------------- playing */
body[data-screen='play'] .home, body[data-screen='build'] .home { display: none; }
.hud { position: absolute; inset: 0; padding: calc(env(safe-area-inset-top) + 62px) calc(env(safe-area-inset-right) + 12px) calc(env(safe-area-inset-bottom) + 12px) calc(env(safe-area-inset-left) + 12px); color: #fff; }
.hud-top { display: flex; align-items: stretch; gap: 8px; flex-wrap: wrap; }
.hud-box { background: var(--glass); border-radius: 14px; padding: 5px 12px 6px; display: grid; min-width: 62px; line-height: 1.15; }
.hud-box small { font-size: 11.5px; font-weight: 600; opacity: 0.92; }
.hud-box b { font-size: 21px; font-weight: 750; font-variant-numeric: tabular-nums; }
.hud-stars { position: relative; flex: 1; min-width: 90px; max-width: 220px; align-self: center; height: 10px; border-radius: 6px; background: var(--glass); }
.hud-stars i { position: absolute; left: 0; top: 0; bottom: 0; width: 100%; border-radius: 6px; background: #ffd34d; transform-origin: left; transform: scaleX(var(--k, 0)); transition: transform 0.3s; }
.hud-stars span { position: absolute; top: 50%; left: var(--at); width: 16px; height: 16px; margin: -8px 0 0 -8px; border-radius: 50%; background: #20305e; border: 2px solid #fff; }
.hud-stars span.got { background: #ffd34d; }
.hud-fx { display: flex; gap: 6px; margin-top: 8px; min-height: 30px; }
.fx { position: relative; height: 30px; padding: 0 10px; border-radius: 15px; background: var(--glass); display: inline-flex; align-items: center; gap: 6px; font-size: 13px; font-weight: 650; overflow: hidden; }
.fx i { position: absolute; left: 0; bottom: 0; height: 3px; width: 100%; background: var(--c, #fff); transform-origin: left; transform: scaleX(var(--k, 1)); }
.fx u { width: 10px; height: 10px; border-radius: 50%; background: var(--c, #fff); text-decoration: none; }
.hud-note { margin-top: 6px; font-size: 13px; font-weight: 600; text-shadow: 0 1px 6px rgba(8, 20, 60, 0.7); min-height: 18px; }
.hud-rank { position: absolute; right: calc(env(safe-area-inset-right) + 12px); top: calc(env(safe-area-inset-top) + 62px); margin: 0; padding: 6px 10px; list-style: none; background: var(--glass); border-radius: 14px; font-size: 13px; font-weight: 600; max-width: calc(46vw / var(--ca-zoom, 1)); }
.hud-rank li { display: flex; justify-content: space-between; gap: 12px; line-height: 1.5; }
.hud-rank li span { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.hud-rank li.me { color: #ffd34d; }
.hud-rank li.out { opacity: 0.6; }
.pops { position: absolute; inset: 0; overflow: hidden; }
.pop { position: absolute; left: 0; top: 0; font-weight: 800; font-size: 19px; color: #fff; text-shadow: 0 2px 6px rgba(8, 20, 60, 0.8); transform: translate(calc(var(--x) - 50%), var(--y)); animation: pop 0.9s ease-out forwards; }
.pop.gold { color: #ffd34d; font-size: 23px; }
@keyframes pop { from { opacity: 1; transform: translate(calc(var(--x) - 50%), var(--y)); } to { opacity: 0; transform: translate(calc(var(--x) - 50%), calc(var(--y) - 54px)); } }
.turn { pointer-events: auto; position: absolute; bottom: calc(env(safe-area-inset-bottom) + 22px); width: 84px; height: 84px; border-radius: 50%; border: 2px solid rgba(255, 255, 255, 0.6); background: var(--glass); color: #fff; display: grid; place-items: center; touch-action: none; }
.turn .ic { width: 38px; height: 38px; }
.turn.left { left: calc(env(safe-area-inset-left) + 18px); }
.turn.right { right: calc(env(safe-area-inset-right) + 18px); }
.turn.down { background: rgba(255, 255, 255, 0.4); }

/* ------------------------------------------------------------------------ sheets */
.sheet { border: 0; padding: 0; margin: auto; width: min(calc(94vw / var(--ca-zoom, 1)), 460px); max-height: min(calc(88dvh / var(--ca-zoom, 1)), 720px); border-radius: var(--r); background: var(--panel-solid); color: var(--text); box-shadow: 0 30px 80px -24px rgba(0, 0, 0, 0.6); display: flex; flex-direction: column; overflow: hidden; }
.sheet:not([open]) { display: none; }
.sheet.wide { width: min(calc(94vw / var(--ca-zoom, 1)), 720px); }
.sheet::backdrop { background: rgba(8, 14, 34, 0.5); }
.sheet-head { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 14px 10px 6px 20px; }
.sheet-head h2 { font-size: 19px; font-weight: 720; letter-spacing: -0.01em; }
.sheet.ask .sheet-head { padding: 22px 20px 10px; }
.sheet.ask .sheet-head h2 { font-size: 17px; font-weight: 600; line-height: 1.4; }
/* (a column of blocks, not a grid: a grid's rows measured the wrapping choice rows one line high) */
.sheet-body { padding: 4px 20px 16px; overflow: auto; overscroll-behavior: contain; display: flex; flex-direction: column; gap: 12px; }
.sheet-body > * { flex: none; }
.sheet-body:empty { display: none; }
.sheet-foot { display: flex; gap: 8px; padding: 10px 20px calc(env(safe-area-inset-bottom) + 16px); border-top: 1px solid var(--line); }
.sheet-foot .btn { flex: 1; }
.sheet h3 { font-size: 13px; font-weight: 700; letter-spacing: 0.04em; text-transform: uppercase; color: var(--muted); margin-top: 6px; }
.note { color: var(--muted); font-size: 14px; }
.row { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 46px; }
.row.choice { flex-direction: column; align-items: flex-start; gap: 6px; }
.row-text { display: grid; }
.row small { color: var(--muted); font-size: 13px; }
.row b { font-weight: 600; }
.seg { display: flex; flex-wrap: wrap; gap: 4px; background: var(--soft); padding: 4px; border-radius: 14px; }
.seg button { min-height: 38px; padding: 0 12px; border: 0; border-radius: 10px; background: transparent; color: var(--text); cursor: pointer; font-weight: 600; font-size: 14px; display: inline-flex; align-items: center; gap: 6px; }
.seg button[aria-checked='true'] { background: var(--accent); color: var(--accent-ink); }
.toggle input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.switch { width: 48px; height: 28px; border-radius: 14px; background: var(--line); position: relative; flex: none; transition: background 0.15s; }
.switch::after { content: ''; position: absolute; left: 3px; top: 3px; width: 22px; height: 22px; border-radius: 50%; background: #fff; box-shadow: 0 1px 4px rgba(0, 0, 0, 0.3); transition: transform 0.15s; }
.toggle input:checked + .switch { background: var(--accent); }
.toggle input:checked + .switch::after { transform: translateX(20px); }
.toggle input:focus-visible + .switch { outline: 3px solid #ffd34d; outline-offset: 2px; }
select, input[type='text'] { min-height: 44px; border-radius: 12px; border: 1px solid var(--line); background: var(--soft); color: var(--text); padding: 0 12px; font: inherit; max-width: 60%; }
.version { color: var(--muted); font-size: 13px; }
.prose { display: grid; gap: 10px; }
.prose p { font-size: 15px; }
.legend { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 8px; }
.legend li, .legend div { display: flex; align-items: center; gap: 10px; font-size: 14px; }
.legend img, .thumb { width: 44px; height: 44px; flex: none; object-fit: contain; }
.legend b { font-weight: 650; }
.legend small { color: var(--muted); display: block; font-size: 13px; }
.swatch { width: 36px; height: 36px; margin: 4px; flex: none; border-radius: 9px; background: var(--c); box-shadow: inset 0 -5px 0 rgba(0, 0, 0, 0.16); }

/* worlds */
.worlds { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 10px; }
.world { position: relative; text-align: left; border: 2px solid transparent; border-radius: 18px; background: var(--soft); color: var(--text); padding: 10px; cursor: pointer; display: grid; gap: 3px; justify-items: start; }
.world[aria-pressed='true'] { border-color: var(--accent); }
.world.locked { opacity: 0.72; }
.orb { width: 64px; height: 64px; border-radius: 50%; justify-self: center; margin: 2px 0 6px; background: radial-gradient(circle at 34% 30%, rgba(255, 255, 255, 0.5), transparent 34%), radial-gradient(circle at 30% 66%, var(--land) 0 17%, var(--sand) 18% 21%, transparent 22%), radial-gradient(circle at 68% 38%, var(--land) 0 24%, var(--sand) 25% 28%, transparent 29%), var(--sea); box-shadow: 0 0 0 5px var(--sky), inset -8px -8px 14px rgba(0, 0, 0, 0.22); }
.world b { font-weight: 680; line-height: 1.2; }
.world small { color: var(--muted); font-size: 12.5px; line-height: 1.3; }
.stars3 { display: flex; gap: 2px; color: var(--line); }
.stars3 .ic { width: 18px; height: 18px; }
.stars3 .on { color: var(--gold); }
.world .lock { position: absolute; right: 10px; top: 10px; color: var(--muted); }
.result-stars { display: flex; justify-content: center; gap: 6px; color: var(--line); }
.result-stars .ic { width: 46px; height: 46px; }
.result-stars .on { color: var(--gold); animation: star 0.5s cubic-bezier(0.2, 1.6, 0.4, 1) backwards; animation-delay: calc(var(--i) * 0.18s + 0.15s); }
@keyframes star { from { transform: scale(0.2) rotate(-40deg); opacity: 0; } }
.big-num { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 8px; text-align: center; }
.big-num div { background: var(--soft); border-radius: 14px; padding: 8px 4px; display: grid; }
.big-num b { font-size: 24px; font-weight: 760; font-variant-numeric: tabular-nums; }
.big-num small { color: var(--muted); font-size: 12.5px; }
.badge { align-self: center; background: var(--gold); color: #fff; font-weight: 700; font-size: 13px; padding: 3px 12px; border-radius: 12px; }
@media (prefers-color-scheme: dark) { .badge { color: #1a1300; } }
.gifts { display: flex; flex-wrap: wrap; gap: 8px; }
.gift { display: inline-flex; align-items: center; gap: 6px; background: var(--soft); border-radius: 12px; padding: 4px 12px 4px 4px; font-size: 14px; font-weight: 600; }
.gift img { width: 36px; height: 36px; }
.gift .swatch { width: 26px; height: 26px; }
.coats { display: flex; flex-wrap: wrap; gap: 8px; }
.coat { width: 44px; height: 44px; border-radius: 50%; border: 3px solid transparent; background: linear-gradient(135deg, var(--a) 0 55%, var(--b) 56%); cursor: pointer; display: grid; place-items: center; color: #fff; padding: 0; }
.coat[aria-checked='true'] { border-color: var(--text); }
.coat:disabled { opacity: 0.35; cursor: default; }
.list { display: grid; gap: 8px; }
.list .row { background: var(--soft); border-radius: 14px; padding: 8px 12px; }
.board-box { min-height: 150px; }

/* ----------------------------------------------------------------- the builder */
.build { position: absolute; inset: 0; padding: calc(env(safe-area-inset-top) + 62px) calc(env(safe-area-inset-right) + 10px) calc(env(safe-area-inset-bottom) + 10px) calc(env(safe-area-inset-left) + 10px); display: flex; flex-direction: column; justify-content: space-between; gap: 8px; }
.build > * { pointer-events: auto; }
.build-top { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; }
.pill { min-height: 40px; padding: 0 13px; border-radius: 20px; border: 0; background: var(--glass); color: #fff; font-weight: 650; font-size: 14px; display: inline-flex; align-items: center; gap: 6px; cursor: pointer; }
.pill.go { background: var(--accent); color: var(--accent-ink); }
.pill.count { cursor: default; }
.pill[aria-pressed='true'] { background: #fff; color: #17233f; }
.pill .ic { width: 19px; height: 19px; }
@media (max-width: 620px) { .pill:not(.count):not(.go) { width: 44px; min-height: 44px; padding: 0; justify-content: center; } .pill:not(.count):not(.go) span { display: none; } .pill.count, .pill.go { min-height: 44px; } }
.palette { background: var(--panel); border-radius: 20px; padding: 8px; display: grid; gap: 6px; box-shadow: 0 14px 40px -16px rgba(5, 15, 50, 0.6); max-width: 720px; width: 100%; align-self: center; }
.palette-tabs { display: flex; gap: 4px; overflow-x: auto; scrollbar-width: none; }
.palette-tabs button { flex: none; min-height: 36px; padding: 0 12px; border: 0; border-radius: 12px; background: transparent; color: var(--muted); font-weight: 650; font-size: 14px; cursor: pointer; }
.palette-tabs button[aria-selected='true'] { background: var(--soft); color: var(--text); }
.palette-name { font-size: 13px; font-weight: 600; color: var(--muted); padding: 0 6px; min-height: 19px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.items { display: flex; gap: 6px; overflow-x: auto; overscroll-behavior: contain; padding: 2px 2px 4px; scrollbar-width: thin; touch-action: pan-x; }
.item { position: relative; flex: none; width: 60px; height: 60px; border-radius: 14px; border: 2px solid transparent; background: var(--soft); cursor: pointer; display: grid; place-items: center; padding: 0; color: var(--muted); }
.item img { width: 52px; height: 52px; pointer-events: none; }
.item[aria-pressed='true'] { border-color: var(--accent); background: var(--panel-solid); }
.item.locked img, .item.locked .swatch { opacity: 0.3; filter: grayscale(1); }
.item .lock { position: absolute; right: 3px; bottom: 3px; width: 18px; height: 18px; }
.item .dot { position: absolute; right: 5px; top: 5px; width: 12px; height: 12px; border-radius: 50%; background: var(--c); border: 2px solid #fff; }
@media (max-height: 420px) { .item { width: 48px; height: 48px; } .item img { width: 42px; height: 42px; } .palette-name { display: none; } }

.toast { position: fixed; left: 50%; bottom: calc(env(safe-area-inset-bottom) + 120px); z-index: 2147483000; transform: translate(-50%, 16px); opacity: 0; pointer-events: none; background: rgba(15, 22, 48, 0.9); color: #fff; padding: 9px 16px; border-radius: 16px; font-weight: 600; font-size: 14.5px; max-width: calc(86vw / var(--ca-zoom, 1)); text-align: center; transition: opacity 0.2s, transform 0.2s; }
.toast.show { opacity: 1; transform: translate(-50%, 0); }
body[data-screen='play'] .toast { bottom: auto; top: calc(env(safe-area-inset-top) + 150px); }
body[data-screen='build'] .toast { bottom: calc(env(safe-area-inset-bottom) + 170px); }
@media (prefers-reduced-motion: reduce) { * { transition: none !important; animation-duration: 0.01s !important; } }

/* a game controller in use (the SDK marks <html data-ca-pad>): the two turn buttons step aside */
html[data-ca-pad] .turn { 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 ---- */
