/* Hand Knee Foot — design tokens, light/dark, 4-colour deck, reduced motion. */
:root {
  --bg: #f4f1e8; --surface: #ffffff; --surface-2: #ece8dc; --ink: #1c2620; --muted: #5b685f; --line: #d8d2c2;
  --felt-a: #2b7a4b; --felt-b: #17492f; --felt-edge: #0e2f1f;
  --on-felt: #f3f8f3; --on-felt-dim: rgba(243, 248, 243, .72);
  --panel: rgba(6, 28, 17, .34); --panel-line: rgba(255, 255, 255, .13);
  --gold: #f4c24a; --gold-2: #dd9d1c; --gold-ink: #3a2704;
  --good: #36b36a; --warn: #f0a63a; --bad: #e0574a;
  --t0: #4cc3d9; --t1: #ff9a5c; --t2: #b88cf0;
  --card-face: #fffdf8; --card-edge: #c9c1ae; --card-font: ui-rounded, "SF Pro Rounded", "Avenir Next", "Segoe UI", system-ui, sans-serif;
  --suit-s: #1b1f24; --suit-c: #1b1f24; --suit-h: #c92d27; --suit-d: #c92d27;
  --back-1: #1f4f93; --back-2: #2a63b5; --back-edge: #f4d58a;
  --shadow: 0 2px 6px rgba(0, 0, 0, .28), 0 8px 18px rgba(0, 0, 0, .18);
  --font: ui-rounded, "SF Pro Rounded", "Avenir Next", "Segoe UI", system-ui, -apple-system, sans-serif;
  --r: 14px; --safe-b: env(safe-area-inset-bottom, 0px); --safe-t: env(safe-area-inset-top, 0px);
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #0f1612; --surface: #18211c; --surface-2: #202c26; --ink: #eef3ee; --muted: #9aaba0; --line: #2c3a32;
    --felt-a: #1d5a39; --felt-b: #0d2f1e; --felt-edge: #071a11; --card-face: #f6f3ea; --card-edge: #8e8774;
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --bg: #0f1612; --surface: #18211c; --surface-2: #202c26; --ink: #eef3ee; --muted: #9aaba0; --line: #2c3a32;
  --felt-a: #1d5a39; --felt-b: #0d2f1e; --felt-edge: #071a11; --card-face: #f6f3ea; --card-edge: #8e8774;
  color-scheme: dark;
}
:root[data-deck="four"] { --suit-d: #1d63d6; --suit-c: #1c8a3d; --suit-s: #17191d; --suit-h: #d12c25; }

* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
html, body { margin: 0; height: 100%; background: var(--bg); color: var(--ink); font: 16px/1.4 var(--font); overflow-x: hidden; overscroll-behavior: none; }
body { -webkit-text-size-adjust: 100%; }
button { font: inherit; color: inherit; border: 0; background: none; cursor: pointer; touch-action: manipulation; }
button:focus-visible, input:focus-visible, a:focus-visible, [tabindex]:focus-visible { outline: 3px solid var(--gold); outline-offset: 2px; border-radius: 8px; }
button:disabled { cursor: default; }
h1, h2, h3, p { margin: 0; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
#app { height: 100dvh; width: 100%; position: relative; overflow: hidden; }

/* ---------- screens on felt ---------- */
.felt { background:
  radial-gradient(120% 80% at 50% 0%, var(--felt-a) 0%, var(--felt-b) 62%, var(--felt-edge) 100%); color: var(--on-felt); }
.felt::before { content: ""; position: absolute; inset: 0; pointer-events: none; opacity: .5; mix-blend-mode: soft-light;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='160' height='160'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/><feColorMatrix values='0 0 0 0 0  0 0 0 0 0  0 0 0 0 0  0 0 0 .55 0'/></filter><rect width='100%' height='100%' filter='url(%23n)'/></svg>"); }
.screen { position: absolute; inset: 0; display: flex; flex-direction: column; padding: calc(var(--safe-t) + 14px) 16px calc(var(--safe-b) + 16px); overflow-y: auto; -webkit-overflow-scrolling: touch; }
.screen > * { position: relative; }
.center-col { width: 100%; max-width: 520px; margin: 0 auto; }

/* ---------- buttons ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 48px; padding: 0 20px; border-radius: 14px; font-weight: 750; font-size: 1.02rem; letter-spacing: .01em;
  background: rgba(255, 255, 255, .13); color: var(--on-felt); border: 1.5px solid rgba(255, 255, 255, .22); transition: transform .12s, background .15s, box-shadow .15s; }
.btn:active:not(:disabled) { transform: scale(.97); }
.btn:disabled { opacity: .42; }
.btn.primary { background: linear-gradient(180deg, var(--gold), var(--gold-2)); color: var(--gold-ink); border-color: #fbe29a; box-shadow: 0 3px 0 #a56f0b, 0 8px 18px rgba(0, 0, 0, .3); }
.btn.primary:active:not(:disabled) { transform: translateY(2px) scale(.99); box-shadow: 0 1px 0 #a56f0b, 0 4px 10px rgba(0, 0, 0, .3); }
.btn.big { min-height: 58px; font-size: 1.15rem; border-radius: 16px; width: 100%; }
.btn.ghost { background: transparent; }
.btn.light { background: var(--surface); color: var(--ink); border-color: var(--line); }
.btn.danger { background: rgba(224, 87, 74, .22); border-color: rgba(224, 87, 74, .6); }
.icon-btn { width: 44px; height: 44px; border-radius: 12px; display: inline-grid; place-items: center; color: inherit; background: rgba(255, 255, 255, .1); border: 1px solid var(--panel-line); }
.icon-btn svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }

/* ---------- home ---------- */
.home .hero { text-align: center; padding: 18px 0 10px; }
.logo { font-size: clamp(2.1rem, 9vw, 3.1rem); font-weight: 900; letter-spacing: -.02em; line-height: 1; text-shadow: 0 3px 0 rgba(0, 0, 0, .25); }
.logo span { color: var(--gold); }
.tagline { color: var(--on-felt-dim); margin-top: 8px; font-size: 1.02rem; }
.fan { position: relative; height: 150px; margin: 16px auto 8px; width: 240px; }
.fan .card { position: absolute; left: 50%; top: 10px; --cw: 82px; transform-origin: 50% 130%; transition: transform .5s cubic-bezier(.2, .9, .3, 1.2); }
.panel { background: var(--panel); border: 1px solid var(--panel-line); border-radius: 18px; padding: 16px; backdrop-filter: blur(6px); }
.panel + .panel { margin-top: 12px; }
.stack-col { display: flex; flex-direction: column; gap: 12px; }
.field { display: flex; flex-direction: column; gap: 6px; }
.field > label, .label { font-size: .78rem; text-transform: uppercase; letter-spacing: .09em; font-weight: 800; color: var(--on-felt-dim); }
input[type="text"], .input { width: 100%; min-height: 50px; padding: 0 14px; border-radius: 12px; border: 1.5px solid rgba(255, 255, 255, .26); background: rgba(0, 0, 0, .25); color: var(--on-felt); font: inherit; font-size: 1.1rem; }
input::placeholder { color: rgba(255, 255, 255, .45); }
.row { display: flex; gap: 10px; align-items: stretch; }
.row > * { flex: 1; min-width: 0; }
.code-input { text-transform: uppercase; letter-spacing: .4em; text-align: center; font-weight: 800; font-size: 1.3rem; }
.links { display: flex; justify-content: center; gap: 22px; margin-top: 18px; color: var(--on-felt-dim); }
.links button { padding: 10px 6px; min-height: 44px; font-weight: 650; text-decoration: underline; text-underline-offset: 4px; color: var(--on-felt); }
.other-app { text-align: center; margin-top: 6px; color: var(--on-felt-dim); font-size: .95rem; }
.other-app a { display: inline-block; padding: 10px 4px; min-height: 44px; font-weight: 650; color: var(--on-felt); text-underline-offset: 4px; }
.notice { font-size: .92rem; color: var(--on-felt-dim); }
.err { color: #ffb4a8; font-weight: 650; min-height: 1.3em; }

/* ---------- lobby ---------- */
.lobby h2 { font-size: 1.5rem; font-weight: 850; }
.room-code { font-size: 2.6rem; font-weight: 900; letter-spacing: .3em; text-align: center; padding: 12px 0 12px .3em; border: 2px dashed rgba(255, 255, 255, .4); border-radius: 16px; user-select: all; background: rgba(0, 0, 0, .18); }
.seats { display: grid; gap: 10px; margin-top: 4px; }
.seatlist { display: grid; gap: 10px; }
.seat-row { display: flex; align-items: center; gap: 12px; padding: 10px 12px; border-radius: 14px; background: rgba(255, 255, 255, .08); border: 1px solid var(--panel-line); min-height: 58px; }
.seat-row.me { border-color: var(--gold); }
.seat-row .num { width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center; font-weight: 850; color: #06210f; background: var(--tc, #ccc); flex: none; }
.seat-row .who { flex: 1; font-weight: 700; min-width: 0; }
.seat-row .who small { display: block; font-weight: 500; color: var(--on-felt-dim); }
.seat-row.empty { border-style: dashed; color: var(--on-felt-dim); }
.chip-row { display: flex; gap: 8px; flex-wrap: wrap; }
.chip { min-height: 44px; min-width: 56px; padding: 0 14px; border-radius: 999px; font-weight: 800; background: rgba(255, 255, 255, .1); border: 1.5px solid rgba(255, 255, 255, .22); color: var(--on-felt); }
.chip[aria-pressed="true"] { background: var(--gold); color: var(--gold-ink); border-color: #fbe29a; }
.team-tag { font-size: .72rem; font-weight: 800; letter-spacing: .06em; padding: 3px 8px; border-radius: 999px; background: var(--tc); color: #06210f; }
.mini-btn { min-height: 44px; min-width: 44px; padding: 0 12px; border-radius: 10px; background: rgba(255, 255, 255, .1); border: 1px solid var(--panel-line); font-weight: 700; color: var(--on-felt); }

/* ---------- cards ---------- */
.card { width: var(--cw, 60px); height: calc(var(--cw, 60px) * 1.4); display: block; padding: 0; position: relative; flex: none; border-radius: calc(var(--cw) * .09); }
.card svg { width: 100%; height: 100%; display: block; overflow: visible; filter: drop-shadow(0 1px 1.5px rgba(0, 0, 0, .35)); }
.card .face-bg { fill: var(--card-face); stroke: var(--card-edge); stroke-width: 1.4; }
.card .back-bg { fill: var(--back-1); stroke: #0c2346; stroke-width: 1.4; }
.card.face { cursor: pointer; }
.card.wild .face-bg { fill: #fff8e3; }
.card.red3 .face-bg { fill: #fff0ee; }
.card.black3 .face-bg { fill: #ececec; }
.card text { font-family: var(--card-font); }

/* ---------- table grid ---------- */
.table { position: absolute; inset: 0; display: grid; grid-template-rows: auto auto minmax(0, 1fr) auto auto auto;
  grid-template-areas: "top" "seats" "boards" "mid" "actions" "hand"; padding-top: var(--safe-t); overflow: hidden; }
.table > * { position: relative; min-width: 0; }
.topbar { grid-area: top; display: flex; align-items: center; gap: 8px; padding: 6px 10px; }
.topbar .title { flex: 1; text-align: center; min-width: 0; }
.topbar .title b { display: block; font-size: .98rem; font-weight: 850; letter-spacing: .01em; }
.topbar .title small { display: block; color: var(--on-felt-dim); font-size: .76rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.scores { display: flex; gap: 6px; }
.score-pill { min-height: 44px; padding: 2px 10px; border-radius: 12px; background: var(--panel); border: 1px solid var(--panel-line); border-left: 4px solid var(--tc); text-align: left; line-height: 1.1; color: var(--on-felt); }
.score-pill small { display: block; font-size: .66rem; color: var(--on-felt-dim); font-weight: 700; max-width: 72px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.score-pill b { font-size: 1.02rem; font-variant-numeric: tabular-nums; }

.seatsarea { grid-area: seats; display: flex; flex-direction: column; min-height: 0; }
.seats { display: grid; grid-template-columns: repeat(auto-fit, minmax(84px, 1fr)); gap: 6px; padding: 2px 10px 6px; }
.seat { text-align: left; padding: 5px 8px 6px; border-radius: 12px; background: var(--panel); border: 1.5px solid var(--panel-line); border-top: 4px solid var(--tc); color: var(--on-felt); position: relative; min-height: 46px; transition: box-shadow .3s, border-color .3s, transform .3s; }
.seat .nm { display: flex; align-items: center; gap: 4px; font-weight: 800; font-size: .86rem; line-height: 1.15; white-space: nowrap; }
.seat .nm span { overflow: hidden; text-overflow: ellipsis; }
.seat .sub { display: flex; align-items: center; gap: 6px; font-size: .74rem; color: var(--on-felt-dim); margin-top: 2px; font-variant-numeric: tabular-nums; }
.seat .pips { display: none; gap: 3px; }
.seat .cnt { font-weight: 850; color: var(--on-felt); font-size: .95rem; }
.seat .stg { text-transform: uppercase; letter-spacing: .06em; font-size: .62rem; font-weight: 800; }
.seat .pip { width: 17px; height: 15px; border-radius: 4px; font-size: .56rem; font-weight: 900; display: grid; place-items: center; background: rgba(255, 255, 255, .1); color: var(--on-felt-dim); }
.seat .pip.done { background: rgba(255, 255, 255, .04); text-decoration: line-through; opacity: .5; }
.seat .pip.now { background: var(--gold); color: var(--gold-ink); }
.seat.turn { border-color: var(--gold); box-shadow: 0 0 0 2px rgba(244, 194, 74, .35), 0 0 18px rgba(244, 194, 74, .35); transform: translateY(1px); }
.seat.turn::after { content: ""; position: absolute; right: 7px; top: 8px; width: 9px; height: 9px; border-radius: 50%; background: var(--gold); animation: pulse 1.3s infinite; }
.seat .tag { font-size: .58rem; font-weight: 900; letter-spacing: .05em; padding: 1px 5px; border-radius: 6px; background: rgba(255, 255, 255, .16); }
.seat .tag.prince { background: var(--gold); color: var(--gold-ink); }

/* boards */
.boards { grid-area: boards; overflow-y: auto; overflow-x: hidden; padding: 4px 10px 8px; display: flex; flex-direction: column; gap: 8px; -webkit-overflow-scrolling: touch; scrollbar-width: thin; }
.board { border-radius: 16px; background: var(--panel); border: 1.5px solid var(--panel-line); border-left: 5px solid var(--tc); padding: 8px 10px 10px; position: relative; flex: none; --cw: var(--bcw-opp, 30px); }
.board.mine { --cw: var(--bcw-mine, 38px); background: rgba(6, 28, 17, .46); }
.board .bh { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.board .bn { font-weight: 850; font-size: .95rem; }
.board .bs { font-weight: 800; font-variant-numeric: tabular-nums; color: var(--gold); }
.badge { font-size: .7rem; font-weight: 850; padding: 3px 8px; border-radius: 999px; background: rgba(255, 255, 255, .13); letter-spacing: .02em; white-space: nowrap; }
.badge.open { background: rgba(54, 179, 106, .28); color: #c8f5d9; }
.badge.min { background: rgba(240, 166, 58, .25); color: #ffe1ae; }
.req { display: flex; gap: 4px; flex-wrap: wrap; margin-top: 6px; }
.req .rq { font-size: .68rem; font-weight: 800; padding: 3px 7px; border-radius: 8px; border: 1px dashed rgba(255, 255, 255, .3); color: var(--on-felt-dim); display: inline-flex; gap: 3px; align-items: center; }
.req .rq.done { border-style: solid; border-color: var(--good); background: rgba(54, 179, 106, .25); color: #d7f8e3; }
.cols { display: flex; flex-wrap: wrap; gap: 10px 16px; margin-top: 8px; align-items: flex-start; }
.col { position: relative; padding: 3px 4px 4px; border-radius: 10px; border: 1.5px solid transparent; transition: border-color .15s, background .15s; }
.col .ch { display: flex; justify-content: space-between; gap: 6px; font-size: .68rem; font-weight: 800; color: var(--on-felt-dim); margin-bottom: 2px; }
.col .ch b { color: var(--on-felt); }
.col .st { display: flex; height: calc(var(--cw) * 1.4); }
.col .st .card { margin-left: calc(var(--cw) * -0.62); }
.col .st .card:first-child { margin-left: 0; }
.col .drop { position: absolute; inset: 0; border-radius: 10px; background: transparent; }
.col .drop:disabled { pointer-events: none; }
.col.staged { border: 1.5px dashed rgba(244, 194, 74, .7); background: rgba(244, 194, 74, .07); }
.col.staged .ch span { color: var(--gold); font-style: italic; }
.badge.min.staging { background: var(--gold); color: var(--gold-ink); }
.takeback { margin-left: auto; min-height: 32px; padding: 0 12px; border-radius: 999px; background: rgba(255, 255, 255, .92); color: #17492f; font-weight: 850; font-size: .78rem; }
.col.target-ok { border-color: var(--gold); background: rgba(244, 194, 74, .12); }
.col.drag-over, .newbook.drag-over, .pile.drag-over, .book.drag-over { border-color: #fff !important; background: rgba(255, 255, 255, .22) !important; transform: scale(1.04); }
.newbook { min-width: calc(var(--cw) * 1.6); min-height: calc(var(--cw) * 1.4 + 20px); margin-top: 0; border: 2px dashed rgba(255, 255, 255, .38); border-radius: 12px; color: var(--on-felt-dim); font-weight: 800; font-size: .74rem; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px; padding: 4px 8px; transition: all .15s; }
.newbook svg { width: 20px; height: 20px; stroke: currentColor; fill: none; stroke-width: 2.4; stroke-linecap: round; }
.newbook:disabled { opacity: .55; }
.newbook.ready { border-color: var(--gold); color: var(--gold); background: rgba(244, 194, 74, .12); animation: ready 1.4s infinite; }
.books { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 8px; }
.books:empty { display: none; }
.book { position: relative; width: max(48px, calc(var(--cw) * 1.15)); height: max(62px, calc(var(--cw) * 1.5)); border-radius: 9px; padding: 4px 3px; text-align: center; background: linear-gradient(160deg, #fffdf6, #ece4cc); color: #25301f; border: 2px solid #c9a23a; box-shadow: 0 2px 5px rgba(0, 0, 0, .35); display: flex; flex-direction: column; align-items: center; justify-content: center; line-height: 1; transition: transform .15s; }
.book b { font-size: max(1.28rem, calc(var(--cw) * .45)); font-weight: 900; }
.book small { font-size: .5rem; font-weight: 900; letter-spacing: .06em; margin-top: 3px; text-transform: uppercase; }
.book.dirty { background: linear-gradient(160deg, #e5e1d4, #bfb8a3); border-color: #8a8470; }
.book.clean small { color: #0f7a3d; }
.book.dirty small { color: #6a4a12; }
.book .req-b { position: absolute; top: -7px; left: -6px; font-size: .5rem; font-weight: 900; background: var(--gold); color: var(--gold-ink); padding: 2px 4px; border-radius: 5px; letter-spacing: .04em; }
.book .tk { position: absolute; bottom: -6px; right: -6px; font-size: .62rem; font-weight: 900; background: #25301f; color: #fff; padding: 1px 5px; border-radius: 8px; }
.book.tuck-ok { outline: 3px solid var(--gold); animation: ready 1.2s infinite; }
.book.tuck-ok::before { content: "tuck"; position: absolute; top: -9px; right: -4px; font-size: .52rem; font-weight: 900; background: var(--gold); color: var(--gold-ink); padding: 1px 5px; border-radius: 6px; z-index: 1; }
.board.opp .newbook, .board.opp .drop { display: none; }
.board.opp .req { margin-top: 4px; }
.board .empty { color: var(--on-felt-dim); font-size: .8rem; padding: 8px 0 2px; }
.board .bx { display: none; margin-left: auto; font-size: .78rem; font-weight: 800; color: var(--on-felt-dim); font-variant-numeric: tabular-nums; }
.board .bx.turn { color: var(--gold); }
/* tight: my own board still overflows (late in a round on phones): deeper overlap, smaller New book */
.col .ch .short { display: none; }
.boards.tight .board.mine .cols { gap: 6px 6px; }
.boards.tight .board.mine .col { padding: 3px 2px 4px; }
.boards.tight .board.mine .col .ch .long { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
.boards.tight .board.mine .col .ch .short { display: inline; }
.boards.tight .board.mine .col .st .card { margin-left: calc(var(--cw) * -0.78); }
.boards.tight .board.mine .col .st .card:first-child { margin-left: 0; }
.boards.tight .board.mine .req { flex-wrap: nowrap; overflow: hidden; }
.boards.tight .newbook { position: relative; min-width: 40px; min-height: calc(var(--cw) * 1.4 + 18px); padding: 2px 4px; }
.boards.tight .newbook span:last-child { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); } /* "+" only; the name stays for screen readers */
/* compact: other teams' columns as count chips when the boards don't fit (phones) */
.boards.compact .board.opp { padding: 6px 10px 8px; }
.boards.compact .board.opp .cols { gap: 4px; margin-top: 6px; }
.boards.compact .board.opp .col { padding: 3px 8px; border: 1px solid var(--panel-line); background: rgba(255, 255, 255, .07); border-radius: 8px; }
.boards.compact .board.opp .col .ch { margin: 0; gap: 5px; font-size: .74rem; }
.boards.compact .board.opp .col .st { display: none; }
.boards.compact .board.opp .books { margin-top: 6px; }
/* finished books as one-line chips ("K dirty +3"): the 48x62 tiles wrapped to two rows per board late in a round */
.boards.compact .board.opp .books, .boards.tight .board.mine .books { gap: 9px 5px; margin-top: 9px; }
.boards.compact .board.opp .book, .boards.tight .board.mine .book { width: auto; height: 28px; flex-direction: row; gap: 3px; padding: 2px 7px; border-radius: 7px; }
.boards.tight .board.mine .book { height: 34px; padding: 2px 9px; }
.boards.compact .board.opp .books { gap: 8px 4px; }
.boards.compact .board.opp .book { height: 24px; min-width: 24px; padding: 1px 5px; border-width: 1.5px; }
.boards.compact .board.opp .book b { font-size: .88rem; }
.boards.compact .board.opp .book b, .boards.tight .board.mine .book b { font-size: 1rem; }
.boards.compact .board.opp .book small, .boards.tight .board.mine .book small { display: none; } /* dirty books keep their grey tile; the label stays in aria-label */
.boards.compact .board.opp .book, .boards.tight .board.mine .book { min-width: 30px; justify-content: center; }
.boards.compact .board.opp .book .req-b, .boards.tight .board.mine .book .req-b { top: -8px; left: -4px; font-size: .46rem; padding: 1px 3px; }
.boards.compact .board.opp .book .tk, .boards.tight .board.mine .book .tk { position: static; margin-left: 2px; font-size: .58rem; }

/* mid: piles + guidance */
.mid { grid-area: mid; display: flex; gap: 12px; align-items: center; padding: 10px 12px 18px; }
.piles { display: flex; gap: 22px; flex: none; padding-top: 6px; }
.pile { position: relative; --cw: 54px; width: calc(var(--cw) + 6px); height: calc(var(--cw) * 1.4 + 6px); padding: 0; border-radius: 10px; border: 2px solid transparent; transition: transform .15s, border-color .2s, box-shadow .2s; }
.pile .card { position: absolute; left: 3px; top: 3px; }
.pile .depth { position: absolute; left: 3px; top: 3px; width: var(--cw); height: calc(var(--cw) * 1.4); border-radius: calc(var(--cw) * .09); background: var(--back-1); border: 1.5px solid #0c2346; }
.pile .count { position: absolute; right: -8px; top: -8px; min-width: 24px; height: 24px; padding: 0 6px; border-radius: 12px; background: #0b1c14; color: #fff; font-size: .78rem; font-weight: 850; display: grid; place-items: center; border: 1.5px solid rgba(255, 255, 255, .5); font-variant-numeric: tabular-nums; z-index: 3; }
.pile .lbl { position: absolute; left: -6px; right: -6px; top: calc(100% + 4px); text-align: center; font-size: .62rem; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; color: var(--on-felt-dim); white-space: nowrap; }
.pile.can { border-color: var(--gold); box-shadow: 0 0 0 3px rgba(244, 194, 74, .3); animation: ready 1.4s infinite; }
.pile.empty-pile { border: 2px dashed rgba(255, 255, 255, .35); }
.pile .frozen { position: absolute; inset: 3px; z-index: 2; border-radius: 8px; display: grid; place-items: center; background: rgba(150, 200, 255, .45); font-size: .6rem; font-weight: 900; letter-spacing: .05em; color: #082033; text-align: center; backdrop-filter: blur(1px); }
.say { flex: 1; min-width: 0; margin-top: -4px; }
.guidance { font-size: 1.04rem; font-weight: 800; line-height: 1.25; text-shadow: 0 1px 2px rgba(0, 0, 0, .35); }
.plan { margin-top: 4px; font-size: .86rem; line-height: 1.3; color: var(--on-felt-dim); min-height: 1.3em; }
.plan[data-tone="ok"] { color: #b6f2cd; }
.plan[data-tone="warn"] { color: #ffd593; }
.plan .rule-chip { margin-left: 6px; }
.plan:empty::before { content: " "; white-space: pre; }
.rule-chip { font-size: .66rem; font-weight: 850; letter-spacing: .03em; padding: 3px 8px; border-radius: 999px; background: rgba(255, 255, 255, .2); color: inherit; border: 1px solid rgba(255, 255, 255, .3); min-height: 24px; }
.rule-chip:hover { background: rgba(255, 255, 255, .3); }

/* action bar */
.actions { grid-area: actions; padding: 4px 10px 6px; }
.actions .arow { display: flex; gap: 6px; }
.actions .arow[hidden] { display: none; }
.act { flex: 1 1 0; min-width: 0; min-height: 54px; border-radius: 14px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 1px; padding: 4px 4px; font-weight: 800; font-size: .86rem; line-height: 1.05; background: rgba(255, 255, 255, .13); border: 1.5px solid rgba(255, 255, 255, .24); color: var(--on-felt); transition: transform .12s, opacity .2s, background .2s; position: relative; }
.act small { font-size: .62rem; font-weight: 650; opacity: .8; }
.act:disabled { opacity: .36; }
.act.blocked { opacity: .5; border-style: dashed; }
.act:active:not(:disabled) { transform: scale(.96); }
.act.primary { flex: 1.5 1 0; background: linear-gradient(180deg, var(--gold), var(--gold-2)); color: var(--gold-ink); border-color: #fbe29a; box-shadow: 0 3px 0 #a56f0b, 0 6px 14px rgba(0, 0, 0, .3); animation: nudge 2.4s infinite; }
.act.primary small { opacity: .75; }
.act.primary:disabled { animation: none; }
.act.go { background: rgba(54, 179, 106, .3); border-color: rgba(54, 179, 106, .8); }

/* hand */
.handwrap { grid-area: hand; padding: 4px 8px calc(var(--safe-b) + 6px); position: relative; background: linear-gradient(180deg, transparent, rgba(0, 0, 0, .28)); }
.handmeta { display: flex; align-items: center; gap: 8px; padding: 0 4px 2px; font-size: .74rem; color: var(--on-felt-dim); font-weight: 700; min-height: 22px; }
.handmeta .sp { flex: 1; }
.handmeta .piles-mini { display: inline-flex; gap: 6px; }
.handmeta .pm { padding: 2px 8px; border-radius: 999px; background: rgba(255, 255, 255, .12); font-weight: 800; }
.handmeta .pm.avail { background: var(--gold); color: var(--gold-ink); }
.handmeta .pm.lock::before { content: "\1F512\00a0"; font-size: .64rem; }
.handmeta button { min-height: 28px; padding: 0 10px; border-radius: 999px; background: rgba(255, 255, 255, .16); font-weight: 800; font-size: .74rem; color: var(--on-felt); }
.hand { position: relative; width: 100%; touch-action: none; user-select: none; -webkit-user-select: none; -webkit-touch-callout: none; }
.hand .card { position: absolute; left: 0; top: 0; transition: transform .22s cubic-bezier(.2, .8, .3, 1), filter .2s; will-change: transform; touch-action: none; }
.hand .card.sel { filter: drop-shadow(0 0 7px rgba(244, 194, 74, .95)); }
.hand .card.sel::after { content: "\2713"; position: absolute; right: 3px; top: 3px; width: 20px; height: 20px; border-radius: 50%; background: var(--gold); color: var(--gold-ink); font-weight: 900; font-size: 13px; display: grid; place-items: center; line-height: 1; z-index: 2; border: 1.5px solid #fff; }
.hand .card.sel svg .face-bg { stroke: var(--gold-2); stroke-width: 3.2; }
.hand .card.drag-src { opacity: .35; }
.hand .card:focus-visible { outline: 3px solid #fff; outline-offset: 1px; }
.hand.dim .card { filter: saturate(.8) brightness(.94); }
.ghost-card { position: fixed; left: 0; top: 0; z-index: 400; pointer-events: none; will-change: transform; }
.ghost-card .card { position: absolute; left: 0; top: 0; }
.ghost-badge { position: absolute; right: -10px; top: -10px; min-width: 26px; height: 26px; border-radius: 13px; background: var(--gold); color: var(--gold-ink); font-weight: 900; display: grid; place-items: center; z-index: 5; border: 2px solid #fff; }

/* flights + celebrations */
.fx { position: fixed; inset: 0; pointer-events: none; z-index: 300; overflow: hidden; }
.fx .card { position: fixed; left: 0; top: 0; will-change: transform; }
.banner { position: absolute; left: 50%; top: 30%; transform: translate(-50%, 0); padding: 12px 22px; border-radius: 18px; background: linear-gradient(180deg, #fff4cf, #f4c24a); color: var(--gold-ink); font-weight: 900; font-size: 1.35rem; text-align: center; box-shadow: 0 10px 30px rgba(0, 0, 0, .45); white-space: nowrap; max-width: 92vw; overflow: hidden; text-overflow: ellipsis; }
.banner small { display: block; font-size: .78rem; font-weight: 750; opacity: .8; }
.banner.soft { background: rgba(8, 30, 19, .88); color: var(--on-felt); border: 1px solid var(--panel-line); font-size: 1rem; padding: 9px 18px; top: 24%; }
.spark { position: fixed; width: 9px; height: 9px; border-radius: 2px; will-change: transform, opacity; }
.turn-flash { position: absolute; inset: 0; pointer-events: none; z-index: 50; border-radius: 0; box-shadow: inset 0 0 0 0 rgba(244, 194, 74, 0); }

/* toasts */
#toasts { position: fixed; left: 0; right: 0; top: calc(var(--safe-t) + 54px); display: flex; flex-direction: column; align-items: center; gap: 8px; z-index: 900; pointer-events: none; padding: 0 12px; }
.toast { pointer-events: auto; max-width: 560px; width: 100%; padding: 12px 14px; border-radius: 14px; background: #fff7f5; color: #4a120c; border: 2px solid var(--bad); box-shadow: 0 10px 28px rgba(0, 0, 0, .45); font-weight: 650; display: flex; gap: 10px; align-items: center; justify-content: space-between; animation: toastIn .22s cubic-bezier(.2, .9, .3, 1.2); }
.toast[data-kind="info"] { background: #f0f7ff; color: #11304f; border-color: #4a8ad9; }
.toast[data-kind="good"] { background: #eefaf2; color: #0d3a1f; border-color: var(--good); }
.toast.out { opacity: 0; transform: translateY(-8px); transition: all .22s; }
.toast .rule-chip { background: rgba(0, 0, 0, .08); border-color: rgba(0, 0, 0, .25); flex: none; color: inherit; }

/* overlays / sheets */
.overlay { position: fixed; inset: 0; z-index: 500; display: flex; align-items: flex-end; justify-content: center; background: rgba(4, 16, 10, .62); backdrop-filter: blur(3px); animation: fade .2s; }
.overlay.center { align-items: center; }
.sheet { width: 100%; max-width: 640px; max-height: 92dvh; overflow-y: auto; background: var(--surface); color: var(--ink); border-radius: 22px 22px 0 0; padding: 18px 18px calc(var(--safe-b) + 18px); box-shadow: 0 -10px 40px rgba(0, 0, 0, .4); animation: sheetUp .28s cubic-bezier(.2, .9, .3, 1); }
.overlay.center .sheet { border-radius: 22px; margin: 16px; width: calc(100% - 32px); }
.sheet h2 { font-size: 1.35rem; font-weight: 850; margin-bottom: 10px; }
.sheet .btn.light { background: var(--surface-2); }
.sheet .btn.primary { color: var(--gold-ink); }
.sheet-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 8px; }
.sheet-head h2 { margin: 0; }
.close-x { width: 44px; height: 44px; border-radius: 50%; background: var(--surface-2); display: grid; place-items: center; font-size: 1.3rem; font-weight: 700; color: var(--ink); }
.set-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 12px 0; border-bottom: 1px solid var(--line); min-height: 56px; }
.set-row:last-child { border-bottom: 0; }
.set-row b { display: block; }
.set-row small { color: var(--muted); }
.seg { display: inline-flex; border-radius: 12px; background: var(--surface-2); padding: 3px; gap: 2px; }
.seg button { min-height: 40px; padding: 0 12px; border-radius: 9px; font-weight: 750; font-size: .88rem; color: var(--ink); }
.seg button[aria-pressed="true"] { background: var(--ink); color: var(--surface); }
.switch { width: 58px; height: 34px; border-radius: 17px; background: var(--line); position: relative; transition: background .2s; flex: none; }
.switch::after { content: ""; position: absolute; top: 3px; left: 3px; width: 28px; height: 28px; border-radius: 50%; background: #fff; transition: transform .2s; box-shadow: 0 2px 4px rgba(0, 0, 0, .3); }
.switch[aria-checked="true"] { background: var(--good); }
.switch[aria-checked="true"]::after { transform: translateX(24px); }
/* partner's go-out question: docked in the action bar, the table stays visible */
.goout { background: var(--surface); color: var(--ink); border-radius: 16px; padding: 8px 10px 10px; border: 2px solid var(--gold); box-shadow: 0 6px 18px rgba(0, 0, 0, .35); animation: fade .2s; }
.goout p { margin: 0; }
.goout .goout-q { font-weight: 800; font-size: 1.08rem; }
.goout .goout-d { color: var(--muted); font-size: .86rem; margin: 2px 0 8px; }
.goout .row { display: flex; gap: 8px; }
.goout .row .btn { flex: 1 1 0; min-height: 54px; font-size: 1.1rem; padding: 0 8px; }
.btn.yes { background: var(--good); color: #052a14; border-color: #8fe3b2; }
.btn.no { background: var(--surface-2); color: var(--ink); border-color: var(--line); }

/* summary */
.sum { position: fixed; inset: 0; z-index: 450; overflow-y: auto; padding: calc(var(--safe-t) + 14px) 14px calc(var(--safe-b) + 18px); animation: fade .3s; }
.sum .wrap { max-width: 760px; margin: 0 auto; position: relative; }
.sum h1 { font-size: 1.7rem; font-weight: 900; text-align: center; letter-spacing: -.01em; }
.sum .sub { text-align: center; color: var(--on-felt-dim); margin: 4px 0 14px; }
.sumgrid { display: grid; gap: 10px; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); }
.sumcard { background: var(--panel); border: 1.5px solid var(--panel-line); border-top: 5px solid var(--tc); border-radius: 16px; padding: 12px 14px; }
.sumcard h3 { font-size: 1.05rem; font-weight: 850; display: flex; justify-content: space-between; gap: 8px; }
.sumcard.winner { border-color: var(--gold); box-shadow: 0 0 24px rgba(244, 194, 74, .3); }
.step { padding: 8px 0; border-bottom: 1px dashed rgba(255, 255, 255, .16); font-variant-numeric: tabular-nums; opacity: 0; transform: translateY(6px); }
.step.in { opacity: 1; transform: none; transition: all .35s; }
.step-head { display: flex; justify-content: space-between; gap: 10px; align-items: baseline; }
.step-head span:first-child { font-weight: 750; font-size: 1.02rem; }
.step small { display: block; font-weight: 500; font-size: .8rem; color: var(--on-felt-dim); }
.step b { font-size: 1.15rem; white-space: nowrap; text-align: right; min-width: 6ch; }
.step b.pos { color: #8ef0b3; } .step b.neg { color: #ffa99e; }
.booklist { list-style: none; margin: 6px 0 0; padding: 0 0 0 12px; border-left: 2px solid rgba(255, 255, 255, .18); }
.booklist li { display: flex; justify-content: space-between; gap: 10px; padding: 3px 0; font-size: .92rem; }
.booklist li small { display: inline; font-size: .85rem; white-space: nowrap; color: inherit; font-weight: 700; }
.booklist .num { white-space: nowrap; color: var(--on-felt-dim); font-weight: 650; }
.step.total { border-bottom: 0; border-top: 2px solid rgba(255, 255, 255, .4); margin-top: 4px; padding-top: 10px; }
.step.total b { font-size: 1.4rem; }
.step-head.game { margin-top: 4px; }
.step-head.game span:first-child { font-weight: 650; color: var(--on-felt-dim); }
.standings { margin: 0 0 12px; }
.stand-row { display: flex; gap: 8px; }
.stand { flex: 1 1 0; min-width: 0; background: var(--panel); border: 1.5px solid var(--panel-line); border-top: 5px solid var(--tc); border-radius: 14px; padding: 8px 10px; text-align: center; font-variant-numeric: tabular-nums; }
.stand.lead { border-color: var(--gold); }
.stand-name { display: block; font-weight: 750; font-size: .9rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.stand-total { display: block; font-size: 1.6rem; font-weight: 900; line-height: 1.15; }
.stand small { display: block; font-size: .78rem; color: var(--on-felt-dim); }
.stand-lead { text-align: center; font-weight: 750; margin: 8px 0 0; font-size: 1.05rem; }
.stand-margin { display: inline-block; margin-top: 4px; padding: 1px 8px; border-radius: 999px; background: var(--gold); color: var(--gold-ink); font-size: .78rem; font-weight: 800; }
.stand-scale { text-align: center; margin: 4px auto 0; max-width: 46em; font-size: .85rem; color: var(--on-felt-dim); }
.sum-rules .rule-chip { font-size: .85rem; min-height: 36px; padding: 6px 12px; }
.sum-rules { text-align: center; color: var(--on-felt-dim); margin: 12px 0; display: flex; flex-wrap: wrap; gap: 6px; justify-content: center; align-items: center; }
.sum-actions { margin: 16px auto 0; max-width: 420px; display: flex; flex-direction: column; gap: 10px; }
table.sheetx { width: 100%; border-collapse: collapse; font-variant-numeric: tabular-nums; font-size: .95rem; }
table.sheetx th, table.sheetx td { padding: 8px 6px; text-align: right; border-bottom: 1px solid rgba(255, 255, 255, .16); }
table.sheetx th:first-child, table.sheetx td:first-child { text-align: left; }
table.sheetx tfoot td { font-weight: 900; font-size: 1.1rem; border-bottom: 0; border-top: 2px solid rgba(255, 255, 255, .4); }
table.sheetx th { font-size: .74rem; text-transform: uppercase; letter-spacing: .06em; color: var(--on-felt-dim); }
.sheet table.sheetx th, .sheet table.sheetx td { border-color: var(--line); }
.sheet table.sheetx th { color: var(--muted); }
.scoresheet-box { margin-top: 14px; padding: 10px 12px; border-radius: 16px; background: var(--panel); border: 1.5px solid var(--panel-line); }
.sheet .scoresheet-box { background: var(--surface-2); border-color: var(--line); }
.trophy { font-size: 3.2rem; text-align: center; }

/* rules reference */
.rules-ref { max-width: 760px; margin: 0 auto; }
.rules-ref h2 { margin-top: 20px; font-size: 1.15rem; }
.rules-ref .rr { padding: 10px 0; border-bottom: 1px solid var(--line); }
.rules-ref .rid { font-size: .7rem; font-weight: 850; letter-spacing: .05em; color: var(--muted); }
.rules-ref .rr.hl { background: rgba(244, 194, 74, .25); border-radius: 10px; padding: 10px; }
.rules-ref .quick li { margin: 6px 0; }
.rules-ref table { width: 100%; border-collapse: collapse; margin: 6px 0; font-variant-numeric: tabular-nums; }
.rules-ref td, .rules-ref th { text-align: left; padding: 6px 8px; border-bottom: 1px solid var(--line); font-size: .92rem; }
.rules-ref th { font-size: .74rem; color: var(--muted); text-transform: uppercase; letter-spacing: .05em; }
.page-light { position: absolute; inset: 0; background: var(--bg); color: var(--ink); overflow-y: auto; padding: calc(var(--safe-t) + 12px) 16px calc(var(--safe-b) + 24px); }
.page-light .top { display: flex; align-items: center; gap: 10px; margin-bottom: 8px; }
.page-light .top h1 { font-size: 1.4rem; font-weight: 850; flex: 1; }
.page-light .btn.light { background: var(--surface); }
.search { width: 100%; min-height: 48px; border-radius: 12px; border: 1.5px solid var(--line); background: var(--surface); color: var(--ink); padding: 0 14px; font: inherit; }
.conn { position: fixed; left: 50%; bottom: calc(var(--safe-b) + 8px); transform: translateX(-50%); z-index: 800; padding: 8px 16px; border-radius: 999px; background: #3a2b05; color: #ffe6a8; font-weight: 750; font-size: .88rem; box-shadow: var(--shadow); }
.log { display: none; }
.side { display: contents; }
.dim-note { color: var(--on-felt-dim); font-size: .8rem; }

/* ---------- animation ---------- */
@keyframes pulse { 0%, 100% { transform: scale(1); opacity: 1; } 50% { transform: scale(1.5); opacity: .5; } }
@keyframes ready { 0%, 100% { box-shadow: 0 0 0 0 rgba(244, 194, 74, .0); } 50% { box-shadow: 0 0 0 5px rgba(244, 194, 74, .35); } }
@keyframes nudge { 0%, 88%, 100% { transform: none; } 92% { transform: translateY(-3px); } 96% { transform: translateY(0); } }
@keyframes fade { from { opacity: 0; } to { opacity: 1; } }
@keyframes sheetUp { from { transform: translateY(40px); opacity: 0; } to { transform: none; opacity: 1; } }
@keyframes toastIn { from { transform: translateY(-14px) scale(.96); opacity: 0; } to { transform: none; opacity: 1; } }
@keyframes pop { 0% { transform: scale(.4); opacity: 0; } 60% { transform: scale(1.12); opacity: 1; } 100% { transform: scale(1); } }
.pop { animation: pop .4s cubic-bezier(.2, .9, .3, 1.2) both; }
.enter { animation: pop .32s ease-out both; }
[data-motion="off"] *, [data-motion="off"] *::before, [data-motion="off"] *::after { animation-duration: 0.001ms !important; animation-delay: 0ms !important; animation-iteration-count: 1 !important; transition-duration: 0.001ms !important; }
[data-motion="off"] .act.primary, [data-motion="off"] .newbook.ready, [data-motion="off"] .pile.can { animation: none !important; }

/* ---------- responsive ---------- */
@media (max-width: 600px) and (orientation: portrait) {
  .mid { padding: 6px 10px 10px; gap: 10px; }
  .piles { gap: 16px; }
  .guidance { font-size: .96rem; line-height: 1.2; }
  .plan { font-size: .8rem; line-height: 1.25; margin-top: 3px; }
  .seat { min-height: 40px; padding: 4px 8px 5px; }
  /* 2 players: the seat row only repeats the boards and the top bar, so drop it and show the opponent's count on their board */
  .table[data-players="2"] .seatsarea { display: none; }
  .table[data-players="2"] .board .bx { display: inline; }
}
@media (max-height: 740px) and (max-width: 600px) {
  .seats { grid-template-columns: repeat(auto-fit, minmax(76px, 1fr)); }
  .seat { min-height: 38px; }
  .pile { --cw: 46px; }
  .act { min-height: 48px; }
  .fan { height: 110px; }
}
@media (min-width: 700px) {
  .seat .pips { display: inline-flex; }
  .board.mine { flex-grow: 1; }
  .pile { --cw: 70px; } .guidance { font-size: 1.2rem; } .plan { font-size: .98rem; }
  .act { min-height: 62px; font-size: 1rem; }
  .seats { padding: 2px 16px 8px; gap: 10px; } .seat { padding: 8px 12px; } .seat .nm { font-size: 1rem; } .seat .sub { font-size: .82rem; }
  .boards { padding: 4px 16px 10px; } .mid, .actions { padding-left: 16px; padding-right: 16px; }
  .col .ch { font-size: .8rem; }
  .topbar { padding: 8px 16px; }
}
@media (min-width: 1000px) and (min-height: 640px) and (orientation: landscape) {
  .table { grid-template-columns: 300px minmax(0, 1fr); grid-template-rows: auto minmax(0, 1fr) auto auto auto;
    grid-template-areas: "top top" "seats boards" "seats mid" "actions actions" "hand hand"; }
  .seatsarea { overflow: hidden; padding-right: 0; }
  .seats { display: flex; flex-direction: column; justify-content: flex-start; padding: 4px 6px 4px 16px; flex: none; }
  .seat { flex: none; }
  .log { display: block; margin: 6px 6px 8px 16px; flex: 1; min-height: 0; overflow-y: auto; font-size: .95rem; line-height: 1.3; color: rgba(255, 255, 255, .82); padding: 4px 4px 0; }
  .log p { padding: 3px 0; border-bottom: 1px solid rgba(255, 255, 255, .08); }
  .log p b { color: var(--on-felt); }
  .boards { flex-direction: row; flex-wrap: wrap; align-content: flex-start; gap: 14px; }
  .board .bn { font-size: 1.1rem; } .req .rq { font-size: .78rem; padding: 4px 9px; }
  .board { flex: 1 1 420px; }
  .board.mine { flex-basis: 100%; order: 2; }
  .board.opp { order: 1; }
  .mid { justify-content: center; }
  .mid .say { max-width: 560px; }
  .actions { max-width: 920px; margin: 0 auto; width: 100%; }
}
@media (orientation: landscape) and (max-height: 520px) {
  .table { grid-template-columns: 140px minmax(0, 1fr) 300px; grid-template-rows: auto minmax(0, 1fr) auto;
    grid-template-areas: "top top top" "seats boards side" "hand hand hand"; }
  .seatsarea { overflow-y: auto; } .seats { display: flex; flex-direction: column; padding: 2px 6px; gap: 4px; } .seat .sub { display: none; } .seat { min-height: 34px; padding: 3px 8px; }
  .side { display: flex; flex-direction: column; grid-area: side; min-height: 0; overflow-y: auto; justify-content: center; gap: 2px; }
  .mid { flex-direction: row; align-items: center; padding: 8px 8px 2px; gap: 10px; } .piles { gap: 8px; flex: none; } .pile { --cw: 36px; } .pile .lbl { display: none; } .say { margin-top: 0; flex: 1; min-width: 0; } .pile .count { right: -6px; top: -6px; min-width: 20px; height: 20px; font-size: .66rem; }
  .pile { --cw: 34px; }
  .actions { padding: 2px 8px; } .actions .arow { flex-wrap: wrap; } .act { min-height: 38px; flex: 1 1 28%; font-size: .78rem; } .act.primary { flex-basis: 40%; }
  .act small { display: none; }
  .boards { padding: 2px 8px; }
  .guidance { font-size: .8rem; line-height: 1.15; } .plan { font-size: .68rem; margin-top: 2px; line-height: 1.15; } .plan .rule-chip { min-height: 20px; padding: 1px 6px; }
  .handmeta { display: none; } .handwrap { padding-top: 2px; padding-bottom: 4px; }
  .topbar { padding: 2px 8px; } .topbar .icon-btn { width: 38px; height: 38px; }
  .score-pill { min-height: 38px; }
}
