/* Halawi Rang by Halawi Media. Solid Halawi brand colors, light and dark themes, system fonts only. */
:root {
  --violet: #9b3df5; --magenta: #c84fb4; --coral: #ea6a5a;
  --felt: #4a2390; --felt-hi: #7a45d6; --felt-lo: #1f0f45; --cushion: #3d1d7a;
  --font-display: ui-rounded, "SF Pro Rounded", "Segoe UI Variable Display", "Segoe UI", system-ui, -apple-system, Roboto, "Helvetica Neue", Arial, sans-serif;
  --font-sans: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --radius: 16px; --ease: cubic-bezier(.16, 1, .3, 1);
  --safe-t: env(safe-area-inset-top, 0px); --safe-r: env(safe-area-inset-right, 0px);
  --safe-b: env(safe-area-inset-bottom, 0px); --safe-l: env(safe-area-inset-left, 0px);
  --cw: 72px; --ch: calc(var(--cw) * 1.5); --mini: 18px;
  --cur: #e0362c;
}
/* light (default) */
#app, :root {
  --bg: #f6f3fa; --surface: #ffffff; --surface-2: #efe9f8; --line: #ddd3ee; --line-strong: #c6b8e0;
  --text: #1d1430; --text-2: #3f3554; --muted: #645a78; --brand: #6d28d9; --brand-ink: #ffffff; --brand-text: #6d28d9;
  --chip: #ede5fb; --shadow: 0 10px 30px -14px rgba(40, 20, 80, .35); --scrim: rgba(24, 12, 48, .5);
  --ek: #d9473a; --warn: #b4232a; --ok: #1f7a46;
}
#app[data-theme="dark"] {
  --bg: #0f0a1a; --surface: #1a1328; --surface-2: #241a38; --line: #352a4d; --line-strong: #4a3d68;
  --text: #f6f3fa; --text-2: #d6d0e0; --muted: #aaa2b8; --brand: #9b3df5; --brand-ink: #ffffff; --brand-text: #c9a3ff;
  --chip: #2a1f40; --shadow: 0 10px 30px -14px rgba(0, 0, 0, .8); --scrim: rgba(4, 2, 10, .66);
  --ek: #ea6a5a; --warn: #ff7b7b; --ok: #5bd28f;
}
*, *::before, *::after { box-sizing: border-box; }
html, body { margin: 0; padding: 0; width: 100%; height: 100%; overflow: hidden; background: var(--bg); color: var(--text);
  font-family: var(--font-sans); -webkit-font-smoothing: antialiased; overscroll-behavior: none;
  -webkit-user-select: none; user-select: none; -webkit-tap-highlight-color: transparent; }
button { font: inherit; color: inherit; }
input { font: inherit; }
[hidden] { display: none !important; }
#app { position: fixed; inset: 0; overflow: hidden; background: var(--bg); color: var(--text); }
:focus-visible { outline: 3px solid var(--brand); outline-offset: 2px; }
img { -webkit-user-drag: none; }

/* ---------- buttons ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 46px; padding: 10px 20px; border-radius: 14px;
  border: 2px solid transparent; font-weight: 700; font-size: 16px; cursor: pointer; text-align: center; line-height: 1.2;
  transition: transform .15s var(--ease), background .2s, border-color .2s; }
.btn:active { transform: scale(.97); }
.btn--primary { background: var(--brand); color: var(--brand-ink); }
.btn--primary:hover { background: #5b21b6; }
#app[data-theme="dark"] .btn--primary:hover { background: #8b35ec; }
.btn--ghost { background: var(--surface); border-color: var(--line-strong); color: var(--text); }
.btn--ghost:hover { border-color: var(--brand); }
.btn--sm { min-height: 40px; padding: 8px 14px; font-size: 15px; }
.btn--xs { min-height: 34px; padding: 6px 12px; font-size: 14px; border-radius: 10px; }
.btn--big { min-height: 54px; font-size: 18px; padding: 12px 34px; min-width: 200px; }
.btn-row { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; margin-top: 18px; }
.btn-row--start { margin-top: 22px; }
.btn-col { display: flex; flex-direction: column; gap: 10px; margin-top: 14px; }
.btn-wrap { display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; margin-top: 18px; }
.icon-btn { width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center; cursor: pointer; color: var(--text);
  background: var(--surface); border: 1px solid var(--line-strong); flex: 0 0 auto; position: relative; }
.icon-btn:hover { border-color: var(--brand); }
.icon-btn svg { width: 22px; height: 22px; fill: currentColor; }
.icon-btn .ico-on, .icon-btn .ico-off { fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; }
.icon-btn[aria-pressed="true"] .ico-off, .icon-btn[aria-pressed="false"] .ico-on { display: none; }
.icon-btn .dot { position: absolute; top: 6px; right: 6px; width: 9px; height: 9px; border-radius: 50%; background: var(--coral); }

/* ---------- screens ---------- */
.screen { position: absolute; inset: 0; z-index: 20; display: none; overflow-y: auto; -webkit-overflow-scrolling: touch; background: var(--bg);
  padding: calc(16px + var(--safe-t)) calc(14px + var(--safe-r)) calc(24px + var(--safe-b)) calc(14px + var(--safe-l)); touch-action: pan-y; }
.screen.is-active { display: block; animation: scrIn .3s var(--ease); }
@keyframes scrIn { from { opacity: 0; transform: translateY(8px); } }
.screen--over { background: var(--scrim); }
.panel { width: 100%; max-width: 680px; margin: 0 auto; background: var(--surface); border: 1px solid var(--line); border-radius: 22px;
  padding: 18px clamp(14px, 4vw, 30px) 22px; box-shadow: var(--shadow); }
.panel--small { max-width: 520px; }
.panel--rules { max-width: 900px; }
.panel--menu { max-width: 560px; text-align: center; }
.eyebrow { margin: 4px 0 2px; font-size: 13px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--brand-text); }
.title { margin: 2px 0 6px; font-family: var(--font-display); font-weight: 800; font-size: clamp(34px, 9vw, 52px); line-height: 1.05; letter-spacing: -.01em; }
.title span { color: var(--brand-text); }
.title--sm { font-size: clamp(26px, 6vw, 36px); }
.lede { margin: 6px auto 12px; max-width: 440px; color: var(--text-2); font-size: 16px; line-height: 1.45; }
.setup-sub, .opt-lede { margin: 2px 0 10px; color: var(--text-2); font-size: 15px; line-height: 1.45; }
.back-btn { display: inline-flex; align-items: center; min-height: 40px; padding: 6px 12px; margin: 0 0 6px -4px; border: 0; background: none; color: var(--brand-text);
  font-weight: 700; font-size: 15px; cursor: pointer; border-radius: 10px; }
