: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{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: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) auto;min-height:100vh;display:grid}.start-app{grid-template-rows:minmax(0,1fr)}.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{justify-content:space-between;align-items:end;gap:18px;display:flex}.start-brand h1{margin:0;font-size:clamp(36px,7vw,68px);line-height:.95}.start-brand span{color:var(--accent-strong);text-transform:uppercase;font-size:14px;font-weight:900}.match-menu{grid-template-columns:repeat(2,minmax(0,1fr));gap:14px;display:grid}.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-height:190px;padding:20px;display:grid;box-shadow:inset 0 1px #ffffffe6}.match-choice strong{font-size:24px}.match-choice span:last-child{color:var(--muted);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{justify-content:space-between;align-items:center;gap:12px;min-width:0;display:flex}.option-row>span,.rule-toggle span{color:var(--muted);text-transform:uppercase;font-size:13px;font-weight:900}.difficulty-options{grid-template-columns:repeat(3,minmax(74px,1fr));gap:6px;display:grid}.difficulty-options button{text-transform:capitalize;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{min-height:0;display:grid}.topbar{border-bottom:1px solid var(--line);-webkit-backdrop-filter:blur(10px);backdrop-filter:blur(10px);z-index:10;background:linear-gradient(#fffdf7fa,#faeed8f0);justify-content:space-between;gap:16px;padding:12px 18px;display:flex;box-shadow:0 10px 24px #24304014}.brand-block h1{margin:0;font-size:24px;line-height:1.05}.brand-block p{color:var(--muted);margin:3px 0 0;font-weight:700}.phase-code{color:var(--accent-strong)}.topbar-actions,.replay-controls,.trade-actions{align-items:center;gap:8px;display:flex}.board-layout{grid-template-columns:minmax(0,1fr) 360px;min-height:0;display:grid}.board-stage{background:radial-gradient(circle at 45% 42%,#70c4d057,#0000 34%),linear-gradient(90deg,#08354c2e,#0000 24% 76%,#08354c29),#1e779b;height:calc(100vh - 160px);min-height:560px;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}.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}.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}.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:normal;text-align:center;white-space:normal;max-width:100%;font-size:10px;line-height:1.05;display:block;overflow:visible}.board-action small{color:#fffaf0;background:#1d2632d1;border-radius:999px;min-width:18px;padding:1px 4px;font-size:11px;font-weight:900;position:absolute;top:3px;right:3px}.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:352px;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;gap:5px;padding:6px;display:flex;position:absolute;bottom:14px;left:14px;right:auto;overflow:visible}.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-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}.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);min-width:0;padding:14px;overflow:auto}.phase-card,.trade-panel,.game-log-panel,.player{border:1px solid var(--line);box-shadow:var(--shadow-soft);background:linear-gradient(#ffffff80,#0000 52%),#fffdf7;border-radius:8px;margin-bottom:12px;padding:12px}.phase-card,.player{gap:5px;display:grid}.phase-card strong{font-size:18px;line-height:1.15}.room-share{background:#ecfdf594;border:1px solid #1f6b6038;border-radius:8px;grid-template-columns:1fr auto;align-items:center;gap:4px 8px;padding:9px;display:grid}.room-share span{color:var(--muted);text-transform:uppercase;grid-column:1/-1;font-size:11px;font-weight:900}.room-share strong{letter-spacing:0;font-family:ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,monospace}.room-share button{border-color:#1f6b6059;min-height:34px;padding:6px 10px}.phase-card span:not(.eyebrow){color:var(--muted);font-weight:750}.modal-control-card,.dev-card-panel{gap:10px}.discard-grid,.dev-card-list,.thief-target-list{gap:7px;display:grid}.discard-row,.dev-card-row,.thief-target-row{background:#fffaf0a8;border:1px solid #d8cbb5d9;border-radius:8px;align-items:center;gap:7px;min-width:0;padding:7px;display:grid}.discard-row{grid-template-columns:auto 32px 24px 32px}.discard-row button,.thief-target-row button,.dev-card-row button,.primary-wide{min-height:31px;padding:5px 9px}.discard-row strong{text-align:center;font-size:14px}.primary-wide{background:var(--accent);color:#fffdf7;border-color:var(--accent-strong);width:100%}.thief-target-row{grid-template-columns:minmax(72px,1fr) repeat(auto-fit,minmax(76px,auto))}.thief-target-row>span,.dev-card-row>span{min-width:0;color:var(--ink);font-weight:900}.dev-card-row{grid-template-columns:minmax(92px,1fr) auto}.dev-card-row.played{opacity:.58}.dev-card-row small{color:var(--muted);text-transform:uppercase;font-weight:900}.dev-card-actions{flex-wrap:wrap;grid-column:1/-1;gap:6px;display:flex}.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:6;-webkit-backdrop-filter:blur(10px);backdrop-filter:blur(10px);background:linear-gradient(#fffdf7ed,#fff6e5e0);width:min(560px,100% - 585px);min-width:360px;max-height:min(52vh,500px);position:absolute;bottom:132px;left:18px;overflow:auto;transform:none;box-shadow:0 20px 46px #15374647}.panel-title,.player-heading{justify-content:space-between;align-items:center;gap:10px;display:flex}.panel-title strong{font-size:17px}.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;padding:9px;display:grid}.incoming-trade>div:first-child{gap:2px;display:grid}.incoming-trade>div:first-child span{color:var(--muted);font-size:12px;font-weight:800}.incoming-trade-bundles{grid-template-columns:minmax(0,1fr) auto minmax(0,1fr);align-items:center;gap:8px;display:grid}.incoming-trade-bundles>span{color:var(--muted);text-transform:uppercase;font-size:12px;font-weight:900}.trade-bundle,.incoming-trade-actions{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-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;overflow:hidden}.players{gap:8px;display:grid}.player{border-left-width:6px;position:relative;overflow:hidden}.player-heading{flex-wrap:wrap;align-items:flex-start}.player-heading strong{min-width:88px;padding-top:2px;font-size:16px;line-height:1.1}.player-stats{flex-wrap:wrap;flex:180px;justify-content:flex-end;gap:4px;min-width:0;display:flex}.player-stats span{color:#4b5968;white-space:nowrap;background:linear-gradient(#ffffffbd,#efe8d8a8);border:1px solid #d4c1a3b8;border-radius:999px;min-width:fit-content;padding:2px 6px;font-size:12px;font-weight:900;line-height:1.2}.player-mobile-stats{display:none}.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}.mini-resources{gap:5px;padding-bottom:2px;display:flex;overflow-x:auto}.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;background:linear-gradient(#ffffff8a,#0000),#fffdf7;border:1px solid #d8cbb5cc;border-radius:8px;align-items:center;gap:5px;min-height:34px;padding:3px 8px;display:inline-flex;box-shadow:0 2px 7px #2430400f}.game-log-panel{gap:10px;display:grid}.game-log-panel ol{scrollbar-color:#137f7173 transparent;gap:6px;max-height:260px;margin:0;padding:0;list-style:none;display:grid;overflow:auto}.game-log-panel li{min-height:34px;color:var(--muted);white-space:normal;background:linear-gradient(#ffffff94,#0000 70%),#fffdf7;border:1px solid #d8cbb5cc;border-radius:8px;align-items:center;gap:6px;padding:5px 7px;font-size:13px;display:flex;box-shadow:0 2px 7px #2430400d}.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{align-items:center;gap:3px;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);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{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:316px;min-width:0;padding:5px}.board-action-bar{gap:5px;width:min(452px,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);bottom:150px;left:14px}.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{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}.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}.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{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{align-items:start;gap:2px;display:grid}.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}.player-mobile-stats span{color:#4b5968;white-space:nowrap;background:#fffaf0c7;border:1px solid #d4c1a38a;border-radius:4px;min-width:0;padding:0 2px;font-size:7.5px;font-weight:900;line-height:1.15}.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{font-size:9px;line-height:1.05}.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,196px);min-width:0;max-width:calc(100vw - 114px);padding:3px}.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}.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}}
