:root{--lightningcss-light:initial;--lightningcss-dark: ;color-scheme:light;--bg:#e9f0ec;--panel:#fffaf0;--panel-strong:#f1e3ca;--ink:#182636;--muted:#627083;--line:#d4c1a3;--accent:#137f71;--accent-strong:#0b6159;--danger:#b42318;--water:#1e779b;--sand:#efd080;--shadow:0 18px 42px #2430402e;--shadow-soft:0 10px 22px #2430401f;font-family:Inter,ui-sans-serif,system-ui,-apple-system,BlinkMacSystemFont,Segoe UI,sans-serif}*{box-sizing:border-box}body{background:radial-gradient(circle at 12% 6%, #137f711a, transparent 28%), radial-gradient(circle at 92% 0%, #efd0802e, transparent 26%), linear-gradient(90deg, #ffffff73 1px, transparent 1px), linear-gradient(180deg, #ffffff5c 1px, transparent 1px), var(--bg);color:var(--ink);background-size:100% 100%,100% 100%,28px 28px,28px 28px,100% 100%;margin:0}button,select,input{border:1px solid var(--line);min-height:42px;color:var(--ink);font:inherit;background:linear-gradient(#ffffffc7,#fffaf0f0),#fffdf7;border-radius:8px;padding:0 12px;font-weight:700;transition:border-color .14s,box-shadow .14s,transform .14s,background .14s;box-shadow:inset 0 1px #ffffffeb}button,select{overflow-wrap:anywhere;white-space:normal;line-height:1.15}button:enabled{cursor:pointer}button:enabled:hover{border-color:var(--accent);transform:translateY(-1px);box-shadow:0 0 0 3px #137f711f,0 8px 18px #2430401a,inset 0 1px #ffffffeb}button:disabled{opacity:.45}.app-shell{grid-template-rows:minmax(0,1fr);height:100dvh;min-height:0;display:grid;overflow:hidden}.start-app{grid-template-rows:minmax(0,1fr);height:auto;min-height:100vh;overflow:auto}.start-screen{background:radial-gradient(circle at 50% 38%,#fffaf03d,#0000 28%),radial-gradient(circle at 22% 72%,#efd08052,#0000 24%),linear-gradient(135deg,#155477,#237fa0 50%,#efd080 50%,#d69e48);place-items:center;min-height:100vh;padding:24px;display:grid;position:relative;overflow:hidden}.start-screen:before{content:"";opacity:.42;background-color:#0000;background-image:linear-gradient(30deg,#ffffff1f 1px,#0000 1px),linear-gradient(150deg,#ffffff1a 1px,#0000 1px);background-position:0 0,0 0;background-repeat:repeat,repeat;background-size:42px 74px;background-attachment:scroll,scroll;background-origin:padding-box,padding-box;background-clip:border-box,border-box;position:absolute;inset:-18%;transform:rotate(-8deg)}.start-screen:after{content:"";pointer-events:none;background:radial-gradient(circle at 50% 45%,#0000 0 40%,#13263738 100%);position:absolute;inset:0}.start-panel{z-index:1;width:min(760px,100%);box-shadow:var(--shadow);-webkit-backdrop-filter:blur(14px);backdrop-filter:blur(14px);background:linear-gradient(#fffdf7f5,#fff6e5eb),#fffaf0f0;border:1px solid #fffaf0b8;border-radius:8px;gap:20px;padding:24px;display:grid;position:relative}.start-brand{flex-wrap:wrap;justify-content:space-between;align-items:end;gap:18px;min-width:0;display:flex}.start-brand h1{overflow-wrap:anywhere;min-width:0;margin:0;font-size:clamp(36px,7vw,68px);line-height:.95}.start-brand span{color:var(--accent-strong);text-transform:uppercase;overflow-wrap:anywhere;min-width:0;font-size:14px;font-weight:900}.match-menu{grid-template-columns:repeat(2,minmax(0,1fr));gap:14px;display:grid}.room-code-join{background:#fffdf7cc;border:1px solid #d8cbb5c7;border-radius:8px;grid-template-columns:auto minmax(120px,1fr) auto;align-items:center;gap:8px;padding:10px;display:grid}.room-code-join label{color:var(--muted);text-transform:uppercase;font-size:13px;font-weight:900}.room-code-join input{text-transform:uppercase;letter-spacing:0;width:100%;font-weight:900}.match-choice{text-align:center;background:radial-gradient(circle at 50% 22%,#137f711a,#0000 34%),linear-gradient(#fffdf7,#f7ecd6);align-content:center;justify-items:center;gap:10px;min-width:0;min-height:190px;padding:20px;display:grid;box-shadow:inset 0 1px #ffffffe6}.match-choice strong{overflow-wrap:anywhere;max-width:100%;font-size:24px}.match-choice span:last-child{color:var(--muted);overflow-wrap:anywhere;max-width:100%;font-weight:800}.match-cta{min-width:72px;min-height:30px;color:var(--accent-strong);text-transform:uppercase;background:#137f711a;border:1px solid #137f714d;border-radius:999px;justify-content:center;align-items:center;padding:0 14px;font-size:12px;font-weight:900;display:inline-flex}.match-art{justify-content:center;align-items:center;gap:8px;display:flex}.match-options{background:#fffdf7c7;border:1px solid #d8cbb5c7;border-radius:8px;gap:12px;padding:14px;display:grid}.option-row,.rule-toggle{flex-wrap:wrap;justify-content:space-between;align-items:center;gap:12px;min-width:0;display:flex}.option-row>span,.rule-toggle span{min-width:0;color:var(--muted);text-transform:uppercase;overflow-wrap:anywhere;font-size:13px;font-weight:900}.difficulty-options{flex:260px;grid-template-columns:repeat(3,minmax(74px,1fr));gap:6px;min-width:0;display:grid}.difficulty-options button{text-transform:capitalize;min-width:0;min-height:36px}.difficulty-options button.selected{border-color:var(--accent-strong);color:var(--accent-strong);background:#dff6ed}.rule-toggle{cursor:pointer;background:#fffdf7;border:1px solid #d8cbb5c7;border-radius:8px;justify-content:start;padding:8px 10px}.rule-toggle input{width:18px;height:18px;accent-color:var(--accent)}.start-error{color:var(--danger);margin:0;font-weight:800}.game-surface{grid-template-rows:auto minmax(0,1fr);height:100%;min-height:0;display:grid;overflow:hidden}.topbar{border-bottom:1px solid var(--line);-webkit-backdrop-filter:blur(10px);backdrop-filter:blur(10px);z-index:10;background:linear-gradient(#fffdf7fa,#faeed8f0);flex-wrap:wrap;justify-content:space-between;align-items:center;gap:16px;padding:12px 18px;display:flex;box-shadow:0 10px 24px #24304014}.brand-block{min-width:0}.brand-block h1{text-overflow:ellipsis;white-space:nowrap;margin:0;font-size:24px;line-height:1.05;overflow:hidden}.brand-block p{color:var(--muted);overflow-wrap:anywhere;margin:3px 0 0;font-weight:700}.phase-code{color:var(--accent-strong)}.topbar-actions,.replay-controls,.trade-actions{flex-wrap:wrap;align-items:center;gap:8px;min-width:0;display:flex}.board-layout{grid-template-columns:minmax(0,1fr) 360px;height:100%;min-height:0;display:grid;overflow:hidden}.lobby-app{grid-template-rows:minmax(0,1fr);height:auto;min-height:100vh;overflow:auto}.online-lobby{grid-template-rows:auto minmax(0,1fr);min-height:100vh;display:grid}.lobby-layout{grid-template-columns:minmax(320px,1fr) 380px;align-items:start;gap:18px;padding:18px;display:grid}.lobby-panel,.lobby-side{gap:12px;display:grid}.lobby-code-card,.lobby-status-card,.lobby-name-card{border:1px solid var(--line);box-shadow:var(--shadow-soft);background:linear-gradient(#fffdf7f5,#f6eddbeb);border-radius:8px;gap:8px;padding:18px;display:grid}.lobby-code-card span,.lobby-status-card span,.lobby-name-card label{color:var(--muted);text-transform:uppercase;font-size:12px;font-weight:900}.lobby-code-card strong{letter-spacing:0;overflow-wrap:anywhere;font-size:clamp(36px,9vw,72px);line-height:.95}.lobby-status-card strong{overflow-wrap:anywhere;font-size:22px;line-height:1.14}.lobby-status-card small,.lobby-status-card em{min-width:0;color:var(--muted);overflow-wrap:anywhere;font-style:normal;font-weight:800}.lobby-status-card em{color:var(--danger)}.lobby-name-card>div{grid-template-columns:minmax(0,1fr) auto;gap:8px;display:grid}.lobby-name-card input{border:1px solid var(--line);min-width:0;height:42px;color:var(--ink);font:inherit;background:#fffdf7f0;border-radius:8px;padding:0 12px;font-weight:900}.lobby-actions{grid-template-columns:repeat(auto-fit,minmax(92px,1fr));gap:8px;display:grid}.lobby-actions button:first-child{border-color:var(--accent-strong);color:var(--accent-strong);background:#dff6ed}.primary-lobby-action{color:#fffaf0;background:#0f766e;border-color:#0f766e}.lobby-seats{gap:8px;display:grid}.lobby-seat{background:#fffdf7d1;border:1px solid #d8cbb5c7;border-radius:8px;grid-template-columns:auto minmax(0,1fr) minmax(68px,auto);align-items:center;gap:10px;min-width:0;padding:10px 12px;display:grid}.lobby-seat strong{text-overflow:ellipsis;white-space:nowrap;min-width:0;overflow:hidden}.lobby-seat.you{border-color:var(--accent);box-shadow:0 0 0 3px #137f711a}.lobby-seat.ready small{color:var(--accent-strong)}.lobby-seat.closed{opacity:.72;background:#e8e0cf75;border-style:dashed}.lobby-seat span,.lobby-seat small,.lobby-rules span{min-width:0;color:var(--muted);text-transform:uppercase;overflow-wrap:anywhere;font-size:12px;font-weight:900}.lobby-rules{flex-wrap:wrap;gap:8px;display:flex}.lobby-rules span{background:#fffdf7cc;border:1px solid #d8cbb5c7;border-radius:999px;padding:6px 8px}.lobby-settings{gap:8px;min-width:0;margin-top:12px;display:grid}.lobby-bot-controls{grid-template-columns:minmax(40px,auto) repeat(2,minmax(88px,1fr));align-items:center;gap:6px;min-width:0;display:grid}.lobby-bot-controls strong{min-width:38px;color:var(--ink);font-size:14px}.lobby-bot-controls button{min-width:0}.lobby-settings .option-row,.lobby-settings .rule-toggle{background:#fffdf7c7}.board-stage{background:radial-gradient(circle at 45% 42%,#70c4d057,#0000 34%),linear-gradient(90deg,#08354c2e,#0000 24% 76%,#08354c29),#1e779b;height:100%;min-height:0;position:relative;overflow:hidden}.board-stage:before{content:"";opacity:.32;pointer-events:none;background:linear-gradient(115deg,#ffffff1c 1px,#0000 1px) 0 0/54px 54px,linear-gradient(25deg,#ffffff0f 1px,#0000 1px) 0 0/72px 72px;position:absolute;inset:0}.board-stage:after{content:"";pointer-events:none;background:radial-gradient(circle at 50% 43%,#0000 0 38%,#0a2d4014 54%,#0a2d4042 100%);position:absolute;inset:0}.board{z-index:1;touch-action:manipulation;-webkit-user-select:none;user-select:none;-webkit-touch-callout:none;-webkit-tap-highlight-color:transparent;width:100%;height:100%;display:block;position:relative}.board *{-webkit-user-select:none;user-select:none;-webkit-tap-highlight-color:transparent}.board [role=button],.board [tabindex]{outline:none}.ocean{fill:url(#oceanGlow)}.shore-shelf{stroke:#6fd3e15c;stroke-width:.56px;stroke-linecap:round;opacity:.72;filter:drop-shadow(0 0 .11px #e8fcff99)}.shore-foam{stroke:#fffce8c2;stroke-width:.42px;stroke-linecap:round;opacity:.7}.shore-edge{stroke:var(--sand);stroke-width:.28px;stroke-linecap:round;opacity:.96}.hex-bed{fill:#ffeeb0ad;stroke:#f6de98eb;stroke-width:.2px}.hex{stroke:#4b361e85;stroke-width:.045px}.hex-timber{fill:url(#terrainTimber)}.hex-brick{fill:url(#terrainBrick)}.hex-grain{fill:url(#terrainGrain)}.hex-fiber{fill:url(#terrainFiber)}.hex-ore{fill:url(#terrainOre)}.hex-desert{fill:url(#terrainDesert)}.hex-texture,.hex-inner-shine{pointer-events:none}.hex-texture{opacity:.2;mix-blend-mode:multiply}.texture-timber{fill:url(#textureTimber)}.texture-brick{fill:url(#textureBrick);opacity:.24}.texture-grain{fill:url(#textureGrain);opacity:.3}.texture-fiber{fill:url(#textureFiber);opacity:.28}.texture-ore{fill:url(#textureOre);opacity:.28}.texture-desert{fill:url(#textureDesert);opacity:.3}.hex-inner-shine{fill:#0000;stroke:#ffffff3d;stroke-width:.018px}.legal-thief-hex{cursor:pointer;pointer-events:all}.thief-tile-hit-target{fill:#0000;stroke:#0000;pointer-events:all}.legal-thief-target{pointer-events:none;fill:#0000;stroke:#fffce8e6;stroke-width:.04px;stroke-linecap:round;stroke-linejoin:round;filter:drop-shadow(0 0 .1px #fff7bfb8)drop-shadow(0 0 .16px #2dd4bf7a)}.legal-thief-target circle:first-child{fill:#125f6957;stroke:#67e8f9c7}.legal-thief-target circle:nth-child(2){stroke:#ffe89ceb}.selected-thief-hex .legal-thief-target circle:first-child{fill:#fff27a61;stroke:#fff27af5}.selected-thief-hex .hex-inner-shine{stroke:#fff27ab8;stroke-width:.04px}.robber-victim-count-badge{pointer-events:none;filter:drop-shadow(0 .04px .04px #11182766)drop-shadow(0 0 .1px #fffaf06b);outline:none}.robber-victim-count-badge circle{fill:#3d9f8c;stroke:#fffdf7;stroke-width:.035px}.robber-victim-count-badge text{fill:#fffdf7;text-anchor:middle;paint-order:stroke;stroke:#11182757;stroke-width:.018px;font-size:.16px;font-weight:900}.thief-marker{pointer-events:none;filter:drop-shadow(0 .06px .04px #11182773)drop-shadow(0 0 .12px #fffaf066)}.robber-badge{fill:#fffdf7eb;stroke:#137f7180;stroke-width:.026px}.robber-hood,.robber-shoulders{fill:#182636;stroke:#fffdf7;stroke-width:.035px}.robber-face-opening{fill:#fffdf7;stroke:#1826365c;stroke-width:.012px}.robber-eye{fill:#182636}.robber-mouth,.robber-scarf{fill:none;stroke:#fffdf7;stroke-width:.028px;stroke-linecap:round}.board-icon,.token,.dead-tile-label,.port-badge{pointer-events:none}.board-icon{opacity:.82;filter:drop-shadow(0 .04px .03px #1d263238)}.icon-fill{stroke:#1d26323d;stroke-width:4px;stroke-linejoin:round}.icon-stroke{fill:none;stroke:#1d2632ad;stroke-width:7px;stroke-linecap:round;stroke-linejoin:round}.timber-leaf{fill:#2f7d34}.timber-trunk{stroke:#6f5036}.brick-clay{fill:#ba5b4d}.grain-stem{stroke:#91691f}.grain-head{fill:#f0c64d}.fiber-body{fill:#f7f4e8}.fiber-head{fill:#efe7d5}.fiber-leg{stroke:#6f6558}.ore-rock{fill:#b6c7c2}.ore-vein{stroke:#647476}.desert-sand{fill:#d2ba77}.cactus{stroke:#5e7d45}.desert-mark{stroke:#9a7c48}.piece-symbol{width:58px;height:58px;color:var(--accent);filter:drop-shadow(0 5px 7px #1d26322e);overflow:visible}.house-symbol{color:#c8493f}.city-symbol{color:#1e62c9}.road-symbol{color:#8f5f2b}.house-roof,.house-body,.house-tower,.road-bed{fill:currentColor;stroke:#fffaf0;stroke-width:7px;stroke-linejoin:round}.house-door{fill:#1d26325c}.road-shine{fill:none;stroke:#fffaf0b8;stroke-width:7px;stroke-linecap:round}.token circle{fill:#fffdf7f5;stroke:#4430198c;stroke-width:.03px;filter:drop-shadow(0 .04px .04px #231f1847)}.token text{text-anchor:middle;fill:#17351f;font-size:.23px;font-weight:900}.token-6 text,.token-8 text{fill:#b42318}.dead-tile-label{text-anchor:middle;fill:#5f5137;paint-order:stroke;stroke:#fffaf0b8;stroke-width:.025px;font-size:.14px;font-weight:900}.port-pier,.port-badge-tether{stroke:#a86f2e;stroke-width:.09px;stroke-linecap:round;stroke-dasharray:.08 .055;stroke-linejoin:round;fill:none;pointer-events:none;filter:drop-shadow(0 .035px .025px #432c1552)}.port-badge-tether{stroke-width:.06px;stroke-dasharray:none;opacity:.72}.port-vertex-marker{fill:#fff4ba80;stroke:#8d642f;stroke-width:.045px;pointer-events:none;filter:drop-shadow(0 0 .08px #ffe17ac7)}.port.owned .port-pier,.port.owned .port-badge-tether,.port.owned .port-vertex-marker{stroke:var(--accent-strong)}.port-badge circle{fill:#fffaf0fa;stroke:#695b48;stroke-width:.035px;filter:drop-shadow(0 .04px .04px #1d263238)}.port.owned .port-badge circle{stroke:var(--accent-strong);stroke-width:.055px}.port-anchor,.port-ratio{text-anchor:middle;fill:#25313f;font-weight:900}.port-anchor{font-size:.2px}.port-ratio{font-size:.1px}.edge{stroke:#342b1e42;stroke-width:.09px;stroke-linecap:round;pointer-events:none}.edge-build-control{cursor:pointer;pointer-events:all;-webkit-tap-highlight-color:transparent;outline:none}.edge-build-control:focus{outline:none}.edge-build-target{fill:#9c642699;stroke:#5e3919f2;stroke-width:.035px;cursor:pointer;pointer-events:all;filter:drop-shadow(0 0 .05px #8f5b23ad);-webkit-tap-highlight-color:transparent;transform-box:fill-box;transform-origin:50%;-webkit-user-select:none;user-select:none;outline:none;animation:1.35s ease-in-out infinite road-edge-placement-pulse}.edge-build-control:focus-visible .edge-build-target{fill:#bc7a31b3;stroke:#fff0bf;filter:drop-shadow(0 0 .12px #8f5b23);outline:none}.edge-build-target.selected{fill:#bc7a31b8;stroke:#f97316}.road-piece.preview{opacity:.7;filter:drop-shadow(0 0 .1px #fff27abd)drop-shadow(0 .04px .04px #1d26323d)}.edge.owned{stroke-width:.16px}.edge.selected{stroke:#f97316}.road-piece{pointer-events:none;color:#172033;filter:drop-shadow(0 .045px .035px #1d263280)drop-shadow(0 0 .03px #fffaf061)}.road-piece rect{fill:currentColor;stroke:#fffaf0;stroke-width:.035px}.road-piece path{fill:none;stroke:#fffaf094;stroke-width:.025px;stroke-linecap:round}.road-piece.selected rect{stroke:#f97316;stroke-width:.055px}.vertex{fill:#fffcf2d9;stroke:#1a2634b8;stroke-width:.035px;pointer-events:none;filter:drop-shadow(0 .025px .025px #1e1e183d)}.vertex-target{pointer-events:none;-webkit-tap-highlight-color:transparent;outline:none}.vertex-target.legal-target{cursor:pointer;pointer-events:all}.vertex-hit{fill:#0000;stroke:#0000;stroke-width:0;pointer-events:none;-webkit-tap-highlight-color:transparent}.vertex-target.legal-target .vertex-hit{pointer-events:all}.vertex-target:focus,.vertex-hit:focus{outline:none}.vertex-target:focus-visible .vertex{fill:#fffdf729;stroke:#fffdf7;stroke-width:.055px;filter:drop-shadow(0 0 .08px #0f6d61f2);outline:none}.vertex-target:focus-visible .house-roof,.vertex-target:focus-visible .house-body,.vertex-target:focus-visible .house-tower{stroke:#fff27a}.vertex.legal{fill:#d7fb80;stroke:#315f2c;filter:drop-shadow(0 0 5px #d7fb80e6);transform-box:fill-box;transform-origin:50%;animation:1.45s ease-in-out infinite placement-target-pulse}.vertex.owned{stroke:#fffaf0;stroke-width:.045px}.vertex.selected{stroke:#f97316;stroke-width:.06px}.building{pointer-events:none;filter:drop-shadow(0 .045px .035px #1d26326b)drop-shadow(0 0 .035px #fffaf070)}.house-piece .house-roof,.house-piece .house-body,.house-piece .house-tower{fill:currentColor;stroke:#fffaf0;stroke-width:.035px;stroke-linejoin:round}.house-piece .house-door{fill:#1d26326b}.building.legal{filter:drop-shadow(0 0 5px #fff27af2)}.building.pending{opacity:.96;filter:drop-shadow(0 0 .12px #fff27af2)}.building.legal .house-piece,.building.pending .house-piece{transform-box:fill-box;transform-origin:50%;animation:1.45s ease-in-out infinite placement-building-pulse}.building.legal .house-roof,.building.legal .house-body,.building.legal .house-tower,.building.pending .house-roof,.building.pending .house-body,.building.pending .house-tower{stroke:#fff27a}.building.selected .house-roof,.building.selected .house-body,.building.selected .house-tower{stroke:#f97316}.dice-panel{box-shadow:var(--shadow);z-index:3;min-height:0;color:var(--ink);background:linear-gradient(#fffdf7f7,#e7f4f0f0);border:1px solid #363e483d;border-radius:8px;justify-items:center;gap:6px;padding:10px 12px;display:grid;position:absolute;bottom:124px;right:18px}.dice-pair{gap:8px;display:flex}.die-face{aspect-ratio:1;background:radial-gradient(circle at 30% 24%,#fff,#0000 34%),linear-gradient(145deg,#fff,#cfdbd8);border:2px solid #182636;border-radius:8px;grid-template-rows:repeat(3,1fr);grid-template-columns:repeat(3,1fr);width:54px;padding:8px;display:grid;box-shadow:inset 0 0 8px #1d26321f,0 5px 12px #1d263229}.pip{border-radius:50%;place-self:center;width:9px;height:9px}.pip.visible{background:#1d2632}.dice-panel strong{font-size:14px}.dice-panel span{color:var(--muted);font-size:12px;font-weight:900}.dice-panel.rolling .die-face{animation:.82s cubic-bezier(.2,.8,.2,1) dice-roll}.board-action-bar{-webkit-backdrop-filter:none;backdrop-filter:none;z-index:4;background-color:#efe2ca;background-image:none;border:1px solid #fffaf0b8;border-radius:8px;grid-template-columns:repeat(6,minmax(0,1fr));gap:6px;width:min(500px,100% - 390px);min-width:380px;padding:6px;display:grid;position:absolute;bottom:14px;right:14px;box-shadow:0 12px 26px #2430402e,inset 0 0 0 1px #fffaf0ad}.board-action{border-color:var(--action-border,#d4c1a3c7);background-color:var(--action-bg,#fffdf7);min-width:0;min-height:68px;color:var(--action-fg,#1d2632);background-image:none;place-items:center;gap:2px;padding:5px 4px 4px;display:grid;position:relative;overflow:visible;box-shadow:inset 0 0 0 1px #fffaf0b8,0 2px 4px #24304014}.board-action:before{content:"";background:var(--action-accent,var(--accent));opacity:1;pointer-events:none;border-radius:7px 7px 0 0;height:4px;position:absolute;inset:0 0 auto}.board-action:enabled:hover{border-color:var(--action-hover-border,var(--accent));box-shadow:0 0 0 3px var(--action-focus,#137f711f), 0 8px 18px #2430401a, inset 0 0 0 1px #fffaf0b8;background-color:var(--action-hover-bg,var(--action-bg,#fffdf7))}.board-action:disabled{opacity:.68;filter:none;color:#69717c;background-color:#e8dfd0;border-color:#c9b99e}.board-action:disabled:before{background:#a99d8d}.trade-action{--action-fg:#503814;--action-bg:#f5cf75;--action-hover-bg:#f8d989;--action-border:#c58d2b;--action-accent:#9a6416;--action-hover-border:#b9821f;--action-focus:#bd86202e}.special-action{--action-fg:#42319b;--action-bg:#d8cffd;--action-hover-bg:#e2dbff;--action-border:#8b7ce9;--action-accent:#6c5ce7;--action-hover-border:#6c5ce7;--action-focus:#6c5ce729}.road-action{--action-fg:#563711;--action-bg:#dcae6c;--action-hover-bg:#e5bd82;--action-border:#9d6b2d;--action-accent:#80521f;--action-hover-border:#8f5f2b;--action-focus:#8f5f2b29}.settlement-action{--action-fg:#064f48;--action-bg:#9edac5;--action-hover-bg:#afe4d2;--action-border:#399983;--action-accent:#137f71;--action-hover-border:#137f71;--action-focus:#137f7129}.city-action{--action-fg:#1f4c91;--action-bg:#b7d1ef;--action-hover-bg:#c6dcf5;--action-border:#5d8ccc;--action-accent:#2f66bd;--action-hover-border:#2f66bd;--action-focus:#2f66bd26}.end-action{--action-fg:#164f4a;--action-bg:#b7d9cf;--action-hover-bg:#c5e3db;--action-border:#6fa99a;--action-accent:#137f71;--action-hover-border:#137f71;--action-focus:#137f7124}.board-action[data-tooltip]:after{content:attr(data-tooltip);z-index:12;color:#fffaf0;text-align:left;white-space:normal;opacity:0;pointer-events:none;background:#1d2632f0;border:1px solid #fffaf03d;border-radius:6px;width:max-content;max-width:230px;padding:7px 9px;font-size:11px;font-weight:800;line-height:1.25;transition:opacity .14s,transform .14s;position:absolute;bottom:calc(100% + 8px);left:50%;transform:translate(-50%,4px);box-shadow:0 10px 24px #0c141c38}.board-action[data-tooltip]:hover:after,.board-action[data-tooltip]:focus-visible:after{opacity:1;transform:translate(-50%)}.board-action.selected{border-color:var(--action-hover-border,var(--accent-strong));background-color:var(--action-hover-bg,var(--action-bg,#fffdf7));color:var(--action-fg,var(--accent-strong));box-shadow:0 0 0 3px var(--action-focus,#137f7124), inset 0 0 0 2px var(--action-accent,var(--accent-strong)), 0 8px 18px #2430401a;background-image:none}.board-action span{overflow-wrap:anywhere;text-align:center;white-space:normal;max-width:100%;font-size:10px;line-height:1.05;display:block;overflow:hidden}.board-action small{color:#fffaf0;text-overflow:ellipsis;background:#1d2632d1;border-radius:999px;min-width:18px;max-width:calc(100% - 6px);padding:1px 4px;font-size:11px;font-weight:900;line-height:1.1;position:absolute;top:3px;right:3px;overflow:hidden}.board-action .piece-symbol,.action-symbol{filter:drop-shadow(0 4px 5px #1d26322e);width:32px;height:32px}.board-action .piece-symbol{color:currentColor}.symbol-card{fill:#fffaf0;stroke:currentColor;stroke-width:6px;stroke-linejoin:round}.card-a{color:#c96248}.card-b{color:#e8bf3f}.special-card{color:#6c5ce7}.symbol-stroke{fill:none;stroke:currentColor;stroke-width:8px;stroke-linecap:round;stroke-linejoin:round}.symbol-star,.symbol-fill{fill:currentColor}.waiting-symbol{color:#8f5f2b}.end-arrow{color:var(--accent-strong)}@keyframes dice-roll{0%{transform:rotate(0)translateY(0)}25%{transform:rotate(18deg)translateY(-8px)}50%{transform:rotate(-14deg)translateY(3px)}75%{transform:rotate(9deg)translateY(-4px)}to{transform:rotate(0)translateY(0)}}@keyframes placement-target-pulse{0%,to{filter:drop-shadow(0 0 .03px #0f6d616b);opacity:.68;transform:scale(.92)}42%{filter:drop-shadow(0 0 .13px #fff27afa);opacity:.98;transform:scale(1.24)}68%{filter:drop-shadow(0 0 .08px #0f6d61d1);opacity:.84;transform:scale(1.08)}}@keyframes road-edge-placement-pulse{0%,to{stroke-width:.028px;filter:drop-shadow(0 0 .035px #69411c85);opacity:.62}45%{stroke-width:.07px;filter:drop-shadow(0 0 .14px #bc7a31);opacity:.98}72%{stroke-width:.047px;filter:drop-shadow(0 0 .085px #8f5b23db);opacity:.82}}@keyframes placement-building-pulse{0%,to{filter:drop-shadow(0 0 3px #fff27a8a);transform:scale(.96)}45%{filter:drop-shadow(0 0 8px #fff27a);transform:scale(1.13)}72%{filter:drop-shadow(0 0 5px #0f6d61d1);transform:scale(1.04)}}.action-dock{color:#fffaf0;max-width:min(340px,100% - 36px);box-shadow:var(--shadow);-webkit-backdrop-filter:blur(10px);backdrop-filter:blur(10px);z-index:2;background:linear-gradient(135deg,#182636e0,#174e59c2);border:1px solid #fffaf0b8;border-radius:8px;gap:3px;padding:12px 14px;display:grid;position:absolute;top:18px;left:18px}.action-dock span{text-transform:uppercase;font-size:12px;font-weight:900}.action-dock strong{font-size:14px;line-height:1.25}.action-dock em{color:#ffd0c8;font-style:normal;font-weight:800}.hand-rack{width:456px;min-width:0;box-shadow:var(--shadow);z-index:3;-webkit-backdrop-filter:blur(8px);backdrop-filter:blur(8px);background:linear-gradient(#fffdf7e6,#eff5f0db);border:1px solid #fffaf0b8;border-radius:8px;flex-wrap:wrap;align-items:center;gap:5px;padding:6px;display:flex;position:absolute;bottom:14px;left:14px;right:auto;overflow:visible}.resource-hand,.dev-hand{flex-wrap:wrap;align-items:center;gap:5px;min-width:0;display:flex}.resource-hand{flex:none}.dev-hand{border-left:1px solid #d4c1a39e;flex:130px;padding-left:6px}.hand-rack .resource-card.compact{width:44px;min-width:44px;height:50px}.resource-card{color:#172033;border:2px solid #1d263238;border-radius:8px;align-content:center;justify-items:center;gap:3px;width:64px;min-width:64px;height:74px;font-weight:900;display:grid;position:relative;overflow:hidden;box-shadow:inset 0 0 0 2px #ffffff47,0 6px 13px #2430401f}.resource-card:before{content:"";pointer-events:none;background:radial-gradient(circle at 32% 16%,#ffffff7a,#0000 28%),linear-gradient(145deg,#fff3,#0000 52%,#00000014);position:absolute;inset:0}button.resource-card{text-align:center;min-height:0;padding:0}.resource-card-button{transition:transform .14s,border-color .14s,box-shadow .14s}.resource-card-button:enabled:hover{border-color:#fffaf0;transform:translateY(-2px);box-shadow:0 8px 18px #1d263233,inset 0 0 0 2px #ffffff47}.resource-card.selected{border-color:#fff27a;box-shadow:0 0 0 3px #fff27a6b,inset 0 0 0 2px #ffffff47}.resource-selected-count{z-index:2;color:#fffdf7;background:#182636db;border-radius:999px;min-width:24px;padding:1px 5px;font-size:12px;font-weight:900;line-height:1.2;position:absolute;top:4px;right:4px}.resource-card.compact{border-width:1px;gap:0;width:48px;min-width:48px;height:52px}.resource-card-timber{background:linear-gradient(160deg,#70be54,#2f8f45)}.resource-card-brick{background:linear-gradient(160deg,#da7564,#a9443a)}.resource-card-grain{background:linear-gradient(160deg,#f4d76a,#ca951f)}.resource-card-fiber{background:linear-gradient(160deg,#b8db62,#6fa73b)}.resource-card-ore{background:linear-gradient(160deg,#d1dfd8,#8aa19f)}.resource-icon{z-index:1;width:32px;height:32px;display:block;position:relative}.resource-card.compact .resource-icon{width:28px;height:28px}.hand-rack .resource-card.compact .resource-icon{width:25px;height:25px}.resource-count{z-index:1;text-align:center;background:#fffaf0e0;border-radius:999px;min-width:24px;padding:1px 6px;position:relative}.resource-name{z-index:1;color:#172033db;text-overflow:ellipsis;white-space:nowrap;max-width:100%;font-size:10px;line-height:1;position:relative;overflow:hidden}.resource-card.compact .resource-name{clip-path:inset(50%);white-space:nowrap;width:1px;height:1px;position:absolute;overflow:hidden}.side-panel{border-left:1px solid var(--line);background:linear-gradient(#fffaf0fa,#f1e8d6fa);flex-direction:column;gap:10px;min-width:0;min-height:0;max-height:100%;padding:10px;display:flex;overflow:hidden}.phase-card,.trade-panel,.game-log-panel,.player{border:1px solid var(--line);min-width:0;box-shadow:var(--shadow-soft);background:linear-gradient(#ffffff80,#0000 52%),#fffdf7;border-radius:8px;margin-bottom:0;padding:10px}.phase-card,.player{gap:4px;display:grid}.phase-card strong{overflow-wrap:anywhere;min-width:0;font-size:17px;line-height:1.15}.room-share{background:#ecfdf594;border:1px solid #1f6b6038;border-radius:8px;grid-template-columns:minmax(0,1fr) auto;align-items:center;gap:4px 8px;min-width:0;padding:9px;display:grid}.room-share span{min-width:0;color:var(--muted);text-transform:uppercase;overflow-wrap:anywhere;grid-column:1/-1;font-size:11px;font-weight:900}.room-share strong{letter-spacing:0;text-overflow:ellipsis;white-space:nowrap;min-width:0;font-family:ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,monospace;overflow:hidden}.room-share small{overflow-wrap:anywhere;min-width:0}.room-share button{border-color:#1f6b6059;min-height:34px;padding:6px 10px}.phase-card span:not(.eyebrow){min-width:0;color:var(--muted);overflow-wrap:anywhere;font-weight:750;line-height:1.2}.modal-control-card,.dev-card-panel{flex:none;gap:10px}.bank-panel{flex:none;gap:9px}.bank-resource-row{grid-template-columns:repeat(5,minmax(0,1fr));gap:5px;display:grid}.bank-resource-row .resource-card.compact{width:100%;min-width:0}.dev-card-list{gap:7px;display:grid}.dev-card-row{background:#fffaf0a8;border:1px solid #d8cbb5d9;border-radius:8px;align-items:center;gap:7px;min-width:0;padding:7px;display:grid}.discard-summary,.robber-target-summary{background:#fffaf0a8;border:1px solid #d8cbb5d9;border-radius:8px;gap:7px;min-width:0;padding:8px;display:grid}.discard-summary button{justify-self:start;min-height:31px;padding:5px 12px}.dev-card-row button,.primary-wide{min-height:31px;padding:5px 9px}.primary-wide{background:var(--accent);color:#fffdf7;border-color:var(--accent-strong);width:100%}.dev-card-copy{min-width:0;color:var(--ink);overflow-wrap:anywhere;font-weight:900}.dev-card-row{grid-template-columns:42px minmax(76px,1fr) auto}.dev-card-row.played{opacity:.58}.dev-card-row small{min-width:0;color:var(--muted);text-transform:uppercase;text-overflow:ellipsis;white-space:nowrap;font-weight:900;overflow:hidden}.dev-card-actions{flex-wrap:wrap;grid-column:1/-1;gap:6px;display:flex}.dev-hand-card{width:46px;min-width:46px;height:54px;min-height:54px;color:var(--ink);background:linear-gradient(#fffdf7e6,#efe8d8d1);border:1px solid #765a337a;border-radius:7px;place-items:center;gap:0;padding:3px;display:grid;position:relative;box-shadow:inset 0 0 0 1px #fffaf0a3,0 4px 10px #1d26321f}.dev-hand-card:enabled:hover,.dev-hand-card.selected{border-color:var(--accent-strong);transform:translateY(-1px);box-shadow:0 0 0 3px #1b8a742e,inset 0 0 0 1px #fffaf0b8}.dev-hand-card.is-disabled{cursor:default;opacity:.78}.dev-hand-card.secret-vp-card{border-color:#ca8a0485}.dev-hand-card .development-card-icon{filter:none;width:25px;height:32px}.dev-hand-card small{color:#4b5968;text-overflow:ellipsis;white-space:nowrap;max-width:100%;font-size:8px;font-weight:900;line-height:1;overflow:hidden}.development-card-icon{filter:drop-shadow(0 2px 4px #1d263229);width:34px;height:44px;display:block}.dev-card-face{fill:#efe4d0;stroke:#9d7a43;stroke-width:4px}.development-card-icon-knight .dev-card-face{fill:#dbeafe}.development-card-icon-road-building .dev-card-face{fill:#fdecc8}.development-card-icon-monopoly .dev-card-face{fill:#ede9fe}.development-card-icon-year-of-plenty .dev-card-face{fill:#dcfce7}.development-card-icon-victory-point .dev-card-face{fill:#fef3c7}.development-card-icon-hidden .dev-card-face{fill:#dbeafe;stroke:#1d4ed8}.dev-card-mark,.dev-card-line{fill:none;stroke:#344256;stroke-width:6px;stroke-linecap:round;stroke-linejoin:round}.dev-card-dot,.dev-card-shield,.dev-card-road,.dev-card-column,.dev-card-basket,.dev-card-star,.dev-card-ribbon,.dev-card-crown,.dev-card-fruit{fill:currentColor}.development-card-icon-knight{color:#2563eb}.development-card-icon-road-building{color:#a16207}.development-card-icon-monopoly{color:#7c3aed}.development-card-icon-year-of-plenty{color:#15803d}.development-card-icon-victory-point{color:#ca8a04}.development-card-icon-hidden{color:#2563eb}.dev-card-road.alt,.dev-card-fruit.alt{opacity:.74}.dev-card-column{opacity:.28}.dev-card-cutout,.stat-symbol-cutout{fill:#fffdf7}.dev-card-actions button{flex:76px}.dev-card-actions select{flex:110px;min-width:0}.dev-card-actions button.selected{background:var(--accent);border-color:var(--accent-strong);color:#fffdf7}.muted-line{color:var(--muted);font-weight:800}.eyebrow{color:var(--muted);text-transform:uppercase;font-size:12px;font-weight:900}.trade-panel{gap:10px;display:grid}.trade-overlay{z-index:8;-webkit-backdrop-filter:blur(10px);backdrop-filter:blur(10px);background:linear-gradient(#fffdf7ed,#fff6e5e0);width:min(520px,100% - 42px);min-width:min(360px,100% - 42px);max-height:min(58vh,540px);position:absolute;top:auto;bottom:132px;left:18px;overflow:auto;transform:none;box-shadow:0 20px 46px #15374647}.robber-choice-overlay{z-index:9;-webkit-backdrop-filter:blur(10px);backdrop-filter:blur(10px);background:linear-gradient(#fffdf7f5,#f7eedceb);border:1px solid #d8cbb5e6;border-radius:8px;gap:10px;width:min(430px,100% - 42px);padding:12px;display:grid;position:absolute;bottom:134px;left:18px;box-shadow:0 20px 46px #15374647}.special-card-choice-overlay{z-index:9;-webkit-backdrop-filter:blur(10px);backdrop-filter:blur(10px);background:linear-gradient(#fffdf7f5,#f7eedceb);border:1px solid #d8cbb5e6;border-radius:8px;gap:10px;width:min(540px,100% - 42px);padding:12px;display:grid;position:absolute;bottom:134px;left:18px;box-shadow:0 20px 46px #15374647}.special-choice-heading{grid-template-columns:auto minmax(0,1fr) auto;align-items:center;gap:10px;min-width:0;display:grid}.special-choice-heading>div{gap:2px;min-width:0;display:grid}.special-choice-heading strong{overflow-wrap:anywhere;min-width:0;font-size:18px;line-height:1}.special-choice-heading span,.year-choice-section>strong{color:var(--muted);text-transform:uppercase;font-size:12px;font-weight:900}.special-resource-grid{grid-template-columns:repeat(5,minmax(0,1fr));gap:7px;min-width:0;display:grid}.special-resource-grid .resource-card{width:100%;min-width:0}.special-resource-grid .resource-card.selected{box-shadow:0 0 0 3px #1b8a7433,inset 0 0 0 2px #fffdf7}.year-choice-section{gap:6px;min-width:0;display:grid}.robber-choice-heading{grid-template-columns:auto minmax(0,1fr) auto;align-items:center;gap:10px;display:grid}.robber-choice-heading>div:nth-child(2){gap:2px;display:grid}.robber-choice-heading strong{font-size:18px;line-height:1}.robber-choice-heading span{color:var(--muted);text-transform:uppercase;font-size:12px;font-weight:900}.robber-large-symbol{color:#4b5563;place-items:center;width:50px;height:50px;display:grid}.robber-large-symbol .stat-symbol{width:44px;height:44px}.robber-victim-list{grid-template-columns:repeat(auto-fit,minmax(108px,1fr));gap:8px;display:grid}.robber-victim-choice{text-align:center;text-transform:none;background:linear-gradient(#ffffffc2,#efe8d89e);justify-items:center;gap:6px;min-width:0;min-height:112px;padding:9px;display:grid}.robber-victim-choice strong,.robber-victim-choice small{text-overflow:ellipsis;white-space:nowrap;max-width:100%;overflow:hidden}.robber-victim-choice small{color:var(--muted);font-weight:900}.game-over-overlay{z-index:10;color:#fffdf7;-webkit-backdrop-filter:blur(10px);backdrop-filter:blur(10px);background:#07121ed1;border:1px solid #8aa5bc52;border-radius:8px;align-content:start;gap:12px;max-width:980px;max-height:calc(100% - 44px);margin:0 auto;padding:18px;display:grid;position:absolute;inset:22px;overflow:auto;box-shadow:0 28px 70px #0308127a}.confetti-layer{pointer-events:none;position:absolute;inset:0;overflow:hidden}.confetti-layer span{left:var(--confetti-left);background:var(--confetti-color);opacity:.9;width:7px;height:16px;transform:rotate(var(--confetti-rotate));animation:confetti-fall var(--confetti-duration) linear infinite;animation-delay:var(--confetti-delay);border-radius:2px;position:absolute;top:-18px}@keyframes confetti-fall{0%{transform:translateY(-24px) rotate(var(--confetti-rotate))}to{transform:translateY(720px) rotate(calc(var(--confetti-rotate) + 260deg))}}.game-over-title{z-index:1;flex-wrap:wrap;justify-content:space-between;align-items:baseline;gap:12px;min-width:0;display:flex;position:relative}.game-over-title strong{overflow-wrap:anywhere;min-width:0;font-size:34px;line-height:1}.game-over-title span{color:#fffdf7c7;overflow-wrap:anywhere;min-width:0;font-weight:900}.analysis-tabs{z-index:1;border-bottom:1px solid #fffdf747;flex-wrap:wrap;gap:6px;min-width:0;display:flex;position:relative}.analysis-tabs button{color:#fffdf7c7;min-height:36px;box-shadow:none;background:0 0;border:0;border-bottom:3px solid #0000;border-radius:0;padding:7px 12px}.analysis-tabs button.selected,.analysis-tabs button:enabled:hover{color:#fffdf7;border-bottom-color:#2f9bff}.analysis-panel{z-index:1;min-height:260px;position:relative}.victory-breakdown-list{gap:8px;display:grid}.victory-breakdown-row{background:#fffdf714;border:1px solid #d8cbb538;border-left-width:6px;border-radius:8px;grid-template-columns:auto minmax(170px,.78fr) minmax(0,1fr);align-items:center;gap:10px;min-width:0;padding:8px 10px;display:grid}.victory-rank{color:#fffdf7;background:#fffdf721;border-radius:999px;place-items:center;width:30px;height:30px;font-weight:900;display:grid}.victory-player{grid-template-columns:auto minmax(0,1fr) auto;align-items:center;gap:8px;min-width:0;display:grid}.victory-player strong{text-overflow:ellipsis;white-space:nowrap;min-width:0;overflow:hidden}.victory-player>span:last-child{white-space:nowrap;font-weight:900}.victory-parts{flex-wrap:wrap;justify-content:flex-end;gap:6px;min-width:0;display:flex}.victory-part{color:#fffdf7d1;background:#fffdf71f;border:1px solid #fffdf72e;border-radius:999px;justify-content:center;align-items:center;gap:4px;min-width:42px;max-width:100%;padding:3px 7px;font-size:12px;font-weight:900;display:inline-flex}.victory-part.best{color:#fff8ca;background:#eab30847;border-color:#facc15b8;box-shadow:0 0 0 2px #facc151f}.victory-part span{text-overflow:ellipsis;min-width:0;overflow:hidden}.victory-part .action-symbol,.victory-part .piece-symbol,.victory-part .stat-symbol{width:18px;height:18px}.victory-part .development-card-icon{filter:none;width:16px;height:22px}.analysis-chart{align-content:center;gap:18px;min-height:260px;padding:6px 10px 4px;display:grid}.analysis-chart h2{color:#fffdf7;text-align:center;margin:0;font-size:24px;line-height:1.1}.chart-bars{grid-template-columns:repeat(11,minmax(0,1fr));align-items:end;gap:8px;min-height:210px;display:grid}.resource-bars{grid-template-columns:repeat(5,minmax(0,1fr));width:100%;max-width:620px;margin:0 auto}.development-bars{grid-template-columns:repeat(5,minmax(0,1fr));width:100%;max-width:700px;margin:0 auto}.chart-bar-item{grid-template-rows:minmax(140px,1fr) auto auto;justify-items:center;gap:8px;min-width:0;min-height:210px;display:grid}.chart-bar{width:min(58px,86%);height:var(--bar-height);color:#fffdf7;background:#2689e3;border-radius:8px 8px 6px 6px;align-self:end;place-items:start center;min-height:18px;padding-top:8px;display:grid;box-shadow:inset 0 -8px 16px #00000014}.chart-bar-item.best .chart-bar{background:#6d7074}.chart-bar strong,.chart-bar-item small{overflow-wrap:anywhere}.chart-bar strong{font-size:14px;line-height:1}.chart-bar-item small{color:#fffdf7e6;text-align:center;font-size:12px;font-weight:900}.development-bars .development-card-icon{filter:none;width:32px;height:42px}.game-over-actions{z-index:1;flex-wrap:wrap;justify-content:center;gap:10px;display:flex;position:relative}.game-over-actions button{background:var(--accent);border-color:var(--accent-strong);color:#fffdf7;min-width:190px}.panel-title,.player-heading{justify-content:space-between;align-items:center;gap:10px;min-width:0;display:flex}.panel-title strong{text-overflow:ellipsis;white-space:nowrap;min-width:0;font-size:17px;overflow:hidden}.panel-title span{overflow-wrap:anywhere;min-width:0}.icon-button{text-transform:uppercase;border-radius:999px;place-items:center;width:34px;min-width:34px;height:34px;min-height:34px;padding:0;display:grid}.panel-title span,.player span{color:var(--muted);font-weight:700}.trade-picker{gap:6px;display:grid}.trade-picker>span{color:var(--muted);text-transform:uppercase;font-size:12px;font-weight:900}.trade-card-grid{grid-template-columns:repeat(5,minmax(0,1fr));gap:6px;display:grid}.trade-card{min-width:0;position:relative}.trade-card-main{background:0 0;border-color:#0000;place-items:center;width:100%;height:58px;min-height:58px;padding:0;display:grid}.trade-card.selected .trade-card-main{border-color:var(--accent-strong);background:#1b8a741a}.trade-selected{min-width:24px;color:var(--accent-strong);background:#fffdf7;border-radius:999px;padding:1px 5px;font-size:12px;font-weight:900;position:absolute;top:1px;right:2px;box-shadow:0 2px 6px #1d263229}.trade-stepper{border-radius:999px;width:24px;height:24px;min-height:24px;padding:0;line-height:1;position:absolute;bottom:0;right:1px}.trade-actions button{flex:1}.incoming-trades{gap:8px;display:grid}.incoming-trade{background:radial-gradient(circle at 100% 0,#efd08033,#0000 34%),#fff8e8;border:1px solid #d8cbb5cc;border-radius:8px;gap:8px;min-width:0;padding:9px;display:grid}.incoming-trade>div:first-child{gap:2px;min-width:0;display:grid}.incoming-trade>div:first-child span{min-width:0;color:var(--muted);overflow-wrap:anywhere;font-size:12px;font-weight:800}.incoming-trade-bundles{grid-template-columns:minmax(0,1fr) auto minmax(0,1fr);align-items:center;gap:8px;min-width:0;display:grid}.incoming-trade-bundles>span{min-width:0;color:var(--muted);text-transform:uppercase;overflow-wrap:anywhere;font-size:12px;font-weight:900}.trade-bundle,.incoming-trade-actions{flex-wrap:wrap;align-items:center;gap:5px;min-width:0;display:flex}.incoming-trade-actions button{flex:1}.staged-trade{gap:10px;display:grid}.trade-response-list{gap:6px;display:grid}.trade-response-row{text-align:left;text-transform:none;background:#fffdf7eb;border-color:#d8cbb5e6;justify-content:space-between;align-items:center;gap:10px;width:100%;min-width:0;min-height:44px;padding:8px 10px;display:flex}.trade-response-row.selected{border-color:var(--accent-strong);box-shadow:0 0 0 3px #1b8a7429}.trade-response-row span,.trade-response-row strong{text-overflow:ellipsis;white-space:nowrap;min-width:0;overflow:hidden}.stat-symbol{flex:none;width:18px;height:18px;display:block}.stat-symbol-fill{fill:currentColor}.stat-symbol-fill.alt{opacity:.72}.stat-symbol-stroke{fill:none;stroke:#344256;stroke-width:7px;stroke-linecap:round;stroke-linejoin:round}.stat-symbol-eye{fill:#172033}.player-kind{background:linear-gradient(#ffffffe6,#efe8d8d6);border:2px solid;border-radius:999px;flex:0 0 34px;place-items:center;width:34px;height:34px;display:grid;box-shadow:0 2px 8px #1d26321f}.player-kind .stat-symbol{width:24px;height:24px}.players{flex:auto;align-content:start;gap:7px;min-height:0;display:grid;overflow:hidden}.player{border-left-width:6px;padding:9px 10px;position:relative;overflow:hidden}.player-heading{grid-template-columns:auto minmax(0,1fr);grid-template-areas:"kind name""stats stats";align-items:flex-start;gap:5px 8px;display:grid}.player-heading strong{text-overflow:ellipsis;white-space:nowrap;grid-area:name;min-width:0;padding-top:2px;font-size:16px;line-height:1.1;overflow:hidden}.player-heading>.player-kind{grid-area:kind}.player-stats{grid-area:stats;grid-template-columns:repeat(5,minmax(0,1fr));gap:3px;min-width:0;display:grid}.player-stats .stat-chip{color:#4b5968;white-space:nowrap;background:linear-gradient(#ffffffbd,#efe8d8a8);border:1px solid #d4c1a3b8;border-radius:999px;justify-content:center;align-items:center;gap:3px;min-width:0;padding:2px 5px;font-size:12px;font-weight:900;line-height:1.2;display:inline-flex;overflow:hidden}.player-stats .stat-chip>span{text-overflow:ellipsis;min-width:0;max-width:100%;overflow:hidden}.player-stats .stat-chip .development-card-icon{filter:none;width:16px;height:22px}.player-stats .vp-chip{grid-column:span 2}.player-stats .vp-chip .stat-symbol{color:#ca8a04}.player-stats span.vp-secret,.player-mobile-stats span.vp-secret{color:#147368;background:linear-gradient(#ecfdf5d1,#daefe7ad);border-color:#137f716b}.player-mobile-stats{min-width:0;display:none;overflow:hidden}.player.active{box-shadow:0 0 0 2px #137f7114, var(--shadow-soft);background:radial-gradient(circle at 0 0,#137f711a,#0000 38%),#f6fbef}.player.active:after{content:"";background:var(--accent);border-radius:999px;width:8px;height:8px;position:absolute;top:10px;right:10px;box-shadow:0 0 0 4px #137f711f}.badge{color:#775912;background:linear-gradient(#fff6c6,#ecd064);border-radius:999px;width:fit-content;padding:2px 7px;font-size:12px;font-weight:900}.player-awards{flex-wrap:wrap;gap:4px;display:flex}.mini-resources{gap:4px;padding-bottom:1px;display:flex;overflow-x:auto}.mini-resources .resource-card.compact{width:44px;min-width:44px;height:48px}.mini-resources .resource-card.compact .resource-icon{width:24px;height:24px}.event-strip{border-top:1px solid var(--line);background:linear-gradient(#fffdf7fa,#ebf5f0fa);grid-template-columns:auto minmax(0,1fr) minmax(260px,auto);align-items:center;gap:14px;padding:9px 14px;display:grid;box-shadow:0 -10px 24px #24304014}.event-strip ol{color:var(--muted);gap:8px;margin:0;padding:0;list-style:none;display:flex;overflow:auto}.event-strip li{white-space:nowrap;text-overflow:ellipsis;background:linear-gradient(#ffffff8a,#0000),#fffdf7;border:1px solid #d8cbb5cc;border-radius:8px;align-items:center;gap:5px;min-width:0;max-width:100%;min-height:34px;padding:3px 8px;display:inline-flex;overflow:hidden;box-shadow:0 2px 7px #2430400f}.game-log-panel{flex:0 210px;gap:8px;min-height:118px;display:grid;overflow:hidden}.game-log-panel ol{scrollbar-color:#137f7173 transparent;gap:6px;min-height:0;max-height:none;margin:0;padding:0;list-style:none;display:grid;overflow:auto}.game-log-panel li{min-width:0;min-height:34px;color:var(--muted);white-space:normal;overflow-wrap:anywhere;background:linear-gradient(#ffffff94,#0000 70%),#fffdf7;border:1px solid #d8cbb5cc;border-radius:8px;align-items:flex-start;gap:6px;padding:4px 7px;font-size:13px;display:flex;box-shadow:0 2px 7px #2430400d}.game-log-panel li>*{min-width:0}.event-seq{min-width:22px;min-height:22px;color:var(--accent-strong);background:#137f711a;border-radius:999px;place-items:center;font-weight:900;display:inline-grid}.event-icons,.event-resource{flex-wrap:wrap;align-items:center;gap:3px;min-width:0;display:inline-flex}.event-resource .resource-icon{width:20px;height:20px}.event-arrow{font-size:12px;font-weight:900}.history-panel{min-width:260px;color:var(--muted);flex-wrap:wrap;align-items:center;gap:8px;display:flex;overflow-x:auto}.history-panel span,.replay-controls span{font-weight:800}.history-panel button{white-space:nowrap}@media (width<=960px){.board-layout,.lobby-layout{grid-template-columns:1fr}.board-stage{height:58vh;min-height:390px}.side-panel{border-left:0;border-top:1px solid var(--line);grid-template-columns:1fr 1fr;gap:10px;max-height:38vh;display:grid}.phase-card,.trade-panel,.game-log-panel,.player{margin-bottom:0}.game-log-panel,.players{grid-column:1/-1}.hand-rack{gap:4px;width:342px;min-width:0;padding:5px}.dev-hand{flex-basis:82px;gap:4px;padding-left:5px}.dev-hand-card{width:40px;min-width:40px;height:50px;min-height:50px}.board-action-bar{gap:5px;width:min(410px,100% - 360px);min-width:330px;padding:5px}.board-action{min-height:62px}.board-action .piece-symbol,.action-symbol{width:29px;height:29px}.resource-card{width:58px;min-width:58px;height:66px}.resource-icon{width:28px;height:28px}.trade-overlay{width:min(520px,100% - 28px);min-width:0;max-height:min(42vh,420px);top:auto;bottom:146px;left:14px;transform:none}.robber-choice-overlay,.special-card-choice-overlay{width:min(430px,100% - 28px);bottom:146px;left:14px}.special-card-choice-overlay{width:min(520px,100% - 28px)}.game-over-overlay{max-height:calc(100% - 28px);inset:14px 14px auto;overflow:auto}.chart-bars{gap:5px}.players{grid-template-columns:repeat(2,minmax(0,1fr))}.event-strip{grid-template-columns:1fr}.history-panel{min-width:0}}@media (width<=760px){body{background:#1e779b;overflow-x:hidden}button,select,input{border-radius:7px;min-height:32px;padding:0 9px}.start-screen{background:radial-gradient(circle at 50% 18%,#71cbe061,#0000 34%),linear-gradient(#2e82cb 0%,#246cb3 52%,#1e5798 100%);place-items:stretch stretch;min-height:100svh;padding:0;overflow:auto}.start-panel{width:100%;min-height:100svh;padding:max(12px, env(safe-area-inset-top)) 12px max(12px, env(safe-area-inset-bottom));color:#fffaf0;box-shadow:none;background:0 0;border:0;border-radius:0;align-content:start;gap:10px}.start-brand{justify-content:space-between;align-items:center;gap:10px;display:flex}.start-brand h1{color:#fffaf0;text-shadow:0 2px 10px #0a233e47;font-size:clamp(30px,11vw,42px);line-height:.95}.start-brand span{color:#fffaf0db;font-size:11px}.match-menu{grid-template-columns:1fr;gap:8px}.room-code-join{background:#fffaf01c;border-color:#fffaf047;grid-template-columns:1fr auto;gap:7px}.room-code-join label{color:#fffaf0d6;grid-column:1/-1;font-size:11px}.room-code-join input{color:#1e5798;background:#fffaf0;border-color:#fffaf047}.option-row,.rule-toggle{background:#fffaf01c;border-color:#fffaf038;align-items:center;min-height:32px;display:flex}.match-options{background:linear-gradient(#11487dd6,#13528eb8);border-color:#fffaf047;gap:7px;padding:10px;box-shadow:0 14px 28px #0b1d2a29}.difficulty-options{grid-template-columns:repeat(3,minmax(0,1fr))}.difficulty-options button{color:#1e5798;background:#fffaf0;border-color:#fffaf047;min-height:30px;font-size:12px}.difficulty-options button.selected{color:#0e6b59;background:#dff6ed;border-color:#fffaf0}.match-choice{text-align:left;color:#fffaf0;background:linear-gradient(135deg,#fff3,#0000 42%),#104f90d1;border-color:#fffaf04d;grid-template-columns:auto minmax(0,1fr) auto;align-content:center;justify-items:start;gap:2px 9px;min-height:78px;padding:10px 11px;box-shadow:0 12px 24px #0a233e2e}.match-choice .match-art{grid-row:1/span 2}.match-choice .piece-symbol{width:36px;height:36px}.match-choice strong{font-size:18px;line-height:1.05}.match-choice span:last-child{color:#fffaf0c7;font-size:12px}.match-choice span.match-cta{color:#1e5798;background:#fffaf0;border-color:#fffaf061;grid-area:1/3/span 2;min-width:52px;min-height:30px;padding:0 9px;font-size:10px}.rule-toggle span,.option-row>span{color:#fffaf0d6;font-size:11px;line-height:1.12}.rule-toggle input{background:#fffaf0eb}.app-shell,.game-surface{grid-template-rows:minmax(0,1fr);min-height:100svh}.app-shell:not(.start-app),.app-shell:not(.start-app) .game-surface{overflow:hidden}.app-shell.lobby-app{min-height:100svh;overflow:auto}.lobby-app .topbar{display:flex}.lobby-layout{grid-template-columns:1fr;gap:10px;padding:10px}.lobby-code-card,.lobby-status-card{padding:14px}.lobby-code-card strong{font-size:clamp(34px,16vw,58px)}.lobby-actions{grid-template-columns:repeat(2,minmax(0,1fr))}.lobby-bot-controls{grid-template-columns:minmax(0,1fr) minmax(0,1fr)}.lobby-bot-controls strong{grid-column:1/-1}.start-app,.start-app .start-screen{overflow:auto}.topbar{display:none}.brand-block h1{font-size:20px}.topbar-actions{flex-wrap:wrap}.board-layout{background:#1e779b;width:100%;height:100svh;min-height:0;display:block;position:relative;overflow:hidden}.board-stage{width:100%;height:100svh;min-height:0}.board-stage:after{background:radial-gradient(circle at 50% 43%,#0000 0 45%,#0a2d401a 64%,#0a2d403d 100%)}.board{width:min(111vw,434px);height:auto;min-height:0;position:absolute;top:clamp(74px,9svh,80px);left:50%;transform:translate(-50%)}.side-panel{inset:max(4px, env(safe-area-inset-top)) 4px auto;z-index:8;pointer-events:none;background:0 0;border:0;grid-template-columns:1fr;gap:3px;max-height:none;padding:0;display:grid;position:absolute;overflow:visible}.side-panel>*{pointer-events:auto}.game-log-panel,.event-strip,.dev-card-panel.empty,.bank-panel{display:none}.dev-card-panel:not(.empty){left:max(5px, env(safe-area-inset-left));right:max(5px, env(safe-area-inset-right));bottom:calc(max(5px, env(safe-area-inset-bottom)) + 112px);z-index:12;max-height:min(30svh,170px);margin:0;position:fixed;overflow:auto}.phase-card{color:#fffaf0;-webkit-backdrop-filter:blur(8px);backdrop-filter:blur(8px);background:#103046cc;border-color:#fffaf059;justify-self:start;gap:0;width:min(128px,100vw - 8px);min-height:22px;margin:0;padding:3px 8px;box-shadow:0 6px 14px #0b1d2a2e}.phase-card .eyebrow,.phase-card .room-share,.phase-card span{display:none}.phase-card strong{text-overflow:ellipsis;white-space:nowrap;font-size:10px;line-height:1.12;overflow:hidden}.players{grid-template-columns:repeat(4,minmax(0,1fr));gap:3px;display:grid}.player{-webkit-backdrop-filter:blur(6px);backdrop-filter:blur(6px);background:linear-gradient(#ffffff70,#0000),#fffdf7d1;border-top-width:3px;border-left-width:0;border-radius:6px;gap:0;min-width:0;min-height:35px;margin:0;padding:3px 4px;box-shadow:0 4px 9px #0b1d2a1f}.player-heading{grid-template-columns:auto minmax(0,1fr);grid-template-areas:"kind name""stats stats";align-items:start;gap:2px;display:grid}.player-kind{border-width:1px;flex-basis:20px;width:20px;height:20px}.player-kind .stat-symbol{width:14px;height:14px}.player-heading strong{text-overflow:ellipsis;white-space:nowrap;min-width:0;padding:0;font-size:9.5px;line-height:1.05;overflow:hidden}.player-stats{display:none}.player-mobile-stats{align-items:center;gap:2px;min-width:0;display:flex;overflow:hidden}.player-mobile-stats span{color:#4b5968;text-overflow:ellipsis;white-space:nowrap;background:#fffaf0c7;border:1px solid #d4c1a38a;border-radius:4px;flex:1 1 0;min-width:0;max-width:100%;padding:0 2px;font-size:7.5px;font-weight:900;line-height:1.15;overflow:hidden}.mini-resources,.badge{display:none}.player.active:after{width:5px;height:5px;top:3px;right:3px;box-shadow:0 0 0 3px #137f711f}.dice-panel{right:max(5px, env(safe-area-inset-right));bottom:calc(max(5px, env(safe-area-inset-bottom)) + 116px);opacity:.92;border-radius:7px;gap:2px;padding:4px}.dice-pair{gap:4px}.die-face{border-width:2px;width:32px;padding:4px}.pip{width:5px;height:5px}.dice-panel strong{font-size:10px}.dice-panel span{font-size:9px}.action-dock{left:max(5px, env(safe-area-inset-left));color:#fffaf0;background:#103046c7;border-color:#fffaf06b;border-radius:999px;gap:0;max-width:min(156px,100% - 10px);min-height:24px;padding:3px 8px;top:65px;box-shadow:0 6px 16px #0b1d2a33}.action-dock span{text-overflow:ellipsis;white-space:nowrap;max-width:100%;font-size:9px;line-height:1.05;overflow:hidden}.action-dock strong{display:none}.action-dock em{font-size:9px;line-height:1.05}.hand-rack{left:max(5px, env(safe-area-inset-left));right:auto;bottom:max(5px, env(safe-area-inset-bottom));border-radius:7px;gap:2px;width:min(60vw,214px);min-width:0;max-width:calc(100vw - 114px);padding:3px}.resource-hand,.dev-hand{gap:2px}.dev-hand{border-top:1px solid #d4c1a39e;border-left:0;flex:100%;padding:3px 0 0}.hand-rack .resource-card.compact,.dev-hand-card{width:34px;min-width:34px;height:40px;min-height:40px}.hand-rack .resource-card.compact .resource-icon,.dev-hand-card .development-card-icon{width:20px;height:20px}.dev-hand-card .development-card-icon{height:26px}.dev-hand-card small{display:none}.board-action-bar{left:auto;right:max(5px, env(safe-area-inset-right));bottom:calc(max(5px, env(safe-area-inset-bottom)) + 61px);border-radius:7px;grid-template-columns:none;gap:4px;width:auto;min-width:0;padding:3px;display:flex}.board-action{border-radius:7px;width:40px;min-width:40px;height:40px;min-height:40px;padding:3px}.board-action:not(.end-action):disabled{display:none}.board-action.end-action:disabled{opacity:.72}.board-action .piece-symbol,.action-symbol{width:23px;height:23px}.board-action span,.board-action[data-tooltip]:after{display:none}.board-action small{min-width:18px;padding:1px 4px;font-size:8px;top:-5px;right:-4px}.trade-overlay{top:auto;left:6px;right:6px;bottom:calc(max(6px, env(safe-area-inset-bottom)) + 132px);border-radius:7px;gap:7px;width:auto;min-width:0;max-height:min(42svh,320px);padding:8px;transform:none}.robber-choice-overlay,.special-card-choice-overlay{left:6px;right:6px;bottom:calc(max(6px, env(safe-area-inset-bottom)) + 113px);width:auto;max-height:min(35svh,260px);padding:8px;overflow:auto}.special-resource-grid{grid-template-columns:repeat(5,minmax(0,1fr));gap:5px}.robber-victim-list{grid-template-columns:repeat(auto-fit,minmax(86px,1fr));gap:5px}.robber-victim-choice{min-height:82px;padding:6px}.robber-large-symbol{width:36px;height:36px}.robber-large-symbol .stat-symbol{width:30px;height:30px}.game-over-overlay{max-height:calc(100svh - 128px);padding:10px;inset:58px 6px auto;overflow:auto}.game-over-title strong{font-size:20px}.victory-breakdown-row{grid-template-columns:1fr;gap:6px;padding:7px}.analysis-tabs{gap:2px}.analysis-tabs button{min-height:32px;padding:5px 7px;font-size:11px}.analysis-panel{min-height:220px}.analysis-chart{gap:12px;min-height:220px;padding:0}.analysis-chart h2{font-size:18px}.chart-bars{gap:3px;min-height:176px}.chart-bar-item{grid-template-rows:minmax(110px,1fr) auto auto;min-height:176px}.chart-bar{width:min(38px,92%);padding-top:5px}.chart-bar strong,.chart-bar-item small{font-size:10px}.development-bars .development-card-icon{width:24px;height:32px}.victory-parts{justify-content:flex-start}.resource-card{border-width:1px;border-radius:7px;gap:0;width:34px;min-width:34px;height:42px}.resource-icon{width:22px;height:22px}.resource-count{min-width:17px;padding:0 4px;font-size:10px;line-height:1.1}.resource-name{clip-path:inset(50%);white-space:nowrap;width:1px;height:1px;position:absolute;overflow:hidden}.panel-title strong{font-size:15px}.panel-title span{font-size:12px}.trade-card-grid{grid-template-columns:repeat(5,38px);gap:4px;overflow-x:auto}.trade-card-main{height:46px;min-height:46px}.incoming-trade,.trade-response-row{padding:7px}.trade-response-row{min-height:38px}.incoming-trade-bundles,.trade-actions{gap:5px}}@media (prefers-reduced-motion:reduce){.dice-panel.rolling .die-face,.edge-build-target,.vertex.legal,.building.legal,.building.legal .house-piece,.building.pending,.building.pending .house-piece{animation:none}}
