/* Tabinet — you against 1-3 phone players (2, 3, or 4 in two teams), or friends on one phone (js/tabinet.js).
   Theme-aware like the other game pages: tokens on :root, redefined under body.dark-theme. */
:root {
    --tb-accent: #0f766e;
    --tb-accent-2: #0d9488;
    --tb-accent-soft: #dff5f1;
    --tb-page-bg: #f2f7f6;
    --tb-card-bg: #ffffff;
    --tb-card-border: #d5e4e1;
    --tb-muted: #586d69;
    --tb-shadow: 0 10px 30px rgba(15, 60, 55, .10);
    --tb-felt: #17705f;
    --tb-felt-2: #0c4a40;
    --tb-wood: #6b3f1f;
    --tb-wood-2: #4c2a10;
    --tb-felt-text: #eafffa;
    --tb-face: #ffffff;
    --tb-face-2: #f3f1ea;
    --tb-face-border: #cfc8b8;
    --tb-black: #1b1f27;
    --tb-red: #c4202a;
    --tb-back: #1e3a8a;
    --tb-back-2: #3b82f6;
    --tb-ok: #0f766e;
    --tb-ko: #dc2626;
    --tb-gold: #f59e0b;
    --tb-turn: #fde047;
    --tb-team0: #2563eb;
    --tb-team1: #db2777;
    --tb-cw: 58px;   /* a card in your hand */
}

body.dark-theme {
    --tb-accent: #2dd4bf;
    --tb-accent-2: #14b8a6;
    --tb-accent-soft: #0e2b28;
    --tb-page-bg: #0d1716;
    --tb-card-bg: #162523;
    --tb-card-border: #2b4440;
    --tb-muted: #9bb5b0;
    --tb-shadow: 0 10px 30px rgba(0, 0, 0, .4);
    --tb-felt: #125a4d;
    --tb-felt-2: #08332c;
    --tb-wood: #45290f;
    --tb-wood-2: #2e1a08;
    --tb-face: #f4f1e8;
    --tb-face-2: #e4dfd2;
    --tb-face-border: #a59d8a;
    --tb-ok: #2dd4bf;
    --tb-ko: #f87171;
    --tb-gold: #fbbf24;
    --tb-team0: #60a5fa;
    --tb-team1: #f472b6;
}

/* clip, not hidden: the site-wide `body { overflow-x: hidden }` makes <body> a scroll
   container that never scrolls, which silently kills any position: sticky inside. */
.tb-body, body.tb-body#page-top {
    font-family: system-ui, -apple-system, "Segoe UI", sans-serif;
    background: var(--tb-page-bg);
    color: var(--text-color);
    min-height: 100vh;
    overflow-x: clip;
}
.tb-main { padding-top: 92px; padding-bottom: 40px; }
.tb-game .container, .tb-hero .container { max-width: 760px; }

/* ---- hero ---- */
.tb-hero { text-align: center; padding: 4px 0 8px; }
.tb-hero h1 { font-weight: 800; font-size: clamp(1.6rem, 5vw, 2.2rem); margin-bottom: 4px; }
.tb-hero-icon { color: var(--tb-accent); }
.tb-lead { margin: 0 auto; max-width: 560px; color: var(--tb-muted); font-size: .98rem; line-height: 1.45; }
body.tb-playing .tb-lead { display: none; }
body.tb-playing .tb-hero { padding: 0 0 6px; }
body.tb-playing .tb-hero h1 { font-size: 1.35rem; margin: 0; }

