/* Bluff Island — a beach bar under the palms: the sea up top, the plank table in the middle, a
   wooden counter below with the calls on it. Light = day, dark = a lantern-lit night. */
:root {
  color-scheme: light dark;
  --sea-a: #22c3cf; --sea-b: #0d8796; --sea-text: #ffffff;
  --wood-a: #8a5530; --wood-b: #5e351a; --wood-line: rgba(30, 12, 2, 0.28); --wood-text: #fff5e3; --wood-muted: #f3dcb8;
  --sand: #fff7e8; --sand-2: #f6e6c8; --ink: #2b1b10; --ink-2: #5f4630; --line: rgba(80, 45, 15, 0.16);
  --coral: #ff5d62; --coral-d: #c8303d; --lagoon: #15a9b8; --lagoon-d: #0a6c78; --mango: #ffbb24; --mango-d: #b97800; --palm: #2fb457;
  --focus: #ffd34a;
  --round: ui-rounded, "SF Pro Rounded", "Nunito", "Arial Rounded MT Bold", system-ui, sans-serif;
  --ca-accent: #15a9b8; /* the accounts SDK's sheets and chip */
  --dock-h: 214px;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --sea-a: #17284a; --sea-b: #0c1428;
    --wood-a: #4a2d18; --wood-b: #2c190c; --wood-line: rgba(0, 0, 0, 0.35); --wood-text: #fff1dc; --wood-muted: #e8cfa8;
    --sand: #1f2338; --sand-2: #2a2f4a; --ink: #f4ecdf; --ink-2: #cdbfae; --line: rgba(255, 240, 220, 0.14);
  }
}
:root[data-theme="dark"] {
  --sea-a: #17284a; --sea-b: #0c1428;
  --wood-a: #4a2d18; --wood-b: #2c190c; --wood-line: rgba(0, 0, 0, 0.35); --wood-text: #fff1dc; --wood-muted: #e8cfa8;
  --sand: #1f2338; --sand-2: #2a2f4a; --ink: #f4ecdf; --ink-2: #cdbfae; --line: rgba(255, 240, 220, 0.14);
  color-scheme: dark;
}
: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 */
:where(html, body, body *) { touch-action: manipulation; }
html { -webkit-text-size-adjust: 100%; height: 100%; }
body {
  margin: 0; height: calc(100dvh / var(--ca-zoom, 1)); overflow: hidden; display: flex; flex-direction: column;
  background: linear-gradient(180deg, var(--sea-a), var(--sea-b)); color: var(--ink);
  font: 16px/1.4 -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI", Roboto, sans-serif;
  -webkit-font-smoothing: antialiased;
  padding: calc(env(safe-area-inset-top) + var(--ca-space-top, 0px)) env(safe-area-inset-right) 0 env(safe-area-inset-left);
}
/* a game page: no text selection or long-press callouts anywhere; fields and the rules' prose opt back in */
body { -webkit-user-select: none; user-select: none; -webkit-touch-callout: none; -webkit-tap-highlight-color: transparent; }
input, textarea, [contenteditable], .prose p, .prose li { -webkit-user-select: text; user-select: text; }
button, select, input { font: inherit; color: inherit; }
button { cursor: pointer; }
:focus-visible { outline: 3px solid var(--focus); outline-offset: 2px; }
[hidden] { display: none !important; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }

/* ---- the top bar: the sea ---------------------------------------------------------------------- */
.bar { position: relative; z-index: 3; display: flex; align-items: center; gap: 10px; padding: 8px 12px; min-height: 54px; color: var(--sea-text); }
.bar::after { content: ""; position: absolute; left: 0; right: 0; bottom: -6px; height: 8px; pointer-events: none;
  background: radial-gradient(12px 6px at 12px 0, rgba(255,255,255,0.55) 45%, transparent 52%) 0 0 / 24px 8px repeat-x; opacity: 0.55; }
