/* Hub palette so this reads as a sibling of the other game sites. */
:root {
  --bg: #0f1117; --bg-soft: #161923; --card: #1a1e2b; --card-hover: #212636;
  --line: #2a3042; --text: #e8eaf0; --muted: #969db4;
  --accent: #6ea8fe; --accent-warm: #f0b354;
  --good: #6ee7a8; --bad: #f08c8c; --mid: #f0d36e;
  --radius: 12px; --head: 48px; --tabh: 58px;
}
[hidden] { display: none !important; }
* { box-sizing: border-box; }
html, body { height: 100%; }
body {
  margin: 0; background: var(--bg); color: var(--text); overflow: hidden;
  font: 15px/1.45 system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  -webkit-font-smoothing: antialiased; -webkit-tap-highlight-color: transparent; touch-action: manipulation;
}
button, input, select { font: inherit; color: inherit; }
input, select { font-size: 16px; }
button { cursor: pointer; }
#app { height: 100vh; height: 100dvh; display: grid; grid-template-rows: var(--head) 1fr auto; }

/* ---------- header + tabs ---------- */
.top { display: flex; align-items: center; gap: 14px; padding: 0 14px; border-bottom: 1px solid var(--line); min-width: 0; }
.brand { display: flex; align-items: center; gap: 8px; font-weight: 750; font-size: 17px; letter-spacing: .02em; }
.brand svg { width: 24px; height: 24px; }
.ver { margin-left: auto; color: var(--muted); font-size: 11px; }
.tabs-top { display: none; gap: 4px; }
.tabs-top button { background: none; border: 0; padding: 8px 14px; border-radius: 9px; color: var(--muted); font-weight: 600; display: flex; align-items: center; gap: 6px; }
.tabs-top button svg { display: none; }
.tabs-top button[aria-current="page"] { color: var(--text); background: var(--card); }
.tabs-bottom { display: grid; grid-template-columns: repeat(3, 1fr); border-top: 1px solid var(--line); background: var(--bg-soft); padding-bottom: env(safe-area-inset-bottom); }
.tabs-bottom button { background: none; border: 0; height: var(--tabh); display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px; color: var(--muted); font-size: 11px; font-weight: 600; }
.tabs-bottom button svg { width: 22px; height: 22px; }
.tabs-bottom button[aria-current="page"] { color: var(--accent-warm); }
.tabs-bottom button:active { transform: scale(.96); }