.back-btn:hover { background: var(--chip); }
.fine-print { margin: 16px 0 0; font-size: 13px; color: var(--muted); line-height: 1.45; text-align: center; }
.ver { margin: 6px 0 0; font-size: 12px; color: var(--muted); }
.panel-foot { margin-top: 18px; display: flex; flex-direction: column; align-items: center; gap: 4px; }
.link-back { color: var(--brand-text); font-weight: 700; font-size: 14px; text-decoration: none; padding: 6px 10px; border-radius: 8px; }
.link-back:hover { text-decoration: underline; }

/* menu */
.menu-brand { display: inline-block; line-height: 0; margin-top: 2px; }
.menu-brand img { height: 30px; width: auto; }
.menu-fan { position: relative; height: 112px; margin: 10px auto 2px; width: 220px; }
.menu-fan img { position: absolute; left: 50%; bottom: 0; width: 64px; height: 96px; transform-origin: 50% 120%; filter: drop-shadow(0 6px 10px rgba(30, 10, 60, .25)); }
.name-chip { display: flex; align-items: center; gap: 8px; max-width: 320px; margin: 4px auto 0; padding: 4px 6px 4px 14px; border-radius: 999px;
  background: var(--chip); border: 1px solid var(--line); cursor: text; }
.name-chip-k { font-size: 13px; font-weight: 700; color: var(--muted); white-space: nowrap; flex: 0 0 auto; }
.name-chip-in { flex: 1 1 auto; min-width: 0; border: 0; background: transparent; color: var(--text); padding: 8px 8px; font-size: 16px; font-weight: 700; outline: none; -webkit-user-select: text; user-select: text; }
.name-chip-in::placeholder { color: var(--muted); font-weight: 500; }
.modes { display: flex; flex-direction: column; gap: 10px; margin-top: 16px; text-align: left; }
.mode { display: grid; grid-template-columns: 48px minmax(0, 1fr) 20px; align-items: center; gap: 12px; width: 100%; min-height: 70px; padding: 10px 14px;
  background: var(--surface-2); border: 2px solid var(--line); border-radius: 16px; cursor: pointer; text-align: left; transition: border-color .2s, transform .15s var(--ease); }
