/* Styles consolidés : cascade, sélecteurs et priorités conservés. */
:root { --paper:#f5f1e6; --ink:#294638; --green:#204f42; --gold:#e8c77e; --line:#d4dbc8; --serif:Georgia,'Times New Roman',serif; }
* { box-sizing:border-box; }
body { margin:0; background:var(--paper); color:var(--ink); font:12px 'Segoe UI',Arial,sans-serif; height:100dvh; min-width:980px; min-height:640px; overflow:auto; }
button,a { color:inherit; }
button { font:inherit; cursor:pointer; }
button:disabled { cursor:default; opacity:.45; }
button:focus-visible,a:focus-visible,input:focus-visible+span,[tabindex]:focus-visible { outline:3px solid #e6b34c; outline-offset:3px; }
button,a,input { touch-action:manipulation; }
a { text-decoration:none; }
.svg-library,.sr-only { position:absolute; width:1px; height:1px; overflow:hidden; clip-path:inset(50%); }
.topbar { height:44px; display:flex; align-items:center; justify-content:space-between; gap:18px; padding:0 20px; border-bottom:1px solid var(--line); }
.brand { display:flex; gap:8px; align-items:center; }
.brand>svg { width:29px; height:29px; }
.brand>span { font:700 19px var(--serif); }
.brand i { color:#9d7c40; }
.brand small { display:block; font:8px 'Segoe UI',sans-serif; letter-spacing:2.7px; margin-top:3px; }
.preview-label { font-size:10px; color:#7e8a70; }
.preview-label b { font-weight:400; padding:0 4px; }
nav { display:flex; gap:16px; align-items:center; }
.quiet,.text-button { background:none; border:0; }
.quiet { font-size:10px; }
.outline { background:transparent; border:1px solid #aebc9d; border-radius:6px; padding:9px 12px; }
.outline span { margin-left:12px; }
.workspace { height:calc(100dvh - 44px); min-height:576px; display:grid; grid-template-columns:minmax(0,1fr) 250px; gap:14px; padding:8px 14px; max-width:1920px; margin:auto; }
.table-wrap { min-width:0; min-height:0; display:grid; }
.table-heading,.board-footer { display:flex; align-items:center; justify-content:space-between; gap:10px; color:#738267; font-size:10px; }
.chapter { font-size:9px; font-weight:700; letter-spacing:1.7px; }
.table { min-width:0; min-height:0; background:var(--green); color:#f4eed7; border:5px solid #d0d5bf; border-radius:18px; position:relative; display:grid; grid-template-columns:repeat(6,minmax(0,1fr)); grid-template-rows:minmax(0,1fr) minmax(0,1.15fr); gap:12px; padding:14px; box-shadow:inset 0 0 50px #0c332746; isolation:isolate; }
.table-grain { position:absolute; inset:5px; border:1px solid #d9dfbd18; border-radius:10px; pointer-events:none; background-image:radial-gradient(#ffffff09 .7px,transparent .7px); background-size:5px 5px; }
.seat { --player:#c5dca0; grid-row:1; min-height:0; min-width:0; display:flex; flex-direction:column; gap:8px; position:relative; height:100%; }
.seat[hidden] { display:none!important; }
#seat-2 { grid-column:1/span 2; --player:#a6c6de; }
#seat-3 { grid-column:3/span 2; --player:#dfc17c; }
#seat-4 { grid-column:5/span 2; --player:#d2afd3; }
.seat-own { grid-column:1/-1; grid-row:2; }
.table[data-players="2"] #seat-2 { grid-column:1/-1; }
.table[data-players="3"] #seat-2 { grid-column:1/span 3; }
.table[data-players="3"] #seat-3 { grid-column:4/span 3; }
.dashboard { flex:0 0 var(--dashboard-height); height:var(--dashboard-height); min-height:0; border:1px solid #cddcb334; border-radius:9px; background:#113b30e8; padding:6px 8px; overflow:hidden; position:relative; transition:flex-basis .22s,height .22s; }
.dashboard:is(:hover,.qa-expanded),.dashboard:has(:focus-visible) { flex-basis:var(--expanded-height); height:var(--expanded-height); z-index:5; }
.dashboard-header { display:flex; align-items:center; justify-content:space-between; margin-bottom:3px; }
.dashboard-header strong { color:var(--player); }
.dashboard-header>span { color:#ccd9bd; }
.dashboard-body { min-height:0; display:grid; gap:5px; align-items:center; }
.breeder-portrait { display:block; width:32px; height:44px; border:1px solid #dfce9d; background:#e5d8ba; border-radius:4px; position:relative; padding:0; overflow:hidden; justify-self:start; }
.breeder-portrait img { width:100%; height:100%; object-fit:cover; }
.breeder-portrait>span { position:absolute; bottom:0; left:0; right:0; font-size:5px; line-height:1.2; text-align:center; background:#f5efd6ec; color:#344f3b; padding:1px; }
.hand-block { width:100%; min-width:0; display:flex; flex-direction:column; align-items:center; }
.zone-caption { display:block; text-align:center; font-size:6px; letter-spacing:1px; line-height:9px; white-space:nowrap; margin-bottom:2px; color:#d5e1c6; }
.fan-viewport { width:100%; height:36px; position:relative; }
.fan { position:absolute; top:0; left:50%; width:180px; height:105px; display:flex; align-items:flex-start; justify-content:center; transform:translateX(-50%) scale(.34); transform-origin:50% 0; isolation:isolate; transition:transform .22s; }
.fan-card { margin:0 -13px; position:relative; z-index:calc(var(--i) + 1); flex-shrink:0; transform:translateY(var(--lift)) rotate(var(--angle)); transform-origin:center 115%; transition:transform .16s; }
.fan-card:hover,.fan-card:focus-within { z-index:20; transform:translateY(var(--lift)) rotate(var(--angle)) translateY(-8px); }
.fan .card:hover { transform:none; }
.hidden-card { position:relative; width:64px; height:90px; border:1px solid #eddca8; border-radius:5px; background:repeating-linear-gradient(45deg,#658570,#658570 5px,#74967e 5px,#74967e 6px); display:grid; place-items:center; color:#fff0bd; box-shadow:0 3px 5px #0003; }
.hidden-card:before { content:''; position:absolute; inset:4px; border:1px solid #eadcad80; border-radius:2px; }
.hidden-card svg { position:absolute; width:58px; height:63px; opacity:.5; }
.hidden-card b { font:16px var(--serif); z-index:1; }
.score-block { border-left:1px solid #dfebc029; padding-left:6px; text-align:center; min-width:0; }
.score-block>span { display:block; font-size:5px; letter-spacing:.5px; color:#d9e4c8; white-space:nowrap; }
.score-block>strong { font:700 25px/1.1 var(--serif); display:block; color:var(--player); white-space:nowrap; }
.score-block small { font:10px 'Segoe UI',sans-serif; color:#f9efd1; }
.score-track { background:#092b2166; border-radius:3px; overflow:hidden; }
.score-track i { display:block; background:var(--player); height:100%; }
.dashboard:is(:hover,.qa-expanded) .fan-viewport,.dashboard:has(:focus-visible) .fan-viewport { height:86px; }
.dashboard:is(:hover,.qa-expanded) .score-block>strong { font-size:30px; }
.seat-own .dashboard { padding:6px 13px; }
.seat-own .dashboard-body { height:62px; grid-template-columns:100px minmax(0,1fr) 100px; }
.seat-own .breeder-portrait { width:44px; height:60px; }
.seat-own .breeder-portrait>span { font-size:6px; }
.seat-own .zone-caption { font-size:7px; }
.seat-own .fan-viewport { height:48px; }
.seat-own .fan { width:230px; height:140px; transform:translateX(-50%) scale(.42); }
.seat-own .fan .card-small { width:80px; height:112px; }
.seat-own .fan .card-title { font-size:8px; min-height:26px; }
.seat-own .fan .card-art { height:57px; }
.seat-own .score-block>strong { font-size:36px; }
.seat-own .score-block small { font-size:15px; }
.seat-own .score-block>span { font-size:7px; }
.seat-own .dashboard:is(:hover,.qa-expanded) .fan-viewport,.seat-own .dashboard:has(:focus-visible) .fan-viewport { height:111px; }
.seat-own .dashboard:is(:hover,.qa-expanded) .fan,.seat-own .dashboard:has(:focus-visible) .fan { transform:translateX(-50%) scale(.85); }
.dashboard-controls { display:flex; align-items:center; border-top:0; margin-top:3px; padding-top:3px; }
.dashboard-controls .quiet { color:#ccd9bd; }
.field-button,#clap-button { border:1px solid #edd99e; background:var(--gold); color:#284332; border-radius:5px; padding:5px 9px; font-size:9px; font-weight:700; white-space:nowrap; }
.field-button:hover,#clap-button:hover { background:#f4dca0; }
.dashboard-controls #clap-button b { font-size:8px; margin-left:3px; }
.field { --field-card-width:64px; --field-card-height:90px; flex:1 1 0; min-height:0; min-width:0; position:relative; border:1px solid #d3e4b637; border-radius:8px; background:#174637aa; display:flex; justify-content:center; flex-wrap:wrap; overflow:hidden; transition:background .2s; }
.field-label { position:absolute; color:#d3e2bf; }
.release-controls { position:absolute; right:5px; top:3px; display:flex; gap:4px; z-index:2; }
.release-controls button { padding:3px 7px; }
.cancel-release { border:1px solid #9ab886; border-radius:4px; background:#244a3b; color:#e9eed5; }
.drop-caption { position:absolute; left:8px; right:8px; bottom:3px; text-align:center; font-size:10px; color:#ffe4a0; pointer-events:none; display:none; }
.holding-card .drop-caption,.drop-ready .drop-caption { display:block; }
.holding-card,.drop-ready { border-color:#f7d478; }
.drop-ready { border-style:dashed; background:#456c4455; }
.card { position:relative; border:1px solid #ded1ad; border-radius:5px; background:#faf2df; color:#385340; overflow:hidden; padding:0; flex:0 0 auto; text-align:left; box-shadow:0 3px 6px #092d2433; transition:transform .16s; }
.card:hover { transform:translateY(-3px); }
.card-small { width:64px; height:90px; }
.card-title { display:block; margin:6px 5px 0; padding-right:13px; font-size:7px; line-height:1.15; min-height:22px; font-weight:700; }
.card-value { position:absolute; top:4px; right:4px; font:700 16px var(--serif); }
.card-art { display:block; width:100%; height:43px; color:#75845a; background:linear-gradient(0deg,#d1d6bc99,transparent); }
.card-bottom { display:flex; justify-content:center; align-items:center; gap:3px; min-height:18px; padding:1px; }
.effect-symbol-wrap { display:inline-grid; place-items:center; position:relative; flex-shrink:0; }
.effect-symbol { display:block; width:18px; height:18px; object-fit:contain; }
.effect-struck:after { content:''; position:absolute; width:115%; height:3px; background:#b23b32; box-shadow:0 0 0 1px #fff9; left:-7%; top:48%; transform:rotate(-43deg); border-radius:2px; }
.event-card { background:#e9cdb8; border-color:#b57f57; }
.selected { outline:2px solid #f3d17e; outline-offset:2px; }
.field .card-small { width:var(--field-card-width); height:var(--field-card-height); }
.field .card-title { font-size:clamp(5px,calc(var(--field-card-width) * .105),11px); min-height:calc(var(--field-card-height) * .26); margin:5px 4px 0; padding-right:calc(var(--field-card-width) * .22); }
.field .card-value { font-size:calc(var(--field-card-width) * .24); }
.field .card-art { height:calc(var(--field-card-height) * .48); }
.field .card-bottom { min-height:0; height:calc(var(--field-card-height) * .2); }
.field .effect-symbol { width:clamp(9px,calc(var(--field-card-width) * .24),25px); height:clamp(9px,calc(var(--field-card-width) * .24),25px); }
.release-eligible { box-shadow:0 0 0 2px #d4eaa580,0 0 10px #d1f09460; }
.release-blocked { opacity:.4; }
.release-picked { transform:translateY(-6px)!important; outline:2px solid #ffdf8f; outline-offset:1px; }
.center-table { display:flex; align-items:center; justify-content:center; min-width:0; min-height:0; align-self:stretch; border:1px solid #d3e4b637; border-radius:8px; background:#143f33aa; padding:8px; }
.table-seal { display:none; }
.shared-piles { display:flex; align-items:center; justify-content:center; gap:14px; }
.pile-button { border:0; background:none; padding:0; color:#e5e8cc; text-align:center; }
.card-back,.liberty-slot { width:48px; height:62px; border:1px solid #bcb88c; border-radius:5px; position:relative; display:flex; align-items:center; justify-content:center; flex-direction:column; background:#345c47; box-shadow:2px 2px 0 #c9caab; }
.card-back svg { position:absolute; opacity:.35; }
.card-back>span { z-index:1; font:18px var(--serif); }
.card-back>span>span { font-size:12px; }
.liberty-slot { background:#53714a25; border-style:dashed; gap:3px; box-shadow:none; }
.liberty-slot b { font-size:6px; letter-spacing:1px; }
.liberty-slot small { font-size:6px; }
.pile-button>strong { display:block; font-weight:400; margin-top:4px; }
.pile-button em { margin-left:3px; font-style:normal; }
.board-footer { font-size:9px; }
.board-footer>span:nth-child(2) { font-size:8px; }
.status-dot { display:inline-block; width:5px; height:5px; background:#7f9b52; border-radius:50%; margin-right:5px; }
.text-button { font-size:9px; padding:0; }
.inspector { min-height:0; overflow-y:auto; border-left:1px solid var(--line); padding-left:17px; scrollbar-width:thin; }
.inspector-head { display:flex; justify-content:space-between; gap:6px; align-items:center; font-size:9px; color:#859274; }
.card-large { width:100%; height:auto; min-height:260px; padding:16px; cursor:default; border-radius:9px; }
.card-large:hover { transform:none; }
.card-large .card-title { font:21px/1.1 var(--serif); margin:0; min-height:48px; max-width:170px; padding-right:22px; }
.card-large .card-value { font-size:31px; right:12px; top:12px; }
.card-large .card-art { height:115px; width:calc(100% + 32px); margin:8px -16px 0; }
.card-description { font-size:11px; line-height:1.55; margin:13px 0 0; color:#73765f; }
.card-context { font-size:10px; color:#849075; padding:10px 0; border-bottom:1px solid var(--line); }
.effect-list { display:grid; gap:13px; padding-top:14px; }
.effect-row { display:grid; grid-template-columns:29px minmax(0,1fr); gap:10px; align-items:start; }
.effect-row>div { display:flex; justify-content:center; padding-top:2px; }
.effect-row .effect-symbol { width:27px; height:27px; }
.effect-row p { margin:0; font-size:11px; line-height:1.55; color:#53654b; }
.no-effect { font-size:11px; color:#849075; }
#interaction-feedback { font-size:10px; line-height:1.5; color:#6c7b5e; }
.breeder-detail img { width:100%; max-height:230px; object-fit:cover; border-radius:8px; }
.breeder-detail h2 { font:22px var(--serif); }
.breeder-detail p { font-size:12px; line-height:1.6; }
.breeder-target { margin-top:10px; text-align:center; }
.breeder-target>span { display:block; }
.breeder-target strong { display:block; font:700 70px/1.1 var(--serif); }
.breeder-target small { font:17px 'Segoe UI',sans-serif; }
.card-menu { position:fixed; z-index:1000; animation:arrive .15s ease-out; }
.card-menu[hidden] { display:none; }
.card-menu button { width:100%; display:block; border:0; background:none; text-align:left; white-space:nowrap; }
@keyframes arrive{from{opacity:0;transform:translateX(-5px)}to{opacity:1;transform:none}}
dialog { color:var(--ink); background:var(--paper); border:1px solid #d7d1bb; border-radius:14px; padding:28px; max-height:88vh; overflow:auto; box-shadow:0 20px 80px #132d3855; }
dialog::backdrop { background:#12382999; backdrop-filter:blur(5px); }
.dialog-close { position:absolute; right:10px; top:7px; background:none; border:0; font-size:25px; color:#859274; }
.setup-dialog { width:460px; text-align:center; padding:28px 35px; }
.menu-symbol { width:52px; height:52px; background:#e0e6d1; border-radius:50%; margin:0 auto 12px; }
.menu-symbol svg { width:100%; height:100%; }
.eyebrow { font-size:8px; letter-spacing:1.7px; color:#8c9678; }
.setup-dialog h1 { font:28px var(--serif); margin:10px 0; }
.intro { font-size:11px; line-height:1.6; color:#869176; margin:10px 0 20px; }
fieldset { border:0; margin:0 0 19px; padding:0; text-align:left; }
legend { font-size:11px; font-weight:600; margin-bottom:10px; }
legend small { font-size:9px; font-weight:400; color:#8a947c; }
.segmented { display:flex; gap:10px; }
.segmented label { flex:1; cursor:pointer; }
.segmented input,.difficulty-options input { position:absolute; opacity:0; pointer-events:none; }
.segmented label>span { display:block; text-align:center; padding:10px; border:1px solid #cad3bb; border-radius:7px; font:25px var(--serif); }
.segmented small { display:block; font:7px 'Segoe UI',sans-serif; letter-spacing:1px; margin-top:3px; }
.segmented input:checked+span { background:#2d573f; color:#f8edca; }
.difficulty-options { display:grid; gap:6px; }
.difficulty-options label>span { display:flex; align-items:center; justify-content:space-between; padding:9px 11px; border:1px solid #d0d9c1; border-radius:6px; font-size:11px; cursor:pointer; }
.difficulty-options small { font-size:9px; color:#8b957e; }
.difficulty-options input:checked+span { background:#e0e8d2; border-color:#7e9862; }
.primary { border:0; background:#2b573e; color:#fff0d2; padding:12px 17px; border-radius:6px; }
.launch { width:100%; display:flex; justify-content:space-between; }
.setup-footnote { font-size:8px; color:#939e86; margin-bottom:0; }
.info-dialog { width:510px; }
.info-dialog h2 { font:27px var(--serif); margin:0 0 20px; }
.info-dialog p,.info-dialog li { font-size:12px; line-height:1.6; }
.liberty-view { width:min(980px,94vw); }
.liberty-layout { display:grid; grid-template-columns:minmax(0,1fr) 240px; gap:24px; }
.liberty-cards { display:flex; flex-wrap:wrap; gap:14px; align-content:start; padding:6px; }
.liberty-cards .card-small { width:90px; height:128px; }
.liberty-cards .card-title { font-size:10px; min-height:31px; }
.liberty-cards .card-art { height:65px; }
.liberty-cards .card-value { font-size:22px; }
#liberty-detail { border-left:1px solid #d1d9c1; padding-left:16px; max-height:70vh; overflow:auto; }
.liberty-context { color:#839074; font-size:10px; }
.mobile-actions { display:grid; gap:8px; margin-top:12px; }
.mobile-actions button { background:#e0e8d3; border:1px solid #b5c79a; border-radius:4px; padding:9px; }
@media(min-width:1600px) {
.workspace { grid-template-columns:minmax(0,1fr) 280px; gap:22px; }
.seat { --dashboard-height:90px; --expanded-height:160px; }
.seat-own { --dashboard-height:144px; --expanded-height:210px; }
.dashboard-body { height:60px; }
.dashboard .fan-viewport { height:47px; }
.dashboard .fan { transform:translateX(-50%) scale(.43); }
.dashboard .breeder-portrait { width:42px; height:58px; }
.dashboard:is(:hover,.qa-expanded) .dashboard-body { height:126px; }
.seat-own .dashboard-body { height:77px; }
.seat-own .dashboard .fan-viewport { height:60px; }
.seat-own .dashboard .fan { transform:translateX(-50%) scale(.51); }
.seat-own .dashboard:is(:hover,.qa-expanded) .dashboard-body { height:143px; }
}
@media(max-width:1200px) {
.workspace { grid-template-columns:minmax(0,1fr) 215px; gap:12px; padding:10px 14px; }
.table { padding:10px; gap:9px; }
.dashboard { padding:6px; }
.dashboard-body { grid-template-columns:38px minmax(0,1fr) 44px; gap:2px; }
.dashboard:is(:hover,.qa-expanded) .dashboard-body { grid-template-columns:46px minmax(0,1fr) 44px; }
.dashboard:is(:hover,.qa-expanded) .breeder-portrait { width:46px; height:65px; }
.dashboard:is(:hover,.qa-expanded) .fan { transform:translateX(-50%) scale(.62); }
.seat-own .dashboard-body,.seat-own .dashboard:is(:hover,.qa-expanded) .dashboard-body { grid-template-columns:80px minmax(0,1fr) 80px; }
.seat-own .dashboard:is(:hover,.qa-expanded) .fan { transform:translateX(-50%) scale(.85); }
.board-footer>span:nth-child(2) { display:none; }
.card-large .card-title { font-size:19px; }
.preview-label { display:none; }
}
@media(prefers-reduced-motion:reduce) {
*,*:before,*:after { animation:none!important; transition:none!important; }
}
.dashboard .hand-block { position:absolute; left:50%; top:0; bottom:0; height:auto; display:block; transform:translateX(-50%); }
.dashboard .zone-caption { position:absolute; top:5px; left:0; right:0; margin:0; text-align:center; line-height:9px; z-index:1; }
.dashboard .fan-viewport,.seat-own .dashboard .fan-viewport { position:absolute; top:20px; bottom:20px; left:0; width:100%; height:auto!important; }
.dashboard .fan,.dashboard:is(:hover,.qa-expanded) .fan,.dashboard:has(:focus-visible) .fan,.seat-own .dashboard .fan,.seat-own .dashboard:is(:hover,.qa-expanded) .fan,.seat-own .dashboard:has(:focus-visible) .fan { top:50%; left:50%; transform:translate(-50%,-50%) scale(var(--hand-scale,.5)); transform-origin:50% 50%; transition:none; }
.dashboard .score-block { grid-column:3; }
.dashboard .breeder-portrait { grid-column:1; }
.seat-own .dashboard .hand-block { bottom:0; }
.end-turn-slot { position:absolute; top:50%; transform:translateY(-50%); z-index:25; }
#end-turn-button { font-size:10px; padding:9px 12px; max-width:126px; white-space:normal; line-height:1.2; }
[hidden] { display:none!important; }
.breeder-artifact { background:#faf2df; border:1px solid #ded1ad; border-radius:9px; overflow:hidden; box-shadow:0 3px 6px #092d2418; }
.breeder-artifact img { display:block; border-radius:0; width:100%; max-height:230px; object-fit:cover; }
.breeder-detail .breeder-description { margin:0; padding:12px 14px; font-size:11px; line-height:1.55; color:#73765f; }
.breeder-detail h2 { text-align:center; margin:17px 0 12px; font-size:22px; line-height:1.2; }
.breeder-target { width:116px; height:116px; padding:0; margin:0 auto 17px; border:2px solid #adb98c; border-radius:50%; background:#e9eddb; box-shadow:inset 0 0 0 5px #f5f1e6,0 0 0 1px #d2d9bf; display:flex; flex-direction:column; justify-content:center; align-items:center; }
.breeder-target strong { font-size:55px; line-height:1.05; }
.breeder-target>span { font-size:8px; letter-spacing:1.3px; }
.breeder-detail .breeder-constraint { font-size:12px; line-height:1.65; margin:0; padding-top:14px; border-top:1px solid #d4dbc8; }
@media(min-height:850px) {
.seat-own { --expanded-height:248px; }
}
@media(max-width:1200px) {
.dashboard .hand-block { width:calc(100% - 112px); }
.seat-own .dashboard .hand-block { width:calc(100% - 390px); }
.end-turn-slot { left:calc(50% + (100% - 390px)/2 + 8px); }
#end-turn-button { max-width:88px; font-size:9px; padding:7px 8px; }
}
.header-game-info { display:flex; align-items:center; gap:12px; font-size:10px; white-space:nowrap; color:#748266; }
.header-game-info #turn-status { color:#355d3c; font-weight:600; }
.demo-label { font-size:8px; color:#8b947d; }
.topbar .outline { padding:6px 10px; font-size:10px; }
.topbar .brand small { font-size:6px; letter-spacing:2px; }
.own-play-area { flex:1 1 0; min-height:0; min-width:0; display:grid; gap:8px; }
.own-play-area .field { min-height:0; height:100%; }
.inspector-head { height:auto; min-height:24px; flex-wrap:wrap; padding-top:8px; }
.dashboard-controls { border:0; }
.table-wrap { grid-template-rows:minmax(0,1fr); }
@media(max-width:1200px) {
.header-game-info { gap:7px; font-size:9px; }
.demo-label { display:none; }
.topbar { gap:10px; padding:0 14px; }
.topbar nav { gap:10px; }
.own-play-area { grid-template-columns:124px minmax(0,1fr) 124px; }
.center-table { padding:6px; }
.shared-piles { gap:10px; }
}
.seat { --dashboard-height:112px; }
.seat-own { --dashboard-height:160px; }
.dashboard-header { height:15px; font-size:11px; }
.dashboard-header>span { font-size:10px; }
.dashboard-body { height:80px; grid-template-columns:64px minmax(0,1fr) 100px; }
.dashboard .breeder-portrait { width:54px; height:76px; }
.dashboard .breeder-portrait>span { font-size:7px; }
.dashboard .zone-caption,.seat-own .dashboard .zone-caption { font-size:10px; line-height:12px; letter-spacing:.8px; }
.dashboard .hand-block { width:calc(100% - 190px); }
.dashboard .fan-viewport { top:22px; bottom:22px; }
.score-track { height:4px; margin:4px 0; }
.seat-own .dashboard-body,.seat-own .dashboard:is(:hover,.qa-expanded) .dashboard-body,.seat-own .dashboard:has(:focus-visible) .dashboard-body { height:112px; grid-template-columns:90px minmax(0,1fr) 120px; }
.seat-own .dashboard .breeder-portrait { width:80px; height:112px; }
.seat-own .dashboard:is(:hover,.qa-expanded) .breeder-portrait { width:100px; height:140px; }
.seat-own .dashboard:is(:hover,.qa-expanded) .dashboard-body { height:188px; }
.seat-own .dashboard .hand-block { width:min(540px,calc(100% - 420px)); }
.seat-own .dashboard .fan-viewport { top:24px; bottom:24px; }
.dashboard-controls { position:absolute; right:13px; bottom:7px; justify-content:flex-end; gap:12px; margin:0; padding:0; height:25px; }
.dashboard-controls .quiet { font-size:10px; }
.dashboard-controls #clap-button { font-size:11px; padding:5px 9px; }
.release-controls button { font-size:10px; }
.end-turn-slot { left:calc(50% + min(270px,calc((100% - 420px)/2)) + 10px); }
.own-play-area>.field { grid-column:2; grid-row:1; }
.pile-compartment { min-width:0; min-height:0; display:flex; align-items:center; justify-content:center; border:1px solid #d3e4b637; border-radius:8px; background:#143f33aa; padding:6px; }
#shared-zone { grid-column:1; grid-row:1; }
#deck-zone { grid-column:3; grid-row:1; }
.pile-compartment .card-back,.pile-compartment .liberty-slot { width:var(--pile-card-width,64px); height:var(--pile-card-height,90px); }
.pile-button>strong { font-size:11px; }
.pile-button em { font-size:10px; }
.liberty-slot svg { width:28%; height:28%; }
.liberty-slot b,.liberty-slot small { font-size:9px; }
.card-back svg { width:85%; height:85%; }
.card-back>span { font-size:26px; }
@media(max-width:1200px) {
.dashboard .hand-block { width:calc(100% - 156px); }
.dashboard-body,.dashboard:is(:hover,.qa-expanded) .dashboard-body { grid-template-columns:48px minmax(0,1fr) 78px; }
.dashboard .score-block>strong { font-size:34px; }
.dashboard-header>span { font-size:8px; }
.seat-own .dashboard .hand-block { width:calc(100% - 390px); }
.end-turn-slot { left:calc(50% + (100% - 390px)/2 + 8px); }
.dashboard-controls .quiet { font-size:8px; }
}
.seat-own .dashboard:is(:hover,.qa-expanded) .fan-viewport,.seat-own .dashboard:has(:focus-visible) .fan-viewport { top:21px; bottom:21px; }
.seat-own .own-field { overflow:auto; scrollbar-width:thin; align-content:safe center; }
.seat { --expanded-height:112px; }
.seat-own { --expanded-height:160px; }
.dashboard:is(:hover,.qa-expanded),.dashboard:has(:focus-visible) { overflow:hidden; }
.dashboard:is(:hover,.qa-expanded) .dashboard-body,.dashboard:has(:focus-visible) .dashboard-body { height:80px; grid-template-columns:64px minmax(0,1fr) 100px; }
.dashboard:is(:hover,.qa-expanded) .breeder-portrait,.dashboard:has(:focus-visible) .breeder-portrait { width:54px; height:76px; }
.dashboard:is(:hover,.qa-expanded) .breeder-portrait>span,.dashboard:has(:focus-visible) .breeder-portrait>span { font-size:7px; padding:1px; }
.seat-own .dashboard:is(:hover,.qa-expanded) .dashboard-body,.seat-own .dashboard:has(:focus-visible) .dashboard-body { height:112px; grid-template-columns:90px minmax(0,1fr) 120px; }
.seat-own .dashboard:is(:hover,.qa-expanded) .breeder-portrait,.seat-own .dashboard:has(:focus-visible) .breeder-portrait { width:80px; height:112px; }
.dashboard .fan-viewport,.seat-own .dashboard .fan-viewport,.dashboard:is(:hover,.qa-expanded) .fan-viewport,.dashboard:has(:focus-visible) .fan-viewport,.seat-own .dashboard:is(:hover,.qa-expanded) .fan-viewport,.seat-own .dashboard:has(:focus-visible) .fan-viewport { top:22px; bottom:22px; }
.dashboard .fan { --hand-hover-scale:.83; transform:translate(-50%,-50%) scale(calc(var(--hand-scale,.5) * var(--hand-hover-scale))); transition:transform .18s ease-out; }
.dashboard:is(:hover,.qa-expanded) .fan,.dashboard:has(:focus-visible) .fan { --hand-hover-scale:1; transform:translate(-50%,-50%) scale(var(--hand-scale,.5)); }
@media(max-width:1200px) {
.dashboard:is(:hover,.qa-expanded) .dashboard-body,.dashboard:has(:focus-visible) .dashboard-body { grid-template-columns:48px minmax(0,1fr) 78px; }
.seat-own .dashboard:is(:hover,.qa-expanded) .dashboard-body,.seat-own .dashboard:has(:focus-visible) .dashboard-body { grid-template-columns:90px minmax(0,1fr) 120px; }
}
@media(prefers-reduced-motion:reduce) {
.dashboard .fan { transition:none; }
}
.dashboard .fan,.seat-own .dashboard .fan { transform:translate(-50%,-50%) scale(calc(var(--hand-scale,.5) * var(--hand-hover-scale,.83))); transition:transform .18s ease-out; }
.dashboard:is(:hover,.qa-expanded) .fan,.dashboard:has(:focus-visible) .fan,.seat-own .dashboard:is(:hover,.qa-expanded) .fan,.seat-own .dashboard:has(:focus-visible) .fan { transform:translate(-50%,-50%) scale(calc(var(--hand-scale,.5) * var(--hand-hover-scale,1))); }
.seat-own .dashboard .dashboard-body,.seat-own .dashboard:is(:hover,.qa-expanded) .dashboard-body,.seat-own .dashboard:has(:focus-visible) .dashboard-body { height:calc(var(--dashboard-height) - 56px); }
.seat-own .dashboard { overflow:visible; z-index:6; }
.seat-own .dashboard:is(:hover,.qa-expanded),.seat-own .dashboard:has(:focus-visible) { overflow:visible; }
.seat-own .hand-block { z-index:8; isolation:isolate; }
.seat-own .dashboard .fan,.seat-own .dashboard:is(:hover,.qa-expanded) .fan,.seat-own .dashboard:has(:focus-visible) .fan { transform-origin:50% 100%; transition:transform .3s cubic-bezier(.2,.7,.25,1); }
.seat-own .dashboard .hand-block:is(:hover,:focus-within) .fan { --hand-hover-scale:1.65; transform:translate(-50%,calc(-50% - 16px)) scale(calc(var(--hand-scale,.5) * var(--hand-hover-scale))); }
.seat-own .dashboard .zone-caption { transition:opacity .22s ease; pointer-events:none; }
.seat-own .dashboard .hand-block:is(:hover,:focus-within) .zone-caption { opacity:0; }
.seat-own .fan-card { transition:transform .22s cubic-bezier(.2,.7,.25,1); }
@media(prefers-reduced-motion:reduce) {
.seat-own .dashboard .fan,.seat-own .fan-card,.seat-own .dashboard .zone-caption { transition:none; }
}
.own-play-area { grid-template-columns:154px minmax(0,1fr) 154px; }
@media(max-width:1200px) {
.own-play-area { grid-template-columns:148px minmax(0,1fr) 148px; }
}
.card-menu { isolation:isolate; }
.card-menu button { position:relative; font-weight:600; color:#294b3b; transition:background .15s,color .15s,translate .15s; }
.card-menu button+button { border-top:1px solid #c9b88766; }
body:has(#card-menu:not([hidden])) .seat-own .hand-block:has(.selected) .fan { --hand-hover-scale:1.65; transform:translate(-50%,calc(-50% - 16px)) scale(calc(var(--hand-scale,.5) * var(--hand-hover-scale))); }
body:has(#card-menu:not([hidden])) .seat-own .hand-block:has(.selected) .zone-caption { opacity:0; }
@media(prefers-reduced-motion:reduce) {
.card-menu button { transition:none; }
}
.card-menu { width:164px; min-width:0; max-width:190px; padding:0; rotate:0deg; border:1px solid #d3c299; border-radius:10px; background:#fcf6e7; box-shadow:0 9px 26px #082c2840; overflow:hidden; }
.action-card-name { padding:11px 12px 9px; font:700 13px/1.3 var(--serif); color:#294b3b; border-bottom:1px solid #d6c7a1; background:#eee6d0; }
.action-buttons { padding:5px; }
.card-menu button { padding:9px 10px; font-size:12px; border-radius:6px; }
.card-menu button+button { border:0; margin-top:2px; }
.card-menu button[data-action="place"] { background:#315944; color:#fff3d4; }
.card-menu button[data-action="discard"] { color:#82644d; }
.card-menu button:hover,.card-menu button:focus-visible { background:#dae4ca; color:#244633; translate:0; }
.fan-card { margin-inline:var(--fan-overlap,-13px); }
.seat-own .fan-card:has(.selected) { z-index:30; transform:translateY(var(--lift)) rotate(var(--angle)) translateY(-12px); }
.seat-own .fan-card:has(.selected) .card { outline:2px solid #eacb81; outline-offset:3px; }
.card-menu .action-buttons button,.card-menu .action-buttons button[data-action] { background:#fcf6e7; color:#294b3b; border:1px solid transparent; translate:0; transition:background-color .16s ease,color .16s ease,border-color .16s ease; }
.card-menu .action-buttons button:hover,.card-menu .action-buttons button:focus-visible { background:#315944; color:#fff3d4; border-color:#315944; translate:0; }
.card-menu .action-buttons button:active { background:#244633; color:#fff3d4; border-color:#244633; }
@media(prefers-reduced-motion:reduce) {
.card-menu .action-buttons button { transition:none; }
}
.seat-own .dashboard .fan,.seat-own .dashboard:is(:hover,.qa-expanded) .fan,.seat-own .dashboard:has(:focus-visible) .fan { --hand-hover-scale:1.08; }
.seat-own .dashboard .hand-block:is(:hover,:focus-within) .fan,body:has(#card-menu:not([hidden])) .seat-own .hand-block:has(.selected) .fan { --hand-hover-scale:1.65; }
.seat-own .dashboard .breeder-portrait>span { font-size:8px; padding:2px 1px; }
.seat-own .dashboard .fan,.seat-own .dashboard:is(:hover,.qa-expanded) .fan,.seat-own .dashboard:has(:focus-visible) .fan { transform:translate(-50%,-50%) scale(calc(var(--hand-scale,.5) * var(--hand-hover-scale))); }
.seat-own .dashboard .hand-block:is(:hover,:focus-within) .fan,body:has(#card-menu:not([hidden])) .seat-own .hand-block:has(.selected) .fan { transform:translate(-50%,calc(-50% - 16px)) scale(calc(var(--hand-scale,.5) * var(--hand-hover-scale))); }
.seat-own .dashboard .fan-viewport { translate:0 20px; }
.draw-flight .card-title { font-size:clamp(8px,1vw,12px); min-height:26%; margin:6% 5% 0; padding-right:20%; }
.draw-flight .card-value { font-size:clamp(16px,2vw,28px); }
.draw-flight .card-art { height:48%; }
.draw-flight .card-bottom { height:19%; min-height:0; }
.draw-flight .effect-symbol { width:22px; height:22px; }
.end-turn-slot { translate:100% 0; }
.card-menu .action-buttons { max-height:min(460px,65vh); overflow-y:auto; scrollbar-width:thin; }
.sound-controls { display:flex; align-items:center; gap:6px; }
.sound-controls input { width:65px; accent-color:#315944; cursor:pointer; }
.sound-controls button { min-width:62px; }
.seat-own .dashboard-controls .end-turn-slot { position:static; left:auto; top:auto; transform:none; translate:none; }
.seat-own .dashboard-controls #end-turn-button { max-width:none; white-space:nowrap; font-size:11px; padding:8px 12px; }
.topbar #reset-button { font-size:10px; }
.seat-own .dashboard { --hud-inset:16px; border-radius:10px; background:linear-gradient(105deg,#123d31,#11392f); border-color:#cddcb33d; }
.seat-own .dashboard-header { position:absolute; top:10px; left:var(--hud-inset); right:var(--hud-inset); height:15px; margin:0; line-height:15px; }
.seat-own .dashboard-header strong { font-size:12px; }
.seat-own .dashboard-header>span { font-size:10px; color:#c3d1b7; }
.seat-own .dashboard .breeder-portrait,.seat-own .dashboard:is(:hover,.qa-expanded) .breeder-portrait,.seat-own .dashboard:has(:focus-visible) .breeder-portrait { position:absolute; left:var(--hud-inset); top:33px; height:calc(var(--dashboard-height) - 49px); width:calc((var(--dashboard-height) - 49px) / 1.4); border-radius:6px; box-shadow:0 3px 9px #062c2526; }
.seat-own .dashboard .score-block { position:absolute; border:1px solid #cddcb32b; border-radius:8px; background:#254d3e66; text-align:center; }
.seat-own .dashboard .score-block>span { letter-spacing:.7px; }
.seat-own .dashboard .score-block>span:last-child { display:none; }
.seat-own .score-track { height:4px; margin:5px 0 1px; }
.seat-own .dashboard-controls { right:var(--hud-inset); bottom:14px; height:34px; gap:10px; padding:0; margin:0; align-items:stretch; z-index:10; }
.seat-own .dashboard-controls .end-turn-slot { display:flex; align-items:stretch; }
.seat-own .dashboard-controls #end-turn-button,.seat-own .dashboard-controls #clap-button { height:34px; padding:0 12px; font-size:11px; line-height:32px; border-radius:6px; box-shadow:0 2px 4px #092d241f; }
@media(max-width:1200px) {
.seat-own .dashboard { --hud-inset:12px; }
.seat-own .dashboard .score-block { width:154px; }
.seat-own .dashboard-controls { gap:8px; }
.seat-own .dashboard-controls #end-turn-button,.seat-own .dashboard-controls #clap-button { padding:0 9px; font-size:10px; }
}
.seat-own .fan::before { content:''; position:absolute; left:50%; transform:translate(-50%,-50%); opacity:0; pointer-events:none; z-index:-1; transition:opacity .3s ease; }
.seat-own .hand-block:is(:hover,:focus-within) .fan::before,body:has(#card-menu:not([hidden])) .seat-own .hand-block:has(.selected) .fan::before { opacity:1; }
@media(prefers-reduced-motion:reduce) {
.seat-own .fan::before { transition:none; }
}
.seat-own .fan::before { width:calc(var(--fan-width,240px) + 190px); height:calc(var(--fan-height,160px) + 150px); top:57%; border-radius:0; mask-image:none; background:radial-gradient(ellipse at 50% 58%,rgba(0,0,0,.70) 0%,rgba(0,0,0,.59) 18%,rgba(0,0,0,.40) 34%,rgba(0,0,0,.21) 47%,rgba(0,0,0,.082) 58%,rgba(0,0,0,.018) 68%,rgba(0,0,0,0) 78%); filter:blur(14px); }
.reading-column { min-height:0; min-width:0; height:100%; display:flex; flex-direction:column; gap:12px; }
.reading-column>.inspector { flex:1 1 0; min-height:0; }
.reading-column.has-reaction>.inspector { border:1px solid #d4dbc8; border-radius:9px; padding:12px; background:#f9f5eb; scrollbar-gutter:stable; }
.reaction-panel { flex:0 0 46%; min-height:240px; max-height:54%; min-width:0; display:grid; grid-template-rows:auto minmax(0,1fr) auto; border:1px solid #b6bea3; border-radius:10px; background:#fff9ec; overflow:hidden; box-shadow:0 4px 13px #2547341a; }
.reaction-header { display:flex; align-items:center; justify-content:space-between; gap:8px; padding:12px 13px; background:#294f3f; color:#fff1cc; }
.reaction-eyebrow { font-size:8px; letter-spacing:1.5px; color:#e6cc90; }
.reaction-header h2 { font:700 18px/1.2 var(--serif); margin:4px 0 0; }
.reaction-header button { align-self:flex-start; border:0; background:transparent; color:#fff1cc; font-size:23px; padding:0 2px; }
.reaction-scroll { min-height:0; overflow:auto; padding:12px 13px; scrollbar-width:thin; scrollbar-gutter:stable; overflow-wrap:anywhere; }
.reaction-case-label { display:block; font-size:10px; font-weight:600; margin-bottom:5px; }
#reaction-case { width:100%; font:11px 'Segoe UI',sans-serif; }
.reaction-player { font-size:10px; font-weight:700; color:#6b572d; padding:8px 0; border-bottom:1px solid #ded7c2; }
#reaction-instructions h3 { font:700 15px/1.3 var(--serif); margin:10px 0; }
#reaction-instructions p { font-size:12px; line-height:1.6; margin:10px 0; }
.reaction-choices { margin:15px 0 8px; }
.reaction-choices legend { font-size:11px; }
.reaction-choices label { display:flex; gap:7px; align-items:center; padding:8px 0; border-bottom:1px solid #e5dfce; font-size:11px; }
.reaction-choices small { display:block; margin-top:3px; font-size:9px; color:#7a8570; }
.reaction-choices input { accent-color:#315944; }
.reaction-footer { padding:10px 12px; background:#eee9d8; border-top:1px solid #d4cdb6; }
.reaction-footer p { margin:0 0 8px; font-size:10px; line-height:1.4; min-height:14px; }
.reaction-footer>div { display:flex; gap:8px; }
.reaction-footer button { flex:1; padding:9px 6px; font-size:11px; white-space:normal; }
.reaction-secondary { border:1px solid #b8bda5; background:#fff9eb; border-radius:6px; }
.reaction-secondary:hover { background:#e0e7d3; }
#reaction-measures { font-size:10px; line-height:1.5; color:#58694d; }
.copied-effect-heading { font-size:11px; padding-top:12px; border-top:1px solid #d4dbc8; color:#6c765f; }
@media(max-width:1400px) {
.topbar { gap:10px; padding:0 12px; }
.topbar nav { gap:9px; }
.topbar .quiet { font-size:9px; }
.header-game-info { gap:7px; }
.header-game-info .demo-label { display:none; }
.sound-controls input { width:44px; }
}
.table-wrap.with-board-reaction { grid-template-rows:auto minmax(0,1fr); gap:8px; }
.board-reaction { display:flex; align-items:center; gap:14px; padding:10px 12px; border:1px solid #b6bea3; border-radius:9px; background:#f2ead4; box-shadow:0 2px 7px #23493413; }
.board-reaction-intro { flex:0 0 175px; display:grid; gap:4px; }
.board-reaction-intro>span { font-size:8px; letter-spacing:1px; color:#82714d; }
.board-reaction-intro select { width:100%; font-size:10px; background:#fff9ec; border:1px solid #c7c9b3; border-radius:4px; padding:5px; color:#294638; }
.board-reaction-task { flex:1; min-width:0; display:grid; gap:5px; }
.board-reaction-task strong { font-size:12px; line-height:1.4; }
.board-reaction-task>span { font-size:10px; color:#68745b; }
.board-reaction-buttons { display:flex; align-items:center; gap:8px; }
.board-reaction-buttons button { font-size:11px; padding:8px 10px; white-space:nowrap; }
.board-reaction-buttons #reaction-close { font-size:22px; padding:2px 5px; }
.table .reaction-target { cursor:pointer; }
@media(max-width:1200px) {
.board-reaction { gap:8px; padding:8px; }
.board-reaction-intro { flex-basis:145px; }
.board-reaction-task strong { font-size:11px; }
.board-reaction-buttons button { font-size:10px; padding:7px; }
}
.dashboard .dashboard-header { justify-content:flex-start; }
.dashboard .player-kind,.seat-own .dashboard .player-kind { font:400 10px 'Segoe UI',sans-serif; }
.dashboard .score-block,.dashboard:is(:hover,.qa-expanded) .score-block,.dashboard:has(:focus-visible) .score-block { position:absolute; left:76px; right:auto; top:28px; width:94px; border:1px solid #cddcb32b; border-radius:8px; background:#254d3e66; padding:6px 8px; text-align:center; }
.dashboard .score-block>strong,.dashboard:is(:hover,.qa-expanded) .score-block>strong { font-size:36px; line-height:1.05; }
.dashboard .score-block small { font-size:14px; }
.dashboard .score-block>span { font-size:8px; line-height:11px; letter-spacing:.5px; }
.dashboard .score-block>span:last-child { display:none; }
.dashboard .score-track { height:4px; margin:5px 0 1px; }
.seat-own .dashboard .score-block { left:calc(var(--hud-inset) + (var(--dashboard-height) - 49px) / 1.4 + 12px); right:auto; width:122px; padding:6px 8px; }
.seat-own .dashboard .score-block>strong { font-size:36px; line-height:1.05; }
.seat-own .dashboard .score-block small { font-size:14px; }
.seat-own .dashboard .score-block>span { font-size:8px; line-height:11px; }
.seat-own .player-command-area { position:absolute; right:var(--hud-inset); bottom:14px; width:clamp(230px,23%,310px); z-index:10; display:flex; flex-direction:column; gap:8px; max-height:calc(100% - 42px); }
.seat-own .player-command-area .dashboard-controls { position:static; right:auto; bottom:auto; justify-content:flex-end; flex:0 0 34px; width:100%; }
.reaction-slot { min-height:0; }
.reaction-slot:has(.board-reaction:not([hidden])) { flex:1 1 auto; min-height:0; }
.player-command-area:has(.board-reaction:not([hidden])) { padding:10px; border:1px solid #b4c6a34d; border-radius:9px; background:#1c473beb; box-shadow:0 3px 12px #082d2426; gap:8px; }
.player-command-area .board-reaction { margin:0; color:#f6efd9; }
.player-command-area .board-reaction-task>span { font-size:10px; color:#c5d4b6; }
.player-command-area .board-reaction-buttons #reaction-close { margin-left:auto; font-size:20px; padding:0 2px; color:#dbe4ca; }
.player-command-area:has(.board-reaction:not([hidden])) .dashboard-controls { display:none; }
#reaction-case { max-width:155px; border:1px solid #c5cdb6; background:#faf5e8; color:#294638; border-radius:5px; padding:5px; font-size:10px; }
@media(max-width:1200px) {
.dashboard .score-block { left:68px; width:82px; padding:5px; }
.dashboard .score-block>strong { font-size:32px; }
.dashboard .player-kind { font-size:9px; }
.seat-own .dashboard .score-block { left:calc(var(--hud-inset) + (var(--dashboard-height) - 49px) / 1.4 + 10px); width:102px; }
.seat-own .player-command-area { width:230px; }
.topbar nav { gap:6px; }
}
.seat:not(.seat-own) .dashboard { padding:8px 10px; }
.seat:not(.seat-own) .dashboard-header { font-size:12px; height:16px; margin-bottom:4px; line-height:16px; }
.dashboard .player-kind,.seat-own .dashboard .player-kind { font-size:10px; color:#d2dec6; }
.seat:not(.seat-own) .dashboard .breeder-portrait,.seat:not(.seat-own) .dashboard:is(:hover,.qa-expanded) .breeder-portrait { position:absolute; left:10px; top:29px; width:54px; height:74px; }
.seat:not(.seat-own) .dashboard .breeder-portrait>span { font-size:7px; line-height:1.2; padding:2px 1px; }
.seat:not(.seat-own) .dashboard .score-block,.seat:not(.seat-own) .dashboard:is(:hover,.qa-expanded) .score-block { left:76px; top:32px; width:94px; padding:5px 7px; }
.seat:not(.seat-own) .dashboard .hand-block { left:186px; right:10px; width:auto; transform:none; }
.seat:not(.seat-own) .dashboard .zone-caption { font-size:10px; letter-spacing:.6px; top:10px; }
.seat:not(.seat-own) .dashboard .fan-viewport { top:27px; bottom:12px; }
.field { gap:12px; padding:28px 10px 12px; align-content:flex-start; align-items:flex-start; }
.field-label { font-size:9px; letter-spacing:.55px; top:7px; left:10px; }
.table .reaction-target { outline:1px solid #dbc888; outline-offset:2px; box-shadow:0 0 7px #eed79d25; }
.table .reaction-target:hover { outline:2px solid #f7dda0; outline-offset:3px; }
.table .reaction-picked { outline:3px solid #ffe4a0; outline-offset:3px; box-shadow:0 0 13px #efd18480; }
.table .reaction-picked::after { content:'✓'; position:absolute; top:5px; right:5px; width:20px; height:20px; display:grid; place-items:center; background:#315944; color:#fff2cb; border:1px solid #ebd091; border-radius:50%; font:bold 13px 'Segoe UI',sans-serif; }
.table .reaction-source { outline:1px dashed #9dc9d1; outline-offset:3px; box-shadow:none; }
.reaction-origin { font-size:10px!important; font-weight:600; color:#e8cb8d!important; line-height:1.3; }
.player-command-area .board-reaction-buttons .reaction-secondary { border:1px solid #a8b99a; }
.player-command-area .board-reaction-buttons .reaction-secondary:hover,.player-command-area .board-reaction-buttons .reaction-secondary:focus-visible { background:#345c49; color:#fff3ce; }
.player-command-area .board-reaction-buttons .primary:disabled { opacity:1; background:#3c5849; color:#c0c9b6; border:1px solid #728471; cursor:default; }
.player-command-area .board-reaction-buttons .primary:not(:disabled):hover { background:#f4daa0; }
.dashboard:has(#reaction-panel:not([hidden])) .player-command-area { max-height:calc(100% - 32px); bottom:10px; }
.seat-own:has(#reaction-panel:not([hidden])) #release-button { display:none; }
@media(max-width:1200px) {
.seat:not(.seat-own) .dashboard .score-block { left:70px; width:86px; }
.seat:not(.seat-own) .dashboard .hand-block { left:170px; right:8px; }
.seat:not(.seat-own) .dashboard-header { font-size:11px; }
.dashboard .player-kind { font-size:9px; }
}
.seat-own .player-command-area:has(.board-reaction:not([hidden])) { padding:0; border:0; border-radius:0; background:none; box-shadow:none; gap:10px; max-height:calc(100% - 32px); bottom:12px; }
.seat-own .player-command-area:has(.board-reaction:not([hidden])) .dashboard-controls { display:flex; }
.seat-own .reaction-slot { flex:0 1 auto; }
.player-command-area .board-reaction { background:#183f34; border:1px solid #9daf8e60; border-radius:8px; box-shadow:0 2px 8px #082d2420; scrollbar-width:thin; }
.player-command-area .reaction-origin { font-size:9px!important; font-weight:600; line-height:1.2; letter-spacing:.5px; color:#d8c48f!important; }
.player-command-area .board-reaction-task { gap:4px; }
.player-command-area .board-reaction-task strong { font-size:11px; line-height:1.35; font-weight:500; }
.player-command-area .board-reaction-task #reaction-status { font-size:9px; color:#bfceb4; }
.player-command-area .board-reaction-buttons { justify-content:flex-end; gap:8px; }
.player-command-area .board-reaction-buttons button { padding:5px 9px; font-size:10px; border-radius:5px; }
.player-command-area .board-reaction-buttons .reaction-secondary { border-color:transparent; color:#d1ddc4; background:none; }
.player-command-area .board-reaction-buttons .reaction-secondary:hover { background:#315743; color:#fff1cb; }
.player-command-area .board-reaction-buttons .primary { background:#e8c77e; color:#284332; }
.player-command-area .board-reaction { display:grid; grid-template-rows:minmax(24px,1fr) auto; max-height:calc(var(--dashboard-height) - 78px); overflow:hidden; padding:8px 10px; }
.player-command-area .board-reaction-task { min-height:0; overflow:auto; scrollbar-width:thin; }
.player-command-area .board-reaction-buttons { margin-top:6px; flex-shrink:0; }
.reaction-idle { padding:12px; border:1px solid #b2c2a34d; border-radius:8px; background:#183f3470; min-height:64px; }
.reaction-idle>span { font-size:9px; font-weight:600; letter-spacing:1.3px; color:#d6c493; }
.reaction-idle p { margin:8px 0 0; font-size:11px; line-height:1.4; color:#c3d1b7; }
.reaction-slot:has(.board-reaction:not([hidden]))>.reaction-idle { display:none; }
.seat-own .reaction-slot { display:flex; flex-direction:column; gap:7px; max-height:calc(var(--dashboard-height) - 82px); min-height:64px; }
.action-journal { display:flex; flex-direction:column; min-height:42px; height:calc(var(--dashboard-height) - 82px); border:1px solid #b2c2a34d; border-radius:8px; background:#153e3270; overflow:hidden; }
.journal-heading { flex:0 0 auto; padding:8px 10px 5px; font-size:9px; font-weight:600; letter-spacing:1px; color:#d6c493; }
.journal-scroll { flex:1; min-height:24px; overflow-y:auto; overscroll-behavior:contain; scrollbar-width:thin; padding:0 10px 7px; color:#e0e7d4; }
.journal-scroll ol { list-style:none; padding:0; margin:0; }
.journal-scroll li { padding:6px 0; border-top:1px solid #b5c7a719; font-size:10px; line-height:1.45; overflow-wrap:anywhere; }
.journal-scroll li>span { display:inline-block; min-width:16px; margin-right:4px; font-size:9px; color:#98b396; }
.journal-scroll .journal-empty { color:#b6c7ab; border:0; }
.reaction-slot:has(.board-reaction:not([hidden])) { max-height:calc(var(--dashboard-height) - 78px); }
.reaction-slot:has(.board-reaction:not([hidden])) .action-journal { flex:1 1 42px; min-height:36px; order:2; }
.reaction-slot:has(.board-reaction:not([hidden])) .journal-heading { padding:4px 8px 2px; font-size:8px; }
.reaction-slot:has(.board-reaction:not([hidden])) .board-reaction { flex:0 1 auto; min-height:45px; max-height:calc(var(--dashboard-height) - 127px); order:1; padding:6px 8px; }
.seat-own .player-command-area,.seat-own .player-command-area:has(.board-reaction:not([hidden])) { top:8px; right:8px; bottom:8px; max-height:none; gap:0; padding:0; border:0; background:none; }
.seat-own .reaction-slot,.seat-own .reaction-slot:has(.board-reaction:not([hidden])) { height:100%; max-height:none; min-height:0; flex:1; gap:6px; }
.seat-own .action-journal { height:auto; flex:1 1 0; min-height:50px; border-radius:7px; }
.seat-own .journal-heading { display:flex; align-items:center; justify-content:space-between; letter-spacing:.7px; }
.seat-own .journal-heading .end-turn-slot { position:static; left:auto; top:auto; translate:none; transform:none; flex:0 0 auto; display:flex; }
.seat-own .journal-heading #end-turn-button { min-width:0; max-width:none; border-radius:5px; white-space:nowrap; }
.seat-own .journal-scroll { padding:0 8px 7px; }
.seat-own .reaction-slot:has(.board-reaction:not([hidden])) .action-journal { order:0; }
.seat-own .reaction-slot:has(.board-reaction:not([hidden])) .board-reaction { order:1; max-height:50%; min-height:45px; }
.seat-own .dashboard>.dashboard-controls { position:absolute; left:calc(var(--hud-inset) + (var(--dashboard-height) - 49px) / 1.4 + 12px); right:auto; bottom:auto; top:calc(50% + 48px); width:122px; height:27px; margin:0; padding:0; display:flex; justify-content:center; }
.seat-own .dashboard>.dashboard-controls #clap-button { width:100%; height:27px; line-height:25px; font-size:10px; padding:0 8px; border-radius:6px; }
@media(max-width:1200px) {
.seat-own .player-command-area { width:260px; }
.seat-own .dashboard>.dashboard-controls { left:calc(var(--hud-inset) + (var(--dashboard-height) - 49px) / 1.4 + 10px); width:102px; }
.seat-own .journal-heading { font-size:8px; }
.seat-own .journal-heading #end-turn-button { font-size:9px; padding:0 7px; }
}
.seat-own .dashboard .score-block { top:calc(50% - 33px); }
.seat-own .journal-heading { min-height:25px; padding:3px 8px; gap:7px; }
.seat-own .journal-heading #end-turn-button { height:21px; line-height:19px; padding:0 8px; font-size:9px; }
.seat-own .player-command-area,.seat-own .player-command-area:has(.board-reaction:not([hidden])) { width:clamp(290px,30%,410px); }
@media(max-width:1200px) {
.seat-own .player-command-area,.seat-own .player-command-area:has(.board-reaction:not([hidden])) { width:280px; }
}
.seat-own .reaction-slot:has(.board-reaction:not([hidden])) .action-journal { flex:1 1 0; height:100%; min-height:50px; }
.seat-own .action-journal .journal-scroll .board-reaction { display:block; max-height:none; min-height:0; flex:none; order:initial; margin:8px 0 0; padding:9px 0 2px; border:0; border-top:1px solid #b9c6a73b; border-radius:0; background:transparent; box-shadow:none; overflow:visible; }
.seat-own .action-journal .board-reaction-task { overflow:visible; min-height:0; }
.seat-own .action-journal .board-reaction-buttons { margin-top:7px; justify-content:flex-end; }
.seat-own .journal-heading { flex-wrap:wrap; row-gap:4px; }
.seat-own .journal-heading>span { margin-right:auto; }
.seat-own .journal-heading .journal-expand { color:#d5dfc5; font-size:9px; line-height:18px; white-space:nowrap; border-radius:4px; }
.seat-own .journal-heading .journal-expand:hover { background:#315743; color:#fff0c9; }
.seat-own .player-command-area.journal-expanded,.seat-own .player-command-area.journal-expanded:has(.board-reaction:not([hidden])) { top:auto; bottom:8px; height:var(--expanded-journal-height); max-height:none; z-index:50; }
.seat-own .player-command-area.journal-expanded .action-journal { background:#123b30fa; border-color:#a9bd9366; box-shadow:0 8px 30px #06281f66; }
.seat-own .dashboard:has(.journal-expanded) { z-index:40; }
.seat-own .journal-heading .journal-expand { display:inline-grid; place-items:center; width:25px; height:23px; padding:3px; border:1px solid transparent; cursor:pointer; transition:background-color .15s,border-color .15s; }
.journal-expand svg { width:15px; height:15px; fill:none; stroke:currentColor; stroke-width:2; stroke-linecap:round; stroke-linejoin:round; transition:rotate .18s ease; }
.journal-expand[aria-expanded="true"] svg { rotate:180deg; }
.seat-own .journal-heading .journal-expand:hover,.seat-own .journal-heading .journal-expand:focus-visible { background:#41674e; border-color:#a9bd9380; color:#fff0c9; }
@media(prefers-reduced-motion:reduce) {
.journal-expand svg { transition:none; }
}
.journal-scroll li>time { display:inline-block; margin-right:7px; font-size:9px; font-variant-numeric:tabular-nums; color:#aebfa0; white-space:nowrap; }
.game-prompt { font-size:11px; color:#d5dfc5; padding:8px; }
.board-reaction-buttons button { border-radius:5px; border:1px solid #b0bd9966; background:#2b503f; color:#f8ebca; cursor:pointer; }
.board-reaction-buttons button:hover { background:#416b4d; }
.board-reaction-buttons button:disabled { opacity:.55; }
