/* Palette and type follow the trainer (free-bet/index.html). The felt and its free-bet chip are the one loud element; everything else stays quiet.
   Every block on the Advisor tab has a fixed height, so the keypad never moves under the pointer. */
:root{--paper:#f5f3ec;--surface:#fffefa;--ink:#203a34;--muted:#56655e;--line:#d9ddd2;--felt-hi:#245b49;--felt-lo:#133e33;--felt-ink:#f4f2e8;--felt-muted:#bcd2c3;--lime:#dce8ac;--lime-edge:#b5c784;--caution:#f3d9a4;--card:#fffdf7;--card-ink:#223c34;--key-hover:#eef2e3;--focus:#194f40;--brand:#194f40;color-scheme:light}
@media (prefers-color-scheme:dark){:root{--paper:#0f1a16;--surface:#16231e;--ink:#e3ebe4;--muted:#9db0a5;--line:#2a3b33;--felt-hi:#1f5444;--felt-lo:#0e3027;--felt-ink:#eef3ec;--felt-muted:#a9c3b2;--card:#ebe9df;--card-ink:#1f3a32;--key-hover:#dfe3d2;--focus:#e0a84a;--brand:#2b6a56;color-scheme:dark}}
*{box-sizing:border-box}
body{margin:0 auto;max-width:520px;min-width:300px;padding:0 14px 12px;background:var(--paper);color:var(--ink);font:14px/1.45 system-ui,-apple-system,"Segoe UI",sans-serif}
[hidden]{display:none!important}
button{font:inherit;color:inherit;cursor:pointer;touch-action:manipulation}
button:focus-visible,a:focus-visible,input:focus-visible,summary:focus-visible{outline:3px solid var(--focus);outline-offset:2px}
.felt button:focus-visible{outline:2px solid var(--felt-ink);outline-offset:0;box-shadow:0 0 0 4px #0b2a22}
button:disabled{opacity:.4;cursor:default}
a{color:inherit}
kbd{font:600 10px/1 system-ui,sans-serif;padding:2px 4px;border:1px solid var(--line);border-bottom-width:2px;border-radius:4px;color:var(--muted);background:var(--surface)}
.visually-hidden{position:absolute;width:1px;height:1px;overflow:hidden;clip-path:inset(50%);white-space:nowrap}

/* Chrome's side panel header already shows the extension's name and icon, so the tabs take the full width. */
.tabs{display:flex;border-bottom:1px solid var(--line)}
.tabs button{flex:1;border:0;background:none;padding:10px 4px 8px;font-size:13px;color:var(--muted);border-bottom:2px solid transparent;margin-bottom:-1px}
.tabs button[aria-selected=true]{color:var(--ink);font-weight:650;border-bottom-color:var(--ink)}
.notice{margin:10px 0 0;padding:9px 12px;border-radius:8px;background:var(--caution);color:#3b2a08;font-size:13px}
main{padding-top:12px}
h1{font:normal 24px/1.2 Georgia,serif;letter-spacing:-.5px;margin:2px 0 8px}
h2{font:650 14px/1.3 system-ui,sans-serif;margin:18px 0 4px}
#history p,#about p,#about li,#about dd{color:var(--muted)}
.lede{margin:0 0 10px}

/* The game switch: real radios drawn as one segmented control, in a fixed-height row like every other Advisor block. It shares the dealer row's
   label column, and stays quiet so the felt remains the loud element. */
.game{display:flex;align-items:center;gap:6px;height:32px;min-width:0;margin:0 0 8px;padding:0;border:0}
.seg{flex:1;display:flex;gap:2px;min-width:0;height:32px;padding:2px;border:1px solid var(--line);border-radius:8px;background:var(--surface)}
.seg label{flex:1;display:flex;position:relative;min-width:0}
.seg input{position:absolute;inset:0;margin:0;opacity:0;pointer-events:none}
.seg span{flex:1;display:grid;place-items:center;min-width:0;border-radius:6px;font-size:13px;color:var(--muted);white-space:nowrap;cursor:pointer}
.seg label:hover input:not(:checked)+span{background:var(--key-hover);color:var(--card-ink)}
.seg input:checked+span{background:var(--line);color:var(--ink);font-weight:650}
.seg input:focus-visible+span{outline:3px solid var(--focus);outline-offset:1px}
.game kbd{flex-shrink:0}

/* The felt is a small copy of the table: dealer at the top, you at the bottom. */
.felt{display:grid;grid-template-rows:46px 116px 22px 50px;gap:4px;padding:8px 10px;border-radius:16px;background:radial-gradient(ellipse at 50% 40%,var(--felt-hi),var(--felt-lo));color:var(--felt-ink);box-shadow:0 8px 22px #173b3218}
.seat{display:flex;align-items:center;gap:10px;min-width:0;padding:2px 6px;border:0;border-radius:10px;background:none;color:inherit;text-align:left}
.seat:hover{background:#ffffff10}
.seat[aria-pressed=true]{background:#dce8ac26}
.seat-name{flex-shrink:0;min-width:46px;font-size:12px;color:var(--felt-muted)}
.seat-hint{margin-left:auto;font-size:11px;color:var(--felt-muted)}
.cards{display:flex;min-width:0}
.card,.slot{flex-shrink:0;display:grid;place-items:center;width:30px;height:42px;border-radius:5px;font:600 16px/1 Georgia,serif}
.card{background:var(--card);color:var(--card-ink);box-shadow:0 2px 4px #0003}
.cards .card+.card,.cards .card+.slot{margin-left:4px}
.cards.tight .card+.card,.cards.tight .card+.slot{margin-left:-12px}
.slot{border:1.5px dashed #ffffff55;color:var(--felt-muted);font:600 9px/1 system-ui,sans-serif;letter-spacing:.02em}
.slot.next{border:2px solid var(--lime);box-shadow:0 0 0 3px #dce8ac33;color:var(--lime)}
.total{margin-left:auto;padding-left:6px;font-size:12px;color:var(--felt-muted);text-align:right;white-space:nowrap}
.hand-list{display:flex;gap:6px;margin:0;padding:0 4px;list-style:none;overflow:hidden}
.hand-list li{flex-shrink:0;padding:2px 7px;border:1px solid #ffffff38;border-radius:7px;font-size:11px;line-height:16px;color:var(--felt-muted)}
.hand-list li.now{border-color:var(--lime);color:var(--felt-ink)}
.answer{display:flex;flex-direction:column;justify-content:center;align-items:center;overflow:hidden;text-align:center;padding:0 6px;border-top:1px solid #ffffff1a;border-bottom:1px solid #ffffff1a}
.play{display:flex;align-items:center;justify-content:center;gap:12px;height:48px;margin:0;font:normal 44px/1 Georgia,serif;letter-spacing:-1px;color:var(--felt-ink)}
.answer.quiet .play,.answer.gap .play{height:34px;font-size:28px;letter-spacing:-.4px}
.answer.quiet .play{color:var(--felt-muted)}
.answer.gap .play{font-size:26px;color:var(--caution)}
.answer.quiet .why,.answer.gap .why{-webkit-line-clamp:3}
.answer.empty .play{height:0}
.why{margin:2px 0 0;max-width:36ch;font-size:13px;line-height:1.35;color:var(--felt-ink);display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden}
.about-hand{margin:3px 0 0;max-width:100%;font-size:12px;color:var(--felt-muted);white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.answer.stale{opacity:.5}
.answer.fresh .play{animation:land .16s ease-out}
@keyframes land{from{opacity:.2;transform:translateY(3px)}}
@media (prefers-reduced-motion:reduce){.answer.fresh .play{animation:none}}
/* A Free Bet table marks free doubles and splits with a round "free bet" button; the chip says the same thing beside the play. */
.lammer{display:inline-grid;place-items:center;width:44px;height:44px;border-radius:50%;background:radial-gradient(circle,var(--lime) 0 56%,transparent 57%),repeating-conic-gradient(var(--lime) 0 15deg,var(--lime-edge) 15deg 30deg);color:#1d4537;font:800 11px/1 system-ui,sans-serif;letter-spacing:.04em;box-shadow:0 2px 6px #0004}

.assumes{height:54px;margin:8px 2px 0;font-size:13px;line-height:18px;color:var(--ink);overflow:hidden}
.prompt-row{display:flex;justify-content:space-between;align-items:baseline;gap:8px;height:22px;margin:8px 2px 6px}
.prompt{margin:0;font-size:13px;color:var(--muted);white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.prompt b{font-weight:650;color:var(--ink)}
.focus-state{flex-shrink:0;margin:0;font-size:11px;color:var(--muted)}
.focus-state.away{color:var(--ink);font-weight:600}
.dealer-strip{display:flex;align-items:center;gap:3px;height:32px;margin-bottom:6px}
.strip-name{flex-shrink:0;width:46px;font-size:11px;color:var(--muted)}
.dealer-strip button{flex:1;min-width:0;height:30px;padding:0;border:1px solid var(--line);border-radius:6px;background:var(--surface);font:600 13px/1 Georgia,serif}
.dealer-strip button:hover{background:var(--key-hover);color:var(--card-ink)}
.dealer-strip button[aria-pressed=true]{background:var(--brand);border-color:var(--brand);color:#fff}
.keypad{display:grid;grid-template-columns:repeat(5,1fr);gap:6px;outline:0}
.keypad button{display:flex;flex-direction:column;align-items:center;justify-content:center;height:52px;border:1px solid var(--line);border-radius:8px;background:var(--card);color:var(--card-ink);font:600 22px/1 Georgia,serif;box-shadow:0 1px 0 var(--line)}
.keypad button:hover{background:var(--key-hover)}
.keypad button:active{transform:translateY(1px)}
.keypad small{font:500 9px/1 system-ui,sans-serif;letter-spacing:.04em;margin-top:3px;color:#56655e}
.did{display:flex;align-items:center;gap:5px;height:34px;margin-top:6px;font-size:12px;color:var(--muted)}
.did span{flex-shrink:0;margin-right:2px}
.did button{flex:1;min-width:0;height:28px;padding:0 4px;border:1px solid var(--line);border-radius:6px;background:var(--surface);font-size:12px}
.did button:hover{background:var(--key-hover);color:var(--card-ink)}
.did.off{visibility:hidden}
.controls{display:flex;gap:7px;margin-top:6px}
.controls button{flex:1;display:inline-flex;align-items:center;justify-content:center;gap:6px;height:38px;padding:0 8px;border:1px solid var(--line);border-radius:8px;background:var(--surface);font-size:13px}
.controls button:hover:not(:disabled){background:var(--key-hover);color:var(--card-ink)}

.check{display:flex;align-items:center;gap:8px;margin:0 0 12px;font-size:13px}
#historyList{display:flex;flex-direction:column;gap:8px}
.round{border:1px solid var(--line);border-left:4px solid #72966c;border-radius:10px;background:var(--surface);padding:10px 12px}
.round.flagged{border-left-color:#b9783f}
.round summary{cursor:pointer;font-weight:600;color:var(--ink)}
.round summary time{float:right;margin-left:8px;font-size:11px;font-weight:400;color:var(--muted)}
.round .meta{display:block;font-size:11px;color:var(--muted)}
.round ol{margin:8px 0 0;padding-left:18px}
.round li{font-size:13px;margin:3px 0}
.round li b{color:var(--ink)}
.tag{display:inline-block;margin-left:6px;padding:0 6px;border:1px solid var(--line);border-radius:10px;font-size:11px;font-weight:500;color:var(--muted)}
.quiet{margin-top:14px;border:1px solid var(--line);border-radius:8px;background:none;padding:8px 12px;font-size:13px;color:var(--muted)}
#historyList .history-empty{margin:0;padding:16px;border:1px dashed var(--line);border-radius:10px;text-align:center;color:var(--muted)}
#rulesList,.games{margin:4px 0;padding-left:18px}
.games li{margin:4px 0}
.games b{color:var(--ink)}
.keys{display:grid;grid-template-columns:auto 1fr;gap:6px 10px;margin:6px 0;font-size:13px}
.keys dt{white-space:nowrap}
.keys dd{margin:0}

