/* waterunderthe.com v2. Ported from design/site-v2/water.css. CSP-safe: no inline styles anywhere. */

/* display face: Comfortaa, self-hosted as a Latin subset renamed "WUT Rounded" (OFL; see fonts/README.txt) */
@font-face { font-family: "WUT Rounded"; src: url("/static/fonts/wut-rounded-latin.woff2") format("woff2"); font-weight: 300 700; font-display: swap; }

/* ---------- tokens: sunny lagoon (light) ---------- */
:root {
  --page: #fbf6ea; --page-2: #f2e9d4; --surface: #ffffff; --surface-2: #f6f0e1; --glass: rgba(255, 255, 255, .86);
  --ink: #0e2a3b; --ink-2: #46606f; --line: #dccfb2; --line-2: #e9e0cb;
  --sky-1: #bfe8f4; --sky-2: #f3fbfd; --hill: #9fd3b4; --hill-2: #7cc39d;
  --water-1: #d6f4f1; --water-2: #8fdad8; --water-3: #3fa9bb; --water-4: #0d6c85; --water-5: #0a4f66;
  --foam: rgba(255, 255, 255, .75); --ripple: rgba(255, 255, 255, .6);
  --stone: #d9c9a8; --stone-2: #b9a27a; --stone-3: #8d7651; --wood: #b9844e; --wood-2: #8a5b30;
  --steel: #c84f3c; --steel-2: #9c3627;
  --sun: #f6c445; --sun-ink: #5b4300; --coral: #e8664a;
  --primary: #0d6c85; --on-primary: #ffffff; --primary-hover: #0a5a70;
  --pass: #e3f6ef; --pass-ink: #0d5a3f;
  --card: #ffffff; --card-ink: #14202a; --card-edge: rgba(14, 42, 59, .22);
  --back-1: #1f86a0; --back-2: #bfeef0;
  --suit-s: #14202a; --suit-h: #c8243b; --suit-d: #c8243b; --suit-c: #14202a;
  --ui-h: #c8243b; --ui-d4: #1f5fbf; --ui-c4: #1d7a3a; --deep-1: #0d6c85; --deep-2: #0a4f66;
  --vul: #c8243b; --on-vul: #ffffff; --focus: #9a5b00; --ok: #0d7a52;
  --coach-bg: #fff4d6; --coach-edge: #f0c24a;
  --plank-1: #e8d2ad; --plank-2: #dcc196; --plank-ink: #3b2a14;
  --shadow: 0 1px 2px rgba(14, 42, 59, .08), 0 6px 18px rgba(14, 42, 59, .08);
  --shadow-card: 0 1px 0 rgba(14, 42, 59, .18), 0 3px 8px rgba(14, 42, 59, .14);
  --sun-display: inline; --moon-display: none;
  --f-display: "WUT Rounded", ui-rounded, "SF Pro Rounded", system-ui, sans-serif;
  --f-body: system-ui, -apple-system, "Segoe UI", "Inter", Roboto, sans-serif;
  --f-card: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --f-suit: "Segoe UI Symbol", "Apple Symbols", "DejaVu Sans", "Noto Sans Symbols2", sans-serif;
  color-scheme: light;
}

/* ---------- tokens: night tide (dark) ---------- */
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --page: #071420; --page-2: #0b1d2c; --surface: #0f2435; --surface-2: #13304a; --glass: rgba(10, 30, 46, .86);
    --ink: #e7f1f6; --ink-2: #a3bccb; --line: #24415a; --line-2: #1a344a;
    --sky-1: #050f1c; --sky-2: #12304a; --hill: #0f2f3c; --hill-2: #0b2530;
    --water-1: #10364c; --water-2: #145069; --water-3: #1b6d88; --water-4: #5fd4cc; --water-5: #8fe6df;
    --foam: rgba(190, 240, 255, .45); --ripple: rgba(170, 235, 255, .38);
    --stone: #5b6878; --stone-2: #465263; --stone-3: #2f3946; --wood: #7a5a3b; --wood-2: #5a4029;
    --steel: #d0705e; --steel-2: #9e4a3b;
    --sun: #ffd76b; --sun-ink: #2a2000; --coral: #ff9077;
    --primary: #5fd4cc; --on-primary: #032029; --primary-hover: #86e3dc;
    --pass: #123d33; --pass-ink: #9ff0cf;
    --card: #f6f3ea; --card-edge: rgba(0, 0, 0, .45);
    --back-1: #155a74; --back-2: #6fd0d8;
    --vul: #ff7d86; --on-vul: #2a0710; --focus: #ffc94a; --ok: #6fe0ae;
    --ui-h: #ff8a93; --ui-d4: #86b4ff; --ui-c4: #74d69b; --deep-1: #0c3550; --deep-2: #061b2b;
    --coach-bg: #2b2a17; --coach-edge: #b59a3a;
    --plank-1: #3a2c20; --plank-2: #322619; --plank-ink: #f3e6d2;
    --shadow: 0 1px 2px rgba(0, 0, 0, .4), 0 8px 22px rgba(0, 0, 0, .35);
    --shadow-card: 0 1px 0 rgba(0, 0, 0, .5), 0 4px 10px rgba(0, 0, 0, .45);
    --sun-display: none; --moon-display: inline;
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --page: #071420; --page-2: #0b1d2c; --surface: #0f2435; --surface-2: #13304a; --glass: rgba(10, 30, 46, .86);
  --ink: #e7f1f6; --ink-2: #a3bccb; --line: #24415a; --line-2: #1a344a;
  --sky-1: #050f1c; --sky-2: #12304a; --hill: #0f2f3c; --hill-2: #0b2530;
  --water-1: #10364c; --water-2: #145069; --water-3: #1b6d88; --water-4: #5fd4cc; --water-5: #8fe6df;
  --foam: rgba(190, 240, 255, .45); --ripple: rgba(170, 235, 255, .38);
  --stone: #5b6878; --stone-2: #465263; --stone-3: #2f3946; --wood: #7a5a3b; --wood-2: #5a4029;
  --steel: #d0705e; --steel-2: #9e4a3b;
  --sun: #ffd76b; --sun-ink: #2a2000; --coral: #ff9077;
  --primary: #5fd4cc; --on-primary: #032029; --primary-hover: #86e3dc;
  --pass: #123d33; --pass-ink: #9ff0cf;
  --card: #f6f3ea; --card-edge: rgba(0, 0, 0, .45);
  --back-1: #155a74; --back-2: #6fd0d8;
  --vul: #ff7d86; --on-vul: #2a0710; --focus: #ffc94a; --ok: #6fe0ae;
  --ui-h: #ff8a93; --ui-d4: #86b4ff; --ui-c4: #74d69b; --deep-1: #0c3550; --deep-2: #061b2b;
  --coach-bg: #2b2a17; --coach-edge: #b59a3a;
  --plank-1: #3a2c20; --plank-2: #322619; --plank-ink: #f3e6d2;
  --shadow: 0 1px 2px rgba(0, 0, 0, .4), 0 8px 22px rgba(0, 0, 0, .35);
  --shadow-card: 0 1px 0 rgba(0, 0, 0, .5), 0 4px 10px rgba(0, 0, 0, .45);
  --sun-display: none; --moon-display: inline;
  color-scheme: dark;
}
/* four-color deck: cards are light in both themes, so one set of suit colors serves both */
:root[data-deck="4"] { --suit-d: #1f5fbf; --suit-c: #1d7a3a; --ui-d: var(--ui-d4); --ui-c: var(--ui-c4); }

/* ---------- base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html, body { margin: 0; }
body { background: var(--page); color: var(--ink); font: 16px/1.5 var(--f-body); -webkit-text-size-adjust: 100%; }
a { color: var(--primary); text-underline-offset: 3px; }
h1, h2, h3 { margin: 0; line-height: 1.15; text-wrap: balance; }
h1, h2, .display { font-family: var(--f-display); letter-spacing: -.01em; }
p { margin: 0; }
ul { margin: 0; padding: 0; list-style: none; }
button, input, select { font: inherit; color: inherit; }
:focus-visible { outline: 3px solid var(--focus); outline-offset: 2px; }
.wrap { width: 100%; max-width: 1200px; margin: 0 auto; padding-inline: max(16px, env(safe-area-inset-left, 0px)) max(16px, env(safe-area-inset-right, 0px)); }
@media (min-width: 720px) { .wrap { padding-inline: 28px; } }
.muted { color: var(--ink-2); }
.small { font-size: .875rem; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; border: 0; }
.stack { display: grid; gap: 12px; align-content: start; min-width: 0; }
.row { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; min-width: 0; }

/* buttons: every tap target is at least 44px */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 44px; padding: 0 18px;
  border-radius: 999px; border: 2px solid var(--line); background: var(--surface); color: var(--ink); font-weight: 650;
  text-decoration: none; cursor: pointer; white-space: nowrap; }
.btn:hover { border-color: var(--water-3); }
.btn-primary { background: var(--primary); border-color: var(--primary); color: var(--on-primary); }
.btn-primary:hover { background: var(--primary-hover); border-color: var(--primary-hover); }
.btn-big { min-height: 56px; font-size: 1.15rem; padding: 0 26px; }
.btn-wide { width: 100%; }
.btn-quiet { border-color: transparent; background: transparent; color: var(--ink-2); }
.btn-quiet:hover { background: var(--surface-2); border-color: transparent; }
.btn:disabled { opacity: .45; cursor: not-allowed; }
.chip { display: inline-flex; align-items: center; gap: 6px; padding: 3px 11px; border-radius: 999px; font-size: .85rem;
  background: var(--surface-2); color: var(--ink); border: 1px solid var(--line-2); white-space: nowrap; }
.chip.vul { color: var(--vul); border-color: var(--vul); background: transparent; font-weight: 700; }
.tag { display: inline-block; padding: 0 7px; border-radius: 6px; font-size: .72rem; font-weight: 750; text-transform: uppercase;
  letter-spacing: .04em; background: var(--surface-2); color: var(--ink-2); }
.tag.bot { background: var(--water-1); color: var(--water-5); }
:root[data-theme="dark"] .tag.bot { color: var(--water-5); }
.tag.vul { background: var(--vul); color: var(--on-vul); }
.icon { width: 20px; height: 20px; flex: none; }
.icon .ln { fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }

/* suits: text glyphs, colored by token so the four-color deck is one attribute */
.s-S { color: var(--ink); } .s-H { color: var(--ui-h); } .s-D { color: var(--ui-d, var(--ui-h)); } .s-C { color: var(--ui-c, var(--ink)); }
.s-S, .s-H, .s-D, .s-C, .card .s, .card .pip, .deck-swatch { font-family: var(--f-suit); }
.card.s-S, .card .s-S { color: var(--suit-s); } .card.s-H, .card .s-H { color: var(--suit-h); }
.card.s-D, .card .s-D { color: var(--suit-d); } .card.s-C, .card .s-C { color: var(--suit-c); }

/* ---------- header ---------- */
.site-header { display: flex; align-items: center; justify-content: space-between; gap: 8px 16px; flex-wrap: wrap; padding-block: 12px; }
.logo { display: inline-flex; align-items: center; gap: 10px; color: var(--ink); text-decoration: none; min-height: 44px; }
.logo svg { width: 56px; height: 38px; flex: none; }
.wordmark { font-family: var(--f-display); font-weight: 700; font-size: 1.15rem; line-height: 1.05; display: inline-block; padding-bottom: 1.1em; }
.wordmark em { font-style: normal; color: var(--primary); }
/* "bridge" sits centred right under "under": the pun is the logo */
.wordmark .wm-under { position: relative; }
.wordmark .wm-bridge { position: absolute; left: 50%; top: 1.08em; transform: translateX(-50%); color: var(--ink); white-space: nowrap; }
.topnav { display: flex; align-items: center; gap: 2px; flex-wrap: wrap; }
.topnav a { padding: 10px 12px; border-radius: 999px; color: var(--ink-2); text-decoration: none; font-weight: 600; }
.topnav a:hover { background: var(--surface-2); color: var(--ink); }
.toggles { display: flex; gap: 4px; }
.toggle { min-height: 44px; min-width: 44px; padding: 0 12px; border-radius: 999px; border: 2px solid var(--line-2);
  background: var(--surface); color: var(--ink-2); font-weight: 650; font-size: .85rem; cursor: pointer; display: inline-flex; align-items: center; gap: 6px; }
.toggle[aria-pressed="true"] { border-color: var(--water-3); color: var(--ink); }
.deck-swatch { display: inline-flex; gap: 1px; font-size: 1rem; }

