@import url('https://fonts.googleapis.com/css2?family=DM+Sans:wght@400;500;600;700&family=Space+Grotesk:wght@400;500;600;700&display=swap');
:root{font-family:'DM Sans',sans-serif;color:#eaf0ed;background:#0b202d;color-scheme:dark;font-size:15px;--gold:#f2be73;--muted:#a5bec6;--panel:#143342;--radius:14px;--shadow:0 12px 32px #030d182b}*{box-sizing:border-box}[hidden]{display:none!important}body{margin:0;min-height:100vh;background:#0b202d}button,select,input{font:inherit;color:inherit}button,select,input{border:1px solid #54748166;background:#203f4d;border-radius:8px;padding:10px 12px}button{cursor:pointer;transition:background .15s,transform .15s,border-color .15s}button:hover:not(:disabled){background:#2c5260;border-color:#8daaa8}button:active:not(:disabled){transform:translateY(1px)}button:disabled{opacity:.38;cursor:not-allowed}button:focus-visible,summary:focus-visible,select:focus-visible,input:focus-visible,[tabindex]:focus-visible{outline:3px solid var(--gold);outline-offset:3px}select{width:100%;min-height:44px}input{min-width:0}input[type=checkbox]{width:20px;height:20px;accent-color:var(--gold)}header{height:68px;display:flex;align-items:center;justify-content:space-between;padding:0 30px;border-bottom:1px solid #c2d7d512;background:#0d2431}.brand{display:flex;align-items:center;gap:11px;text-decoration:none;color:var(--gold);font:600 20px 'Space Grotesk',sans-serif;letter-spacing:.08em}nav{display:flex;gap:4px}nav button{border-color:transparent;background:transparent;font-size:13px;color:#bdd0d5}main{max-width:1600px;margin:0 auto;display:grid;grid-template-columns:minmax(0,1fr) 326px;align-items:start;gap:24px;padding:18px 28px 28px}.table{min-width:0}.board-tools{display:flex;align-items:center;justify-content:space-between;gap:10px;min-height:40px;font-size:11px;color:var(--muted);letter-spacing:.12em}.board-tools>div{display:flex;gap:6px}.board-tools button{font-size:11px;padding:8px 10px;background:transparent;letter-spacing:0}.goal{color:#b2b9a7;font-size:11px;letter-spacing:0;margin-left:14px}.board{display:grid;place-items:center;position:relative;background:radial-gradient(ellipse,#214a5360 0,transparent 69%);min-width:0}.board>svg{display:block;width:100%;height:auto;max-height:770px;overflow:visible}.hex{stroke:#122c39;stroke-width:4;stroke-linejoin:round}.tile{transition:filter .18s}.number-token>circle:first-of-type{stroke:#776f5233;stroke-width:1.5}.port{cursor:help;outline:none}.port-node{fill:none;stroke:#f4ca83;stroke-width:3;opacity:0;pointer-events:none}.port:hover .port-node,.port:focus .port-node{opacity:1}.port:hover rect,.port:focus rect{stroke:var(--gold)}.structure{filter:drop-shadow(0 2px 1px #071d2799)}.pick,.edgepick{cursor:pointer;outline:none}.node-hit{fill:transparent}.node-hint{fill:#f9e8bfa6;stroke:#fff5d6;stroke-width:1.8;filter:drop-shadow(0 0 4px #ffe8a477)}.edge-hit{stroke:transparent;stroke-width:22;stroke-linecap:round}.edge-hint{stroke:#f9e8bf88;stroke-width:6;stroke-linecap:round;pointer-events:none;filter:drop-shadow(0 0 3px #f7d88755)}.pick:hover .node-hint,.pick:focus .node-hint{r:10;fill:#f2be73;stroke:#fff1c5;stroke-width:3}.edgepick:hover .edge-hint,.edgepick:focus .edge-hint{stroke:#ffe1a0;stroke-width:9}.selectable{cursor:pointer}.selectable:hover .hex,.selectable:focus .hex{stroke:#ffd99b;stroke-width:5}.produced .hex{animation:produce 1.6s ease-out;stroke:#f3d490;stroke-width:5}.invalid{animation:invalid .45s ease-out}.prompt{background:#173847;padding:12px 16px;border-radius:10px;border-left:3px solid var(--gold);color:#e4e8d9;line-height:1.5;font-size:14px;margin:6px 0 12px}.panel{border:0;background:var(--panel);padding:20px;border-radius:var(--radius);box-shadow:var(--shadow);margin-bottom:14px}.panel p{line-height:1.6}h1,h2,h3{font-family:'Space Grotesk',sans-serif}h1{font-size:27px;margin:8px 0 24px}h2{font-size:23px;margin:8px 0 12px}h3{font-size:15px;font-weight:600;margin:0 0 14px}.eyebrow{font-size:10px;color:var(--muted);font-weight:700;letter-spacing:.14em}.subtle{font-size:12px;color:var(--muted);line-height:1.5}.section-heading{display:flex;align-items:center;justify-content:space-between;gap:8px;margin-bottom:14px}.section-heading h3{margin:0}.setup-panel{margin-top:40px;padding:24px}.setup-panel label,dialog>label{display:block;color:#bed0d5;font-size:13px;margin:18px 0 8px}.setting-row{display:flex;justify-content:space-between;align-items:center;gap:16px;margin:22px 0;font-size:13px}.setting-row strong{font-weight:500;color:#c9d5ce}.primary{background:var(--gold);border-color:transparent;color:#1b3037;font-weight:700}.primary:hover:not(:disabled){background:#f9d293;border-color:transparent}.wide{width:100%;margin-top:10px}.turn-player{display:flex;align-items:center;gap:12px}.avatar{height:36px;width:36px;flex:none;display:grid;place-items:center;border-radius:11px;color:#142e37;font:700 17px 'Space Grotesk',sans-serif;background:var(--seat)}.turn-player .avatar{height:44px;width:44px;font-size:20px}.turn-player h2{font-size:22px;margin:0 0 3px}.turn-state{font-size:12px;color:#c1d3d6}.turn-dot{margin-left:auto;width:7px;height:7px;background:var(--seat);border-radius:50%}.round-chip{font-size:11px;color:var(--muted)}.dice{display:flex;align-items:center;gap:10px;margin-top:22px;padding-top:17px;border-top:1px solid #aac2c315}.die{color:#1c3642;background:#efe9d6;width:43px;height:43px;border-radius:9px;padding:7px;box-shadow:0 3px 0 #8c948b}.die svg{width:100%;height:100%}.dice-plus{color:#91aeb6;font-size:15px}.dice-result{margin-left:auto;text-align:right;min-width:45px}.dice-result span{display:block;font-size:9px;letter-spacing:.13em;color:var(--muted)}.dice-result strong{font-family:'Space Grotesk',sans-serif;font-size:32px;line-height:1.1;color:#f3ce8b}.rolling .die{animation:dice-roll .16s linear infinite alternate}.rolling .die:nth-of-type(2){animation-delay:.06s}.roster{display:grid;gap:8px}.player{position:relative;display:flex;align-items:center;gap:10px;padding:10px;border-radius:10px;background:#0b253233;border-left:3px solid transparent}.player.active{background:#294852;border-left-color:var(--seat)}.player-info{min-width:0;flex:1}.player strong{font-size:13px;font-weight:600;display:block}.player small{display:block;font-size:10px;color:#afc6ce;margin-top:3px}.player .avatar{width:29px;height:29px;font-size:13px;border-radius:8px}.score{font:600 20px 'Space Grotesk',sans-serif;text-align:center}.score small{font-size:9px;line-height:1;margin:0}.badges{display:flex;flex-wrap:wrap;gap:4px;font-size:9px;color:#edcb86}.badges:empty{display:none}.badges span{margin-top:5px}.player>.gain-pop{position:absolute;right:0;top:-8px;background:#edcf91;color:#1b3437;font-size:13px;font-weight:bold;padding:3px 5px;border-radius:6px}.supply-resources{display:grid;grid-template-columns:repeat(5,1fr);gap:8px}.supply-resource{display:flex;flex-direction:column;align-items:center;gap:2px;font-size:10px;color:#b7c9ce}.supply-resource b{font-size:16px;color:#e8ece6;font-variant-numeric:tabular-nums}.resource-icon{width:38px;height:38px;flex:none;vertical-align:middle}.ui-icon{width:20px;height:20px;flex:none;vertical-align:middle}.resource-label{display:inline-flex;align-items:center;gap:3px;white-space:nowrap;vertical-align:middle}.resource-label .resource-icon{width:23px;height:23px}.game-dock{position:sticky;bottom:12px;z-index:10;background:#153541;border-radius:var(--radius);padding:14px 16px;box-shadow:0 8px 30px #04141e80;border-top:1px solid #547b8255}.hand-heading{display:flex;justify-content:space-between;align-items:center;margin-bottom:9px}.resources{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:8px}.resource{position:relative;display:flex;align-items:center;justify-content:center;gap:7px;background:#0d2936;border:0;padding:8px 7px;border-radius:9px}.resource:disabled{opacity:1;cursor:default}.resource span{font-size:11px;color:#bbccd0}.resource b{color:#f3eddb;font-size:24px;font-weight:600;font-variant-numeric:tabular-nums}.resource em{position:absolute;top:-6px;right:5px;font-size:11px;font-style:normal;color:#f3d38a}.resource .resource-icon{width:34px;height:34px}.action-bar{display:grid;grid-template-columns:1.15fr 1fr 1fr 1fr 1.15fr;gap:8px;margin-top:12px}.action-bar button{display:flex;align-items:center;justify-content:center;gap:7px;min-height:46px;font-size:13px;font-weight:600;padding:10px 5px}.action-bar small{font-size:10px;opacity:.8}.build-menu{position:absolute;bottom:calc(100% + 10px);left:16px;width:min(400px,calc(100% - 32px));max-height:min(520px,65vh);overflow:auto;background:#183b4a;box-shadow:var(--shadow);border:1px solid #5f7f8677;border-radius:14px;padding:16px;z-index:12}.build-menu .section-heading button{padding:3px 8px;background:transparent;border:0}.build-option{display:flex;align-items:center;gap:12px;width:100%;text-align:left;margin:6px 0;padding:12px;background:#102d3b;border:0}.build-option>.ui-icon{width:27px;height:27px;color:var(--gold)}.build-option strong{font-size:14px;font-weight:600}.build-cost{display:flex;flex-wrap:wrap;gap:2px 7px;margin-top:5px;font-size:11px;color:#bed0d4}.build-verb{margin-left:auto;font-size:11px;color:var(--gold)}.build-menu>p{margin-bottom:0}.phase-controls:not(:empty){padding:16px;background:#153746;border-radius:12px;margin-bottom:12px}.phase-controls p{line-height:1.8}.phase-controls>button{min-height:42px}.discard-grid{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:10px;margin:12px 0}.discard-grid label{display:flex;flex-direction:column;gap:6px;font-size:12px}.discard-grid small{color:var(--muted)}.discard-grid input{width:100%}.choice-row{display:flex;gap:9px;flex-wrap:wrap}.private-hand{display:flex;align-items:center;justify-content:space-between;gap:15px;padding:10px}.private-hand>span{font-size:13px}.victory h2{color:var(--gold)}.log-panel{padding:16px 20px}.log-panel summary{display:flex;align-items:center;justify-content:space-between;gap:8px;cursor:pointer;list-style:none;font:600 14px 'Space Grotesk',sans-serif}.log-panel summary::-webkit-details-marker{display:none}.log-panel summary:after{content:'+';color:var(--gold);font-size:20px}.log-panel[open] summary:after{content:'−'}.log-panel summary .subtle{margin-left:auto;font-size:10px;font-weight:400}.log-hint{font-size:10px;color:#92b0bc;margin:12px 0 4px}.log{max-height:170px;overflow:auto;overflow-anchor:none;overscroll-behavior:contain;scrollbar-gutter:stable;font-size:12px;color:#b8ccd2;line-height:1.5}.log>div{padding:9px 0;border-bottom:1px solid #b5c8ca12}.decision-label{display:block;font-size:9px;letter-spacing:.04em;color:#8aa8b4;margin-bottom:2px}.decision-label.model{color:#f0c584}.gain-pop{animation:gain-in .8s ease-out}.toast{position:fixed;bottom:180px;left:50%;transform:translateX(-50%);max-width:calc(100% - 32px);background:#edcf9c;color:#23383d;padding:12px 20px;border-radius:10px;box-shadow:var(--shadow);z-index:70;font-size:13px}.board-expanded{overflow:hidden}.board-stage.expanded{position:fixed;inset:0;z-index:40;padding:12px 18px;background:#0b202d;display:flex;flex-direction:column}.expanded .board-tools{flex:none}.expanded .board{display:block;overflow:auto;flex:1;touch-action:pan-x pan-y pinch-zoom}.expanded .board>svg{min-width:980px;width:100%;max-height:none}.expanded #status-toggle{display:none}.mobile-players,#status-toggle,.sheet-close{display:none}dialog{max-width:610px;width:calc(100% - 28px);max-height:88dvh;background:#143442;border:1px solid #5c7b8377;border-radius:16px;color:#edf1ed;padding:26px;box-shadow:0 25px 90px #0009}dialog::backdrop{background:#03131ed9}dialog h2{margin:0 0 20px;font-size:25px}dialog p,dialog li{line-height:1.65;color:#bed0d5;font-size:14px}dialog .close{float:right;border:0;background:transparent;padding:2px 8px;font-size:18px}dialog h3{margin-top:18px}dialog .setting-row{margin:22px 0}.handcard{display:flex;justify-content:space-between;gap:12px;align-items:center;background:#234654;padding:14px;margin:8px 0;border-radius:10px}.handcard small{display:block;color:var(--muted);font-size:11px;margin-top:5px}.trade-tabs{display:flex;gap:6px;margin:8px 0 22px}.trade-tabs button{flex:1;font-size:13px}.trade-tabs [aria-pressed=true]{background:#d5b375;color:#182e38;border-color:transparent}.trade-resources{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:7px}.trade-resources button{display:flex;flex-direction:column;align-items:center;gap:4px;padding:10px 3px;font-size:12px;background:#102c39}.trade-resources button small{font-size:9px;color:#a9c0c8}.trade-resources [aria-pressed=true]{border-color:var(--gold);background:#3f4e45;box-shadow:inset 0 0 0 1px var(--gold)}.trade-rate{padding:15px;background:#0e2c39;margin-top:18px;border-radius:10px}.trade-rate>div{margin:9px 0}.trade-rate small{font-size:12px;color:#b9cdd2}.trade-grid{display:grid;grid-template-columns:1.2fr 1fr 1fr;gap:10px;align-items:center;font-size:12px}.trade-grid input{width:100%}.trade-grid>b{font-size:11px;color:#a9c0c8}.hidden{display:none}@keyframes dice-roll{from{transform:rotate(-12deg) translateY(-3px)}to{transform:rotate(12deg) translateY(2px)}}@keyframes produce{0%,40%{filter:brightness(1.35)}100%{filter:brightness(1)}}@keyframes gain-in{0%{transform:translateY(8px);opacity:.35}100%{transform:translateY(0);opacity:1}}@keyframes invalid{0%,50%{filter:sepia(.5) saturate(2);opacity:.65}100%{opacity:1}}.reduce-motion *{animation:none!important;transition:none!important}@media(prefers-reduced-motion:reduce){*{animation:none!important;transition:none!important}}
@media(min-width:1400px){main{grid-template-columns:minmax(0,1fr) 350px;gap:30px;padding:20px 38px 30px}.board>svg{max-height:790px}.panel{padding:22px}.resource span{font-size:12px}.action-bar button{font-size:14px}}
@media(max-width:1100px) and (min-width:761px){main{grid-template-columns:minmax(0,1fr) 290px;gap:16px;padding:14px 18px 24px}.panel{padding:17px}.resource{gap:4px}.resource span{display:none}.action-bar button{flex-direction:column;gap:4px;font-size:11px}.goal{display:none}.game-dock{padding:12px}.board>svg{min-height:460px}}
@media(max-width:760px){header{height:58px;padding:0 13px}.brand{font-size:14px;gap:6px;letter-spacing:.045em}nav{gap:0}nav button{font-size:10px;padding:8px 6px}main{display:flex;flex-direction:column;padding:8px 8px 0;gap:8px}.table{width:100%}.board-tools{padding:0 5px;min-height:35px;font-size:9px}.board-tools button{font-size:10px;padding:6px 8px}.goal{display:none}.board>svg{width:100%;max-height:none;min-height:0}.board{margin:0 -5px}.prompt{font-size:12px;padding:9px 11px;margin:5px 3px 9px}.panel{border-radius:12px;padding:17px}.setup-panel{margin:0 3px 18px}.setup-panel h1{font-size:24px;margin-bottom:18px}aside{width:100%}.playing .mobile-players{display:flex;gap:5px;width:100%;overflow-x:auto;scrollbar-width:none;flex:none}.mobile-players:empty{display:none}.mobile-players .player{min-width:105px;flex:1;padding:7px 6px;gap:5px;border-left:0;border-top:2px solid transparent;border-radius:8px}.mobile-players .player.active{border-top-color:var(--seat)}.mobile-players .avatar{height:18px;width:18px;font-size:10px;border-radius:5px}.mobile-players .player strong{font-size:10px;white-space:nowrap}.mobile-players .player small{font-size:8px}.mobile-players .score{font-size:15px}.mobile-players .score small{font-size:7px}.playing #status-toggle{display:inline-block}.playing aside{display:none;position:fixed;bottom:0;left:0;right:0;z-index:55;max-height:80dvh;overflow-y:auto;overscroll-behavior:contain;border-radius:20px 20px 0 0;background:#0f2937;padding:14px 15px max(18px,env(safe-area-inset-bottom));box-shadow:0 -16px 60px #020f1bbb}.playing.status-open aside{display:block}.sheet-close{display:block;width:100%;margin-bottom:14px;background:#244653;border:0;min-height:44px}.status-open #sheet-backdrop{position:fixed;inset:0;background:#03131a99;z-index:50}.status-open{overflow:hidden}.game-dock{position:sticky;bottom:0;margin:0 -8px;padding:10px 10px max(10px,env(safe-area-inset-bottom));border-radius:14px 14px 0 0;background:#133442;box-shadow:0 -4px 24px #03182366}.hand-heading{margin-bottom:6px}.hand-heading .eyebrow{font-size:8px}.hand-heading .subtle{font-size:10px}.resources{gap:5px}.resource{padding:5px 3px;gap:4px}.resource .resource-icon{width:29px;height:29px}.resource span{display:none}.resource b{font-size:21px}.action-bar{gap:5px;margin-top:8px;grid-template-columns:repeat(5,minmax(0,1fr))}.action-bar button{flex-direction:column;gap:3px;font-size:10px;padding:7px 2px;min-height:49px}.action-bar .ui-icon{width:18px;height:18px}.action-bar small{font-size:8px}.build-menu{left:10px;width:calc(100% - 20px);padding:14px;max-height:60dvh}.phase-controls:not(:empty){padding:13px;margin:0 3px 10px}.discard-grid{gap:5px}.discard-grid .resource-label{flex-direction:column;font-size:10px}.discard-grid input{padding:8px 5px}.discard-grid small{font-size:10px}.choice-row{gap:6px}.choice-row button{font-size:12px}.private-hand{padding:5px}.private-hand>span{font-size:12px}.private-hand button{font-size:12px}.toast{bottom:165px;width:max-content;max-width:calc(100% - 24px)}dialog{padding:20px;max-height:90dvh}.trade-resources{gap:5px}.trade-resources button{font-size:10px}.trade-resources .resource-icon{width:33px;height:33px}.trade-resources button small{font-size:8px}.trade-grid{gap:7px;font-size:11px}.trade-grid .resource-label{gap:1px}.trade-grid .resource-icon{width:20px;height:20px}.expanded .board>svg{min-width:850px}.expanded .board-tools{padding:6px 0}.board-stage.expanded{padding:8px}.playing .table{padding-bottom:0}}

.edge-box{fill:transparent}.mobile-roll{display:none}@media(min-width:761px){.board>svg{max-height:740px}}@media(max-width:760px){.mobile-roll{display:inline-block;letter-spacing:0;margin-left:8px;color:#edcc90}}

#language{color:var(--gold)}html[lang=zh-CN] .brand{letter-spacing:.06em}html[lang=zh-CN] .resource span{font-size:12px}html[lang=zh-CN] .action-bar button{font-size:13px}@media(max-width:760px){header{flex-wrap:wrap;height:auto;min-height:58px;padding-top:8px;padding-bottom:8px;gap:4px}nav button{padding:7px 5px}html[lang=zh-CN] .action-bar button{font-size:11px}}

@media(max-width:760px){.playing main{min-height:calc(100dvh - 58px)}.playing .table{display:flex;flex-direction:column;flex:1}.playing .board-stage{flex:none}.playing .game-dock{margin-top:auto}.mobile-roll{display:inline-flex;align-items:center;gap:3px;vertical-align:middle}.mini-die.die{width:18px;height:18px;padding:2px;border-radius:4px;box-shadow:none}.mobile-players .player-info small{white-space:nowrap;font-size:7.5px}}
/* Resource-hand colors mirror the terrain palette while preserving text contrast. */
.resources .resource{background:color-mix(in srgb,var(--res) 48%,#0d2936);box-shadow:inset 0 3px 0 var(--res)}
.resources .resource:hover:not(:disabled){background:color-mix(in srgb,var(--res) 58%,#0d2936)}
.resources .resource span,.resources .resource b{color:#fff}
.piece-summary,.production-summary{display:flex;align-items:center;flex-wrap:wrap;gap:8px 14px;margin-bottom:8px;font-size:12px}.piece-summary b{color:var(--gold)}.piece-summary small{color:var(--muted)}.production-summary{padding:7px 10px;background:#0c2935;border-radius:8px}.production-summary button{margin-left:auto;padding:6px 9px;font-size:11px}.production-summary .resource-icon{width:22px;height:22px}.production-entry{border-bottom:1px solid #54748166;padding:8px 0}.production-entry p{display:flex;align-items:center;flex-wrap:wrap;gap:6px}.card-description{font-size:13px;line-height:1.6;max-width:390px;color:var(--muted);margin:8px 0}.handcard>span{min-width:0}.handcard>button{flex-shrink:0}.amount-stepper{display:grid;grid-template-columns:32px minmax(26px,1fr) 32px;align-items:center;min-width:0}.amount-stepper button{padding:6px 0;min-height:40px}.amount-stepper input{width:100%;padding:8px 0;text-align:center;appearance:textfield;-moz-appearance:textfield}.amount-stepper input::-webkit-inner-spin-button{appearance:none}.trade-grid{grid-template-columns:minmax(65px,1fr) minmax(94px,1fr) minmax(94px,1fr)}
@media(max-width:760px){.piece-summary,.production-summary{font-size:10px;gap:4px 8px}.piece-summary small{width:100%;font-size:9px}.production-summary .resource-label{font-size:10px}.production-summary button{font-size:10px}.card-description{font-size:12px}.trade-grid .resource-label{flex-wrap:wrap}}
.flying-resource{position:fixed;z-index:80;pointer-events:none;display:flex;align-items:center;gap:3px;padding:5px 8px;border:1px solid #f2be73;border-radius:12px;background:#153a48;box-shadow:0 4px 18px #03182388;color:#fff0d4}.flying-resource .resource-icon{width:30px;height:30px}.flying-resource b{font-size:15px}
.trade-held{display:block;color:var(--muted);font-size:11px;margin-top:3px}

/* A readable score ledger in both the sidebar and mobile status sheet. */
.vp-panel{border-color:#d5b37566}.vp-total{display:flex;align-items:center;justify-content:space-between;gap:12px;margin:16px 0 10px}.vp-total>strong{font-size:32px;color:var(--gold);white-space:nowrap}.vp-total strong small{font-size:14px;font-weight:400;color:var(--muted)}.vp-total>span{font-size:12px;color:var(--muted);text-align:right}.vp-progress{display:block;width:100%;height:7px;border:0;border-radius:6px;overflow:hidden;background:#0b2532;accent-color:var(--gold)}.vp-progress::-webkit-progress-bar{background:#0b2532}.vp-progress::-webkit-progress-value{background:var(--gold);border-radius:6px}.vp-progress::-moz-progress-bar{background:var(--gold)}.vp-breakdown{margin:14px 0 10px}.vp-row{display:flex;justify-content:space-between;align-items:center;gap:12px;padding:10px 0;border-bottom:1px solid #b5c8ca18}.vp-row dt{font-size:13px;min-width:0}.vp-row dt small{display:block;font-size:11px;color:var(--muted);margin-top:4px}.vp-row dd{margin:0;color:var(--gold);font-size:18px;font-weight:700;white-space:nowrap}.vp-row dd span{font-size:10px;font-weight:400}.vp-empty dd{color:var(--muted)}.vp-note{font-size:11px;line-height:1.5;color:var(--muted);margin:8px 0 0}

/* Main lobby navigation uses the same controls as the game header. */
nav{flex-wrap:wrap;align-items:center}nav a.back-lobby{display:inline-flex;align-items:center;gap:4px;min-height:40px;padding:8px 12px;border:1px solid #54748166;border-radius:8px;color:#bdd0d5;font-size:13px;text-decoration:none;white-space:nowrap}nav a.back-lobby:hover{background:#2c5260;border-color:#8daaa8}nav a.back-lobby:focus-visible{outline:3px solid var(--gold);outline-offset:3px}@media(max-width:760px){nav a.back-lobby{font-size:10px;padding:7px 6px}}

.player-honors{display:flex;flex-wrap:wrap;gap:4px 12px;margin-top:4px}.honor-stat,.honor-count,.honor-crown{display:inline-flex;align-items:center;gap:4px;vertical-align:middle;white-space:nowrap}.honor-stat{font-size:12px;color:var(--muted)}.honor-stat .ui-icon{width:16px;height:16px;flex:none}.honor-count b{font-variant-numeric:tabular-nums}.honor-crown{color:var(--gold)}.honor-crown .ui-icon{width:14px;height:14px;fill:#f2be7333}@media(max-width:760px){.mobile-players .player-honors{gap:3px 6px}.mobile-players .honor-stat{font-size:10px;gap:2px}.mobile-players .honor-count{gap:2px}.mobile-players .honor-stat .ui-icon{width:12px;height:12px}}

.avatar .cat-avatar{display:block;width:100%;height:100%;padding:2px;box-sizing:border-box}

/* Draw a separate outline after every tile so adjacent fills cannot cover it. */
.produced .hex{stroke:#122c39;stroke-width:4}
.production-outline{fill:none;stroke:#ffe1a0;stroke-width:5;stroke-linejoin:round;pointer-events:none;animation:produce 1.6s ease-out}
.piece-summary{gap:12px;margin-bottom:7px;font-size:11px}
.piece-summary>span{display:inline-flex;align-items:center;gap:4px}
.piece-summary .ui-icon{width:17px;height:17px}
.piece-summary button{margin-left:auto;padding:5px 8px;font-size:11px}
.secret-points{font-size:12px;color:var(--gold);margin-left:4px;white-space:nowrap}
.player-honors{align-items:center;gap:8px;margin-top:3px}
.player-honors>span{display:inline-flex;align-items:center;gap:3px;font-size:11px;color:var(--muted)}
.player-honors .ui-icon{width:14px;height:14px}
.vp-panel{padding:12px 16px}.vp-panel summary{display:flex;justify-content:space-between;align-items:center;gap:8px;cursor:pointer;font-size:13px}.vp-panel summary strong{color:var(--gold)}
.vp-compact{display:flex;flex-wrap:wrap;gap:12px;margin-top:12px;font-size:11px}.vp-compact>span{display:inline-flex;align-items:center;gap:4px}.vp-compact .ui-icon{width:16px;height:16px}
.history-actions{display:flex;gap:6px;margin-bottom:12px}.history-actions button{flex:1;font-size:12px;padding:8px}
.turn-panel{padding:14px 16px}.turn-panel .section-heading{margin-bottom:8px}.turn-player .avatar{width:32px;height:32px}.turn-player h2{font-size:18px}.turn-state{font-size:11px}.dice{margin-top:10px;padding-top:10px}.die{width:32px;height:32px;padding:5px}.dice-result strong{font-size:25px}
.roster-panel{padding:14px 16px}.roster-panel .section-heading{margin-bottom:8px}.roster{gap:5px}.player{padding:7px 8px}.player .avatar{width:25px;height:25px}.supply-panel{padding:12px 16px}.supply-panel h3{margin-bottom:8px}.supply-resource{flex-direction:row;gap:4px}.supply-resource .resource-icon{width:22px;height:22px}.supply-resource>span{display:none}.supply-resources{gap:4px}.supply-resource b{font-size:13px}
.game-dock{padding:9px 12px}.resource{padding:5px 7px}.resource .resource-icon{width:28px;height:28px}.resource b{font-size:21px}.action-bar{margin-top:7px}.action-bar button{min-height:39px;padding:7px 4px}
.resource-change{display:inline-flex}.resource-change.gain{color:#a9dcaa}.resource-change.loss{color:#ffb09b}.stolen-resource{border-color:#f18e78}
@media(min-width:761px){.playing .board-stage:not(.expanded) .board>svg{min-height:0;max-height:min(740px,calc(100dvh - 260px))}}
@media(max-width:760px){.mobile-players .avatar{display:none}.mobile-players .player{min-width:0;gap:3px;padding:5px}.mobile-players .player-honors{gap:3px 5px;flex-wrap:nowrap}.mobile-players .player-honors>span,.mobile-players .honor-stat{font-size:8px}.mobile-players .player-honors .ui-icon{width:10px;height:10px}.mobile-players .player strong{max-width:90px;overflow:hidden;text-overflow:ellipsis}.mobile-players .score{font-size:13px}.mobile-players .secret-points{font-size:9px;margin-left:2px}.game-dock{padding:7px 9px max(8px,env(safe-area-inset-bottom))}.piece-summary{gap:9px;margin-bottom:5px}.piece-summary button{font-size:10px;padding:4px 7px}.action-bar button{min-height:43px;font-size:10px;padding:5px 2px}.resource .resource-icon{width:25px;height:25px}.resource b{font-size:19px}.goal{display:none}}

/* Player cards use the same seat colors as their map pieces. */
.player{background:color-mix(in srgb,var(--seat) 27%,#102d3b);border:1px solid color-mix(in srgb,var(--seat) 65%,#102d3b);border-left:4px solid transparent}
.player.active{background:color-mix(in srgb,var(--seat) 38%,#102d3b);border-left-color:var(--seat);box-shadow:0 0 0 1px var(--seat)}
.player-info>strong{display:flex;align-items:center;gap:5px}
.player-color{width:9px;height:9px;border-radius:3px;background:var(--seat);box-shadow:0 0 0 1px #ffffff55;flex:none}
.player-honors .honor-stat{display:inline-flex}
.prompt.needs-action{border-color:var(--seat);background:color-mix(in srgb,var(--seat) 24%,#102e40);box-shadow:inset 0 0 0 1px color-mix(in srgb,var(--seat) 45%,transparent)}
.action-label{display:inline-block;font-size:10px;letter-spacing:.06em;text-transform:uppercase;padding:3px 6px;margin-right:8px;border-radius:5px;background:var(--seat);color:#10252e}
.prompt-action{padding:5px 10px;margin-left:10px;font-size:12px;background:#0a2637;border-color:var(--seat);font-weight:600;white-space:nowrap}
.trade-review h3{margin:12px 0 5px}.trade-review h3:first-child{margin-top:0}.trade-review p{font-size:12px;line-height:1.5;margin:6px 0}.trade-review button{margin:5px 8px 5px 0;font-size:12px}.trade-review .trade-dialogue{font-size:12px;margin:8px 0}
.discard-progress{display:flex;align-items:center;gap:10px;font-size:12px;color:var(--muted)}.discard-progress b{color:var(--gold);font-variant-numeric:tabular-nums}
.discard-resource{display:flex;flex-direction:column;gap:6px;min-width:0}.discard-resource small{font-size:11px;color:var(--muted)}
.discard-stepper{display:grid;grid-template-columns:32px minmax(20px,1fr) 32px;align-items:center;gap:3px}
.discard-stepper button{padding:6px 0;min-height:42px;font-size:20px;touch-action:manipulation}.discard-stepper output{text-align:center;font-size:19px;font-weight:700;font-variant-numeric:tabular-nums}
@media(max-width:760px){.mobile-players .player{display:grid;grid-template-columns:minmax(0,1fr) auto;padding:7px 5px;border-left:1px solid var(--seat);border-top:3px solid transparent}.mobile-players .player.active{border-top-color:var(--seat)}.mobile-players .player-honors{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:3px 6px}.mobile-players .player-honors .honor-stat{display:inline-flex}.mobile-players .player-honors>span{font-size:10px}.mobile-players .player-honors .ui-icon{width:12px;height:12px}.mobile-players .player-info>strong{font-size:10px;gap:3px}.mobile-players .player-color{width:6px;height:6px}.mobile-players .score{font-size:13px}.mobile-players .score .secret-points{display:block;margin:2px 0}.prompt-action{margin:6px 0 0;display:block}.discard-grid{grid-template-columns:repeat(5,minmax(0,1fr));gap:6px}.discard-resource>.resource-label{flex-direction:column;font-size:10px}.discard-stepper{grid-template-columns:1fr 1fr;gap:3px}.discard-stepper output{grid-column:1/-1;grid-row:1;font-size:20px}.discard-stepper button{min-height:40px;font-size:20px}.discard-resource small{font-size:10px}}

/* Full trade review UI remains a minimizable dialog. */
.trade-reaction{flex:none;border:1px solid var(--seat);background:#173847;border-radius:10px;padding:12px 16px;margin:0 0 12px}.trade-reaction h2{font-size:16px;margin:0 0 8px}.trade-reaction p{font-size:12px;line-height:1.5;margin:6px 0}.trade-reaction .trade-dialogue{font-size:12px;margin:6px 0}.trade-reaction .choice-row{margin-top:8px}
/* Both panels occupy space below the board, so scrolling reveals every hex. */
.playing .game-dock{position:relative;bottom:auto;margin-top:0}
.trade-reaction,.game-dock{scroll-margin-block:12px}
.trade-result-status,.trade-response-state{padding:10px 12px;border-radius:8px;border-left:4px solid;font-weight:700}.trade-result-status.accepted,.trade-response-state.accepted{color:#d7ffeb;background:#174b36;border-color:#51d58a}.trade-result-status.declined,.trade-response-state.declined{color:#ffe3df;background:#612f35;border-color:#ff756d}.trade-response-state.counter{color:#ffe9ba;background:#554324;border-color:#e8b968}.trade-response-state.waiting{color:var(--muted);border-color:#547481}
dialog.trade-result-dialog.trade-accepted{border-color:#51d58a}dialog.trade-result-dialog.trade-declined{border-color:#ff756d}
dialog.trade-review-dialog{width:min(680px,calc(100vw - 32px));max-width:680px;max-height:calc(100dvh - 32px);overflow:auto;padding:clamp(24px,5vw,44px);border:2px solid #e8af64;border-radius:22px;box-shadow:0 24px 90px #0009}dialog.trade-review-dialog::backdrop{background:#061522c9}dialog.trade-review-dialog h2{font-size:clamp(26px,5vw,36px);line-height:1.2;margin:14px 0}dialog.trade-review-dialog blockquote{font-size:clamp(22px,4vw,30px);line-height:1.5;margin:26px 0;padding:0;border:0;overflow-wrap:anywhere}dialog.trade-review-dialog .trade-review-dialog-terms{font-size:17px;line-height:1.5}dialog.trade-review-dialog button{min-height:52px;font-size:18px;margin-top:22px}

/* Full-game recap: tables scroll within the dialog on narrow screens. */
dialog:has(.game-report){max-width:920px}
.game-report h2{margin:8px 0 10px}.game-report h3{margin:24px 0 12px}.report-actions{display:flex;justify-content:flex-end;margin:12px 0 20px}.report-actions button{font-size:12px}.report-scroll{max-width:100%;overflow:auto;margin:16px 0;overscroll-behavior:contain;border:1px solid #aec8cf22;border-radius:10px}.report-table{width:100%;border-collapse:collapse;white-space:nowrap;font-size:12px;text-align:right;font-variant-numeric:tabular-nums}.report-table caption{text-align:left;padding:12px;background:#0d2936;font-weight:700;color:#efcf96}.report-table th,.report-table td{padding:11px 12px;border-bottom:1px solid #aec8cf14}.report-table thead th{color:#abc4ca;font-weight:500;background:#102e3c}.report-table th:first-child{text-align:left}.report-table tbody tr:last-child>*{border-bottom:0}.report-table tbody th{font-weight:500}.report-winner{display:inline-block;font-size:10px;background:#efc37e;color:#173340;padding:2px 6px;border-radius:4px;margin-left:6px}.report-metrics{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:8px;margin:14px 0}.report-metric{padding:12px 10px;background:#0d2936;border-radius:8px;min-width:0}.report-metric strong{display:block;font:600 23px 'Space Grotesk',sans-serif;color:#f3ce8b;overflow-wrap:anywhere}.report-metric>span{display:block;font-size:11px;line-height:1.4;color:#b7cbd0;margin-top:4px}.dice-histogram{display:grid;gap:7px;padding:14px 0}.dice-frequency{display:grid;grid-template-columns:22px minmax(30px,1fr) 34px 54px;align-items:center;gap:10px;font-size:12px;text-align:right;font-variant-numeric:tabular-nums}.dice-frequency>b{color:#c9dcd9}.dice-frequency-track{height:13px;border-radius:4px;background:#0b2734;overflow:hidden}.dice-frequency-track>span{display:block;height:100%;background:#65cecf;border-radius:4px}.dice-frequency.seven .dice-frequency-track>span{background:#f2be73}.dice-frequency small{color:#a5bec6}.report-player{border:1px solid #aec8cf33;border-radius:10px;margin:10px 0;overflow:hidden}.report-player>summary{display:flex;justify-content:space-between;align-items:center;gap:12px;cursor:pointer;padding:15px;font-weight:600;background:#1b3d4c;list-style:none}.report-player>summary>span:first-child:before{content:'＋';color:#f2be73;margin-right:8px}.report-player[open]>summary>span:first-child:before{content:'−'}.report-player>summary>span:first-child{overflow-wrap:anywhere;min-width:0}.report-player>summary>span:last-child{white-space:nowrap;color:#f3ce8b}.report-player-body{padding:0 14px 8px}.game-report .report-partial{border-left:3px solid #f2be73;background:#f2be7310;padding:12px;font-size:12px}.game-report>.subtle{font-size:11px}@media(max-width:600px){dialog:has(.game-report){padding:18px 14px}.report-metrics{grid-template-columns:repeat(2,minmax(0,1fr))}.report-table th,.report-table td{padding:10px}.report-player-body{padding:0 8px 4px}.report-metric strong{font-size:21px}}

/* Optional expansion-pack toggles in the Game Setup picker. */
.expansion-picker{margin:20px 0;padding:16px 0;border-top:1px solid #54748166;border-bottom:1px solid #54748166}.expansion-picker h3{margin:0}.expansion-pack-list{display:grid;gap:8px}.expansion-pack{display:flex!important;align-items:center;justify-content:space-between;gap:14px;padding:11px!important;background:#102e3b;border:1px solid #54748166;border-radius:9px;margin:0!important;cursor:pointer}.expansion-pack strong{display:block;font-size:14px}.expansion-pack small{display:block;color:var(--muted);font-size:12px;line-height:1.5;margin-top:3px}.expansion-pack input{flex-shrink:0}.expansion-pack:has(input:checked){border-color:var(--gold);background:#20434c}.expansion-picker [data-scenario-wrap]{margin-top:14px}.expansion-variants{display:grid;gap:8px;margin-top:12px}.expansion-variants label{display:flex!important;gap:9px;align-items:center;margin:0!important}.expansion-summary{color:#f2ce94;font-size:13px;line-height:1.5;margin:12px 0 0}.expansion-error{color:#ffc8b2;font-size:13px;background:#553a35;padding:10px;border-radius:7px}@media(max-width:600px){.expansion-pack strong{font-size:13px}.expansion-pack small{font-size:12px}}

/* Cities & Knights stays on the table instead of inside the mobile status sheet. */
.knights-overview{margin:10px 3px 14px;padding:14px 16px;border:1px solid #527580;border-radius:12px;background:#12313e;color:#dce7e6;font-size:12px}
.knights-heading,.knights-fleet>div:first-child,.knights-discipline>div:first-child,.knights-level{display:flex;align-items:center;justify-content:space-between;gap:8px}
.knights-heading{margin-bottom:10px}.knights-heading h3{margin:0;font-size:14px}.knights-heading>span{color:var(--gold);font-size:11px}
.knights-fleet b,.knights-personal b{font-variant-numeric:tabular-nums}.knights-track,.knights-level-track{display:flex;gap:4px;margin-top:6px}.knights-track i{height:7px;flex:1;border-radius:3px;background:#294b59}.knights-track i.filled{background:#eaa36f}
.knights-defense{display:flex;flex-wrap:wrap;gap:5px 14px;margin:8px 0 12px;font-size:11px}.knights-defense b{margin-left:3px}.knights-defense strong{margin-left:auto;color:#9cdbbd}.knights-defense.at-risk strong{color:#ffc096}
.knights-economy{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:8px}.knights-discipline{--discipline:#a1cca7;padding:9px 10px;border-radius:8px;background:#0b2532;border-top:3px solid var(--discipline)}.discipline-1{--discipline:#e4c577}.discipline-2{--discipline:#9bbde7}.knights-discipline>div:first-child>b{font-size:21px;line-height:1.2}.knights-level{margin-top:6px;font-size:11px;color:#bed0d5}.knights-level b{white-space:nowrap}.knights-level-track i{height:3px;flex:1;background:#294b59;border-radius:2px}.knights-level-track i.filled{background:var(--discipline)}
.knights-personal{display:flex;flex-wrap:wrap;gap:5px 16px;margin-top:10px;font-size:11px;color:#bed0d5}.knights-personal b{color:#f1e4c8;margin-left:3px}
@media(max-width:760px){.knights-overview{padding:10px;margin:6px 3px 10px}.knights-heading{margin-bottom:7px}.knights-heading h3{font-size:13px}.knights-economy{gap:5px}.knights-discipline{padding:7px}.knights-personal{gap:5px 12px}.knights-defense{gap:5px 9px;margin-bottom:8px}}
