/* Common match structure: universe left, table centre, turn/actions right. */
body.play-experience{--match-header:64px;--match-left:216px;--match-right:270px;--match-ink:#152822;--match-gold:#d3b879;background:#111a17}
.play-experience .game-header{height:var(--match-header);position:fixed;inset:0 0 auto;z-index:30;padding:8px 18px;background:#12221eed;border-bottom:1px solid #d3b87955;display:flex;align-items:center}
.play-experience .game-title{flex:1;font:600 22px Georgia,serif;margin:0}
.play-experience #game-stage{margin-top:var(--match-header);margin-left:var(--match-left);min-height:calc(100dvh - var(--match-header));padding:0}
.match-universe{position:fixed;left:0;top:var(--match-header);bottom:0;width:var(--match-left);padding:22px 16px;z-index:25;overflow:auto;background:linear-gradient(150deg,#24372f,#101b17);border-right:1px solid #d3b87944}
.match-universe h2{font:600 22px Georgia,serif;margin:0 0 20px;color:#fff0d4}
.match-universe .game-controls{display:flex;flex-wrap:wrap;align-items:stretch;gap:10px}
.match-universe .game-controls select{width:100%;max-width:none;padding:10px;background:#17251f;color:#fff6df;border:1px solid #d3b87966;border-radius:8px}
body.play-experience[data-table-view] .immersive-table{display:grid;grid-template-columns:minmax(0,1fr) var(--match-right);min-height:calc(100dvh - var(--match-header));gap:0;padding:0}
body.play-experience[data-table-view] .immersive-table>.table-guide{grid-column:2;grid-row:1;padding:24px 18px;background:linear-gradient(155deg,#f9f5ec,#e9e4d8);color:#25372e;border:0;border-left:1px solid #d3b87977;z-index:15;overflow:auto;height:calc(100dvh - var(--match-header));position:sticky;top:var(--match-header)}
body.play-experience[data-table-view] .immersive-table>.table-play-area{grid-column:1;grid-row:1;min-height:calc(100dvh - var(--match-header));padding-bottom:24px}
body.play-experience[data-table-view=three] .immersive-table>.table-play-area{height:calc(100dvh - var(--match-header));overflow:hidden;padding:0}
.play-experience .table-guide :is(.table-instruction,.table-metrics dt,.player-card-count,.action-guidance){color:#526255}
.play-experience .table-phase{font:600 25px Georgia,serif;color:#24352b}
.play-experience .table-eyebrow{color:#8b6b36}
.play-experience .table-guide .table-actions{position:static!important;inset:auto!important;transform:none!important;width:100%!important;max-width:none!important;margin:22px 0 0!important;padding:18px 0 0!important;background:transparent!important;box-shadow:none!important;border:0!important;border-top:1px solid #cabfa9!important;min-height:0!important;border-radius:0!important;text-align:left}
.play-experience .table-guide .table-action-buttons{display:flex;flex-wrap:wrap;gap:9px;max-height:none;overflow:visible}
.play-experience .table-guide .selection-label{color:#344638;text-align:left}
.play-experience .table-guide .table-button{font:600 13px/1.3 system-ui;padding:10px 14px;background:#1d382a;border:1px solid #947849;border-radius:8px;color:#fff5df;min-height:42px;max-width:100%;white-space:normal}
.play-experience .table-guide .table-button:disabled{opacity:.5}
.play-experience .table-guide .table-button.quiet{background:transparent;color:#4a594e;border:0;margin-top:14px}
.play-experience .table-guide .table-history{border-top:1px solid #cabfa9;padding-top:12px}.play-experience .table-rules-link{color:#775729;margin-top:14px}
.match-panel-toggle{font-size:13px!important;min-height:40px}.play-experience .table-result{color:#24372e}.play-experience .theme-outcome{max-width:100%;height:auto}
@media(min-width:1201px){.play-experience .match-panel-toggle{display:none}}
@media(max-width:1200px){body.play-experience{--match-left:0px;--match-right:248px}.match-universe{width:250px;transform:translateX(-100%);transition:transform .18s}.universe-open .match-universe{transform:none;box-shadow:10px 0 40px #0009}.play-experience .game-title{font-size:18px}}
@media(max-width:760px){body.play-experience{--match-right:0px;--match-header:60px}.play-experience .game-header{padding:8px;gap:6px}.play-experience .game-back span{display:none}body.play-experience[data-table-view] .immersive-table{display:block}body.play-experience[data-table-view] .immersive-table>.table-guide{position:fixed;inset:var(--match-header) 0 0 auto;top:var(--match-header);width:min(320px,88vw);height:calc(100dvh - var(--match-header));transform:translateX(100%);transition:transform .18s;z-index:26}body.play-experience.actions-open[data-table-view] .immersive-table>.table-guide{transform:none;box-shadow:-12px 0 40px #0009}body.play-experience[data-table-view] .immersive-table>.table-play-area{width:100%;min-height:calc(100dvh - var(--match-header))}.play-experience .table-guide .table-button{min-height:46px}.play-experience .game-title{font-size:16px}}
@media(prefers-reduced-motion:reduce){.match-universe,.play-experience .table-guide{transition:none}}

.cv-game-hero-preview{position:absolute;inset:0;width:100%;height:100%;border:0;pointer-events:none}.cv-native-preview-button{position:absolute;right:24px;bottom:55px;z-index:4;padding:10px 16px;border:1px solid #d3b879;background:#173529;color:#fff3d7;border-radius:24px;cursor:pointer}.cv-game-hero-copy{position:relative;z-index:2}.cv-game-hero-caption{z-index:4}.cv-game-hero{position:relative}

.play-experience .table-guide .table-phase{color:#24352b!important}.play-experience .table-guide .table-rules-link{color:#775729!important}

/* Neutralise the previous stacked match layout in the existing client bundle. */
body.play-experience #game-root{display:flow-root;padding:0;margin:0;max-width:none}
body.play-experience #game-root #game-stage{display:block;margin-top:var(--match-header)!important;margin-left:var(--match-left)!important;padding:0!important;width:calc(100% - var(--match-left));max-width:none}
body.play-experience #game-root #game-stage .immersive-table{display:grid!important;grid-template-columns:minmax(0,1fr) var(--match-right)!important;flex-direction:initial;align-items:start;width:100%;margin:0;max-width:none}
body.play-experience #game-root #game-stage .table-guide{display:block!important;grid-column:2;grid-row:1;width:auto;max-height:none;margin:0;border-radius:0}
body.play-experience #game-root #game-stage .table-play-area{grid-column:1;grid-row:1;width:100%;min-width:0;border:0;border-radius:0}
body.play-experience #game-root .game-header{min-height:var(--match-header);margin:0;border-radius:0}
@media(max-width:760px){body.play-experience #game-root #game-stage .immersive-table{display:block!important}body.play-experience #game-root #game-stage .table-guide{width:min(320px,88vw)}}

body.play-experience #game-root .game-header{position:fixed!important;inset:0 0 auto!important}

body.play-experience[data-table-view=three] .table-play-area .table-player{transform:translate(-50%,-100%)!important;pointer-events:none;transition:none}
body.play-experience[data-table-view=three] .table-play-area .table-player:not([data-chair-anchored]){visibility:hidden}
body.play-experience[data-table-view=three] .table-play-area .table-player[hidden]{display:none!important}

/* Closed drawers do not remain in keyboard or accessibility navigation. */
@media(min-width:761px){.play-experience .match-panel-toggle[data-match-panel=actions]{display:none}}
@media(max-width:1200px){.play-experience .match-universe{visibility:hidden}.play-experience.universe-open .match-universe{visibility:visible}}
@media(max-width:760px){body.play-experience #game-root #game-stage .table-guide{visibility:hidden}body.play-experience.actions-open #game-root #game-stage .table-guide{visibility:visible}}

/* Keep camera controls away from labels above the far chair. */
.play-experience .salons-scene-views{top:auto!important;bottom:16px}

/* Loading/failure has one presentation, with recovery outside the 3D frame. */
body.play-experience[data-table-view=three] .table-play-area:not([data-cards3d=ready])>:is(.table-center,.table-hand-zone,.solitaire-surface,.table-opponents){visibility:hidden;pointer-events:none}
body.play-experience .table-play-area>.salons-scene-status{position:absolute!important;inset:0;z-index:12;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:14px;padding:24px;background:#11231f;color:#fff3d7;text-align:center}
body.play-experience .table-play-area>.salons-scene-status[hidden]{display:none}

/* The same header controls fold desktop rails and open small-screen drawers. */
@media(min-width:1201px){
  .play-experience .match-panel-toggle{display:inline-flex!important}
  body.play-experience.universe-collapsed{--match-left:0px}
  body.play-experience.universe-collapsed .match-universe{display:none!important}
}
@media(min-width:761px){
  .play-experience .match-panel-toggle[data-match-panel=actions]{display:inline-flex!important}
  body.play-experience.actions-collapsed{--match-right:0px}
  body.play-experience.actions-collapsed #game-root #game-stage .table-guide{display:none!important}
}
.match-history-open{width:100%;margin-top:16px}
.match-replay-dialog{width:min(1000px,95vw);max-width:1000px;max-height:94dvh;overflow:auto}
.match-replay-dialog .immersive-table{display:block!important;min-height:0!important;padding:0;background:transparent}
.match-replay-dialog .table-play-area{height:auto!important;min-height:0!important;max-height:none!important;padding:20px!important;display:flex!important;position:relative!important;background:var(--theme-felt,#174638);border-radius:14px!important}
.match-replay-dialog .table-play-area>:is(.table-opponents,.table-center,.table-hand-zone){visibility:visible!important;display:flex!important;position:static!important;transform:none!important;inset:auto!important;opacity:1!important;width:auto!important;pointer-events:none}
.match-replay-dialog .table-play-area>.table-center{min-height:130px;padding:16px 0;flex-wrap:wrap;justify-content:center;align-items:center;--table-card-w:52px}
.match-replay-dialog .table-play-area>.table-hand-zone{flex-direction:column;gap:8px}
.match-replay-dialog .table-hand{display:flex!important;justify-content:center!important;flex-wrap:wrap!important;overflow:visible!important;gap:4px;--table-card-w:52px;padding:8px}
.match-replay-dialog .table-player{position:static!important;transform:none!important;font-size:11px;visibility:visible!important}
.match-replay-dialog .opponent-hand,.match-replay-dialog .player-character{display:none!important}
.match-replay-controls{display:flex;flex-wrap:wrap;align-items:center;gap:8px;margin-block:16px}
.match-replay-controls input[type=range]{flex:1;min-width:120px;accent-color:var(--theme-accent)}
.match-replay-note{font-size:13px;line-height:1.6}
.table-raise-form{display:flex;flex-wrap:wrap;gap:8px;margin-top:12px;width:100%}
.table-raise-form label{width:100%;font-size:13px}
.table-raise-form input{width:100%;min-width:0;padding:10px;border-radius:8px;border:1px solid var(--theme-accent);background:var(--cg-surface);color:var(--cg-text)}
.salons-scene-status h2{margin:0;font:600 24px/1.3 Georgia,serif}.salons-scene-status p{margin:0;color:#c1ccc6}.salons-scene-status>div{display:flex;flex-wrap:wrap;justify-content:center;gap:12px}.salons-scene-status>div[hidden]{display:none}

/* Boardgame presentation: compact dark rails, full-height playing surface. */
body.play-experience{--match-header:48px;--match-left:220px;--match-right:258px;--match-ink:#f4eee1;--match-panel:#101e1d;background:#0b1515;color:var(--match-ink)}
.play-experience .game-header{padding:4px 14px;background:#101c1cef;gap:10px}
.play-experience .game-title{font-size:19px}.play-experience .game-header .hud-btn{min-height:34px;padding:6px 10px}
.play-experience .match-universe{padding:16px 12px;background:#111f1e;border-color:#d3b87950}
.match-universe h2{font:600 11px/1.4 system-ui;letter-spacing:.12em;text-transform:uppercase;color:var(--match-gold);padding:0 2px 9px;margin:0 0 12px;border-bottom:1px solid #d3b87966}
.match-roster{display:grid;gap:8px;margin-bottom:12px}.match-player{display:flex;align-items:center;gap:10px;padding:11px 9px;border:1px solid #c6af7455;background:#0b1819;border-radius:9px}
.match-player.is-current{border-color:#dcc17d;background:#24352c}.match-player-avatar{flex:none;display:grid;place-items:center;width:29px;height:32px;border:1px solid #d3b87977;border-radius:7px;color:#eed49a;background:#394039;font-size:11px}
.match-player-copy{display:grid;gap:3px;font:11px/1.35 system-ui;color:#c4cfcb}.match-player-copy strong{font-size:12px;color:#fff6df}.match-player-copy small{font-size:10px}.match-player-copy .match-turn{color:#ebca7b}
.match-decor{border:1px solid #c6af7455;border-radius:9px;padding:8px;background:#0b1819;margin-bottom:12px}.match-decor-image{display:block;max-width:100%;height:auto;object-fit:contain;border-radius:5px;margin-bottom:10px}.match-decor-image[hidden]{display:none}
.match-section-label{font:600 9px system-ui;letter-spacing:.13em;color:#bbc9c2}.match-decor-name{font:600 18px/1.25 Georgia,serif;margin:3px 0;color:#f4eee1}
.match-universe .game-controls{padding:10px 8px;border:1px solid #c6af7455;border-radius:9px;background:#0b1819;gap:8px}.match-universe .game-controls select{padding:8px;font-size:11px;min-height:34px}.match-universe .game-controls>.hud-btn{font-size:11px;min-height:34px;padding:6px 10px}.match-universe .table-view-choice{width:100%;display:flex;gap:7px}.match-universe .table-view-choice .hud-btn{flex:1;min-height:36px;padding:6px;font-size:11px}.match-universe .hud-btn[aria-pressed=true]{outline:1px solid #e2c780;background-color:#34443a}
body.play-experience[data-table-view] .immersive-table>.table-guide{padding:16px 12px;background:#111f1e;color:var(--match-ink);border-color:#d3b87950}
.play-experience .table-guide .table-eyebrow{display:block!important;color:var(--match-gold);font:600 11px/1.4 system-ui;letter-spacing:.12em;border-bottom:1px solid #d3b87966;padding-bottom:9px;margin-bottom:12px}
.match-turn-panel{border:1px solid #c6af7470;border-radius:9px;padding:14px 12px;background:#0b1819;margin-bottom:12px}
.play-experience .table-guide .table-phase{font:600 23px/1.2 Georgia,serif;color:#fff3d7!important;letter-spacing:normal;margin:0 0 10px}
.play-experience .table-guide :is(.table-instruction,.table-metrics dt,.action-guidance){color:#c1ccc6;font:12px/1.6 system-ui;margin:0}
.play-experience .table-guide .table-metrics{display:grid;grid-template-columns:1fr auto;gap:7px 12px;background:#0b1819;border:1px solid #c6af7455;border-radius:9px;padding:12px;margin:0 0 12px;font-size:12px}.play-experience .table-metrics:empty{display:none!important}.play-experience .table-metrics dd{margin:0;color:#f7e6bd;overflow-wrap:anywhere}
.play-experience .table-guide .table-actions{padding:14px 12px!important;margin:12px 0!important;border:1px solid #c6af7470!important;border-radius:9px!important;background:#0b1819!important}
.play-experience .table-guide .selection-label{color:#f0deb0;font:600 15px/1.4 Georgia,serif}.play-experience .table-guide .table-button.quiet{color:#c1ccc6}.play-experience .table-guide .table-rules-link{color:#ebd3a0!important;font-size:12px}
.play-experience .table-guide .table-history{background:#0b1819;border:1px solid #c6af7455;border-radius:9px;padding:12px;color:#d5ded7}.play-experience .table-guide .table-history summary{font:600 17px Georgia,serif;cursor:pointer}.play-experience .table-history li{font:11px/1.7 system-ui}.play-experience .table-result{color:#f4eee1}
@media(max-width:1200px){body.play-experience{--match-left:0px;--match-right:242px}}
@media(max-width:760px){body.play-experience{--match-right:0px;--match-header:48px}.play-experience .game-title{font-size:15px}.play-experience .game-header{gap:5px;padding:4px 8px}}