/* logo + bridge illustrations: shapes colored from tokens */
.b-water { fill: var(--water-2); }
.b-water-2 { fill: var(--water-3); }
.b-reflect { fill: none; stroke: var(--water-4); stroke-width: 2; stroke-dasharray: 3 3; opacity: .7; }
.b-reflect-fill { fill: var(--water-3); opacity: .35; }
.b-stone { fill: var(--stone); stroke: var(--stone-3); stroke-width: 1.5; }
.b-stone-2 { fill: var(--stone-2); }
.b-joint { fill: none; stroke: var(--stone-3); stroke-width: 1; opacity: .5; }
.b-wood { fill: var(--wood); }
.b-wood-2 { fill: var(--wood-2); }
.b-rope { fill: none; stroke: var(--wood-2); stroke-width: 2; }
.b-rock { fill: var(--stone-2); stroke: var(--stone-3); stroke-width: 1; }
.b-steel { fill: var(--steel); }
.b-cable { fill: none; stroke: var(--steel); stroke-width: 3; stroke-linecap: round; }
.b-hanger { fill: none; stroke: var(--steel-2); stroke-width: 1.2; }
.b-deck { fill: var(--steel-2); }
.b-ripple { fill: none; stroke: var(--ripple); stroke-width: 2; stroke-linecap: round; }
.b-sky-1 { stop-color: var(--sky-1); } .b-sky-2 { stop-color: var(--sky-2); }
.b-wat-1 { stop-color: var(--water-2); } .b-wat-2 { stop-color: var(--water-3); } .b-wat-3 { stop-color: var(--deep-1); }
.b-hill { fill: var(--hill); } .b-hill-2 { fill: var(--hill-2); }
.b-sun { fill: var(--sun); display: var(--sun-display); }
.b-moon { fill: var(--sun); display: var(--moon-display); }
.b-moon-cut { display: var(--moon-display); }
.b-star { fill: var(--sun); display: var(--moon-display); opacity: .8; }
.b-bank { fill: var(--page-2); }
.b-duck { fill: var(--sun); stroke: var(--sun-ink); stroke-width: 1; }
.b-beak { fill: var(--coral); }
.b-lily { fill: var(--hill-2); stroke: var(--hill); stroke-width: 1; }
.b-reed { fill: none; stroke: var(--hill-2); stroke-width: 2; stroke-linecap: round; }

/* ---------- water surfaces ---------- */
.water { position: relative; isolation: isolate; color: var(--ink);
  background: linear-gradient(180deg, var(--water-1) 0%, var(--water-2) 55%, var(--water-3) 100%); }
.water.deepwater { background: linear-gradient(180deg, var(--water-2) 0%, var(--deep-1) 55%, var(--deep-2) 100%); }
.water::before { content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none; opacity: .55;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='44'%3E%3Cpath d='M0 22 Q20 14 40 22 T80 22 T120 22 T160 22' fill='none' stroke='white' stroke-opacity='.55' stroke-width='1.6'/%3E%3Cpath d='M-40 40 Q-20 34 0 40 T40 40 T80 40' fill='none' stroke='white' stroke-opacity='.3' stroke-width='1.2'/%3E%3C/svg%3E");
  background-size: 160px 44px; animation: drift-x 60s linear infinite; }
@keyframes drift-x { from { background-position: 0 0; } to { background-position: 160px 0; } }

/* ---------- cards ---------- */
.card { --w: 58px; --h: 84px; position: relative; display: inline-grid; grid-template-rows: auto auto 1fr; justify-items: start;
  width: var(--w); height: var(--h); padding: 5px 6px; border-radius: 8px; background: var(--card); color: var(--card-ink);
  border: 1px solid var(--card-edge); box-shadow: var(--shadow-card); font-family: var(--f-card); font-weight: 800; line-height: 1;
  flex: none; }
.card .r { font-size: 1.45rem; letter-spacing: -.04em; font-family: var(--f-card); }
.card .s { font-size: 1.1rem; margin-top: 1px; }
.card .pip { position: absolute; right: 6px; bottom: 4px; font-size: 1.9rem; line-height: 1; }
button.card { cursor: pointer; text-align: left; }
button.card:disabled { cursor: default; }
button.card.playable { outline: 3px solid var(--sun); outline-offset: 1px; }
button.card.playable:hover { transform: translateY(-6px); }
.card.sm { --w: 44px; --h: 62px; padding: 4px 5px; border-radius: 7px; }
.card.sm .r { font-size: 1.15rem; } .card.sm .s { font-size: .9rem; } .card.sm .pip { font-size: 1.35rem; right: 4px; bottom: 3px; }
.card.dim { filter: saturate(.55) brightness(.93); }
/* wave card back */
.back { display: inline-block; width: 30px; height: 44px; border-radius: 6px; flex: none; border: 2px solid #fff;
  box-shadow: var(--shadow-card);
  background: radial-gradient(circle at 50% 0, transparent 5px, var(--back-2) 5.5px 7px, transparent 7.5px) 0 0 / 12px 7px,
              linear-gradient(160deg, var(--back-1), var(--deep-2)); }
:root[data-theme="dark"] .back { border-color: #cfe9ee; }
.back.lg { width: 54px; height: 78px; border-radius: 8px; border-width: 3px;
  background: radial-gradient(circle at 50% 0, transparent 7px, var(--back-2) 7.5px 9.5px, transparent 10px) 0 0 / 18px 10px,
              linear-gradient(160deg, var(--back-1), var(--deep-2)); }

/* floating: a tiny bob, a soft reflection and a ripple ring. Off under reduced motion. */
.floaty { --r: 0deg; transform: rotate(var(--r)); animation: bob 7s ease-in-out infinite; }
.floaty::after { content: ""; position: absolute; left: -22%; right: -22%; bottom: -12px; height: 20px; border-radius: 50%;
  border: 2px solid var(--ripple); z-index: -1; animation: ring 7s ease-in-out infinite; }
.floaty::before { content: ""; position: absolute; left: 4%; right: 4%; bottom: -16px; height: 14px; border-radius: 50%;
  background: radial-gradient(closest-side, rgba(10, 60, 80, .28), transparent); z-index: -1; }
@keyframes bob { 0%, 100% { transform: translateY(0) rotate(var(--r)); } 50% { transform: translateY(-3px) rotate(calc(var(--r) + 1.2deg)); } }
@keyframes ring { 0%, 100% { transform: scale(1); opacity: .9; } 50% { transform: scale(1.08); opacity: .5; } }
.r-a { --r: -7deg; } .r-b { --r: 5deg; } .r-c { --r: -2deg; } .r-d { --r: 9deg; } .r-e { --r: -11deg; } .r-f { --r: 2deg; }
.d-1 { animation-delay: -1.3s; } .d-2 { animation-delay: -2.6s; } .d-3 { animation-delay: -3.9s; } .d-4 { animation-delay: -5.2s; }
.d-1::after { animation-delay: -1.3s; } .d-2::after { animation-delay: -2.6s; } .d-3::after { animation-delay: -3.9s; } .d-4::after { animation-delay: -5.2s; }

/* ---------- landing: hero ---------- */
.hero { position: relative; isolation: isolate; overflow: hidden; min-height: 0; display: grid; grid-template-rows: 1fr auto; grid-template-columns: minmax(0, 1fr); }
.hero > * { min-width: 0; }
.hero-scene { position: absolute; inset: 0; width: 100%; height: 100%; z-index: -2; }
.hero-inner { padding-block: 22px 86px; }
.hero-copy { max-width: 600px; display: grid; gap: 12px; }
.hero h1 { font-size: clamp(1.75rem, 3.6vw, 2.7rem); line-height: 1.05; }
.hero .lede { font-size: 1.1rem; max-width: 44ch; color: var(--ink); }
.namebox { display: grid; gap: 6px; padding: 14px; border-radius: 20px; background: var(--glass); box-shadow: var(--shadow);
  max-width: 460px; backdrop-filter: blur(4px); }
.namebox label { font-weight: 700; font-size: .9rem; color: var(--ink-2); }
.namebox .row { flex-wrap: nowrap; }
.name-input { flex: 1 1 auto; min-width: 0; min-height: 52px; padding: 0 14px; font-size: 1.2rem; font-weight: 700;
  border-radius: 14px; border: 2px solid var(--line); background: var(--surface); color: var(--ink); font-family: var(--f-display); }
.namebox .hint { font-size: .85rem; color: var(--ink-2); }
.floaters { position: absolute; inset: 0; z-index: -1; pointer-events: none; }
.floaters .card, .floaters .back { position: absolute; }
.fl-1 { right: 30%; bottom: 72px; } .fl-2 { right: 21%; bottom: 58px; } .fl-3 { right: 12%; bottom: 76px; }
.fl-4 { right: 38%; bottom: 54px; } .fl-5 { right: 4%; bottom: 54px; }
/* the riverbank with drifting sayings */
.riverbank { position: relative; z-index: 1; padding-block: 4px; background: color-mix(in srgb, var(--page-2) 88%, transparent);
  border-top: 2px solid var(--line-2); }

/* ---------- sayings strip (marquee) ---------- */
.sayings { display: flex; align-items: center; gap: 10px; min-width: 0; }
.sayings-window { position: relative; overflow: hidden; flex: 1 1 auto; min-width: 0; border-radius: 999px;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 4%, #000 96%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 4%, #000 96%, transparent); }
.sayings-track { display: flex; gap: 56px; width: max-content; padding-block: 6px; animation: drift 240s linear infinite; }
.sayings:hover .sayings-track, .sayings:focus-within .sayings-track { animation-play-state: paused; }
@keyframes drift { from { transform: translateX(0); } to { transform: translateX(-50%); } }
.say { display: inline-flex; align-items: baseline; gap: 10px; white-space: nowrap; font-size: .98rem; color: var(--ink); }
.say::before { content: ""; width: 8px; height: 8px; border-radius: 50%; border: 2px solid var(--water-3); flex: none; align-self: center; }
.say .kind { font-size: .72rem; font-weight: 750; text-transform: uppercase; letter-spacing: .06em; color: var(--ink-2); }
.sayings .another { display: none; }
.sayings-label { font-size: .8rem; font-weight: 700; color: var(--ink-2); white-space: nowrap; }

/* ---------- landing: the three tables ---------- */
.tiers-head { display: flex; align-items: baseline; justify-content: space-between; gap: 4px 16px; flex-wrap: wrap; margin-block: 18px 12px; }
.tiers-head h2 { font-size: 1.6rem; }
.tiers { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }
.tier { position: relative; display: grid; grid-template-rows: auto 1fr; border-radius: 24px; overflow: hidden; background: var(--surface);
  box-shadow: var(--shadow); border: 2px solid var(--line-2); min-width: 0; }
.tier.suggested { border-color: var(--sun); }
.tier .ribbon { position: absolute; top: 12px; left: 12px; z-index: 2; padding: 4px 12px; border-radius: 999px; background: var(--sun);
  color: var(--sun-ink); font-weight: 800; font-size: .82rem; box-shadow: var(--shadow); }
.tier-art { height: 96px; position: relative; overflow: hidden; }
.tier-art svg { position: absolute; inset: 0; width: 100%; height: 100%; }
.tier-body { display: grid; gap: 8px; padding: 14px 18px 18px; align-content: start; }
.tier-art .live { position: absolute; right: 10px; top: 10px; z-index: 1; background: var(--glass); color: var(--ink); padding: 2px 10px; border-radius: 999px; }
.tier h3 { font-family: var(--f-display); font-size: 1.5rem; }
.tier .for { font-weight: 700; }
.tier .desc { color: var(--ink-2); }
.tier .chips { display: flex; flex-wrap: wrap; gap: 6px; }
.tier .live { font-size: .82rem; font-weight: 650; display: flex; align-items: center; gap: 6px; }
.tier .live::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--ok); }
.tier .btn { margin-top: 4px; }

/* ---------- landing: open seats (Pogo) ---------- */
.seats-head { margin-block: 40px 12px; display: flex; flex-wrap: wrap; gap: 6px 16px; align-items: baseline; justify-content: space-between; }
.seats-head h2 { font-size: 1.45rem; }
.suggest { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; margin-bottom: 18px; }
.sugg { display: grid; gap: 8px; padding: 14px 16px; border-radius: 18px; background: var(--surface); border: 2px solid var(--line-2); min-width: 0; }
.sugg.best { border-color: var(--sun); background: color-mix(in srgb, var(--sun) 10%, var(--surface)); }
.sugg .why { font-size: .875rem; color: var(--ink-2); }
.sugg .where { font-weight: 750; }
.room { margin-bottom: 18px; }
.room h3 { font-family: var(--f-display); font-size: 1.15rem; display: flex; gap: 10px; align-items: center; margin-bottom: 8px; }
.room h3 .count { font-family: var(--f-body); font-size: .85rem; font-weight: 500; color: var(--ink-2); }
.tlist { display: grid; gap: 8px; }
.trow { display: grid; grid-template-columns: 200px minmax(0, 1fr) auto; gap: 12px; align-items: center; padding: 10px 12px;
  border-radius: 16px; background: var(--surface); border: 1px solid var(--line-2); }
.tname { display: grid; min-width: 0; }
.tname b { font-weight: 750; }
.tname span { font-size: .85rem; color: var(--ink-2); }
.tseats { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 6px; }
.tseat { display: flex; align-items: center; gap: 8px; min-height: 44px; padding: 4px 10px; border-radius: 12px; background: var(--surface-2); min-width: 0; font-size: .92rem; }
.tseat .d { font-weight: 800; color: var(--ink-2); width: 1.1em; flex: none; }
.tseat .n { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; min-width: 0; }
.tseat.open { padding: 0; background: transparent; }
.tseat.open .btn { width: 100%; min-height: 44px; border-style: dashed; border-color: var(--water-3); justify-content: flex-start; padding: 0 10px; gap: 8px; }
.tseat.open .btn .d { color: var(--primary); }
.empty { display: grid; grid-template-columns: auto 1fr auto; gap: 14px; align-items: center; padding: 14px 16px; border-radius: 16px;
  border: 2px dashed var(--line); color: var(--ink-2); }