.mode:hover { border-color: var(--brand); }
.mode:active { transform: scale(.985); }
.mode-txt { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.mode-txt b { font-family: var(--font-display); font-size: 18px; font-weight: 800; }
.mode-txt span { font-size: 14px; color: var(--text-2); line-height: 1.35; }
.mode-go { font-size: 28px; color: var(--brand-text); line-height: 1; }
.mode-ico { width: 48px; height: 48px; border-radius: 14px; background: var(--felt); position: relative; overflow: hidden; }
.mode-ico::before, .mode-ico::after { content: ""; position: absolute; width: 18px; height: 26px; border-radius: 4px; border: 2px solid #fff; top: 11px; }
.mode-ico--quick::before { left: 10px; background: #e0362c; transform: rotate(-12deg); } .mode-ico--quick::after { left: 20px; background: #f5b81c; transform: rotate(10deg); }
.mode-ico--points::before { left: 15px; background: #1f9a57; } .mode-ico--points::after { content: "500"; border: 0; width: auto; height: auto; left: 6px; right: 6px; top: 17px; font: 800 11px/1 var(--font-sans); color: #fff; text-align: center; }
.mode-ico--partners::before { left: 8px; background: #2a5ad8; } .mode-ico--partners::after { left: 22px; background: #2a5ad8; }
.mode-ico--daily { background: var(--coral); } .mode-ico--daily::before { left: 15px; background: #fff; border-color: #fff; } .mode-ico--daily::after { content: "D"; border: 0; left: 15px; width: 18px; top: 16px; height: auto; font: 800 14px/1 var(--font-sans); color: var(--coral); text-align: center; }
.mode-ico--pass::before { left: 9px; background: #c84fb4; transform: rotate(-18deg); } .mode-ico--pass::after { left: 21px; background: #1b1230; transform: rotate(14deg); }

/* setup */
.set-block { margin-top: 16px; }
.set-k { display: block; font-weight: 800; font-size: 14px; letter-spacing: .04em; text-transform: uppercase; color: var(--muted); margin-bottom: 8px; }
.set-k-row { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 8px; margin-bottom: 6px; }
.set-k-row .set-k { margin: 0; }
.set-hint { margin: 0 0 8px; font-size: 14px; color: var(--text-2); }
.seg { display: inline-flex; flex-wrap: wrap; gap: 6px; padding: 4px; border-radius: 14px; background: var(--chip); max-width: 100%; }
.seg button { min-height: 40px; min-width: 48px; padding: 6px 14px; border-radius: 10px; border: 0; background: transparent; font-weight: 700; font-size: 15px; cursor: pointer; color: var(--text-2); }
.seg button[aria-checked="true"] { background: var(--brand); color: var(--brand-ink); }
.opp-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 200px), 1fr)); gap: 8px; }
.opp-card { position: relative; display: grid; grid-template-columns: 44px minmax(0, 1fr); gap: 4px 10px; align-items: start; padding: 10px 12px; text-align: left;
  background: var(--surface-2); border: 2px solid var(--line); border-radius: 14px; cursor: pointer; min-height: 64px; }
.opp-card:hover { border-color: var(--line-strong); }
.opp-card[aria-pressed="true"] { border-color: var(--brand); background: var(--chip); }
.opp-card .av { grid-row: span 2; }
.opp-card b { font-size: 16px; font-weight: 800; }
.opp-meta { font-size: 13px; color: var(--muted); font-weight: 700; }
.opp-desc { grid-column: 1 / -1; font-size: 13px; color: var(--text-2); line-height: 1.4; margin-top: 2px; }
.opp-seat { position: absolute; top: 8px; right: 8px; min-width: 24px; height: 24px; padding: 0 6px; border-radius: 12px; background: var(--brand); color: #fff; font-size: 12px; font-weight: 800; display: grid; place-items: center; }
.opp-role { font-size: 11px; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; color: var(--brand-text); }
.av { width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center; color: #fff; font-weight: 800; font-size: 17px; font-family: var(--font-display); flex: 0 0 auto; background: var(--av, #6d28d9); }
.av.av--you { background: var(--brand); }
.name-list { display: flex; flex-direction: column; gap: 8px; }
.name-row { display: flex; align-items: center; gap: 10px; }
.name-row span { flex: 0 0 74px; font-weight: 700; color: var(--muted); font-size: 14px; }
.txt { flex: 1 1 auto; min-width: 0; min-height: 44px; padding: 8px 12px; border-radius: 12px; border: 1px solid var(--line-strong); background: var(--surface); color: var(--text); font-size: 16px; -webkit-user-select: text; user-select: text; }
.set-block--rules { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 12px; padding: 12px 14px; border-radius: 14px; background: var(--surface-2); }
.set-block--rules .set-k { flex: 1 0 100%; margin: 0; }
.rules-sum { flex: 1 1 200px; margin: 0; font-size: 14px; color: var(--text-2); line-height: 1.4; }
.setup-daily { margin-top: 10px; padding: 12px 14px; border-radius: 14px; background: var(--surface-2); border: 1px solid var(--line); }
.setup-daily b { font-family: var(--font-display); font-size: 18px; }
.setup-daily p { margin: 4px 0 0; font-size: 14px; color: var(--text-2); line-height: 1.4; }
.daily-opps { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 10px; }
.daily-opp { display: inline-flex; align-items: center; gap: 8px; padding: 4px 10px 4px 4px; border-radius: 999px; background: var(--surface); border: 1px solid var(--line); font-weight: 700; font-size: 14px; }
.daily-opp .av { width: 30px; height: 30px; font-size: 13px; }

/* settings rows */
.settings { display: flex; flex-direction: column; gap: 4px; margin-top: 8px; }
.set-row { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px 14px; padding: 12px 0; border-bottom: 1px solid var(--line); }
.set-row:last-child { border-bottom: 0; }
.set-row > span:first-child { flex: 1 1 180px; min-width: 0; font-weight: 700; font-size: 16px; display: flex; flex-direction: column; gap: 2px; }
.set-sub { font-size: 13px; font-weight: 500; color: var(--muted); line-height: 1.35; }
.toggle { -webkit-appearance: none; appearance: none; width: 52px; height: 30px; border-radius: 15px; background: var(--line-strong); position: relative; cursor: pointer; flex: 0 0 auto; transition: background .2s; margin: 0; }
.toggle::after { content: ""; position: absolute; top: 3px; left: 3px; width: 24px; height: 24px; border-radius: 50%; background: #fff; transition: transform .2s var(--ease); box-shadow: 0 1px 3px rgba(0, 0, 0, .3); }
.toggle:checked { background: var(--brand); }
.toggle:checked::after { transform: translateX(22px); }

/* how to play */
.how-cards { display: flex; gap: 8px; justify-content: center; flex-wrap: wrap; margin: 8px 0 4px; }
.how-cards figure { margin: 0; display: flex; flex-direction: column; align-items: center; gap: 4px; width: 74px; }
.how-cards img { width: 64px; height: 96px; }
.how-cards figcaption { font-size: 12px; font-weight: 700; color: var(--text-2); text-align: center; }
.rules-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 320px), 1fr)); gap: 4px 28px; }
.rules-col h3 { font-family: var(--font-display); font-size: 18px; margin: 16px 0 6px; }
.rules-list, .howto { margin: 0; padding-left: 20px; display: flex; flex-direction: column; gap: 7px; font-size: 15px; line-height: 1.45; color: var(--text-2); }
.howto { padding-left: 0; list-style: none; }
.howto li { display: flex; flex-wrap: wrap; gap: 4px 10px; align-items: baseline; }
.keys { display: inline-block; padding: 2px 8px; border-radius: 6px; background: var(--chip); border: 1px solid var(--line); font-weight: 700; font-size: 13px; color: var(--text); white-space: nowrap; }

/* achievements, career */
.ach-wrap { display: flex; flex-direction: column; gap: 14px; }
.ach-cat h3 { font-family: var(--font-display); font-size: 18px; margin: 8px 0 8px; }
.ach-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 260px), 1fr)); gap: 8px; }
.ach { display: grid; grid-template-columns: 40px minmax(0, 1fr); gap: 10px; align-items: center; padding: 10px 12px; border-radius: 14px; background: var(--surface-2); border: 1px solid var(--line); }
.ach-medal { width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; font-weight: 800; font-size: 13px; background: var(--line); color: var(--muted); }
.ach.t1 .ach-medal { background: #c27c3e; color: #fff; } .ach.t2 .ach-medal { background: #8e9aa8; color: #fff; } .ach.t3 .ach-medal { background: #d4a017; color: #2a1a00; }
.ach b { font-size: 15px; display: block; }
.ach span { font-size: 13px; color: var(--text-2); line-height: 1.35; display: block; }
.ach small { font-size: 12px; color: var(--muted); font-weight: 700; }
.career { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 140px), 1fr)); gap: 8px; margin-top: 10px; }
.stat { padding: 12px; border-radius: 14px; background: var(--surface-2); border: 1px solid var(--line); }
.stat b { display: block; font-family: var(--font-display); font-size: 24px; font-variant-numeric: tabular-nums; }
.stat span { font-size: 13px; color: var(--muted); font-weight: 700; }
.career-opps { grid-column: 1 / -1; display: flex; flex-direction: column; gap: 6px; margin-top: 6px; }
.career-opp { display: grid; grid-template-columns: 30px minmax(0, 1fr) auto; gap: 10px; align-items: center; font-size: 14px; }
.career-opp .av { width: 30px; height: 30px; font-size: 13px; }
.career-opp em { font-style: normal; color: var(--muted); font-variant-numeric: tabular-nums; font-weight: 700; }

/* ---------- table ---------- */
.table { position: absolute; inset: 0; display: grid; grid-template-rows: auto auto minmax(0, 1fr) auto auto; grid-template-columns: minmax(0, 1fr);
  padding: calc(6px + var(--safe-t)) calc(8px + var(--safe-r)) calc(6px + var(--safe-b)) calc(8px + var(--safe-l)); gap: 4px; touch-action: none; }
