/* ============================================================
   THEME SYSTEM — all colors come from CSS variables.
   Theme is chosen by [data-theme="robinhood" | "apple"] on <html>.
   ============================================================ */
:root {
  /* structural (theme-independent) */
  --cw: clamp(38px, 12vw, 58px);
  --ch: calc(var(--cw) * 1.42);
  --cw-sm: calc(var(--cw) * 0.66);
  --ch-sm: calc(var(--cw-sm) * 1.42);
  --hw: clamp(30px, 8.6vw, 42px);   /* hand-card width — sized so ~9 fit per row at 390px */
  --safe-t: env(safe-area-inset-top, 0px);
  --safe-b: env(safe-area-inset-bottom, 0px);
  --safe-l: env(safe-area-inset-left, 0px);
  --safe-r: env(safe-area-inset-right, 0px);
}

/* ---------- Robin Hood: dark fintech, neon green ---------- */
:root, :root[data-theme="robinhood"] {
  --font: -apple-system, "SF Pro Display", "Inter", system-ui, "PingFang SC", sans-serif;
  --bg: #07090a;
  --text: #f2f5f3;
  --text-dim: rgba(242,245,243,0.6);
  --header-bg: rgba(255,255,255,0.05);
  --header-blur: none;
  --felt-bg: radial-gradient(circle at 50% 22%, #10201a 0%, #070b09 78%);
  --felt-text: #e9f0ea;
  --hand-bg: rgba(255,255,255,0.05);
  --surface: rgba(255,255,255,0.055);
  --surface-border: rgba(255,255,255,0.09);
  --panel-bg: #10171a;
  --panel-text: var(--text);
  --panel-border: rgba(255,255,255,0.09);
  --accent: #00d26a;
  --accent-ink: #04140c;
  --accent-soft: rgba(0,210,106,0.16);
  --ghost-bg: rgba(255,255,255,0.09);
  --ghost-text: var(--text);
  --btn-radius: 16px;
  --card-radius: calc(var(--cw) * 0.16);
  --card-face: #fbfdfb;
  --card-ink: #10171a;
  --card-red: #ff4d6a;
  --card-border: 0 solid transparent;
  --card-shadow: 0 4px 14px rgba(0,0,0,0.45);
  --border: rgba(255,255,255,0.1);
  --turn-ring: var(--accent);
  --turn-glow: 0 0 16px rgba(0,210,106,0.85);
  --avatar-bg: rgba(255,255,255,0.09);
  --ally-bg: rgba(0,210,106,0.18); --ally-ink: #00d26a;
  --foe-bg: rgba(255,141,107,0.2); --foe-ink: #ff9d7e;
  --banker-bg: var(--accent); --banker-ink: #04140c;
  --track-bg: rgba(255,255,255,0.1);
  --trump-dot: #ffd54a;
  --ease: cubic-bezier(.2,.7,.2,1);
}

/* ---------- Apple: light, airy, restrained ---------- */
:root[data-theme="apple"] {
  --font: -apple-system, "SF Pro Display", "SF Pro Text", system-ui, "Helvetica Neue", "PingFang SC", sans-serif;
  --bg: #fbfbfd;
  --text: #1d1d1f;
  --text-dim: #6e6e73;
  --header-bg: rgba(251,251,253,0.72);
  --header-blur: saturate(180%) blur(20px);
  --felt-bg: linear-gradient(180deg, #eef1f5 0%, #e6eaef 100%);
  --felt-text: #1d1d1f;
  --hand-bg: rgba(0,0,0,0.04);
  --surface: #ffffff;
  --surface-border: rgba(0,0,0,0.08);
  --panel-bg: #ffffff;
  --panel-text: #1d1d1f;
  --panel-border: rgba(0,0,0,0.08);
  --accent: #0071e3;
  --accent-ink: #ffffff;
  --accent-soft: rgba(0,113,227,0.1);
  --ghost-bg: rgba(0,0,0,0.06);
  --ghost-text: #1d1d1f;
  --btn-radius: 980px;
  --card-radius: calc(var(--cw) * 0.13);
  --card-face: #ffffff;
  --card-ink: #1d1d1f;
  --card-red: #d70015;
  --card-border: 1px solid rgba(0,0,0,0.08);
  --card-shadow: 0 2px 10px rgba(0,0,0,0.12);
  --border: rgba(0,0,0,0.1);
  --turn-ring: var(--accent);
  --turn-glow: 0 0 0 3px rgba(0,113,227,0.28);
  --avatar-bg: #e8e8ed;
  --ally-bg: rgba(0,113,227,0.1); --ally-ink: #0071e3;
  --foe-bg: rgba(215,0,21,0.08); --foe-ink: #d70015;
  --banker-bg: #1d1d1f; --banker-ink: #ffffff;
  --track-bg: rgba(0,0,0,0.1);
  --trump-dot: #ff9f0a;
  --ease: cubic-bezier(.4,0,.2,1);
}

/* ============================================================ */
* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
html, body { margin: 0; padding: 0; height: 100%; width: 100%; overflow: hidden; }
body {
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  user-select: none; -webkit-text-size-adjust: 100%;
}
#app { height: 100dvh; width: 100vw; display: flex; flex-direction: column; overflow: hidden; }

/* ---------- buttons ---------- */
button {
  font-family: inherit; font-size: clamp(14px, 4vw, 16px);
  border: none; border-radius: var(--btn-radius);
  padding: clamp(10px,3vw,13px) clamp(16px,5vw,22px); min-height: 44px;
  background: var(--accent); color: var(--accent-ink); font-weight: 600;
  cursor: pointer; transition: transform .12s var(--ease), opacity .2s, background .2s;
}
button:active { transform: translateY(1px) scale(.97); }
button:disabled { opacity: .4; cursor: default; }
button.ghost { background: var(--ghost-bg); color: var(--ghost-text); }
button.mini { min-height: 0; padding: 7px 13px; font-size: clamp(11px,3.2vw,13px); }
.title { font-size: clamp(22px, 7vw, 32px); font-weight: 700; letter-spacing: -0.02em; }
.sub { opacity: .85; color: var(--text-dim); font-size: clamp(12px,3.4vw,14px); line-height: 1.5; }

/* ---------- lobby ---------- */
.lobby { flex: 1; overflow-y: auto; -webkit-overflow-scrolling: touch;
  padding: calc(18px + var(--safe-t)) calc(16px + var(--safe-r)) calc(28px + var(--safe-b)) calc(16px + var(--safe-l)); }
.lobby-head { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-bottom: 4px; }
.lobby h1 { margin: 10px 0 4px; }
.lobby .hint { margin-bottom: 16px; }
.section-label { font-weight: 600; margin: 16px 4px 8px; font-size: clamp(13px,3.6vw,15px); }
.bot-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 10px; }
.bot-card { background: var(--surface); border: 1px solid var(--surface-border); border-radius: 16px; padding: 13px; position: relative; min-height: 86px; transition: border-color .2s, transform .12s var(--ease); }
.bot-card:active { transform: scale(.98); }
.bot-card .name { font-weight: 600; font-size: clamp(15px,4.4vw,18px); }
.bot-card .tag { font-size: 12px; color: var(--text-dim); }
.bot-card .stats { font-size: 11px; color: var(--text-dim); margin-top: 5px; }
.bot-card.sel-partner { border-color: #34c6ff; box-shadow: 0 0 0 2px #34c6ff44; }
.bot-card.sel-opp { border-color: #ff8d6b; box-shadow: 0 0 0 2px #ff8d6b44; }
.bot-card .role { position: absolute; top: 9px; right: 9px; font-size: 10.5px; padding: 2px 9px; border-radius: 980px; font-weight: 600; }
.role.partner { background: #34c6ff; color: #002b3a; }
.role.opp { background: #ff8d6b; color: #3a1300; }
.lobby-actions { position: sticky; bottom: 0; padding-top: 14px; display: flex; gap: 10px;
  background: linear-gradient(transparent, var(--bg) 45%); }
.lobby-actions button { flex: 1; }

/* ---------- table ---------- */
.table { flex: 1; min-height: 0; display: grid; grid-template-rows: auto minmax(0,1fr) auto; overflow: hidden; }
.header { background: var(--header-bg); -webkit-backdrop-filter: var(--header-blur); backdrop-filter: var(--header-blur);
  padding-top: var(--safe-t); border-bottom: 1px solid var(--border); }
.topbar { display: flex; align-items: center; gap: 8px; padding: 9px calc(12px + var(--safe-r)) 7px calc(12px + var(--safe-l));
  font-size: clamp(11px,3.2vw,13px); }
.topbar .trump { font-size: clamp(15px,4.6vw,20px); font-weight: 700; color: var(--accent); }
.topbar .levels { color: var(--text-dim); }
.topbar > div:first-child { margin-right: auto; }
/* points-pulled-from-banker progress bar */
.ptbar { padding: 0 calc(12px + var(--safe-r)) 9px calc(12px + var(--safe-l)); }
.ptbar-label { font-size: clamp(11px,3.1vw,13px); color: var(--text-dim); margin-bottom: 5px; }
.ptbar-label b { color: var(--accent); font-size: 1.25em; font-weight: 700; }
.ptbar-track { position: relative; height: 9px; border-radius: 980px; background: var(--track-bg); overflow: visible; }
.ptbar-fill { height: 100%; border-radius: 980px; background: var(--accent); transition: width .5s var(--ease); min-width: 2%; }
.ptbar-mark { position: absolute; right: 0; top: -2px; transform: translateX(50%); font-size: 9px; color: var(--text-dim);
  border-left: 1px dashed var(--text-dim); padding-left: 0; height: 13px; }

/* felt */
.felt { position: relative; min-height: 0; overflow: hidden; background: var(--felt-bg); color: var(--felt-text); }
.seat { position: absolute; text-align: center; font-size: clamp(10px,3vw,12px);
  display: flex; flex-direction: column; align-items: center; gap: 3px; max-width: 30vw; cursor: pointer; }
.seat .avatar { width: clamp(40px,11.5vw,50px); height: clamp(40px,11.5vw,50px); border-radius: 50%;
  background: var(--avatar-bg); display: flex; align-items: center; justify-content: center;
  font-weight: 700; font-size: clamp(15px,4.6vw,18px); border: 2px solid transparent; position: relative;
  transition: box-shadow .25s var(--ease), border-color .25s; }
.seat.turn .avatar { border-color: var(--turn-ring); box-shadow: var(--turn-glow); }
.seat.banker .avatar::after { content: 'B'; position: absolute; top: -6px; right: -8px;
  background: var(--banker-bg); color: var(--banker-ink); font-size: 10px; font-weight: 700;
  border-radius: 980px; padding: 1px 6px; }
.seat .pname { font-weight: 600; max-width: 26vw; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.seat .cardcount { color: var(--felt-text); opacity: .65; }
.seat.you    { left: 50%; bottom: 2%; transform: translateX(-50%); }
.seat.right  { right: 1%; top: 46%; transform: translateY(-50%); }
.seat.partner{ left: 50%; top: 2%; transform: translateX(-50%); }
.seat.left   { left: 1%; top: 46%; transform: translateY(-50%); }
.seat .badge { font-size: 10px; padding: 1px 7px; border-radius: 980px; font-weight: 600; }
.badge.p { background: var(--ally-bg); color: var(--ally-ink); }
.badge.o { background: var(--foe-bg); color: var(--foe-ink); }

/* played cards */
.played { position: absolute; display: flex; transition: opacity .3s var(--ease); }
.played > .card { margin-left: calc(var(--cw-sm) * -0.45); }
.played > .card:first-child { margin-left: 0; }
.played.ghost { opacity: 0.34; }
.played.win > .card { outline: 2px solid var(--accent); outline-offset: 1px; }
.played.you     { left: 50%; bottom: 15%; transform: translateX(-50%); }
.played.partner { left: 50%; top: 15%; transform: translateX(-50%); }
.played.right   { right: 13%; top: 50%; transform: translateY(-50%); }
.played.left    { left: 13%; top: 50%; transform: translateY(-50%); }

/* play-order piles spread in front of each seat (toggle) */
:root { --cw-tiny: clamp(17px, 5vw, 22px); }
.pile { position: absolute; display: flex; align-items: center;
  max-width: 46vw; overflow-x: auto; overflow-y: hidden; scrollbar-width: none;
  padding: 2px 3px; background: rgba(0,0,0,0.14); border-radius: 8px; }
.pile::-webkit-scrollbar { display: none; }
.pile > .card.tiny { margin-left: calc(var(--cw-tiny) * -0.5); }
.pile > .card.tiny:first-child { margin-left: 0; }
.card.tiny { width: var(--cw-tiny); height: calc(var(--cw-tiny) * 1.34); border-radius: 3px;
  padding: 2px 0 0; justify-content: flex-start; box-shadow: 0 1px 2px var(--shadow); }
.card.tiny .corner { font-size: calc(var(--cw-tiny) * 0.42); align-self: center; }
.pile-you     { left: 50%; bottom: 30%; transform: translateX(-50%); }
.pile-partner { left: 50%; top: 30%; transform: translateX(-50%); }
.pile-right   { right: 2%; top: 66%; transform: translateY(-50%); max-width: 40vw; }
.pile-left    { left: 2%; top: 66%; transform: translateY(-50%); max-width: 40vw; }

/* settings segmented control (deal speed) */
.setting-block { margin: 14px 0 2px; text-align: left; }
.setting-block .nm { font-weight: 600; font-size: 14px; margin-bottom: 6px; }
.seg { display: flex; gap: 6px; }
.seg-btn { flex: 1; min-height: 0; padding: 8px 6px; font-size: 12px; border-radius: 10px;
  background: var(--surface); color: var(--text); border: 1px solid var(--surface-border); }
.seg-btn.active { background: var(--accent); color: var(--accent-ink); border-color: var(--accent); }

/* settings toggle switch */
.toggle-row { display: flex; align-items: center; justify-content: space-between; gap: 12px;
  margin: 14px 0 2px; cursor: pointer; text-align: left; }
.toggle-row .nm { font-weight: 600; font-size: 14px; }
.toggle-row .ds { font-size: 11px; color: var(--text-dim); margin-top: 2px; }
.switch { flex: 0 0 auto; width: 44px; height: 26px; border-radius: 999px; background: var(--track-bg); position: relative; transition: background .2s; }
.switch span { position: absolute; top: 3px; left: 3px; width: 20px; height: 20px; border-radius: 50%; background: #fff; transition: left .2s; box-shadow: 0 1px 3px rgba(0,0,0,.4); }
.switch.on { background: var(--accent); }
.switch.on span { left: 21px; }

/* kitty breakdown on the result screen */
.kitty-block { text-align: center; }

/* opening: kitty-holder markers */
.kitty-tag { font-size: 10px; font-weight: 700; color: var(--accent); border: 1px solid var(--accent); border-radius: 6px; padding: 0 4px; margin-left: 4px; }
.avatar .kitty-pin { position: absolute; bottom: -6px; left: -8px; background: var(--accent); color: var(--accent-ink); font-size: 10px; font-weight: 700; border-radius: 980px; padding: 0 4px; }
.hand-card { animation: dealIn .18s var(--ease); }
@keyframes dealIn { from { transform: translateY(8px); opacity: .2; } to { transform: none; opacity: 1; } }

/* cards */
.card { width: var(--cw); height: var(--ch); border-radius: var(--card-radius);
  background: var(--card-face); color: var(--card-ink); border: var(--card-border); box-shadow: var(--card-shadow);
  display: inline-flex; flex-direction: column; align-items: center; justify-content: space-between;
  padding: calc(var(--cw)*0.08) calc(var(--cw)*0.06); font-weight: 700; position: relative; flex: 0 0 auto; }
.card.sm { width: var(--cw-sm); height: var(--ch-sm); border-radius: calc(var(--cw-sm)*0.13); }
.card.red { color: var(--card-red); }
.card .corner { font-size: calc(var(--cw)*0.30); line-height: 1; align-self: flex-start; }
.card .pip { font-size: calc(var(--cw)*0.42); }
.card.sm .corner { font-size: calc(var(--cw-sm)*0.32); }
.card.sm .pip { font-size: calc(var(--cw-sm)*0.44); }
.card.trump-mark::after { content:''; position:absolute; top:3px; right:3px; width:7px; height:7px; border-radius:50%; background: var(--trump-dot); }

/* hand — multi-row wrap so ALL cards are visible without horizontal overflow */
.hand-wrap { background: var(--hand-bg); border-top: 1px solid var(--border);
  padding: 4px calc(6px + var(--safe-r)) calc(8px + var(--safe-b)) calc(6px + var(--safe-l));
  display: flex; flex-direction: column; }
.hand-head { text-align: center; font-size: 11px; color: var(--text-dim); padding: 5px 0 3px; font-weight: 500; }
.hand-scroll {
  display: flex; flex-wrap: wrap; align-content: flex-start; justify-content: center;
  gap: 5px 4px; padding: 6px 4px 4px;
  max-height: 42dvh; overflow-y: auto; overflow-x: hidden;
  scrollbar-width: thin; -webkit-overflow-scrolling: touch;
}
.hand-card { position: relative; cursor: pointer; flex: 0 0 auto; transition: transform .12s var(--ease);
  width: var(--hw); height: calc(var(--hw) * 1.42); border-radius: calc(var(--hw) * 0.14); }
.hand-card .corner { font-size: calc(var(--hw) * 0.30); }
.hand-card .pip { font-size: calc(var(--hw) * 0.44); }
.hand-card.selected { transform: translateY(-9px); box-shadow: 0 0 0 2px var(--accent), 0 8px 16px rgba(0,0,0,.4); z-index: 2; }
.hand-card.trump-mark::after { width: 6px; height: 6px; }
.action-bar { display: flex; gap: 8px; padding: 8px 12px calc(4px + var(--safe-b)); justify-content: center; align-items: center; flex-wrap: wrap; border-top: 1px solid var(--border); margin-top: 4px; }
.action-bar .msg { flex: 1 1 100%; font-size: clamp(12px,3.4vw,14px); color: var(--text-dim); min-height: 16px; text-align: center; }
.action-bar .msg b { color: var(--accent); }
.action-bar button { flex: 1 1 auto; min-width: 88px; max-width: 220px; }
.action-bar .suit-btn { flex: 0 1 auto; min-width: 70px; }

/* overlays */
.overlay { position: fixed; inset: 0; background: rgba(0,0,0,0.5);
  display: flex; align-items: center; justify-content: center; z-index: 30;
  padding: calc(20px + var(--safe-t)) 18px calc(20px + var(--safe-b)); }
:root[data-theme="apple"] .overlay { background: rgba(0,0,0,0.28); -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); }
.panel { background: var(--panel-bg); color: var(--panel-text); border: 1px solid var(--panel-border);
  border-radius: 22px; padding: clamp(18px,5vw,26px); max-width: 420px; width: 100%; max-height: 88dvh; overflow-y: auto;
  box-shadow: 0 18px 50px rgba(0,0,0,0.4); text-align: center; }
.panel.wide { max-width: 460px; }
.panel h2 { margin: 0 0 6px; font-size: clamp(18px,5vw,22px); font-weight: 700; letter-spacing: -0.01em; }
.panel .row { display: flex; gap: 8px; flex-wrap: wrap; justify-content: center; margin: 14px 0 0; }
.suit-btn { font-size: clamp(15px,4.4vw,18px); min-width: 64px; }
.result-line { font-size: clamp(13px,3.8vw,15px); margin: 10px 0; line-height: 1.55; }
.result-pts { font-size: clamp(30px,10vw,40px); font-weight: 800; color: var(--accent); letter-spacing: -0.02em; }

/* history (cards played) */
.hist-list { display: flex; flex-direction: column; gap: 10px; margin: 12px 0 2px; text-align: left; }
.hist-row { background: var(--surface); border: 1px solid var(--surface-border); border-radius: 14px; padding: 10px 12px; }
.hist-row.focus { border-color: var(--accent); box-shadow: 0 0 0 2px var(--accent-soft); }
.hist-name { font-size: clamp(12px,3.4vw,14px); font-weight: 600; margin-bottom: 7px; }
.hist-group { margin-top: 6px; }
.hist-glabel { font-size: 10px; font-weight: 600; color: var(--text-dim); text-transform: uppercase; letter-spacing: 0.04em; margin-bottom: 3px; }
.hist-cards { display: flex; flex-wrap: wrap; gap: 4px; align-items: center; }

/* training log (result screen + history viewer) */
.train-block { text-align: left; margin-top: 6px; }
.train-row { background: var(--surface); border: 1px solid var(--surface-border); border-radius: 12px; padding: 9px 12px; margin-bottom: 8px; }
.train-row > summary { font-size: clamp(12px,3.3vw,13.5px); line-height: 1.45; cursor: pointer; color: var(--text); }
.train-row > summary::marker { color: var(--accent); }
.train-weights { margin-top: 8px; border-top: 1px solid var(--border); padding-top: 8px; display: flex; flex-direction: column; gap: 4px; }
.wrow { display: flex; justify-content: space-between; gap: 10px; font-size: 12px; }
.wrow .wval { color: var(--text-dim); white-space: nowrap; }
.wrow .wval b { color: var(--accent); }
.tl-list { display: flex; flex-direction: column; gap: 8px; margin: 12px 0 2px; text-align: left; max-height: 56dvh; overflow-y: auto; }
.tl-item { background: var(--surface); border: 1px solid var(--surface-border); border-radius: 12px; padding: 9px 12px; font-size: clamp(12px,3.3vw,13.5px); line-height: 1.45; }
.tl-when { font-size: 10.5px; color: var(--text-dim); margin-bottom: 3px; }

/* table chat / reflections */
.chat-list { display: flex; flex-direction: column; gap: 8px; margin: 12px 0; text-align: left; max-height: 48dvh; overflow-y: auto; }
.chat-msg { border-radius: 12px; padding: 8px 11px; font-size: clamp(12px,3.3vw,13.5px); line-height: 1.4; max-width: 92%; }
.chat-msg.bot { background: var(--surface); border: 1px solid var(--surface-border); align-self: flex-start; }
.chat-msg.player { background: var(--accent-soft); align-self: flex-end; }
.chat-who { font-size: 10.5px; font-weight: 600; color: var(--text-dim); margin-bottom: 2px; }
.chat-input { display: flex; gap: 6px; margin-top: 8px; }
.chat-input select { flex: 0 0 auto; max-width: 34%; border-radius: 10px; padding: 8px; background: var(--surface); color: var(--text); border: 1px solid var(--surface-border); font-size: 12px; }
.chat-input input { flex: 1 1 auto; min-width: 0; border-radius: 10px; padding: 9px 11px; background: var(--surface); color: var(--text); border: 1px solid var(--surface-border); font-size: 13px; }
.chat-input button { flex: 0 0 auto; min-height: 0; padding: 9px 14px; }

/* toast */
.toast { position: fixed; top: calc(64px + var(--safe-t)); left: 50%; transform: translateX(-50%);
  background: var(--panel-bg); color: var(--panel-text); border: 1px solid var(--panel-border);
  padding: 9px 16px; border-radius: 980px; font-size: clamp(12px,3.6vw,14px); font-weight: 500;
  z-index: 40; pointer-events: none; opacity: 0; transition: opacity .2s; max-width: 86vw; text-align: center;
  box-shadow: 0 8px 24px rgba(0,0,0,.25); }
.toast.show { opacity: 1; }

/* theme picker */
.theme-row { display: flex; gap: 12px; margin: 16px 0 4px; }
.theme-opt { flex: 1; border: 2px solid var(--surface-border); border-radius: 16px; padding: 14px 10px; cursor: pointer;
  background: var(--surface); transition: border-color .2s, transform .12s var(--ease); text-align: center; }
.theme-opt:active { transform: scale(.97); }
.theme-opt.active { border-color: var(--accent); box-shadow: 0 0 0 2px var(--accent-soft); }
.theme-opt .sw { height: 46px; border-radius: 12px; margin-bottom: 9px; position: relative; overflow: hidden; }
.theme-opt .nm { font-weight: 600; font-size: 14px; }
.theme-opt .ds { font-size: 11px; color: var(--text-dim); margin-top: 2px; }
.sw-robinhood { background: radial-gradient(circle at 50% 30%, #10201a, #07090a); }
.sw-robinhood::after { content:''; position:absolute; left:50%; top:50%; width:60%; height:8px; border-radius:980px; background:#00d26a; transform:translate(-50%,-50%); box-shadow:0 0 12px #00d26a; }
.sw-apple { background: linear-gradient(180deg,#eef1f5,#e6eaef); }
.sw-apple::after { content:''; position:absolute; left:50%; top:50%; width:50%; height:8px; border-radius:980px; background:#0071e3; transform:translate(-50%,-50%); }

/* responsive */
@media (orientation: landscape) and (max-height: 520px) {
  :root { --cw: clamp(30px, 7vh, 46px); }
  .hand-scroll { padding-top: 14px; }
  .seat.right { right: 0.5%; } .seat.left { left: 0.5%; }
  .played.you { bottom: 8%; } .played.partner { top: 8%; }
}
@media (max-width: 340px) { :root { --cw: clamp(32px, 13vw, 44px); } }