.empty svg { width: 96px; height: 48px; }

/* ---------- footer ---------- */
.divider { display: block; width: 100%; height: 56px; margin-top: 36px; }
.site-footer { padding-block: 8px 40px; display: grid; gap: 16px; }
.howto { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.howto .lead { font-family: var(--f-display); font-weight: 700; margin-right: 6px; }
.howto a { display: inline-flex; align-items: center; min-height: 44px; padding: 0 16px; border-radius: 999px; background: var(--surface);
  border: 1px solid var(--line-2); color: var(--ink); text-decoration: none; font-weight: 600; }
.howto a:hover { border-color: var(--water-3); }
.fine { color: var(--ink-2); font-size: .82rem; display: flex; flex-wrap: wrap; gap: 4px 16px; }

/* ---------- table pages ---------- */
.tablebar { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px 18px; padding-block: 4px 14px; }
.tb-title { display: grid; gap: 6px; min-width: 0; }
.tb-title h1 { font-size: 1.5rem; }
.tb-meta { display: flex; flex-wrap: wrap; gap: 6px; }
.tb-side { display: flex; flex-wrap: wrap; gap: 8px 14px; align-items: center; }
.watchers { display: inline-flex; align-items: center; gap: 8px; color: var(--ink-2); font-size: .9rem; }
.watchers b { color: var(--ink); }
.tablegrid { display: grid; grid-template-columns: minmax(0, 1fr) 372px; gap: 20px; align-items: start; }
.mainco { display: grid; gap: 14px; min-width: 0; }
.pool { border-radius: 30px; padding: 16px; min-height: 470px; display: grid; gap: 12px;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.35fr) minmax(0, 1fr); grid-template-rows: auto 1fr auto;
  grid-template-areas: ". top ." "left mid right" ". bottom ."; box-shadow: inset 0 0 0 2px color-mix(in srgb, var(--water-4) 25%, transparent); }
.pos-top { grid-area: top; } .pos-left { grid-area: left; } .pos-right { grid-area: right; } .pos-bottom { grid-area: bottom; } .pos-mid { grid-area: mid; }
.seatbox { display: grid; gap: 8px; justify-items: center; align-content: center; min-width: 0; }
.plate { display: inline-grid; grid-template-columns: auto minmax(0, auto); column-gap: 8px; align-items: center; max-width: 100%; padding: 5px 14px 5px 5px; border-radius: 999px; background: var(--glass);
  box-shadow: var(--shadow); color: var(--ink); min-width: 0; }
.plate .dir { grid-row: span 2; width: 32px; height: 32px; flex: none; border-radius: 50%; display: grid; place-items: center; background: var(--deep-2);
  color: #fff; font-weight: 850; font-size: .9rem; }
.plate .dir.vul { background: var(--vul); color: var(--on-vul); }
.plate .who { font-weight: 750; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; min-width: 0; line-height: 1.2; }
.plate .who .tag { margin-left: 4px; vertical-align: 1px; }
.plate .tclock { font-size: .78rem; color: var(--ink-2); font-variant-numeric: tabular-nums; white-space: nowrap; line-height: 1.2; }
.seatbox.turn .plate { outline: 3px solid var(--sun); outline-offset: 2px; }
.seatbox .status { font-size: .8rem; font-weight: 700; padding: 2px 10px; border-radius: 999px; background: var(--sun); color: var(--sun-ink); }
.fan { display: flex; align-items: flex-end; padding-left: 16px; }
.fan .back { margin-left: -16px; transform-origin: 50% 120%; }
.fan .back:nth-child(n+6) { display: none; }
.fan .back:nth-child(1) { transform: rotate(-14deg); } .fan .back:nth-child(2) { transform: rotate(-7deg); }
.fan .back:nth-child(4) { transform: rotate(7deg); } .fan .back:nth-child(5) { transform: rotate(14deg); }
.fan .count { margin-left: 10px; font-size: .78rem; font-weight: 750; color: var(--ink); background: var(--glass); padding: 1px 8px; border-radius: 999px; align-self: center; }
.raft { align-self: center; justify-self: center; width: 100%; max-width: 360px; background: var(--surface); color: var(--ink); border-radius: 20px;
  padding: 12px 14px; box-shadow: var(--shadow); display: grid; gap: 8px; }
.raft h2 { font-size: .85rem; font-family: var(--f-body); font-weight: 750; color: var(--ink-2); text-transform: uppercase; letter-spacing: .06em; }
table.auction { width: 100%; border-collapse: collapse; table-layout: fixed; text-align: center; }
.auction th { font-size: .8rem; font-weight: 750; color: var(--ink-2); padding: 4px 2px; }
.auction th.vul { color: var(--vul); }
.auction td { padding: 6px 2px; font-weight: 750; font-size: 1.05rem; border-top: 1px solid var(--line-2); }
.auction td.alerted .bidtxt { text-decoration: underline dotted 2px; text-underline-offset: 4px; }
.auction td .mark { font-size: .7rem; vertical-align: super; color: var(--coral); font-weight: 850; }
.auction td.now { color: var(--primary); }
.auction td.now span { display: inline-block; min-width: 2.2em; border-radius: 8px; border: 2px dashed var(--primary); }
.explain { display: grid; gap: 4px; font-size: .88rem; }
.explain div { display: flex; gap: 8px; align-items: baseline; }
.explain b { flex: none; }
.dock { border-radius: 22px; padding: 12px 16px 16px; color: var(--plank-ink);
  background: repeating-linear-gradient(180deg, var(--plank-1) 0 30px, var(--plank-2) 30px 32px); box-shadow: var(--shadow); display: grid; gap: 10px; }
.dock-head { display: flex; justify-content: space-between; align-items: baseline; gap: 8px; flex-wrap: wrap; }
.dock-head h2 { font-size: 1.05rem; color: var(--plank-ink); }
.dock-head span { font-size: .9rem; color: var(--plank-ink); opacity: .85; }
.hand { display: flex; flex-wrap: wrap; gap: 12px 14px; }
.suitgroup { display: flex; gap: 0; }
.suitgroup .card + .card { margin-left: -22px; }
.suitgroup .card:hover { z-index: 1; }
.side { display: grid; gap: 14px; min-width: 0; }
.panel { background: var(--surface); border-radius: 22px; padding: 16px; box-shadow: var(--shadow); display: grid; gap: 12px; border: 1px solid var(--line-2); min-width: 0; }
.panel h2 { font-size: 1.1rem; }
.panel .sub { font-size: .875rem; color: var(--ink-2); }
.yourturn { border: 3px solid var(--sun); }

/* bidding box: two taps (level, then suit), a clear confirm, and Pass always there */
.bidbox { display: grid; gap: 10px; }
.step { font-size: .8rem; font-weight: 750; color: var(--ink-2); text-transform: uppercase; letter-spacing: .05em; }
.levels { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 6px; }
.strains { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 6px; }
.bb { min-height: 48px; border-radius: 12px; border: 2px solid var(--line); background: var(--surface); font-weight: 800; font-size: 1.15rem; cursor: pointer; color: var(--ink); }
.strains .bb { font-size: 1.65rem; line-height: 1; }
.strains .bb.nt { font-size: 1rem; }
.bb[aria-pressed="true"] { border-color: var(--primary); background: color-mix(in srgb, var(--primary) 14%, var(--surface)); box-shadow: inset 0 0 0 1px var(--primary); }
.bb:disabled { opacity: .3; cursor: not-allowed; }
.calls { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 6px; }
.bb.pass { background: var(--pass); color: var(--pass-ink); border-color: color-mix(in srgb, var(--pass-ink) 35%, transparent); font-size: 1.1rem; }
.bb.dbl { color: var(--suit-h); font-size: 1rem; }
.bb.rdbl { font-size: 1rem; }
.confirm { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 8px; align-items: center; }
.alertbox { display: grid; gap: 6px; padding: 10px 12px; border-radius: 14px; background: var(--surface-2); }
.alertbox label { font-weight: 700; font-size: .9rem; }
.alertbox .check { display: flex; gap: 8px; align-items: center; min-height: 32px; font-weight: 650; }
.alertbox input[type="checkbox"] { width: 22px; height: 22px; accent-color: var(--primary); }
.textin { min-height: 44px; padding: 0 12px; border-radius: 12px; border: 2px solid var(--line); background: var(--surface); width: 100%; color: var(--ink); }
.hint { font-size: .85rem; color: var(--ink-2); }
.bank { display: grid; gap: 6px; }
.bank .row { justify-content: space-between; }
.meter { height: 12px; border-radius: 999px; background: var(--surface-2); overflow: hidden; border: 1px solid var(--line-2); }
.meter i { display: block; height: 100%; border-radius: 999px; background: linear-gradient(90deg, var(--water-3), var(--water-4)); }
.meter.low i { background: linear-gradient(90deg, var(--coral), var(--vul)); }
.w0 { width: 0; } .w10 { width: 10%; } .w25 { width: 25%; } .w40 { width: 40%; } .w55 { width: 55%; } .w70 { width: 70%; } .w85 { width: 85%; } .w100 { width: 100%; }
.settings { display: grid; gap: 6px; font-size: .9rem; }
.agreed { display: flex; flex-wrap: wrap; gap: 6px 8px; align-items: center; padding: 10px 14px; border-radius: 18px; background: var(--surface); border: 1px solid var(--line-2); font-size: .88rem; }
.agreed .lead { font-weight: 750; margin-right: 4px; }
.agreed .chip .how { color: var(--ink-2); font-size: .75rem; }
.settings div { display: flex; justify-content: space-between; gap: 10px; border-bottom: 1px dashed var(--line-2); padding-bottom: 6px; }
.settings dt, .settings dd { margin: 0; }
.settings dd { text-align: right; font-weight: 650; }
.settings .how { font-weight: 500; color: var(--ink-2); font-size: .8rem; }

/* card play */
.contract { display: inline-flex; align-items: center; gap: 10px; padding: 6px 14px 6px 6px; border-radius: 999px; background: var(--surface); box-shadow: var(--shadow); }
.contract .big { font-family: var(--f-card); font-weight: 850; font-size: 1.25rem; padding: 2px 10px; border-radius: 999px; background: var(--surface-2); }
.tricks { display: inline-flex; gap: 10px; align-items: center; font-size: .9rem; }
.tricks b { font-size: 1.15rem; }
.coach-banner { display: flex; gap: 12px; align-items: center; padding: 10px 14px; border-radius: 18px; background: var(--coach-bg); border: 2px solid var(--coach-edge); }
.coach-banner .badge { flex: none; width: 36px; height: 36px; border-radius: 50%; display: grid; place-items: center; background: var(--coach-edge); color: #241a00; font-weight: 900; }
.trick { position: relative; min-height: 270px; align-self: stretch; }
.trick::before { content: ""; position: absolute; left: 50%; top: 50%; width: min(100%, 280px); aspect-ratio: 1.45; translate: -50% -50%; border-radius: 50%;
  background: radial-gradient(closest-side, color-mix(in srgb, var(--foam) 55%, transparent), transparent); border: 2px dashed var(--ripple); }
.trick .tc { position: absolute; }
.tc.n { top: 10%; left: 50%; translate: -50% 0; } .tc.s { bottom: 10%; left: 50%; translate: -50% 0; }
.tc.w { left: 50%; top: 50%; translate: -170% -50%; } .tc.e { left: 50%; top: 50%; translate: 70% -50%; }
.tc.slot { width: 58px; height: 84px; border-radius: 8px; border: 2px dashed var(--ink-2); display: grid; place-items: center; font-weight: 800; color: var(--ink-2); background: var(--glass); }
.trick .lead-note { position: absolute; left: 50%; top: 50%; translate: -50% -50%; font-size: .8rem; font-weight: 700; color: var(--ink);
  background: var(--glass); padding: 3px 10px; border-radius: 999px; white-space: nowrap; }
.dummy { display: flex; gap: 10px; justify-content: center; flex-wrap: wrap; }
.dcol { position: relative; display: flex; flex-direction: column; align-items: center; padding-top: 0; }
.dcol .card { margin-top: -50px; }
.dcol .card:first-child { margin-top: 0; }
.seatbox .label-dummy { font-size: .78rem; font-weight: 750; padding: 2px 10px; border-radius: 999px; background: var(--glass); color: var(--ink); }
.coachchat { display: grid; gap: 8px; font-size: .92rem; }
.msg { padding: 8px 12px; border-radius: 14px; background: var(--surface-2); }
.msg b { display: block; font-size: .8rem; color: var(--ink-2); }
.msg.coach { background: var(--coach-bg); border: 1px solid var(--coach-edge); }
.vote { border: 3px solid var(--sun); }
.vote .choices { display: grid; gap: 8px; }
.vote .choices .btn { justify-content: space-between; }
.vote .choices .btn small { font-weight: 500; color: var(--ink-2); }
.vote .choices .btn-primary small { color: inherit; opacity: .85; }
.later { margin-top: 28px; display: grid; gap: 12px; }
.later h2 { font-size: 1.2rem; }
.later-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.quote { font-size: 1.05rem; font-style: italic; padding: 10px 14px; border-left: 4px solid var(--water-3); background: var(--surface-2); border-radius: 0 12px 12px 0; }

/* between boards */
.result-hero { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 16px; align-items: center; padding: 20px 22px; border-radius: 26px; }
.result-hero h1 { font-size: clamp(1.6rem, 3vw, 2.2rem); }
.score { justify-self: start; font-family: var(--f-card); font-weight: 900; font-size: 2.2rem; color: var(--ink); background: var(--glass); padding: 6px 18px; border-radius: 18px; }
.dealgrid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); grid-template-areas: ". n ." "w c e" ". s ."; gap: 8px; }
.dealgrid .h { display: grid; gap: 2px; font-family: var(--f-card); font-weight: 700; font-size: .95rem; min-width: 0; }
.dealgrid .h b { font-family: var(--f-body); font-size: .8rem; color: var(--ink-2); font-weight: 750; }
.dealgrid .n { grid-area: n; } .dealgrid .s { grid-area: s; } .dealgrid .e { grid-area: e; } .dealgrid .w { grid-area: w; }
.dealgrid .c { grid-area: c; place-self: center; color: var(--ink-2); font-size: .85rem; text-align: center; }
.field { display: grid; gap: 6px; font-size: .92rem; }
.field div { display: flex; justify-content: space-between; gap: 8px; padding: 6px 10px; border-radius: 10px; background: var(--surface-2); }
.field div.us { outline: 2px solid var(--water-3); }