/* ---- setup ---- */
.tb-setup { max-width: 560px; margin: 6px auto 0; padding: 14px; border-radius: 18px; background: var(--tb-card-bg); border: 1px solid var(--tb-card-border); box-shadow: var(--tb-shadow); }
.tb-modes { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; padding: 5px; margin-bottom: 12px; border-radius: 16px; background: var(--tb-page-bg); border: 1px solid var(--tb-card-border); }
.tb-mode { min-height: 50px; padding: 6px 8px; border: 0; border-radius: 12px; background: transparent; color: inherit; font-weight: 700; font-size: .9rem; line-height: 1.15; cursor: pointer; touch-action: manipulation; display: flex; align-items: center; justify-content: center; gap: 7px; text-align: center; }
.tb-mode small { display: block; font-weight: 600; opacity: .8; }
.tb-mode[aria-checked="true"] { background: var(--tb-accent); color: #fff; }
body.dark-theme .tb-mode[aria-checked="true"] { color: #042f2a; }
.tb-field { margin: 0 0 12px; }
.tb-label { display: block; font-weight: 800; margin: 0 0 6px; }
.tb-note { display: block; color: var(--tb-muted); margin-top: 5px; font-size: .84rem; line-height: 1.35; }
.tb-chips { display: flex; flex-wrap: wrap; gap: 6px; }
.tb-chip { min-width: 52px; min-height: 46px; padding: 6px 12px; border-radius: 12px; border: 2px solid var(--tb-card-border); background: var(--tb-card-bg); color: inherit; font-weight: 800; font-size: 1rem; cursor: pointer; touch-action: manipulation; flex: 1 1 0; line-height: 1.1; }
.tb-chip small { font-weight: 700; font-size: .74rem; opacity: .8; }
.tb-chip[aria-checked="true"] { border-color: var(--tb-accent); background: var(--tb-accent-soft); color: var(--tb-accent); }
.tb-chip:focus-visible, .tb-mode:focus-visible, .tb-btn:focus-visible, .tb-hcard:focus-visible, .tb-opt:focus-visible, .tb-x:focus-visible { outline: 3px solid var(--tb-gold); outline-offset: 2px; }
.tb-start, .tb-resume { width: 100%; margin-top: 4px; }
.tb-resume { margin-top: 8px; }

/* ---- buttons ---- */
.tb-btn { min-height: 48px; padding: 8px 14px; border: 1px solid var(--tb-card-border); border-radius: 14px; background: var(--tb-card-bg); color: inherit; font-weight: 700; font-size: .95rem; cursor: pointer; touch-action: manipulation; display: inline-flex; align-items: center; justify-content: center; gap: 8px; }
.tb-btn:hover:not(:disabled) { border-color: var(--tb-accent); }
.tb-btn:disabled { opacity: .45; cursor: not-allowed; }
.tb-btn-primary { background: var(--tb-accent); border-color: var(--tb-accent); color: #fff; }
body.dark-theme .tb-btn-primary { color: #042f2a; }
.tb-wide { width: 100%; }

/* ---- status bar ---- */
.tb-play { max-width: 760px; margin: 0 auto; }
.tb-bar { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 12px; padding: 6px 12px; margin: 0 0 8px; min-height: 44px; border-radius: 14px; background: var(--tb-card-bg); border: 1px solid var(--tb-card-border); font-size: .9rem; font-weight: 700; }
.tb-bar-hand { font-weight: 800; }
.tb-bar-round, .tb-bar-target { color: var(--tb-muted); }
.tb-bar-deck { display: inline-flex; align-items: center; gap: 6px; }
.tb-deck-ico { display: inline-block; width: 15px; height: 21px; border-radius: 3px; background: repeating-linear-gradient(45deg, var(--tb-back) 0 3px, var(--tb-back-2) 3px 6px); border: 2px solid #fff; box-shadow: 2px 2px 0 -1px var(--tb-card-border), 0 1px 3px rgba(0, 0, 0, .3); }
.tb-bar-target { margin-left: auto; }

/* ---- the felt ---- */
.tb-felt { position: relative; padding: 8px 6px 4px; border-radius: 26px; background: radial-gradient(ellipse at 50% 45%, var(--tb-felt) 0%, var(--tb-felt-2) 100%); border: 8px solid var(--tb-wood); box-shadow: inset 0 0 0 2px var(--tb-wood-2), inset 0 8px 30px rgba(0, 0, 0, .35), var(--tb-shadow); color: var(--tb-felt-text); }
.tb-seats { display: flex; justify-content: space-around; gap: 4px; min-height: 84px; padding-top: 4px; }
.tb-seat { position: relative; flex: 1 1 0; min-width: 0; max-width: 150px; display: flex; flex-direction: column; align-items: center; gap: 1px; padding: 4px 2px; border-radius: 14px; transition: background .2s, box-shadow .2s; text-align: center; }
.tb-seat.is-turn { background: rgba(253, 224, 71, .16); box-shadow: 0 0 0 2px var(--tb-turn); }
.tb-av { position: relative; width: 38px; height: 38px; border-radius: 50%; display: grid; place-items: center; font-weight: 800; font-size: 1rem; color: #fff; background: var(--av, #475569); box-shadow: 0 2px 6px rgba(0, 0, 0, .35); flex: none; }
.tb-av.is-team0 { box-shadow: 0 0 0 3px var(--tb-team0), 0 2px 6px rgba(0, 0, 0, .35); }
.tb-av.is-team1 { box-shadow: 0 0 0 3px var(--tb-team1), 0 2px 6px rgba(0, 0, 0, .35); }
.tb-partner { position: absolute; left: 50%; top: -8px; transform: translateX(-50%); padding: 0 6px; border-radius: 999px; background: var(--tb-team0); color: #fff; font: 800 .62rem/1.45 system-ui, sans-serif; white-space: nowrap; box-shadow: 0 1px 3px rgba(0, 0, 0, .4); }
body.dark-theme .tb-partner { color: #0b1d33; }
.tb-dealer { position: absolute; right: -6px; bottom: -4px; width: 18px; height: 18px; border-radius: 50%; background: #fff; color: #111; font-size: .66rem; font-weight: 900; display: grid; place-items: center; box-shadow: 0 1px 3px rgba(0, 0, 0, .4); }
.tb-name { max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-weight: 800; font-size: .84rem; line-height: 1.2; }
.tb-stat { font-size: .76rem; line-height: 1.2; opacity: .95; white-space: nowrap; }
.tb-stat b { font-size: .86rem; }
.tb-star { color: var(--tb-gold); }
.tb-tot { font-size: .72rem; line-height: 1.2; opacity: .85; white-space: nowrap; font-weight: 700; }
.tb-backs { display: flex; justify-content: center; height: 11px; margin-top: 2px; }
.tb-backs i { display: block; width: 8px; height: 11px; margin-left: -2px; border-radius: 2px; background: linear-gradient(135deg, var(--tb-back-2), var(--tb-back)); border: 1px solid rgba(255, 255, 255, .75); }

/* the cards on the table: JS picks --tb-tw so they always fit the fixed area */
.tb-table { --tb-tw: 54px; position: relative; height: 196px; display: flex; flex-wrap: wrap; align-content: center; justify-content: center; gap: 8px; padding: 6px 2px; }
.tb-tcard { position: relative; flex: none; transition: transform .3s cubic-bezier(.2, .8, .2, 1), opacity .3s, filter .2s; will-change: transform; }
.tb-tcard .tb-card { --w: var(--tb-tw); }
.tb-tcard.is-can .tb-card { box-shadow: 0 0 0 2px rgba(253, 224, 71, .55), 0 3px 8px rgba(0, 0, 0, .28); }
.tb-tcard.is-take { transform: translateY(-7px); }
.tb-tcard.is-take .tb-card { box-shadow: 0 0 0 3px var(--tb-gold), 0 8px 16px rgba(0, 0, 0, .45); }
.tb-table.is-choosing .tb-tcard:not(.is-take):not(.is-can) { filter: brightness(.75) saturate(.7); }
.tb-tcard.is-played .tb-card { box-shadow: 0 0 0 3px #38bdf8, 0 8px 16px rgba(0, 0, 0, .45); }
.tb-tcard.is-gone { opacity: 0; }
.tb-empty { align-self: center; margin: 0; font-weight: 700; opacity: .75; font-size: .92rem; text-align: center; }
.tb-last { margin: 0; min-height: 1.4em; padding: 0 8px 4px; text-align: center; font-size: .82rem; font-weight: 700; line-height: 1.4; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; opacity: .92; }
.tb-toast { position: absolute; left: 50%; top: 52%; transform: translate(-50%, -50%); z-index: 4; padding: 10px 22px; border-radius: 999px; background: var(--tb-gold); color: #1f1300; font-weight: 900; font-size: 1.35rem; box-shadow: 0 10px 30px rgba(0, 0, 0, .45); pointer-events: none; white-space: nowrap; animation: tb-toast 1.3s ease-out forwards; }
.tb-toast.is-info { background: rgba(255, 255, 255, .95); color: #0c3b34; font-size: 1rem; }
.tb-toast[hidden] { display: none; }
@keyframes tb-toast { 0% { transform: translate(-50%, -50%) scale(.4); opacity: 0; } 15% { transform: translate(-50%, -50%) scale(1.08); opacity: 1; } 25% { transform: translate(-50%, -50%) scale(1); } 80% { opacity: 1; } 100% { opacity: 0; } }

/* ---- you ---- */
.tb-me { display: flex; align-items: center; gap: 10px; margin: 8px 0 0; padding: 6px 10px; min-height: 52px; border-radius: 14px; background: var(--tb-card-bg); border: 2px solid var(--tb-card-border); }
.tb-me.is-turn { border-color: var(--tb-gold); box-shadow: 0 0 0 3px rgba(245, 158, 11, .2); }
.tb-me .tb-av { width: 34px; height: 34px; }
.tb-me-name { font-weight: 800; flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.tb-me-stat { font-weight: 700; color: var(--tb-muted); white-space: nowrap; font-size: .88rem; }
.tb-me-stat b { color: var(--text-color); }
.tb-me-tot { font-weight: 800; color: var(--tb-accent); white-space: nowrap; font-size: 1.05rem; }
.tb-me-tot small { font-size: .72rem; font-weight: 700; color: var(--tb-muted); }
.tb-status { margin: 6px 2px 0; min-height: 1.5em; font-weight: 700; text-align: center; color: var(--tb-muted); line-height: 1.5; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.tb-status.is-you { color: var(--tb-accent); }

/* ---- the capture choices (fixed height: no layout shift) ---- */
.tb-choices { display: flex; align-items: center; gap: 6px; height: 64px; margin: 4px 0 0; padding: 4px 2px; overflow-x: auto; overflow-y: hidden; scroll-snap-type: x proximity; scrollbar-width: thin; -webkit-overflow-scrolling: touch; }
.tb-choices.is-hint { justify-content: center; }
.tb-hint { margin: 0; color: var(--tb-muted); font-size: .86rem; text-align: center; line-height: 1.3; width: 100%; }
.tb-opt { flex: none; scroll-snap-align: start; min-height: 52px; height: 54px; display: inline-flex; align-items: center; gap: 6px; padding: 4px 10px 4px 6px; border-radius: 14px; border: 2px solid var(--tb-card-border); background: var(--tb-card-bg); color: inherit; font-weight: 800; font-size: .86rem; cursor: pointer; touch-action: manipulation; box-shadow: 0 2px 6px rgba(0, 0, 0, .08); }
.tb-opt.is-focus { border-color: var(--tb-gold); background: var(--tb-accent-soft); }
.tb-opt-cards { display: inline-flex; gap: 3px; }
.tb-mini { display: inline-flex; align-items: center; justify-content: center; min-width: 26px; height: 34px; padding: 0 3px; border-radius: 5px; background: linear-gradient(160deg, var(--tb-face) 0%, var(--tb-face-2) 100%); border: 1px solid var(--tb-face-border); color: var(--tb-black); font-family: Georgia, "Times New Roman", serif; font-weight: 700; font-size: .82rem; line-height: 1; letter-spacing: -.02em; }
.tb-mini.is-red { color: var(--tb-red); }
.tb-opt-pts { display: flex; flex-direction: column; align-items: flex-start; line-height: 1.15; white-space: nowrap; }
.tb-opt-pts small { font-weight: 700; color: var(--tb-muted); font-size: .72rem; }
.tb-opt-pts .is-tabla { color: var(--tb-gold); }
.tb-opt-down { padding: 4px 12px; color: var(--tb-muted); }
.tb-opt-down i { font-size: 1rem; }

/* ---- your hand ---- */
.tb-hand { position: relative; height: calc(var(--tb-cw) * 1.4 + 30px); margin: 2px 0 14px; touch-action: manipulation; }
.tb-hcard { position: absolute; bottom: 4px; padding: 0; border: 0; background: none; cursor: default; transform-origin: 50% 120%; transition: transform .18s ease-out, filter .18s; -webkit-tap-highlight-color: transparent; border-radius: 8px; }
.tb-hcard .tb-card { --w: var(--tb-cw); }
.tb-hand.is-playing .tb-hcard { cursor: pointer; }
.tb-hand.is-playing .tb-hcard .tb-card { box-shadow: 0 0 0 2px rgba(245, 158, 11, .55), 0 6px 14px rgba(0, 0, 0, .25); }
.tb-hand.is-playing .tb-hcard.is-sel .tb-card { box-shadow: 0 0 0 3px var(--tb-gold), 0 10px 20px rgba(0, 0, 0, .35); }
.tb-hcard.is-cap::after { content: "ia"; position: absolute; top: -9px; left: 50%; transform: translateX(-50%); padding: 1px 7px; border-radius: 999px; background: var(--tb-accent); color: #fff; font: 800 .7rem/1.3 system-ui, sans-serif; box-shadow: 0 1px 4px rgba(0, 0, 0, .3); }
body.dark-theme .tb-hcard.is-cap::after { color: #042f2a; }
.tb-hand.is-hidden .tb-hcard { pointer-events: none; }
.tb-hand.is-waiting .tb-hcard .tb-card { filter: brightness(.92); }

/* ---- cards (pure CSS, no images) ---- */
.tb-card { --w: 54px; position: relative; display: block; width: var(--w); height: calc(var(--w) * 1.4); border-radius: calc(var(--w) * .12); background: linear-gradient(160deg, var(--tb-face) 0%, var(--tb-face-2) 100%); border: 1px solid var(--tb-face-border); box-shadow: 0 3px 8px rgba(0, 0, 0, .28); color: var(--tb-black); font-family: Georgia, "Times New Roman", serif; user-select: none; -webkit-user-select: none; overflow: hidden; }
.tb-card.is-red { color: var(--tb-red); }
.tb-c-tl, .tb-c-br { position: absolute; display: flex; flex-direction: column; align-items: center; line-height: .95; font-weight: 700; font-size: calc(var(--w) * .27); }
.tb-c-tl { top: calc(var(--w) * .06); left: calc(var(--w) * .07); }
.tb-c-br { bottom: calc(var(--w) * .06); right: calc(var(--w) * .07); transform: rotate(180deg); }
.tb-c-tl small, .tb-c-br small { font-size: .85em; }
.tb-c-mid { position: absolute; left: 50%; top: 54%; transform: translate(-50%, -50%); font-size: calc(var(--w) * .56); line-height: 1; }
.tb-card.is-face .tb-c-mid { font-size: calc(var(--w) * .42); font-weight: 700; }
.tb-card.is-face .tb-c-mid small { display: block; text-align: center; font-size: .9em; }
.tb-c-val { position: absolute; right: calc(var(--w) * .07); top: calc(var(--w) * .07); font-family: system-ui, sans-serif; font-size: calc(var(--w) * .17); font-weight: 800; color: #64748b; white-space: nowrap; line-height: 1; }
.tb-card.is-pts::before { content: ""; position: absolute; left: calc(var(--w) * .08); bottom: calc(var(--w) * .08); width: calc(var(--w) * .12); height: calc(var(--w) * .12); border-radius: 50%; background: var(--tb-gold); }
.tb-card.is-back { background: repeating-linear-gradient(45deg, var(--tb-back) 0 5px, var(--tb-back-2) 5px 10px); border: 3px solid #fff; }

/* ---- below the table ---- */
.tb-actions { display: grid; grid-template-columns: 1fr auto 1fr; gap: 8px; }
.tb-actions #tb-sound { width: 52px; padding: 0; }
.tb-record { text-align: center; color: var(--tb-muted); font-size: .88rem; margin: 10px 0 0; min-height: 1.3em; }
.tb-record b { color: var(--text-color); }
.tb-help { max-width: 760px; margin: 14px auto 0; padding: 12px 16px; border-radius: 14px; background: var(--tb-card-bg); border: 1px solid var(--tb-card-border); }
.tb-help summary { cursor: pointer; font-weight: 700; min-height: 32px; display: flex; align-items: center; gap: 8px; }
.tb-help ol { margin: 10px 0 0; padding-left: 20px; color: var(--tb-muted); line-height: 1.55; }
.tb-help li { margin-bottom: 4px; }
.tb-help strong { color: var(--text-color); }
.tb-help p { color: var(--tb-muted); margin: 10px 0 0; line-height: 1.55; font-size: .93rem; }
.tb-help a, .tb-powered a { color: var(--tb-accent); }
.tb-credit { font-size: .84rem !important; }
.tb-powered { text-align: center; color: var(--tb-muted); font-size: .85rem; margin: 26px 0 0; }

/* ---- dialogs ---- */
.tb-overlay { position: fixed; inset: 0; z-index: 2000; display: grid; place-items: center; padding: 16px; background: rgba(0, 0, 0, .5); animation: tb-fade .2s ease-out; }
.tb-overlay[hidden] { display: none; }
@keyframes tb-fade { from { opacity: 0; } }
.tb-dialog { width: 100%; max-width: 440px; max-height: calc(100vh - 32px); max-height: calc(100dvh - 32px); overflow: auto; padding: 20px 16px 16px; border-radius: 22px; background: var(--tb-card-bg); color: var(--text-color); text-align: center; box-shadow: 0 20px 50px rgba(0, 0, 0, .35); animation: tb-rise .25s ease-out; }
@keyframes tb-rise { from { transform: translateY(16px) scale(.97); opacity: 0; } }
.tb-dialog h2 { font-weight: 800; font-size: 1.4rem; margin: 2px 0 4px; }
.tb-dialog-icon { font-size: 32px; color: var(--tb-accent); }
.tb-gold { color: var(--tb-gold); }
.tb-dialog-sub { color: var(--tb-muted); margin: 0 0 10px; }
.tb-dialog-actions { display: grid; grid-template-columns: 1fr 1.4fr; gap: 8px; margin-top: 14px; }
.tb-cover-card { max-width: 340px; }
.tb-sum-wrap { overflow-x: auto; }
.tb-sum-table { width: 100%; border-collapse: collapse; font-size: .9rem; }
.tb-sum-table th { font-size: .78rem; color: var(--tb-muted); font-weight: 800; padding: 4px 3px; vertical-align: bottom; line-height: 1.2; }
.tb-sum-table td { padding: 5px 3px; border-top: 1px solid var(--tb-card-border); font-weight: 700; }
.tb-sum-table td:first-child, .tb-sum-table th:first-child { text-align: left; }
.tb-sum-table td:not(:first-child), .tb-sum-table th:not(:first-child) { text-align: center; }
.tb-sum-table td small { color: var(--tb-muted); font-weight: 700; }
.tb-sum-table .is-zero { color: var(--tb-muted); opacity: .6; }
.tb-sum-table tr.tb-sum-total td { border-top: 2px solid var(--text-color); font-weight: 900; font-size: 1rem; }
.tb-sum-table tr.tb-sum-game td { background: var(--tb-accent-soft); font-weight: 900; }
.tb-sum-table th.is-you { color: var(--tb-accent); }
.tb-final { text-align: left; margin: 6px auto 0; padding-left: 26px; max-width: 300px; font-weight: 700; line-height: 1.7; }
.tb-final .is-you { color: var(--tb-accent); }
.tb-over-last { margin: 12px 0 2px; text-align: left; font-size: .74rem; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; color: var(--tb-muted); }

.tb-sheet-card { max-width: 560px; text-align: left; padding: 14px 10px 12px; }
.tb-sheet-head { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 0 4px; }
.tb-x { width: 44px; height: 44px; border-radius: 12px; border: 1px solid var(--tb-card-border); background: var(--tb-card-bg); color: inherit; font-size: 1.1rem; cursor: pointer; }
.tb-sheet-legend { color: var(--tb-muted); font-size: .8rem; margin: 2px 4px 8px; line-height: 1.35; }
.tb-sheet-wrap { overflow-x: auto; }
.tb-sheet-table { width: 100%; border-collapse: collapse; font-size: .86rem; table-layout: fixed; }
.tb-sheet-table th, .tb-sheet-table td { border: 1px solid var(--tb-card-border); padding: 5px 3px; text-align: center; vertical-align: middle; }
.tb-sheet-table thead th { background: var(--tb-card-bg); font-size: .76rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.tb-sheet-table th.tb-col-h { width: 40px; }
.tb-sheet-table .tb-cell-tot { display: block; font-weight: 800; font-size: .92rem; color: var(--text-color); }
.tb-sheet-table .tb-cell-pts { display: block; font-size: .74rem; color: var(--tb-muted); }
.tb-sheet-table tfoot td { font-weight: 900; font-size: .95rem; background: var(--tb-accent-soft); }

/* ---- desktop ---- */
@media (min-width: 700px) {
    :root { --tb-cw: 76px; }
    .tb-table { height: 192px; gap: 10px; }
    .tb-seats { min-height: 96px; }
    .tb-av { width: 46px; height: 46px; font-size: 1.15rem; }
    .tb-name { font-size: .95rem; }
    .tb-stat { font-size: .86rem; }
    .tb-bar { font-size: 1rem; }
    .tb-last { font-size: .92rem; }
    .tb-mini { min-width: 30px; height: 40px; font-size: .92rem; }
    .tb-opt { height: 58px; font-size: .92rem; }
    .tb-choices { height: 70px; }
}

@media (max-width: 380px) {
    :root { --tb-cw: 52px; }
    .tb-mode { font-size: .82rem; }
    .tb-bar { font-size: .84rem; gap: 4px 8px; }
    .tb-av { width: 34px; height: 34px; }
    .tb-name { font-size: .78rem; }
    .tb-table { height: 184px; }
}

@media (prefers-reduced-motion: reduce) {
    .tb-tcard, .tb-hcard, .tb-dialog, .tb-overlay, .tb-toast { transition: none !important; animation: none !important; }
}