/* ---------- main: wood table, the board in the middle ---------- */
main { min-height: 0; overflow: hidden; position: relative; }
.play { height: 100%; display: flex; flex-direction: column; min-height: 0; }
.board-col { position: relative; flex: none; padding: 6px 8px 6px; }
.board-wrap { position: relative; width: 100%; aspect-ratio: 448 / 388; max-height: calc(100dvh - var(--head) - var(--tabh) - 150px); margin: 0 auto; }
body.at-table .board-wrap { max-height: calc(100dvh - var(--head) - var(--tabh) - 268px); }
body.at-table.game-over .board-wrap { max-height: calc(100dvh - var(--head) - var(--tabh) - 330px); }
#board { width: 100%; height: 100%; display: block; user-select: none; -webkit-user-select: none; touch-action: none; overflow: visible; }
.zoom-bar { position: absolute; left: 2px; top: 2px; display: grid; grid-template-columns: 34px 34px; grid-template-areas: "in fit" "out ."; gap: 5px; pointer-events: none; }
.zoom-bar .zoom { pointer-events: auto; }
#zoomIn { grid-area: in; } #zoomOut { grid-area: out; } #fitBtn { grid-area: fit; }
.zoom { width: 34px; height: 34px; border-radius: 8px; border: 1px solid #a8864a; background: linear-gradient(#4b3423, #2a1b10); color: #f1dfb4; display: grid; place-items: center; padding: 0; opacity: .88; box-shadow: inset 0 1px 0 rgba(255,235,190,.18), 0 2px 4px rgba(0,0,0,.5); }
.zoom svg { width: 17px; height: 17px; }
.zoom.fit { color: #bfa77a; opacity: .5; transition: color .2s, border-color .2s, opacity .2s; }
.zoom.fit.lit { color: #ffd98a; border-color: #e0b24f; opacity: .95; }
.panel-col { flex: 1; min-height: 0; overflow-y: auto; overscroll-behavior: contain; padding: 4px 10px 8px; scrollbar-width: thin; }
.mine { flex: none; padding: 6px 8px calc(6px); border-top: 1px solid rgba(0,0,0,.35); background: linear-gradient(rgba(10,8,6,.35), rgba(10,8,6,.55)); }
.tracker { position: absolute; inset: 0; }
.tracker iframe { width: 100%; height: 100%; border: 0; display: block; background: #fff7ed; }
.settings-view { position: absolute; inset: 0; overflow-y: auto; padding: 12px; }
.settings { max-width: 560px; margin: 0 auto; display: flex; flex-direction: column; gap: 10px; }

@media (min-width: 900px) {
  :root { --head: 56px; }
  #app { grid-template-rows: var(--head) 1fr; }
  .tabs-top { display: flex; }
  .tabs-bottom { display: none; }
  .play { display: grid; grid-template-columns: minmax(0, 1fr) 350px; grid-template-rows: auto minmax(0, 1fr) auto; grid-template-areas: "seats panel" "board panel" "mine panel"; padding: 8px 12px 0; column-gap: 14px; }
  .seats { grid-area: seats; }
  .board-col { grid-area: board; min-width: 0; min-height: 0; padding: 6px; container-type: size; display: grid; place-items: center; }
  .board-wrap, body.at-table .board-wrap { width: min(100cqw, 100cqh * 448 / 388); height: auto; max-height: none; }
  .mine { grid-area: mine; border-top: 0; background: none; padding: 4px 0 12px; display: flex; gap: 12px; align-items: center; justify-content: center; }
  .panel-col { grid-area: panel; padding: 6px 2px 14px; }
}

/* ---------- board art ---------- */
#board .frame { fill: #6b4a2b; stroke: #3a2614; stroke-width: 10; stroke-linejoin: round; filter: drop-shadow(0 6px 8px rgba(0,0,0,.55)); }
#board .hedge { stroke: #e9dcb4; stroke-width: 2.2; stroke-linejoin: round; }
#board .pier { stroke: #8a6a42; stroke-width: 3.2; stroke-linecap: round; }
#board .ptok { fill: #f3e7c9; stroke: #6b4a2b; stroke-width: 2.4; }
#board .ptxt { font: 800 13.5px system-ui, sans-serif; fill: #3a2614; text-anchor: middle; }
#board .tokc { fill: #f3e7c9; stroke: #9b8457; stroke-width: 1.4; filter: drop-shadow(0 1px 1.5px rgba(0,0,0,.45)); }
#board .tokn { font: 800 16.5px Georgia, "Times New Roman", serif; fill: #22190f; text-anchor: middle; }
#board .tok .pips circle { fill: #22190f; }
#board .tok.red .tokn { fill: #b8321f; }
#board .tok.red .pips circle { fill: #b8321f; }
#board .tok.hit-num .tokc { animation: numhit 1.2s ease-out; }
@keyframes numhit { 0%, 60% { fill: #ffe79a; stroke: #f0b354; stroke-width: 4; } }
.fx-still #board .tok.hit-num .tokc { animation: none; }
#board .road-u { stroke: #15110d; stroke-width: 9; stroke-linecap: round; }
#board .road { stroke-width: 6; stroke-linecap: round; }
#board .bld { stroke: #15110d; stroke-width: 1.8; stroke-linejoin: round; filter: drop-shadow(0 1.5px 1.5px rgba(0,0,0,.5)); }
#board .robber { pointer-events: none; }
#board .hl-hex { fill: rgba(255,240,180,.08); stroke: #ffe08a; stroke-width: 3; stroke-dasharray: 7 5; cursor: pointer; }
#board .hl-hex:hover { fill: rgba(255,240,180,.22); }
#board .hl-edge { stroke-width: 5; stroke-dasharray: 5 5; stroke-linecap: round; opacity: .95; pointer-events: none; animation: march .7s linear infinite; }
@keyframes march { to { stroke-dashoffset: -10; } }
#board .hit-edge { stroke: transparent; stroke-width: 17; cursor: pointer; }
#board .hl-c { fill: rgba(255,255,255,.92); stroke-width: 3; }
#board .hl-t { font: 800 13.5px system-ui, sans-serif; fill: #1b1410; text-anchor: middle; pointer-events: none; }
#board .hl-city { fill: none; stroke: #fff; stroke-width: 3; stroke-dasharray: 4 3; animation: march .7s linear infinite; }
#board .hit { fill: transparent; cursor: pointer; }
#board .hl-v:hover .hl-c { fill: #fff6c8; }
.fx-still #board .hl-edge, .fx-still #board .hl-city { animation: none; }
.fly-card { position: fixed; width: 18px; height: 24px; border-radius: 3px; border: 1.5px solid #f3e7c9; box-shadow: 0 2px 5px rgba(0,0,0,.5); z-index: 60; pointer-events: none; }

/* ---------- other players ---------- */
.seats { display: flex; gap: 6px; padding: 6px 8px 0; flex: none; }
.opp { flex: 1; min-width: 0; background: rgba(15,17,23,.82); border: 1px solid var(--line); border-top: 3px solid var(--pc); border-radius: 9px; padding: 1px 7px 2px; line-height: 1.3; transition: box-shadow .2s, border-color .2s; }
.opp.on { box-shadow: 0 0 0 2px var(--pc), 0 0 12px rgba(255,220,140,.25); }
.opp-n { display: flex; align-items: center; gap: 5px; font-size: 13px; font-weight: 700; min-width: 0; }
.opp-n .nm { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pc { width: 10px; height: 10px; border-radius: 50%; background: var(--pc); flex: none; display: inline-block; box-shadow: 0 0 0 1px rgba(0,0,0,.5); }
.lv { font-size: 10.5px; color: var(--muted); border: 1px solid var(--line); border-radius: 5px; padding: 0 4px; font-weight: 700; }
.opp-s { display: flex; align-items: center; gap: 8px; font-size: 12.5px; color: var(--muted); font-variant-numeric: tabular-nums; flex-wrap: nowrap; overflow: hidden; }
.opp-s .vp { font-size: 15px; color: var(--text); }
.ct { display: inline-flex; align-items: center; gap: 2px; }
.ic-card, .ic-dev { width: 9px; height: 12px; border-radius: 2px; display: inline-block; background: #e9dcb4; box-shadow: 1.5px -1.5px 0 #a99a6c; }
.ic-dev { background: #c9b6e8; box-shadow: 1.5px -1.5px 0 #7f6aa5; }
.aw { font-size: 10px; font-weight: 800; color: #1d1405; background: var(--accent-warm); border-radius: 4px; padding: 0 3px; }

/* ---------- my hand ---------- */
.hand { display: flex; gap: 5px; align-items: stretch; }
.rc { flex: 1; min-width: 0; max-width: 64px; height: 50px; border-radius: 6px; background: linear-gradient(160deg, color-mix(in srgb, var(--rc) 85%, #fff), var(--rc)); border: 2px solid #f3e7c9; box-shadow: 0 2px 4px rgba(0,0,0,.5); display: flex; flex-direction: column; align-items: center; justify-content: center; position: relative; }
.rc .ri { width: 24px; height: 24px; }
.rc b { position: absolute; right: 3px; bottom: 1px; font-size: 15px; color: #fff; text-shadow: 0 1px 2px #000, 0 0 3px #000; font-variant-numeric: tabular-nums; }
.rc.zero { opacity: .38; filter: saturate(.4); }
button.rc { font: inherit; padding: 0; cursor: pointer; }
.rc.pick:not(:disabled) { border-color: #ffd36b; box-shadow: 0 0 0 2px rgba(255,211,107,.45), 0 2px 4px rgba(0,0,0,.5); }
.rc.pick:disabled { cursor: default; }
.rc em { position: absolute; left: 2px; top: 1px; font-style: normal; font-size: 12px; font-weight: 700; color: #fff; background: #c0392b; border-radius: 8px; padding: 0 4px; line-height: 16px; }
.myvp { width: 52px; flex: none; border-radius: 8px; border: 2px solid var(--pc); background: rgba(15,17,23,.85); display: flex; flex-direction: column; align-items: center; justify-content: center; line-height: 1; }
.myvp b { font-size: 20px; } .myvp span { font-size: 10.5px; color: var(--muted); }
.devs { display: flex; gap: 5px; margin-top: 5px; overflow-x: auto; scrollbar-width: none; }
.devc { flex: none; display: inline-flex; gap: 4px; align-items: center; border-radius: 7px; border: 1px solid #7f6aa5; background: linear-gradient(#3a2f52, #2a2140); color: #efe6ff; font-size: 12.5px; font-weight: 650; padding: 4px 9px; min-height: 32px; }
.devc:disabled { opacity: .55; cursor: default; }
.devc small { font-size: 10.5px; font-weight: 500; opacity: .9; }
.devc.vp { border-color: #b89545; background: linear-gradient(#4a3d1f, #2f2712); color: #ffe7a8; }
@media (min-width: 900px) { .hand { flex: none; } .rc { width: 60px; height: 76px; flex: none; max-width: none; } .rc .ri { width: 32px; height: 32px; } .rc b { font-size: 18px; } .myvp { width: 60px; height: 76px; } .devs { margin-top: 0; flex-wrap: wrap; max-width: 300px; } }

/* ---------- panel building blocks ---------- */
.phase { background: rgba(15,17,23,.9); border: 1px solid var(--line); border-radius: var(--radius); padding: 9px 11px; }
.phase + .phase { margin-top: 8px; }
.head { display: flex; align-items: center; gap: 8px; min-height: 34px; margin-bottom: 4px; }
.head .h { flex: 1; min-width: 0; }
.row { display: flex; gap: 8px; align-items: center; min-width: 0; }
.row.wrap { flex-wrap: wrap; }
.grow { flex: 1; min-width: 0; }
.muted { color: var(--muted); }
.small { font-size: 12.5px; }
.cap { font-size: 11px; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); font-weight: 700; margin: 4px 0; }
.h { font-weight: 750; font-size: 17px; line-height: 1.2; }
.num { font-variant-numeric: tabular-nums; }
.sep { height: 1px; background: var(--line); margin: 10px 0; }
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 6px; background: var(--card); border: 1px solid var(--line); color: var(--text); border-radius: 10px; padding: 8px 14px; font-weight: 650; min-height: 40px; transition: background .12s, transform .06s; white-space: nowrap; }
.btn:hover:not(:disabled) { background: var(--card-hover); }
.btn:active:not(:disabled) { transform: scale(.97); }
.btn:disabled { opacity: .4; cursor: not-allowed; }
.btn.primary { background: var(--accent); border-color: var(--accent); color: #0d1424; }
.btn.warm { background: var(--accent-warm); border-color: var(--accent-warm); color: #1d1405; }
.btn.ghost { background: transparent; }
.btn.sm { min-height: 36px; padding: 4px 12px; font-size: 13.5px; border-radius: 9px; }
.btn.block { width: 100%; }
.big-btn { font-size: 17px; min-height: 46px; }
.link { background: none; border: 0; padding: 0; color: var(--accent); text-decoration: underline; font-size: inherit; }
.q { position: relative; display: inline-grid; place-items: center; width: 18px; height: 18px; border-radius: 50%; border: 1px solid var(--line); color: var(--muted); font-size: 11.5px; font-weight: 700; background: none; padding: 0; vertical-align: 1px; margin-left: 4px; }
.q::after { content: ''; position: absolute; inset: -11px; }
.seg { display: flex; gap: 4px; background: var(--bg-soft); border: 1px solid var(--line); border-radius: 10px; padding: 3px; }
.seg button { flex: 1; background: none; border: 0; border-radius: 7px; padding: 7px 8px; color: var(--muted); font-weight: 650; font-size: 14px; min-height: 36px; }
.seg button[aria-pressed="true"] { background: var(--card-hover); color: var(--text); box-shadow: 0 1px 0 rgba(255,255,255,.06) inset; }
.seat { display: flex; align-items: center; gap: 10px; padding: 5px 0; border-bottom: 1px solid var(--line); min-height: 44px; }
.seat:last-child { border-bottom: 0; }
.seat > i { width: 12px; height: 12px; border-radius: 50%; flex: none; box-shadow: 0 0 0 1px rgba(0,0,0,.5); }
.seat > span:first-of-type { width: 64px; }
.seat select { flex: 1; min-width: 0; background: var(--bg-soft); border: 1px solid var(--line); border-radius: 9px; padding: 7px 10px; }
.seat .you { flex: 1; padding: 7px 10px; color: var(--muted); }
.inp { background: var(--bg-soft); border: 1px solid var(--line); border-radius: 9px; padding: 8px 10px; min-height: 40px; }
.code { font-size: 34px; font-weight: 800; letter-spacing: .14em; font-variant-numeric: tabular-nums; }
.netbar { margin-top: 6px; }
.last { min-height: 18px; margin-top: 4px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; display: block; width: 100%; text-align: left; background: none; border: 0; padding: 0; font: inherit; color: inherit; cursor: pointer; }
.seat .bd { display: block; font-size: 11.5px; line-height: 1.3; }
.last .more { margin-left: 6px; color: var(--accent, #6ea8fe); font-weight: 700; }
.offer { background: var(--bg-soft); border: 1px solid var(--line); border-radius: 9px; padding: 7px 9px; margin-top: 4px; }
.cover { text-align: center; padding: 18px 12px; }

/* dice next to the heading */
.dice { display: flex; gap: 6px; --die-size: 30px; }
.dice.idle { opacity: .55; }

/* build buttons with their cost */
.builds { display: grid; grid-template-columns: repeat(6, 1fr); gap: 5px; margin-top: 6px; }
.bld-btn { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px; background: var(--card); border: 1px solid var(--line); border-radius: 10px; padding: 5px 1px 4px; font-weight: 700; font-size: 13.5px; min-height: 48px; color: var(--text); min-width: 0; }
.bld-btn .cost.tr { font-size: 11.5px; color: var(--muted); font-weight: 600; line-height: 11px; }
.bld-btn.end { background: var(--accent); border-color: var(--accent); color: #0d1424; }
.bld-btn.end .cost.tr { color: #0d1424; }
.hs { font-size: 15px; }
.phase .row > .dice { flex: none; }
.bld-btn:disabled { opacity: .38; cursor: not-allowed; }
.bld-btn.on { border-color: var(--accent-warm); box-shadow: 0 0 0 1px var(--accent-warm) inset; background: #2a2416; }
.cost { display: flex; gap: 2px; }
.cdot { width: 7px; height: 11px; border-radius: 2px; display: inline-block; border: 1px solid rgba(0,0,0,.45); }

/* steppers (discard, trade) */
.steps { display: grid; grid-template-columns: repeat(5, 1fr); gap: 4px; }
.stp { display: flex; flex-direction: column; align-items: center; gap: 2px; border: 1px solid var(--line); border-top: 3px solid var(--rc); border-radius: 8px; padding: 3px 2px; background: var(--bg-soft); }
.stp .ri { width: 20px; height: 20px; }
.stp button { width: 100%; min-height: 30px; background: var(--card); border: 1px solid var(--line); border-radius: 6px; font-weight: 800; padding: 0; }
.stp button:disabled { opacity: .35; }
.stp output { font-weight: 800; font-variant-numeric: tabular-nums; }
.trow { display: flex; gap: 8px; align-items: center; margin-bottom: 8px; }
.tl { width: 34px; font-size: 12.5px; font-weight: 700; color: var(--muted); }
.trow .steps { flex: 1; }
.bank-row { display: grid; grid-template-columns: repeat(5, 1fr); gap: 5px; margin-bottom: 6px; }
.bank-g { display: flex; flex-direction: column; align-items: center; gap: 1px; border: 1px solid var(--line); border-top: 3px solid var(--rc); border-radius: 8px; background: var(--card); padding: 5px 2px; font-size: 12.5px; font-weight: 700; min-height: 44px; }
.bank-g .ri { width: 20px; height: 20px; }
.bank-g.on { border-color: var(--accent-warm); background: #2a2416; }
.bank-g:disabled { opacity: .35; }
.ri { display: block; }

/* sheet + toast */
.sheet-back { position: fixed; inset: 0; background: rgba(0,0,0,.5); z-index: 40; }
.sheet { position: fixed; left: 0; right: 0; bottom: 0; max-height: 86dvh; overflow-y: auto; background: var(--bg-soft); border-top: 1px solid var(--line); border-radius: 16px 16px 0 0; padding: 12px 14px calc(16px + env(safe-area-inset-bottom)); z-index: 50; }
@media (min-width: 900px) { .sheet { left: 50%; right: auto; bottom: auto; top: 50%; transform: translate(-50%, -50%); width: 460px; border-radius: 16px; border: 1px solid var(--line); } }
.sheet-h { display: flex; align-items: center; gap: 8px; margin-bottom: 8px; }
.sheet-h .h { flex: 1; }
.why { color: var(--text); margin: 4px 0 10px; }
.toast { position: fixed; left: 50%; top: calc(var(--head) + 8px); transform: translateX(-50%); background: #2b3247; border: 1px solid var(--line); color: var(--text); padding: 8px 14px; border-radius: 10px; z-index: 70; font-size: 14px; max-width: calc(100vw - 32px); box-shadow: 0 6px 18px rgba(0,0,0,.4); pointer-events: none; }

.side-only { display: none; }
@media (min-width: 900px) { .side-only { display: block; } .phase .chart { height: 120px; } }
.feed { list-style: none; margin: 0; padding: 0; font-size: 13px; }
.feed li { display: flex; align-items: center; gap: 7px; padding: 3px 0; border-bottom: 1px solid rgba(42,48,66,.6); }
.feed li:last-child { border-bottom: 0; }
/* dice chart */
.chart { display: grid; grid-template-columns: repeat(11, 1fr); gap: 4px; height: 160px; align-items: end; margin: 6px 0; }
.bar { display: flex; flex-direction: column; align-items: center; height: 100%; font-size: 12px; }
.bars { flex: 1; width: 100%; display: flex; gap: 1px; align-items: flex-end; }
.bars i { flex: 1; border-radius: 2px 2px 0 0; }
.bars i.a, .key.a { background: var(--accent); } .bars i.t, .key.t { background: var(--accent-warm); }
.bar span { color: var(--muted); font-size: 11px; }
.key { display: inline-block; width: 10px; height: 10px; border-radius: 2px; vertical-align: -1px; }

/* settings */
.set-row { display: flex; align-items: center; gap: 10px; padding: 8px 0; border-bottom: 1px solid var(--line); min-height: 48px; }
.set-row:last-child { border-bottom: 0; }
.set-row .seg { flex: none; }
.switch { position: relative; width: 46px; height: 28px; flex: none; }
.switch input { opacity: 0; width: 0; height: 0; position: absolute; }
.switch span { position: absolute; inset: 0; background: var(--line); border-radius: 20px; transition: background .2s; cursor: pointer; }
.switch span::before { content: ''; position: absolute; width: 22px; height: 22px; left: 3px; top: 3px; background: #fff; border-radius: 50%; transition: transform .2s; }
.switch input:checked + span { background: var(--good); }
.switch input:checked + span::before { transform: translateX(18px); }
table.str { width: 100%; border-collapse: collapse; font-size: 13.5px; }
table.str th, table.str td { text-align: left; padding: 6px 4px; border-bottom: 1px solid var(--line); }
table.str th { color: var(--muted); font-weight: 650; font-size: 12px; }

/* 5-6 players: the bigger board's numbers, five opponents in one row */
#board.big .tokn { font-size: 20px; }
.seats.many { gap: 4px; padding: 6px 6px 0; }
.seats.many .opp { padding: 1px 4px 2px; }
.seats.many .opp-n { font-size: 12px; gap: 3px; }
.seats.many .opp-n .lv { display: none; }
.seats.many .opp-s { gap: 4px; font-size: 11.5px; }
.seats.many .opp-s .vp { font-size: 14px; }
@media (max-width: 430px), (max-height: 500px) { .seats.many .ct:not(:first-of-type) { display: none; } }
@media (max-width: 360px) { #nPl .pl { display: none; } }
@media (min-width: 900px) { .seats.many .opp-n .lv { display: inline; } }
/* settings sub-lines, rules videos */
.set-row .sub { display: block; font-size: 12px; color: var(--muted); line-height: 1.3; }
.set-row select.inp { flex: none; min-height: 36px; padding: 4px 8px; }
/* iPhone Safari draws a native select as a white box with pale text on this dark theme: draw our own */
.seat select, .set-row select.inp { -webkit-appearance: none; appearance: none; color-scheme: dark; color: var(--text); background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 8'%3E%3Cpath d='M1 1.5 6 6.5 11 1.5' fill='none' stroke='%23969db4' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 10px center; background-size: 12px 8px; padding-right: 30px; }
.vids { list-style: none; margin: 0; padding: 0; }
.vids li { padding: 7px 0; border-bottom: 1px solid var(--line); }
.vids li:last-child { border-bottom: 0; }
.vids a { color: var(--accent); }

/* small phones: shrink the hand a little */
@media (max-width: 360px) { .rc { height: 44px; } .rc .ri { width: 20px; height: 20px; } .myvp { width: 44px; } .bld-btn { font-size: 12.5px; } }
@media (orientation: landscape) and (max-height: 500px) {
  :root { --tabh: 44px; --head: 40px; }
  .play { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); grid-template-rows: auto minmax(0, 1fr) auto; grid-template-areas: "board seats" "board panel" "board mine"; }
  .seats { grid-area: seats; } .board-col { grid-area: board; min-height: 0; display: grid; place-items: center; container-type: size; }
  .board-wrap, body.at-table .board-wrap { width: min(100cqw, 100cqh * 448 / 388); max-height: none; }
  .panel-col { grid-area: panel; } .mine { grid-area: mine; }
}