/* the bar's ends are the SDK's (App Standard §4.1); its round tools in the sea's white */
.bar { --ca-tool-bg: rgba(255,255,255,0.14); --ca-tool-line: rgba(255,255,255,0.55); --ca-tool-ink: #fff; --ca-tool-hover: rgba(255,255,255,0.24); }
.bar .ca-brand-in img { filter: drop-shadow(0 2px 2px rgba(0,0,0,0.2)); }
/* a match's round on a small phone: the brand keeps its mark and icon, the round has the room */
@media (max-width: 399.98px) { .bar:has(.hud:not(:empty)) .ca-brand-name { display: none; } }
.hud { flex: 1; margin: 0; min-width: 0; text-align: center; font: 700 13px/1.2 var(--round); color: rgba(255,255,255,0.92); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

/* ---- the table ----------------------------------------------------------------------------------- */
.main { flex: 1; min-height: 0; display: flex; flex-direction: column; }
.stage { position: relative; flex: 1; min-height: 0; overflow: hidden; touch-action: none; }
.stage canvas { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }
.plates { position: absolute; inset: 0; z-index: 1; pointer-events: none; }

.plate { position: absolute; left: var(--x); top: var(--y); transform: translate(-50%, 0) scale(var(--ps, 1)); transform-origin: 50% 0; display: flex; align-items: center; gap: 5px;
  max-width: var(--w, 120px); padding: 3px 9px 3px 3px; border-radius: 999px; background: rgba(255, 250, 238, 0.94); color: #2b1b10;
  box-shadow: 0 3px 10px rgba(40, 20, 0, 0.25), inset 0 0 0 2px var(--c); transition: box-shadow 0.25s, opacity 0.3s; }
.plate .fig { flex: none; width: 28px; height: 28px; border-radius: 50%; overflow: hidden; background: var(--cl); display: grid; place-items: center; }
.plate .fig > * { width: 100%; height: 100%; }
.plate .who { min-width: 0; display: flex; flex-direction: column; }
.plate .nm { font: 800 12.5px/1.12 var(--round); overflow: hidden; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow-wrap: anywhere; }
.plate .dc { display: flex; gap: 2px; margin-top: 2px; }
.plate .dc i { width: 6px; height: 6px; border-radius: 2px; background: var(--c); box-shadow: inset 0 -1px 0 rgba(0,0,0,0.25); }
.plate .dc i.gone { background: rgba(60, 40, 20, 0.18); box-shadow: none; }
.plate .meta { font: 600 10.5px/1.1 var(--round); color: #6b4f37; white-space: nowrap; }
.plate.turn { box-shadow: 0 0 0 3px var(--c), 0 0 18px 4px var(--cl), 0 4px 12px rgba(40, 20, 0, 0.3); }
.plate.out, .plate.away { opacity: 0.55; }
.plate .say { position: absolute; left: 50%; bottom: calc(100% + 6px); transform: translateX(-50%); display: flex; align-items: center; gap: 3px; padding: 3px 8px 3px 9px;
  border-radius: 12px; background: #fffdf6; color: #2b1b10; font: 800 15px/1 var(--round); white-space: nowrap; box-shadow: 0 4px 10px rgba(40,20,0,0.25), inset 0 0 0 2px var(--c); animation: pop 0.32s cubic-bezier(.3,1.6,.5,1); }
.plate .say::after { content: ""; position: absolute; left: 50%; top: 100%; margin-left: -5px; border: 5px solid transparent; border-top-color: #fffdf6; }
.plate .say svg { width: 20px; height: 20px; }
.plate.me .say { left: calc(100% + 10px); bottom: auto; top: 50%; transform: translateY(-50%); animation-name: popl; }
.plate.me .say::after { left: auto; right: 100%; top: 50%; margin: -5px 0 0; border-top-color: transparent; border-right-color: #fffdf6; }
.plate.me .say.call::after { border-top-color: transparent; border-right-color: var(--coral); }
.plate.me .say.call.exact::after { border-top-color: transparent; border-right-color: var(--lagoon-d); }
.plate .say.call { background: var(--coral); color: #fff; font-size: 15px; letter-spacing: 0.02em; box-shadow: 0 4px 12px rgba(120,10,20,0.35); }
.plate .say.call::after { border-top-color: var(--coral); }
.plate .say.call.exact { background: var(--lagoon-d); }
.plate .say.call.exact::after { border-top-color: var(--lagoon-d); }
.plate .dots { display: inline-flex; gap: 2px; margin-left: 2px; }
.plate .dots i { width: 4px; height: 4px; border-radius: 50%; background: currentColor; animation: blink 1.2s infinite; }
.plate .dots i:nth-child(2) { animation-delay: 0.2s; }
.plate .dots i:nth-child(3) { animation-delay: 0.4s; }

/* the bid board in the middle of the table, with the parrot on top */
.sign { position: absolute; left: var(--sx, 50%); top: var(--sy, 45%); transform: translate(-50%, -50%) scale(var(--ss, 1)); min-width: 150px; max-width: min(78%, 260px); margin: 0;
  padding: 10px 18px 10px; border-radius: 18px; text-align: center; color: #fff4dd;
  background: linear-gradient(180deg, #8d572d, #6a3d1d); box-shadow: 0 10px 24px rgba(30, 10, 0, 0.4), inset 0 0 0 3px #c99a5a, inset 0 0 0 6px rgba(60, 30, 10, 0.5); }
.sign p { margin: 0; }
.sign-top { font: 700 13px/1.2 var(--round); color: #ffe3b8; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; min-height: 16px; }
.sign-bid { display: flex; align-items: center; justify-content: center; gap: 6px; min-height: 52px; font: 900 42px/1 var(--round); text-shadow: 0 3px 0 rgba(40, 15, 0, 0.45); }
.sign-x { font-size: 26px; opacity: 0.85; }
.sign-f svg { width: 46px; height: 46px; display: block; filter: drop-shadow(0 3px 0 rgba(40,15,0,0.35)); }
.sign-bid.flip { animation: flip 0.42s cubic-bezier(.3,1.5,.5,1); }
.sign-bid.count b { color: #ffe27a; }
.sign-bid .of { font-size: 26px; opacity: 0.8; margin: 0 2px; }
.sign-sub { font: 700 12.5px/1.25 var(--round); color: #ffe3b8; min-height: 16px; }
.sign.pal { background: linear-gradient(180deg, #2f5fd0, #1d3c93); box-shadow: 0 10px 24px rgba(10, 20, 60, 0.45), inset 0 0 0 3px #9fc0ff, inset 0 0 0 6px rgba(10, 20, 60, 0.4); }
.sign.verdict-good { box-shadow: 0 0 0 4px #ffe27a, 0 10px 24px rgba(30,10,0,0.4), inset 0 0 0 3px #c99a5a; }
.mascot { position: absolute; right: -14px; top: -44px; width: 58px; height: 58px; pointer-events: none; transform-origin: 50% 90%; }
.mascot svg { width: 100%; height: 100%; display: block; overflow: visible; transform: scaleX(-1); }
.mascot.hop { animation: hop 0.5s cubic-bezier(.3,1.6,.5,1); }
.mascot.squawk { animation: squawk 0.9s ease-in-out; }
.mascot.squawk .pr-wingY, .mascot.squawk .pr-wingG, .mascot.squawk .pr-wingB { transform-origin: 40% 50%; transform-box: fill-box; animation: flap 0.18s 4 alternate ease-in-out; }

/* the home screen's title over the table */
.hero { position: absolute; left: 50%; top: var(--hy, 47%); transform: translate(-50%, -50%); width: min(86%, 380px); padding: 10px 18px 16px; border-radius: 26px; text-align: center;
  background: #fff8e8; color: #2b1b10; box-shadow: 0 16px 40px rgba(40, 20, 0, 0.35), inset 0 0 0 3px #e3c38c; }
.hero-art { display: block; width: 150px; height: auto; margin: -64px auto 0; filter: drop-shadow(0 8px 10px rgba(30,10,0,0.25)); }
.hero-title { margin: 2px 0 2px; font: 900 32px/1.05 var(--round); color: #c8303d; letter-spacing: 0.01em; text-shadow: 0 2px 0 #ffd28a; }
.hero-tag { margin: 0 0 6px; font: 700 15px/1.3 var(--round); color: #5f3a18; }
.hero-stats { margin: 0; font: 600 13px/1.35 var(--round); color: #7a5634; }

/* "Liar!" — the comic burst */
.burst { position: absolute; left: var(--bx, 50%); top: var(--by, 40%); z-index: 2; transform: translate(-50%, -50%); --s: var(--ss, 1); pointer-events: none; display: grid; place-items: center;
  width: 210px; height: 150px; color: #fff; font: 900 40px/1 var(--round); letter-spacing: 0.02em; text-shadow: 0 3px 0 rgba(90, 0, 10, 0.45);
  background: var(--coral);
  clip-path: polygon(50% 0%, 60% 18%, 80% 6%, 77% 28%, 100% 26%, 85% 45%, 100% 62%, 78% 66%, 84% 92%, 62% 78%, 50% 100%, 40% 78%, 16% 92%, 22% 66%, 0% 62%, 15% 45%, 0% 26%, 23% 28%, 20% 6%, 40% 18%);
  animation: burst 1.1s cubic-bezier(.2,1.4,.4,1) forwards; }
.burst.exact { background: var(--lagoon); text-shadow: 0 3px 0 rgba(0, 50, 60, 0.45); font-size: 32px; }
.burst span { max-width: 74%; text-align: center; }

.banner { position: absolute; left: 50%; top: var(--ny, 30%); z-index: 2; transform: translate(-50%, -50%); width: min(90%, 360px); padding: 12px 16px; border-radius: 18px; text-align: center;
  background: rgba(29, 60, 147, 0.95); color: #fff; box-shadow: 0 12px 30px rgba(10, 20, 60, 0.4); animation: pop 0.4s cubic-bezier(.3,1.5,.5,1); pointer-events: none; }
.banner b { display: block; font: 900 24px/1.1 var(--round); }
.banner span { display: block; margin-top: 4px; font: 600 14px/1.35 var(--round); }
.banner.win { background: linear-gradient(180deg, #ffcf4a, #f59e0b); color: #3b2200; }

/* ---- the counter below: the calls ---------------------------------------------------------------- */
.dock { position: relative; z-index: 2; display: grid; padding: 10px 12px calc(10px + env(safe-area-inset-bottom)); color: var(--wood-text);
  background: repeating-linear-gradient(90deg, transparent 0 74px, var(--wood-line) 74px 76px), linear-gradient(180deg, var(--wood-a), var(--wood-b));
  box-shadow: 0 -6px 16px rgba(30, 12, 0, 0.3), inset 0 3px 0 rgba(255, 220, 170, 0.25); }
.dock::before { content: ""; position: absolute; left: 0; right: 0; top: -7px; height: 8px; background: repeating-linear-gradient(135deg, #e7c891 0 5px, #b98d52 5px 8px); box-shadow: 0 1px 0 rgba(60,30,10,0.4); }
.panel { grid-area: 1 / 1; display: flex; flex-direction: column; gap: 8px; min-width: 0; width: 100%; max-width: 560px; margin: 0 auto; }
.dock.play .panel.home { display: none !important; }
.dock.play .panel[hidden] { display: flex !important; visibility: hidden; pointer-events: none; }
.dock.play { min-height: var(--dock-h); }
.status { margin: 0; min-height: 20px; font: 700 14px/1.3 var(--round); color: var(--wood-muted); text-align: center; }
.row { display: flex; gap: 8px; }
.faces { display: grid; grid-template-columns: repeat(6, 1fr); gap: 6px; }
.face { position: relative; height: 48px; border: 0; border-radius: 13px; background: rgba(255, 240, 215, 0.12); display: grid; place-items: center; padding: 0;
  box-shadow: inset 0 0 0 2px rgba(255, 230, 190, 0.2); transition: transform 0.15s, background 0.15s, box-shadow 0.15s, opacity 0.15s; }
.face svg { width: 38px; height: 38px; }
.face[aria-checked="true"] { background: rgba(255, 236, 190, 0.95); box-shadow: inset 0 0 0 3px var(--mango), 0 4px 0 rgba(30, 10, 0, 0.35); transform: translateY(-2px); }
.face[aria-disabled="true"] { opacity: 0.32; }
.face .min { position: absolute; right: 2px; top: 1px; font: 800 10px/1 var(--round); color: var(--wood-muted); }
.face[aria-checked="true"] .min { color: #6b3e12; }
.qty { display: flex; align-items: center; gap: 4px; padding: 3px; border-radius: 15px; background: rgba(0, 0, 0, 0.22); }
.step { width: 42px; height: 42px; border: 0; border-radius: 12px; background: rgba(255, 240, 215, 0.16); color: var(--wood-text); font: 900 24px/1 var(--round); }
.step[aria-disabled="true"] { opacity: 0.35; }
.qv { min-width: 34px; text-align: center; font: 900 26px/1 var(--round); }
.call { flex: 1; min-width: 0; min-height: 50px; border: 0; border-radius: 15px; padding: 5px 10px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 1px;
  color: #fff; box-shadow: 0 4px 0 rgba(30, 10, 0, 0.45), inset 0 2px 0 rgba(255, 255, 255, 0.3); transition: transform 0.12s, box-shadow 0.12s, filter 0.15s; }
.call b { display: flex; align-items: center; gap: 5px; font: 900 18px/1.1 var(--round); letter-spacing: 0.01em; white-space: nowrap; }
.call small { font: 700 11.5px/1.15 var(--round); opacity: 0.95; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 100%; }
.call:active { transform: translateY(3px); box-shadow: 0 1px 0 rgba(30, 10, 0, 0.45), inset 0 2px 0 rgba(255, 255, 255, 0.3); }
.call[aria-disabled="true"] { filter: grayscale(0.85) brightness(0.8); opacity: 0.5; }
.c-bid { flex: 1.6; background: linear-gradient(180deg, #ffc93f, #f0a000); color: #3a2000; }
.c-liar { background: linear-gradient(180deg, #ff6b70, #d9343f); }
.c-exact { background: linear-gradient(180deg, #19b3c2, #0b7f8c); }
.c-next { flex: none; min-height: 54px; background: linear-gradient(180deg, #34c25d, #1c8a3d); }
.bid-pre { display: inline-flex; align-items: center; gap: 3px; }
.bid-pre svg { width: 24px; height: 24px; }
.c-liar.hot { animation: wobble 1.8s ease-in-out infinite; }
.wait-big { margin: 0; font: 800 20px/1.25 var(--round); text-align: center; color: var(--wood-text); }
.wait-sub { margin: 0; min-height: 18px; font: 600 14px/1.3 var(--round); text-align: center; color: var(--wood-muted); }
.panel.wait, .panel.show { justify-content: center; align-items: center; }
.log { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px; max-height: 76px; overflow: hidden; }
.log span { display: inline-flex; align-items: center; gap: 3px; padding: 3px 8px 3px 4px; border-radius: 10px; background: rgba(0,0,0,0.2); font: 800 13px/1 var(--round); }
.log span i { width: 10px; height: 10px; border-radius: 50%; background: var(--c); }
.log span svg { width: 18px; height: 18px; }

/* home: the three ways to play */
.panel.home { gap: 10px; }
.go { width: 100%; min-height: 58px; border: 0; border-radius: 18px; padding: 8px 14px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 1px;
  color: #fff; box-shadow: 0 5px 0 rgba(30, 10, 0, 0.45), inset 0 2px 0 rgba(255,255,255,0.3); transition: transform 0.12s; }
.go b { font: 900 19px/1.15 var(--round); }
.go small { font: 700 12.5px/1.2 var(--round); opacity: 0.95; }
.go:active { transform: translateY(3px); }
.go-solo { background: linear-gradient(180deg, #ff6b70, #d9343f); }
.go-cont { background: linear-gradient(180deg, #ffc93f, #f0a000); color: #3a2000; }
.go-row { display: flex; gap: 10px; }
.go-row .go { flex: 1; min-width: 0; }
.go-online { background: linear-gradient(180deg, #19b3c2, #0b7f8c); }
.go-party { background: linear-gradient(180deg, #a868f2, #6d37c0); }
.go small, .go b { max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

/* one device: the curtain between players */
.curtain { position: fixed; inset: 0; z-index: 20; display: grid; place-items: center; padding: 20px; background: radial-gradient(circle at 50% 35%, var(--cl, #9cf0f4), var(--c, #18bccb) 70%); animation: fade 0.25s; }
.curtain-card { width: min(100%, 360px); padding: 22px; border-radius: 26px; text-align: center; background: rgba(255, 250, 238, 0.96); color: #2b1b10; box-shadow: 0 20px 50px rgba(0,0,0,0.3); }
.curtain-fig { display: block; width: 84px; height: 84px; margin: -64px auto 6px; border-radius: 50%; overflow: hidden; box-shadow: 0 0 0 4px #fff, 0 8px 20px rgba(0,0,0,0.25); background: var(--cl); }
.curtain-fig > * { width: 100%; height: 100%; display: block; }
.curtain h2 { margin: 4px 0; font: 900 26px/1.15 var(--round); }
.curtain p { margin: 0 0 16px; font: 600 15px/1.4 var(--round); color: #5f4630; }
.curtain .call { width: 100%; }

/* ---- sheets -------------------------------------------------------------------------------------- */
.sheet { border: 0; border-radius: 24px; padding: 0; width: min(calc(94vw / var(--ca-zoom, 1)), 440px); max-height: calc(92dvh / var(--ca-zoom, 1)); background: var(--sand); color: var(--ink);
  box-shadow: 0 30px 80px -20px rgba(0,0,0,0.55), inset 0 0 0 3px var(--line); display: none; flex-direction: column; overflow: hidden; }
.sheet[open] { display: flex; animation: rise 0.28s cubic-bezier(.2,1.2,.4,1); }
.sheet::backdrop { background: rgba(10, 25, 35, 0.5); backdrop-filter: blur(6px); }
.sheet h2 { margin: 0; padding: 18px 20px 6px; font: 900 22px/1.2 var(--round); }
.sheet h3 { margin: 16px 0 8px; font: 800 14px/1.2 var(--round); color: var(--ink-2); text-transform: uppercase; letter-spacing: 0.06em; }
.sheet-body { padding: 4px 20px 8px; overflow: auto; overscroll-behavior: contain; min-height: 0; }
.sheet-foot { display: flex; gap: 10px; padding: 12px 20px calc(14px + env(safe-area-inset-bottom)); border-top: 1px solid var(--line); }
.sheet-foot .btn { flex: 1; }
.lead { margin: 4px 0 8px; font: 600 15px/1.45 var(--round); color: var(--ink-2); }
.btn { min-height: 46px; padding: 0 18px; border-radius: 14px; border: 0; background: linear-gradient(180deg, #ff6b70, #d9343f); color: #fff; font: 800 16px/1.1 var(--round); box-shadow: 0 3px 0 rgba(90, 10, 20, 0.35); }
.btn.ghost { background: transparent; color: var(--ink); box-shadow: inset 0 0 0 2px var(--line); }
.btn.small { min-height: 40px; font-size: 14px; margin-top: 8px; }
.row { align-items: center; }
.sheet .row { justify-content: space-between; min-height: 52px; padding: 6px 0; border-bottom: 1px solid var(--line); }
.sheet .row.col { flex-direction: column; align-items: stretch; gap: 8px; padding: 10px 0; }
.sheet .row > span { font: 700 15px/1.3 var(--round); display: flex; flex-direction: column; }
.sheet .row small { font: 600 12.5px/1.3 var(--round); color: var(--ink-2); }
select { min-height: 40px; padding: 0 10px; border-radius: 10px; border: 2px solid var(--line); background: var(--sand-2); }
.switch { appearance: none; -webkit-appearance: none; flex: none; width: 50px; height: 30px; margin: 0; border-radius: 999px; background: rgba(120, 90, 60, 0.35); position: relative; transition: background 0.2s; }
.switch::after { content: ""; position: absolute; left: 3px; top: 3px; width: 24px; height: 24px; border-radius: 50%; background: #fff; box-shadow: 0 2px 4px rgba(0,0,0,0.25); transition: transform 0.2s; }
.switch:checked { background: var(--palm); }
.switch:checked::after { transform: translateX(20px); }
.seg { display: flex; gap: 4px; padding: 4px; border-radius: 14px; background: var(--sand-2); box-shadow: inset 0 0 0 1px var(--line); }
.seg button { flex: 1; min-width: 0; min-height: 40px; border: 0; border-radius: 10px; background: none; font: 800 15px/1.1 var(--round); color: var(--ink-2); }
.seg button[aria-pressed="true"] { background: var(--sand); color: var(--ink); box-shadow: 0 2px 6px rgba(60, 30, 0, 0.2), inset 0 0 0 2px var(--mango); }
.seg.small button { min-height: 36px; font-size: 14px; }
.crew { display: flex; justify-content: center; gap: 6px; min-height: 48px; margin-bottom: 8px; }
.crew span { width: 44px; height: 44px; border-radius: 50%; overflow: hidden; animation: pop 0.3s cubic-bezier(.3,1.6,.5,1); }
.crew span > * { width: 100%; height: 100%; display: block; }
.swatches { display: flex; gap: 8px; flex-wrap: wrap; }
.swatches button { width: 44px; height: 44px; border-radius: 14px; border: 0; padding: 6px; background: var(--sand-2); box-shadow: inset 0 0 0 2px var(--line); }
.swatches button svg { width: 100%; height: 100%; display: block; }
.swatches button[aria-pressed="true"] { box-shadow: inset 0 0 0 3px var(--ink), 0 3px 8px rgba(0,0,0,0.2); }
.house { margin-top: 14px; border-radius: 14px; background: var(--sand-2); padding: 2px 14px; }
.house summary { min-height: 44px; display: flex; align-items: center; font: 800 15px/1.2 var(--round); cursor: pointer; }
.house .row:last-child { border-bottom: 0; }
.house .seg { flex: none; width: min(56%, 200px); }
.house .seg button { min-height: 40px; min-width: 40px; }
.names { display: flex; flex-direction: column; gap: 8px; }
.names .nrow { display: flex; gap: 8px; align-items: center; }
.names .dot { flex: none; width: 30px; height: 30px; }
.names .dot svg { width: 100%; height: 100%; }
.names input { flex: 1; min-width: 0; min-height: 44px; padding: 0 12px; border-radius: 12px; border: 2px solid var(--line); background: var(--sand-2); font: 700 16px/1 var(--round); }
.names .rm { flex: none; width: 44px; height: 44px; border-radius: 12px; border: 0; background: none; color: var(--ink-2); font: 800 20px/1 var(--round); }
.prose h3 { text-transform: none; letter-spacing: 0; font-size: 17px; color: var(--ink); margin-top: 18px; }
.prose p { margin: 0 0 10px; font: 500 15px/1.55 -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif; color: var(--ink); }
.prose .bid { display: inline-flex; align-items: center; gap: 2px; vertical-align: middle; margin-top: -3px; font-weight: 800; white-space: nowrap; line-height: 1; }
.prose .bid svg { width: 22px; height: 22px; }
.version { margin: 0; padding: 0 20px 12px; font-size: 12.5px; color: var(--ink-2); }
.stat-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.stat { padding: 10px 6px; border-radius: 14px; background: var(--sand-2); text-align: center; }
.stat b { display: block; font: 900 22px/1.1 var(--round); }
.stat span { font: 700 12px/1.2 var(--round); color: var(--ink-2); }
.over { text-align: center; overflow: visible; }
.over-art { display: block; width: 84px; height: 84px; margin: -40px auto 0; filter: drop-shadow(0 6px 8px rgba(0,0,0,0.25)); }
.over h2 { padding-top: 4px; }
.podium { list-style: none; margin: 6px 0 0; padding: 0 20px; display: flex; flex-direction: column; gap: 6px; text-align: left; overflow: auto; }
.podium li { display: flex; align-items: center; gap: 10px; padding: 6px 10px; border-radius: 14px; background: var(--sand-2); }
.podium li.first { background: linear-gradient(90deg, rgba(255, 207, 74, 0.55), rgba(255, 207, 74, 0.15)); box-shadow: inset 0 0 0 2px #f5b400; }
.podium .pl { width: 26px; font: 900 16px/1 var(--round); color: var(--ink-2); }
.podium .fig { width: 34px; height: 34px; border-radius: 50%; overflow: hidden; background: var(--cl); }
.podium .fig > * { width: 100%; height: 100%; display: block; }
.podium .nm { flex: 1; min-width: 0; font: 800 15px/1.2 var(--round); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.podium .dc { font: 700 13px/1 var(--round); color: var(--ink-2); }
.over-note { margin: 10px 20px 0; font: 600 14px/1.3 var(--round); color: var(--ink-2); min-height: 18px; }

.toast { position: fixed; left: 50%; bottom: calc(var(--dock-h) + 16px + env(safe-area-inset-bottom)); z-index: 30; transform: translateX(-50%); max-width: min(90%, 420px); padding: 10px 16px; border-radius: 14px;
  background: rgba(20, 30, 40, 0.92); color: #fff; font: 700 14px/1.3 var(--round); text-align: center; animation: rise 0.25s; pointer-events: none; }

/* ---- a short screen sideways: the counter goes to the right ----------------------------------------------- */
@media (orientation: landscape) and (max-height: 540px) {
  .bar { min-height: 44px; padding-top: 4px; padding-bottom: 4px; }
  .main { flex-direction: row; }
  .dock { width: 300px; flex: none; align-content: center; padding: 10px 12px calc(10px + env(safe-area-inset-bottom)); box-shadow: -6px 0 16px rgba(30, 12, 0, 0.3); }
  .dock::before { left: -7px; top: 0; bottom: 0; right: auto; width: 8px; height: auto; }
  .dock.play { min-height: 0; }
  .face { height: 42px; }
  .face svg { width: 32px; height: 32px; }
  .call { min-height: 44px; }
  .go { min-height: 50px; }
  .hero { width: min(70%, 340px); }
  .hero-art { width: 110px; margin-top: -40px; }
  .hero-title { font-size: 26px; }
  .toast { bottom: 16px; }
}
@media (max-height: 480px) {
  .sheet h2 { padding-top: 12px; font-size: 19px; }
  .sheet h3 { margin: 10px 0 6px; }
  .crew { display: none; }
  .sheet-foot { padding-top: 8px; padding-bottom: calc(8px + env(safe-area-inset-bottom)); }
}
@media (max-width: 359px) {
  .face { height: 44px; }
  .face svg { width: 32px; height: 32px; }
  .call b { font-size: 16px; }
  .step { width: 36px; }
}
@media (max-height: 640px) and (orientation: portrait) {
  .hero-art { width: 110px; margin-top: -44px; }
  .hero-title { font-size: 27px; }
  .hero-stats { display: none; }
  .go { min-height: 52px; }
}

@keyframes pop { from { transform: translate(-50%, 0) scale(0.6); opacity: 0; } }
@keyframes pops { from { transform: translate(-50%, -50%) scale(calc(var(--ss, 1) * 0.6)); opacity: 0; } }
@keyframes popl { from { transform: translateY(-50%) scale(0.6); opacity: 0; } }
.banner { animation-name: popc; }
@keyframes popc { from { transform: translate(-50%, -50%) scale(0.7); opacity: 0; } }
@keyframes flip { 0% { transform: rotateX(80deg) scale(0.9); opacity: 0.3; } 100% { transform: none; opacity: 1; } }
@keyframes burst { 0% { transform: translate(-50%, -50%) scale(calc(var(--s) * 0.2)) rotate(-14deg); opacity: 0; } 18% { transform: translate(-50%, -50%) scale(calc(var(--s) * 1.12)) rotate(4deg); opacity: 1; } 30% { transform: translate(-50%, -50%) scale(var(--s)) rotate(0); } 80% { opacity: 1; } 100% { transform: translate(-50%, -50%) scale(calc(var(--s) * 0.92)); opacity: 0; } }
@keyframes hop { 0%, 100% { transform: none; } 40% { transform: translateY(-12px) rotate(-6deg); } }
@keyframes squawk { 0%, 100% { transform: none; } 20% { transform: translateY(-14px) rotate(-10deg) scale(1.1); } 45% { transform: translateY(-6px) rotate(8deg) scale(1.06); } 70% { transform: translateY(-10px) rotate(-6deg); } }
@keyframes flap { to { transform: rotate(-24deg) translateY(-6%); } }
@keyframes wobble { 0%, 86%, 100% { transform: none; } 90% { transform: rotate(-2.5deg); } 95% { transform: rotate(2.5deg); } }
@keyframes blink { 0%, 100% { opacity: 0.25; } 50% { opacity: 1; } }
@keyframes rise { from { transform: translateY(18px); opacity: 0; } }
.toast { animation-name: risec; }
@keyframes risec { from { transform: translate(-50%, 14px); opacity: 0; } }
@keyframes fade { from { opacity: 0; } }
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { 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 ---- */
