:root{--cream:#eee1bd;--gold:#daa934;--ink:#24180f;--panel:#21170f;--panel2:#302117;--red:#9e3427}
html body .turn-announcement{transition-duration:.05s!important}html body .turn-announcement.show .turn-announcement-card{animation-duration:.08s!important}
*{box-sizing:border-box}html,body{margin:0;min-height:100%;font-family:Georgia,"Times New Roman",serif;color:var(--ink)}button,input{font:inherit}button{cursor:pointer}.hidden{display:none!important}
.setup-screen{min-height:100vh;display:grid;place-items:center;padding:30px;background:radial-gradient(circle at 50% 25%,#71533a33,transparent 45%),repeating-linear-gradient(90deg,#2c1b11 0,#3a2618 4px,#321f14 9px,#41291a 13px);position:relative}.setup-screen:before{content:"";position:absolute;inset:0;background:linear-gradient(#0006,#0000 30%,#0007);pointer-events:none}
.setup-card{position:relative;width:min(680px,100%);background:linear-gradient(135deg,#f8efd6,#e9d8ab);padding:42px 55px;border:8px solid #3d291a;outline:2px solid #b99347;box-shadow:0 30px 80px #000b, inset 0 0 50px #9d74352b}.setup-logo{display:inline-grid;grid-template-columns:auto auto;align-items:center;color:#75441f;margin-bottom:25px}.setup-logo>span{grid-row:1/3;font-size:48px;color:#b97b24;margin-right:8px}.setup-logo small{font:700 9px Arial,sans-serif;letter-spacing:.35em}.setup-logo strong{font-size:25px;letter-spacing:.12em}.overline{font:800 10px Arial,sans-serif;color:#a4532a;letter-spacing:.25em;margin:0 0 8px}.setup-card h1{font-size:42px;line-height:1;margin:0}.intro{font-family:Arial,sans-serif;color:#6f604c;line-height:1.55;font-size:14px;margin:12px 0 28px}.setup-card fieldset{border:0;border-top:1px solid #baa97d;padding:19px 0;margin:0}.setup-card legend{padding-right:12px;font-weight:bold;font-size:16px}
.player-choices{display:grid;grid-template-columns:repeat(5,1fr);gap:8px}.player-choices button{border:1px solid #b9a675;background:#f7efd9;padding:10px 5px;color:#4a3825}.player-choices button b{display:block;font-size:23px}.player-choices button span{font:10px Arial,sans-serif;text-transform:uppercase;letter-spacing:.08em}.player-choices button.selected{background:#8e3326;color:white;border-color:#612217;box-shadow:inset 0 0 0 2px #d59c4d}
.dimension-grid{display:grid;grid-template-columns:1fr 34px 1fr;align-items:center}.dimension-grid label{font:700 11px Arial,sans-serif;text-transform:uppercase;letter-spacing:.08em}.dimension-grid input{display:block;width:100%;height:46px;margin:7px 0 4px;border:1px solid #a9976c;background:#fff9e8;padding:0 12px;font-size:20px;color:#382418}.dimension-grid small{color:#88775f;text-transform:none;letter-spacing:0}.dimension-arrow{text-align:center;font-size:22px;color:#9b742c;margin-top:5px}.layout-line{display:flex;gap:12px;align-items:center;margin-top:15px;font:11px Arial,sans-serif}.layout-line span{font-weight:bold;text-transform:uppercase;color:#806b51;letter-spacing:.1em}.layout-line strong{font-size:12px}.form-error{height:14px;color:#a52d22;font:11px Arial,sans-serif;margin:8px 0 0}.start-button{border:0;width:100%;padding:15px 20px;background:linear-gradient(#b84b35,#883025);color:#fff;box-shadow:inset 0 0 0 2px #d78a53,0 4px 0 #522018;font-weight:bold;font-size:17px}.start-button span{float:right}
.game{height:100vh;overflow:hidden;background:#15251f}.game-bar{height:58px;position:absolute;z-index:5;top:0;left:0;right:0;display:flex;align-items:center;gap:25px;padding:0 18px;background:linear-gradient(#271a12ee,#17100bed);color:#f1dca8;border-bottom:1px solid #775d38;box-shadow:0 4px 14px #0008}.mini-logo{letter-spacing:.12em;color:#d8a739}.mini-logo strong{color:#f1dca8}.player-bar{display:flex;gap:8px;flex:1}.player-chip{display:flex;align-items:center;gap:6px;font:10px Arial,sans-serif;text-transform:uppercase;letter-spacing:.08em;color:#d5c7a3}.player-chip i{width:12px;height:12px;border-radius:50%;display:block;box-shadow:0 0 0 2px #0008}.game-actions{display:flex;gap:7px}.game-actions button,.tray-header button{border:1px solid #745b38;background:#352519;color:#ebd6a8;padding:8px 11px;font:700 11px Arial,sans-serif}.game-actions button:hover{background:#503722}
.table{position:absolute;inset:0;background:radial-gradient(ellipse at center,#194f55 0,#0c3941 52%,#082a31 80%),repeating-radial-gradient(circle,#ffffff09 0 1px,transparent 1px 5px);overflow:hidden}.table:before{content:"";position:absolute;inset:76px 24px 24px;border:2px solid #a4773d55;box-shadow:inset 0 0 70px #0008;border-radius:20px;pointer-events:none}.table:after{content:"";position:absolute;inset:0;box-shadow:inset 0 0 130px #000b;pointer-events:none}#board{position:absolute;inset:70px 330px 30px 20px;width:calc(100% - 350px);height:calc(100% - 100px);z-index:1;touch-action:none}.table-help{position:absolute;z-index:2;bottom:10px;left:30px;color:#d5c39a99;font:10px Arial,sans-serif;letter-spacing:.08em;text-transform:uppercase}
.resource-tray{position:absolute;z-index:4;top:58px;right:0;bottom:0;width:320px;overflow-y:auto;padding:20px;background:linear-gradient(90deg,#22170ff2,#332217f7);color:#ebdcba;border-left:1px solid #82633e;box-shadow:-12px 0 30px #0006;transition:transform .25s}.resource-tray.closed{transform:translateX(100%)}.tray-header{display:flex;justify-content:space-between;align-items:center}.tray-header small{font:800 9px Arial,sans-serif;letter-spacing:.22em;color:#d59b3d}.tray-header h2{font-size:25px;margin:2px 0}.tray-header button{font-size:20px;padding:2px 9px}.tray-help{font:11px/1.5 Arial,sans-serif;color:#ac9c7d;margin:5px 0 20px}.resource-tray details{border-top:1px solid #6a5034;margin-top:8px;padding-top:8px}.resource-tray summary{font:700 11px Arial,sans-serif;text-transform:uppercase;letter-spacing:.12em;cursor:pointer;padding:7px 0;color:#d8b86e}.resource-grid{display:grid;gap:5px;padding:8px 0 14px}.terrain-grid{grid-template-columns:repeat(4,1fr)}.number-grid{grid-template-columns:repeat(6,1fr)}.harbor-grid{grid-template-columns:repeat(4,1fr)}.drag-resource{cursor:grab;user-select:none;transition:.15s}.drag-resource:hover{filter:brightness(1.2);transform:translateY(-2px)}.drag-resource img{display:block;width:100%;height:auto}.number-grid .drag-resource,.harbor-grid .drag-resource{display:grid;place-items:center}.number-grid img{width:42px}.harbor-grid img{width:62px}.build-resources{display:grid;gap:7px;padding:10px 0}.build-piece{display:flex;align-items:center;gap:10px;border:1px solid #6d5233;padding:8px;background:#3a291c}.build-piece i{width:34px;height:34px;display:grid;place-items:center;color:#dc5f40;font-size:25px;font-style:normal}.build-piece span{font:700 12px Arial,sans-serif}.build-piece small{display:block;font-weight:normal;color:#a99779;margin-top:3px}.road-icon:after{content:"";width:29px;height:8px;background:#cc5134;border-radius:4px;transform:rotate(-28deg);display:block}
.tile{cursor:grab}.tile.dragging{opacity:.35}.tile-image{filter:drop-shadow(0 3px 3px #0009)}.tile-outline{fill:transparent;stroke:#090704;stroke-width:3;pointer-events:none}.tile-drop{fill:transparent;stroke:transparent;stroke-width:5}.tile:hover .tile-drop,.tile-drop.drag-over{stroke:#f3cf5c;stroke-width:5}.tile-number{filter:drop-shadow(0 2px 2px #0009);pointer-events:none}.edge-target{stroke:#fff;stroke-opacity:.015;stroke-width:18;stroke-linecap:round;cursor:pointer}.edge-target:hover,.edge-target.drag-over{stroke:#f1d76d;stroke-opacity:.8}.vertex-target{fill:#fff;fill-opacity:.08;stroke:#fff;stroke-opacity:.25;stroke-width:2;cursor:pointer}.vertex-target:hover,.vertex-target.drag-over{fill:#f1d76d;fill-opacity:.95}.placed-road{stroke:#c84e31;stroke-width:9;stroke-linecap:round;pointer-events:stroke;cursor:pointer;filter:drop-shadow(0 2px 1px #000)}.placed-settlement{fill:#d35b35;stroke:#5d2015;stroke-width:2;cursor:pointer;filter:drop-shadow(0 2px 1px #000)}.placed-harbor{cursor:pointer;filter:drop-shadow(0 2px 2px #000)}
#toast{position:fixed;z-index:10;left:50%;bottom:25px;transform:translate(-50%,15px);padding:11px 17px;background:#e7d39e;color:#271a10;border:2px solid #6a4b2e;box-shadow:0 5px 18px #0009;font:12px Arial,sans-serif;opacity:0;pointer-events:none;transition:.2s}#toast.show{opacity:1;transform:translate(-50%,0)}
@media(max-width:800px){.setup-card{padding:32px 25px}.resource-tray{width:280px}#board{right:20px;width:calc(100% - 40px)}.player-bar{display:none}.game-actions button:first-child{display:none}.game-bar{gap:10px}.game-actions{margin-left:auto}.table-help{display:none}}
@media(max-width:520px){.setup-screen{padding:12px}.setup-card{border-width:5px}.setup-card h1{font-size:33px}.player-choices{gap:3px}.player-choices button{padding:8px 2px}.resource-tray{width:100%}.mini-logo{font-size:12px}.game-actions button{padding:7px;font-size:9px}}

/* Live tabletop and player cards */
.table-title{display:flex;flex:1;flex-direction:column;border-left:1px solid #695036;padding-left:18px}.table-title strong{font-size:13px}.table-title small{font:9px Arial,sans-serif;color:#a99a7c;margin-top:2px}
#board{inset:155px 330px 30px 20px;height:calc(100% - 185px)}
.player-dock{position:absolute;z-index:3;left:24px;right:330px;top:70px;display:grid;grid-template-columns:repeat(4,minmax(145px,1fr));gap:8px}.player-card{--player:#d34b32;height:72px;background:linear-gradient(#302219ee,#20160fee);border:1px solid #725a3d;border-top:3px solid var(--player);box-shadow:0 5px 15px #0006;display:grid;grid-template-columns:1fr auto;align-items:center;padding:8px 10px;color:#eee0bd}.player-name{width:100%;min-width:0;background:transparent;border:0;border-bottom:1px dashed #78674e;color:#f1e3c1;font:700 13px Georgia,serif;padding:3px 1px;outline:none}.player-name:focus{border-color:var(--player)}.player-color{font:8px Arial,sans-serif;color:#9e9075;text-transform:uppercase;letter-spacing:.1em;margin-top:4px}.player-pieces{display:flex;gap:5px;margin-left:8px}.player-piece{width:35px;height:43px;border:1px solid #6e5a3d;background:#1b130e;display:flex;flex-direction:column;align-items:center;justify-content:center;color:var(--player);cursor:grab}.player-piece:hover{border-color:var(--player);background:#33231a}.player-piece i{font-style:normal;font-size:21px;line-height:18px;text-shadow:0 1px #000}.player-piece small{font:7px Arial,sans-serif;text-transform:uppercase;color:#b9aa8a;margin-top:5px}.player-road-shape{width:23px;height:7px;border-radius:3px;background:var(--player);transform:rotate(-25deg);box-shadow:0 2px #000}
.setup-tray{z-index:6}.drawer-label{display:block;font:700 10px Arial,sans-serif;text-transform:uppercase;letter-spacing:.1em;color:#c7ad73;margin:14px 0 6px}.drawer-input{display:block;width:100%;height:42px;margin-top:7px;background:#17100c;border:1px solid #725637;color:#f1ddb0;padding:0 10px;font-size:17px}.drawer-dimensions{display:grid;grid-template-columns:1fr 1fr;gap:10px}.drawer-layout{color:#d3bf92;margin:16px 0}.drawer-primary,.drawer-secondary{width:100%;border:1px solid #c08339;padding:12px;color:#fff;font-weight:bold}.drawer-primary{background:#9a3c2d}.drawer-secondary{background:#3a2a1d}.drawer-divider{border-top:1px solid #6a5034;margin:25px 0 12px}.drawer-divider span{position:relative;top:-7px;background:#2d1e15;padding-right:8px;color:#bca36e;font:700 9px Arial,sans-serif;letter-spacing:.12em;text-transform:uppercase}.placed-city{stroke:#20140e;stroke-width:2;cursor:pointer;filter:drop-shadow(0 2px 1px #000)}
@media(max-width:800px){.player-dock{right:24px;grid-template-columns:repeat(2,1fr);max-height:145px;overflow:auto}.player-card{height:64px}#board{top:220px;height:calc(100% - 250px)}}
.player-piece img{display:block;width:27px;height:25px;object-fit:contain}.player-piece[data-type="road"] img{width:20px;height:27px}.special-grid{grid-template-columns:repeat(2,1fr);gap:8px}.special-grid .drag-resource{height:70px;display:flex;align-items:center;gap:10px;padding:7px;border:1px solid #6d5233;background:#18110d}.special-grid img{width:45px;height:56px;object-fit:contain}.special-grid span{font:700 11px Arial,sans-serif;text-transform:uppercase;color:#dbc48d}.placed-sprite{cursor:pointer;filter:drop-shadow(0 3px 2px #000b)}.hex-special{cursor:grab;filter:drop-shadow(0 3px 2px #000c)}
.player-dock{grid-template-columns:repeat(4,minmax(205px,1fr))}.player-card{padding-left:8px;padding-right:8px}.player-pieces{gap:3px;margin-left:5px}.player-piece{width:31px}
.edge-target{stroke-width:11}.vertex-target{fill:transparent;stroke:transparent;stroke-width:2}.vertex-target:hover,.vertex-target.drag-over{fill:#f1d76d;fill-opacity:.95;stroke:#fff;stroke-opacity:.9}
.hex-special.moving{opacity:.55;filter:drop-shadow(0 5px 4px #000)}
.tile-outline{stroke-width:.75}.hex-special{touch-action:none;will-change:transform}.hex-special.moving{opacity:.9;filter:drop-shadow(0 8px 5px #000c);z-index:20}
.tile:hover .tile-drop:not(.drag-over){stroke:transparent}
.drag-resource,.player-piece{transform-origin:center;transition:transform .18s,filter .18s,border-color .18s}.drag-resource.resource-selected,.player-piece.resource-selected{transform:scale(1.18);filter:brightness(1.25) drop-shadow(0 0 7px #f3cf5c);border-color:#f3cf5c;position:relative;z-index:8}.player-piece.resource-selected{background:#49351f}.resource-selected:after{content:"✓";position:absolute;right:-5px;top:-7px;width:16px;height:16px;border-radius:50%;display:grid;place-items:center;background:#f3cf5c;color:#20150d;font:bold 10px Arial,sans-serif}
.drag-resource img,.player-piece img{pointer-events:none}.edge-target{stroke-width:18;touch-action:manipulation}.player-piece,.drag-resource{touch-action:manipulation}
.edge-target{pointer-events:stroke;stroke:#fff;stroke-opacity:.001;stroke-width:22}.edge-target:hover,.edge-target.drag-over{pointer-events:stroke}
.choice-dialog{width:min(390px,calc(100% - 32px));border:2px solid #9a7441;background:linear-gradient(135deg,#f5e8c8,#dfc894);color:#2a1c12;padding:0;box-shadow:0 24px 80px #000c}.choice-dialog::backdrop{background:#090603aa;backdrop-filter:blur(3px)}.choice-dialog form{padding:30px;text-align:center}.dialog-mark{font-size:36px;color:#8e4c28}.choice-dialog small{font:800 9px Arial,sans-serif;letter-spacing:.2em;color:#8e5a2b}.choice-dialog h2{margin:7px 0;font-size:25px}.choice-dialog p{margin:0 0 22px;font:12px/1.5 Arial,sans-serif;color:#6e5b42}.choice-dialog form>div:last-child{display:grid;grid-template-columns:1fr 1fr;gap:9px}.choice-dialog button{padding:11px;border:1px solid #765634;background:#efe1bd;color:#382719;font-weight:bold}.choice-dialog .dialog-primary{background:#913b2e;color:#fff;border-color:#64251c}
.choice-dialog .dialog-danger{background:#70271f;color:#fff;border-color:#4d1813}.edge-target{stroke-width:12}
.game-dialog{z-index:10050}.game-dialog [data-game-dialog-input]{box-sizing:border-box;width:100%;height:42px;margin:-8px 0 20px;padding:0 12px;border:1px solid #8d6a3e;border-radius:4px;background:#fff8e6;color:#2a1c12;font:700 14px Arial,sans-serif;outline:none}.game-dialog [data-game-dialog-input]:focus{border-color:#913b2e;box-shadow:0 0 0 3px #913b2e30}.game-dialog [data-game-dialog-input][hidden]{display:none}.game-dialog [data-game-dialog-actions].dialog-actions-three{grid-template-columns:repeat(3,1fr)}
.player-card{grid-template-columns:auto minmax(55px,1fr) auto}.player-score{align-self:stretch;min-width:43px;margin:-5px 7px -5px -5px;border-right:1px solid #665039;display:flex;flex-direction:column;align-items:center;justify-content:center;color:var(--player);line-height:1}.player-score strong{font:700 31px/1 Georgia,serif;text-shadow:0 2px 2px #000}.player-score small{font:800 7px Arial,sans-serif;letter-spacing:.16em;color:#bcae90;margin-top:3px}.player-identity{position:relative;min-width:0}
.placed-chit{cursor:pointer;filter:drop-shadow(0 2px 2px #000c)}
.tile.is-flipping{transform-box:fill-box;transform-origin:center;animation:tile-flip .52s ease-in-out;pointer-events:none}@keyframes tile-flip{0%{transform:scaleX(1)}48%{transform:scaleX(.04);filter:brightness(1.35)}52%{transform:scaleX(.04);filter:brightness(1.35)}100%{transform:scaleX(1)}}
.tile-number.is-flipping-number{transform-box:fill-box;transform-origin:center;animation:tile-flip .52s ease-in-out;pointer-events:none}
.placed-harbor.is-flipping-harbor{transform-box:fill-box;transform-origin:center;animation:tile-flip .52s ease-in-out;pointer-events:none}
.terrain-grid{display:grid;grid-template-columns:repeat(8,minmax(0,1fr));gap:2px 0;align-items:center}.terrain-grid .drag-resource{grid-column:span 2;margin:-3px -1px}.terrain-grid .drag-resource:nth-child(5),.terrain-grid .drag-resource:nth-child(12),.terrain-grid .drag-resource:nth-child(19){grid-column:2/span 2}.terrain-grid .drag-resource:nth-child(8),.terrain-grid .drag-resource:nth-child(15){grid-column:1/span 2}.terrain-grid .drag-resource:nth-child(22){grid-column:3/span 2}.number-grid{grid-template-columns:repeat(12,minmax(0,1fr));gap:2px}.number-grid .drag-resource{min-width:0}.number-grid img{width:100%;max-width:25px}.harbor-grid{grid-template-columns:repeat(7,minmax(0,1fr));gap:3px}.harbor-grid .drag-resource{min-width:0}.harbor-grid img{width:100%;max-width:38px}
.terrain-grid{gap:0}.terrain-grid .drag-resource{margin:-10px -1px}
.harbor-grid.harbor-resource-layout{display:block}.harbor-resource-row{display:grid;align-items:center;gap:5px}.harbor-types-row{grid-template-columns:repeat(5,minmax(0,1fr))}.harbor-special-row{grid-template-columns:repeat(2,minmax(0,1fr));gap:10px;margin-top:7px}.harbor-grid .harbor-resource-row .drag-resource{display:grid;place-items:center;min-width:0}.harbor-grid .harbor-types-row img{width:100%;max-width:52px}.harbor-grid .harbor-special-row img{width:100%;max-width:76px}.achievement-resource-grid{grid-template-columns:repeat(3,minmax(0,1fr));gap:8px}.achievement-resource-grid .drag-resource{min-width:0}.achievement-resource-grid img{width:100%;border-radius:5px;box-shadow:0 3px 8px #0008}.player-card.achievement-drop-target{outline:3px solid #f3cf5c;outline-offset:3px;filter:brightness(1.15)}
.terrain-grid.terrain-resource-layout{display:block}.terrain-resource-row{display:flex;justify-content:center;align-items:center;margin:0}.terrain-resource-row+.terrain-resource-row{margin-top:-18px}.terrain-grid.terrain-resource-layout .terrain-resource-row .drag-resource{grid-column:auto!important;flex:0 0 20%;min-width:0;margin:0 -1px}.terrain-grid.terrain-resource-layout .terrain-resource-row .drag-resource img{width:100%;height:auto}
.number-grid.number-resource-layout{display:block}.number-resource-row{display:flex;justify-content:center;align-items:center;gap:1px;margin:1px 0}.number-grid.number-resource-layout .number-resource-row .drag-resource{flex:0 0 calc(10% - 1px);min-width:0}.number-grid.number-resource-layout .number-resource-row img{width:100%;max-width:25px}.number-grid.number-resource-layout .number-final-row{gap:10px;margin-top:7px}.number-grid.number-resource-layout .number-final-row .drag-resource{flex:0 0 24%}.number-grid.number-resource-layout .number-final-row img{max-width:48px}.harbor-grid.harbor-resource-layout .harbor-resource-row{display:flex;justify-content:center;align-items:center;gap:2px;margin:2px 0}.harbor-grid.harbor-resource-layout .harbor-resource-row .drag-resource{flex:0 0 calc(16.666% - 2px);min-width:0}.harbor-grid.harbor-resource-layout .harbor-resource-row img{width:100%;max-width:46px}.harbor-grid.harbor-resource-layout .harbor-random-row{margin-top:7px}.harbor-grid.harbor-resource-layout .harbor-random-row .drag-resource{flex-basis:34%}.harbor-grid.harbor-resource-layout .harbor-random-row img{max-width:76px}
.map-description{margin:-4px 0 12px;padding:10px 12px;border:1px solid #6a5034;background:#18110d99;color:#d8c8a5}.map-description>div{display:flex;align-items:baseline;justify-content:space-between;gap:10px}.map-description strong{font:700 13px Arial,sans-serif;color:#f0d9a0}.map-description b{flex:none;padding:2px 6px;border-radius:10px;background:#d8b86e;color:#20150d;font:800 10px Arial,sans-serif}.map-description ul{margin:8px 0 0;padding-left:18px}.map-description li{margin:4px 0;font:11px/1.4 Arial,sans-serif;color:#bcae91}.map-description li::marker{color:#d8b86e}
.preset-hidden{display:none}.drawer-input option{background:#21170f;color:#f1ddb0}
.import-error{height:auto;min-height:14px;line-height:1.35}
.floating-export{position:absolute;z-index:4;left:28px;bottom:28px;border:1px solid #8aae98;background:#203c31;color:#fff;padding:10px 14px;font:700 10px Arial,sans-serif;letter-spacing:.08em}
.floating-save{position:absolute;z-index:4;left:190px;bottom:28px;border:1px solid #d7b763;background:#6f4e1f;color:#fff;padding:10px 14px;font:700 10px Arial,sans-serif;letter-spacing:.08em}
.floating-delete{position:absolute;z-index:4;left:285px;bottom:28px;border:1px solid #a85a4e;background:#642f28;color:#fff;padding:10px 14px;font:700 10px Arial,sans-serif;letter-spacing:.08em}.floating-delete[hidden]{display:none}
.roll-dice-button{position:absolute;z-index:7;right:24px;top:70px;border:2px solid #e0b34d;background:linear-gradient(#a44230,#76291f);color:#fff4d2;padding:11px 18px;box-shadow:0 5px 14px #0008;font:700 13px Georgia,serif}.roll-dice-button:disabled{opacity:.55;cursor:wait}.dice-overlay{position:fixed;z-index:30;inset:0;display:grid;place-content:center;gap:18px;background:#08050388;backdrop-filter:blur(2px);opacity:0;visibility:hidden;pointer-events:none;transition:opacity .18s}.dice-overlay.show{opacity:1;visibility:visible}.dice-stage{display:flex;gap:30px}.die{width:92px;height:92px;border-radius:15px;padding:12px;display:grid;grid-template-columns:repeat(3,1fr);grid-template-rows:repeat(3,1fr);background:linear-gradient(145deg,#fffbed,#ddcfad);border:2px solid #6a4a2a;box-shadow:inset -7px -8px 12px #9b815b66,0 13px 22px #0009}.pip{width:16px;height:16px;place-self:center;border-radius:50%;background:#251810;box-shadow:inset 1px 2px 2px #0008}.dice-overlay.rolling .die:first-child{animation:dice-tumble-a .72s ease-in-out infinite}.dice-overlay.rolling .die:last-child{animation:dice-tumble-b .63s ease-in-out infinite}.dice-overlay>strong{color:#ffe49a;text-align:center;font-size:38px;text-shadow:0 3px 5px #000}.last-roll{position:fixed;z-index:7;right:22px;bottom:22px;padding:8px 10px;background:#1c130de8;border:1px solid #9c7b45;color:#ead7a9;box-shadow:0 5px 18px #0009}.last-roll>small{display:block;margin-bottom:5px;text-align:center;font:800 7px Arial,sans-serif;letter-spacing:.16em}.last-roll>div{display:flex;align-items:center;gap:6px}.die-small{width:34px;height:34px;border-radius:6px;padding:4px;border-width:1px;box-shadow:inset -3px -3px 5px #9b815b55,0 2px 4px #0008}.die-small .pip{width:6px;height:6px}.last-roll strong{min-width:22px;text-align:center;font-size:21px;color:#f3c956}@keyframes dice-tumble-a{0%{transform:translate(-70px,-90px) rotate(-30deg) scale(.75)}45%{transform:translate(30px,28px) rotate(210deg) scale(1.12)}75%{transform:translate(-12px,-8px) rotate(315deg)}100%{transform:none}}@keyframes dice-tumble-b{0%{transform:translate(80px,-65px) rotate(35deg) scale(.8)}45%{transform:translate(-35px,35px) rotate(-190deg) scale(1.08)}75%{transform:translate(15px,-5px) rotate(-300deg)}100%{transform:none}}@media(max-width:600px){.roll-dice-button{top:64px;right:10px;padding:9px 12px}.die{width:72px;height:72px;padding:9px}.pip{width:12px;height:12px}.die-small{width:31px;height:31px;padding:4px}.die-small .pip{width:6px;height:6px}.last-roll{right:10px;bottom:10px}}
.scenario-preview{background:radial-gradient(ellipse,#15515a,#082a31)}.scenario-map-image{filter:drop-shadow(0 12px 20px #000b)}
.roll-dice-button{top:auto;bottom:22px}.last-roll{top:70px;bottom:auto}@media(max-width:600px){.roll-dice-button{top:auto;right:10px;bottom:10px}.last-roll{top:64px;right:10px;bottom:auto}}
.dice-stage{perspective:700px;align-items:flex-end}.dice-overlay.rolling .die:first-child{animation:dice-playful-a .6s cubic-bezier(.22,.72,.24,1) both}.dice-overlay.rolling .die:last-child{animation:dice-playful-b .6s cubic-bezier(.22,.72,.24,1) both}@keyframes dice-playful-a{0%{transform:translate(-38px,-105px) rotate(-28deg) scale(.76);filter:brightness(1.12)}34%{transform:translate(10px,12px) rotate(132deg) scale(1.12,.88)}51%{transform:translate(17px,-30px) rotate(205deg) scale(.94,1.06)}70%{transform:translate(5px,5px) rotate(292deg) scale(1.06,.94)}84%{transform:translate(-3px,-9px) rotate(334deg) scale(.98,1.02)}100%{transform:translate(0,0) rotate(360deg) scale(1);filter:none}}@keyframes dice-playful-b{0%{transform:translate(42px,-88px) rotate(34deg) scale(.8);filter:brightness(1.12)}31%{transform:translate(-13px,15px) rotate(-118deg) scale(1.1,.9)}50%{transform:translate(-18px,-27px) rotate(-201deg) scale(.95,1.05)}69%{transform:translate(-5px,6px) rotate(-278deg) scale(1.05,.95)}85%{transform:translate(4px,-8px) rotate(-329deg) scale(.98,1.02)}100%{transform:translate(0,0) rotate(-360deg) scale(1);filter:none}}
.dice-stage{perspective:760px;perspective-origin:50% 38%;transform-style:preserve-3d}.dice-stage>.die{position:relative;transform-style:preserve-3d;will-change:transform;overflow:visible}.dice-stage>.die:before,.dice-stage>.die:after{content:"";position:absolute;inset:8px;border:2px solid #6a4a2a;border-radius:11px;background:linear-gradient(145deg,#eadcbc,#b99c72);backface-visibility:hidden;pointer-events:none}.dice-stage>.die:before{transform:translateX(42px) rotateY(90deg);filter:brightness(.76)}.dice-stage>.die:after{transform:translateY(42px) rotateX(-90deg);filter:brightness(.64)}.dice-stage>.die .pip{position:relative;z-index:2;transform:translateZ(3px)}.dice-overlay.rolling .die:first-child{animation:dice-space-a .6s cubic-bezier(.2,.7,.22,1) both}.dice-overlay.rolling .die:last-child{animation:dice-space-b .6s cubic-bezier(.2,.7,.22,1) both}@keyframes dice-space-a{0%{transform:translate3d(-55px,-120px,-150px) rotateX(-165deg) rotateY(75deg) rotateZ(-24deg) scale(.7)}35%{transform:translate3d(14px,10px,55px) rotateX(32deg) rotateY(225deg) rotateZ(18deg) scale(1.08)}53%{transform:translate3d(20px,-32px,20px) rotateX(-28deg) rotateY(295deg) rotateZ(-10deg) scale(.97)}72%{transform:translate3d(5px,5px,8px) rotateX(12deg) rotateY(342deg) rotateZ(4deg) scale(1.03)}86%{transform:translate3d(-3px,-9px,3px) rotateX(-6deg) rotateY(354deg) rotateZ(-2deg)}100%{transform:translate3d(0,0,0) rotateX(0) rotateY(360deg) rotateZ(0) scale(1)}}@keyframes dice-space-b{0%{transform:translate3d(60px,-105px,-125px) rotateX(145deg) rotateY(-90deg) rotateZ(28deg) scale(.74)}33%{transform:translate3d(-16px,13px,62px) rotateX(-36deg) rotateY(-218deg) rotateZ(-20deg) scale(1.07)}52%{transform:translate3d(-19px,-29px,23px) rotateX(26deg) rotateY(-292deg) rotateZ(11deg) scale(.97)}71%{transform:translate3d(-5px,6px,9px) rotateX(-11deg) rotateY(-340deg) rotateZ(-4deg) scale(1.03)}86%{transform:translate3d(4px,-8px,3px) rotateX(5deg) rotateY(-354deg) rotateZ(2deg)}100%{transform:translate3d(0,0,0) rotateX(0) rotateY(-360deg) rotateZ(0) scale(1)}}@media(max-width:600px){.dice-stage>.die:before{transform:translateX(32px) rotateY(90deg)}.dice-stage>.die:after{transform:translateY(32px) rotateX(-90deg)}}
.dice-stage>.die-cube{display:block;padding:0;border:0;border-radius:0;background:none;box-shadow:none;overflow:visible}.dice-stage>.die-cube:before,.dice-stage>.die-cube:after{display:none}.die-face{position:absolute;inset:0;padding:12px;display:grid;grid-template-columns:repeat(3,1fr);grid-template-rows:repeat(3,1fr);border:2px solid #6a4a2a;border-radius:15px;background:linear-gradient(145deg,#fffbed,#ddcfad);box-shadow:inset -7px -8px 12px #9b815b55;backface-visibility:hidden}.die-front{transform:rotateY(0) translateZ(46px)}.die-back{transform:rotateY(180deg) translateZ(46px)}.die-right{transform:rotateY(90deg) translateZ(46px)}.die-left{transform:rotateY(-90deg) translateZ(46px)}.die-top{transform:rotateX(90deg) translateZ(46px)}.die-bottom{transform:rotateX(-90deg) translateZ(46px)}.die-face .pip{transform:translateZ(1px)}@media(max-width:600px){.die-face{padding:9px;border-radius:12px}.die-front{transform:rotateY(0) translateZ(36px)}.die-back{transform:rotateY(180deg) translateZ(36px)}.die-right{transform:rotateY(90deg) translateZ(36px)}.die-left{transform:rotateY(-90deg) translateZ(36px)}.die-top{transform:rotateX(90deg) translateZ(36px)}.die-bottom{transform:rotateX(-90deg) translateZ(36px)}}
.dice-overlay:not(.rolling) .die-cube .die-face:not(.die-front){opacity:0}.dice-overlay.rolling .die-cube .die-face:not(.die-front){animation:dice-side-settle .6s linear both}@keyframes dice-side-settle{0%,72%{opacity:1}88%,100%{opacity:0}}
.map-drawer-button{margin-top:10px}.delete-map-save{color:#ffd1c9;border-color:#a85a4e;background:#642f28}.delete-map-save[hidden]{display:none}
.player-card{cursor:pointer;transition:border-color .18s,box-shadow .18s,transform .18s,background .18s}.player-card.turn-active{border-color:var(--player);background:linear-gradient(#49372bee,#261a12f5);box-shadow:0 0 0 2px var(--player),0 0 20px color-mix(in srgb,var(--player) 70%,transparent),0 7px 18px #0009;transform:translateY(2px)}.player-card.turn-active .player-color:after{content:" · CURRENT TURN";color:var(--player);font-weight:800}.dialog-actions-three{grid-template-columns:1.25fr 1fr 1fr!important}.dialog-actions-three button[hidden]{display:none}
.player-dock{grid-template-columns:repeat(var(--player-columns,4),minmax(150px,1fr))}.game.many-players .player-dock{max-height:152px;overflow-y:auto}.player-card[style*="#eeeae0"],.player-card[style*="#f0d500"]{--card-piece-bg:#302a22}.player-card[style*="#171717"]{--player:#777!important}.player-piece{background:var(--card-piece-bg,#1b130e)}@media(min-width:801px){.game.many-players #board{top:235px;height:calc(100% - 265px)}}
.map-shuffle-controls{margin-top:24px}.map-shuffle-controls .drawer-divider{margin-bottom:8px}.map-shuffle-controls button{margin-top:7px;text-align:left;padding:10px 12px}.map-shuffle-controls button:nth-of-type(1){border-color:#d59b3d;background:#49321f}.map-shuffle-controls button:nth-of-type(2){border-color:#c87838;background:#55301e}
.map-shuffle-controls button small{display:block;margin-top:3px;color:#bba98a;font:9px/1.25 Arial,sans-serif;font-weight:normal;letter-spacing:.02em}.map-shuffle-controls button:nth-of-type(1) small,.map-shuffle-controls button:nth-of-type(2) small{color:#d9c49c}
.track-points{display:block;border:0;border-top:1px solid #6a5034;margin:22px 0 8px;padding:12px 0 0}.track-points legend{padding-right:8px;color:#bca36e;font:700 9px Arial,sans-serif;letter-spacing:.12em;text-transform:uppercase}.track-points label{display:flex;align-items:center;gap:8px;margin:8px 0;color:#e4d2a9;font:11px Arial,sans-serif}.track-points input{width:17px;height:17px;accent-color:#bd7434}.track-points small{margin-left:auto;color:#a99572;font:8px Arial,sans-serif;text-transform:uppercase}.track-points label:has(input:disabled){opacity:.5}.victory-target-form{display:grid;grid-template-columns:minmax(0,1fr);gap:9px}.victory-target-form .drawer-label{display:block;margin:0}.victory-target-form .drawer-input,.victory-target-form .map-victory-button,.victory-target-form .form-error{display:block;grid-column:1;width:100%;margin:0}.player-bonuses{display:flex;gap:3px;min-height:10px;margin-top:2px}.player-bonuses span{padding:1px 4px;border:1px solid #b68b3c;background:#4c341d;color:#f2cb68;font:700 6px Arial,sans-serif;letter-spacing:.03em;text-transform:uppercase;white-space:nowrap}
.collapsible-rules>legend{display:flex;align-items:center;justify-content:space-between;width:100%;padding-right:0}.rule-section-toggle{display:grid;place-items:center;width:20px;height:20px;margin-left:10px;padding:0;border:1px solid #80613d;border-radius:50%;background:#21150f;color:#e5ca8c;font:700 15px/1 Arial,sans-serif;cursor:pointer}.rule-section-toggle:hover{border-color:#c89450;background:#3a2719}.collapsible-rules.is-collapsed{padding-top:7px;margin-bottom:4px}.collapsible-rules.is-collapsed>label{display:none}
.winner-badge{--winner-color:#f3c956;position:fixed;z-index:7;right:22px;top:142px;width:142px;padding:10px 12px;background:#1c130ded;border:1px solid var(--winner-color);color:#ead7a9;box-shadow:0 5px 18px #0009,0 0 16px color-mix(in srgb,var(--winner-color) 45%,transparent);text-align:center}.winner-badge>small{display:block;color:var(--winner-color);font:800 7px Arial,sans-serif;letter-spacing:.16em}.winner-badge>strong{display:block;margin-top:5px;overflow:hidden;text-overflow:ellipsis;font-size:16px;white-space:nowrap}.winner-badge>span{display:block;margin-top:3px;color:#c5b48f;font:9px Arial,sans-serif}.winner-overlay{position:fixed;z-index:40;inset:0;display:grid;place-items:center;background:#090603b8;backdrop-filter:blur(4px);opacity:0;visibility:hidden;pointer-events:none;cursor:pointer;transition:opacity .25s}.winner-overlay.show{opacity:1;visibility:visible;pointer-events:auto}.winner-card{position:relative;z-index:2;width:min(520px,calc(100% - 34px));padding:46px 34px;text-align:center;background:linear-gradient(145deg,#f8edc9,#d5b36e);border:5px double #7a471f;box-shadow:0 25px 80px #000d,0 0 45px #f3c95688;transform:scale(.75) rotate(-2deg)}.winner-overlay.show .winner-card{animation:winner-arrive .55s cubic-bezier(.2,.85,.25,1.2) forwards}.winner-card small{font:900 11px Arial,sans-serif;letter-spacing:.35em;color:#9b4a25}.winner-card h1{margin:8px 0 10px;color:#3b2515;font-size:clamp(34px,7vw,64px);line-height:1}.winner-card p{margin:0;color:#715332;font:700 13px Arial,sans-serif}.confetti-layer{position:absolute;inset:0;overflow:hidden}.confetti-layer i{position:absolute;top:-24px;left:var(--x);width:10px;height:18px;border-radius:2px;animation:confetti-fall var(--duration) var(--delay) ease-in both}@keyframes winner-arrive{to{transform:scale(1) rotate(0)}}@keyframes confetti-fall{0%{transform:translate3d(0,-10vh,0) rotate(0);opacity:0}12%{opacity:1}100%{transform:translate3d(var(--drift),110vh,0) rotate(var(--spin));opacity:.9}}@media(max-width:600px){.winner-badge{right:10px;top:122px;width:125px}.winner-card{padding:38px 20px}.confetti-layer i{width:8px;height:14px}}
.achievement-overlay{position:fixed;z-index:45;inset:0;display:grid;place-items:center;background:#0906038f;backdrop-filter:blur(2px);opacity:0;visibility:hidden;pointer-events:none;cursor:pointer;transition:opacity .2s}.achievement-overlay.show{opacity:1;visibility:visible;pointer-events:auto}.achievement-popup{display:flex;align-items:center;gap:0;filter:drop-shadow(0 24px 30px #000d);transform:translateY(25px) scale(.82)}.achievement-overlay.show .achievement-popup{animation:achievement-arrive .42s cubic-bezier(.2,.85,.25,1.15) forwards}.achievement-card{display:block;width:235px;height:286px;object-fit:contain}.achievement-player{--achievement-player:#d34b32;width:215px;min-height:190px;margin-left:-5px;padding:26px 22px;background:linear-gradient(145deg,#312218,#17100c);border:2px solid var(--achievement-player);border-left-width:5px;color:#f1dfb8;text-align:center;box-shadow:inset 0 0 28px #0008,0 0 22px color-mix(in srgb,var(--achievement-player) 42%,transparent)}.achievement-piece-wrap{width:66px;height:66px;margin:-54px auto 13px;border:3px solid var(--achievement-player);border-radius:50%;display:grid;place-items:center;background:#18100c;box-shadow:0 5px 14px #000b}.achievement-piece-wrap img{width:48px;height:48px;object-fit:contain}.achievement-player>small{display:block;color:var(--achievement-player);font:900 8px Arial,sans-serif;letter-spacing:.14em}.achievement-player>strong{display:block;margin:9px 0 5px;font-size:24px;overflow-wrap:anywhere}.achievement-player>span:not(.achievement-piece-wrap){display:block;color:#d9bd82;font:700 13px Arial,sans-serif}.achievement-player>em{display:inline-block;margin-top:14px;padding:6px 11px;background:var(--achievement-player);color:#fff;font:800 11px Arial,sans-serif;font-style:normal}.achievement-player:after{content:'Tap to continue';display:block;margin-top:12px;color:#8f8068;font:7px Arial,sans-serif;letter-spacing:.12em;text-transform:uppercase}@keyframes achievement-arrive{to{transform:translateY(0) scale(1)}}@media(max-width:560px){.achievement-popup{gap:7px;flex-direction:column}.achievement-card{width:176px;height:214px}.achievement-player{width:235px;min-height:128px;margin:-13px 0 0;padding:18px}.achievement-piece-wrap{width:52px;height:52px;margin:-45px auto 8px}.achievement-piece-wrap img{width:38px;height:38px}.achievement-player>strong{font-size:20px;margin:5px}.achievement-player>em{margin-top:8px}}
.player-card.special-build-active{border-color:var(--player);outline:2px dashed var(--player);outline-offset:-5px;background:linear-gradient(#413226ee,#241910f5);box-shadow:0 0 15px color-mix(in srgb,var(--player) 55%,transparent),0 7px 18px #0009}.player-card.special-build-active .player-color:after{content:" · SPECIAL BUILD";color:var(--player);font-weight:800}.player-card.build-active{border-color:#f3cf5c;box-shadow:inset 0 0 0 2px #f3cf5c,0 0 0 2px var(--player),0 0 20px color-mix(in srgb,var(--player) 70%,transparent),0 7px 18px #0009;filter:brightness(1.1)}.player-card.build-active .player-color:before{content:"BUILDING · ";color:#f3cf5c;font-weight:900}.player-card.build-active:focus-visible{outline:2px solid #fff1a6;outline-offset:2px}
.player-card.build-active{position:relative}.player-card.build-active:after{content:"✓";position:absolute;z-index:9;right:-7px;top:-9px;width:20px;height:20px;border:2px solid #24180e;border-radius:50%;display:grid;place-items:center;background:#f3cf5c;color:#20150d;box-shadow:0 2px 7px #000b;font:bold 12px Arial,sans-serif}.turn-tracking{margin-top:9px;padding-top:9px}.turn-tracking label{margin-bottom:0}
#mapTray #mapTrackPoints,#mapTray .turn-tracking{display:block!important;visibility:visible;opacity:1}#mapTray #victoryTargetControls{display:block;clear:both;width:100%}#mapTray .victory-target-form{display:flex!important;flex-direction:column;align-items:stretch;width:100%;gap:9px}#mapTray .victory-target-form>.drawer-label{order:1;display:block;width:100%;margin:0}#mapTray .victory-target-form>.map-victory-button{order:2;display:block;position:static;float:none;width:100%;margin:0}#mapTray .victory-target-form>.form-error{order:3;display:block;width:100%;margin:0}
.board-frame{position:absolute;z-index:1;left:50%;top:calc(50% + 29px);width:calc(100vw - 24px);height:calc(100vh - 70px);min-width:min(280px,calc(100vw - 12px));min-height:240px;max-width:calc(100vw - 12px);max-height:calc(100vh - 64px);transform:translate(-50%,-50%);overflow:hidden;border:1px solid transparent;border-radius:14px}.board-frame:hover,.board-frame.is-resizing{border-color:#d2a64b66;box-shadow:inset 0 0 20px #0004}.game .board-frame>#board{position:absolute!important;inset:0!important;width:100%!important;height:100%!important;z-index:1}.board-resize-handle{position:absolute;z-index:3;right:2px;bottom:2px;width:28px;height:28px;cursor:nwse-resize;touch-action:none;background:linear-gradient(135deg,transparent 42%,#d2a64b 43% 49%,transparent 50% 60%,#d2a64b 61% 67%,transparent 68%);filter:drop-shadow(0 1px 1px #000)}.player-card-placeholder{height:72px;visibility:hidden}.hud-draggable{cursor:move;touch-action:none;-webkit-user-select:none;user-select:none;-webkit-touch-callout:none}.hud-dragging{cursor:grabbing!important;opacity:.92;will-change:left,top}.hud-floating{position:fixed!important;right:auto!important;bottom:auto!important}.player-card.hud-floating{z-index:3}.roll-dice-button.hud-floating,.end-turn-button.hud-floating,.last-roll.hud-floating,.winner-badge.hud-floating,.development-deck-hud.hud-floating,.building-costs.hud-floating{z-index:7}.player-card .player-name{cursor:text;touch-action:manipulation;user-select:text}.player-card .player-piece{cursor:grab;touch-action:manipulation}.hud-drag-handle{position:absolute;z-index:12;left:50%;top:-5px;transform:translateX(-50%);width:42px;height:18px;display:grid;place-items:center;border-radius:0 0 9px 9px;background:#17100ccc;color:#d8bb78;font:900 10px/1 Arial,sans-serif;letter-spacing:2px;box-shadow:0 2px 5px #0008;touch-action:none}.player-card.hud-dragging .hud-drag-handle{color:#fff0a5}@media(max-width:800px){.board-frame{width:calc(100vw - 12px);height:calc(100vh - 66px);max-height:calc(100vh - 62px)}.player-card-placeholder{height:64px}.hud-drag-handle{width:48px;height:22px;top:-7px}}
.game .table .player-dock,.game.many-players .table .player-dock{left:12px;right:auto;top:64px;bottom:6px;width:min(300px,calc(100vw - 24px));height:auto;max-height:none;display:flex;flex-direction:column;justify-content:safe center;gap:10px;overflow-y:auto;scrollbar-width:none;transform:none;pointer-events:none}.game .table .player-dock::-webkit-scrollbar{display:none}.game .player-dock .player-card{flex:0 0 62px;width:100%;height:62px;grid-template-columns:auto minmax(68px,1fr) auto;padding:6px 8px;pointer-events:auto}.game .player-dock .player-card-placeholder{flex:0 0 62px;width:100%;height:62px}.game .player-dock .player-pieces{gap:8px;margin-left:8px}.game .player-dock .player-piece{width:27px;height:34px;padding:0;border:0;background:transparent!important;box-shadow:none}.game .player-dock .player-piece:hover{border:0;background:transparent;filter:brightness(1.3) drop-shadow(0 0 5px var(--player));transform:scale(1.12)}.game .player-dock .player-piece.resource-selected{border-color:transparent;background:transparent!important}.game .player-dock .player-piece img{width:27px;height:30px}.game .player-dock .player-piece[data-type="road"] img{width:20px;height:29px}@media(max-width:520px){.game .table .player-dock,.game.many-players .table .player-dock{left:6px;width:min(280px,calc(100vw - 12px))}.game .player-dock .player-pieces{gap:5px;margin-left:5px}}
.game .player-dock .player-piece{height:46px;justify-content:flex-start}.game .player-dock .player-piece img{flex:0 0 auto;width:27px;height:31px}.game .player-dock .player-piece[data-type="road"] img{width:20px;height:31px}.game .player-dock .player-piece-count{display:block;margin:0!important;color:#f3d47d;font:800 10px/12px Arial,sans-serif;text-shadow:0 1px 2px #000}
.building-costs{position:absolute;z-index:2;left:50%;top:4px;height:50px;max-width:min(570px,calc(100% - 560px));transform:translateX(-50%);display:flex;align-items:stretch;justify-content:center;gap:5px;overflow-x:auto;scrollbar-width:none}.building-costs::-webkit-scrollbar{display:none}.build-cost{flex:0 0 auto;min-width:94px;display:grid;grid-template-columns:28px auto;grid-template-rows:16px 26px;column-gap:5px;align-items:center;padding:3px 6px;border:1px solid #604a31;background:#1c130dcf;color:#ebdab4;box-shadow:inset 0 0 10px #0005}.build-cost:nth-child(2){min-width:142px}.build-cost:nth-child(4){min-width:125px}.build-cost-piece{grid-row:1/3;width:27px;height:37px;object-fit:contain;filter:drop-shadow(0 2px 2px #000)}.development-cost-piece{width:25px;height:39px}.build-cost>strong{align-self:end;overflow:hidden;color:#d7c291;font:800 7px/1 Arial,sans-serif;letter-spacing:.07em;text-overflow:ellipsis;text-transform:uppercase;white-space:nowrap}.build-cost>span{align-self:start;display:flex;gap:4px}.build-cost i{position:relative;width:20px;height:22px;display:block;font-style:normal}.build-cost i img{width:20px;height:20px;object-fit:contain}.build-cost i b{position:absolute;right:-2px;bottom:-1px;min-width:11px;height:11px;border-radius:50%;display:grid;place-items:center;background:#f1ddb0;color:#24180f;box-shadow:0 1px 2px #000;font:900 7px Arial,sans-serif}@media(max-width:1250px){.table-title{visibility:hidden}.building-costs{left:105px;right:255px;max-width:none;transform:none;justify-content:flex-start}}@media(max-width:800px){.building-costs{left:85px;right:145px;gap:4px}.build-cost{min-width:88px}.build-cost:nth-child(2){min-width:136px}.build-cost:nth-child(4){min-width:120px}}
.building-costs{top:2px;height:54px;max-width:min(780px,calc(100% - 540px));gap:7px}.build-cost{min-width:120px;grid-template-columns:38px auto;grid-template-rows:20px 30px;column-gap:7px;padding:2px 7px}.build-cost.settlement-cost{min-width:184px}.build-cost.city-cost,.build-cost.road-cost,.build-cost.boat-cost{min-width:120px}.build-cost.development-cost{min-width:154px}.build-cost-piece{width:36px;height:48px}.development-cost-piece{width:32px;height:49px}.build-cost>strong{font-size:9px}.build-cost>span{gap:6px}.build-cost i{width:28px;height:29px}.build-cost i img{width:27px;height:27px}.build-cost i b{right:-2px;bottom:-1px;min-width:13px;height:13px;font-size:8px}@media(max-width:1450px){.table-title{visibility:hidden}.building-costs{left:105px;right:255px;max-width:none;transform:none;justify-content:flex-start}}@media(max-width:800px){.building-costs{left:85px;right:145px;gap:6px}.build-cost.settlement-cost{min-width:184px}.build-cost.city-cost,.build-cost.road-cost,.build-cost.boat-cost{min-width:120px}.build-cost.development-cost{min-width:154px}}
.build-cost{grid-template-rows:50px}.build-cost-piece{grid-column:1;grid-row:1}.build-cost>span{grid-column:2;grid-row:1;align-self:center}.build-cost i{width:31px;height:32px}.build-cost i img{width:30px;height:30px}.build-cost i b{min-width:14px;height:14px;font-size:9px}
.building-costs{top:1px;height:58px;max-width:min(880px,calc(100% - 530px));padding:2px 10px;gap:12px;overflow-x:auto;border:1px solid #604a31;border-radius:9px;background:#1c130ddd;box-shadow:0 4px 14px #0008;box-sizing:border-box}
.build-cost{min-width:130px;grid-template-columns:46px auto;grid-template-rows:52px;column-gap:8px;padding:0;border:0;background:transparent;box-shadow:none}
.build-cost.settlement-cost{min-width:224px}.build-cost.city-cost,.build-cost.road-cost,.build-cost.boat-cost{min-width:138px}.build-cost.development-cost{min-width:184px}
.build-cost-piece{width:44px;height:52px}.development-cost-piece{width:42px;height:53px}.build-cost>span{gap:7px}.build-cost i{width:38px;height:40px}.build-cost i img{width:38px;height:38px}.build-cost i b{right:-2px;bottom:-1px;min-width:16px;height:16px;font-size:10px}
.building-costs.hud-floating{z-index:8;right:auto!important;bottom:auto!important;max-width:none;transform:none!important;justify-content:flex-start;overflow:visible;cursor:move}
@media(max-width:1450px){.building-costs:not(.hud-floating){left:105px;right:255px;max-width:none;transform:none;justify-content:flex-start}}@media(max-width:800px){.building-costs:not(.hud-floating){left:85px;right:145px;gap:10px}}
.building-costs{max-width:min(790px,calc(100% - 530px));gap:8px}
.build-cost{min-width:120px;grid-template-columns:43px auto;column-gap:6px}.build-cost.settlement-cost{min-width:194px}.build-cost.city-cost,.build-cost.road-cost,.build-cost.boat-cost{min-width:120px}.build-cost.development-cost{min-width:158px}
.build-cost-piece{width:42px}.development-cost-piece{width:39px}.build-cost>span{gap:3px}.build-cost i{width:34px;height:38px}.build-cost i img{width:34px;height:34px}.build-cost:not(.city-cost) i b{display:none}
.building-costs{max-width:min(735px,calc(100% - 530px));gap:0;padding-left:8px;padding-right:8px}.build-cost{grid-template-columns:40px auto;column-gap:4px}.build-cost.settlement-cost{min-width:184px}.build-cost.city-cost,.build-cost.road-cost,.build-cost.boat-cost{min-width:112px}.build-cost.development-cost{min-width:148px}.build-cost+.build-cost{margin-left:5px;padding-left:5px;border-left:1px solid #604a31}.build-cost>span{gap:2px}.build-cost-piece{width:39px}.development-cost-piece{width:37px}
.building-costs.hud-floating{width:max-content!important}
.building-costs{max-width:min(650px,calc(100% - 530px))}.build-cost{column-gap:2px}.build-cost.settlement-cost{min-width:159px}.build-cost.city-cost{min-width:112px}.build-cost.road-cost,.build-cost.boat-cost{min-width:105px}.build-cost.development-cost{min-width:132px}.build-cost+.build-cost{margin-left:2px;padding-left:3px}.build-cost>span{gap:0}.build-cost:not(.city-cost) i{width:27px}.build-cost:not(.city-cost) i:last-child{width:34px}

.cost-drag-handle{position:sticky;z-index:4;left:0;flex:0 0 22px;align-self:stretch;display:grid;place-items:center;margin-right:4px;border-right:1px solid #6f5535;background:#24180fe8;color:#d8bb78;font:900 10px/1 Arial,sans-serif;letter-spacing:1px;cursor:grab;touch-action:none}.building-costs.hud-dragging .cost-drag-handle{cursor:grabbing;color:#fff0a5}.multiplayer-host .building-costs{height:56px;max-width:min(700px,calc(100% - 500px));padding:2px 5px;align-items:center;justify-content:center}.multiplayer-host .building-costs:not(.hud-floating){top:50%;transform:translate(-50%,-50%)}.multiplayer-host .build-cost{grid-template-columns:38px auto;grid-template-rows:1fr;align-items:center;min-width:104px;padding:2px 5px}.multiplayer-host .build-cost.settlement-cost{min-width:169px}.multiplayer-host .build-cost.city-cost{min-width:113px}.multiplayer-host .build-cost.road-cost,.multiplayer-host .build-cost.boat-cost{min-width:107px}.multiplayer-host .build-cost.development-cost{min-width:137px}.multiplayer-host .build-cost-piece{grid-row:1;width:37px;height:49px}.multiplayer-host .development-cost-piece{width:34px;height:50px}.multiplayer-host .build-cost>span{align-self:center}.multiplayer-host .build-cost i,.multiplayer-host .build-cost:not(.city-cost) i{width:29px;height:31px}.multiplayer-host .build-cost:not(.city-cost) i:last-child{width:32px}.multiplayer-host .build-cost i img{width:29px;height:29px}@media(max-width:1450px){.multiplayer-host .building-costs:not(.hud-floating){transform:translateY(-50%)}}
.client-piece-toggle{display:none}
.player-score{position:relative}.player-public-cards{position:absolute;z-index:7;left:50%;top:-20px;display:flex;align-items:flex-end;transform:translateX(-50%);pointer-events:none}.player-achievement-cards{z-index:8}.player-development-cards{z-index:7}.player-public-cards .public-card{position:relative;display:block;width:18px;height:25px;margin-left:-6px;filter:drop-shadow(0 2px 2px #000b)}.player-public-cards .public-card:first-child{margin-left:0}.player-public-cards img{display:block;width:100%;height:100%;object-fit:contain}.player-public-cards b{position:absolute;right:-3px;bottom:-2px;min-width:12px;height:12px;padding:0 2px;border:1px solid #342316;border-radius:7px;display:grid;place-items:center;background:#f1ddb0;color:#24180f;font:900 7px/1 Arial,sans-serif}
.board-frame.is-pinching{border-color:#f0c95b88;box-shadow:inset 0 0 24px #0006}.board-frame.is-pinching #board{cursor:zoom-in}
.discard-assist-button{position:absolute;z-index:15;left:auto;right:7px;bottom:-8px;padding:3px 7px;border:1px solid #ffb15d;border-radius:9px;background:#8d3025;color:#fff3d3;box-shadow:0 2px 7px #000b;font:900 7px/1 Arial,sans-serif;text-transform:uppercase;letter-spacing:.04em;touch-action:manipulation}.discard-assist-button:before{content:'!';display:inline-grid;place-items:center;width:10px;height:10px;margin-right:3px;border-radius:50%;background:#ffd36b;color:#5b241a}.discard-host-actions{display:flex;justify-content:center;gap:9px;margin-top:8px}.discard-host-actions button{padding:10px 18px;border:1px solid #806441;background:#302218;color:#f3dfb6}.discard-host-actions [data-confirm-discard]{border-color:#cda747;background:#883a2b;color:#fff}.discard-host-actions button:disabled{opacity:.42}
.discard-fan-card{width:min(500px,calc(100vw - 18px))!important;overflow:visible}.discard-card-fan{height:124px;display:flex;align-items:flex-end;justify-content:center;gap:5px;padding:12px 10px 8px;overflow:visible}.discard-pick-card{position:relative;flex:0 0 72px;width:72px;height:98px;margin:0;padding:0;border:0;background:transparent;color:#f3e2bb;transform:translateY(0);transition:transform .16s,filter .16s;overflow:visible}.discard-pick-card img{display:block;width:72px;height:98px;object-fit:contain;filter:drop-shadow(0 4px 4px #000c)}.discard-pick-card>span{position:absolute;left:7px;right:7px;bottom:4px;padding:2px;background:#1d140dcc;color:#f5e4bd;font:800 7px Arial,sans-serif;text-transform:uppercase}.discard-pick-card.is-returning{z-index:4;transform:translateY(-12px);filter:drop-shadow(0 0 5px #ffe06a)}.discard-pick-card:disabled{cursor:default}.discard-pick-card:not(.is-returning):disabled{filter:saturate(.45) brightness(.7)}.discard-held-count,.discard-pick-card>em{position:absolute;z-index:8;min-width:23px;height:23px;padding:0 4px;border:2px solid #21160f;border-radius:13px;display:grid;place-items:center;box-shadow:0 2px 5px #0009;font:900 10px/1 Arial,sans-serif;font-style:normal}.discard-held-count{right:-7px;top:auto;bottom:-7px;background:#f1ddb0;color:#24180f}.discard-pick-card>em{left:-7px;top:-7px;background:#f2ca54;color:#24180f}.discard-player-actions{grid-template-columns:1fr 1.35fr!important}.discard-host-actions [data-undo-discard]{border-color:#b29154;background:#49351f}@media(max-width:420px){.discard-fan-card{padding-left:7px!important;padding-right:7px!important}.discard-card-fan{height:102px;gap:3px;padding-left:5px;padding-right:5px}.discard-pick-card{flex-basis:60px;width:60px;height:82px}.discard-pick-card img{width:60px;height:82px}.discard-held-count,.discard-pick-card>em{min-width:21px;height:21px;font-size:9px}.discard-held-count{right:-5px;bottom:-5px}.discard-pick-card>em{left:-5px;top:-5px}.discard-host-actions{gap:5px}.discard-host-actions button{padding:9px 8px;font-size:9px}}
.player-card{position:relative;overflow:visible}.player-hand{margin-top:2px;color:#d8c59d;font:8px Arial,sans-serif}.player-hand summary{width:max-content;padding:1px 5px;border:1px solid #6c5639;border-radius:8px;background:#20160f;color:#cbb78d;cursor:pointer;list-style:none;text-transform:uppercase;letter-spacing:.08em}.player-hand summary::-webkit-details-marker{display:none}.player-hand summary:before{content:'▸';margin-right:4px;color:var(--player)}.player-hand[open] summary:before{content:'▾'}.player-hand summary b{color:#f2d172;font-size:9px}.game .player-dock .player-card.hand-open{flex-basis:260px;height:260px;z-index:6;align-items:start}.player-hand-panel{position:absolute;z-index:8;left:6px;right:6px;top:64px;display:grid;grid-template-columns:1fr 1fr;gap:7px;padding:7px;border:1px solid #725a3d;border-top:2px solid var(--player);background:#19110df7;box-shadow:0 10px 24px #000a}.player-hand-panel section{min-width:0}.player-hand-panel h4{margin:0 0 5px;color:#d7bd7f;font:800 8px Arial,sans-serif;letter-spacing:.1em;text-transform:uppercase}.held-card-row{height:29px;display:grid;grid-template-columns:24px minmax(0,1fr) 31px 18px 18px 18px;align-items:center;gap:2px;border-top:1px solid #493925}.held-card-row>img{width:23px;height:25px;object-fit:contain}.held-card-row>span{overflow:hidden;color:#dfd0ad;font:8px Arial,sans-serif;text-overflow:ellipsis;white-space:nowrap}.held-card-row>small{color:#87785e;font:6px/1 Arial,sans-serif;text-align:center}.held-card-row>small b{display:block;margin-top:2px;color:#bfa972;font-size:8px}.held-card-row>button{width:18px;height:18px;padding:0;border:1px solid #675034;border-radius:50%;background:#332319;color:#eed8a7;font:700 12px/16px Arial,sans-serif}.held-card-row>button:hover{border-color:var(--player);color:#fff}.held-card-row>strong{text-align:center;color:#f3d273;font:800 11px Arial,sans-serif}@media(max-width:520px){.game .player-dock .player-card.hand-open{height:274px;flex-basis:274px}.player-hand-panel{grid-template-columns:1fr;max-height:202px;overflow-y:auto}.held-card-row{grid-template-columns:24px minmax(0,1fr) 35px 22px 20px 22px}}
.game:not(.track-resources) .player-hand{display:none}.game:not(.track-resources) .player-dock .player-card.hand-open{height:62px;flex-basis:62px}
.game .player-dock .player-card.hand-open{height:116px;flex-basis:116px;align-items:start}.player-card-overview{position:absolute;left:6px;right:6px;top:64px;height:45px;display:grid;grid-template-columns:repeat(6,30px) minmax(42px,1fr);align-items:center;justify-content:start;gap:3px;padding:3px 5px;border-top:1px solid #5d482f;background:#17100cd9}.held-card-chip{position:relative;width:30px;height:36px;display:grid;place-items:center}.held-card-chip img{width:29px;height:34px;object-fit:contain}.held-card-chip b{position:absolute;right:-1px;bottom:0;min-width:15px;height:15px;border-radius:50%;display:grid;place-items:center;background:var(--player);color:#fff;border:1px solid #20150e;box-shadow:0 1px 3px #000b;font:900 9px Arial,sans-serif}.edit-player-cards{justify-self:end;min-width:42px;padding:6px 7px;border:1px solid var(--player);background:#2e2118;color:#f0ddb4;font:800 8px Arial,sans-serif;text-transform:uppercase;letter-spacing:.06em}.card-editor-dialog{--editor-player:#d34b32;width:min(620px,calc(100% - 24px));max-height:calc(100vh - 30px);padding:0;border:2px solid var(--editor-player);border-radius:8px;background:#1a120df7;color:#ebdab4;box-shadow:0 24px 80px #000d,0 0 24px color-mix(in srgb,var(--editor-player) 38%,transparent)}.card-editor-dialog::backdrop{background:#090603a8;backdrop-filter:blur(3px)}.card-editor-header{display:flex;align-items:center;justify-content:space-between;padding:14px 16px;border-bottom:1px solid #604a31;background:linear-gradient(90deg,color-mix(in srgb,var(--editor-player) 24%,#21160f),#21160f)}.card-editor-header small{display:block;color:var(--editor-player);font:900 8px Arial,sans-serif;letter-spacing:.18em}.card-editor-header h2{margin:3px 0 0;font-size:22px}.card-editor-header button{width:32px;height:32px;padding:0;border:1px solid #745b3c;background:#2d2017;color:#ead8af;font-size:22px}.card-editor-grid{display:grid;grid-template-columns:1fr 1fr;gap:14px;padding:14px}.card-editor-grid section{min-width:0}.card-editor-grid h4{margin:0 0 7px;color:#d7bd7f;font:800 9px Arial,sans-serif;letter-spacing:.12em;text-transform:uppercase}.card-editor-dialog .held-card-row{height:35px;grid-template-columns:30px minmax(0,1fr) 38px 24px 24px 24px;gap:4px}.card-editor-dialog .held-card-row>img{width:29px;height:31px}.card-editor-dialog .held-card-row>span{font-size:9px}.card-editor-dialog .held-card-row>small{font-size:7px}.card-editor-dialog .held-card-row>button{width:23px;height:23px;font-size:15px;line-height:21px}.card-editor-dialog .held-card-row>strong{font-size:13px}@media(max-width:560px){.game .player-dock .player-card.hand-open{height:116px;flex-basis:116px}.player-card-overview{grid-template-columns:repeat(6,28px) minmax(38px,1fr);gap:2px}.held-card-chip{width:28px}.held-card-chip img{width:27px}.card-editor-grid{grid-template-columns:1fr;gap:12px;max-height:calc(100vh - 105px);overflow-y:auto}}
.held-card-chip b{background:#f1ddb0;color:#24180f;border-color:#5a432d;text-shadow:none}.game .player-dock .player-card,.game .player-dock .player-card.hand-open{align-items:start}.game .player-dock .player-score{align-self:start;height:48px;min-height:48px;margin:0 7px 0 -3px;box-sizing:border-box}.game .player-dock .player-identity{align-self:start;height:48px;display:flex;flex-direction:column;justify-content:center}.game .player-dock .player-pieces{align-self:start;height:48px;align-items:center}.game .player-dock .player-piece{height:46px;display:grid;grid-template-rows:32px 12px;place-items:center;align-content:center;justify-content:center!important}.game .player-dock .player-piece img,.game .player-dock .player-piece[data-type="road"] img{grid-row:1;width:27px;height:31px;margin:auto;object-fit:contain}.game .player-dock .player-piece[data-type="road"] img{width:20px}.game .player-dock .player-piece-count{grid-row:2;width:100%;height:12px;text-align:center;line-height:12px}.player-hand summary,.player-card-overview{z-index:3}.player-card.build-active{border-color:#f3cf5c;box-shadow:0 0 0 2px #f3cf5c,0 0 17px color-mix(in srgb,var(--player) 65%,transparent),0 7px 18px #0009;filter:none}.player-card.special-build-active{outline-offset:2px}.player-card.turn-active{transform:none}
.game .player-dock .player-card{flex-basis:74px;height:74px}.game .player-dock .player-card-placeholder{flex-basis:74px;height:74px}.game .player-dock .player-card.hand-open{height:128px;flex-basis:128px}.game .player-dock .player-score{height:60px;min-height:60px;justify-content:center}.game .player-dock .player-identity{height:60px;align-items:center;justify-content:center;text-align:center}.game .player-dock .player-name{text-align:center}.game .player-dock .player-color{text-align:center}.game .player-dock .player-bonuses{justify-content:center}.game .player-dock .player-hand summary{margin-left:auto;margin-right:auto}.game .player-dock .player-pieces{height:40px;margin-top:-4px;align-items:start}.game .player-dock .player-piece{position:relative;height:40px;display:grid;grid-template-rows:40px;place-items:center;overflow:visible}.game .player-dock .player-piece img,.game .player-dock .player-piece[data-type="road"] img{grid-row:1;width:27px;height:34px;margin:auto}.game .player-dock .player-piece[data-type="road"] img{width:20px}.game .player-dock .player-piece-count{position:absolute;z-index:3;right:-3px;bottom:0;width:auto;min-width:16px;height:16px;padding:0 2px;border:1px solid #5a432d;border-radius:50%;display:grid;place-items:center;background:#f1ddb0;color:#24180f;text-shadow:none;font:900 9px/1 Arial,sans-serif}.player-metrics{position:absolute;z-index:3;right:8px;bottom:2px;width:132px;height:19px;display:flex;align-items:center;justify-content:space-around;border-top:1px solid #493925}.player-metrics>span{position:relative;flex:1;height:18px;display:grid;place-items:center}.player-metrics img{width:20px;height:18px;object-fit:contain;filter:drop-shadow(0 1px 1px #000)}.player-metrics>span:nth-child(1) img{width:15px}.player-metrics>span:nth-child(2) img{width:14px}.player-metrics>span:nth-child(3) img{width:23px}.player-metrics b{position:absolute;right:1px;bottom:-1px;min-width:13px;height:13px;padding:0 1px;border:1px solid #5a432d;border-radius:50%;display:grid;place-items:center;background:#f1ddb0;color:#24180f;box-shadow:0 1px 2px #000b;font:900 8px/1 Arial,sans-serif}.player-card-overview{top:76px}.game:not(.track-resources) .player-dock .player-card.hand-open{height:74px;flex-basis:74px}@media(max-width:560px){.game .player-dock .player-card.hand-open{height:128px;flex-basis:128px}.player-card-overview{top:76px}}
.game .player-dock .player-score{min-width:58px;margin-right:6px}.game .player-dock .player-score strong{font-size:27px}.game .player-dock .player-score small{margin-top:1px}.game .player-dock .player-score .player-hand{margin-top:2px}.game .player-dock .player-score .player-hand summary{padding:1px 4px;font-size:7px;letter-spacing:.04em}.game .player-dock .player-score .player-hand summary:before{margin-right:2px}.game .player-dock .player-identity{justify-content:flex-start;padding-top:5px;box-sizing:border-box}.game .player-dock .player-name{flex:0 0 auto}.game .player-dock .player-color{min-height:17px;margin-top:3px;white-space:normal;font-size:7px;line-height:1.15}.game .player-dock .player-bonuses{margin-top:1px}.player-metrics{top:52px;bottom:auto}.player-metrics img,.player-metrics>span:nth-child(1) img,.player-metrics>span:nth-child(2) img,.player-metrics>span:nth-child(3) img{width:19px;height:18px}.player-metrics>span:nth-child(1) img{width:17px}.player-metrics>span:nth-child(3) img{width:20px}
.game .player-dock .player-score .player-hand{position:static;height:0;margin:0}.game .player-dock .player-score .player-hand summary{position:absolute;z-index:10;left:8px;top:66px;margin:0;box-shadow:0 2px 4px #000b}.game .player-dock .player-card.hand-open{height:136px;flex-basis:136px}.player-card-overview{top:84px}.player-metrics{top:47px;height:18px}.player-metrics>span{display:flex;align-items:center;justify-content:center;gap:3px}.player-metrics b{position:static;min-width:0;height:auto;padding:0;border:0;border-radius:0;background:transparent;color:#f1ddb0;box-shadow:none;font:900 10px/1 Arial,sans-serif}.player-metrics img,.player-metrics>span:nth-child(1) img,.player-metrics>span:nth-child(2) img,.player-metrics>span:nth-child(3) img{width:18px;height:18px}.player-metrics>span:nth-child(1) img{width:16px}.player-metrics>span:nth-child(2) img{width:19px}.player-metrics>span:nth-child(3) img{width:19px}.game:not(.track-resources) .player-dock .player-card.hand-open{height:74px;flex-basis:74px}@media(max-width:560px){.game .player-dock .player-card.hand-open{height:136px;flex-basis:136px}.player-card-overview{top:84px}}
.player-metrics{top:44px;height:21px;padding-top:3px;box-sizing:border-box}
@media(min-width:521px){.game .table .player-dock,.game.many-players .table .player-dock{width:min(340px,calc(100vw - 24px))}.game .player-dock .player-card{width:340px!important;grid-template-columns:auto minmax(108px,1fr) auto}}.player-metrics b{font-size:12px}
.player-card .player-color:before,.player-card .player-color:after{content:none!important}.game .player-dock .player-color{min-height:29px;display:flex;flex-direction:column;align-items:center;justify-content:flex-start;gap:1px;line-height:1}.player-color .player-label,.player-color .building-status,.player-color .turn-status{display:block;min-height:8px;white-space:nowrap}.player-color .building-status,.player-color .turn-status{font-weight:900}.player-color .building-status{visibility:hidden;color:#f3cf5c}.player-card.build-active .player-color .building-status{visibility:visible}.player-color .turn-status:after{content:''}.player-card.turn-active .player-color .turn-status:after{content:'Current turn';color:var(--player)}.player-card.special-build-active .player-color .turn-status:after{content:'Special build turn';color:var(--player)}
.game .table .player-dock,.game.many-players .table .player-dock{width:min(360px,calc(100vw - 12px));padding:10px;box-sizing:border-box}.game .player-dock .player-card{width:min(340px,100%)!important;box-sizing:border-box}.game .player-dock .player-card.turn-active{border:2px solid var(--player)}.game .player-dock .player-card.special-build-active{border:2px solid var(--player)}.game .player-dock .player-card.build-active{border:2px solid #f3cf5c}.game .player-dock .player-card.build-active:after{right:-7px;top:-9px}

/* Host tabletop trading from the collapsible player hands. */
.player-card-overview .held-card-chip{margin:0;padding:0;border:0;border-radius:3px;background:transparent;color:inherit;overflow:visible;transition:transform .16s ease,filter .16s ease;touch-action:manipulation}
.player-card-overview .held-card-chip:disabled{opacity:1}
.player-card-overview .held-card-chip.host-trade-selectable{cursor:pointer}
.player-card-overview .held-card-chip.host-trade-selectable:hover{filter:brightness(1.16) drop-shadow(0 2px 3px #000)}
.player-card-overview .held-card-chip.host-trade-raised{transform:translateY(-8px);filter:drop-shadow(0 4px 4px #000)}
.player-card-overview .held-card-chip.host-trade-lowered{transform:translateY(7px);filter:saturate(.8) drop-shadow(0 1px 2px #000)}
.host-trade-quantity{position:absolute;z-index:5;left:-4px;top:-4px;min-width:17px;height:17px;padding:0 2px;border:1px solid #5a432d;border-radius:9px;display:grid;place-items:center;background:#f1ddb0;color:#24180f;box-shadow:0 2px 4px #000b;font:900 9px/1 Arial,sans-serif;font-style:normal}
.host-trade-controls{grid-column:1/-1;display:flex;justify-content:flex-end;gap:5px;min-height:0}
.host-trade-controls:empty{display:none}
.host-trade-controls button,.host-trade-accept{min-height:21px;padding:3px 7px;border:1px solid #8c7046;border-radius:4px;background:#35251a;color:#f2dfb4;font:800 8px/1 Arial,sans-serif;text-transform:uppercase;letter-spacing:.05em;box-shadow:0 2px 5px #0008}
.host-trade-controls button:first-child,.host-trade-accept:not(:disabled){border-color:#e0b94f;background:#604716;color:#fff2bd}
.host-trade-controls button:disabled,.host-trade-accept:disabled{opacity:.42;cursor:not-allowed}
.game .player-dock .player-card.hand-open:has(.host-trade-controls:not(:empty)){height:158px;flex-basis:158px}
.player-card-overview:has(.host-trade-controls:not(:empty)){height:67px;grid-template-rows:39px 24px}
.host-trade-accept{position:absolute;z-index:14;right:7px;bottom:-8px;pointer-events:auto}
.game .player-dock .player-card.host-trade-target-selected{border-color:#7ee8ff!important;box-shadow:0 0 0 3px #29c7e8,0 0 24px #29c7e8aa!important}
.player-card.host-trade-target-selected:before{content:'TRADE';position:absolute;z-index:12;right:7px;top:5px;padding:2px 5px;border-radius:7px;background:#7ee8ff;color:#112127;font:900 7px Arial,sans-serif;letter-spacing:.08em}
.player-dock-group-handle{grid-column:1/-1;flex:0 0 17px;justify-self:center;align-self:center;width:58px;height:17px;margin:0 auto -4px;padding:0;border:1px solid #725a3d;border-radius:8px;background:#21160fe8;color:#d8bb78;box-shadow:0 2px 5px #0008;font:900 10px/15px Arial,sans-serif;letter-spacing:3px;cursor:grab;touch-action:none;pointer-events:auto}.player-dock.hud-dragging .player-dock-group-handle{color:#fff0a5;cursor:grabbing}.player-dock.hud-floating{z-index:12!important;right:auto!important;bottom:auto!important;transform:none!important}
.board-frame.is-panning{cursor:grabbing}.board-frame.is-panning #board{pointer-events:none}
.placed-sprite.boat-move-selected{filter:drop-shadow(0 0 5px #ffe35c) drop-shadow(0 0 9px #ffe35c);opacity:.82}
.development-deck-hud{position:fixed;z-index:7;right:22px;top:218px;width:66px;height:88px;padding:5px;border:1px solid #b88a42;border-radius:6px;background:#1c130de8;box-shadow:0 6px 18px #0009;touch-action:none}.development-deck-hud img{width:52px;height:74px;display:block;margin:auto;object-fit:contain;filter:drop-shadow(0 2px 2px #000b)}.development-deck-hud b{position:absolute;right:-7px;bottom:-7px;min-width:22px;height:22px;padding:0 3px;border:2px solid #24180f;border-radius:50%;display:grid;place-items:center;background:#f1ddb0;color:#24180f;box-shadow:0 2px 6px #000b;font:900 10px/1 Arial,sans-serif}.development-deck-hud:hover{border-color:#f3cf5c;filter:brightness(1.08)}.development-deck-hud.drawing img{animation:development-draw .4s ease-out}.development-deck-hud.hud-floating{z-index:7}@keyframes development-draw{0%{transform:translateY(0) rotate(0)}45%{transform:translateY(-13px) rotate(5deg) scale(1.08)}100%{transform:translateY(0) rotate(0)}}@media(max-width:600px){.development-deck-hud{right:10px;top:190px;width:58px;height:78px}.development-deck-hud img{width:45px;height:64px}}
.development-deck-hud{width:52px;height:74px;padding:0;border:0;border-radius:0;appearance:none;background:transparent;box-shadow:none}.development-deck-hud img{width:100%;height:100%;pointer-events:none;user-select:none;-webkit-user-drag:none;filter:drop-shadow(2px 3px 0 #806338) drop-shadow(4px 5px 0 #4a3622) drop-shadow(0 6px 5px #000a)}.development-deck-hud b{pointer-events:none}.development-deck-hud:hover{filter:brightness(1.1)}@media(max-width:600px){.development-deck-hud{width:45px;height:64px}}
.end-turn-button{position:fixed;z-index:7;right:124px;bottom:22px;border:2px solid #cda747;background:linear-gradient(#385d35,#244325);color:#fff4d2;padding:11px 16px;box-shadow:0 5px 14px #0008;font:700 13px Georgia,serif}.end-turn-button:disabled,.end-turn-button.is-disabled{opacity:.5}.roll-dice-button.is-disabled{opacity:.55}.end-turn-button.is-disabled,.roll-dice-button.is-disabled{cursor:move;filter:saturate(.45)}@media(max-width:600px){.end-turn-button{right:94px;bottom:10px;padding:9px 11px}}
.vertex-target.robber-steal-target{fill:#f5d84c;fill-opacity:.88;stroke:#fff7b0;stroke-opacity:1;stroke-width:4;filter:drop-shadow(0 0 6px #f5d84c)}
.edge-target.pirate-steal-target{stroke:#f5d84c;stroke-opacity:.88;stroke-width:9;filter:drop-shadow(0 0 5px #f5d84c)}
.seven-discard-overlay{position:fixed;z-index:10020;inset:0;display:grid;place-items:center;padding:18px;background:#080603d9}.seven-discard-overlay[hidden]{display:none}.seven-discard-card{width:min(680px,94vw);padding:22px;border:3px solid var(--discard-player,#cda747);border-radius:16px;background:linear-gradient(145deg,#3b291b,#1e150f);color:#f6e7c6;box-shadow:0 18px 60px #000d;text-align:center}.seven-discard-card>small{font:900 10px Arial,sans-serif;letter-spacing:.2em;color:#e4b950}.seven-discard-card h2{margin:5px 0 3px;font:700 24px Georgia,serif}.seven-discard-card p{margin:0 0 15px;color:#c8b58e;font:12px Arial,sans-serif}.seven-discard-resources{display:grid;grid-template-columns:repeat(5,minmax(84px,1fr));gap:8px}.discard-resource{padding:8px 5px;border:1px solid #695036;border-radius:8px;background:#261a12}.discard-resource img{display:block;width:64px;height:78px;margin:auto;object-fit:contain}.discard-resource span,.discard-resource small{display:block}.discard-resource span{font:800 11px Arial,sans-serif}.discard-resource small{color:#bba785;font:9px Arial,sans-serif}.discard-resource div{display:flex;align-items:center;justify-content:center;gap:8px;margin-top:5px}.discard-resource button{width:25px;height:25px;padding:0}.discard-resource b{min-width:18px;font:900 15px Arial,sans-serif}.discard-progress{display:block;margin:14px 0 8px;font:900 14px Arial,sans-serif}.seven-discard-card>button{padding:10px 18px}.seven-discard-card button:disabled{opacity:.42;cursor:not-allowed}@media(max-width:600px){.seven-discard-card{padding:15px 9px}.seven-discard-card h2{font-size:19px}.seven-discard-resources{gap:3px}.discard-resource{padding:5px 1px}.discard-resource img{width:48px;height:61px}.discard-resource span{font-size:8px}.discard-resource div{gap:2px}.discard-resource button{width:22px;height:22px}}
.development-play-overlay{position:fixed;z-index:10030;inset:0;display:grid;place-items:center;padding:18px;background:#090603b8;backdrop-filter:blur(4px);opacity:0;visibility:hidden;pointer-events:none;cursor:pointer;transition:opacity .2s}.development-play-overlay.show{opacity:1;visibility:visible;pointer-events:auto}.development-play-popup{display:flex;align-items:center;filter:drop-shadow(0 24px 34px #000d);transform:translateY(24px) scale(.84)}.development-play-overlay.show .development-play-popup{animation:achievement-arrive .42s cubic-bezier(.2,.85,.25,1.15) forwards}.development-play-card{position:relative;z-index:2;display:block;width:230px;height:310px;object-fit:contain;filter:drop-shadow(0 8px 12px #000b)}.development-play-player{--development-player:#d3a448;width:250px;min-height:180px;margin-left:-14px;padding:28px 24px 24px 34px;border:2px solid var(--development-player);border-left-width:6px;border-radius:0 10px 10px 0;background:linear-gradient(145deg,#35251a,#17100c);color:#f2dfb8;text-align:center;box-shadow:inset 0 0 30px #0008,0 0 24px color-mix(in srgb,var(--development-player) 45%,transparent)}.development-play-player small{display:block;color:var(--development-player);font:900 8px Arial,sans-serif;letter-spacing:.14em}.development-play-player strong{display:block;margin:12px 0 7px;font:700 27px Georgia,serif;overflow-wrap:anywhere}.development-play-player span{display:block;color:#e2c78f;font:700 14px Arial,sans-serif}.development-play-player em{display:block;margin-top:20px;color:#8f8068;font:7px Arial,sans-serif;font-style:normal;letter-spacing:.12em;text-transform:uppercase}@media(max-width:560px){.development-play-popup{flex-direction:column}.development-play-card{width:170px;height:228px}.development-play-player{width:min(260px,86vw);min-height:118px;margin:-18px 0 0;padding:24px 18px 17px;border-left-width:2px;border-top-width:6px;border-radius:0 0 10px 10px}.development-play-player strong{margin:7px 0 4px;font-size:21px}.development-play-player em{margin-top:10px}}
.turn-timer-setting{grid-template-columns:minmax(0,1fr) 82px!important;align-items:center!important;margin-top:5px;padding-top:8px!important;border-top:1px solid #5b432c}.turn-timer-setting>span{display:flex;flex-direction:column;gap:2px}.turn-timer-setting .drawer-input{width:82px;min-width:0;padding:7px 8px;text-align:center}.turn-timer{position:fixed;z-index:7;right:22px;top:142px;width:116px;padding:8px 10px;background:#1c130ded;border:1px solid #9c7b45;color:#ead7a9;box-shadow:0 5px 18px #0009;text-align:center}.turn-timer>small{display:block;color:#d7b35f;font:800 7px Arial,sans-serif;letter-spacing:.16em}.turn-timer>strong{display:block;margin:2px 0 1px;color:#f3d072;font:900 28px/1 Georgia,serif;font-variant-numeric:tabular-nums}.turn-timer>span{display:block;overflow:hidden;color:#bfae89;font:700 8px Arial,sans-serif;text-overflow:ellipsis;white-space:nowrap}.turn-timer.is-urgent{border-color:#e37742;box-shadow:0 5px 18px #0009,0 0 16px #d74732aa}.turn-timer.is-urgent>strong{color:#ff8c58;animation:turn-timer-pulse .7s ease-in-out infinite alternate}.turn-timer.is-expired>strong{animation:none;color:#ff4d3b}@keyframes turn-timer-pulse{to{transform:scale(1.08);text-shadow:0 0 10px #ff5a38}}.turn-timer.hud-floating{z-index:8}@media(max-width:600px){.turn-timer{right:8px;top:56px;width:92px;padding:6px 8px}.turn-timer>strong{font-size:23px}}
.turn-timer-setting{grid-template-columns:minmax(0,1fr) 126px!important}.turn-timer-setting .drawer-input{width:126px;min-height:40px;font-size:16px}.setup-turn-timer-label{margin-top:10px}.setup-turn-timer-label>small{display:block;margin:2px 0 6px;color:#a89573;font:9px Arial,sans-serif}.setup-turn-timer-label .drawer-input{width:100%;min-height:42px;font-size:17px;text-align:center}
.turn-announcement{--turn-player:#d4aa50;position:fixed;z-index:10040;inset:0;display:grid;place-items:center;padding:18px;background:radial-gradient(circle at center,#0002,#07040275 58%,#07040200 82%);opacity:0;visibility:hidden;pointer-events:none;transition:opacity .1s,visibility .1s}.turn-announcement.show{opacity:1;visibility:visible}.turn-announcement-card{position:relative;width:min(520px,calc(100vw - 32px));min-height:126px;display:grid;grid-template-columns:112px minmax(0,1fr) 54px;align-items:center;overflow:hidden;border:1px solid #8d6b3f;border-left:7px solid var(--turn-player);border-radius:8px;background:linear-gradient(112deg,#110b08f5,#2c1d13f7 48%,#130c08f5);box-shadow:0 22px 60px #000d,inset 0 0 35px #0008,0 0 0 1px #0008;transform:translateY(16px) scale(.96);opacity:0}.turn-announcement-card:before{content:'';position:absolute;inset:0;background:linear-gradient(100deg,color-mix(in srgb,var(--turn-player) 18%,transparent),transparent 38%),repeating-linear-gradient(8deg,#fff0 0 13px,#fff1 14px,#fff0 15px);pointer-events:none}.turn-announcement.show .turn-announcement-card{animation:turn-banner-arrive .18s cubic-bezier(.18,.88,.28,1.08) forwards}.turn-announcement-piece{position:relative;z-index:1;width:72px;height:72px;margin:auto;display:grid;place-items:center;border:2px solid color-mix(in srgb,var(--turn-player) 75%,#fff);border-radius:50%;background:#0c0806;box-shadow:0 0 0 6px #0c080688,0 0 24px color-mix(in srgb,var(--turn-player) 55%,transparent)}.turn-announcement-piece i{position:relative;width:40px;height:42px;display:block;background:var(--turn-player);clip-path:polygon(50% 0,100% 32%,88% 32%,88% 100%,12% 100%,12% 32%,0 32%);filter:drop-shadow(0 3px 2px #000)}.turn-announcement-piece i:after{content:'';position:absolute;left:15px;bottom:0;width:11px;height:18px;background:#160e09}.turn-announcement-copy{position:relative;z-index:1;min-width:0;padding:18px 8px}.turn-announcement-copy small{display:block;color:#aa9674;font:800 8px Arial,sans-serif;letter-spacing:.2em}.turn-announcement-copy strong{display:block;margin:5px 0 7px;overflow:hidden;color:#f4e4bc;font:700 clamp(25px,5vw,40px)/1 Georgia,serif;text-overflow:ellipsis;white-space:nowrap;text-shadow:0 3px 3px #000}.turn-announcement-copy span{display:flex;align-items:center;gap:7px;color:color-mix(in srgb,var(--turn-player) 68%,#fff);font:900 9px Arial,sans-serif;letter-spacing:.18em}.turn-announcement-copy span i{width:26px;height:3px;background:var(--turn-player);box-shadow:0 0 8px var(--turn-player)}.turn-announcement-arrow{position:relative;z-index:1;color:var(--turn-player);font:400 40px/1 Georgia,serif;text-shadow:0 0 12px var(--turn-player);animation:turn-arrow-drift .55s ease-in-out infinite alternate}.turn-announcement-progress{position:absolute;left:50%;top:calc(50% + 69px);width:min(500px,calc(100vw - 52px));height:3px;overflow:hidden;border-radius:4px;transform:translateX(-50%);background:#ffffff14}.turn-announcement-progress:after{content:'';display:block;width:100%;height:100%;background:var(--turn-player);transform-origin:left;box-shadow:0 0 8px var(--turn-player)}.turn-announcement.show .turn-announcement-progress:after{animation:turn-banner-progress 1.8s linear forwards}@keyframes turn-banner-arrive{to{transform:translateY(0) scale(1);opacity:1}}@keyframes turn-arrow-drift{to{transform:translateX(7px)}}@keyframes turn-banner-progress{to{transform:scaleX(0)}}@media(max-width:560px){.turn-announcement-card{min-height:100px;grid-template-columns:78px minmax(0,1fr) 35px;border-left-width:5px}.turn-announcement-piece{width:53px;height:53px}.turn-announcement-piece i{width:29px;height:31px}.turn-announcement-piece i:after{left:11px;width:8px;height:13px}.turn-announcement-copy{padding:14px 4px}.turn-announcement-copy strong{font-size:clamp(22px,8vw,31px)}.turn-announcement-arrow{font-size:28px}.turn-announcement-progress{top:calc(50% + 56px)}}