/* save your name */
.savewrap { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); gap: 20px; align-items: start; margin-top: 18px; }
.save-hero { border-radius: 28px; overflow: hidden; display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 18px; align-items: center; padding: 18px 22px; }
.save-hero svg { width: 150px; height: 84px; }
.save-hero h1 { font-size: clamp(1.6rem, 3vw, 2.2rem); }
.choice { display: grid; gap: 4px; padding: 14px; border-radius: 16px; border: 2px solid var(--line-2); background: var(--surface); }
.choice.on { border-color: var(--primary); }
.choice .t { font-weight: 750; display: flex; align-items: center; gap: 8px; }
.noemail { display: grid; grid-template-columns: auto 1fr; gap: 12px; padding: 12px 14px; border-radius: 16px; background: var(--coach-bg); border: 2px solid var(--coach-edge); }
.codes { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 6px; font-size: .9rem; font-family: ui-monospace, "SF Mono", Menlo, "DejaVu Sans Mono", monospace; font-size: .95rem; }
.codes span { padding: 6px 10px; border-radius: 10px; background: var(--surface-2); text-align: center; }
.prefs { display: grid; gap: 2px; }
.pref { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 10px; align-items: center; min-height: 52px; padding: 6px 0; border-bottom: 1px dashed var(--line-2); }
.pref .what { display: grid; }
.pref .what span { font-size: .85rem; color: var(--ink-2); }
.switch { width: 52px; height: 30px; border-radius: 999px; background: var(--surface-2); border: 2px solid var(--line); position: relative; flex: none; }
.switch::after { content: ""; position: absolute; top: 3px; left: 3px; width: 20px; height: 20px; border-radius: 50%; background: var(--ink-2); }
.switch.on { background: var(--primary); border-color: var(--primary); }
.switch.on::after { left: 25px; background: var(--on-primary); }
.select { min-height: 40px; padding: 0 10px; border-radius: 10px; border: 2px solid var(--line); background: var(--surface); }

