:root{--sky:#E3EBF1;--marble:#FBFBF9;--ink:#1A1D26;--ink-2:#566070;--rule:#C7D2DC;--red:#B3261E;--blue:#2E5FA8;--ochre:#B97F12;--green:#2A8570;--boots:#7A4E2B;--swords:#4B5565;--purple:#6A2C70;--coin:#94700F;--bolt:#C99200;--fair:#E3EBF1;--dusk:#8D9CB0;--storm:#232A3A;--display:'Forum','Trajan Pro','Palatino Linotype',Georgia,serif;--ui:'Instrument Sans','Helvetica Neue',Arial,sans-serif}
*{box-sizing:border-box}body{margin:0;background:var(--sky);color:var(--ink);font:15px/1.45 var(--ui)}h1,h2,h3,.card-name{font-family:var(--display);font-weight:400;margin:0}button,input,select{font:inherit}button,.button{display:inline-flex;align-items:center;justify-content:center;gap:7px;background:var(--marble);color:var(--ink);border:1px solid var(--rule);border-radius:6px;padding:9px 13px;text-decoration:none;cursor:pointer}button:hover,.button:hover{border-color:var(--ink)}button:disabled{opacity:.5;cursor:not-allowed}.primary{background:var(--ink);color:var(--marble);border-color:var(--ink)}a{color:inherit}button:focus-visible,a:focus-visible,[tabindex]:focus-visible,input:focus-visible,select:focus-visible{outline:3px solid var(--blue);outline-offset:3px}input,select{max-width:100%;padding:8px;background:var(--marble);color:var(--ink);border:1px solid var(--rule);border-radius:5px}.ic{display:inline-block;width:1em;height:1em;vertical-align:-.12em;fill:currentColor;flex:none}.mark{width:1.6em;height:1.6em}.mark .strike,.strike{fill:var(--bolt)}.leaf{fill:currentColor}.wm{display:inline-flex;align-items:center;gap:8px;font:22px var(--display);letter-spacing:.07em;white-space:nowrap}.point{color:var(--bolt)}.mast{max-width:1200px;margin:auto;padding:24px 30px;display:flex;justify-content:space-between;align-items:center;border-bottom:1px solid var(--rule)}.mast a{text-decoration:none}.mast nav{display:flex;gap:25px}.door{max-width:1200px;margin:auto;min-height:550px;padding:65px 30px 0;display:grid;grid-template-columns:1.1fr 1fr;align-items:center;gap:30px}.pitch{display:grid;gap:26px;padding-bottom:30px}.pitch h1{font-size:clamp(44px,5.5vw,74px);line-height:1.05}.pitch>p:not(.eyebrow){font-size:20px;color:var(--ink-2)}.eyebrow{font-size:12px;letter-spacing:.18em}.buttons{display:flex;gap:12px;flex-wrap:wrap}.facts{display:flex;gap:22px;flex-wrap:wrap;font-size:13px;color:var(--ink-2)}.scene{align-self:end}.scene .god{width:68%;margin:auto auto -8%}img.piece{display:block;width:100%;height:100%;object-fit:contain}.rank{display:flex;align-items:flex-end}.rank .piece{width:29%;margin:0 -2%}.front-footer{max-width:1140px;margin:35px auto;padding:22px 0;border-top:1px solid var(--rule);font-size:13px;color:var(--ink-2)}.sr{position:absolute;width:1px;height:1px;overflow:hidden;clip-path:inset(50%)}.c-boots{color:var(--boots)}.c-swords{color:var(--swords)}.c-influence{color:var(--purple)}.c-coin{color:var(--coin)}.c-bolt{color:var(--bolt)}.gives{display:flex;gap:12px;flex-wrap:wrap;font-weight:600;font-variant-numeric:tabular-nums}.gives>span{display:inline-flex;align-items:center;gap:4px}
.setup{max-width:650px;margin:5vh auto;padding:28px;background:var(--marble);border:1px solid var(--rule);border-radius:10px;display:grid;gap:22px}.setup h1{font-size:38px}.setup .seat-row{display:grid;grid-template-columns:1fr 120px;gap:12px;margin-top:10px}.setup label{display:grid;gap:5px}.setup details{color:var(--ink-2)}.setup details>label{margin-top:12px}.setup .buttons{justify-content:space-between}
.play{background:var(--fair);transition:background .4s}.play[data-sky=dusk]{background:var(--dusk)}.play[data-sky=storm]{background:var(--storm)}.table{height:100dvh;padding:12px 18px;display:grid;grid-template-columns:minmax(0,1fr) 340px;grid-template-rows:48px minmax(0,1fr) 220px;gap:10px 16px;max-width:1600px;margin:auto}.topbar{grid-column:1/-1;display:flex;align-items:center;gap:20px;min-width:0;border-bottom:1px solid rgba(86,96,112,.25);padding-bottom:8px}.topbar .wm{font-size:19px}.topbar a{text-decoration:none}.roundline{font-family:var(--display);font-size:18px;letter-spacing:.07em}.topbar .altar{margin-left:auto;display:flex;align-items:center;gap:5px;font-size:12px;flex-wrap:wrap}.cube{display:inline-block;width:10px;height:10px;border-radius:2px;background:var(--colour);border:1px solid rgba(0,0,0,.2)}.play[data-sky=dusk] .topbar,.play[data-sky=storm] .topbar,.play[data-sky=dusk] .map-caption,.play[data-sky=storm] .map-caption{color:#EEF0F4}.map-area{position:relative;min-width:0;min-height:0;display:grid;grid-template-rows:minmax(0,1fr) 24px}.map-area>svg{width:100%;height:100%;overflow:visible}.map-caption{text-align:center;font-size:12px;color:var(--ink-2)}.hex{cursor:pointer}.hex .ground{stroke:var(--sky);stroke-width:2;fill:#E9DDA6}.hex.hills .ground{fill:#C9C1B4}.hex.forest .ground{fill:#A9C4A0}.hex.town .ground,.hex.capital .ground,.hex.stronghold .ground{fill:#E6DCD0}.hex .ring{fill:none;stroke:var(--colour);stroke-width:3}.hex.selected .ground{stroke:var(--bolt);stroke-width:3}.hex.reachable .ground{stroke:var(--bolt);stroke-dasharray:4 3}.hex.highlight .ground{stroke:var(--bolt);stroke-width:5}.hex text{font-family:var(--ui);pointer-events:none;text-anchor:middle;fill:#1A1D26}.hex .hex-name{font-size:7px}.hex .counter{fill:var(--colour);stroke:var(--marble);stroke-width:1.5}.hex .counter-text{fill:#FBFBF9;font-size:10px;font-weight:700}.hex .token{fill:var(--marble);stroke:var(--ink-2)}.hex .boot-cost{font-size:10px;font-weight:700;fill:var(--boots)}.neutral{filter:grayscale(1)}.road-line{stroke:var(--boots);stroke-width:3;stroke-dasharray:2 5}.side{display:flex;flex-direction:column;gap:8px;overflow:auto;min-height:0}.panel{background:var(--marble);border:1px solid var(--rule);border-radius:8px;padding:10px 12px;color:var(--ink)}.panel h2{font-size:20px;margin-bottom:6px}.general{display:grid;grid-template-columns:15px 1fr auto;gap:6px;font-size:12px;padding:4px 0}.general.active{font-weight:700}.general.out{opacity:.55;text-decoration:line-through}.device{display:inline-grid;place-items:center;width:14px;height:16px;background:var(--colour);color:white;font-size:10px;clip-path:polygon(0 0,100% 0,100% 65%,50% 100%,0 65%)}.resources{font-size:20px}.restricted{font-size:11px;color:var(--ink-2);margin-top:5px}.forum-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:5px}.forum-card{display:flex;flex-direction:column;align-items:flex-start;padding:6px;font-size:11px;text-align:left;min-height:54px;min-width:0}.forum-card strong{font-family:var(--display);font-size:14px;font-weight:400}.forum-card:disabled{opacity:.55}.reserve{display:flex;flex-wrap:wrap;gap:5px;margin-top:7px}.reserve button{font-size:11px;padding:5px}.log-list{font-size:12px;list-style:none;padding:0;margin:0;max-height:180px;overflow:auto}.log-list li{padding:5px 0;border-top:1px solid var(--rule)}.hand-area{grid-column:1/-1;min-width:0;display:grid;grid-template-columns:minmax(0,1fr) 176px;gap:14px;border-top:1px solid rgba(86,96,112,.25);padding-top:10px}.hand{display:flex;gap:9px;overflow-x:auto;overflow-y:hidden;align-items:stretch;padding:3px}.card{--cw:133px;width:var(--cw);flex:none;padding:calc(var(--cw)*.06);display:grid;grid-template-rows:17px 55px auto 14px 25px 1fr;gap:2px;background:var(--marble);color:var(--ink);border:1px solid var(--rule);border-radius:7px;cursor:pointer;box-shadow:0 4px 12px -9px #1A1D26}.card:hover{border-color:var(--ink)}.card-top{display:flex;justify-content:space-between;font-weight:600;font-size:12px}.card-top small{font-size:9px;font-weight:400;color:var(--ink-2)}.card-art{display:grid;place-items:center;min-height:0}.card-art img{height:55px;width:auto;max-width:100%}.card-art .family{width:35px;height:35px;color:var(--ink-2)}.card-name{font-size:16px;line-height:1.05}.card-family{font-size:9px;color:var(--ink-2)}.card .gives{border-block:1px solid var(--rule);padding:3px 0;font-size:13px}.card-text{font-size:10px;line-height:1.3;color:var(--ink-2)}.hand-controls{display:flex;flex-direction:column;gap:6px;justify-content:center}.hand-controls small{font-size:11px;color:var(--ink-2)}.play[data-sky=storm] .hand-controls small{color:#EEF0F4}.hand-controls button{font-size:12px;padding:7px}.tabs{display:none}.waiting{padding:15px;font-family:var(--display);font-size:23px}.empty-hand{color:var(--ink-2);padding:25px}.pass{height:100dvh;display:grid;place-content:center;justify-items:center;gap:22px;padding:24px;text-align:center}.pass h1{font-size:44px}.pass p{max-width:42ch}.pass .piece{height:180px;width:180px}.pass .wm{font-size:24px}.finish{color:#EEF0F4;background:var(--storm)}.finish .button{color:var(--ink)}
dialog{width:min(600px,calc(100vw - 24px));max-height:calc(100dvh - 32px);overflow:auto;border:1px solid var(--rule);border-radius:10px;padding:24px;background:var(--marble);color:var(--ink);box-shadow:0 20px 80px #0005}dialog::backdrop{background:#1A1D2690}dialog h2{font-size:29px;margin-bottom:14px}dialog .buttons{margin-top:18px}dialog p{color:var(--ink-2)}dialog label{display:flex;align-items:center;gap:10px;margin:9px 0}dialog .choices{display:flex;flex-wrap:wrap;gap:8px}.move-facts{display:flex;gap:20px;flex-wrap:wrap;margin:15px 0}.move-facts b{display:block;font-size:24px}.move-facts span{font-size:12px}.card-large .card{--cw:260px;margin:auto;grid-template-rows:24px 150px auto 22px 34px 1fr;min-height:420px}.card-large .card-art img{height:150px}.card-large .card-name{font-size:29px}.card-large .card-text{font-size:15px}.card-large .card-family{font-size:13px}.card-large .gives{font-size:20px}.recap{max-height:320px;overflow:auto;list-style:none;padding:0}.recap li{border-top:1px solid var(--rule);padding:7px;font-size:13px}.recap li:focus,.recap li:hover{background:var(--sky)}.strike-draw{display:flex;gap:6px;align-items:center;padding:7px;border-bottom:1px solid var(--rule)}#notice{position:fixed;bottom:12px;left:50%;transform:translateX(-50%);background:var(--ink);color:var(--marble);border-radius:5px;max-width:90vw;padding:10px 15px;z-index:10}#notice:empty{display:none}.rulebook{max-width:900px;padding:35px 25px 70px;margin:auto}.rulebook h1{font-size:48px}.rulebook h2{font-size:30px;margin:40px 0 12px;border-top:1px solid var(--rule);padding-top:20px}.rulebook h3{font-size:25px}.rulebook li{margin-bottom:8px}.scroll{overflow:auto;max-width:100%}table{border-collapse:collapse;background:var(--marble);width:100%;font-size:14px}td,th{padding:10px;text-align:left;border-bottom:1px solid var(--rule)}th{font-size:12px;color:var(--ink-2)}
@media(prefers-color-scheme:dark){:root:not([data-theme=light]){--sky:#232A3A;--marble:#2E3648;--ink:#EEF0F4;--ink-2:#A6B0C0;--rule:#3D485D;--red:#E8665B;--blue:#76A3EC;--ochre:#E3AE4A;--green:#5CC4AA;--boots:#D29C6C;--swords:#BAC4D2;--purple:#CFA0D8;--coin:#E2B94E;--bolt:#FFD24A;color-scheme:dark}}
@media(max-width:760px){.mast{padding:18px 16px}.mast .wm{font-size:16px}.mast nav{font-size:12px;gap:12px}.door{grid-template-columns:1fr;padding:38px 24px 0;gap:5px}.pitch{gap:20px}.pitch h1{font-size:46px}.scene{max-width:380px;margin:auto}.front-footer{margin:25px 24px}.table{height:auto;min-height:100dvh;padding:8px;grid-template-columns:minmax(0,1fr);grid-template-rows:auto 320px 216px auto auto;gap:8px}.topbar{grid-column:1;flex-wrap:wrap;gap:5px 12px;padding-bottom:8px}.topbar .wm{font-size:16px}.roundline{font-size:14px}.topbar .altar{margin:0;width:100%;font-size:10px}.map-area{grid-row:2}.hand-area{grid-column:1;grid-row:3;grid-template-columns:minmax(0,1fr);grid-template-rows:156px 40px;padding-top:4px;gap:4px}.hand{gap:7px}.card{--cw:112px;grid-template-rows:14px 37px auto 11px 20px 1fr}.card-art img{height:37px}.card-art .family{height:27px;width:27px}.card-name{font-size:14px}.card-text{font-size:8px}.card-family{font-size:8px}.card .gives{font-size:11px;padding:2px}.hand-controls{flex-direction:row;gap:4px;justify-content:flex-start;align-items:center}.hand-controls button{font-size:11px;padding:7px}.hand-controls small{display:none}.tabs{display:flex;grid-row:4;gap:4px}.tabs button{flex:1;padding:8px 5px;font-size:12px}.tabs button.active{border-color:var(--ink);font-weight:600}.side{grid-row:5;overflow:visible}.side .panel{display:none}.side .panel.active{display:block}.forum-card{min-height:70px}.setup{margin:12px;padding:20px}.setup .wm{font-size:20px}.setup h1{font-size:32px}.rulebook{padding:24px 16px}.rulebook h1{font-size:37px}.card-large .card{grid-template-rows:24px 150px auto 22px 34px 1fr}.map-caption{font-size:10px}}
@media(prefers-reduced-motion:reduce){*,*::before,*::after{transition:none!important;animation:none!important;scroll-behavior:auto!important}}
@media(min-width:761px){.side .panel{padding:8px 10px;flex-shrink:0}.side .panel h2{line-height:1.15;margin-bottom:5px}.general{line-height:1.2;padding:2px 0;font-size:11.5px}.forum-card{min-height:42px;padding:4px}.forum-card strong{font-size:13px;line-height:1.1}.reserve button{padding:4px;font-size:10px}#manage{padding:5px 9px;font-size:12px}.resources{font-size:19px}.restricted{margin-bottom:3px}}
@keyframes reveal{from{opacity:0;transform:translateY(-4px)}to{opacity:1;transform:translateY(0)}}
.setup .seat-row{grid-template-columns:minmax(0,1fr) 110px}.setup .seat-row label{min-width:0}.setup input{width:100%;min-width:0}
@media(max-width:760px){.table{grid-template-rows:auto 320px 260px auto auto}.hand-area{grid-template-rows:200px 40px}.hand .card{--cw:133px;grid-template-rows:17px 50px auto 13px 23px 1fr}.hand .card-art img{height:50px}.hand .card-name{font-size:16px}.hand .card-family{font-size:9px}.hand .card-text{font-size:10px}.hand .card .gives{font-size:13px}}
.card{position:relative}.sr{left:0;top:0}
@media(min-width:761px){.side .panel h2{font-size:18px}.general{padding:1px 0}.general .device{width:12px;height:12px;font-size:8px}.forum-card strong{font-size:12px}.forum-card{min-height:40px}.restricted{font-size:10px}#manage{padding:4px 8px;font-size:11px}}
.miniatures{max-width:1100px;margin:40px auto;padding:24px;display:grid;grid-template-columns:1fr 1fr;gap:35px}.miniatures h1{font-size:54px;line-height:1.06}.miniatures p{max-width:42ch;color:var(--ink-2)}.miniatures label{display:flex;gap:14px;margin-top:22px;align-items:center}.miniatures figure{margin:0;text-align:center}.miniatures #model{height:390px;max-width:100%;object-fit:contain}.miniatures figcaption{font:27px var(--display);text-transform:capitalize}.model-list{grid-column:1/-1;display:flex;flex-wrap:wrap;gap:9px}.model-list button{text-transform:capitalize}@media(max-width:760px){.miniatures{grid-template-columns:minmax(0,1fr);margin:15px auto;gap:20px}.miniatures h1{font-size:42px}.miniatures #model{height:300px}.miniatures label{flex-wrap:wrap}}
.forum-card{gap:2px}.forum-card[aria-disabled=true],.reserve button[aria-disabled=true]{opacity:.55}
@media(min-width:761px){.panel[data-panel=turn]{position:relative}.panel[data-panel=turn] #actions{position:absolute;right:10px;top:7px}}
/* Expanded campaign table: the board scrolls independently at its natural scale. */
.table{max-width:none;grid-template-columns:minmax(0,1fr) 360px;grid-template-rows:102px minmax(0,1fr) 220px;padding:10px 16px;gap:10px 14px}
.topbar{gap:16px;padding:0 0 6px}.jupiter-watch{width:92px;height:95px;flex:none;position:relative;align-self:end}.jupiter-watch img{height:88px}.jupiter-watch>span{position:absolute;bottom:0;width:100%;text-align:center;font:10px var(--display);letter-spacing:.18em;color:var(--bolt)}.campaign-status{display:flex;flex-direction:column;gap:8px;min-width:0}.campaign-status .wm{font-size:20px}.roundline{font-size:14px}.capital-strip{display:flex;gap:15px;flex-wrap:wrap}.capital-status{display:flex;gap:5px;align-items:center;font-size:12px}.capital-status b{font-variant-numeric:tabular-nums}.capital-status.out{opacity:.5;text-decoration:line-through}.top-actions{margin-left:auto;display:flex;gap:10px;flex-wrap:wrap;align-items:center;justify-content:flex-end;max-width:355px}.top-actions .altar{font-size:11px;margin:0;gap:8px;justify-content:flex-end;width:100%}.top-actions .altar>span{display:inline-flex;align-items:center;gap:3px}.gazette-toggle{font-size:13px}.music-controls{display:flex;align-items:center;gap:7px}.music-controls button{font-size:12px;padding:7px 9px;white-space:nowrap}.music-controls label{display:flex;align-items:center}.music-controls input{width:63px;height:20px;padding:0;accent-color:var(--ink)}.music-controls [aria-pressed=true]{background:var(--ink);color:var(--marble)}
.map-area{grid-template-rows:32px minmax(0,1fr) 24px;overflow:hidden;border:1px solid #56607033;border-radius:9px}.map-toolbar{display:flex;justify-content:space-between;align-items:center;font-size:11px;padding:3px 7px;background:#FBFBF980;gap:8px}.map-toolbar button{padding:3px 7px;font-size:11px;white-space:nowrap}.map-scroll{overflow:auto;min-width:0;min-height:0;cursor:grab;overscroll-behavior:contain;touch-action:pan-x pan-y;scrollbar-color:var(--ink-2) transparent;scrollbar-width:thin}.map-scroll:active{cursor:grabbing}.map-scroll>svg{display:block;max-width:none;flex:none;user-select:none}.map-caption{font-size:11px;background:#FBFBF944;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;padding:3px}.hex .hex-name{font-size:11px;font-weight:600}.hex .terrain-label{font-size:10px;letter-spacing:.06em;fill:#566070}.hex .terrain-symbol{font-size:35px;fill:#566070;opacity:.45}.hex .hex-health{font-size:10px;font-weight:600}.hex .counter-text{font-size:12px}.hex .boot-cost{font-size:12px}.hex:focus-visible{outline:none}.hex:focus-visible .ground{stroke:var(--blue);stroke-width:4}.road-line{stroke-width:4}
.side{gap:0;overflow:hidden}.side .tabs{display:flex;flex:none;gap:5px;padding:0 0 7px}.tabs button{flex:1;font-size:12px;padding:6px}.tabs button.active{background:var(--ink);color:var(--marble);border-color:var(--ink)}.side .panel{display:none;min-height:0;overflow:auto;border-radius:7px;padding:10px}.side .panel.active{display:block}.side .panel h2{font-size:22px}.side h2 small{font:10px var(--ui);float:right;margin-top:8px;color:var(--ink-2)}.forum-grid,.reserve{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px;margin:0}.forum-grid .card,.reserve .card{--cw:158px;width:100%;min-height:243px;grid-template-rows:17px 57px minmax(32px,auto) 13px 26px 1fr;box-shadow:none}.forum-grid .card-text,.reserve .card-text{font-size:11px}.forum-grid .card-name,.reserve .card-name{font-size:17px}.forum-grid .card[aria-disabled=true],.reserve .card[aria-disabled=true]{opacity:.8}.forum-grid .card[aria-disabled=false],.reserve .card[aria-disabled=false]{border-color:var(--purple);box-shadow:inset 0 0 0 1px #6A2C7020}.empty-market{display:grid;place-items:center;border:1px dashed var(--rule);min-height:243px;color:var(--ink-2);font-size:12px}.reserve-heading{font-size:20px;margin:15px 0 8px}.general{padding:10px 0;border-bottom:1px solid var(--rule);grid-template-columns:16px minmax(0,1fr) auto;row-gap:7px}.general small{grid-column:2/-1;color:var(--ink-2);font-weight:400}.health-track{grid-column:2/-1;height:5px;background:var(--rule);overflow:hidden;border-radius:4px}.health-track span{display:block;height:100%}.hand-area{grid-template-columns:minmax(0,1fr) 224px}.hand-controls{gap:8px}.hand-controls .gives{font-size:15px;gap:13px}.action-pair{display:flex;gap:6px}.action-pair button{flex:1}.hand-controls small{font-size:12px}.restricted{font-size:12px}.side .panel[data-panel=turn]{position:static}
.draft-screen{max-width:1050px;margin:0 auto;padding:24px 30px 30px;min-height:100dvh}.draft-screen header{display:flex;align-items:center;justify-content:space-between;gap:15px;border-bottom:1px solid var(--rule);padding-bottom:18px}.draft-screen header a{text-decoration:none}.draft-heading{margin:24px 0 15px;text-align:center}.draft-heading h1{font-size:42px}.draft-heading .eyebrow{margin-bottom:8px}.draft-heading p{color:var(--ink-2)}.draft-progress{display:flex;justify-content:center;gap:10px;margin-bottom:20px}.draft-progress>span{display:grid;place-items:center;width:27px;height:27px;border:1px solid var(--rule);border-radius:50%;font-size:12px}.draft-progress .done{background:var(--green);color:var(--marble)}.draft-progress .current{border-color:var(--ink);background:var(--marble)}.draft-cards{display:flex;justify-content:center;gap:18px;padding:4px 4px 14px;overflow:auto}.draft-cards .card{--cw:220px;grid-template-rows:20px 100px 45px 18px 30px 1fr;min-height:315px}.draft-cards .card-art img{height:100px}.draft-cards .card-name{font-size:25px}.draft-cards .card-text{font-size:13px}.draft-cards .card-family{font-size:11px}.draft-cards .gives{font-size:17px}.draft-cards>.piece{width:220px;height:220px}.draft-deck{text-align:center;margin-top:8px}.draft-deck h2{font-size:24px}.draft-deck p{font-size:13px;margin:8px}.draft-deck p>span{margin-left:10px}.draft-deck>div{display:flex;justify-content:center;gap:6px;flex-wrap:wrap}.draft-deck>div>span{border:1px solid var(--rule);border-radius:5px;background:var(--marble);padding:4px 9px;font-size:12px}
@media(max-width:760px){
 .table{height:auto;min-height:100dvh;display:flex;flex-direction:column;padding:8px;gap:10px}.topbar{display:grid;grid-template-columns:66px minmax(0,1fr);gap:5px 10px;min-height:146px}.jupiter-watch{width:66px;height:86px;grid-row:1;align-self:center}.jupiter-watch img{height:80px}.campaign-status{gap:6px}.campaign-status .wm{font-size:17px}.roundline{font-size:12px}.capital-strip{gap:4px 12px}.capital-status{font-size:11px}.top-actions{grid-column:1/-1;display:flex;max-width:none;width:100%;margin:0;justify-content:space-between;gap:4px 8px}.top-actions .altar{width:auto;font-size:10px;margin-left:auto}.top-actions .altar>span:last-child{display:none}.music-controls input{width:45px}.music-controls button,.gazette-toggle{font-size:11px;padding:5px}.gazette-toggle span{display:none}.map-area{height:400px;flex:none;order:1;display:grid}.map-toolbar{font-size:10px}.map-caption{font-size:10px}.hand-area{order:2;display:flex;flex-direction:column;gap:8px;padding-top:8px;flex:none;height:302px}.hand{height:208px;min-height:208px}.hand-controls{display:grid;grid-template-columns:1fr 1fr;gap:5px}.hand-controls small{font-size:11px}.hand-controls>.gives{font-size:12px;gap:8px}.hand-controls>button{grid-column:1}.hand-controls>.action-pair:last-child{grid-column:2;grid-row:3}.hand-controls>.action-pair{grid-column:1/-1}.hand-controls button{padding:5px;font-size:11px}.side{order:3;overflow:visible;display:flex}.side .tabs{position:static}.side .panel{overflow:visible}.side .panel.active{display:block}.forum-grid .card,.reserve .card{--cw:160px;min-height:255px}.draft-screen{padding:16px 12px}.draft-screen header{flex-wrap:wrap;gap:10px}.draft-screen .wm{font-size:18px}.draft-heading h1{font-size:34px}.draft-heading{margin-top:20px}.draft-heading p{font-size:14px}.draft-cards{justify-content:flex-start;scroll-snap-type:x mandatory;gap:12px}.draft-cards .card{--cw:230px;scroll-snap-align:center;min-height:320px}.draft-deck p>span{display:block;margin:5px 0}.draft-screen header .music-controls{margin-left:auto}.draft-screen .music-controls input{width:45px}
}
.placement-screen{height:100dvh;display:grid;grid-template-rows:45px auto minmax(0,1fr);gap:12px;padding:18px 24px}.placement-screen>header{display:flex;justify-content:space-between;align-items:center;border-bottom:1px solid var(--rule);padding-bottom:10px}.placement-heading{text-align:center}.placement-heading h1{font-size:35px}.placement-heading p{margin:6px 0 10px;color:var(--ink-2);font-size:13px}.placement-heading .eyebrow{font-size:10px}.placement-order{display:flex;justify-content:center;align-items:center;gap:10px;font-size:12px;margin:10px}.placement-order .current{font-weight:600;background:var(--marble);border:1px solid var(--ink);padding:4px 12px;border-radius:5px}.placement-screen .map-area{height:auto;min-height:0}.placement-screen .hex.reachable .ground{stroke:#566070;stroke-width:2;stroke-dasharray:3 5}.placement-screen .hex.reachable:hover .ground{stroke:var(--green);stroke-width:4;stroke-dasharray:none}
@media(max-width:760px){.placement-screen{padding:12px 8px;grid-template-rows:auto auto minmax(300px,1fr);min-height:100dvh;height:auto}.placement-screen>header{flex-wrap:wrap;gap:9px}.placement-screen .wm{font-size:17px}.placement-heading h1{font-size:29px}.placement-order{gap:5px;font-size:10px}.placement-order .current{padding:4px 7px}.placement-screen .map-area{height:460px}.placement-screen .map-toolbar{font-size:10px}}
.country-overview{position:absolute;right:10px;bottom:34px;width:116px;height:118px;padding:3px 4px 18px;display:block;background:#FBFBF9E8;border:1px solid var(--rule);box-shadow:0 2px 10px #1A1D2620;z-index:1}.country-overview svg{width:100%;height:100%;display:block}.country-overview>span{position:absolute;bottom:2px;left:0;right:0;font-size:9px;color:var(--ink-2)}.country-overview:focus-visible{outline:3px solid var(--blue)}
@media(max-width:760px){.country-overview{width:82px;height:88px;right:7px;bottom:33px}}
.hex.plains .ground{fill:#E6DCD0}.hex.plains .terrain-label{fill:#566070;opacity:.65;font-size:10px}.hex.forest .terrain-label,.hex.hills .terrain-label,.hex.farmland .terrain-label{font-weight:600}
.hex .forest-stop{font-size:9px;fill:#1A1D26;font-weight:600}

.hex.river .ground,.hex.bridge .ground{fill:transparent}
.river-art path{fill:none;stroke-linecap:round}.river-bank{stroke:#E6DCD0;stroke-width:52;opacity:.6}.river-water{stroke:#2E5FA8;stroke-width:48}.river-ripples{stroke:#E3EBF1;stroke-width:2;opacity:.7}
.bridge-deck rect{fill:#E6DCD0;stroke:#7A4E2B;stroke-width:2}.bridge-deck path{stroke:#7A4E2B;stroke-width:2}.bridge-deck .bridge-rail{stroke-width:5}
.hex .crossing-cost{font-size:10px;font-weight:600;paint-order:stroke;stroke:#E3EBF1;stroke-width:4px;stroke-linejoin:round}.hex .river-endpoint{font-size:9px;fill:#566070;paint-order:stroke;stroke:#E3EBF1;stroke-width:3px}.hex.river .terrain-label,.hex.bridge .terrain-label{font-weight:600;paint-order:stroke;stroke:#E3EBF1;stroke-width:3px}

.river-bank,.river-water{stroke-linecap:butt!important}
.map-toolbar>span{overflow:hidden;text-overflow:ellipsis;white-space:nowrap;min-width:0}.map-toolbar #home-capital{flex:none}
@media(max-width:600px){.map-toolbar{gap:4px}.map-toolbar>span{font-size:10px}}

/* The campaign HUD floats above one uninterrupted, pannable map. */
.table{position:relative;display:block;height:100dvh;min-height:0;padding:0;overflow:hidden;isolation:isolate}
.table>.map-area{position:absolute;inset:0;height:100%;display:block;border:0;border-radius:0;overflow:hidden;z-index:0}
.table .map-scroll{position:absolute;inset:0;height:100%;width:100%;background:var(--fair)}
.play[data-sky=dusk] .table .map-scroll{background:var(--dusk)}.play[data-sky=storm] .table .map-scroll{background:var(--storm)}
.table .map-toolbar{position:absolute;left:232px;right:334px;top:82px;z-index:2;min-height:34px;border:1px solid var(--rule);border-radius:7px;background:#FBFBF9E8;padding:3px 6px}
.table .map-caption{position:absolute;left:232px;right:334px;bottom:238px;border-radius:5px;background:#FBFBF9DC;color:var(--ink-2)}
.table .country-overview{right:334px;bottom:272px;width:92px;height:96px;opacity:.9}
.table .topbar{position:absolute;z-index:3;top:14px;left:232px;right:14px;height:56px;min-height:0;display:flex;padding:8px 12px;border:1px solid var(--rule);border-radius:9px;background:#FBFBF9ED;color:var(--ink);box-shadow:0 4px 18px #1A1D2618}
.table .campaign-status{gap:2px}.table .campaign-status .wm{font-size:19px}.table .roundline{font-size:11px}.table .top-actions{display:flex;align-items:center;gap:8px;margin-left:auto;max-width:none}.table .top-actions .altar{width:auto;max-width:210px;font-size:10px;gap:4px}.table .music-controls input{width:55px}
.table .jupiter-watch{position:fixed;left:22px;top:10px;width:180px;height:128px;display:flex;align-items:center;justify-content:center;filter:drop-shadow(0 6px 12px #1A1D2630)}.table .jupiter-watch img{width:115px;height:118px;object-fit:contain}.table .jupiter-watch span{font-size:10px;background:#FBFBF9D9;border-radius:8px;padding:2px 9px}
.table .side{position:absolute;right:14px;top:82px;bottom:14px;width:306px;z-index:4;overflow:hidden;gap:6px;display:flex;flex-direction:column;filter:drop-shadow(0 5px 14px #1A1D2620)}
.table .side .tabs{display:flex;position:static;gap:3px;flex:none;padding:3px;background:#FBFBF9F2;border:1px solid var(--rule);border-radius:8px}.table .side .tabs button{font-size:11px;padding:7px;flex:1}.table .side #toggle-market{flex:0 0 28px}.table .side .panel{overflow:auto;background:#FBFBF9F2;backdrop-filter:blur(8px)}.table .side.collapsed{bottom:auto}.table .side.collapsed .panel{display:none}
.table .forum-grid .card,.table .reserve .card{--cw:130px;min-height:234px;grid-template-rows:17px 48px minmax(32px,auto) 13px 24px 1fr;padding:7px}.table .forum-grid .card-name,.table .reserve .card-name{font-size:16px}.table .forum-grid .card-text,.table .reserve .card-text{font-size:10px}
.opponent-hud{position:absolute;left:14px;top:151px;width:204px;display:grid;gap:9px;z-index:3}
.general-hud{display:flex;align-items:center;gap:8px;padding:8px;background:#FBFBF9ED;border:1px solid var(--rule);border-left:3px solid var(--general);border-radius:9px;box-shadow:0 4px 14px #1A1D261C;color:var(--ink)}.general-hud.current{box-shadow:0 0 0 2px var(--general),0 4px 14px #1A1D261C}.general-hud.out{opacity:.6}.general-avatar{flex:none;width:47px;height:62px;overflow:hidden}.general-avatar img{width:100%;height:100%;object-fit:contain}.general-info{min-width:0;flex:1;display:grid;gap:4px;font-size:11px}.general-info strong{white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.general-info .health-track{grid-column:auto;height:4px}.hud-health{font-size:10px;font-weight:600}.hud-wealth{display:flex;gap:12px;align-items:center;color:var(--ink-2);font-size:10px}.hud-wealth .ic{width:12px;height:12px;vertical-align:middle}.hud-wealth>.c-coin{display:flex;align-items:center;gap:4px}
.table .hand-area{position:absolute;left:232px;right:334px;bottom:14px;height:210px;display:block;padding:0;border:0;z-index:3;pointer-events:none}.table .hand{height:100%;min-height:0;pointer-events:auto;padding:4px;gap:8px;background:#FBFBF940;border-radius:9px;backdrop-filter:blur(3px)}.table .hand .card{--cw:128px;box-shadow:0 3px 10px #1A1D2628}.table .hand-controls{position:fixed;left:14px;bottom:14px;width:204px;display:flex;flex-direction:column;gap:7px;padding:10px;background:#FBFBF9F2;border:1px solid var(--rule);border-radius:10px;box-shadow:0 4px 18px #1A1D2628;pointer-events:auto;color:var(--ink)}.table .hand-controls .self-general{padding:0 0 8px;border:0;border-radius:0;background:none;box-shadow:none}.table .hand-controls small{color:var(--ink-2);font-size:10px}.table .hand-controls .gives{font-size:13px;gap:10px}.table .hand-controls button{font-size:11px;padding:6px}.table .empty-hand{background:#FBFBF9DB;border-radius:8px;align-self:flex-end;width:100%;font-size:12px;padding:16px}
@media(max-width:1000px) and (min-width:761px){.table .top-actions .altar{display:none}.table .campaign-status .wm{font-size:16px}.table .hand-area,.table .map-toolbar,.table .map-caption{left:196px;right:282px}.table .side{width:254px}.opponent-hud,.table .hand-controls{width:168px}.table .topbar{left:196px}.table .jupiter-watch{width:154px;left:14px}.table .country-overview{right:282px}}
@media(max-width:760px){
 .table{height:100dvh;min-height:0}.table .topbar{left:78px;right:8px;top:8px;height:81px;display:grid;grid-template-columns:1fr;padding:6px 8px;gap:3px}.table .campaign-status{display:flex;flex-direction:row;justify-content:space-between;align-items:center;gap:4px}.table .campaign-status .wm{font-size:12px}.table .campaign-status .mark{width:18px;height:18px}.table .roundline{font-size:8px;letter-spacing:0;white-space:nowrap}.table .top-actions{grid-column:auto;width:100%;margin:0;gap:4px;flex-wrap:wrap}.table .top-actions .altar{font-size:9px;margin-left:auto;gap:3px}.table .top-actions .altar>span:last-child{display:none}.table .music-controls input{width:32px}.table .music-controls button,.table .gazette-toggle{font-size:10px;padding:4px}.table .jupiter-watch{left:4px;top:7px;width:70px;height:84px}.table .jupiter-watch img{width:65px;height:77px}.table .jupiter-watch span{font-size:7px;padding:1px 4px}
 .table .map-toolbar{left:8px;right:8px;top:98px;min-height:34px}.table .map-caption{left:8px;right:8px;bottom:268px;font-size:9px}.table .map-toolbar>span{font-size:9px}.table .country-overview{right:8px;bottom:297px;width:67px;height:71px}
 .opponent-hud{left:8px;top:143px;width:104px;gap:6px}.general-hud{gap:4px;padding:5px;border-left-width:2px}.general-avatar{width:25px;height:43px}.general-info{font-size:10px;gap:3px}.hud-health,.hud-wealth{font-size:8px}.hud-wealth{gap:4px;flex-wrap:wrap}.hud-wealth .ic{width:10px;height:10px}
 .table .side{top:143px;right:8px;bottom:285px;width:262px;max-width:calc(100vw - 16px);z-index:5}.table .side.collapsed{bottom:auto;width:214px}.table .side .tabs button{font-size:10px;padding:6px 4px}.table .side .panel{min-height:0}.table .forum-grid .card,.table .reserve .card{--cw:112px;min-height:234px}.table .side .panel h2{font-size:19px}.table .side h2 small{font-size:9px}
 .table .hand-area{left:158px;right:8px;bottom:8px;height:246px}.table .hand{height:246px;align-items:stretch;scroll-snap-type:x mandatory}.table .hand .card{--cw:150px;scroll-snap-align:start;grid-template-rows:17px 61px 36px 14px 25px 1fr}.table .hand .card-text{font-size:11px}.table .hand-controls{left:8px;bottom:8px;width:142px;padding:8px;gap:6px}.table .hand-controls .self-general{padding-bottom:5px}.table .self-general .general-avatar{width:32px;height:44px}.table .hand-controls .gives{font-size:11px;gap:7px;flex-wrap:wrap}.table .hand-controls button{font-size:10px;padding:7px 3px;min-height:30px}.table .hand-controls small{font-size:9px}.table .action-pair{gap:4px}.table .empty-hand{font-size:11px;padding:12px}
}

.hex.river .ground,.hex.bridge .ground{stroke:#FBFBF9;stroke-width:2}.hex.river.reachable .ground,.hex.bridge.reachable .ground{stroke:var(--bolt)}.hex.river.selected .ground,.hex.bridge.selected .ground{stroke:var(--bolt)}.table .hand-controls{align-items:stretch}.table .side .panel{flex-shrink:1}

/* Compact map and utility controls leave the country unobstructed. */
.hud-icon{display:inline-grid;place-items:center;width:34px;height:34px;padding:7px;flex:none}.hud-icon svg{display:block;width:18px;height:18px;fill:none;stroke:currentColor;stroke-width:1.7;stroke-linecap:round;stroke-linejoin:round}
.table .map-tools{position:absolute;right:334px;top:82px;display:flex;align-items:center;gap:6px;z-index:2}.map-tools button{background:#FBFBF9F2;box-shadow:0 2px 8px #1A1D2612;min-height:34px}.table .hand-controls>#inspect-deck{width:100%}
#dialog .music-controls{justify-content:space-between;gap:20px;margin:18px 0}#dialog .music-controls input{width:140px}
@media(min-width:761px) and (max-width:1000px){.table .map-tools{right:282px}}
@media(max-width:760px){.table .map-tools{right:8px;top:auto;bottom:274px;gap:4px}.table .map-tools .hud-icon{width:32px;height:32px}.table .map-tools button{min-height:32px}.table .country-overview{bottom:320px}.table .top-actions .hud-icon{width:30px;height:30px;padding:6px}#dialog .music-controls input{width:110px}}


.table .jupiter-watch{left:12px;top:0;width:200px;height:184px}.table .jupiter-watch img{width:180px;height:180px}.table .opponent-hud{top:194px}
@media(max-width:760px){.table .jupiter-watch{left:0;top:0;width:108px;height:126px}.table .jupiter-watch img{width:108px;height:122px}.table .topbar{left:110px}.table .campaign-status{flex-wrap:wrap;justify-content:flex-start}.table .campaign-status .wm{font-size:12px}.table .roundline{font-size:9px}.table .opponent-hud{top:143px}.table .top-actions{flex-wrap:nowrap}.table .top-actions .altar{max-width:150px}}

/* Both Market columns fit on screen; tap a card to read its full details. */
.table .side .panel[data-panel=forum].active{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:8px;overflow:hidden;min-height:0;height:100%;padding:8px}.table .side.collapsed .panel[data-panel=forum]{display:none}
.table .forum-grid,.table .reserve{display:grid;grid-template-columns:minmax(0,1fr);grid-template-rows:repeat(var(--market-slots),minmax(0,1fr));gap:6px;min-width:0;min-height:0;height:100%;overflow:hidden;padding:0}
.table .forum-grid>.card,.table .reserve>.card{--cw:130px;width:100%;min-width:0;min-height:0;height:100%;padding:6px;display:grid;grid-template-columns:32px minmax(0,1fr);grid-template-rows:minmax(0,1fr) 16px;gap:3px 5px;overflow:hidden;align-items:center}
.table .forum-grid .card-top,.table .reserve .card-top{grid-column:1;grid-row:2;display:flex;gap:2px;font-size:10px;justify-content:center;white-space:nowrap}
.table .forum-grid .card-art,.table .reserve .card-art{grid-column:1;grid-row:1;min-height:0;height:100%}.table .forum-grid .card-art img,.table .reserve .card-art img{height:100%;max-height:44px;width:100%;object-fit:contain}.table .forum-grid .card-art .family,.table .reserve .card-art .family{width:25px;height:25px}
.table .forum-grid .card-name,.table .reserve .card-name{grid-column:2;grid-row:1;font-size:12px;line-height:1.05;overflow-wrap:anywhere}.table .forum-grid .gives,.table .reserve .gives{grid-column:2;grid-row:2;border:0;padding:0;font-size:10px;gap:4px;flex-wrap:nowrap}.table .forum-grid .card-family,.table .forum-grid .card-text,.table .reserve .card-family,.table .reserve .card-text{display:none}
.table .empty-market{min-height:0;height:100%;font-size:20px;color:var(--ink-2);border-radius:7px}
@media(max-width:760px){.table .side .panel[data-panel=forum].active{gap:6px;padding:6px}.table .forum-grid,.table .reserve{gap:4px}.table .forum-grid>.card,.table .reserve>.card{padding:4px;grid-template-columns:25px minmax(0,1fr);grid-template-rows:minmax(0,1fr) 12px;gap:2px 4px}.table .forum-grid .card-name,.table .reserve .card-name{font-size:11px}.table .forum-grid .card-art .family,.table .reserve .card-art .family{width:20px;height:20px}.table .forum-grid .card-top,.table .reserve .card-top,.table .forum-grid .gives,.table .reserve .gives{font-size:9px}}

/* Every card uses the same three corner meanings. */
.card,.hand .card,.draft-cards .card,.card-large .card{position:relative;padding-top:29px;padding-bottom:25px;grid-template-columns:minmax(0,1fr);grid-template-rows:55px auto 13px minmax(0,1fr);gap:3px}
.card>.card-resources,.table .forum-grid .card-resources,.table .reserve .card-resources{position:absolute;top:6px;left:6px;right:34px;display:flex;align-items:center;justify-content:flex-start;border:0;padding:0;margin:0;gap:5px;font-size:12px;line-height:1;flex-wrap:nowrap;grid-area:auto}
.card-vp{position:absolute;top:5px;right:6px;display:flex;align-items:baseline;gap:2px;font:600 12px var(--ui);color:var(--coin);white-space:nowrap}.card-vp small{font-size:8px;letter-spacing:.02em}
.card-cost{position:absolute;bottom:6px;right:6px;display:flex;align-items:center;gap:3px;font:600 12px var(--ui);line-height:1}.card-omen{position:absolute;bottom:6px;left:6px;font-size:12px;line-height:1}
.draft-cards .card{grid-template-rows:90px 45px 16px minmax(0,1fr)}.draft-cards .card-resources,.draft-cards .card-vp,.draft-cards .card-cost{font-size:15px}.draft-cards .card-art img{height:90px}.card-large .card{grid-template-rows:150px auto 18px minmax(0,1fr);min-height:390px}.card-large .card-resources,.card-large .card-vp,.card-large .card-cost{font-size:17px}.card-large .card-vp small{font-size:10px}
.table .forum-grid>.card,.table .reserve>.card{grid-template-columns:27px minmax(0,1fr);grid-template-rows:minmax(0,1fr);padding:20px 5px 17px;gap:4px}
.table .forum-grid .card-art,.table .reserve .card-art{grid-column:1;grid-row:1;max-height:38px}.table .forum-grid .card-name,.table .reserve .card-name{grid-column:2;grid-row:1;font-size:11px}.table .forum-grid .card-resources,.table .reserve .card-resources{top:5px;left:5px;right:30px;font-size:9px;gap:3px}.table .forum-grid .card-vp,.table .reserve .card-vp{top:4px;right:5px;font-size:10px}.table .forum-grid .card-vp small,.table .reserve .card-vp small{font-size:7px}.table .forum-grid .card-cost,.table .reserve .card-cost{bottom:5px;right:5px;font-size:10px}.table .forum-grid .card-omen,.table .reserve .card-omen{bottom:5px;left:5px;font-size:10px}
/* Jupiter owns the round, altar and urn. The right edge is only the Market. */
.table .topbar{left:auto;right:14px;top:14px;width:auto;height:auto;min-height:0;padding:0;border:0;background:none;box-shadow:none;display:block;pointer-events:none}.table .top-actions{pointer-events:auto;display:flex;gap:6px;width:auto;margin:0}.table .jupiter-watch{display:flex;flex-direction:column;justify-content:flex-start;height:auto;gap:0;pointer-events:none;filter:drop-shadow(0 3px 6px #1A1D2620)}.table .jupiter-watch img{flex:none}
.table .jupiter-status{width:204px;display:flex;flex-direction:column;align-items:center;gap:3px;color:var(--ink);text-shadow:0 1px 3px #FBFBF9,0 0 5px #FBFBF9;pointer-events:auto}.table .jupiter-status span{position:static;width:auto;padding:0;background:none;border-radius:0;letter-spacing:0;font-family:var(--ui);color:inherit}.table .jupiter-status .roundline{font-size:11px;font-weight:600;white-space:nowrap}.table .jupiter-status .altar{display:flex;justify-content:center;align-items:center;gap:5px;margin:0;font-size:10px;flex-wrap:nowrap}.table .jupiter-status .altar>span{display:inline-flex;align-items:center;gap:2px}.table .jupiter-status .urn-count{font-size:10px}
.table .opponent-hud{top:246px;gap:6px}.opponent-hud .general-hud{padding:5px 6px;gap:6px}.opponent-hud .general-avatar{width:34px;height:43px}.opponent-hud .general-info{gap:2px}.hud-vp{color:var(--coin);font-weight:700}.gazette-turn{border-bottom:1px solid var(--rule);padding-bottom:12px;margin-bottom:12px}.gazette-turn h3{font-size:22px}.gazette-turn p{font-size:12px;margin:8px 0}.score-table{max-width:640px;width:100%;overflow:auto;color:var(--ink)}.score-table small{display:block;font-size:10px;font-weight:400;color:var(--ink-2)}.score-table td,.score-table th{text-align:center}.score-table th:first-child{text-align:left}.score-winner{box-shadow:inset 3px 0 var(--coin)}.scored-finish{height:auto;min-height:100dvh;gap:18px}.scored-finish h1{font-size:36px;max-width:26ch}
@media(max-width:760px){.table .topbar{left:auto;right:8px;top:8px;display:block;height:auto}.table .jupiter-status{width:108px;gap:2px}.table .jupiter-status .roundline{font-size:8px}.table .jupiter-status .altar{font-size:8px;gap:3px}.table .jupiter-status .cube{width:6px;height:6px}.table .jupiter-status .urn-count{font-size:8px}.table .opponent-hud{top:184px}.opponent-hud .general-avatar{width:23px;height:38px}.opponent-hud .general-hud{padding:5px 4px;gap:3px}.opponent-hud .hud-health{font-size:7px}.table .forum-grid>.card,.table .reserve>.card{padding:15px 4px 13px;grid-template-columns:19px minmax(0,1fr);gap:3px}.table .forum-grid .card-name,.table .reserve .card-name{font-size:10px}.table .forum-grid .card-art .family,.table .reserve .card-art .family{width:17px;height:17px}.table .forum-grid .card-resources,.table .reserve .card-resources{font-size:8px;top:4px;left:4px;right:26px;gap:2px}.table .forum-grid .card-vp,.table .reserve .card-vp{font-size:8px;top:3px;right:4px}.table .forum-grid .card-vp small,.table .reserve .card-vp small{font-size:6px}.table .forum-grid .card-cost,.table .reserve .card-cost{bottom:3px;right:4px;font-size:9px}.table .forum-grid .card-omen,.table .reserve .card-omen{bottom:3px;left:4px;font-size:9px}.scored-finish{padding:20px 10px}.scored-finish h1{font-size:28px}.score-table td,.score-table th{padding:9px 6px;font-size:12px}}

/* Bare HUD controls, with round above Jupiter and literal waiting cubes. */
.table .topbar>.roundline{position:fixed;top:14px;left:18px;font:600 15px var(--ui);letter-spacing:0;color:var(--ink);text-shadow:0 1px 3px var(--marble)}
.table .jupiter-watch{top:34px}.table .jupiter-status{flex-direction:row;justify-content:center;align-items:flex-start;gap:7px}
.table .jupiter-status .urn-count{display:grid;place-items:center;width:28px;height:28px;flex:none;border:1px solid var(--ink-2);border-radius:50%;font-size:12px;font-weight:600;background:var(--marble);text-shadow:none}
.table .jupiter-status .altar{flex-wrap:wrap;max-width:160px;max-height:32px;overflow:auto;gap:3px;padding-top:4px}.table .jupiter-status .altar>span{display:contents}.table .jupiter-status .cube{width:8px;height:8px;flex:none}
.table .top-actions .hud-icon{background:transparent;border-color:transparent;box-shadow:none}.table .top-actions .hud-icon:hover{background:#FBFBF980}.table .side{top:62px}
@media(max-width:760px){.table .topbar>.roundline{top:12px;left:10px;font-size:13px}.table .jupiter-watch{top:34px}.table .jupiter-status{gap:4px}.table .jupiter-status .urn-count{width:23px;height:23px;font-size:10px}.table .jupiter-status .altar{max-width:76px;max-height:23px;gap:2px;padding-top:3px}.table .jupiter-status .cube{width:6px;height:6px}.table .opponent-hud{top:192px}.table .side{top:143px}}
.table .jupiter-status .urn-count{position:absolute;left:17px;top:150px;width:24px;height:24px;border-color:#56607055;background:#FBFBF9B3;color:var(--ink-2);font-size:10px;font-weight:400;text-shadow:none}
@media(max-width:760px){.table .jupiter-status .urn-count{left:5px;top:100px;width:21px;height:21px;font-size:9px}}

/* Played cards and spendable resources sit directly below the Market. */
.table .side .panel[data-panel=forum].active{height:auto;flex:1;min-height:0}.table .side .play-area{flex:0 0 152px;overflow:hidden;padding:9px;display:flex;flex-direction:column;gap:7px}
.play-area-heading{display:flex;align-items:center;justify-content:space-between;gap:8px;font-size:11px;color:var(--ink-2)}.turn-resources{font-size:15px;gap:10px;color:var(--ink)}.played-cards{display:flex;overflow-x:auto;overflow-y:hidden;gap:5px;min-height:0;flex:1}.play-area-empty{align-self:center;font-size:11px;color:var(--ink-2);line-height:1.6}
.played-cards .card{--cw:88px;padding:23px 5px 19px;grid-template-rows:30px auto;gap:3px}.played-cards .card-art img{height:30px}.played-cards .card-art .family{width:24px;height:24px}.played-cards .card-name{font-size:10px}.played-cards .card-family,.played-cards .card-text{display:none}.played-cards .card-resources{font-size:8px;gap:2px;right:25px;left:4px}.played-cards .card-vp{font-size:9px;right:4px}.played-cards .card-vp small{font-size:6px}.played-cards .card-cost{font-size:9px;right:4px;bottom:4px}.played-cards .card-omen{font-size:9px;bottom:4px;left:4px}
[data-buy],[data-reserve]{touch-action:none;user-select:none}.play-area.drop-ready{outline:2px dashed var(--purple);outline-offset:-3px}.play-area.drop-over{background:#E4DDF0!important}.card-drag-ghost{position:fixed;z-index:1000;width:110px;opacity:.85;pointer-events:none;box-shadow:0 5px 20px #1A1D2655}
.table .jupiter-status .urn-count{left:42px;top:145px}
@media(max-width:760px){.table .side{top:60px}.table .side .play-area{flex-basis:116px;padding:7px;gap:5px}.play-area-heading{font-size:10px}.turn-resources{font-size:12px;gap:8px}.played-cards .card{--cw:78px;grid-template-rows:16px auto;padding-top:20px;padding-bottom:16px}.played-cards .card-art img{height:16px}.played-cards .card-art .family{width:16px;height:16px}.played-cards .card-name{font-size:9px}.play-area-empty{font-size:10px}.table .jupiter-status .urn-count{left:17px;top:98px}}
.table .topbar{display:flex;align-items:center;gap:14px}.table .topbar>.roundline{position:static;font-size:13px;white-space:nowrap}.table .jupiter-watch{top:4px}
@media(max-width:760px){.table .topbar{display:flex;gap:8px}.table .topbar>.roundline{font-size:11px}.table .jupiter-watch{top:4px}.table .opponent-hud{top:162px}}
.table .hand{gap:0;padding:10px 4px 4px;align-items:stretch}.table .hand .card{position:relative;transition:transform .12s ease,box-shadow .12s ease}.table .hand .card+.card{margin-left:-38px}.table .hand .card:hover,.table .hand .card:focus-visible{z-index:2;transform:translateY(-6px);box-shadow:0 4px 16px #1A1D2655}
@media(max-width:760px){.table .hand .card+.card{margin-left:-42px}}
@media(prefers-reduced-motion:reduce){.table .hand .card{transition:none}}
.table .topbar{z-index:8}.table .jupiter-watch{left:-12px;top:12px;width:180px}.table .jupiter-status .altar{position:absolute;left:178px;top:48px;width:72px;max-height:96px;justify-content:flex-start}.table .jupiter-status .urn-count{left:44px;top:145px}
@media(max-width:760px){.table .jupiter-watch{left:0;top:12px;width:108px}.table .jupiter-status .altar{left:104px;top:30px;width:10px;max-height:88px;gap:3px}.table .jupiter-status .urn-count{left:17px;top:98px}}
/* Nine square thumbnails: six rotating cards, with permanent cards beside them. */
.table{--hand-height:210px}.table .hand-area,.table .hand{height:var(--hand-height)}.table .side .play-area{flex:0 0 var(--hand-height);margin-top:auto}
.table .side .panel[data-panel=forum].active{--market-gap:6px;flex:none;align-self:flex-end;width:min(100%,calc(100dvh - 82px - var(--hand-height)));aspect-ratio:1;height:auto;padding:6px;gap:var(--market-gap);grid-template-columns:calc((100% - 2 * var(--market-gap)) / 3 * 2 + var(--market-gap)) minmax(0,1fr)}
.table .forum-grid{grid-template-columns:repeat(2,minmax(0,1fr));grid-template-rows:repeat(3,minmax(0,1fr));gap:var(--market-gap)}.table .reserve{grid-template-rows:repeat(3,minmax(0,1fr));gap:var(--market-gap)}
.table .forum-grid>.card,.table .reserve>.card{grid-template-columns:minmax(0,1fr);grid-template-rows:minmax(0,1fr) auto;padding:20px 4px 17px;gap:2px;text-align:center}.table .forum-grid .card-art,.table .reserve .card-art{grid-column:1;grid-row:1;max-height:none}.table .forum-grid .card-name,.table .reserve .card-name{grid-column:1;grid-row:2;font-size:10px}.table .forum-grid .card-art img,.table .reserve .card-art img{max-height:38px}
@media(max-width:760px){.table{--hand-height:246px}.table .side .panel[data-panel=forum].active{--market-gap:4px;padding:4px;width:min(100%,calc(100dvh - 351px - var(--hand-height)))}.table .forum-grid>.card,.table .reserve>.card{padding:16px 3px 14px}.table .forum-grid .card-name,.table .reserve .card-name{font-size:9px}.table .forum-grid .card-art img,.table .reserve .card-art img{max-height:26px}}
.table .jupiter-watch{left:0;top:22px}.table .jupiter-status .altar{left:174px;width:52px}
@media(max-width:760px){.table .jupiter-watch{left:4px;top:20px}.table .jupiter-status .altar{left:100px;width:10px}}
.played-cards .card{--cw:128px;grid-template-rows:38px auto 11px minmax(0,1fr);padding:24px 6px 20px}.played-cards .card+.card{margin-left:-28px}.played-cards .card:hover,.played-cards .card:focus-visible{z-index:2}.played-cards .card-art img{height:38px}.played-cards .card-art .family{width:28px;height:28px}.played-cards .card-name{font-size:13px}.played-cards .card-family,.played-cards .card-text{display:block}.played-cards .card-text{font-size:10px}.table .top-actions{filter:drop-shadow(0 1px 2px var(--marble))}
@media(min-width:761px){.table{--right-hud-width:min(420px,calc(100dvh - 82px - var(--hand-height)))}.table .side{width:var(--right-hud-width)}.table .hand-area{right:calc(var(--right-hud-width) + 28px)}.table .country-overview{right:calc(var(--right-hud-width) + 28px)}.table .forum-grid .card-name,.table .reserve .card-name{font-size:12px}.table .forum-grid .card-art img,.table .reserve .card-art img{max-height:60px}}
.table .side .panel[data-panel=forum].active{width:100%}
@media(max-width:760px){.table .side{top:48px;bottom:282px}}
/* Wider Market thumbnails keep both columns visible above a full-height play area. */
.table .side .panel[data-panel=forum].active{flex:1;aspect-ratio:auto;min-height:0;grid-template-columns:repeat(2,minmax(0,1fr))}
.table .forum-grid,.table .reserve{display:grid;grid-template-columns:minmax(0,1fr);grid-template-rows:repeat(var(--market-slots),minmax(0,1fr));gap:var(--market-gap);overflow:hidden}
.table .forum-grid>.card,.table .forum-grid>.empty-market,.table .reserve>.card{width:100%;height:100%;aspect-ratio:auto;min-height:0}
.table .forum-grid>.card,.table .reserve>.card{grid-template-columns:36px minmax(0,1fr);grid-template-rows:minmax(0,1fr);padding:20px 6px 17px;gap:6px;text-align:left}.table .forum-grid .card-art,.table .reserve .card-art{grid-column:1;grid-row:1}.table .forum-grid .card-name,.table .reserve .card-name{grid-column:2;grid-row:1;font-size:12px}.table .forum-grid .card-art img,.table .reserve .card-art img{max-height:36px}.table .forum-grid .card-art .family,.table .reserve .card-art .family{width:26px;height:26px}
.table .side .play-area{flex-basis:var(--hand-height)}
@media(min-width:761px){.table{--right-hud-width:min(420px,34vw)}}
@media(max-width:760px){.table{--hand-height:210px}.table .side{width:262px;bottom:calc(var(--hand-height) + 24px)}.table .side .play-area{flex-basis:var(--hand-height)}.table .forum-grid>.card,.table .reserve>.card{grid-template-columns:23px minmax(0,1fr);padding:15px 4px 13px;gap:3px}.table .forum-grid .card-name,.table .reserve .card-name{font-size:10px}.table .forum-grid .card-art img,.table .reserve .card-art img{max-height:24px}.table .forum-grid .card-art .family,.table .reserve .card-art .family{width:20px;height:20px}}

/* Narrow the Market itself to two square-card columns; keep the play area wide. */
.table .side{container-type:size;--market-padding:6px;--market-gap:6px;--hud-gap:6px}
.table .side .panel[data-panel=forum].active{padding:var(--market-padding);width:calc((100cqh - var(--hand-height) - var(--hud-gap) - 2px - 2 * var(--market-padding) - 5 * var(--market-gap)) / 3 + 2px + 2 * var(--market-padding) + var(--market-gap))}
.table .forum-grid>.card,.table .reserve>.card{grid-template-columns:minmax(0,1fr);grid-template-rows:minmax(0,1fr) auto;padding:16px 3px 14px;gap:1px;text-align:center}.table .forum-grid .card-art,.table .reserve .card-art{grid-column:1;grid-row:1}.table .forum-grid .card-name,.table .reserve .card-name{grid-column:1;grid-row:2;font-size:8px}.table .forum-grid .card-art img,.table .reserve .card-art img{max-height:20px}.table .forum-grid .card-art .family,.table .reserve .card-art .family{width:16px;height:16px}.table .forum-grid .card-resources,.table .reserve .card-resources{font-size:7px;gap:1px;left:3px;right:22px}.table .forum-grid .card-vp,.table .reserve .card-vp{right:3px;font-size:7px}.table .forum-grid .card-vp small,.table .reserve .card-vp small{font-size:5px}.table .forum-grid .card-cost,.table .reserve .card-cost{right:3px;bottom:3px;font-size:8px}
@media(max-width:760px){.table .side{--market-padding:4px;--market-gap:4px}.table .forum-grid>.card,.table .reserve>.card{padding:13px 2px 11px}.table .forum-grid .card-name,.table .reserve .card-name{font-size:7px}.table .forum-grid .card-art img,.table .reserve .card-art img{max-height:14px}.table .forum-grid .card-art .family,.table .reserve .card-art .family{width:12px;height:12px}.table .forum-grid .card-resources,.table .reserve .card-resources{top:3px;font-size:6px;right:18px}.table .forum-grid .card-vp,.table .reserve .card-vp{top:3px;font-size:6px}.table .forum-grid .card-cost,.table .reserve .card-cost{font-size:7px}.table .forum-grid .card-omen,.table .reserve .card-omen{font-size:7px}}
.table .forum-grid .card-name,.table .reserve .card-name{display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:2;overflow:hidden}.table .forum-grid .card-art .family,.table .reserve .card-art .family{max-height:100%}

.play-area-heading{justify-content:flex-end}.turn-resources{font-size:24px;gap:20px}
@media(max-width:760px){.turn-resources{font-size:20px;gap:16px}}
/* General panels share the width of the two-column Market panel. */
.table{--market-top:62px;--market-bottom:14px;--shared-market-padding:6px;--shared-market-gap:6px;--market-width:calc((100dvh - var(--market-top) - var(--market-bottom) - var(--hand-height) - 6px - 2px - 2 * var(--shared-market-padding) - 5 * var(--shared-market-gap)) / 3 + 2px + 2 * var(--shared-market-padding) + var(--shared-market-gap))}
.table .side .panel[data-panel=forum].active{width:var(--market-width)}.table .opponent-hud,.table .hand-controls{width:var(--market-width)}
@media(min-width:761px){.table .hand-area{left:calc(var(--market-width) + 28px)}}
@media(max-width:760px){.table{--market-top:48px;--market-bottom:calc(var(--hand-height) + 24px);--shared-market-padding:4px;--shared-market-gap:4px}.table .hand-area{left:calc(var(--market-width) + 16px)}}
.table .forum-grid .card-resources,.table .reserve .card-resources{font-size:9px;gap:2px}.table .forum-grid .card-resources>span,.table .reserve .card-resources>span{gap:2px}.table .forum-grid .card-vp,.table .reserve .card-vp{font-size:9px}.table .forum-grid .card-vp small,.table .reserve .card-vp small{font-size:6px}.table .forum-grid .card-cost,.table .reserve .card-cost,.table .forum-grid .card-omen,.table .reserve .card-omen{font-size:10px}
@media(max-width:760px){.table .forum-grid>.card,.table .reserve>.card{padding-bottom:13px}.table .forum-grid .card-resources,.table .reserve .card-resources{font-size:8px;gap:1px}.table .forum-grid .card-vp,.table .reserve .card-vp{font-size:8px}.table .forum-grid .card-vp small,.table .reserve .card-vp small{font-size:5px}.table .forum-grid .card-cost,.table .reserve .card-cost,.table .forum-grid .card-omen,.table .reserve .card-omen{font-size:9px}}
.table .hand-controls .self-general .general-avatar{width:32px;height:44px}.table .hand-controls .action-pair button{padding-inline:2px;font-size:10px;white-space:nowrap}
@media(min-width:761px){.table .hand-controls .hud-health{font-size:9px}}

/* Numeric health and a small stack of card backs replace bars and deck text. */
.health-and-deck{display:flex;align-items:center;justify-content:space-between;gap:6px;min-height:24px}.general-hud .hud-health{font-size:10px;white-space:nowrap}.general-hud .hud-health b{font-size:17px}.general-hud .hud-wealth{gap:9px;align-items:center}.general-hud .hud-wealth .hud-vp{font-size:9px;white-space:nowrap}
.table .hand-controls .deck-stack{position:relative;display:block;flex:none;width:29px;height:35px;min-height:0;margin:2px 2px 2px 0;padding:0;border:0;background:none;box-shadow:none;cursor:pointer}.deck-back{position:absolute;inset:3px 2px;border:1px solid var(--coin);border-radius:3px;background:var(--purple);box-shadow:0 1px 3px #1A1D2633;color:var(--marble)}.deck-back:first-child{transform:translate(-3px,-1px) rotate(-10deg)}.deck-back:nth-child(2){transform:rotate(-4deg)}.deck-back:last-child{transform:translate(2px,1px) rotate(3deg);outline:1px solid #FBFBF944;outline-offset:-3px}.deck-back .ic{position:absolute;top:4px;left:5px;width:11px;height:11px}.deck-count{position:absolute;right:3px;bottom:1px;font:600 9px var(--ui)}.deck-stack:hover .deck-back:last-child,.deck-stack:focus-visible .deck-back:last-child{transform:translate(3px,-2px) rotate(6deg)}
@media(max-width:760px){.general-hud .hud-health{font-size:8px}.general-hud .hud-health b{font-size:14px}.general-hud .hud-wealth{gap:6px}.general-hud .hud-wealth .hud-vp{font-size:8px}.table .hand-controls .deck-stack{width:25px;height:31px}.deck-back .ic{left:4px;width:9px;height:9px}}
/* Let the map show through HUD panels, as it does beneath the hand. */
.table .general-hud,.table .hand-controls,.table .side .panel{background:#FBFBF940;backdrop-filter:blur(3px)}
.table .forum-grid>.card,.table .reserve>.card{background:var(--marble);opacity:1;backdrop-filter:none}

.table .hand-controls .self-general{display:grid;grid-template-columns:32px minmax(0,1fr);gap:4px 6px}.self-general .general-info{display:contents}.self-general .general-avatar{grid-column:1;grid-row:1 / span 2}.self-general .general-info>strong{grid-column:2;grid-row:1;font-size:10px}.self-general .hud-wealth{grid-column:2;grid-row:2;gap:5px;flex-wrap:wrap}.self-general .health-and-deck{grid-column:1 / -1;grid-row:3}.general-hud .hud-health{font-variant-numeric:tabular-nums}

.play-area-heading{justify-content:space-between;flex:none}.hand-area #play-all{background:transparent;border-color:transparent}.hand-area #play-all:hover:not(:disabled){background:#FBFBF980;border-color:var(--rule)}.play-area-footer{display:flex;justify-content:flex-end;flex:none}.play-area-footer #end-turn{font-size:12px;padding:6px 12px;min-height:32px}.played-cards .card{grid-template-rows:minmax(0,1fr) auto}.played-cards .card-family,.played-cards .card-text{display:none}
.hand-area #play-all{width:40px;height:40px;padding:6px}.hand-area #play-all svg{width:28px;height:28px}
@media(max-width:760px){.hand-area #play-all{width:36px;height:36px}.hand-area #play-all svg{width:24px;height:24px}}

/* Mission cards precede the draft; services share the permanent Market column. */
.mission-screen .card-cost,.mission-screen .card-resources,.service-vp{display:none}.mission-screen .card-text{font-size:15px;line-height:1.55}.mission-screen .card-art .ic{width:64px;height:64px}.mission-reminder{display:flex;gap:8px;align-items:center;font-size:13px}.mission-reminder .ic{flex:none;width:20px;height:20px}.card[data-service] .card-resources{display:none}.card[data-service]{touch-action:none}.card[data-service] .card-art .ic{color:var(--coin)}
/* Show the left edge of each played card, without a horizontal scroller. */
.played-cards{position:relative;display:block;overflow:hidden;min-height:0}.played-cards .card{position:absolute;top:0;bottom:0;height:100%;margin:0!important;min-width:0}.played-cards .card:hover,.played-cards .card:focus-visible{z-index:50;outline:1px solid var(--purple);outline-offset:-1px}.played-cards .card-resources{flex-direction:column;align-items:flex-start;right:auto;top:6px;left:5px;gap:5px}.played-cards .card-art{padding-left:15px}.played-cards .card-name{overflow:hidden;white-space:nowrap;text-overflow:ellipsis}
.hand-area #play-all:not(:disabled){color:var(--coin);border-color:#B58A2D80;background:#FFD24A22;animation:play-ready 2s ease-in-out infinite}.hand-area #play-all:not(:disabled) svg{filter:drop-shadow(0 0 4px #FFD24A)}
@keyframes play-ready{0%,100%{box-shadow:0 0 5px #FFD24A55}50%{box-shadow:0 0 15px #FFD24Aaa}}
@media(prefers-reduced-motion:reduce){.hand-area #play-all:not(:disabled){animation:none;box-shadow:0 0 9px #FFD24A80}}
/* Hero panel heights follow the Market thumbnail and the hand respectively. */
.table{--market-card-height:calc((var(--market-width) - 2px - 2 * var(--shared-market-padding) - var(--shared-market-gap)) / 2)}
.table .opponent-hud .general-hud{height:var(--market-card-height);box-sizing:border-box;padding:4px;gap:5px;grid-template-columns:28px minmax(0,1fr);align-items:center}.table .opponent-hud .general-avatar{width:28px;height:100%;max-height:50px}.table .opponent-hud .general-info{min-width:0;display:grid;gap:1px}.table .opponent-hud .general-info>strong{font-size:10px;line-height:1.1}.table .opponent-hud .health-and-deck{min-height:0;line-height:1}.table .opponent-hud .hud-health{font-size:9px}.table .opponent-hud .hud-health b{font-size:13px}.table .opponent-hud .hud-wealth{font-size:10px;line-height:1.1;gap:6px}.table .opponent-hud .hud-wealth .gives{font-size:10px}.table .opponent-hud .hud-vp{font-size:8px}
.hud-flock{display:flex;align-items:center;gap:4px;font-size:11px;white-space:nowrap}.hud-flock>.ic{width:16px;height:16px}.hud-flock>span{display:flex;align-items:center;gap:3px;color:var(--ink-2);font-size:9px}.hud-flock>span .ic{width:10px;height:10px}
.table .hand-controls{height:var(--hand-height);padding:0;background:none;backdrop-filter:none}.table .hand-controls .self-general{height:100%;padding:12px 8px;display:grid;grid-template-columns:42px minmax(0,1fr);grid-template-rows:1fr auto auto auto;align-items:center;gap:8px}.table .hand-controls .self-general .general-avatar{grid-row:1;width:42px;height:64px}.self-general .general-info>strong{font-size:13px!important;grid-row:1}.self-general .hud-wealth{grid-row:2;grid-column:1/-1;justify-content:space-between;font-size:14px}.self-general .health-and-deck{grid-row:3}.self-general .hud-flock{grid-row:4;grid-column:1/-1;font-size:16px}.self-general .hud-flock>.ic{width:22px;height:22px}.self-general #inventory{grid-row:4;grid-column:2;justify-self:end;padding:3px;width:30px;height:30px;display:flex;gap:2px;background:none;border:0}.self-general #inventory .ic{width:20px;height:20px}.table .hand-controls .hud-health{font-size:11px}.table .hand-controls .hud-health b{font-size:19px}
.river-crossings .crossing-cost rect{fill:rgba(0,0,0,.3);stroke:none}.river-crossings .crossing-cost use{color:#fff}.treasure-marker rect{fill:var(--marble);stroke:var(--coin);stroke-width:2}.treasure-marker use{color:var(--coin)}.chance-marker circle{fill:var(--marble);stroke:var(--purple);stroke-width:2}.chance-marker.large circle{fill:var(--purple)}.chance-marker text{font-size:14px;font-weight:700;fill:var(--purple)}.chance-marker.large text{fill:var(--marble)}.play-area-footer #potions{margin-right:auto;font-size:11px;padding:5px}.score-table{max-width:calc(100vw - 24px);overflow-x:auto}
@media(max-width:760px){.mission-screen .card-text{font-size:13px}.table .opponent-hud .general-hud{padding:3px;gap:3px;grid-template-columns:20px minmax(0,1fr)}.table .opponent-hud .general-avatar{width:20px;max-height:39px}.table .opponent-hud .general-info>strong{font-size:8px}.table .opponent-hud .hud-health{font-size:7px}.table .opponent-hud .hud-health b{font-size:11px}.table .opponent-hud .hud-wealth,.table .opponent-hud .hud-wealth .gives{font-size:8px}.table .opponent-hud .hud-vp{font-size:7px}.table .opponent-hud .hud-flock{font-size:9px;gap:2px}.table .opponent-hud .hud-flock>.ic{width:12px;height:12px}.table .opponent-hud .hud-flock>span{font-size:7px}.table .hand-controls .self-general{padding:10px 6px;grid-template-columns:34px minmax(0,1fr);gap:6px}.table .hand-controls .self-general .general-avatar{width:34px;height:55px}.self-general .general-info>strong{font-size:11px!important}.self-general .hud-wealth{font-size:12px}.table .hand-controls .hud-health{font-size:9px}.table .hand-controls .hud-health b{font-size:16px}}
.table .hand-controls{border:0}.table .hand-controls .self-general{height:var(--hand-height);flex:none;box-sizing:border-box}

@media(max-width:760px){.table .country-overview{left:calc(var(--market-width) + 16px);right:auto;bottom:calc(2 * var(--hand-height) + 36px)}}

.table .hand-area>#play-all{position:absolute;top:6px;right:6px;z-index:4;pointer-events:auto;background:#FBFBF9cc}.table .hand-area>.hand{width:calc(100% - 50px)}.table .hand-area{background:#FBFBF940;border-radius:9px}.table .hand-area>.hand{background:none}.play-area-heading{justify-content:flex-end}

/* General cards: name and HP, prominent VP, shared bottom resource line. */
.table .general-hud{position:relative}.table .opponent-hud .general-hud{display:block}.table .opponent-hud .general-avatar{position:absolute;left:4px;top:4px;width:26px;height:32px}.table .opponent-hud .general-info{position:absolute;left:34px;right:4px;top:5px;display:flex;flex-direction:column;align-items:flex-start;gap:3px}.table .opponent-hud .general-info>strong{padding-right:34px;max-width:100%;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;line-height:1.1}.table .general-hud>.hud-vp{position:absolute;right:5px;top:4px;display:flex;align-items:baseline;gap:2px;font:700 17px var(--ui);color:var(--coin);line-height:1}.table .general-hud>.hud-vp small{font-size:7px;color:inherit}.general-resources{position:absolute;left:6px;bottom:5px;display:flex;align-items:center;gap:9px;line-height:1}.table .general-resources .hud-wealth,.table .general-resources .hud-flock,.table .general-resources .hud-army,.table .general-resources .gives{display:flex;align-items:center;gap:3px;font-size:11px;line-height:1;margin:0;white-space:nowrap}.table .general-resources .hud-flock>.ic,.table .general-resources .hud-army>.ic,.table .general-resources .hud-wealth .ic{width:13px;height:13px}.hud-army{color:var(--ink-2)}
.table .hand-controls .self-general{display:block;padding:0}.table .hand-controls .self-general .general-avatar{position:absolute;left:6px;top:35px;width:42px;height:70px}.table .self-general .general-info{position:absolute;left:52px;right:5px;top:45px;display:flex;flex-direction:column;align-items:flex-start;gap:6px}.table .self-general .general-info>strong{font-size:12px!important;line-height:1.2;max-width:100%;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.table .self-general>.hud-vp{font-size:24px;top:10px;right:9px}.table .self-general>.hud-vp small{font-size:9px}.table .hand-controls .self-general .hud-health{font-size:10px;white-space:nowrap}.table .hand-controls .self-general .hud-health b{font-size:16px}.table .self-general .general-resources{left:8px;bottom:10px;gap:10px}.table .self-general .general-resources .hud-wealth,.table .self-general .general-resources .hud-flock,.table .self-general .general-resources .hud-army,.table .self-general .general-resources .gives{font-size:13px}.table .self-general .general-resources .ic{width:15px;height:15px}
.general-cards{position:absolute;left:10px;bottom:42px;display:flex;align-items:center;gap:14px}.table .hand-controls .general-cards .deck-stack{width:29px;height:38px;margin:0}.table .hand-controls .general-cards .mission-card{position:relative;display:block;width:27px;height:35px;min-height:0;padding:0;grid-area:auto;border:0;background:none;box-shadow:none;cursor:pointer}.mission-back{position:absolute;inset:0;border:1px solid #FBFBF980;border-radius:3px;background:var(--coin);color:var(--marble);outline:1px solid #FBFBF960;outline-offset:-4px;box-shadow:0 2px 5px #1A1D2633;transform:rotate(4deg);display:grid;place-items:center}.table .self-general #inventory .ic{width:17px;height:17px}.mission-card:hover .mission-back,.mission-card:focus-visible .mission-back{transform:translateY(-3px) rotate(4deg)}
@media(max-width:760px){.table .opponent-hud .general-avatar{left:3px;top:3px;width:20px;height:27px}.table .opponent-hud .general-info{left:26px;top:4px;gap:3px}.table .opponent-hud .general-info>strong{padding-right:29px;font-size:8px}.table .opponent-hud .general-hud>.hud-vp{font-size:14px;right:4px;top:4px}.table .opponent-hud .hud-vp small{font-size:6px}.table .opponent-hud .general-resources{left:4px;bottom:4px;gap:7px}.table .opponent-hud .general-resources .hud-wealth,.table .opponent-hud .general-resources .hud-flock,.table .opponent-hud .general-resources .hud-army,.table .opponent-hud .general-resources .gives{font-size:9px}.table .opponent-hud .general-resources .ic{width:11px;height:11px}.table .hand-controls .self-general .general-avatar{left:4px;top:39px;width:30px;height:59px}.table .self-general .general-info{left:38px;top:46px;right:4px}.table .self-general .general-info>strong{font-size:10px!important}.table .hand-controls .self-general .hud-health{font-size:8px}.table .hand-controls .self-general .hud-health b{font-size:13px}.table .self-general .general-resources{left:6px;gap:8px}.table .self-general .general-resources .hud-wealth,.table .self-general .general-resources .hud-flock,.table .self-general .general-resources .hud-army,.table .self-general .general-resources .gives{font-size:11px}.table .self-general .general-resources .ic{width:13px;height:13px}}

.table .opponent-hud .general-avatar{width:36px;height:42px;top:3px}.table .opponent-hud .general-info{left:44px}.table .hand-controls .self-general .general-avatar{width:58px;height:94px;top:28px}.table .self-general .general-info{left:66px}
@media(max-width:760px){.table .opponent-hud .general-avatar{width:28px;height:35px;top:3px}.table .opponent-hud .general-info{left:34px}.table .hand-controls .self-general .general-avatar{width:42px;height:80px;top:31px}.table .self-general .general-info{left:50px}}
/* Readable opponent cards use a portrait column and two aligned information rows. */
.table .opponent-hud{gap:7px}
.table .opponent-hud .general-hud{display:grid;grid-template-columns:36px minmax(0,1fr);grid-template-rows:minmax(0,1fr) auto;column-gap:6px;row-gap:3px;height:58px;padding:5px;align-items:center;--general-stat-size:17px}
.table .opponent-hud .general-avatar{position:static;grid-column:1;grid-row:1 / -1;align-self:center;width:36px;height:46px;max-height:none}
.table .opponent-hud .general-avatar .piece{width:100%;height:100%;object-fit:contain}
.table .opponent-hud .general-info{position:static;grid-column:2;grid-row:1;display:flex;flex-direction:column;align-items:flex-start;gap:2px;min-width:0}
.table .opponent-hud .general-info>strong{font-size:11px;line-height:12px;padding-right:33px;width:100%;max-width:100%;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.table .opponent-hud .hud-health{display:flex;align-items:baseline;gap:2px;font-size:12px;line-height:18px;white-space:nowrap}
.table .opponent-hud .hud-health b,.table .opponent-hud .general-hud>.hud-vp{font-size:var(--general-stat-size);line-height:18px}
.table .opponent-hud .hud-health small,.table .opponent-hud .hud-vp small{font-size:8px}
.table .opponent-hud .general-hud>.hud-vp{top:4px;right:5px}
.table .opponent-hud .general-resources{position:static;grid-column:2;grid-row:2;gap:7px;min-width:0}
.table .opponent-hud .general-resources .hud-wealth,.table .opponent-hud .general-resources .hud-flock,.table .opponent-hud .general-resources .hud-army,.table .opponent-hud .general-resources .gives{font-size:11px;gap:3px;line-height:12px}
.table .opponent-hud .general-resources .ic{width:12px;height:12px}
.table .hand-controls .self-general .hud-health{display:flex;align-items:baseline;gap:2px;line-height:1.1;font-size:12px}
.table .hand-controls .self-general .hud-health b,.table .self-general>.hud-vp{font-size:24px}
.table .hand-controls .self-general .hud-health small{font-size:8px}
.table .hand-controls .general-cards #inventory{width:27px;height:37px;min-height:0;padding:0;display:block;background:none;border:0;grid-area:auto}
@media(max-width:760px){
 .table .opponent-hud .general-hud{grid-template-columns:28px minmax(0,1fr);column-gap:4px;padding:4px;height:56px;--general-stat-size:15px}
 .table .opponent-hud .general-avatar{width:28px;height:44px}
 .table .opponent-hud .general-info>strong{font-size:10px;padding-right:28px}
 .table .opponent-hud .hud-health{font-size:11px;gap:1px}
 .table .opponent-hud .hud-health small,.table .opponent-hud .hud-vp small{font-size:7px}
 .table .opponent-hud .general-hud>.hud-vp{top:3px;right:4px}
 .table .opponent-hud .general-resources{gap:5px}
 .table .opponent-hud .general-resources .hud-wealth,.table .opponent-hud .general-resources .hud-flock,.table .opponent-hud .general-resources .hud-army,.table .opponent-hud .general-resources .gives{font-size:10px;gap:2px}
 .table .opponent-hud .general-resources .ic{width:11px;height:11px}
 .table .hand-controls .self-general .hud-health{font-size:10px}
 .table .hand-controls .self-general .hud-health b,.table .self-general>.hud-vp{font-size:22px}
}
/* Played cards fill the panel; resources and End Turn float over the stack. */
.table .side .play-area{position:relative;display:block;padding:9px 6px 3px}
.play-area .played-cards{height:100%;width:100%;min-width:0}
.play-area .play-area-heading{position:absolute;top:10px;right:10px;z-index:60;justify-content:flex-end;pointer-events:none}
.play-area .turn-resources{flex-direction:row;align-items:center;gap:12px}
.play-area .play-area-footer{position:absolute;bottom:9px;right:9px;z-index:60;display:flex;align-items:center;gap:6px}
.play-area .play-area-footer #end-turn{padding:6px 8px;white-space:nowrap}.play-area .play-area-footer #potions{margin:0}
.played-cards .card{padding:29px 7px 25px;grid-template-rows:55px auto 13px minmax(0,1fr);gap:3px}
.played-cards .card-art{padding-left:0}.played-cards .card-art img{height:55px}.played-cards .card-art .family{width:35px;height:35px}
.played-cards .card-name{font-size:16px;white-space:normal;overflow:visible;text-overflow:clip}.played-cards .card-family,.played-cards .card-text{display:block}.played-cards .card-family{font-size:9px}.played-cards .card-text{font-size:10px;line-height:1.3}

/* Temporary ocean and shoreline use the approved blue and stone palette. */
.play .table .map-scroll,.placement-screen .map-scroll{background-color:var(--fair);background-image:linear-gradient(#E3EBF1e6,#E3EBF1e6),var(--sea-texture-image);background-size:auto,640px 640px;background-position:0 0,0 0;animation:ocean-drift 36s ease-in-out infinite alternate}
@keyframes ocean-drift{to{background-position:0 0,24px 12px}}
@media(prefers-reduced-motion:reduce){.play .table .map-scroll,.placement-screen .map-scroll{animation:none}}
.coastline path{fill:none;stroke-linejoin:round;stroke-linecap:round}.coast-shallows{stroke:#FBFBF94d;stroke-width:28}.coast-sand{stroke:#E6DCD0;stroke-width:12}
.table .general-resources .hud-army>.ic{transform:rotate(45deg)}
.general-spoils{display:flex;gap:9px;color:var(--coin);font:600 11px var(--ui)}.general-spoils>span{display:flex;align-items:center;gap:3px}.general-spoils .ic{width:15px;height:15px}
.self-general .general-spoils{position:absolute;left:8px;bottom:29px}.self-general.has-spoils .general-cards{bottom:52px}
/* Spoils sit beside the stats, below VP, without making opponent cards taller. */
.table .opponent-hud .general-hud.has-spoils{grid-template-columns:36px minmax(0,1fr) 22px}
.table .opponent-hud .has-spoils .general-info>strong{padding-right:0}
.table .opponent-hud .has-spoils .general-resources{grid-column:2 / -1}


.opponent-hud .general-spoils{grid-column:3;grid-row:1;align-self:end;display:flex;flex-direction:column;gap:2px;font-size:10px;line-height:12px}
.opponent-hud .general-spoils>span{gap:2px}
.opponent-hud .general-spoils .ic{width:12px;height:12px}
@media(max-width:760px){.table .opponent-hud .general-hud.has-spoils{grid-template-columns:28px minmax(0,1fr) 20px}}

.table .country-overview,.placement-screen .country-overview{padding:4px;background:#FBFBF940;backdrop-filter:blur(3px);opacity:1}

/* HUD surfaces share the hand panel's unframed translucent treatment. */
.table .general-hud,.table .side .panel,.table .hand-area{border:0;outline:none;box-shadow:none;background:#FBFBF940}
.table .hand-controls,.table .country-overview{border:0;box-shadow:none;outline:none}
.table .hand-controls .hud-health small,.table .hand-controls .hud-vp small{display:inline}

/* One inset for every HUD background panel, shared with the Market. */
.table .side{--market-padding:var(--shared-market-padding)}
.table .side .play-area,.table .hand-area,.table .opponent-hud .general-hud,.table .hand-controls .self-general,.table .country-overview{padding:var(--shared-market-padding)}
.table .hand-area>.hand{height:100%;padding:0}
.table .hand-area>#play-all,.table .play-area .play-area-heading{top:var(--shared-market-padding);right:var(--shared-market-padding)}
.table .play-area .play-area-footer{bottom:var(--shared-market-padding);right:var(--shared-market-padding)}
.table .general-hud>.hud-vp{top:var(--shared-market-padding);right:var(--shared-market-padding)}
.table .hand-controls .self-general{background:#FBFBF940;border-radius:9px;backdrop-filter:blur(3px)}
.table .hand-controls .self-general .general-avatar{left:var(--shared-market-padding)}
.table .self-general .general-info{left:calc(var(--shared-market-padding) + 60px);right:var(--shared-market-padding)}
.table .self-general .general-resources{left:var(--shared-market-padding);bottom:var(--shared-market-padding)}
.table .self-general .general-spoils{left:var(--shared-market-padding);bottom:calc(var(--shared-market-padding) + 19px)}
.table .self-general .general-cards{left:calc(var(--shared-market-padding) + 3px)}
@media(max-width:760px){.table .self-general .general-info{left:calc(var(--shared-market-padding) + 46px)}}

/* Player panel follows the opponent portrait/stats alignment, with spoils below. */
.table .hand-controls .self-general{display:grid;grid-template-columns:42px minmax(0,1fr);grid-template-rows:48px auto 44px minmax(0,1fr);gap:6px;align-items:start}
.table .hand-controls .self-general .general-avatar{position:static;grid-column:1;grid-row:1 / 3;width:42px;height:70px;align-self:center}
.table .self-general .general-info{position:static;grid-column:2;grid-row:1;gap:5px;min-width:0}
.table .self-general .general-info>strong{width:100%;padding-right:36px}
.table .self-general .general-resources{position:static;grid-column:2;grid-row:2;gap:5px;align-self:start}
.table .self-general .general-resources .hud-wealth,.table .self-general .general-resources .hud-flock,.table .self-general .general-resources .hud-army,.table .self-general .general-resources .gives{font-size:11px;gap:3px}
.table .self-general .general-resources .ic{width:12px;height:12px}
.table .self-general .general-cards{position:static;grid-column:2;grid-row:3;justify-self:end;gap:8px;padding-top:3px}
.table .self-general .general-spoils{position:static;grid-column:1 / -1;grid-row:4;align-self:start;flex-wrap:wrap;gap:12px;padding-top:3px;font-size:14px}
.table .self-general .general-spoils .ic{width:22px;height:22px}
@media(max-width:760px){
 .table .hand-controls .self-general{grid-template-columns:34px minmax(0,1fr);column-gap:4px}
 .table .hand-controls .self-general .general-avatar{width:34px}
 .table .self-general .general-info>strong{padding-right:33px}
 .table .self-general .general-resources{gap:3px}
 .table .self-general .general-resources .hud-wealth,.table .self-general .general-resources .hud-flock,.table .self-general .general-resources .hud-army,.table .self-general .general-resources .gives{font-size:10px;gap:2px}
 .table .self-general .general-resources .ic{width:11px;height:11px}
 .table .self-general .general-spoils{font-size:12px}
}

/* Hubris tokens are upright raindrops in the player's colour. */
.cube{width:10px;height:14px;background:none;border:0;border-radius:0;color:var(--colour);vertical-align:middle}
.table .jupiter-status .cube{width:10px;height:14px}
@media(max-width:760px){.table .jupiter-status .cube{width:8px;height:11px}}

/* Read territory strength directly on the map, without inspection dialogs. */
.hex{cursor:inherit}.hex[data-map-action]{cursor:pointer}
.hex .map-building,.hex .map-soldiers{pointer-events:none}
.hex-counters text{font-size:12px;font-weight:700;font-variant-numeric:tabular-nums}
.wall-counter rect{fill:var(--ink-2);stroke:var(--marble);stroke-width:1.5}.wall-counter text{fill:var(--marble)}
.building-health rect{fill:var(--marble);stroke:#56607055;stroke-width:1}.building-health use{color:var(--red)}.building-health text{fill:var(--ink)}

/* Player colours identify each general along the left edge. */
.table .opponent-hud .general-hud,.table .hand-controls .self-general{border-left:3px solid var(--general)}
/* Unconquered settlements keep the original artwork colours. */
.map-building .piece.neutral,.map-soldiers .piece.neutral{filter:none}

/* Commit a march on its destination, without covering the board with a dialog. */
.march-picker [role=button]{cursor:pointer;outline:none}
.march-picker rect{fill:var(--marble);stroke:var(--ink-2);stroke-width:1}
.march-picker text{font:700 24px var(--ui);fill:var(--ink);text-anchor:middle;pointer-events:none}
.march-picker #confirm-move rect{fill:var(--ink);stroke:var(--ink)}
.march-picker path{fill:none;stroke:var(--marble);stroke-width:3;stroke-linecap:round;stroke-linejoin:round;pointer-events:none}
.march-picker [role=button]:focus-visible rect{stroke:var(--bolt);stroke-width:3}
.march-picker [aria-disabled=true]{cursor:default}
/* Transparent space between the floating panels must not intercept map clicks. */
.table .side{pointer-events:none}.table .side>.panel{pointer-events:auto}
.table:has(.march-picker) .country-overview{visibility:hidden}

/* Each personal resource uses the same icon and numeral alignment under HP. */
.table .self-general .general-resources{flex-wrap:wrap;column-gap:6px;row-gap:4px;max-width:100%}
.table .self-general .general-resources>span{display:inline-grid;grid-template-columns:12px max-content;align-items:center;justify-content:start;gap:3px;flex-wrap:nowrap;flex-shrink:0;line-height:14px}
.table .self-general .general-resources>span>b{font-size:inherit;font-weight:700;font-variant-numeric:tabular-nums;line-height:14px}
.table .self-general .general-resources>span>.ic{width:12px;height:12px;display:block;align-self:center}
@media(max-width:760px){.table .self-general .general-resources{column-gap:4px}.table .self-general .general-resources>span{grid-template-columns:11px max-content;gap:2px}.table .self-general .general-resources>span>.ic{width:11px;height:11px}}

.capital-picker [role=button]{cursor:pointer;outline:none}
.capital-picker rect{fill:var(--ink);stroke:var(--ink);stroke-width:1}
.capital-picker path{fill:none;stroke:var(--marble);stroke-width:3;stroke-linecap:round;stroke-linejoin:round;pointer-events:none}
.capital-picker [role=button]:focus-visible rect{stroke:var(--bolt);stroke-width:3}
.placement-screen:has(.capital-picker) .country-overview{visibility:hidden}

/* Audio stays beside its HUD icon rather than interrupting the board. */
.sound-menu{position:relative}.sound-menu>summary{list-style:none;cursor:pointer}.sound-menu>summary::-webkit-details-marker{display:none}
.sound-controls{position:absolute;right:0;top:calc(100% + 8px);width:210px;padding:12px;background:#FBFBF9F2;border-radius:9px;display:grid;gap:12px;color:var(--ink);font-size:12px;box-sizing:border-box}
.sound-controls label{display:grid;gap:5px;font-size:12px}.sound-controls input{width:100%;margin:0;accent-color:var(--ink-2)}.sound-controls button{justify-self:start;font-size:11px;padding:5px 8px}

/* Terrain artwork sits below all map pieces, counters and selection outlines. */
.hex .terrain-art{pointer-events:none}
.hex .ground.terrain-outline{fill:none;pointer-events:none}

/* Separate pieces from detailed terrain while leaving empty hexes untouched. */
.hex .piece-clearing{fill:url(#piece-clearing);pointer-events:none}
.hex .map-building,.hex .unit-sprite,.hex .map-legate,.hex .map-bear{filter:url(#piece-contrast);pointer-events:none}

/* Effects are separate from the map's hit targets and never cover controls. */
.motion-fx{position:fixed;z-index:90;pointer-events:none!important;transform:translate(-50%,-50%);font-family:var(--ui);color:var(--ink);contain:layout style}
.motion-fx img{width:100%;height:100%;object-fit:contain}.motion-fx .ic{width:30px;height:30px}
.fx-number{font-size:16px;font-weight:700;white-space:nowrap;text-shadow:0 1px 3px #FAF8F2a6}.fx-number.negative{color:var(--red)}.fx-number.positive{color:var(--green)}
.fx-token,.fx-reward,.fx-hubris{width:32px;height:32px;color:var(--ochre)}.fx-hubris{color:var(--red)}.fx-reward{width:44px;height:44px}.fx-reward .ic{width:44px;height:44px}
.fx-card{width:100px;height:150px;overflow:hidden;border-radius:8px}.fx-card>.card{--cw:100px;width:100px!important;height:150px!important;min-height:0!important;transform:none!important;font-size:10px;pointer-events:none}.fx-card .card-art{max-height:50px}.fx-card .card-art img{max-height:50px}.fx-card .card-name{font-size:13px}.fx-card .card-text,.fx-card .card-family{display:none}.fx-card-back{display:grid;place-items:center;width:100%;height:100%;background:var(--purple,#623b72);color:var(--ochre);border:4px double var(--ochre);border-radius:8px;font-size:40px}
.fx-barbarian-march svg{display:block;overflow:visible}.fx-march{width:66px;height:80px}.fx-bear-step{width:90px;height:74px}.fx-casualty{width:42px;height:60px;filter:sepia(.3)}
.fx-clash{display:flex;align-items:center;justify-content:center;width:70px;height:70px;color:var(--ink);filter:drop-shadow(0 0 5px #ffefba)}.fx-clash .ic{width:45px;height:45px}.fx-clash .ic{width:60px;height:60px}
.fx-dust{width:36px;height:15px;border-radius:50%;background:#c6b48799;filter:blur(4px)}.fx-ripple{width:40px;height:18px;border:3px solid #fff9;border-radius:50%}.fx-debris{font-size:26px;color:#8f8271;letter-spacing:10px}.fx-swipe{font-size:48px;color:var(--red)}.fx-chance{font-size:32px;font-weight:bold;color:var(--purple,#623b72)}.fx-hit{color:var(--ochre);font-size:35px}.fx-shield{font-size:35px;color:var(--blue)}
.fx-lightning{inset:0;transform:none}.fx-lightning path{fill:none;stroke:#fff1af;stroke-width:5;stroke-linejoin:bevel;filter:drop-shadow(0 0 5px #d4a429)}
.hex[data-draggable] .unit-sprite,.hex[data-draggable] .unit-sprite .piece{pointer-events:all;cursor:grab;touch-action:none}
.hex[data-draggable]{touch-action:none}
.hex.drag-source .unit-sprite{opacity:.25}.hex.drag-target>.ground{stroke:var(--bolt);stroke-width:4}.hex.drag-over>.ground{stroke:var(--bolt);stroke-width:6}.hex.drag-over{filter:drop-shadow(0 0 5px #fff2ae)}
.soldier-dragging,.soldier-dragging *{cursor:grabbing!important;user-select:none!important}.soldier-dragging .country-overview{visibility:hidden}
.soldier-lift{width:82px;height:164px;z-index:110;transform:translate(-50%,-50%) rotate(var(--tilt,0deg));transform-origin:50% 20%;filter:drop-shadow(0 6px 3px #15172055)}.soldier-lift>span{display:block;width:100%;height:100%;background-repeat:no-repeat;background-size:400% 100%}
.lift-shadow{width:30px;height:10px;border-radius:50%;background:#17171b66;filter:blur(3px)}
.bear-health text{font:700 12px var(--ui);text-anchor:middle}
.resource-icon{object-fit:contain;display:inline-block;flex-shrink:0;vertical-align:middle}
.table .general-resources .hud-army>.resource-icon{transform:none}
.table .general-hud .general-resources>span>.resource-icon,.table .self-general .general-resources>span>.resource-icon{width:15px;height:15px}
.table .self-general .general-resources>span{grid-template-columns:15px max-content;min-height:15px}
.card .resource-icon{filter:none}.turn-resources .resource-icon{width:29px;height:29px}
.sound-controls .motion-settings input{width:14px;height:14px}.sound-controls .motion-settings label{display:flex;gap:8px}
@media(max-width:760px){.table .opponent-hud .general-resources>span>.resource-icon{width:13px;height:13px}}
.jupiter-watch>.piece{animation:jupiter-idle 5s ease-in-out infinite;transform-origin:50% 80%}.map-bear>.piece{animation:bear-idle 4s ease-in-out infinite;transform-box:fill-box;transform-origin:center bottom}
.treasure-marker use{animation:treasure-glint 4s ease-in-out infinite}.chance-marker circle{animation:chance-breathe 3.5s ease-in-out infinite}
.card{transition:transform .16s ease,filter .16s ease}.hand .card:hover,.hand .card:focus-visible{transform:translateY(-10px);z-index:8}.forum-grid .card:hover,.reserve .card:hover{filter:brightness(1.06)}button:active:not(:disabled){translate:0 1px}
.motion-settings{border:0;border-top:1px solid #1a1d261a;padding:10px;margin:0;font:12px var(--ui)}.motion-settings legend{padding:0 4px}.motion-settings label{display:flex;align-items:center;gap:8px;margin:5px 0}.motion-settings input{width:14px;height:14px;accent-color:var(--ink)}
@keyframes jupiter-idle{0%,100%{transform:translateY(0) rotate(-1deg)}50%{transform:translateY(-5px) rotate(1deg)}}
@keyframes bear-idle{0%,100%{transform:scale(1)}50%{transform:scale(1.018,1.035)}}
@keyframes treasure-glint{0%,80%,100%{filter:brightness(1)}90%{filter:brightness(1.65)}}
@keyframes chance-breathe{0%,100%{opacity:.8}50%{opacity:1}}
.reduced-motion *,.reduced-motion *::before,.reduced-motion *::after{animation:none!important;transition:none!important;scroll-behavior:auto!important}
@media(prefers-reduced-motion:reduce){.jupiter-watch>.piece,.map-bear>.piece,.treasure-marker use,.chance-marker circle,.strike-draw{animation:none!important}.card{transition:none}.hand .card:hover,.hand .card:focus-visible{transform:none}}

.music-controls label{display:flex;align-items:center;gap:7px;font-size:11px;white-space:nowrap}

/* Shared parchment face: the same paper, art and corner cues at every size. */
.card.card,.table .hand .card,.table :is(.forum-grid,.reserve)>.card.card{
 --card-edge:#D5C6AC;
 --card-inset:7px;--card-title:17px;--card-body:11px;--card-meta:9px;--card-stat:13px;--card-icon:17px;
 display:grid;grid-template-columns:minmax(0,1fr);grid-template-rows:minmax(0,1fr) 38px 60px;
 gap:4px;padding:var(--card-inset) var(--card-inset) 25px;border:1px solid var(--card-edge);border-radius:6px;
 background-color:var(--card-paper);background-image:var(--card-paper-texture);background-size:160px 160px;box-shadow:none;isolation:isolate;text-align:left;overflow:hidden;
}
.card.card>.card-art{grid-area:1 / 1;display:grid;place-items:center;position:relative;min-height:0;height:100%;max-height:none;padding:8px 14%;margin:0;background:radial-gradient(ellipse at center,#FBFBF930,transparent 72%)}
.card.card>.card-art>:is(img,svg){display:block;width:100%;height:100%;min-height:0;max-height:none;max-width:100%;object-fit:contain}
/* Use one square art frame regardless of a source image’s portrait/landscape canvas. */
.card.card>.card-art>img.card-illustration{aspect-ratio:1;width:100%;height:auto;max-height:100%;object-fit:contain}
.card.card>.card-name{grid-area:2 / 1;min-height:0;height:100%;align-self:stretch;font-size:var(--card-title);line-height:1.08;letter-spacing:0;white-space:normal;overflow-wrap:normal;text-overflow:clip;overflow:visible;display:block}
.card.card>.card-family{position:absolute;grid-area:auto;left:var(--card-inset);bottom:var(--card-inset);min-height:0;max-width:calc(100% - 65px);display:block;font:500 var(--card-meta)/1.2 var(--ui);color:var(--ink-2)}
.card.card>.card-text{grid-area:3 / 1;height:100%;display:block;min-height:0;font:400 var(--card-body)/1.35 var(--ui);color:var(--ink)}
.card.card>.card-resources{position:absolute;z-index:2;top:var(--card-inset);left:var(--card-inset);right:auto;display:flex;flex-direction:column;align-items:flex-start;flex-wrap:nowrap;gap:4px;padding:0;border:0;font:700 var(--card-stat)/1 var(--ui)}
.card.card>.card-resources>span{display:flex;align-items:center;gap:3px;min-height:var(--card-icon);background:transparent}
.card.card>.card-resources:empty{padding:0;background:none}
.card.card>.card-resources .ic,.card.card>.card-cost .ic{width:var(--card-icon);height:var(--card-icon)}
.card.card>.card-vp,.card.card>.card-cost{z-index:2;font:700 var(--card-stat)/1 var(--ui);background:transparent}
.card.card>.card-vp{top:var(--card-inset);right:var(--card-inset);gap:1px}
.card.card>.card-vp small{font:600 max(6px,calc(var(--card-stat)*.55))/1 var(--ui)}
.card.card>.card-cost{right:var(--card-inset);bottom:var(--card-inset);gap:3px}
.card.card>.card-omen{left:var(--card-inset);bottom:calc(var(--card-inset) + 18px);font-size:var(--card-stat)}
.card.card>.service-vp,.mission-screen .card.card>.card-resources,.mission-screen .card.card>.card-cost,.card.card[data-service]>.card-resources{display:none}
.card-large .card.card>.card-name{line-height:1}
.card-large .card.card{--cw:260px;--card-inset:10px;--card-title:20px;--card-body:13px;--card-meta:11px;--card-stat:20px;--card-icon:25px;min-height:420px;height:420px;grid-template-rows:245px 25px 76px;padding-bottom:52px;gap:5px}
.draft-cards .card.card{height:372px;min-height:372px;grid-template-rows:192px 25px 79px;gap:6px;--card-inset:9px;--card-title:19px;--card-body:13px;--card-meta:10px;--card-stat:17px;--card-icon:22px;padding-bottom:53px}
/* Market thumbnails contain only artwork and the three familiar corner cues. */
.table :is(.forum-grid,.reserve)>.card.card,.card.card.card-thumbnail{--card-inset:4px;--card-stat:11px;--card-icon:14px;display:block;padding:0;aspect-ratio:1;border-radius:5px;box-shadow:none}
.card.card.card-thumbnail>.card-art{position:absolute;inset:0;grid-area:auto;width:100%;height:100%;padding:10% 12%;background:transparent}
.card.card.card-thumbnail>.card-art>:is(img,svg){height:100%;width:100%;max-height:none;max-width:100%}
.table :is(.forum-grid,.reserve) .card.card>.card-name,.card.card.card-thumbnail>:is(.card-name,.card-family,.card-text){display:none}
.card.card.card-thumbnail>.card-resources{gap:2px}
.card.card.card-thumbnail>.card-cost{gap:1px}
@media(max-width:760px){
 .table .card.card{--card-title:16px;--card-body:10px;--card-stat:12px;--card-icon:16px}
 .table :is(.forum-grid,.reserve)>.card.card{--card-inset:3px;--card-stat:10px;--card-icon:12px}
}

/* Hand and played stacks use one full-height face and one shared card width. */
.table .hand-area>.hand{position:relative;display:block;width:100%;height:100%;overflow:hidden;scroll-snap-type:none}
.table :is(.hand,.played-cards)>.card.card{
 position:absolute;top:0;bottom:0;height:100%;min-height:0;margin:0!important;
 grid-template-rows:minmax(0,1fr) 16px 27px;gap:4px;
 --card-title:13px;--card-body:9px;--card-meta:8px;--card-stat:11px;--card-icon:14px;
 padding:7px 7px 25px;box-shadow:none;
}
.table :is(.hand,.played-cards)>.card.card>.card-name{align-self:start;display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:2;overflow:hidden}
.table :is(.hand,.played-cards)>.card.card>.card-text{display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:2;overflow:hidden}
.table :is(.hand,.played-cards)>.card.card>.card-art{padding:4px 12%}
.table :is(.hand,.played-cards)>.card.card:is(:hover,:focus-visible){z-index:50;transform:none;outline:none;box-shadow:0 3px 5px #1A1D2620,0 9px 20px #1A1D2640;border-color:var(--rule)}
.table .hand-area>#play-all{z-index:60}
@media(max-width:760px){
 .table :is(.hand,.played-cards)>.card.card{--card-title:12px;--card-body:8px;--card-meta:7px;--card-stat:10px;--card-icon:13px;grid-template-rows:minmax(0,1fr) 15px 24px}
}

/* Inspection presents just the card, with an attached buy action when available. */
dialog.card-popup{width:288px;max-width:calc(100vw - 16px);padding:14px;border:0;background:transparent;box-shadow:none;overflow:visible}
dialog.card-popup::backdrop{background:#1A1D264d}
dialog.card-popup .card-large>.card{max-width:100%;cursor:default}
dialog.card-popup .buttons{margin:8px 0 0;justify-content:center}
dialog.card-popup .buttons>.primary{width:100%;min-height:38px}
dialog.card-popup .buttons:has(>.card-popup-close:only-child){margin:0}
dialog.card-popup .card-popup-close{position:absolute;right:0;top:0;width:28px;height:28px;padding:0;border:1px solid var(--rule);border-radius:50%;background:var(--marble);font:22px/1 var(--ui);z-index:2}
/* Keep a complete resource pair readable on the narrow exposed edge. */
.table :is(.hand,.played-cards)>.card.card>.card-resources{left:4px;font-size:11px;gap:3px}
.table :is(.hand,.played-cards)>.card.card>.card-resources>span{min-height:12px;gap:1px}
.table :is(.hand,.played-cards)>.card.card>.card-resources .ic{width:12px;height:12px}

/* Live roster and archer tower interaction. */
.card.card>.no-cost{display:none}.card.card>.multiple-costs{display:flex;flex-direction:column;align-items:flex-end;gap:3px}.multiple-costs>span{display:flex;align-items:center;gap:3px}
.map-building[data-tower]{cursor:crosshair;pointer-events:all}.map-building[data-tower]:focus{outline:none;filter:drop-shadow(0 0 4px var(--ochre))}.fx-arrow{font-size:40px;color:var(--ink);text-shadow:0 1px 2px var(--paper)}

.table:has(.capital-picker) .country-overview{visibility:hidden}

/* Keep opponent stat columns aligned, including when a general owns spoils. */
.table .opponent-hud .general-resources{display:grid;grid-template-columns:repeat(3,max-content);column-gap:2px}
.table .opponent-hud .general-hud .general-resources>span{display:inline-grid;grid-template-columns:15px minmax(2ch,max-content);justify-content:start;align-items:center;gap:1px}
.table .opponent-hud .general-resources>span>b{font-variant-numeric:tabular-nums}
@media(max-width:760px){
 .table .opponent-hud .general-resources{column-gap:1px}
 .table .opponent-hud .general-hud .general-resources>span{grid-template-columns:13px minmax(2ch,max-content);gap:0}
}

.card.card>.card-text{display:flex;flex-direction:column;gap:.4em}
.card-copy-line{display:block;flex:none}.card-copy-line.card-flavour{margin-top:auto;font-style:italic;color:var(--ink-2)}
.table :is(.hand,.played-cards)>.card.card>.card-text{display:flex;gap:.3em}

/* Titles sit over the lower art margin; tall capitals may paint outside the line box. */
.card.card>.card-name,.card-large .card.card>.card-name,.table :is(.hand,.played-cards)>.card.card>.card-name{display:block;position:relative;z-index:1;transform:translateY(-.1em);white-space:nowrap;line-height:1.05;overflow:visible;-webkit-line-clamp:unset}
.card-peek{pointer-events:none}.card-peek .card{cursor:default}.card-peek .card-name{white-space:nowrap}.card{touch-action:manipulation;-webkit-touch-callout:none;user-select:none}
.map-general{filter:url(#piece-contrast)}.general-sprite{pointer-events:all}.general-sprite[role=button]{cursor:grab;touch-action:none}.general-sprite:focus-visible{outline:none;filter:drop-shadow(0 0 3px var(--ochre))}.general-health rect{fill:#FBFBF9;stroke:var(--colour);stroke-width:1}.general-health use{color:var(--red)}.general-health text{fill:var(--ink);font:700 11px var(--ui);text-anchor:middle}.hex.command-area>.ground{stroke:var(--ochre);stroke-width:3;stroke-dasharray:5 4}.general-lift img{width:100%;height:100%;object-fit:contain}.general-avatar.fallen-general{opacity:.38;filter:grayscale(1)}
.hex.unclaimed>.ring{stroke-dasharray:5 5;opacity:.45}.claim-flag .flag-pole{stroke:#514738;stroke-width:2.5;stroke-linecap:round}.claim-flag .flag-cloth{fill:var(--colour);stroke:#FBFBF9;stroke-width:1.4}.claim-picker{pointer-events:all}.claim-picker rect{fill:#FBFBF9F2;stroke:var(--coin);stroke-width:1.5}.claim-picker text{font:700 13px var(--ui);text-anchor:middle;fill:var(--ink)}.claim-icon{stroke:var(--coin);stroke-width:2;fill:#B97F1220;stroke-linejoin:round}.claim-check{fill:none;stroke:var(--green);stroke-width:3;stroke-linecap:round;stroke-linejoin:round}.claim-picker [role=button]{cursor:pointer}.claim-picker [aria-disabled=true]{opacity:1}.claim-picker [aria-disabled=true] .claim-check{stroke:var(--ink-2);opacity:.4}.drag-source .general-sprite{opacity:.25}

.general-hp-pip.full{fill:var(--colour);stroke:#FBFBF9;stroke-width:.6}.general-hp-pip.empty{fill:#1A1D26;opacity:.22}

.card{-webkit-tap-highlight-color:transparent}
.hp-pip.full{fill:var(--colour);stroke:#FBFBF9;stroke-width:.6}.hp-pip.empty{fill:#1A1D26;opacity:.22}

/* Illustrated card backs share the same miniature palette as the card faces. */
.deck-back{background:var(--red) var(--deck-back-image) center/100% 100% no-repeat;border:0;outline:0!important}
.mission-back{background:var(--purple) var(--mission-back-image) center/100% 100% no-repeat;border:0;outline:0}
.deck-count{background:#1A1D26bb;color:#FBFBF9;border-radius:3px;padding:0 2px}
.fx-card-back{background:var(--red) var(--deck-back-image) center/100% 100% no-repeat;color:transparent}
.treasure-marker>.piece{animation:treasure-glint 4s ease-in-out infinite}.chance-marker>.piece{animation:chance-breathe 3.5s ease-in-out infinite}
@media(prefers-reduced-motion:reduce){.treasure-marker>.piece,.chance-marker>.piece{animation:none!important}}
/* Pile inspection keeps the three choices visible while cards scroll below. */
dialog.deck-dialog{width:min(920px,calc(100vw - 24px));height:min(700px,calc(100dvh - 32px));padding:16px;background:#FAF6ED;overflow:auto;scrollbar-gutter:stable}
.deck-dialog>h2{position:absolute;clip-path:inset(50%);width:1px;height:1px;overflow:hidden}
.deck-dialog>.buttons{display:none}.deck-tabs{position:sticky;top:-16px;z-index:2;display:flex;gap:8px;margin:-16px -16px 16px;padding:16px;background:#FAF6EDF5;border-bottom:1px solid var(--rule)}
.deck-tabs button{flex:1;border:0;background:transparent;font-weight:600}.deck-tabs button[aria-selected=true]{background:#E6DCD0}.deck-tabs span{margin-left:5px;font-variant-numeric:tabular-nums;color:var(--ink-2)}
.pile-cards{display:grid;grid-template-columns:repeat(auto-fit,minmax(145px,1fr));justify-items:center;gap:12px;align-items:start}.pile-cards>.card.card{--cw:170px;width:min(100%,170px);height:275px;grid-template-rows:minmax(0,1fr) 21px 61px;padding-bottom:28px;--card-title:15px;--card-body:10px;--card-meta:9px;--card-stat:15px;--card-icon:17px}.empty-pile{grid-column:1/-1;padding:36px 12px;text-align:center}
.encounter-illustration{height:150px;display:grid;place-items:center;margin-bottom:12px}.encounter-illustration>.piece{width:150px;height:150px;object-fit:contain}
@media(max-width:600px){.pile-cards{grid-template-columns:repeat(2,minmax(0,1fr));gap:8px}.pile-cards>.card.card{height:250px;--card-title:13px;--card-body:9px}.deck-tabs{gap:0}.deck-tabs button{padding:8px 4px}}

.general-spoils .card-illustration{width:20px;height:20px;object-fit:contain}.self-general .general-spoils .card-illustration{width:28px;height:28px}.general-spoils[role=button]{cursor:pointer}.spoils-cards{margin:12px 0}

dialog.card-peek:focus{outline:none}

/* Card choices stay on the country, using the same confirmation as movement. */
.map-question{position:fixed;z-index:9;top:62px;left:50%;transform:translateX(-50%);display:flex;align-items:center;gap:10px;padding:9px 12px;border-radius:12px;background:#FBFBF9ED;font-size:12px;max-width:calc(100vw - 24px)}
.map-question b{white-space:nowrap}.map-question button{padding:5px 10px;font-size:12px}.map-question span{color:var(--ink-2)}
.fx-jupiter-charge{border-radius:50%;background:radial-gradient(ellipse,#ffe7a2b0 0%,#d4a42930 48%,transparent 70%);filter:blur(7px);transform:translate(-50%,-50%)}
.fx-jupiter-pose{transform:translate(-50%,-50%)}.fx-jupiter-pose img{width:100%;height:100%;object-fit:contain}
.fx-lightning .bolt-bloom{stroke:#d4a42980;stroke-width:16;filter:blur(5px)}.fx-lightning .bolt-branch{stroke-width:2;opacity:.65}
.fx-smite-ring{width:90px;height:50px;border:3px solid #fff1af;border-radius:50%;box-shadow:0 0 22px #d4a42980;transform:translate(-50%,-50%)}
@keyframes jupiter-idle{0%,100%{transform:translateY(0) rotate(-1deg)}35%{transform:translateY(-4px) rotate(.8deg)}70%{transform:translateY(-1px) rotate(-.5deg)}}
@media(max-width:760px){.map-question{top:70px;left:122px;right:8px;transform:none;flex-wrap:wrap;gap:3px 8px;font-size:10px}.map-question span{order:3;width:100%}.map-question button{margin-left:auto}}
/* Pending bulk-play cards stay visible at the right edge until their choice is resolved. */
.table .hand>.card[data-pending-card]{z-index:30;outline:none;box-shadow:0 0 25px 6px #E6B84F85;animation:choice-card-glow 6s ease-in-out infinite;cursor:pointer}

@keyframes choice-card-glow{50%{box-shadow:0 0 28px 7px #E6B84F95}}
.table .hand-area>.hand:has([data-pending-card]){overflow:visible}
@media(prefers-reduced-motion:reduce){.table .hand>.card[data-pending-card]{animation:none}}
/* Chance faces keep the collection's paper surface but have a square silhouette. */
.card.chance-card{width:260px;height:auto;min-height:0;aspect-ratio:1;grid-template-rows:minmax(0,1fr) 25px 84px;padding-bottom:24px;--card-title:18px;--card-body:11px;--card-meta:10px}.card.chance-card .card-art img{height:100%;width:100%;object-fit:contain}.chance-card .card-text{line-height:1.35}
dialog.chance-dialog{width:340px;max-width:calc(100vw - 20px);padding:10px;border:0;background:transparent;box-shadow:none;overflow:visible}.chance-dialog>h2{position:absolute;width:1px;height:1px;overflow:hidden;clip-path:inset(50%)}.chance-dialog .chance-face>.card{width:100%;height:auto;aspect-ratio:1;grid-template-rows:minmax(0,1fr) 27px 82px;--card-title:20px;--card-body:12px;padding-bottom:26px;box-shadow:0 14px 40px #0003}.chance-dialog>.buttons:empty{display:none}

/* Setup belongs to the campaign: the map remains visible and navigable. */
.table.setup-table{position:relative;display:block;padding:0;width:100%;height:100dvh;max-width:none;overflow:hidden}
.table.setup-table .map-area{position:absolute;inset:0;height:100%;min-height:0}
.setup-table .map-scroll{height:100%;width:100%}
.table.setup-table .country-overview{bottom:18px;right:18px;left:auto}
.setup-table .campaign-setup{position:absolute;z-index:3;top:65px;left:220px;right:70px;bottom:18px;display:flex;flex-direction:column;align-items:center;pointer-events:none;overflow-y:auto;scrollbar-width:thin}
.setup-table .setup-heading{flex:none;max-width:770px;margin:0 0 16px;padding:17px 25px;background:#FBFBF9e8;backdrop-filter:blur(8px);border-radius:14px;pointer-events:auto;text-align:center}
.setup-table .setup-heading h1{font:36px/1.1 var(--display);margin:12px 0 10px}.setup-table .setup-heading p{font-size:13px;line-height:1.5;margin:0}
.setup-steps{display:flex;justify-content:center;gap:20px;font-size:11px;color:var(--ink-2)}.setup-steps [aria-current]{color:var(--red);font-weight:700}
.setup-table .draft-cards{flex:none;max-width:100%;width:max-content;pointer-events:none;padding:4px 10px 10px;gap:18px;overflow-x:auto;box-sizing:border-box}
.setup-table .draft-cards .card.card{pointer-events:auto;flex:none;width:220px;--cw:220px;height:348px;min-height:348px;grid-template-rows:minmax(0,1fr) 24px 83px;--card-body:12px;padding-bottom:30px;cursor:pointer;transition:transform .16s,border-color .16s}
.setup-table .draft-cards .card.card:hover{transform:translateY(-3px);border-color:var(--red)}
.setup-table .draft-deck{pointer-events:auto;background:#FBFBF9dd;backdrop-filter:blur(6px);padding:10px 20px;border-radius:12px;margin-top:4px;max-width:690px}
.setup-table .draft-progress{margin:0;gap:8px}.setup-table .draft-progress>span{width:22px;height:22px}.setup-table .draft-deck p{font-size:11px;margin:5px 0}.setup-table .draft-deck>div>span{font-size:10px}.setup-table .mission-reminder{justify-content:center}.setup-table .mission-reminder .ic{width:14px;height:14px}
.setup-generals{position:absolute;z-index:3;left:18px;bottom:20px;display:flex;flex-direction:column;gap:8px;width:174px}
.setup-general{display:flex;align-items:center;gap:5px;background:#FBFBF9b8;border-left:3px solid var(--general);border-radius:8px;padding:6px 10px;min-height:64px;backdrop-filter:blur(6px)}.setup-general.current{background:#FBFBF9ed}.setup-general>.piece{width:42px;height:62px;object-fit:contain}.setup-general b{display:block;font-size:13px;overflow-wrap:anywhere}.setup-general small{display:block;margin-top:4px;font-size:10px;color:var(--ink-2)}
.setup-waiting{padding:14px 20px;background:#FBFBF9dc;border-radius:10px;font-size:14px}
.setup-table .campaign-setup.map-setup{bottom:auto;overflow:visible}.setup-table .map-setup .setup-heading{max-width:620px}
.setup-table .hex.reachable .ground{stroke:#566070;stroke-width:2;stroke-dasharray:3 5}.setup-table .hex.reachable:hover .ground{stroke:var(--green);stroke-width:4;stroke-dasharray:none}
@media(max-width:760px){
 .table.setup-table .jupiter-watch{top:18px;left:16px;width:92px}.table.setup-table .jupiter-watch img{width:92px;height:103px}
 .setup-table .campaign-setup{top:135px;left:0;right:0;bottom:102px;overflow-x:hidden}
 .setup-table .setup-heading{margin:0 12px 14px;padding:14px 16px}.setup-table .setup-heading h1{font-size:28px}.setup-table .setup-heading p{font-size:12px}.setup-steps{gap:12px;font-size:10px}
 .setup-table .draft-cards{justify-content:flex-start;scroll-snap-type:x mandatory;padding:4px 24px 10px;gap:12px}
 .setup-table .draft-cards .card.card{width:200px;--cw:200px;height:304px;min-height:304px;--card-title:17px;--card-body:11px;grid-template-rows:minmax(0,1fr) 22px 78px;scroll-snap-align:center}
 .setup-table .draft-deck{margin:4px 14px 10px;padding:8px 12px}.setup-table .draft-deck>div:not(.draft-progress){display:none}
 .setup-generals{left:12px;right:12px;bottom:12px;flex-direction:row;width:auto;gap:5px}.setup-general{padding:4px;min-height:58px;min-width:0;flex:1;gap:1px}.setup-general>.piece{width:27px;height:47px}.setup-general b{font-size:9px}.setup-general small{font-size:8px}
 .table.setup-table .country-overview{bottom:92px;width:92px;height:62px}.setup-table:has(.card-setup) .country-overview{display:none}
 .setup-table .campaign-setup.map-setup{top:132px}
}
@media(prefers-reduced-motion:reduce){.setup-table .draft-cards .card.card{transition:none}}

.setup-uncover{pointer-events:auto;margin:12px;padding:14px 30px}

/* A little elevation for cards lifted above the board. */
:is(dialog.card-peek,dialog.card-popup,dialog.chance-dialog) .card.card,
.setup-table .draft-cards .card.card{box-shadow:0 2px 5px #1A1D2610,0 8px 18px #1A1D261F}
.setup-table .draft-cards{padding-top:10px;padding-bottom:22px}

/* Available land stays vivid; hover and selection use the choosing team's colour. */
.setup-table .hex[data-capital-choice] .ground,
.setup-table .hex[data-capital-choice]:is(:hover,:focus-visible,.selected) .ground{stroke:var(--marble);stroke-width:2;stroke-dasharray:none}
.placement-unavailable{fill:#FBFBF978;stroke:none}
.placement-guide{opacity:0}
.placement-guide polygon{fill:none;stroke-linejoin:round;vector-effect:non-scaling-stroke}
.placement-halo{stroke:var(--marble);stroke-width:7}
.placement-edge{stroke:var(--placement-colour);stroke-width:5}
.setup-table .hex[data-capital-choice]:is(:hover,:focus-visible,.selected) .placement-guide{opacity:1}
.setup-table .hex[data-capital-choice].selected .placement-edge{fill:var(--placement-colour);fill-opacity:.08}

/* SVG focus follows the hex or control shape, never its rectangular bounds. */
.map-scroll svg:focus,.map-scroll svg :focus{outline:none}
.claim-picker [role=button]:focus-visible rect{stroke:var(--bolt);stroke-width:3}

/* Keep Play All separate from the hand, above its left edge. */
.table .hand-area>#play-all{top:auto;bottom:calc(100% + 8px);left:0;right:auto;width:44px;height:44px;background:#FBFBF9e6}
.table .hand-area>#play-all svg{width:30px;height:30px}

.table .hand-area>#play-all[hidden]{display:none}
.claim-cancel{fill:none;stroke:var(--red);stroke-width:3;stroke-linecap:round}
.claim-picker #cancel-claim rect{stroke:#B3261E50}


.card-popup .choice-note{padding:9px 11px;margin:9px 0 0;background:#FBFBF9ed;border-radius:6px;color:var(--ink-2);font-size:11px;line-height:1.45}

.help-menu{position:relative}.help-menu>summary{list-style:none;cursor:pointer}.help-menu>summary::-webkit-details-marker{display:none}
.help-menu-panel{position:absolute;right:0;top:calc(100% + 8px);width:230px;padding:6px;background:#FBFBF9f5;border:1px solid var(--rule);border-radius:8px;display:grid;gap:2px;box-shadow:0 5px 18px #1A1D2620}
.help-menu-panel a,.help-menu-panel button{display:block;width:100%;padding:11px 10px;text-align:left;text-decoration:none;border:0;border-radius:5px;background:none;color:var(--ink);font:13px var(--ui)}
.help-menu-panel :is(a,button):hover{background:#E3EBF1}

/* One surface, three simple choices. Hit areas stay keyboard-accessible. */
.march-picker .choice-pill-bg,.claim-picker .choice-pill-bg{fill:var(--marble);stroke:var(--rule);stroke-width:1}
.march-picker [role=button] rect,.march-picker #confirm-move rect,.claim-picker [role=button] rect,.claim-picker #cancel-claim rect{fill:transparent;stroke:none}
.march-picker .choice-cancel{stroke:var(--red)}.march-picker .choice-check{stroke:var(--green)}
:is(.march-picker,.claim-picker) [role=button]:focus-visible rect{stroke:var(--bolt);stroke-width:2}
.table .hand-area>.hand:has(.card:hover),.table .hand-area>.hand:has(.card:focus-visible){overflow:visible}
/* Decision prompts pair a tilted full card with an adjacent action column. */
dialog.choice-dialog{width:720px;max-width:calc(100vw - 24px);max-height:calc(100dvh - 24px);padding:30px;border:0;border-radius:16px;background:#FBFBF9f5;overflow:auto;box-shadow:0 10px 35px #1A1D2630}
.choice-dialog>h2{position:absolute;width:1px;height:1px;overflow:hidden;clip-path:inset(50%)}
.choice-prompt{display:grid;grid-template-columns:260px minmax(0,1fr);align-items:center;gap:40px}
.choice-prompt .card-large{width:260px;transform:rotate(-4deg)}
.choice-prompt .card.card{box-shadow:0 3px 6px #1A1D2615,0 10px 24px #1A1D2630;cursor:default}
.choice-dialog>.buttons:empty{display:none}.choice-options .choices{display:grid;max-height:400px;overflow:auto}.choice-options .buttons{display:grid;gap:12px}.choice-options button{min-height:44px;width:100%}
.choice-options .choice-note{font-size:12px;line-height:1.6;margin:18px 0 0;color:var(--ink-2)}
@media(max-width:650px){dialog.choice-dialog{padding:24px 22px}.choice-prompt{grid-template-columns:minmax(0,1fr);gap:24px;justify-items:center}.choice-options{width:100%}.choice-options .buttons{grid-template-columns:1fr 1fr;gap:8px}.choice-options .buttons button:first-child{grid-column:1/-1}.choice-options .choice-note{margin-top:12px}.choice-prompt .card-large,.choice-prompt .card-large>.card{width:min(260px,100%)}}

.setup .seat-name{align-self:center;font-weight:600}
.table .hand-area>#play-all{top:0;bottom:auto;left:50%;right:auto;transform:translate(-50%,-50%);width:58px;height:58px;border-radius:14px;background:#FBFBF9f2}.table .hand-area>#play-all svg{width:38px;height:38px}.table .hand-area>#play-all:not(:disabled){box-shadow:0 0 25px 6px #E6B84F85;animation:choice-card-glow 6s ease-in-out infinite}.table .hand-area>#play-all:not(:disabled) svg{filter:none}@media(prefers-reduced-motion:reduce){.table .hand-area>#play-all:not(:disabled){animation:none}}

.chance-dialog .chance-face>.card.card{--card-inset:10px;padding:var(--card-inset) var(--card-inset) 32px;gap:5px}.chance-dialog .chance-face>.card.card>.card-art{padding:8px 14%}

.table .play-area-footer #end-turn{width:46px;height:46px;min-height:46px;padding:9px;border:1px solid #2A857060;background:var(--green);color:var(--marble);border-radius:12px}.table .play-area-footer #end-turn svg{width:27px;height:27px}.table .play-area-footer #end-turn:hover:not(:disabled){background:#23725f}.table .play-area-footer #end-turn:disabled{opacity:.38}
dialog.choice-dialog{width:660px;background:transparent;box-shadow:none;padding:24px;overflow:auto}.choice-prompt{position:relative;isolation:isolate;grid-template-columns:260px minmax(0,1fr);gap:18px}.choice-prompt:before{content:"";position:absolute;z-index:-1;top:35px;bottom:35px;left:205px;right:0;background:#FBFBF9f5;border:1px solid #d7d0c4;border-radius:14px;box-shadow:0 8px 24px #1A1D2620}.choice-prompt .choice-options{padding:20px}.choice-prompt .card-large{z-index:1}@media(max-width:650px){.choice-prompt{grid-template-columns:minmax(0,1fr);gap:0}.choice-prompt:before{top:280px;bottom:0;left:0;right:0}.choice-prompt .choice-options{padding:24px 14px 14px}}

.map-market-art{height:150px;display:flex;justify-content:center}.map-market-art>.piece{width:190px}.market-peace{font-size:13px;color:var(--ink-2)}.market-trades{display:grid;gap:10px}.market-trades button{justify-content:space-between;gap:18px;text-align:left;padding:14px}.market-trades small{display:block;font-size:12px;font-weight:400;color:var(--ink-2);margin-top:5px}.market-trades b{display:flex;align-items:center;gap:5px;white-space:nowrap}.market-trades .ic{width:24px;height:24px}.fortune-dialog{width:850px;max-width:calc(100vw - 24px)}.fortune-missions,.mission-fan{display:flex;gap:18px;overflow:auto;padding:12px 8px}.fortune-missions .card.card{flex:none;width:230px;--cw:230px;height:360px;grid-template-rows:minmax(0,1fr) 24px 90px;--card-title:19px;--card-body:12px;padding-bottom:30px}.mission-fan .card-large{flex:none}.market-plaza{opacity:.85}
/* Keep the ocean's original texture and drift, but move a composited layer. */
.play .table .map-scroll,.play[data-sky] .table .map-scroll{background:transparent;animation:none;z-index:1}
.table .map-area:before{content:"";position:absolute;inset:-24px;z-index:0;pointer-events:none;background-color:var(--fair);background-image:linear-gradient(#E3EBF1e6,#E3EBF1e6),var(--sea-texture-image);background-size:auto,640px 640px;background-position:0 0,24px 24px;animation:ocean-layer-drift 36s ease-in-out infinite alternate;will-change:transform}
@keyframes ocean-layer-drift{to{transform:translate(24px,12px)}}
@media(prefers-reduced-motion:reduce){.table .map-area:before{animation:none;will-change:auto}}

/* Affordable cards stay clear; unavailable cards remain inspectable but faded. */
.table :is(.forum-grid,.reserve)>.card.card[aria-disabled=false]{border-color:var(--card-edge);box-shadow:none;opacity:1;cursor:pointer}
.table :is(.forum-grid,.reserve)>.card.card[aria-disabled=true]{border-color:var(--card-edge);box-shadow:none;filter:none;cursor:default;opacity:.42}


.table .play-area-footer #end-turn{width:auto;display:flex;align-items:center;gap:7px;padding:9px 12px;font:600 13px var(--ui)}.table .play-area-footer #end-turn svg{width:23px;height:23px;flex:none}
.general-spoils .capital-spoils,.capital-spoils>span,.general-spoils .general-potions{display:flex;align-items:center;gap:3px}.general-spoils .capital-spoils{gap:8px}.capital-spoils[role=button]{cursor:pointer}
.general-spoils button.general-potions{padding:0;min-height:0;border:0;border-radius:0;background:none;box-shadow:none;font:inherit;color:var(--ink);cursor:pointer}.general-spoils button.general-potions[aria-disabled=true]{cursor:default;opacity:.45}
.general-potions .potion-art{display:flex;align-items:center}

.market-trades .market-stock{font-weight:600;color:var(--coin)}.market-trades button:disabled .market-stock{color:var(--ink-2)}

/* Sacrifice shares the fixed-size deck gallery, with only legal card piles. */
.pile-instruction{margin:0 0 16px;color:var(--ink-2);font-size:14px}
.sacrifice-dialog [data-sacrifice-card]:hover,.sacrifice-dialog [data-sacrifice-card]:focus-visible{box-shadow:0 5px 14px #49341C29}

/* End-turn confirmation uses the same paper and centred map-choice symbols. */
dialog.end-turn-dialog{width:360px;max-width:calc(100vw - 32px);padding:26px;border:1px solid #d7d0c4;border-radius:14px;background:#FAF8F2 url('/art/card-paper.svg');text-align:center;box-shadow:0 10px 32px #49341C24}
.end-turn-dialog h2{margin:0 0 10px;font-size:30px}.end-turn-dialog .turn-expiry{font-size:14px;color:var(--ink-2);margin:0 0 18px}.end-turn-resources.gives{display:flex;justify-content:center;flex-wrap:nowrap;gap:30px;font-size:23px;padding:6px 0}.end-turn-resources.gives>span{display:inline-flex;align-items:center;gap:7px;min-width:52px;justify-content:center}.end-turn-resources .ic{width:28px;height:28px}.end-turn-dialog>.buttons{display:flex;justify-content:center;gap:28px;margin-top:24px}.end-turn-dialog .turn-confirm-icon{display:grid;place-items:center;width:58px;height:48px;padding:10px;border:0;border-radius:10px;background:transparent}.turn-confirm-icon svg{width:28px;height:28px;fill:none;stroke:currentColor;stroke-width:2.4;stroke-linecap:round;stroke-linejoin:round}.end-turn-dialog .cancel{color:#b3261e;background:#b3261e0c}.end-turn-dialog .confirm{color:#247757;background:#24775712}.end-turn-dialog .turn-confirm-icon:hover{filter:brightness(.85)}

.fx-combat-piece{width:90px;height:100px;transform:translate(-50%,-50%);filter:drop-shadow(0 3px 3px #49341C55)}.fx-combat-piece img{width:100%;height:100%;object-fit:contain}
.fx-combat-clash{width:170px;height:150px;transform:translate(-50%,-55%);filter:drop-shadow(0 3px 5px #49341C44)}.clash-blade{position:absolute;top:10px;left:58px;width:54px;height:132px;transform-origin:50% 70%}.clash-blade svg{width:100%;height:100%}.clash-spark{position:absolute;left:65px;top:33px;width:40px;height:40px;background:#FFE9A0;clip-path:polygon(50% 0,60% 35%,95% 10%,70% 45%,100% 50%,65% 60%,80% 100%,50% 70%,20% 100%,35% 60%,0 50%,35% 40%,10% 10%,45% 35%);opacity:0}

/* Regular, Fortune and Fate faces all use this single pale paper material. */
:root{--card-paper:#FAF8F2;--card-paper-texture:url('/art/card-paper.svg')}

dialog.scouting-dialog{width:720px;max-width:calc(100vw - 24px);padding:24px;border:1px solid #d7d0c4;border-radius:14px;background:#FAF8F2;box-shadow:0 10px 32px #49341C24}.scouting-dialog>p{color:var(--ink-2);font-size:14px}.scouted-cards{display:flex;justify-content:center;flex-wrap:wrap;gap:20px;margin-top:20px}.scouting-dialog .chance-card{width:280px}.scouting-dialog>.buttons{display:none}

dialog.recap-dialog{width:530px;max-width:calc(100vw - 24px);max-height:calc(100dvh - 32px);padding:24px;border:1px solid #d7d0c4;border-radius:14px;background:#FAF8F2;box-shadow:0 10px 32px #49341C24}.recap-dialog>h2{font-size:30px;margin:0 0 20px}.recap-section+.recap-section{margin-top:20px;padding-top:18px;border-top:1px solid #d7d0c4}.recap-section h3{font:600 15px var(--ui);margin-bottom:12px}.recap-gains{list-style:none;margin:0;padding:0;display:grid;gap:9px}.recap-gains li{display:flex;align-items:center;gap:12px}.recap-resource{display:inline-flex;align-items:center;gap:7px;min-width:66px}.recap-resource .ic,.recap-support summary .ic{width:24px;height:24px}.recap-resource b{font-size:18px;font-variant-numeric:tabular-nums}.recap-support{margin-top:14px;font-size:13px;color:var(--ink-2)}.recap-support summary{cursor:pointer}.recap-support ul{margin-top:12px}.recap-dialog .recap{max-height:220px;overflow:auto;padding:0;margin:0}.recap-dialog>.buttons{justify-content:flex-end;margin-top:20px}.recap-dialog .turn-confirm-icon{display:grid;place-items:center;width:52px;height:44px;padding:8px;border:0;background:#24775712;color:#247757;border-radius:10px}

.fx-smite-token{width:32px;height:38px;transform:translate(-50%,-50%);filter:drop-shadow(0 2px 3px #1A1D2650)}.fx-smite-token svg{width:100%;height:100%;fill:currentColor}.fx-smite-damage{font:700 16px var(--ui);color:#B3261E;white-space:nowrap;text-shadow:0 1px 2px #FAF8F2b3}

.recap-damage{list-style:none;margin:0;padding:0;display:grid;gap:10px}.recap-damage li{display:flex;gap:10px;align-items:center}.recap-damage .ic{width:24px;height:24px}.recap-damage small{display:block;color:var(--ink-2);font-size:12px}

.recap-vp{list-style:none;margin:0;padding:0;display:grid;grid-template-columns:1fr 1fr;gap:10px}.recap-vp li{display:flex;justify-content:space-between;gap:12px;padding:7px 10px;border-left:3px solid var(--general);background:#FBFBF980;border-radius:5px}.recap-vp b{font-variant-numeric:tabular-nums}.recap-vp small{font-size:10px}.recap-vp .positive{color:var(--green)}.recap-vp .negative{color:var(--red)}

/* Opponent spoils share the bottom stats row and its icon scale. */
.table .opponent-hud .general-hud.has-spoils{grid-template-columns:36px minmax(0,1fr);height:auto;min-height:58px}.table .opponent-hud .general-resources{display:flex;flex-wrap:wrap;align-items:center;gap:3px}.table .opponent-hud .general-resources .general-spoils{position:static;display:flex;flex-direction:row;align-items:center;gap:5px;margin-left:5px;line-height:1;font-size:10px}.table .opponent-hud .general-spoils .capital-spoils{gap:5px;flex-wrap:wrap}.table .opponent-hud .general-spoils :is(.ic,.card-illustration){width:15px;height:15px;min-width:15px;object-fit:contain}.table .opponent-hud .general-info>strong{padding-right:33px}
@media(max-width:760px){.table .opponent-hud .general-hud.has-spoils{grid-template-columns:28px minmax(0,1fr)}.table .opponent-hud .general-resources .general-spoils{margin-left:0;gap:3px}.table .opponent-hud .general-spoils :is(.ic,.card-illustration){width:13px;height:13px;min-width:13px}}

.fx-battle-result{display:grid;gap:7px;min-width:205px;max-width:280px;padding:14px 18px;border-radius:12px;border:1px solid #d7d0c4;background:#FAF8F2f5;box-shadow:0 6px 24px #49341C35;text-align:center;transform:translate(-50%,-50%);color:var(--ink)}.fx-battle-result strong{font:24px var(--display)}.fx-battle-result span{font:600 14px/1.5 var(--ui)}.fx-battle-result small{font:12px var(--ui);color:var(--ink-2)}

/* Only the surrounding ocean darkens; terrain artwork and HUD retain their contrast. */
.table .map-area:before{filter:brightness(calc(1 - var(--storm-progress,0) * .79)) saturate(calc(1 - var(--storm-progress,0) * .25));transition:filter 1.8s ease}
.fx-final-smite{inset:0!important;transform:none;width:100vw;height:100dvh;display:grid;place-content:center;gap:12px;text-align:center;background:radial-gradient(ellipse,#1A1D2680,#10121de8);color:#FBFBF9}.fx-final-smite strong{font:clamp(40px,7vw,80px) var(--display);letter-spacing:.07em}.fx-final-smite span{font:15px var(--ui);color:#E6DCD0}.final-smite-active .fx-lightning path{stroke-width:6;filter:drop-shadow(0 0 9px #E6B84F)}.final-smite-active .fx-smite-ring{filter:drop-shadow(0 0 14px #FFE9A0)}

.score-reveal{max-width:1220px;margin:auto;padding:25px 24px 32px;min-height:100dvh;background:#FAF8F2;color:var(--ink)}.score-reveal>header{text-align:center;margin-bottom:20px}.score-reveal header p{color:var(--ink-2);margin:12px 0 3px}.score-reveal h1{font-size:34px;min-height:44px}.score-columns-scroll{overflow-x:auto}.score-columns{display:grid;grid-template-columns:repeat(var(--players),minmax(175px,1fr));gap:14px;padding:5px 4px 16px}.score-column{border:1px solid #d7d0c4;border-top:4px solid var(--general);border-radius:10px;background:#FBFBF9;padding:14px;transition:box-shadow .7s,transform .7s}.score-general{text-align:center;height:135px}.score-general>.piece{height:78px;width:65px;margin:auto}.score-general h2{font-size:24px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.score-general>small{color:var(--ink-2);font-size:11px}.score-column dl{margin:12px 0}.score-category{display:flex;justify-content:space-between;gap:6px;align-items:center;min-height:32px;font-size:13px;opacity:0;transform:translateY(7px);transition:opacity .4s,transform .4s}.score-category.revealed{opacity:1;transform:none}.score-category dd{margin:0;font-weight:700;font-variant-numeric:tabular-nums}.score-total{display:flex;justify-content:space-between;align-items:center;border-top:1px solid #d7d0c4;padding-top:12px}.score-total>b{font-size:27px;font-variant-numeric:tabular-nums}.score-total small{font-size:11px}.score-award{display:flex;justify-content:center;align-items:center;gap:5px;min-height:34px;margin-top:10px;font-size:14px}.score-award[aria-hidden=true]{visibility:hidden}.score-award .ic{width:30px;height:30px;color:var(--coin)}.score-champion{box-shadow:0 0 25px #D8B24F60;border-color:#B97F12;border-top-color:var(--general);background:#FFFCF3;transform:translateY(-4px)}.score-champion .score-award{color:#996D00}.score-last .score-award{color:var(--red)}.score-other .score-award{color:var(--ink-2)}.score-reveal>footer{display:flex;justify-content:center;flex-wrap:wrap;gap:10px;margin-top:12px}@media(max-width:600px){.score-reveal{padding:20px 12px}.score-reveal h1{font-size:28px}.score-columns{gap:10px}.score-column{padding:10px}.score-category{font-size:12px}}
/* Phone rails keep HP and VP readable without competing for the same line. */
@media(max-width:480px){
 .table .opponent-hud .general-hud,.table .opponent-hud .general-hud.has-spoils{grid-template-columns:24px minmax(0,1fr);min-height:74px;height:auto;row-gap:3px}
 .table .opponent-hud .general-avatar{width:24px;height:39px}
 .table .opponent-hud .general-info{padding-top:12px;gap:2px}
 .table .opponent-hud .general-info>strong{font-size:9px;padding-right:0}
 .table .opponent-hud .hud-health,.table .opponent-hud .hud-health b{font-size:11px;line-height:12px}
 .table .opponent-hud .hud-health small{font-size:6px}
 .table .opponent-hud .general-resources{grid-column:1 / -1;gap:2px}
 .table .hand-controls .self-general{grid-template-columns:25px minmax(0,1fr);grid-template-rows:44px auto 36px minmax(0,1fr);padding-top:27px;gap:4px}
 .table .hand-controls .self-general .general-avatar{width:25px;height:49px}
 .table .self-general .general-info>strong{padding-right:0;font-size:10px!important}
 .table .hand-controls .self-general .hud-health,.table .hand-controls .self-general .hud-health b{font-size:12px;gap:0}
 .table .self-general>.hud-vp{font-size:18px}
 .table .self-general .general-resources,.table .self-general .general-cards{grid-column:1 / -1;justify-self:start}
}
@media(min-width:761px) and (max-height:800px){
 .score-reveal{padding-top:14px;padding-bottom:14px}
 .score-reveal>header{margin-bottom:8px}.score-reveal header p{margin:5px 0 2px}
 .score-reveal h1{font-size:30px;min-height:36px}
 .score-general{height:102px}.score-general>.piece{height:56px;width:48px}.score-general h2{font-size:20px}
 .score-column dl{margin:8px 0}.score-category{min-height:26px}
 .score-award{margin-top:6px}.score-reveal>footer{margin-top:4px}
}
#reveal-scores[hidden]{display:none}

/* Jupiter's fallen statue changes the ocean; the board and HUD stay readable. */
.table.statue-wrath .map-area:before{background-color:#511c25;background-image:linear-gradient(#852b35c9,#30101dcc),var(--sea-texture-image);filter:brightness(calc(1 - var(--storm-progress,0)*.25)) saturate(.85)}
.statue-glow{fill:#a51d2840;stroke:#cf303c;stroke-width:3;filter:drop-shadow(0 0 8px #e32736);pointer-events:none}
.statue-ruins .fallen-statue{filter:drop-shadow(0 2px 3px #23060b66)}
.table .statue-deadline{position:fixed;top:12px;left:50%;transform:translateX(-50%);z-index:6;padding:9px 18px;border:1px solid #d8bca2;border-radius:7px;background:#74212b;color:#fff8ea;font:600 16px/1.35 var(--ui);text-align:center;white-space:nowrap;pointer-events:none}.statue-deadline strong{display:block;font-size:20px;margin-top:2px}@media(max-width:760px){.table .statue-deadline{top:54px;padding:7px 10px;font-size:14px}.statue-deadline strong{font-size:16px}}
.table.statue-wrath .roundline{color:var(--ink);text-shadow:0 1px 3px #fff8}
.recap-doom{display:flex;align-items:center;gap:12px;padding:14px;margin:0 0 20px;border:1px solid #d8bca2;border-radius:8px;background:#74212b;color:#fff8ea}.recap-doom>.ic{flex:none;width:28px;height:28px;color:#f1c75b}.recap-doom strong,.recap-doom span{display:block}.recap-doom strong{font-size:16px;margin-bottom:5px}.recap-doom span{font-size:14px;line-height:1.45}.recap-doom b{white-space:nowrap}

.defence-counter path{fill:#766337;stroke:#fff;stroke-width:2}.defence-counter text{fill:white;font:700 11px var(--ui);text-anchor:middle}

.recap-dialog .recap li[data-recap]{display:grid;grid-template-columns:24px minmax(0,1fr);align-items:center;gap:12px;padding:9px 0;line-height:1.4}
.recap li:has(>.recap-event-icon){display:flex;align-items:center;gap:12px}.recap-event-icon{width:24px;height:24px;flex:0 0 24px;display:grid;place-items:center;color:var(--ink-2)}.recap-event-icon .ic{width:24px;height:24px}.recap-event-icon svg:has(use[href="#hubris-drop"]){width:17px;height:24px}

/* Five columns; even a full supply fits beside Jupiter without a scroll area. */
.table .jupiter-status .altar{display:grid;grid-template-columns:repeat(5,10px);column-gap:3px;row-gap:0;width:max-content;max-width:none;max-height:none;padding:0;overflow:visible;align-items:center}
.table .jupiter-status .altar .cube{width:10px;height:min(17px,calc(150px / var(--hubris-rows,1)))}
@media(max-width:760px){.table .jupiter-status .altar{grid-template-columns:repeat(5,8px);column-gap:2px}.table .jupiter-status .altar .cube{width:8px;height:min(14px,calc(100px / var(--hubris-rows,1)))}}

/* Wildlife swipes use a paw and claw trails, never the sword-clash overlay. */
.fx-bear-swipe{width:160px;height:150px;transform:translate(-50%,-50%)}
.bear-paw,.bear-claws{position:absolute;inset:0;opacity:0}
.bear-paw{filter:drop-shadow(0 5px 5px #49322655)}
.bear-paw svg,.bear-claws svg{width:100%;height:100%}
.bear-claws path{fill:none;stroke:#f8ecd6;stroke-width:7;stroke-linecap:round;filter:drop-shadow(0 2px 1px #8c312bcc)}

/* Resolve mandatory discards directly in the visible hand. */
.table .hand-discard-prompt{position:absolute;left:50%;top:0;transform:translate(-50%,-60%);z-index:60;padding:8px 14px;background:var(--paper,#FBFBF9);border-radius:9px;box-shadow:0 2px 12px #211E2426;font-size:13px;font-weight:600;white-space:nowrap;pointer-events:none}
.table .hand>.card[data-discard]{box-shadow:0 -5px 16px #211E2445;cursor:pointer}
.table .hand>.card[data-discard]:hover,.table .hand>.card[data-discard]:focus-visible{transform:translateY(-10px);box-shadow:0 -8px 20px #211E2460}

.spoils-cards .chance-face{width:min(260px,100%)}
.spoils-cards .chance-face>.card.card{width:100%;height:auto;aspect-ratio:1;grid-template-rows:minmax(0,1fr) 27px 82px;--card-title:18px;--card-body:12px;padding:10px 10px 30px;gap:5px}
.table[data-active=false] .hand-discard-prompt{visibility:hidden}

.table .side>.undo-control{position:absolute;left:4px;bottom:calc(var(--hand-height) + 16px);z-index:60;width:46px;height:46px;padding:8px;border:0;border-radius:14px;background:#FBFBF9cc;box-shadow:none;animation:none;pointer-events:auto;color:var(--ink)}
.table .side>.undo-control svg{width:30px;height:30px;filter:none}
.table .side>.undo-control:disabled{opacity:.35;cursor:default}
.table .side>.undo-control:not(:disabled):hover{background:#FBFBF9f2}
@media(max-width:760px){.table .side>.undo-control{left:auto;right:calc(var(--market-width) + 10px)}}
@media(max-width:760px){.table:not(.setup-table) .country-overview{left:calc(var(--market-width) + 10px)}}

/* Soft white backing keeps turn totals legible over overlapping card art. */
.turn-resources>span{position:relative;isolation:isolate}
.turn-resources>span::before{content:"";position:absolute;inset:-7px -9px;border-radius:50%;background:radial-gradient(ellipse closest-side,#FBFBF99E 0%,#FBFBF966 60%,#FBFBF900 100%);z-index:-1;pointer-events:none}
.table .side>.undo-control:disabled{pointer-events:none}
.soldier-dragging .undo-control{visibility:hidden}

.fx-smite-damage{display:flex;align-items:center;justify-content:center;gap:3px}.fx-smite-damage .ic{width:18px;height:18px}

.table .empty-market{border:0;background:transparent;color:#56607045;font-size:15px}
.table .play-area .played-cards{isolation:isolate;z-index:0}
.table .play-area .play-area-heading{isolation:isolate;z-index:60}

.table .side>.undo-control[hidden]{display:none}
.play[data-sky] .table .topbar,.table .top-actions .hud-icon{color:var(--ink)}
.table .top-actions,.table .top-actions .hud-icon,.table .top-actions svg{filter:none;text-shadow:none}
.table .topbar>.roundline,.table.statue-wrath .roundline{text-shadow:none;color:var(--ink)}
.play .table .general-hud .hud-health,.play .table .general-hud .hud-health small,.play .table .general-hud .general-resources,.play .table .general-hud .general-resources b,.play .table .general-hud .general-spoils{color:var(--ink);text-shadow:none}

/* The score sheet and newspaper share the warm, full-viewport paper. */
body.play:not(:has(.table)):has(.score-reveal){background:#FAF8F2}
.fx-scorched-soldier{z-index:180;pointer-events:none}.fx-scorched-soldier img{width:100%;height:100%;object-fit:contain}
dialog.gazette-dialog{width:min(900px,calc(100vw - 28px));max-width:900px;padding:28px;background:#faf7ed;color:var(--ink);border:1px solid #c9bca4;border-radius:3px}
.gazette-dialog>h2,.gazette-dialog>.buttons{display:none}.gazette-paper header{text-align:center;border-bottom:4px double #85755f;padding-bottom:12px}.gazette-paper header h2{font-size:clamp(30px,5vw,48px);margin:4px 0}.gazette-edition{display:flex;justify-content:space-between;font-size:11px;text-transform:uppercase;letter-spacing:.1em}.gazette-lead{display:grid;grid-template-columns:150px 1fr;gap:24px;align-items:center;padding:24px 0;border-bottom:1px solid #bcad96}.gazette-lead>.piece{width:150px;height:160px;object-fit:contain}.gazette-lead h3{font-size:clamp(24px,4vw,36px);line-height:1.12;margin:0 0 12px}.gazette-lead p{font-size:15px;line-height:1.6;margin:0}.gazette-paper>h3{font-size:23px;margin:20px 0 8px}.gazette-paper .recap{padding:0;list-style:none}.gazette-paper .recap li{display:flex;gap:12px;padding:11px 0;border-bottom:1px solid #cbbda555;break-inside:avoid;align-items:center;font-size:13px}.gazette-paper .recap-event-icon{flex:0 0 26px}.gazette-paper .recap-event-icon .ic{width:24px;height:24px}@media(max-width:600px){dialog.gazette-dialog{padding:18px}.gazette-lead{grid-template-columns:75px 1fr;gap:14px}.gazette-lead>.piece{width:75px;height:120px}.gazette-edition{font-size:9px}}

.setup-reference-cards{display:flex;align-items:center;justify-content:center;gap:20px;margin:14px auto 0;pointer-events:auto}.setup-reference-cards .deck-stack{width:42px;height:54px}.setup-reference-cards .mission-card{width:38px;height:52px}

.gazette-paper .recap{max-height:none;overflow:visible}.gazette-paper .recap li{border-top:0}.gazette-paper .recap li:hover{background:transparent}

.setup-reference-cards>button{position:relative;display:block;flex:none;min-height:0;padding:0;border:0;background:none;box-shadow:none}

.table[data-active="false"] .claim-picker{visibility:hidden;pointer-events:none}

.recap-activity{position:relative}.recap-dialog .recap-activity .recap{padding-right:10px;scrollbar-gutter:stable;scrollbar-width:thin;scrollbar-color:#a5947b #e7dfd2}.recap-activity .recap::-webkit-scrollbar{width:8px}.recap-activity .recap::-webkit-scrollbar-track{background:#e7dfd2;border-radius:6px}.recap-activity .recap::-webkit-scrollbar-thumb{background:#a5947b;border:2px solid #e7dfd2;border-radius:6px}.recap-scroll-hint{display:block;text-align:center;font-size:11px;color:#79674e;padding:7px 0 0;letter-spacing:.03em}.recap-scroll-hint[hidden]{display:none}.recap-activity.more-below::after{content:"";position:absolute;bottom:23px;left:0;right:20px;height:18px;background:linear-gradient(transparent,#FAF8F2);pointer-events:none}

/* Card choices visibly confirm before travelling to the relevant pile. */
.choice-picking>.card:not(.choice-picked){opacity:.4;transition:opacity .16s}
.card.choice-picked{position:relative;z-index:5;box-shadow:0 0 0 3px var(--ochre),0 10px 25px #49341c38!important}
.card-choice-check{position:absolute;z-index:8;top:44%;left:50%;transform:translate(-50%,-50%);padding:7px 12px;border-radius:18px;background:var(--green);color:var(--marble);font:700 13px var(--ui);white-space:nowrap;box-shadow:0 3px 10px #1a1d2630;pointer-events:none}
.fx-choice-card{z-index:240;pointer-events:none}.fx-choice-card>.card{margin:0!important;transform:none!important;box-shadow:0 8px 25px #1a1d2633;pointer-events:none}

.score-contest dt>.ic{width:17px;height:17px;vertical-align:middle;margin-right:5px}.score-contest dt small{display:block;font-size:10px;font-weight:400;line-height:1.4;color:var(--ink-2);margin-top:3px}.score-contest.revealed.award-earned{background:#e6b84f17}.score-contest.revealed.award-earned dd{color:#9b6b08}.score-contest.revealed.award-earned dt{font-weight:700}

.recap-tabs[hidden],.recap-section[hidden]{display:none}
.recap-tabbed.recap-dialog{display:flex;flex-direction:column;overflow:hidden;width:600px;height:min(520px,calc(100dvh - 24px));padding:16px}
.recap-tabbed.recap-dialog>h2{font-size:26px;margin:0 0 12px;flex:none}
.recap-tabs{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:4px;padding:4px;background:#e8dfd1;border-radius:9px;flex:none;margin-bottom:12px}
.recap-tabs button{min-width:0;padding:9px 5px;background:transparent;color:var(--ink-2);border:0;border-radius:6px;font:600 13px var(--ui);box-shadow:none}
.recap-tabs button[aria-selected=true]{background:#fffdf7;color:var(--ink);box-shadow:0 1px 4px #49341c18}
.recap-panels{min-height:0}.recap-tabbed .recap-panels{flex:1;overflow:auto;overscroll-behavior:contain;scrollbar-width:thin;scrollbar-color:#a5947b #e7dfd2}
.recap-tabbed .recap-section{margin:0;padding:0 4px;border:0}.recap-tabbed .recap-section h3{position:absolute;width:1px;height:1px;overflow:hidden;clip-path:inset(50%)}
.recap-tabbed .recap-section .recap{max-height:none;overflow:visible}.recap-tabbed .recap-scroll-hint{display:none}.recap-tabbed .recap-activity::after{display:none}
.recap-tabbed.recap-dialog>.buttons{margin-top:8px;flex:none}.recap-tabbed .recap-doom{padding:8px 10px;margin-bottom:10px;gap:8px;flex:none}.recap-tabbed .recap-doom strong{font-size:13px;margin-bottom:2px}.recap-tabbed .recap-doom span{font-size:12px}

.setup-map-toggle{padding:6px 10px;font-size:12px;background:var(--marble);white-space:nowrap}
.setup-view-map .campaign-setup,.setup-view-map .setup-generals,.setup-view-map .jupiter-watch{visibility:hidden;pointer-events:none}
.setup-table.setup-view-map .country-overview{display:block}

/* WebKit's rectangular tap flash obscures transparent sprites and icon controls. */
:where(a,button,summary,input,select,[role=button],.card,.hex,.unit-sprite,.general-sprite,.country-overview){-webkit-tap-highlight-color:transparent}

/* The table owns the viewport. Scroll only the map and intentional inner panes. */
html:has(body.play .table){height:100%;overflow:hidden;overscroll-behavior:none}
body.play:has(.table){position:fixed;inset:0;width:100%;height:100dvh;overflow:hidden;overscroll-behavior:none}
.table :is(.map-scroll,.campaign-setup,.draft-cards,.opponent-hud,.general-spoils,.panel),dialog{overscroll-behavior:contain}