.is-menu .table { visibility: hidden; }
.bar { display: flex; align-items: center; gap: 10px; min-width: 0; min-height: 48px; }
.bar-brand { line-height: 0; flex: 0 0 auto; }
.bar-brand img { height: 22px; width: auto; }
.bar-gap { flex: 1 1 auto; min-width: 0; }
/* the round placard sits on the felt, top left, so it never competes with the bar buttons */
.slate { position: absolute; left: 12px; top: 10px; z-index: 2; max-width: calc(100% - 24px); display: flex; flex-direction: column; align-items: flex-start; line-height: 1.15;
  padding: 5px 11px 6px; border-radius: 12px; background: rgba(15, 8, 32, .55); color: #fff; pointer-events: none; }
.slate-k { font-size: 10px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; color: #d9c8f7; max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.slate-v { font-family: var(--font-display); font-weight: 800; font-size: 14px; max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-variant-numeric: tabular-nums; }
.bar-actions { display: flex; gap: 6px; flex: 0 0 auto; }

/* opponent pods */
.opps { display: flex; gap: 6px; justify-content: center; align-items: stretch; min-width: 0; }
.pod { position: relative; flex: 1 1 0; min-width: 0; max-width: 260px; display: grid; grid-template-columns: auto minmax(0, 1fr); grid-template-rows: auto auto; gap: 2px 8px;
  padding: 6px 8px 6px 6px; border-radius: 16px; background: var(--surface); border: 2px solid var(--line); transition: border-color .25s, background .25s, opacity .25s, box-shadow .3s;
  box-shadow: 0 2px 6px -3px rgba(40, 20, 80, .25); }
.pod.is-turn { border-color: var(--brand); background: var(--chip); }
.pod.is-thinking { animation: think 1.4s ease-in-out infinite; }
@keyframes think { 50% { box-shadow: 0 0 0 4px rgba(109, 40, 217, .22), 0 2px 6px -3px rgba(40, 20, 80, .25); } }
.pod.is-hit { border-color: var(--warn); background: var(--surface); }
.pod.is-mate { border-style: dashed; }
.pod-av { position: relative; grid-row: span 2; align-self: center; }
.pod-av .av { width: 40px; height: 40px; font-size: 16px; }
.pod.is-turn .pod-av .av { box-shadow: 0 0 0 3px var(--surface), 0 0 0 5px var(--brand); }
.pod-name { font-weight: 800; font-size: 14px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; min-width: 0; align-self: end; }
.pod-sub { display: flex; align-items: center; gap: 6px; min-width: 0; font-size: 12px; color: var(--muted); font-weight: 700; flex-wrap: wrap; }
.pod-count { font-variant-numeric: tabular-nums; color: var(--text); font-size: 13px; }
.pod-fan { grid-column: 1 / -1; position: relative; height: calc(var(--mini) * 1.5 + 8px); margin-top: 2px; }
.pod-fan img { position: absolute; top: 4px; width: var(--mini); height: calc(var(--mini) * 1.5); border-radius: calc(var(--mini) * .1); transform-origin: 50% 140%;
  transition: left .25s var(--ease), transform .25s var(--ease), top .25s var(--ease); box-shadow: 0 1px 2px rgba(20, 10, 40, .35); }
.pod-fan img.is-pick { top: -3px; }
.pod-fan img.is-in { animation: fanin .35s var(--ease); }
@keyframes fanin { from { top: -10px; opacity: 0; } }
.pod-badge { font-size: 11px; font-weight: 800; padding: 1px 7px; border-radius: 999px; background: var(--ek); color: #fff; letter-spacing: .02em; }
.pod-badge--mate { background: #2a5ad8; }
.pod-badge--score { background: var(--chip); color: var(--text); border: 1px solid var(--line); }
.pod-think { display: none; gap: 3px; }
.pod.is-thinking .pod-think { display: inline-flex; }
.pod-think i { width: 5px; height: 5px; border-radius: 50%; background: var(--brand-text); animation: blink 1s infinite; }
.pod-think i:nth-child(2) { animation-delay: .15s; } .pod-think i:nth-child(3) { animation-delay: .3s; }
@keyframes blink { 50% { opacity: .2; } }
.catch-btn { position: absolute; left: 50%; bottom: -14px; transform: translateX(-50%); z-index: 3; min-height: 34px; padding: 4px 14px; border-radius: 999px; border: 2px solid #fff;
  background: var(--warn); color: #fff; font-weight: 800; font-size: 14px; cursor: pointer; white-space: nowrap; animation: pulse 0.8s ease-in-out infinite; }
@keyframes pulse { 50% { transform: translateX(-50%) scale(1.08); } }

/* felt */
.felt { position: relative; min-height: 0; margin: 6px 2px; border-radius: 26px; background-color: var(--felt); border: 7px solid var(--cushion);
  /* the brand purple, lit from above: a soft pool of light in the middle, darker toward the rail, and a fine nap */
  background-image:
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 .48 0 0 0 0 .27 0 0 0 0 .84 0 0 0 .5 0'/%3E%3C/filter%3E%3Crect width='160' height='160' filter='url(%23n)' opacity='.35'/%3E%3C/svg%3E"),
    radial-gradient(ellipse 70% 60% at 50% 45%, rgba(122, 69, 214, .5), rgba(122, 69, 214, 0) 70%),
    radial-gradient(ellipse 85% 85% at 50% 50%, rgba(31, 15, 69, 0) 55%, rgba(31, 15, 69, .62) 100%);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .07), inset 0 12px 28px -8px rgba(10, 4, 24, .55), 0 12px 26px -12px rgba(30, 12, 64, .6);
  display: grid; place-items: center; overflow: hidden; contain: layout paint; }
.felt::after { content: ""; position: absolute; inset: 7px; border-radius: 19px; border: 1.5px dashed rgba(122, 69, 214, .5); pointer-events: none; }
.dir { position: absolute; left: 50%; top: 50%; width: min(92%, 120vh); aspect-ratio: 1; transform: translate(-50%, -50%); pointer-events: none; }
.dir svg { width: 100%; height: 100%; display: block; animation: spin 26s linear infinite; }
.dir.is-ccw svg { animation-direction: reverse; }
.dir.is-flip svg { animation: none; }
.dir-arrows path { fill: none; stroke: rgba(255, 255, 255, .16); stroke-width: 5; stroke-linecap: round; }
.dir-heads path { fill: rgba(255, 255, 255, .22); }
.dir.is-ccw .dir-heads { transform: scaleX(-1); transform-origin: 100px 100px; }
.dir.is-ccw .dir-arrows { transform: scaleX(-1); transform-origin: 100px 100px; }
@keyframes spin { to { transform: rotate(360deg); } }
.piles { position: relative; display: flex; align-items: center; justify-content: center; gap: clamp(18px, 6vw, 48px); z-index: 1; }
.pile { position: relative; width: var(--cw); height: var(--ch); border-radius: calc(var(--cw) * .09); padding: 0; border: 0; background: transparent; }
.pile-mat { position: relative; padding: calc(var(--cw) * .14); border-radius: calc(var(--cw) * .2); border: 3px solid var(--cur); background: rgba(255, 255, 255, .05); transition: border-color .35s; }
.pile--draw { cursor: pointer; }
.pile--draw:disabled { cursor: default; }
.pile--draw.is-hot { animation: hot 1.2s ease-in-out infinite; }
@keyframes hot { 50% { transform: translateY(-5px); } }
.pile--draw.is-hot::after { content: ""; position: absolute; inset: -5px; border-radius: calc(var(--cw) * .12); border: 3px solid #fff; pointer-events: none; }
.pile-stack i { position: absolute; inset: 0; border-radius: calc(var(--cw) * .09); background: #efe8dc; border: 1px solid rgba(20, 10, 40, .32); }
.pile-stack i:first-child { box-shadow: 0 6px 14px -4px rgba(10, 4, 24, .55); }
.card-img { position: absolute; inset: 0; width: 100%; height: 100%; display: block; border-radius: calc(var(--cw) * .09); box-shadow: 0 1px 2px rgba(10, 4, 24, .35); }
.pile--draw.is-empty { outline: 2px dashed rgba(255, 255, 255, .35); outline-offset: -2px; }
.pile-count { position: absolute; right: -8px; bottom: -8px; min-width: 26px; height: 22px; padding: 0 6px; border-radius: 11px; background: #fffdf8; color: #1d1430; font-size: 12px; font-weight: 800; display: grid; place-items: center; border: 1px solid rgba(20, 10, 40, .25); font-variant-numeric: tabular-nums; }
.pile--discard img { position: absolute; left: 0; top: 0; width: 100%; height: 100%; border-radius: calc(var(--cw) * .09);
  box-shadow: 0 1px 2px rgba(10, 4, 24, .3), 0 5px 12px -3px rgba(10, 4, 24, .45); }
.pile--discard img.is-under { filter: brightness(.94); }
.felt-info { position: absolute; left: 10px; right: 10px; bottom: 8px; display: flex; justify-content: space-between; align-items: flex-end; gap: 8px; pointer-events: none; z-index: 2; }
.color-badge { display: inline-flex; align-items: center; gap: 6px; padding: 4px 10px 4px 4px; border-radius: 999px; background: rgba(15, 8, 32, .78); color: #fff; font-weight: 800; font-size: 13px; }
.color-dot { width: 22px; height: 22px; border-radius: 50%; background: var(--cur); display: grid; place-items: center; }
.color-dot svg { display: block; }
.pending-badge { padding: 4px 12px; border-radius: 999px; background: var(--ek); color: #fff; font-weight: 800; font-size: 15px; font-variant-numeric: tabular-nums; animation: pop .35s var(--ease); }
@keyframes pop { from { transform: scale(.4); opacity: 0; } }

.status { display: flex; justify-content: center; min-height: 30px; }
.status-txt { display: inline-block; max-width: 100%; padding: 5px 14px; border-radius: 999px; background: var(--surface); border: 1px solid var(--line); font-weight: 800; font-size: 14px; text-align: center; line-height: 1.3; }
.status.is-mine .status-txt { background: var(--brand); color: var(--brand-ink); border-color: var(--brand); }
.coach { margin: 2px auto 0; max-width: 520px; padding: 6px 12px; border-radius: 12px; background: var(--chip); color: var(--text-2); font-size: 13px; line-height: 1.35; text-align: center; }

/* me */
.me { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.actions { display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; }
.act { min-height: 44px; min-width: 72px; padding: 6px 16px; border-radius: 12px; border: 2px solid var(--line-strong); background: var(--surface); font-weight: 800; font-size: 15px; cursor: pointer; transition: transform .15s var(--ease), background .2s, border-color .2s; }
.act:active { transform: scale(.95); }
.act:disabled { opacity: .45; cursor: default; }
.act.is-on { background: var(--brand); border-color: var(--brand); color: var(--brand-ink); }
.act--ek { border-color: var(--ek); color: var(--ek); }
.act--ek.is-hot { background: var(--ek); color: #fff; animation: ekpulse .9s ease-in-out infinite; }
@keyframes ekpulse { 50% { transform: scale(1.07); } }
.act--warn { border-color: var(--warn); color: var(--warn); }
.act--warn.is-on { background: var(--warn); border-color: var(--warn); color: #fff; }
.act--ghost { border-style: dashed; }
.me-info { display: flex; justify-content: center; align-items: center; gap: 8px; font-size: 13px; color: var(--muted); font-weight: 700; min-width: 0; flex-wrap: wrap; }
.me-name { color: var(--text); max-width: 50vw; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.me-tag { padding: 1px 8px; border-radius: 999px; background: var(--ek); color: #fff; font-size: 11px; }
.hand { position: relative; width: 100%; height: calc(var(--ch) + 20px); touch-action: none; }
.hcard { position: absolute; left: 0; top: 0; width: var(--cw); height: var(--ch); padding: 0; border: 0; background: transparent; cursor: pointer; border-radius: calc(var(--cw) * .09);
  transition: transform .26s var(--ease), filter .2s, opacity .2s; will-change: transform; touch-action: none; }
.hcard img { width: 100%; height: 100%; display: block; border-radius: calc(var(--cw) * .09); pointer-events: none;
  box-shadow: 0 1px 1px rgba(20, 10, 40, .25), 0 6px 14px -5px rgba(20, 10, 40, .45); transition: transform .18s var(--ease), box-shadow .18s, filter .2s; }
.hcard.is-dim img { filter: brightness(.74) saturate(.7); }
.hcard.is-play img { box-shadow: 0 0 0 3px #fff, 0 0 0 6px var(--brand), 0 12px 20px -6px rgba(20, 10, 40, .5); }
@media (hover: hover) and (pointer: fine) {
  .hcard:hover img { transform: translateY(-5%); }
  .hcard.is-play:hover img { transform: translateY(-11%); box-shadow: 0 0 0 3px #fff, 0 0 0 6px var(--brand), 0 18px 26px -8px rgba(20, 10, 40, .55); }
}
.hcard.is-press img { transform: translateY(-8%) scale(1.03); }
.hand.is-penalty .hcard img { box-shadow: 0 0 0 3px #fff, 0 0 0 6px var(--warn); }
.hcard.is-jump img { box-shadow: 0 0 0 3px #fff, 0 0 0 6px var(--coral); }
.hcard.is-drag { transition: none; z-index: 50; }
.hcard.is-new img { animation: newcard .6s var(--ease); }
@keyframes newcard { from { box-shadow: 0 0 0 4px #fff, 0 0 0 9px var(--coral); } }
.hcard:focus-visible { outline: none; }
.hcard:focus-visible img { box-shadow: 0 0 0 3px #fff, 0 0 0 6px #111; }

/* overlays */
.banner { position: absolute; left: 50%; top: 46%; z-index: 12; transform: translate(-50%, -50%) scale(.9); display: flex; flex-direction: column; align-items: center; gap: 2px; text-align: center;
  padding: 12px 26px 14px; border-radius: 18px; pointer-events: none; opacity: 0; background: var(--surface); border: 3px solid var(--brand); box-shadow: var(--shadow);
  transition: opacity .2s, transform .3s var(--ease); max-width: calc(100% - 32px); }
.banner.is-on { opacity: 1; transform: translate(-50%, -50%) scale(1); }
.banner-k { font-size: 13px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.banner-v { font-family: var(--font-display); font-weight: 800; font-size: clamp(24px, 6vw, 36px); line-height: 1.1; }
.banner.is-bad { border-color: var(--warn); }
.sheet { position: absolute; inset: 0; z-index: 14; display: grid; place-items: center; background: var(--scrim); padding: 16px; }
.sheet-card { width: 100%; max-width: 380px; background: var(--surface); border-radius: 22px; padding: 16px; box-shadow: var(--shadow); border: 1px solid var(--line); animation: pop .3s var(--ease); }
.sheet-t { margin: 0 0 12px; text-align: center; font-family: var(--font-display); font-weight: 800; font-size: 20px; }
.color-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.color-btn { min-height: 84px; border-radius: 16px; border: 3px solid transparent; cursor: pointer; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px; font-weight: 800; font-size: 17px; }
.color-btn:focus-visible { border-color: var(--text); }
.color-btn small { font-size: 12px; font-weight: 700; opacity: .9; }
.swap-list { display: flex; flex-direction: column; gap: 8px; }
.swap-btn { display: grid; grid-template-columns: 40px minmax(0, 1fr) auto; gap: 10px; align-items: center; min-height: 56px; padding: 8px 12px; border-radius: 14px; border: 2px solid var(--line); background: var(--surface-2); cursor: pointer; text-align: left; font-weight: 800; }
.swap-btn:hover { border-color: var(--brand); }
.swap-btn .av { width: 40px; height: 40px; }
.swap-btn em { font-style: normal; color: var(--muted); font-size: 14px; }
.curtain { position: absolute; inset: 0; z-index: 16; display: grid; place-items: center; background: var(--bg); padding: 20px; }
.curtain-card { max-width: 420px; text-align: center; }
.curtain-t { font-family: var(--font-display); font-weight: 800; font-size: clamp(28px, 7vw, 40px); margin: 6px 0; }
.curtain-s { color: var(--text-2); margin: 0 0 18px; line-height: 1.45; }
.chat-pop { position: absolute; inset: 0; z-index: 13; display: flex; align-items: flex-end; justify-content: center; background: var(--scrim);
  padding: 12px calc(10px + var(--safe-r)) calc(12px + var(--safe-b)) calc(10px + var(--safe-l)); }
.chat-card { width: 100%; max-width: 560px; max-height: 78%; overflow-y: auto; background: var(--surface); border-radius: 20px; padding: 12px; box-shadow: var(--shadow); border: 1px solid var(--line); touch-action: pan-y; }
.chat-to { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 10px; }
.chat-to button { min-height: 36px; padding: 4px 12px; border-radius: 999px; border: 2px solid var(--line); background: var(--surface-2); font-weight: 700; font-size: 14px; cursor: pointer; }
.chat-to button[aria-checked="true"] { border-color: var(--brand); background: var(--chip); color: var(--brand-text); }
.chat-presets { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 140px), 1fr)); gap: 6px; }
.chat-presets button { min-height: 42px; padding: 6px 10px; border-radius: 12px; border: 1px solid var(--line); background: var(--surface-2); font-weight: 700; font-size: 14px; cursor: pointer; text-align: center; line-height: 1.25; }
.chat-presets button.is-sweet { border-color: #e7a6d9; }
.chat-presets button:hover { border-color: var(--brand); }
.chat-emoji { display: flex; flex-wrap: wrap; gap: 4px; margin-top: 10px; justify-content: center; }
.chat-emoji button { width: 44px; height: 44px; border-radius: 12px; border: 0; background: var(--surface-2); font-size: 22px; cursor: pointer; }
.bubbles { position: absolute; inset: 0; pointer-events: none; z-index: 11; }
.bub { position: absolute; max-width: min(250px, 70vw); padding: 7px 12px 8px; border-radius: 14px; background: var(--surface); color: var(--text); border: 2px solid var(--line-strong);
  box-shadow: var(--shadow); font-size: 14px; line-height: 1.35; animation: pop .25s var(--ease); overflow-wrap: anywhere; }
.bub b { display: block; font-size: 11px; letter-spacing: .06em; text-transform: uppercase; color: var(--brand-text); margin-bottom: 1px; }
.bub--me { border-color: var(--brand); background: var(--chip); }
.bub--typing span { display: inline-flex; gap: 4px; padding: 4px 0; }
.bub--typing i { width: 6px; height: 6px; border-radius: 50%; background: var(--muted); animation: blink 1s infinite; }
.bub--typing i:nth-child(2) { animation-delay: .15s; } .bub--typing i:nth-child(3) { animation-delay: .3s; }
.fx { position: fixed; inset: 0; pointer-events: none; z-index: 30; }
.fx-card { position: absolute; left: 0; top: 0; transform-origin: 0 0; will-change: transform; }
.fx-card img { position: absolute; inset: 0; width: 100%; height: 100%; border-radius: 9% / 6%; box-shadow: 0 14px 24px -8px rgba(10, 4, 24, .55); }
.fx-card.is-flip { transform-style: preserve-3d; }
.fx-card.is-flip img { -webkit-backface-visibility: hidden; backface-visibility: hidden; }
.fx-card .fx-back { transform: rotateY(180deg); }
.fx-riffle { position: absolute; left: 0; top: 0; border-radius: 9% / 6%; box-shadow: 0 4px 10px -3px rgba(10, 4, 24, .5); }

/* the Ek race: a big button with a ring that runs out as a rival reaches for the catch */
.ek-call { position: absolute; left: 50%; bottom: calc(var(--ch) * 1.2 + 130px + var(--safe-b)); z-index: 15; transform: translateX(-50%); width: 96px; height: 96px; border-radius: 50%;
  border: 0; padding: 0; background: var(--ek); color: #fff; font-family: var(--font-display); font-weight: 900; font-size: 30px; cursor: pointer;
  box-shadow: 0 0 0 4px #fff, 0 12px 26px -8px rgba(80, 10, 10, .6); animation: ekin .3s var(--ease), ekbeat .7s ease-in-out .3s infinite; }
.ek-call span { position: relative; }
.ek-ring { position: absolute; inset: -9px; width: calc(100% + 18px); height: calc(100% + 18px); transform: rotate(-90deg); }
.ek-ring circle { fill: none; stroke: var(--ek); stroke-width: 6; stroke-dasharray: 283; stroke-dashoffset: 0; stroke-linecap: round; }
@keyframes ekin { from { transform: translateX(-50%) scale(.3); opacity: 0; } }
@keyframes ekbeat { 50% { transform: translateX(-50%) scale(1.06); } }
.guide { position: absolute; z-index: 12; border-radius: 14px; border: 3px solid #fff; box-shadow: 0 0 0 4px var(--brand), 0 0 0 9px rgba(109, 40, 217, .25); pointer-events: none; animation: guide 1.2s ease-in-out infinite; transition: left .25s var(--ease), top .25s var(--ease), width .25s, height .25s; }
@keyframes guide { 50% { box-shadow: 0 0 0 4px var(--brand), 0 0 0 14px rgba(109, 40, 217, .12); } }
.coach.is-guide { background: var(--surface); border: 2px solid var(--brand); color: var(--text); font-size: 14px; font-weight: 600; }
.emotes { position: absolute; inset: 0; pointer-events: none; z-index: 13; overflow: hidden; }
.burst { position: absolute; left: 0; top: 0; white-space: nowrap; animation: burst 1.5s var(--ease) forwards; }
.burst--emote { font-size: 30px; line-height: 1; filter: drop-shadow(0 3px 4px rgba(20, 10, 40, .35)); }
.burst--ek { padding: 5px 14px 6px; border-radius: 999px; background: var(--ek); color: #fff; border: 3px solid #fff; font-family: var(--font-display); font-weight: 900; font-size: 22px; box-shadow: 0 8px 18px -6px rgba(80, 10, 10, .55); }
@keyframes burst { 0% { transform: scale(.3) rotate(-10deg); opacity: 0; } 18% { transform: scale(1.15) rotate(-4deg); opacity: 1; } 30% { transform: scale(1) rotate(-4deg); } 80% { opacity: 1; } 100% { transform: translateY(-14px) rotate(-4deg); opacity: 0; } }
.sheet-s { margin: -4px 0 6px; text-align: center; color: var(--text-2); font-size: 15px; line-height: 1.45; }
.btn-row--tight { margin-top: 10px; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }

/* guided game row on the menu */
.tut-row { display: grid; grid-template-columns: 48px minmax(0, 1fr) 20px; align-items: center; gap: 12px; width: 100%; min-height: 64px; margin-top: 14px; padding: 10px 14px; text-align: left;
  background: var(--chip); border: 2px solid var(--brand); border-radius: 16px; cursor: pointer; transition: transform .15s var(--ease); }
.tut-row:active { transform: scale(.985); }
.tut-row.is-done { border-color: var(--line); background: var(--surface-2); }
.tut-cards { position: relative; width: 48px; height: 48px; }
.tut-cards i { position: absolute; top: 6px; width: 24px; height: 34px; border-radius: 5px; border: 2px solid #fff; box-shadow: 0 2px 5px rgba(20, 10, 40, .3); }
.tut-cards i:first-child { left: 6px; background: #e0362c; transform: rotate(-10deg); }
.tut-cards i:last-child { left: 18px; background: #2a5ad8; transform: rotate(9deg); }

/* match history */
.sub-h { font-family: var(--font-display); font-size: 18px; margin: 18px 0 8px; }
.history { display: flex; flex-direction: column; gap: 6px; }
.hist { display: grid; grid-template-columns: 58px minmax(0, 1fr) auto; gap: 4px 10px; align-items: center; padding: 8px 10px; border-radius: 12px; background: var(--surface-2); border: 1px solid var(--line); }
.hist-res { font-weight: 800; font-size: 13px; text-align: center; padding: 3px 0; border-radius: 8px; background: var(--line); color: var(--text-2); }
.hist.is-win .hist-res { background: var(--brand); color: var(--brand-ink); }
.hist-mid { display: flex; flex-direction: column; min-width: 0; }
.hist-mid b { font-size: 14px; }
.hist-mid small { font-size: 12px; color: var(--muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.hist-when { font-size: 12px; color: var(--muted); font-weight: 700; text-align: right; font-variant-numeric: tabular-nums; }

/* round over */
.panel--over { max-width: 600px; text-align: center; margin-top: 4vh; }
.over-reason { margin: 0 0 12px; color: var(--text-2); font-size: 15px; line-height: 1.45; }
.over-table { display: flex; flex-direction: column; gap: 8px; text-align: left; }
.over-row { display: grid; grid-template-columns: 36px minmax(0, 1fr) auto; gap: 4px 10px; align-items: center; padding: 8px 10px; border-radius: 14px; background: var(--surface-2); border: 1px solid var(--line); }
.over-row.is-win { border-color: var(--brand); background: var(--chip); }
.over-row .av { width: 36px; height: 36px; font-size: 14px; }
.over-name { font-weight: 800; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.over-pts { font-weight: 800; font-variant-numeric: tabular-nums; text-align: right; }
.over-pts small { display: block; color: var(--muted); font-size: 12px; font-weight: 700; }
.over-cards { grid-column: 2 / -1; display: flex; flex-wrap: wrap; gap: 3px; }
.over-cards img { width: 24px; height: 36px; border-radius: 3px; box-shadow: 0 1px 2px rgba(20, 10, 40, .3); transition: opacity .22s, transform .3s var(--ease); }
.over-cards img.is-wait { opacity: 0; transform: translateY(8px) scale(.7); }
.over-bar { grid-column: 2 / -1; height: 8px; border-radius: 4px; background: var(--line); overflow: hidden; }
.over-bar i { display: block; height: 100%; background: var(--brand); transition: width .7s var(--ease); }
.tally { display: inline-flex; flex-direction: column; align-items: center; margin: 0 auto 12px; padding: 8px 22px; border-radius: 16px; background: var(--chip); border: 2px solid var(--line); cursor: pointer; }
.tally.is-done { border-color: var(--brand); }
.tally-k { font-size: 12px; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); }
.tally-v { font-family: var(--font-display); font-size: 38px; line-height: 1.05; font-variant-numeric: tabular-nums; color: var(--brand-text); }
.over-log { display: flex; flex-wrap: wrap; gap: 6px; justify-content: center; margin: 12px 0 0; }
.log-chip { font-size: 12px; font-weight: 800; padding: 3px 9px; border-radius: 999px; background: var(--surface-2); border: 1px solid var(--line); color: var(--text-2); font-variant-numeric: tabular-nums; }
.log-chip.is-us { border-color: var(--brand); color: var(--brand-text); }
.over-chat { margin: 14px 0 0; font-style: italic; color: var(--text-2); }

/* toasts */
.toast { position: absolute; left: 50%; bottom: calc(18px + var(--safe-b)); z-index: 40; transform: translate(-50%, 20px); opacity: 0; pointer-events: none; max-width: calc(100% - 28px);
  padding: 10px 16px; border-radius: 14px; background: var(--text); color: var(--bg); font-weight: 700; font-size: 14px; text-align: center; transition: opacity .25s, transform .3s var(--ease); }
.toast.is-on { opacity: 1; transform: translate(-50%, 0); }
.ach-toast { position: absolute; left: 50%; top: calc(12px + var(--safe-t)); z-index: 41; transform: translateX(-50%); display: flex; flex-direction: column; align-items: center; max-width: calc(100% - 28px);
  padding: 8px 18px; border-radius: 14px; background: var(--surface); border: 2px solid #d4a017; box-shadow: var(--shadow); text-align: center; animation: pop .35s var(--ease); }
.ach-toast-k { font-size: 11px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.ach-toast b { font-size: 16px; }
.noscript { position: fixed; inset: 0; display: grid; place-items: center; background: var(--bg); padding: 20px; text-align: center; }

/* narrow phones: smaller chrome so names and the slate never get cut */
@media (max-width: 520px) {
  .bar { gap: 6px; }
  .bar-brand img { height: 18px; }
  .icon-btn { width: 40px; height: 40px; }
  .bar-actions { gap: 4px; }
  .slate { left: 9px; top: 8px; padding: 4px 9px 5px; }
  .slate-k { font-size: 9px; letter-spacing: .05em; }
  .slate-v { font-size: 13px; }
  .ek-call { width: 84px; height: 84px; font-size: 26px; }
  .pod { grid-template-columns: auto minmax(0, 1fr); padding: 5px 6px 5px 5px; gap: 1px 6px; border-radius: 14px; }
  .pod-av .av { width: 30px; height: 30px; font-size: 12px; }
  .pod-name { font-size: 13px; white-space: normal; overflow-wrap: anywhere; line-height: 1.15; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; text-overflow: clip; }
  .pod-sub { font-size: 11px; gap: 4px; }
  .pod-count { font-size: 12px; }
  .pod-name.is-long { font-size: 11px; letter-spacing: -.01em; overflow-wrap: normal; -webkit-line-clamp: 1; white-space: nowrap; text-overflow: ellipsis; display: block; }
  .pod-av { grid-row: span 1; align-self: start; }
  .pod-sub { grid-column: 1 / -1; }
}
/* wide screens: more room for the table */
@media (min-width: 900px) and (min-height: 620px) {
  .bar-brand img { height: 28px; }
  .slate-v { font-size: 18px; }
  .pod { padding: 8px 12px 8px 8px; }
  .pod-av .av { width: 48px; height: 48px; font-size: 18px; }
  .pod-name { font-size: 16px; }
}
/* short landscape phones: tighter chrome */
@media (max-height: 500px) {
  .bar { min-height: 40px; } .icon-btn { width: 38px; height: 38px; }
  .pod-fan { display: none; }
  .act { min-height: 38px; }
  .me-info { display: none; }
  .felt { margin: 2px; border-width: 4px; }
}
.is-lite .felt { background-image: none; box-shadow: none; }
.is-lite .fx-card img, .is-lite .fx-riffle, .is-lite .pile--discard img { box-shadow: 0 2px 4px rgba(10, 4, 24, .35); }
.is-lite .hcard img { transition: none; }
.is-lite .dir svg { animation: none; }
.reduce-motion *, .reduce-motion *::before, .reduce-motion *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
@media (prefers-reduced-motion: reduce) { .dir svg { animation: none; } }

/* Quick Seat */
.set-k-btns { display: flex; gap: 6px; flex-wrap: wrap; justify-content: flex-end; }
.pod-badge--qs { background: var(--chip); color: var(--text); border: 1px solid var(--line); font-weight: 700; }
.qs-fill { position: absolute; inset: 0; z-index: 30; display: grid; place-items: center; background: rgba(15, 8, 34, .42); padding: 16px; }
.qs-card { width: min(380px, 100%); background: var(--surface); color: var(--text); border: 1px solid var(--line); border-radius: 16px; padding: 18px 18px 14px; box-shadow: 0 18px 50px rgba(0, 0, 0, .35); }
.qs-t { font-weight: 800; font-size: 17px; margin: 2px 0 12px; }
.qs-t::after { content: ''; display: inline-block; width: 1.2em; text-align: left; animation: qsDots 1.2s steps(4) infinite; }
@keyframes qsDots { 0% { content: ''; } 25% { content: '.'; } 50% { content: '..'; } 75% { content: '...'; } }
.qs-list { display: grid; gap: 8px; min-height: 40px; }
.qs-row { display: flex; align-items: center; gap: 10px; animation: qsIn .32s ease-out both; }
.qs-row .avatar { flex: none; }
.qs-who { display: grid; min-width: 0; }
.qs-who b { font-size: 15px; }
.qs-who small { color: var(--muted); font-size: 12px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
@keyframes qsIn { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
@media (max-width: 520px) { .pod-badge--qs { display: none; } }
@media (prefers-reduced-motion: reduce) { .qs-row, .qs-t::after { animation: none; } }
.reduce-motion .qs-row, .reduce-motion .qs-t::after { animation: none; }