/* ---------- responsive ---------- */
@media (max-width: 1080px) {
  .tablegrid { grid-template-columns: minmax(0, 1fr); }
  .actions-first > .side { order: -1; }
  .side { grid-template-columns: repeat(auto-fit, minmax(min(100%, 320px), 1fr)); }
}
@media (max-width: 900px) {
  .tiers, .suggest { grid-template-columns: minmax(0, 1fr); }
  .tier { grid-template-columns: 180px minmax(0, 1fr); grid-template-rows: auto; }
  .tier-art { height: auto; min-height: 100%; }
  .trow { grid-template-columns: minmax(0, 1fr) auto; }
  .trow .tseats { grid-column: 1 / -1; grid-row: 2; }
  .savewrap, .later-grid { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 600px) {
  body { font-size: 15.5px; }
  .topnav a { display: none; }
  .site-header { flex-wrap: nowrap; padding-block: 8px; }
  .toggle { padding: 0 10px; }
  .toggle .lbl { display: none; }
  .hero-scene .b-sun, .hero-scene .b-moon, .hero-scene .b-star { display: none; }
  .wordmark { font-size: 1rem; }
  .logo svg { width: 46px; height: 32px; }
  .hero { min-height: 0; }
  .hero-inner { padding-block: 12px 84px; }
  .hero h1 { font-size: 1.7rem; }
  .hero .lede { font-size: 1rem; }
  .hero .lede .more { display: none; }
  .namebox { padding: 10px 12px; gap: 4px; }
  .name-input { min-height: 46px; font-size: 1.1rem; }
  .namebox .hint { display: none; }
  .fl-1 { right: 56%; bottom: 52px; } .fl-2 { right: 34%; bottom: 44px; } .fl-3 { right: 10%; bottom: 54px; }
  .fl-4, .fl-5 { display: none; }
  .floaters .card { --w: 44px; --h: 62px; } .floaters .card .r { font-size: 1.1rem; } .floaters .card .pip { font-size: 1.3rem; }
  .floaters .back.lg { width: 42px; height: 60px; }
  .tiers { gap: 12px; }
  .tier { grid-template-columns: minmax(0, 1fr); }
  .tier-art { height: 64px; }
  .tier-body { padding: 10px 14px 14px; gap: 6px; }
  .tier h3 { font-size: 1.3rem; }
  .tier .desc, .tier .chips { display: none; }
  .tier .btn-big { min-height: 50px; font-size: 1.05rem; }
  .tiers-head .muted { font-size: .9rem; }
  .tseats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .empty { grid-template-columns: minmax(0, 1fr); }
  .tablebar { padding-block: 0 10px; gap: 8px; }
  .tb-title h1 { font-size: 1.25rem; }
  .tb-side .btn { min-height: 40px; padding: 0 14px; font-size: .9rem; }
  .watchers .why { display: none; }
  .vote { position: fixed; left: 8px; right: 8px; bottom: 8px; z-index: 20; box-shadow: 0 10px 40px rgba(0, 0, 0, .35); }
  .pool { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); grid-template-rows: auto; padding: 12px; min-height: 0; border-radius: 24px;
    grid-template-areas: "top top" "left right" "mid mid" "bottom bottom"; }
  .fan { display: none; }
  .seatbox.pos-bottom { display: none; }
  .plate { padding-right: 10px; }
  .plate .dir { width: 26px; height: 26px; font-size: .8rem; }
  .raft { max-width: none; }
  .hand { display: grid; gap: 6px; }
  .suitgroup { flex-wrap: wrap; gap: 5px; }
  .suitgroup .card + .card { margin-left: 0; }
  .hand .card { --w: 40px; --h: 54px; padding: 3px 4px; border-radius: 6px; } .hand .card .r { font-size: 1.1rem; } .hand .card .s { font-size: .85rem; } .hand .card .pip { font-size: 1.1rem; right: 3px; bottom: 2px; }
  .dock { padding: 10px 12px 12px; gap: 6px; }
  .watchers .note { display: none; }
  .vote { padding: 12px; gap: 8px; }
  .vote h2 { font-size: 1rem; }
  .vote .sub { font-size: .8rem; }
  .vote .choices { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 6px; }
  .vote .choices .btn { padding: 0 6px; white-space: normal; line-height: 1.1; font-size: .88rem; justify-content: center; text-align: center; }
  .vote .choices .btn small { display: none; }
  .has-sheet { padding-bottom: 190px; }
  .agreed .chip ~ .chip { display: none; }
  .callbar { display: flex; position: fixed; left: 8px; right: 8px; bottom: 8px; z-index: 20; align-items: center; gap: 8px;
    padding: 8px 8px 8px 14px; border-radius: 999px; background: var(--surface); border: 3px solid var(--sun); box-shadow: 0 10px 40px rgba(0, 0, 0, .3); }
  .callbar b { flex: 1 1 auto; min-width: 0; font-family: var(--f-display); }
  .callbar .btn { min-height: 46px; padding: 0 14px; }
  .has-callbar { padding-bottom: 84px; }
  .trick { min-height: 230px; }
  .tc.slot { width: 44px; height: 62px; }
  .trick .card { --w: 48px; --h: 68px; } .trick .card .r { font-size: 1.2rem; } .trick .card .pip { font-size: 1.45rem; }
  .dcol .card { margin-top: -40px; }
  .result-hero { grid-template-columns: minmax(0, 1fr); }
  .save-hero { grid-template-columns: minmax(0, 1fr); }
  .sayings-label { display: none; }
}
@media (max-width: 360px) {
  .levels { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .hero h1 { font-size: 1.5rem; }
  .hero-copy { gap: 8px; }
  .hero-inner { padding-block: 8px 66px; }
  .hero .lede { font-size: .95rem; }
  .tiers-head .muted { display: none; }
  .tiers-head { margin-block: 12px 8px; }
  .tier-art { height: 52px; }
  .callbar b { font-size: .9rem; }
  .logo { gap: 6px; } .logo svg { width: 38px; height: 26px; } .wordmark { font-size: .92rem; }
  .toggles { gap: 2px; } .toggle { padding: 0 8px; } .deck-swatch { font-size: .9rem; }
  .toggle .lbl { display: none; }
  .namebox .row { flex-wrap: wrap; }
}

/* ---------- motion off ---------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .floaty { transform: rotate(var(--r)); }
  .sayings-track { width: auto; }
  .sayings-track .say:not(.current) { display: none; }
  .sayings-track .say.current { white-space: normal; }
  .sayings .another { display: inline-flex; }
  button.card.playable:hover { transform: none; }
}

/* shared bits used by several screens */
.check { display: flex; gap: 8px; align-items: center; min-height: 32px; font-weight: 650; }
.check input[type="checkbox"] { width: 22px; height: 22px; accent-color: var(--primary); }
button.switch { cursor: pointer; padding: 0; }
.switch[aria-pressed="true"] { background: var(--primary); border-color: var(--primary); }
.switch[aria-pressed="true"]::after { left: 25px; background: var(--on-primary); }
.noemail .badge { width: 36px; height: 36px; border-radius: 50%; display: grid; place-items: center; background: var(--coach-edge); color: #241a00; font-weight: 900; }
.sayings.panel { display: flex; padding: 8px 16px; border-radius: 999px; }
@media (min-width: 601px) { .callbar { display: none; } }
/* lamps on the hero bridge: lit only at night tide */
.b-post { fill: none; stroke: var(--stone-3); stroke-width: 4; display: var(--moon-display); }
.b-lamp { fill: var(--sun); display: var(--moon-display); }
.b-glow { fill: var(--sun); opacity: .18; display: var(--moon-display); }
.b-lamp-ref { fill: none; stroke: var(--sun); stroke-width: 3; stroke-linecap: round; opacity: .55; display: var(--moon-display); }

/* ---------- live site additions ---------- */
.w0 { width: 0; } .w5 { width: 5%; } .w10 { width: 10%; } .w15 { width: 15%; } .w20 { width: 20%; } .w25 { width: 25%; }
.w30 { width: 30%; } .w35 { width: 35%; } .w40 { width: 40%; } .w45 { width: 45%; } .w50 { width: 50%; } .w55 { width: 55%; }
.w60 { width: 60%; } .w65 { width: 65%; } .w70 { width: 70%; } .w75 { width: 75%; } .w80 { width: 80%; } .w85 { width: 85%; }
.w90 { width: 90%; } .w95 { width: 95%; } .w100 { width: 100%; }
#main { display: block; min-height: 50vh; }
#main:focus { outline: none; }
.page { display: grid; gap: 16px; padding-block: 8px 32px; }
.page > h1 { font-size: clamp(1.5rem, 3vw, 2rem); }
#toast { position: fixed; left: 50%; bottom: max(16px, env(safe-area-inset-bottom, 0px)); transform: translateX(-50%); z-index: 40;
  background: var(--ink); color: var(--page); padding: 10px 16px; border-radius: 14px; opacity: 0; pointer-events: none;
  transition: opacity .2s; max-width: min(90vw, 560px); box-shadow: var(--shadow); }
#toast.show { opacity: 1; }
.has-callbar #toast, .has-sheet #toast { bottom: 96px; }
.hidden { display: none !important; }
.whoami { display: grid; gap: 6px; }
.whoami .me { font-family: var(--f-display); font-weight: 700; font-size: 1.25rem; }
.whoami .row { flex-wrap: wrap; }
.navme { font-weight: 700; color: var(--ink); padding: 0 6px; max-width: 14em; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.tseat .btn[disabled] { border-style: dotted; }
.tseat .later { font-size: .8rem; color: var(--ink-2); }
.trow .btn-quiet { justify-self: end; }
.field-label { display: grid; gap: 6px; font-weight: 700; font-size: .92rem; }
.formgrid { display: grid; gap: 12px; max-width: 440px; }
.login { display: grid; gap: 14px; max-width: 520px; }
.prose { display: grid; gap: 10px; max-width: 70ch; }
.prose ol, .prose ul.dots { margin: 0; padding-left: 1.4em; display: grid; gap: 6px; }
.prose ul.dots { list-style: disc; }
.prose h2 { margin-top: 8px; font-size: 1.2rem; }
.note { padding: 10px 14px; border-radius: 16px; background: var(--surface-2); border: 1px solid var(--line-2); }
.watch-note { display: flex; gap: 10px; align-items: center; padding: 10px 14px; border-radius: 18px; background: var(--surface); border: 1px dashed var(--water-3); }
.request { border: 3px solid var(--coach-edge); background: var(--coach-bg); }
.msgs { display: grid; gap: 8px; max-height: 320px; overflow-y: auto; font-size: .92rem; }
.msg { overflow-wrap: anywhere; }
.trick .tc.last { opacity: .62; }
.trick .won { position: absolute; left: 50%; bottom: 0; translate: -50% 0; font-size: .8rem; font-weight: 700; background: var(--glass); padding: 2px 10px; border-radius: 999px; white-space: nowrap; }
.dcol button.card.playable { z-index: 1; }
.dock .empty-hand { color: var(--plank-ink); opacity: .85; }
.auction td.alerted .mark { margin-left: 1px; }
.side .auction td { font-size: .95rem; }
table.list { width: 100%; border-collapse: collapse; font-size: .92rem; }
table.list th, table.list td { text-align: left; padding: 8px 6px; border-bottom: 1px solid var(--line-2); vertical-align: top; }
table.list th { font-size: .75rem; text-transform: uppercase; letter-spacing: .05em; color: var(--ink-2); }
.num { font-variant-numeric: tabular-nums; }
.scroll { overflow-x: auto; }
.mono { font-family: ui-monospace, "SF Mono", Menlo, "DejaVu Sans Mono", monospace; font-size: .85rem; word-break: break-all; }
.inline { display: flex; gap: 10px; flex-wrap: wrap; align-items: end; }
.inline label { display: grid; gap: 4px; font-size: .85rem; color: var(--ink-2); font-weight: 650; }
.inline input, .inline select, .formgrid input { min-height: 44px; padding: 0 12px; border-radius: 12px; border: 2px solid var(--line); background: var(--surface); color: var(--ink); min-width: 0; }
.banner { display: flex; gap: 8px 12px; flex-wrap: wrap; align-items: center; padding: 10px 14px; border-radius: 16px; background: var(--surface); border: 3px solid var(--sun); }
.dealgrid .h span { white-space: nowrap; }
.save-prompt { border: 3px solid var(--sun); }
.choices .btn[aria-pressed="true"] { box-shadow: inset 0 0 0 2px var(--on-primary); }
.bb.lvl { font-family: var(--f-card); }
details.board > summary { cursor: pointer; font-weight: 700; padding: 6px 0; }
@media (max-width: 600px) {
  .tb-side .contract { padding: 4px 10px 4px 4px; }
  .page { padding-block: 4px 24px; }
  .msgs { max-height: 220px; }
}
/* dummy floats, but holds still while you are choosing a card from it */
.dcol:has(button.card.playable), .dcol:has(button.card.playable)::after { animation: none; }
.dcol:has(button.card.playable) .card { margin-top: -30px; }
.dcol:has(button.card.playable) .card:first-child { margin-top: 0; }
.dcol button.card:hover, .dcol button.card:focus-visible { z-index: 2; }
@media (max-width: 600px) { .dcol:has(button.card.playable) .card { margin-top: -28px; } .dcol:has(button.card.playable) .card:first-child { margin-top: 0; } }
@media (max-width: 600px) { .topnav .navout { display: none; } .navme { max-width: 9em; font-size: .9rem; } }
.topnav a.navme { color: var(--ink); }

/* ---------- round 1: rooms, friends, name cards, invites ---------- */
.linkish { background: none; border: 0; padding: 2px 1px; margin: -2px -1px; font: inherit; color: inherit; cursor: pointer; text-align: left;
  text-decoration: underline dotted color-mix(in srgb, currentColor 45%, transparent); text-underline-offset: 3px; border-radius: 6px;
  max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.linkish:hover { text-decoration-style: solid; color: var(--primary); }
.plate .who .linkish { font-weight: inherit; }
.msg b .linkish { font-weight: 700; }
.navchat { gap: 6px; min-height: 40px; padding: 0 12px; font-weight: 650; color: var(--ink-2); }
.navchat.on { background: var(--surface-2); color: var(--ink); }
.navchat .count { min-width: 1.5em; padding: 0 6px; border-radius: 999px; background: var(--primary); color: var(--on-primary); font-size: .75rem; font-weight: 800; line-height: 1.5; }
.drawer { position: fixed; top: 0; right: 0; bottom: 0; z-index: 30; width: min(420px, 100vw); display: grid; grid-template-rows: auto auto minmax(0, 1fr);
  gap: 10px; padding: 14px 16px max(14px, env(safe-area-inset-bottom, 0px)); background: var(--surface); border-left: 1px solid var(--line-2);
  box-shadow: -14px 0 40px rgba(14, 42, 59, .16); }
.drawer[hidden] { display: none; }
@media (min-width: 1240px) { body.has-drawer { padding-right: 420px; } body.has-drawer #toast { left: calc(50% - 210px); }
  body.has-drawer .toggles .lbl, body.has-drawer .navout { display: none; } }
.drawer-head { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding-bottom: 6px; border-bottom: 2px dotted var(--water-2); }
.drawer-head h2 { font-family: var(--f-display); font-size: 1.2rem; }
.drawer .close, .nc .close { min-height: 40px; width: 40px; padding: 0; font-size: 1.05rem; }
.tabs { display: flex; gap: 6px; flex-wrap: wrap; }
.tab { min-height: 40px; padding: 0 14px; border-radius: 999px; border: 2px solid var(--line); background: var(--surface); color: var(--ink-2); font-weight: 700; cursor: pointer; }
.tab[aria-selected="true"] { background: var(--primary); border-color: var(--primary); color: var(--on-primary); }
.drawer-body { min-height: 0; display: flex; flex-direction: column; gap: 10px; overflow-y: auto; }
.drawer-body.tab-rooms { overflow: hidden; }
.roompick { display: flex; gap: 6px; flex-wrap: wrap; }
.pill { display: inline-flex; align-items: center; gap: 6px; min-height: 36px; padding: 0 12px; border-radius: 999px; border: 2px solid var(--line-2);
  background: var(--surface-2); color: var(--ink); font-size: .88rem; font-weight: 650; cursor: pointer; }
.pill.on { border-color: var(--water-3); background: var(--water-1); }
.pill .here { min-width: 1.4em; text-align: center; padding: 0 5px; border-radius: 999px; background: var(--surface); color: var(--ink-2); font-size: .75rem; font-weight: 800; }
.drawer .about { font-size: .86rem; color: var(--ink-2); }
.roomlog { flex: 1 1 auto; min-height: 120px; max-height: none; align-content: start; padding: 4px 2px; }
.roomlog .msg { display: grid; gap: 2px; padding: 8px 12px; border-radius: 14px; background: var(--surface-2); }
.roomlog .msg.mine { background: var(--water-1); }
.msg-head { display: flex; align-items: baseline; gap: 8px; min-width: 0; font-size: .8rem; color: var(--ink-2); }
.msg-head .linkish { font-weight: 750; color: var(--ink); min-width: 0; }
.msg-head .at { flex: none; font-variant-numeric: tabular-nums; }
.msg .text { margin: 0; overflow-wrap: anywhere; }
.mini { margin-left: auto; min-height: 28px; padding: 0 8px; border-radius: 8px; border: 1px solid transparent; background: transparent; color: var(--ink-2);
  font-size: .75rem; cursor: pointer; opacity: .75; }
.mini + .mini { margin-left: 0; }
.mini:hover, .mini:focus-visible { opacity: 1; border-color: var(--line); background: var(--surface); }
.quiet { display: grid; justify-items: center; gap: 6px; padding: 18px 8px; color: var(--ink-2); text-align: center; }
.quiet svg { width: 120px; height: auto; }
.composer { gap: 8px; }
.composer .textin { flex: 1 1 12em; min-width: 0; width: auto; }
.composer.joinas { display: grid; }
.composer.joinas .row { flex-wrap: nowrap; }
.readonly { padding: 10px 14px; border-radius: 16px; background: var(--coach-bg); border: 1px solid var(--coach-edge); font-size: .9rem; }
.addfriend .textin { flex: 1 1 10em; width: auto; }
.friends { display: grid; gap: 8px; margin: 0; padding: 0; list-style: none; }
.friend { display: grid; gap: 4px; padding: 10px 12px; border-radius: 16px; background: var(--surface-2); }
.f-top { display: flex; align-items: center; gap: 8px; min-width: 0; font-weight: 750; }
.dot { width: 10px; height: 10px; flex: none; border-radius: 50%; background: var(--line); }
.dot.on { background: var(--ok); box-shadow: 0 0 0 3px color-mix(in srgb, var(--ok) 25%, transparent); }
.mutual { color: var(--coral); }
.f-where { margin: 0; font-size: .85rem; color: var(--ink-2); }
.f-acts .btn { min-height: 38px; padding: 0 12px; font-size: .88rem; }
.modlist { display: grid; gap: 6px; margin: 0; padding: 0; list-style: none; font-size: .86rem; }
.modlist li { display: flex; flex-wrap: wrap; gap: 4px 8px; align-items: baseline; padding: 6px 10px; border-radius: 12px; background: var(--surface-2); overflow-wrap: anywhere; }
.drawer h3 { font-size: .95rem; }
.nc-wrap { position: fixed; inset: 0; z-index: 45; display: grid; place-items: center; padding: 16px; background: rgba(7, 20, 32, .38); }
.nc { width: min(380px, 100%); display: grid; gap: 8px; padding: 16px 18px 18px; border-radius: 22px; background: var(--surface); border: 1px solid var(--line-2);
  box-shadow: 0 20px 60px rgba(7, 20, 32, .35); }
.nc-head { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.nc-head h2 { font-family: var(--f-display); font-size: 1.3rem; overflow-wrap: anywhere; }
.nc-tags { display: flex; gap: 6px; flex-wrap: wrap; }
.friendtag { background: color-mix(in srgb, var(--coral) 18%, var(--surface)); color: var(--ink); }
.nc-where { font-weight: 650; }
.nc-acts { margin-top: 4px; }
.invites { position: fixed; left: 16px; bottom: 16px; z-index: 35; display: grid; gap: 8px; width: min(360px, calc(100vw - 32px)); }
.invite { display: grid; gap: 8px; padding: 12px 14px; border-radius: 18px; background: var(--surface); border: 3px solid var(--water-3); box-shadow: var(--shadow); }
.invite p { margin: 0; }
.roomscard { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px 20px; margin-top: 22px; padding: 16px 18px;
  border-radius: 22px; background: var(--surface); border: 2px dashed var(--water-2); }
.roomscard h2 { font-size: 1.15rem; }
.leave { display: inline-flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.leave-note { font-size: .8rem; color: var(--ink-2); max-width: 15em; line-height: 1.25; }
@media (max-width: 600px) {
  .drawer { top: auto; left: 0; width: 100%; height: min(88vh, 88dvh); border-left: 0; border-top: 1px solid var(--line-2); border-radius: 22px 22px 0 0;
    box-shadow: 0 -12px 40px rgba(14, 42, 59, .22); }
  .nc-wrap { place-items: end stretch; padding: 0; }
  .nc { width: 100%; border-radius: 22px 22px 0 0; padding-bottom: max(18px, env(safe-area-inset-bottom, 0px)); }
  .invites { left: 8px; right: 8px; width: auto; top: 8px; bottom: auto; }
  .navchat { min-height: 38px; padding: 0 10px; }
  .leave-note { font-size: .75rem; max-width: 12em; }
}
@media (prefers-reduced-motion: reduce) { .drawer, .nc, .invite { transition: none; } }

/* ---------- round 2: the table fits one screen; review, history, daily board ---------- */
body.on-table .divider, body.on-table .site-footer { display: none; }
body.on-table .site-header { padding-block: 6px; flex-wrap: nowrap; }
body.on-table .site-header .topnav { flex-wrap: nowrap; min-width: 0; }
body.on-table .topnav a[href="#events"], body.on-table .topnav a[href="#learn"] { display: none; }
.short { display: none; }
body.on-table #toast { top: 12px; bottom: auto; }
.table-page .dummy { gap: 16px; }
/* dummy columns tilt gently, so a tilted column never covers its neighbour's rank or suit */
.dummy .dcol.r-b { --r: 2deg; } .dummy .dcol.r-e { --r: -3deg; }
.table-page { gap: 10px; padding-block: 2px 12px; }
.table-page .tablebar { padding-block: 0; gap: 6px 14px; }
.table-page .tb-title { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 10px; }
.table-page .tb-title h1 { font-size: 1.2rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 100%; }
.table-page .tb-meta .chip { font-size: .8rem; padding: 2px 9px; }
.table-page .tb-side { gap: 6px 12px; }
.table-page .contract { padding: 4px 12px 4px 4px; }
.table-page .contract .big { font-size: 1.1rem; }
.sheet-btns { display: none; }
.alert-more { display: grid; gap: 6px; }
.sheet-btn { min-height: 40px; padding: 0 12px; gap: 6px; color: var(--ink); background: var(--surface); border-color: var(--line-2); }
.sheet-btn .count { min-width: 1.5em; padding: 0 6px; border-radius: 999px; background: var(--primary); color: var(--on-primary); font-size: .75rem; font-weight: 800; line-height: 1.5; }
.sheet-head { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.sheet-close { display: none; }
.pool { container: pool / inline-size; }
.pool.seated { grid-template-rows: auto minmax(0, 1fr); grid-template-areas: ". top ." "left mid right"; }
.pool.phase-auction .raft { max-width: 380px; }
.side .waiting { font-weight: 650; }
.compact-auction { padding: 10px 14px; gap: 6px; }
.compact-auction .auction td { padding: 3px 2px; font-size: .92rem; }
.compact-auction h2 { font-size: 1rem; }

/* dummy: every card shows its rank and suit in the visible strip */
.dcol .card { margin-top: calc(26px - var(--h)); grid-template-columns: auto auto; grid-template-rows: auto 1fr; column-gap: 1px; align-content: start; }
.dcol .card:first-child, .dcol:has(button.card.playable) .card:first-child { margin-top: 0; }
.dcol:has(button.card.playable) .card { margin-top: calc(32px - var(--h)); }
.dcol .card .s { margin-top: 2px; }
.dummy-text { display: none; gap: 2px; padding: 6px 10px; border-radius: 12px; background: var(--surface); color: var(--ink); box-shadow: var(--shadow);
  font-family: var(--f-card); font-weight: 750; font-size: .95rem; line-height: 1.35; }
.dummy-text .drow { display: flex; gap: 6px; white-space: nowrap; }
.dummy-text .drow > span:first-child { width: 1.1em; flex: none; }
@container pool (max-width: 640px) {
  .seatbox.pos-left.has-dummy .dummy, .seatbox.pos-right.has-dummy .dummy { display: none; }
  .seatbox.pos-left.has-dummy .dummy-text, .seatbox.pos-right.has-dummy .dummy-text { display: grid; }
}

/* your hand dock: your plate, whose turn, your cards */
.dock { gap: 8px; padding: 10px 14px 12px; }
.dock.turn { outline: 3px solid var(--sun); outline-offset: 2px; }
.dock-head { align-items: center; gap: 6px 10px; justify-content: flex-start; flex-wrap: nowrap; min-width: 0; }
.dock-head h2 { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; min-width: 0; }
.dock-head .status { white-space: nowrap; flex: none; }
.dock-head .status span { color: inherit; opacity: 1; }
.dock-head .dir { width: 30px; height: 30px; flex: none; border-radius: 50%; display: grid; place-items: center; background: var(--deep-2); color: #fff; font-weight: 850; font-size: .85rem; }
.dock-head .dir.vul { background: var(--vul); color: var(--on-vul); }
.dock-head .meta { font-size: .85rem; opacity: .85; white-space: nowrap; }
.dock-head .status { margin-left: auto; font-size: .82rem; font-weight: 750; padding: 2px 10px; border-radius: 999px; background: var(--glass); color: var(--ink); opacity: 1; }
.dock-head .status.now { background: var(--sun); color: var(--sun-ink); }
.hrow { display: contents; }
.dock { container: dock / inline-size; position: relative; }
@container dock (max-width: 700px) { .hand { gap: 8px 10px; } .suitgroup .card + .card { margin-left: -32px; } }

/* the review */
.ddline { font-weight: 650; }
.review-fold { border-top: 1px dashed var(--line-2); padding-top: 8px; }
.review-fold > summary { cursor: pointer; font-weight: 750; min-height: 40px; display: flex; align-items: center; color: var(--primary); }
.review-body { padding-top: 6px; }
.review { display: grid; gap: 14px; }
.review h3 { font-size: 1rem; }
.review-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 16px; align-items: start; }
table.makeable { border-collapse: collapse; font-family: var(--f-card); font-weight: 750; font-size: .95rem; }
.makeable th, .makeable td { padding: 4px 8px; text-align: center; border-bottom: 1px solid var(--line-2); }
.makeable tbody th { text-align: left; font-family: var(--f-body); font-size: .85rem; color: var(--ink-2); }
.makeable td.makes { color: var(--ink); background: color-mix(in srgb, var(--water-2) 30%, transparent); }
.makeable td:not(.makes) { color: var(--ink-2); }
.replay { display: grid; gap: 10px; padding: 12px; border-radius: 18px; background: var(--surface-2); }
.replay:focus-visible { outline: 3px solid var(--primary); outline-offset: 2px; }
.rtable { position: relative; display: grid; grid-template-columns: minmax(0, 1fr) minmax(150px, 1fr) minmax(0, 1fr); grid-template-rows: auto minmax(150px, auto) auto;
  grid-template-areas: ". top ." "left mid right" ". bottom ."; gap: 8px; }
.rh { display: grid; gap: 1px; font-family: var(--f-card); font-weight: 700; font-size: .92rem; min-width: 0; }
.rh b { font-family: var(--f-body); font-size: .78rem; color: var(--ink-2); font-weight: 750; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.rh span { white-space: nowrap; }
.rh.top { grid-area: top; justify-self: center; } .rh.bottom { grid-area: bottom; justify-self: center; }
.rh.left { grid-area: left; align-self: center; } .rh.right { grid-area: right; align-self: center; justify-self: end; }
.rmid { grid-area: mid; position: relative; min-height: 150px; border-radius: 50%; border: 2px dashed var(--ripple);
  background: radial-gradient(closest-side, color-mix(in srgb, var(--foam) 45%, transparent), transparent); }
.rmid .tc { position: absolute; }
.rmid .tc.n { top: 4px; left: 50%; translate: -50% 0; } .rmid .tc.s { bottom: 4px; left: 50%; translate: -50% 0; }
.rmid .tc.w { left: 4px; top: 50%; translate: 0 -50%; } .rmid .tc.e { left: auto; right: 4px; top: 50%; translate: 0 -50%; }
.rmid .lead-note { position: absolute; left: 50%; top: 50%; translate: -50% -50%; font-size: .8rem; font-weight: 700; background: var(--glass); padding: 3px 10px; border-radius: 999px; white-space: nowrap; }
.rctl { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; }
.rctl .where { flex: 1 1 10em; text-align: center; font-size: .85rem; font-weight: 650; color: var(--ink-2); }
.rctl .btn { min-height: 40px; padding: 0 12px; }
.cost { color: var(--coral); }
.costs { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; }
.linkchip { cursor: pointer; border: 1px solid var(--line); background: var(--surface); color: var(--ink); min-height: 32px; }
.linkchip:hover { border-color: var(--water-3); }

/* my boards and the daily board */
.hlist { display: grid; gap: 8px; margin: 0; padding: 0; list-style: none; }
.hrec { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 4px 12px; align-items: center; padding: 10px 14px; border-radius: 16px; background: var(--surface); border: 1px solid var(--line-2); }
.hr-top { display: flex; flex-wrap: wrap; gap: 4px 10px; align-items: baseline; min-width: 0; }
.hr-mid { grid-column: 1; display: flex; flex-wrap: wrap; gap: 4px 12px; align-items: baseline; font-size: .92rem; }
.hrec > .btn, .hrec > .hint { grid-column: 2; grid-row: 1 / span 2; }
.sc { font-family: var(--f-card); font-variant-numeric: tabular-nums; }
.sc.up { color: var(--ok); } .sc.down { color: var(--vul); }
.dailycard { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px 20px; margin-top: 18px; padding: 14px 18px;
  border-radius: 22px; background: var(--surface); border: 2px solid var(--water-2); }
.dailycard h2 { font-size: 1.15rem; }
.daily-results tr.you td { background: color-mix(in srgb, var(--sun) 22%, transparent); font-weight: 700; }
.daily-results .tag { margin-left: 6px; }
details.proof > summary { cursor: pointer; font-weight: 700; }

/* one screen on a laptop or desktop: the table fills the window; the side column scrolls inside itself */
@media (min-width: 901px) {
  body.on-table { min-height: 100dvh; display: flex; flex-direction: column; }
  body.on-table > #main { flex: 1 1 auto; display: flex; flex-direction: column; min-height: 0; }
  body.on-table .table-page { flex: 1 1 auto; display: flex; flex-direction: column; min-height: 0; }
  .table-page > .tablegrid { flex: 1 1 auto; min-height: 0; grid-template-columns: minmax(0, 1fr) 340px; align-items: stretch; gap: 16px; }
  .table-page .mainco { display: flex; flex-direction: column; gap: 10px; min-height: 0; }
  .table-page .pool { flex: 1 1 auto; min-height: 360px; padding: 12px 16px; gap: 8px; }
  .table-page .side { position: relative; contain: size; overflow-y: auto; align-content: start; padding: 2px 4px 4px 2px; }
  .table-page .trick { min-height: 200px; }
}
@media (min-width: 901px) and (max-width: 1080px) { .table-page > .tablegrid { grid-template-columns: minmax(0, 1fr) 300px; } }

/* phones: header, bar, table, your hand and (in the auction) the bidding box in one screen */
@media (max-width: 600px) {
  body.on-table .site-header { padding-block: 4px; }
  body.on-table .wordmark { display: none; }
  .table-page { gap: 8px; padding-block: 0 10px; }
  .table-page .tablebar { flex-wrap: wrap; gap: 6px 8px; }
  .table-page .tablebar::before { content: ""; order: 2; flex-basis: 100%; height: 0; }
  .table-page .tb-title { order: 0; flex: 1 1 0; min-width: 0; }
  .table-page .tb-title h1 { font-size: 1.05rem; }
  .table-page .tb-meta, .table-page .watchers { display: none; }
  .table-page .leave { flex-wrap: nowrap; gap: 6px; }
  .table-page .leave-note { max-width: 8.5em; font-size: .7rem; line-height: 1.15; }
  .table-page .tb-side { display: contents; }
  .table-page .tb-side > .leave { order: 1; }
  .table-page .tb-side > .contract, .table-page .tb-side > .tricks { order: 3; }
  .table-page .tb-side > .sheet-btns { order: 3; display: inline-flex; gap: 6px; margin-left: auto; }
  .table-page .tablebar:not(:has(.contract)) .tb-side > .sheet-btns { order: 1; margin-left: 0; }
  .table-page .tb-side .btn { min-height: 38px; padding: 0 10px; font-size: .88rem; }
  .table-page .long { display: none; }
  .table-page .short { display: inline; }
  .table-page .contract { gap: 6px; padding: 3px 10px 3px 3px; font-size: .88rem; }
  .table-page .contract .big { font-size: 1rem; padding: 1px 8px; }
  .table-page .tricks { gap: 6px; font-size: .82rem; }
  .table-page .tricks b { font-size: 1rem; }
  .table-page .sheet-btn .icon { display: none; }
  .dock-head .meta .who { display: none; }
  .table-page .trick .card { --w: 44px; --h: 62px; } .table-page .trick .card .r { font-size: 1.1rem; } .table-page .trick .card .pip { font-size: 1.3rem; }
  .table-page .trick .tc.slot { width: 44px; height: 62px; }
  .table-page .side .sheetable { display: none; }
  .table-page .side .sheetable.open { display: grid; position: fixed; left: 8px; right: 8px; bottom: 8px; max-height: 72dvh; overflow-y: auto; z-index: 26;
    box-shadow: 0 10px 40px rgba(0, 0, 0, .35); }
  .table-page .sheet-close { display: inline-flex; }
  .table-page .pool { padding: 8px; gap: 6px; border-radius: 20px; }
  .pool.seated.phase-play { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); grid-template-rows: auto auto minmax(0, 1fr);
    grid-template-areas: "top top" "left right" "mid mid"; }
  .pool.seated.phase-auction { grid-template-columns: minmax(0, 1fr); grid-template-rows: auto; grid-template-areas: "mid"; }
  .pool.seated.phase-auction .seatbox { display: none; }
  .pool.seated.phase-auction .raft { padding: 8px 10px; gap: 4px; }
  .pool.seated.phase-auction .raft h2 { display: none; }
  .raft .auction td { padding: 4px 2px; font-size: .98rem; }
  .table-page .seatbox { gap: 4px; }
  .table-page .seatbox .status { font-size: .72rem; padding: 1px 8px; }
  .table-page .plate { padding: 3px 10px 3px 3px; }
  .table-page .plate .who { font-size: .9rem; }
  .table-page .trick { min-height: 160px; }
  .dcol .card { margin-top: calc(24px - var(--h)); }
  .dcol:has(button.card.playable) .card { margin-top: calc(30px - var(--h)); }
  .dummy { gap: 8px; }
  .dock { padding: 8px 10px 10px; gap: 6px; border-radius: 18px; }
  .dock-head h2 { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
  .dock-head .meta { font-size: .78rem; }
  .dock-head .status { font-size: .76rem; }
  .hand { display: grid; gap: 6px; }
  .hrow { display: flex; gap: 6px; }
  .hrow .suitgroup { flex-wrap: nowrap; gap: 0; }
  .hand .card { --w: 42px; --h: 58px; }
  .hrow .suitgroup .card + .card { margin-left: calc(var(--step) - var(--w)); }
  .hrow.st-20 { --step: 20px; } .hrow.st-22 { --step: 22px; } .hrow.st-24 { --step: 24px; } .hrow.st-26 { --step: 26px; }
  .hrow.st-28 { --step: 28px; } .hrow.st-30 { --step: 30px; } .hrow.st-32 { --step: 32px; } .hrow.st-34 { --step: 34px; }
  .yourturn { padding: 10px 12px; gap: 6px; }
  .yourturn h2 { font-size: 1rem; }
  .bidbox { gap: 6px; }
  .bidbox .step { display: none; }
  .bb { min-height: 42px; }
  .strains .bb { font-size: 1.4rem; }
  .bidbox .confirm .btn-big { min-height: 46px; font-size: 1rem; }
  .alertbox { padding: 4px 10px; gap: 4px; }
  .alert-more { display: none; }
  .alertbox:has(#alert-on:checked) .alert-more { display: grid; gap: 6px; }
  .review-grid { grid-template-columns: minmax(0, 1fr); }
  .rtable { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); grid-template-rows: auto auto minmax(130px, auto) auto;
    grid-template-areas: "top top" "left right" "mid mid" "bottom bottom"; }
  .rh.left, .rh.right { justify-self: start; }
  .rh { font-size: .86rem; }
  .hrec { grid-template-columns: minmax(0, 1fr); }
  .hrec > .btn, .hrec > .hint { grid-column: 1; grid-row: auto; justify-self: start; }
}

/* ---------- round 3: lessons, the wiki, board details on phones, legibility and focus ---------- */
/* A "10" is two glyphs; set it tighter so it fits the strip an overlapped card leaves visible. */
.card .r.ten { letter-spacing: -.12em; font-size: 1.28rem; margin-left: -1px; }
.card.sm .r.ten { font-size: 1.02rem; }
@container dock (max-width: 700px) { .suitgroup .card + .card { margin-left: -28px; } }
@media (max-width: 600px) { .hand .card .r.ten { font-size: .98rem; } .table-page .trick .card .r.ten { font-size: 1rem; } }

/* Keyboard focus on a card must differ from "playable", which already uses the outline. */
button.card:focus-visible, button.card.playable:focus-visible { outline: 3px solid var(--ink); outline-offset: 2px;
  box-shadow: 0 0 0 6px var(--focus), var(--shadow-card); z-index: 4; }
.bb:focus-visible, .btn:focus-visible, .chip:focus-visible, summary:focus-visible { outline: 3px solid var(--focus); outline-offset: 2px; }

/* board details sheet: phones only (the desktop bar shows them already) */
.info-btn, .table-page .side .info-sheet { display: none; }
.vuldot { width: 9px; height: 9px; border-radius: 50%; background: var(--vul); display: inline-block; margin-left: 4px; }
.info-sheet .chips { display: flex; flex-wrap: wrap; gap: 6px; margin: 0; padding: 0; list-style: none; }
@media (max-width: 600px) {
  .table-page .info-btn { display: inline-flex; }
  .table-page .side .info-sheet.open { display: grid; }
}

/* daily practice rows */
.daily-results tr.practice td { color: var(--ink-2); font-style: italic; }

/* Learn */
.lessons { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 320px), 1fr)); gap: 16px; }
.lessoncard { display: grid; gap: 10px; align-content: start; padding: 18px; border-radius: 22px; background: var(--surface);
  border: 2px solid var(--water-2); box-shadow: var(--shadow); }
.lessoncard h2 { font-size: 1.25rem; }
.lessoncard .btn { justify-self: start; }
.lesson-steps { margin: 0; padding-left: 1.3em; display: grid; gap: 2px; color: var(--ink-2); font-size: .92rem; }
.coachline { display: flex; gap: 12px; align-items: flex-start; padding: 10px 14px; border-radius: 20px; background: var(--coach-bg);
  border: 2px solid var(--coach-edge); color: var(--ink); margin-bottom: 10px; }
.coach-duck { width: 54px; height: 44px; flex: none; }
.duck-eye { fill: var(--sun-ink); }
.coach-words { display: grid; gap: 6px; min-width: 0; }
.coachline .coach-say { font-weight: 650; }
.coachline .ask { font-weight: 750; }
.coachline .try { color: var(--ink); font-weight: 700; padding: 4px 10px; border-radius: 12px; background: color-mix(in srgb, var(--coral) 18%, transparent); border-left: 4px solid var(--coral); }
.coachline .good { color: var(--ink); font-weight: 700; padding: 4px 10px; border-radius: 12px; background: color-mix(in srgb, var(--ok) 16%, transparent); border-left: 4px solid var(--ok); }
.coach-acts { gap: 8px; flex-wrap: wrap; }
.choices { display: flex; gap: 8px; flex-wrap: wrap; }
.choices .btn { min-width: 64px; font-size: 1.1rem; font-weight: 800; }
.lesson-nav { display: inline-flex; gap: 6px; flex-wrap: wrap; align-items: center; }
.lessonbar .stepname { font-weight: 700; }
@media (max-width: 600px) {
  .lesson-page .lessonbar .tb-meta { display: flex; }
  .lesson-page .lessonbar .tb-meta .stepname { display: none; }
  .lesson-page .lesson-nav .btn { min-height: 44px; padding: 0 10px; font-size: .88rem; }
  .coachline { padding: 8px 10px; gap: 8px; margin-bottom: 6px; border-radius: 16px; font-size: .92rem; }
  .coach-duck { width: 40px; height: 32px; }
}
@media (min-width: 901px) {
  .lesson-page .coachline { flex: none; }
}

/* the wiki */
.wiki .wiki-search { display: grid; gap: 6px; max-width: 32rem; margin: 6px 0 14px; }
.wiki .wiki-search label { font-weight: 700; }
.wiki-index { display: grid; gap: 14px; }
.wiki-sec h2 { font-size: 1.1rem; }
.wiki-list { margin: 6px 0 0; padding: 0; list-style: none; display: grid; gap: 4px; }
.wiki-list li { padding: 6px 0; border-bottom: 1px solid var(--line-2); }
.wiki-list a { font-weight: 700; display: inline-flex; align-items: center; min-height: 32px; }
.wiki .crumbs { margin-bottom: 4px; }
.wiki-table { margin: 4px 0; }
.wiki-table table.list th[scope="row"] { text-transform: none; letter-spacing: 0; font-size: .92rem; color: var(--ink); font-weight: 700; }
.wiki-table td { font-family: var(--f-card); font-variant-numeric: tabular-nums; }
.wiki ul.generated li { overflow-wrap: anywhere; font-variant-numeric: tabular-nums; }
.wiki-bars { margin: 8px 0 14px; }
.wiki-bar-rows { display: grid; gap: 6px; }
.wiki-bar { display: grid; grid-template-columns: minmax(8rem, 16rem) 1fr auto; gap: 10px; align-items: center; }
.wiki-bar-label { font-size: .92rem; }
.wiki-bar-value { font-family: var(--f-card); font-variant-numeric: tabular-nums; white-space: nowrap; }
.wiki-bar meter { width: 100%; height: 14px; border-radius: 7px; background: var(--line-2); border: 0; }
.wiki-bar meter::-webkit-meter-bar { background: var(--line-2); border: 0; border-radius: 7px; }
.wiki-bar meter::-webkit-meter-optimum-value { background: var(--primary); border-radius: 7px; }
.wiki-bar meter::-moz-meter-bar { background: var(--primary); border-radius: 7px; }
@media (max-width: 560px) {
  .wiki-bar { grid-template-columns: 1fr auto; row-gap: 2px; }
  .wiki-bar meter { grid-column: 1 / -1; grid-row: 2; }
}
.wiki-hand { display: grid; gap: 2px; font-family: var(--f-card); font-weight: 700; padding: 10px 14px; border-radius: 16px;
  background: var(--surface-2); justify-self: start; }
.wiki-hand b { font-family: var(--f-body); font-size: .8rem; color: var(--ink-2); }
.wiki-hand span { white-space: nowrap; }
.suitsym { font-family: var(--f-suit); }
.wiki-license { display: block; margin-top: 18px; }
.prose code { font-family: ui-monospace, monospace; background: var(--surface-2); padding: 0 4px; border-radius: 4px; }
@media (max-width: 600px) { .dcol .card { padding-top: 2px; } .table-page .trick { min-height: 140px; } }  /* the rank row clears the next card */
.coachline { align-items: center; flex-wrap: wrap; }
.coachline .coach-words { flex: 1 1 16rem; }
.coach-acts { display: flex; gap: 8px; flex-wrap: wrap; margin-left: auto; }
@media (max-width: 600px) {
  .lesson-page .tablebar { padding-block: 0 4px; }
  .lesson-page .trick { min-height: 132px; }
  .coachline .coach-words { flex-basis: 12rem; }
  .coach-acts .btn { min-height: 44px; }
}
.lesson-finish { flex-wrap: nowrap; gap: 8px; }
@media (max-width: 600px) { .lesson-finish .btn { padding: 0 14px; } }
@media (max-width: 600px) { .lesson-page .lessonbar h1 { white-space: normal; overflow: visible; font-size: 1rem; line-height: 1.15; } }

/* phones: every control a thumb uses is at least 44 px; inline name buttons keep their line height (negative margins) */
@media (max-width: 600px) {
  .navchat, .table-page .tb-side .btn, .bb, .rctl .btn, .review-fold > summary, details.proof > summary { min-height: 44px; }
  details.proof > summary { display: flex; align-items: center; }
  .check { min-height: 44px; }
  .check input[type="checkbox"] { width: 24px; height: 24px; }
  .tier-body a.small { display: inline-flex; align-items: center; min-height: 44px; }
  .linkish { min-height: 44px; display: inline-flex; align-items: center; margin-block: -10px; }
  .linkchip { min-height: 44px; }
  .wiki-list a { min-height: 44px; }
}
@media (max-width: 600px) { .levels { gap: 4px; } .bb { min-width: 44px; } }
@media (max-width: 600px) { .alertbox .check, .alertbox label.check { min-height: 44px; } }
@media (max-width: 600px) {
  .table-page .tablebar:has(.info-btn) .tb-title h1 { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
  .table-page .tb-title .info-btn { display: inline-flex; justify-content: flex-start; max-width: 100%; min-width: 0; min-height: 44px; padding: 0 8px 0 2px;
    font-family: var(--f-display); font-size: 1rem; font-weight: 700; color: var(--ink); gap: 4px; }
  .info-btn .ib-text { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; min-width: 0; }
  .info-btn .ib-more { color: var(--ink-2); font-size: .8rem; }
}

/* ---------- table aids (bridgebot/aids.py): the strip under the table, played cards by seat, and the aids panel ---------- */
:root { --trump-edge: #b07d00; --trump-bg: #fff1c2; --trump-ink: #4a3500; --played-ink: #5f6f78; --played-bg: rgba(255, 255, 255, .62); }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) { --trump-edge: #ffd76b; --trump-bg: #3a3010; --trump-ink: #ffe9a8; --played-ink: #b4c3cc; --played-bg: rgba(10, 30, 46, .55); }
}
:root[data-theme="dark"] { --trump-edge: #ffd76b; --trump-bg: #3a3010; --trump-ink: #ffe9a8; --played-ink: #b4c3cc; --played-bg: rgba(10, 30, 46, .55); }

.trump-tag { display: inline-block; margin-left: 3px; padding: 0 5px; border-radius: 6px; background: var(--trump-bg); color: var(--trump-ink);
  border: 1px solid var(--trump-edge); font-size: .66rem; font-weight: 800; letter-spacing: .02em; line-height: 1.35; vertical-align: 1px; text-transform: lowercase; }

.aidstrip { display: flex; align-items: center; gap: 6px 10px; flex-wrap: wrap; min-width: 0; padding: 4px 10px; border-radius: 14px;
  background: var(--surface); border: 1px solid var(--line-2); font-size: .85rem; }
.aidstrip.stale, .panel.aids.stale, .playedwrap.stale { opacity: .6; }
.aid-need b { font-weight: 800; }
.aid-need.done { font-weight: 800; color: var(--ok); }
.unacc { display: inline-flex; align-items: center; gap: 4px; flex-wrap: wrap; min-width: 0; }
.unacc .lbl { color: var(--ink-2); font-weight: 650; margin-right: 2px; }
.ua { display: inline-flex; align-items: center; gap: 3px; min-height: 30px; padding: 0 8px; border-radius: 999px; border: 1px solid var(--line);
  background: var(--surface-2); color: var(--ink); font: inherit; cursor: pointer; }
.ua[aria-expanded="true"] { border-color: var(--primary); box-shadow: inset 0 0 0 1px var(--primary); }
.ua.trump, .split.trump .sp-head, .us-head.trump { border-color: var(--trump-edge); background: var(--trump-bg); color: var(--trump-ink); }
.ua.trump { border-width: 2px; }
.solved-chip { font-weight: 800; padding: 2px 10px; border-radius: 999px; background: color-mix(in srgb, var(--ok) 18%, transparent); color: var(--ink);
  border: 1px solid var(--ok); }
.aid-more { display: none; min-height: 30px; padding: 0 8px; margin-left: auto; }
.aidstrip-wrap { display: grid; gap: 4px; }
.aid-pop { padding: 6px 10px; border-radius: 12px; background: var(--surface); border: 1px solid var(--line-2); }

.platewrap { position: relative; display: grid; justify-items: center; gap: 4px; min-width: 0; max-width: 100%; }
.played-chip, .played-chip-wrap { display: none; }
.played { display: flex; flex-wrap: wrap; justify-content: center; gap: 2px 7px; min-width: 0; max-width: 100%; font-family: var(--f-card); }
.played.stale { opacity: .6; }
.pg { display: inline-flex; align-items: center; gap: 2px; white-space: nowrap; }
.pg .ps { font-family: var(--f-suit); color: var(--played-ink); font-size: .78rem; }
.pg .pc { display: inline-grid; place-items: center; min-width: 15px; height: 19px; padding: 0 2px; border-radius: 4px; background: var(--played-bg);
  border: 1px solid color-mix(in srgb, var(--played-ink) 35%, transparent); color: var(--played-ink); font-size: .72rem; font-weight: 700; filter: grayscale(1); }
.pg.trump .ps { color: var(--trump-ink); background: var(--trump-bg); border-radius: 4px; padding: 0 2px; }
.pg .out { font-size: .62rem; font-weight: 800; color: var(--played-ink); border: 1px dashed var(--played-ink); border-radius: 4px; padding: 0 3px; text-transform: uppercase; }
.dock-head { position: relative; }
.dock-head .played { flex: 0 1 auto; min-width: 0; overflow: hidden; flex-wrap: nowrap; justify-content: flex-start; }
.dock-head .played span { opacity: 1; }
.aidstrip-phone { display: none; }

.panel.aids { gap: 10px; }
.panel.aids .sheet-head { display: flex; align-items: center; gap: 6px; }
.panel.aids .sheet-head h2 { margin-right: auto; }
.aid-hide { min-height: 32px; padding: 0 10px; }
.aid-sec { display: grid; gap: 6px; padding-top: 8px; border-top: 1px solid var(--line-2); }
.aid-sec h3 { font-size: .9rem; font-weight: 800; color: var(--ink-2); text-transform: uppercase; letter-spacing: .04em; }
.aid-rows { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 4px 10px; margin: 0; font-size: .88rem; }
.aid-rows dt { font-weight: 750; }
.aid-rows dd { margin: 0; display: grid; }
.aid-rows .sub, .facts .why, .panel.aids .sub { font-size: .8rem; color: var(--ink-2); }
table.akq, table.lens { border-collapse: collapse; font-size: .82rem; width: 100%; }
table.akq th, table.akq td, table.lens th, table.lens td { padding: 2px 4px; text-align: center; border-bottom: 1px solid var(--line-2); }
table.akq th[scope="row"], table.lens th[scope="row"] { text-align: left; white-space: nowrap; }
table.akq td.st-played, table.akq td.st-on_table { color: var(--ink-2); text-decoration: line-through; }
table.akq td.st-you, table.akq td.st-dummy { font-weight: 750; }
table.akq tr.trump th, table.lens th.trump { background: var(--trump-bg); color: var(--trump-ink); }
table.lens caption { text-align: left; font-size: .8rem; color: var(--ink-2); padding-bottom: 2px; }
table.lens td.exact { font-weight: 800; }
.unk-suit { display: grid; gap: 2px; font-size: .86rem; }
.us-head { justify-self: start; font-weight: 750; padding: 0 6px; border-radius: 8px; border: 1px solid transparent; }
.unk-list { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 2px 12px; }
.unk-list li { display: inline-flex; gap: 5px; align-items: baseline; }
.unk-list .uc { font-family: var(--f-card); font-weight: 800; }
.unk-list .uh { color: var(--ink-2); font-size: .8rem; }
.facts { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.facts li { display: grid; gap: 1px; padding-left: 10px; border-left: 3px solid var(--water-3); }
.facts .fact { font-weight: 700; font-size: .88rem; }
.solved { display: grid; gap: 2px; padding: 8px 10px; border-radius: 12px; background: color-mix(in srgb, var(--ok) 14%, transparent); border: 1px solid var(--ok); }
.solved .claim-hint { font-weight: 750; }
/* Double-dummy agreement is information, not a guarantee: a neutral look, kept apart from the green "solved". */
.solved-chip.dd { background: color-mix(in srgb, var(--primary) 12%, transparent); border-color: var(--line); font-weight: 750; }
.solved.dd { background: color-mix(in srgb, var(--primary) 8%, transparent); border-color: var(--line); }
.aid-result { font-weight: 700; }
.split { display: grid; gap: 2px; font-size: .84rem; }
.split .sp-head { justify-self: start; padding: 0 6px; border-radius: 8px; border: 1px solid transparent; font-weight: 700; }
.sp-bars { display: flex; flex-wrap: wrap; gap: 2px 10px; color: var(--ink-2); }
.sp-bars b { color: var(--ink); }
.trickhist { list-style: none; margin: 0; padding: 0; display: grid; gap: 3px; font-size: .82rem; }
.trickhist li { display: flex; gap: 6px; align-items: center; flex-wrap: wrap; }
.trickhist .tn { min-width: 1.6em; color: var(--ink-2); font-variant-numeric: tabular-nums; }
.tcard { display: inline-flex; gap: 2px; padding: 0 4px; border-radius: 6px; border: 1px solid transparent; font-family: var(--f-card); }
.tcard .ts { color: var(--ink-2); font-size: .7rem; }
.tcard.won { border-color: var(--primary); font-weight: 800; }
.tcard.led .ts { text-decoration: underline; }
.plain-auction summary { cursor: pointer; font-weight: 700; font-size: .88rem; }
.plain-auction ul { margin: 4px 0 0; padding-left: 1.1em; font-size: .86rem; }
.aid-prefs summary { cursor: pointer; font-weight: 700; font-size: .88rem; }
.aid-prefs { display: grid; gap: 4px; }

@media (max-width: 600px) {
  .table-page .mainco:has(.aidstrip-phone) { gap: 4px; }
  .aidstrip, .aid-pop { display: none; }
  .aidstrip-phone { display: flex; align-items: center; width: 100%; min-height: 44px; margin-block: -7px; padding: 0; border: 0; background: none;
    color: var(--ink); font: inherit; font-size: .82rem; cursor: pointer; text-align: left; position: relative; z-index: 2; }
  .ap-pill { display: flex; align-items: center; gap: 4px; width: 100%; min-height: 30px; padding: 0 8px; border-radius: 12px;
    border: 1px solid var(--line-2); background: var(--surface); }
  .aidstrip-phone.stale { opacity: .6; }
  /* The dock already says "Play from dummy"; the seat keeps its turn outline. */
  .table-page .mainco:has(.aidstrip-phone) .seatbox .status.mine { display: none; }
  .aidstrip-phone .pn { font-weight: 800; white-space: nowrap; margin-right: 2px; }
  .aidstrip-phone .lbl { display: inline-flex; flex-direction: column; flex: none; color: var(--ink-2); font-size: .64rem; font-weight: 700; line-height: 1.05; }
  .aidstrip-phone .ua-s { display: inline-flex; align-items: center; gap: 1px; padding: 1px 4px; border-radius: 999px; border: 1px solid var(--line); white-space: nowrap; }
  .aidstrip-phone .ua-s .trump-tag { font-size: .58rem; padding: 0 3px; margin-left: 2px; }
  .aidstrip-phone .ua-s.trump { border: 2px solid var(--trump-edge); background: var(--trump-bg); color: var(--trump-ink); }
  .aidstrip-phone .solved-chip { padding: 1px 6px; font-size: .74rem; white-space: nowrap; }
  .aidstrip-phone .caret { margin-left: auto; color: var(--ink-2); }
  .played-chip-wrap { display: inline; }
  .played-chip { display: inline-flex; align-items: center; min-height: 44px; margin-block: -14px; padding: 0 2px; border: 0; background: none;
    color: var(--primary); font: inherit; font-weight: 750; text-decoration: underline dotted; text-underline-offset: 2px; cursor: pointer;
    position: relative; z-index: 7; }
  .played { display: none; }
  .played.open { display: flex; position: absolute; top: calc(100% + 2px); left: 50%; transform: translateX(-50%); z-index: 8; width: max-content;
    max-width: min(86vw, 340px); padding: 4px 6px; border-radius: 10px; background: var(--surface); box-shadow: var(--shadow); }
  .dock-head .played.open { left: 0; transform: none; top: 100%; }
  .dock-head .played-chip { font-size: .78rem; white-space: nowrap; }
  .table-page .side .panel.aids.open { gap: 8px; }
}

/* ---------- people-only tables, play again after, thanks, friends playing now ---------- */
.friends-now { margin: 22px 0 6px; padding: 14px 16px; border-radius: 20px; background: color-mix(in srgb, var(--water-1) 55%, var(--surface));
  border: 1px solid var(--line-2); }
.friends-now h2 { margin: 0 0 8px; font-size: 1.05rem; }
.fn-list { display: grid; gap: 8px; margin: 0; padding: 0; list-style: none; }
.fn { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 10px; min-width: 0; }
.fn .linkish { font-weight: 750; }
.fn-where { font-size: .875rem; color: var(--ink-2); flex: 1 1 12em; min-width: 0; overflow-wrap: anywhere; }
.playagain { display: inline-flex; align-items: center; flex-wrap: wrap; gap: 4px 10px; }
.playagain label { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 0 10px; border-radius: 12px;
  border: 1px solid var(--line); background: var(--surface); font-weight: 650; cursor: pointer; }
.playagain input { width: 20px; height: 20px; accent-color: var(--primary); margin: 0; }
.playagain.off label { border-color: var(--wood); background: color-mix(in srgb, var(--sun) 14%, var(--surface)); }
.pa-note { font-size: .82rem; color: var(--ink-2); }
.panel .playagain { margin: 10px 0; }
.waitlist { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; margin: 12px 0; padding: 0; list-style: none; }
.wseat { display: flex; align-items: center; flex-wrap: wrap; gap: 6px 8px; min-height: 44px; padding: 6px 10px; border-radius: 12px;
  background: var(--surface-2); min-width: 0; }
.wseat .d { font-weight: 800; color: var(--ink-2); width: 1.1em; flex: none; }
.wseat.open { background: transparent; border: 1px dashed var(--water-3); }
.wseat .muted { color: var(--ink-2); font-style: italic; }
.plate .away { color: var(--wood-2); font-weight: 700; }
.thanks-list { display: grid; gap: 8px; margin: 8px 0 0; padding: 0; list-style: none; }
.thanks-list li { display: flex; align-items: center; flex-wrap: wrap; gap: 6px 10px; min-width: 0; }
.thanks-list .d { font-weight: 800; color: var(--ink-2); width: 1.1em; }
.thanks-list .btn { margin-left: auto; }
.nc-thanks { color: var(--ok); font-weight: 650; }
.game-night.on { border-color: var(--sun); background: color-mix(in srgb, var(--sun) 10%, var(--surface)); }
.gn-when { font-weight: 750; font-size: 1.05rem; margin: 0; }
.gn-tables { margin: 10px 0 0; padding-left: 1.1em; }
.game-night .river-form { margin-top: 12px; }
@media (max-width: 600px) {
  .waitlist { grid-template-columns: minmax(0, 1fr); }
  .tablebar .playagain { order: -1; }
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .plate .away { color: var(--sun); }
}
:root[data-theme="dark"] .plate .away { color: var(--sun); }

/* ---------- presence: leaving, reconnecting, back to your table ---------- */
.btn-danger { background: var(--steel); border-color: var(--steel); color: #fff; }
.btn-danger:hover { background: var(--steel-2); border-color: var(--steel-2); }
.leave-ask { display: inline-flex; align-items: center; flex-wrap: wrap; gap: 6px 8px; max-width: 30em; font-size: .9rem; font-weight: 650; }
.banner.reconnecting { display: grid; gap: 8px; background: color-mix(in srgb, var(--sun) 16%, var(--surface)); border-color: var(--sun); }
.banner.reconnecting p { margin: 0; }
.banner.reconnecting .countdown { font-variant-numeric: tabular-nums; font-weight: 800; }
.banner.reconnecting .muted { display: block; font-size: .85rem; color: var(--ink-2); }
.back-banner { position: fixed; left: 50%; bottom: 16px; transform: translateX(-50%); z-index: 40; display: flex; align-items: center;
  flex-wrap: wrap; gap: 8px 14px; max-width: calc(100vw - 32px); padding: 10px 12px 10px 18px; border-radius: 18px;
  background: var(--surface); border: 2px solid var(--sun); box-shadow: var(--shadow); font-weight: 650; }

/* ---------- quiet while playing: filler waits for idle moments ---------- */
.tier-art.water::before, .pool.water::before { animation: none; }
.pool .floaty, .pool .floaty::after { animation: none; }
.waiting-water { display: grid; gap: 8px; margin-top: 12px; }
.wait-pool { position: relative; height: 150px; border-radius: 16px; overflow: hidden; isolation: isolate; }
.wait-pool .floaters { z-index: 0; }
