/* Decision controls only. Deliberately leaves the shared deck and lobby artwork untouched. */
html body.table-focus .table-decision-context{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:8px;margin:0 0 12px;padding:12px 8px;border-block:1px solid #ffffff20;text-align:center}
html body.table-focus .table-decision-context[hidden]{display:none}
.table-decision-context dt{font-size:11px;color:#b9c1c8;line-height:1.5}
.table-decision-context dd{margin:4px 0 0;font-size:14px;font-weight:750;color:#f4f5f6;font-variant-numeric:tabular-nums;overflow-wrap:anywhere}
html body.table-focus .table-sizing-help{margin:8px 0 0!important;color:#bbc3cc!important;font-size:11px!important;line-height:1.6;text-align:left}
html body.table-focus .ht-size-entry{flex-wrap:wrap;min-width:0}
html body.table-focus .ht-size-entry input{font-size:16px;min-height:44px;height:44px;max-width:100%}
html body.table-focus .ht-sizing button{min-height:44px}
html body.table-focus .ht-sizing input[type=range]{height:44px;min-height:44px;touch-action:pan-y}
html body.table-focus .ht-console button:focus-visible,html body.table-focus .ht-console input:focus-visible{outline:3px solid #e5c98e;outline-offset:3px}
html body.table-focus .ht-console,.table-study{scroll-margin-block:16px;min-width:0}
@media(max-width:600px){
 html body.table-focus .ht-heading{flex-wrap:wrap;gap:6px}
 html body.table-focus .ht-heading button{min-height:44px}
 html body.table-focus #activeTopicLabel{min-width:70px}
 html body.table-focus .ht-actions{grid-template-columns:1fr 1fr 1.35fr;gap:6px}
 html body.table-focus .ht-actions button{min-height:52px;white-space:normal;overflow-wrap:anywhere;line-height:1.4}
 html body.table-focus .ht-room.is-playing{padding-bottom:max(24px,env(safe-area-inset-bottom));scroll-padding-block:16px}
 /* Keep the main decision in the first phone viewport; optional detail follows it. */
 html body.ac-training.training-game.table-focus #tableTurn{display:none}
 html body.ac-training.training-game.table-focus #tableMission{display:none!important}
 html body.table-focus .table-decision-context{padding-block:8px;margin-bottom:10px}
 html body.table-focus .ht-room #tableSurface{width:calc(100% - 74px);margin-top:40px;margin-bottom:82px}
 html body.table-focus .ht-villain .ht-cards{bottom:calc(100% + 16px)}
 html body.table-focus .ht-villain[data-table-edge=lower]{translate:-8px 0}
 html body.table-focus .ht-villain[data-table-edge=lower] .ht-cards{top:calc(100% + 5px);bottom:auto;left:calc(50% - 20px)}
 html body.table-focus .ht-room #tableSurface:has(.ht-villain[data-table-edge=lower]){margin-bottom:104px}
}
@media(max-width:360px){
 html body.table-focus .ht-sizing>div:first-child{grid-template-columns:repeat(3,minmax(0,1fr))}
 html body.table-focus .ht-size-entry output{flex:1 0 100%;margin:2px 0 0;text-align:left}
 html body.table-focus #activeTopicLabel{order:4;flex:1 0 100%;text-align:left;padding:3px 0}
}
/* A short viewport must scroll rather than clip betting or the following explanation. */
@media(max-height:500px) and (orientation:landscape){
 html body.table-focus .ht-room.is-playing{overflow-y:auto;overscroll-behavior:contain}
 html body.table-focus #tableGame{flex:0 0 auto}
 html body.table-focus .ht-console{flex-shrink:0}
}

/* Optional learning detail stays after the complete decision area. */
html body.table-focus .table-study{padding:0;margin-top:18px;border-bottom:1px solid #ffffff20}
html body.table-focus .table-study summary{cursor:pointer;min-height:48px;padding:14px 4px;list-style-position:outside}
html body.table-focus .table-study summary small{display:block;color:#aeb8c2;font-size:11px}
html body.table-focus .table-study summary strong{display:block;margin-top:5px;font-size:16px;color:#f5f5f5;line-height:1.5}
html body.table-focus .table-study[open]{padding-bottom:14px}
html body.table-focus .table-study summary:focus-visible{outline:3px solid #e5c98e;outline-offset:3px}
html body.table-focus .table-decision-context dd{font-variant-numeric:tabular-nums}

/* Theme choices are local drafts until Apply; these miniature cards never change the hand. */
.game-options .card-theme-picker{min-width:0;margin:8px 0 20px;padding:14px 0 18px;border:0;border-bottom:1px solid #ffffff20}
.game-options .card-theme-picker legend{padding:0;font-size:14px;font-weight:750;color:#f4f5f6}
.game-options #cardThemeHelp{display:block;margin:6px 0 12px;color:#b9c1c8;font-size:11px;line-height:1.6}
.game-options .card-theme-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px}
.game-options .card-theme-option{display:grid;grid-template-columns:18px minmax(0,1fr);align-items:center;gap:8px 5px;min-width:0;margin:0;padding:10px 8px;border:1px solid #60676d;border-radius:10px;background:#252a2e;cursor:pointer}
.game-options .card-theme-option.is-selected{border-color:#e5c98e;box-shadow:inset 0 0 0 1px #e5c98e;background:#34332f}
.game-options .card-theme-option>input{appearance:auto;width:18px;height:18px;min-height:18px;max-width:18px;padding:0;margin:0;accent-color:#e5c98e;cursor:pointer}
.game-options .card-theme-name{font-size:12px;font-weight:700;color:#f2f4f6;line-height:1.4;overflow-wrap:anywhere}
.game-options .card-theme-preview{--deck-w:26px;grid-column:1/-1;display:flex;justify-content:center;gap:3px;pointer-events:none}
.game-options .card-theme-option:focus-within{outline:3px solid #e5c98e;outline-offset:3px}
@media(max-width:360px){.game-options .card-theme-grid{gap:5px}.game-options .card-theme-option{padding:9px 5px}.game-options .card-theme-name{font-size:11px}.game-options .card-theme-preview{--deck-w:22px}}
/* Keep the option heading legible above the new theme controls. */
html body.training-game .game-options #topicTitle{color:#f4f5f6!important}

/* A quieter rail and felt keep the new white/four-color cards in focus. */
html body.table-focus .ht-rail{border-color:#252b2d;background:radial-gradient(ellipse at 50% 30%,#356b53 0,#25553f 58%,#173e2e 100%);box-shadow:0 0 0 1px #060d09,0 0 0 3px #56615a,0 10px 22px #0005,inset 0 0 0 1px #cbd9cc24,inset 0 0 24px #071e1555}
html body.table-focus .ht-rail:after{border-color:#d5e4d523;background:repeating-linear-gradient(110deg,#ffffff02 0 1px,transparent 1px 4px)}
html body.table-focus .ht-center>strong{color:#f8faf7;background:#102c22dc;border:1px solid #c9d9cd30;box-shadow:0 1px 4px #071a1326;font-variant-numeric:tabular-nums;letter-spacing:.15px}
