@import url('https://fonts.googleapis.com/css2?family=DM+Sans:wght@400;500;600;700&family=Fraunces:opsz,wght@9..144,400;9..144,500;9..144,600&display=swap');
:root{--control-surface:#123858e6;--control-hover:#244f73;--control-panel:#102d47f5;--control-border:#d2eeff55;--control-text:#f2f7ff;font-family:'DM Sans',sans-serif;color:#203f3b;background:#f7f4eb;font-synthesis:none;--teal:#174e4d;--muted:#78847a;--line:#dedfd1}*{box-sizing:border-box}body{margin:0;background:radial-gradient(ellipse at 90% 15%,#e5e9d966,transparent 60%),#f7f4eb}button,input{font:inherit}button,a,input{-webkit-tap-highlight-color:transparent}button{border:1px solid var(--line);background:#fffdf5;padding:13px 19px;border-radius:9px;color:var(--teal);font-weight:600;cursor:pointer;transition:transform .15s,background .15s}button:hover:not(:disabled){background:#e8ecdf;transform:translateY(-1px)}button:disabled{opacity:.42;cursor:not-allowed}button:focus-visible,a:focus-visible,input:focus-visible,.hex:focus-visible{outline:3px solid #d0953e;outline-offset:4px}a{color:inherit}header{height:94px;padding:0 4%;display:flex;align-items:center;gap:28px;border-bottom:1px solid var(--line)}.brand{text-decoration:none;display:flex;align-items:center;gap:12px;font-size:37px;color:var(--teal)}.brand span{font-family:'Fraunces',Georgia,serif;font-size:29px;font-weight:600}.version{font-size:10px;letter-spacing:2px;color:var(--muted)}.pill{margin-left:auto;border:1px solid #d5ddcc;color:#5f7564;border-radius:25px;padding:8px 13px;font-size:11px}.welcome{max-width:1440px;margin:auto;display:grid;grid-template-columns:1fr 1.12fr;gap:50px;padding:75px 5% 65px;min-height:calc(100vh - 160px)}.eyebrow{font-size:10px;letter-spacing:2px;font-weight:700;color:#748774}h1,h2{font-family:'Fraunces',Georgia,serif;font-weight:500;margin:16px 0}h1{font-size:clamp(44px,5vw,72px);line-height:1.07;letter-spacing:-2px}h1 em{color:#779073;font-weight:400}.intro{max-width:430px;color:#768073;font-size:15px;line-height:1.9}.welcome-tags{display:flex;gap:22px;font-size:11px;margin:24px 0 35px;color:#647563}form{max-width:355px}label{display:block;font-size:12px;font-weight:600;margin-bottom:10px}input{width:100%;border:1px solid #d6dccd;border-radius:8px;background:#fffef8;padding:15px;color:#203f3b}form .primary{width:100%;margin-top:12px;display:flex;justify-content:space-between}.primary{color:#fffaf0;background:var(--teal);border-color:var(--teal)}.primary:hover:not(:disabled){background:#276764}.divider{font-size:10px;color:#89907f;text-align:center;margin:22px 0}.join{display:flex;gap:9px}.join input{min-width:0;letter-spacing:2px;font-size:12px}.join button{white-space:nowrap}.fine{max-width:355px;font-size:10px;line-height:1.7;color:#89907f;margin-top:20px}.island-preview{position:relative;align-self:center;background:#377c7e;border:12px solid #e6e7d8;border-radius:48% 48% 30% 30%;box-shadow:0 25px 55px #234c3515;padding:35px 0}.preview-label{font-size:9px;color:#d7e7d2;letter-spacing:3px;text-align:center}.floating-note{position:absolute;bottom:5px;left:10px;transform:rotate(-5deg);background:#fffdf2;padding:20px 25px;border-radius:8px;box-shadow:0 12px 20px #12332d25;font-family:'Fraunces',Georgia,serif;font-size:20px}.floating-note small{font:11px 'DM Sans',sans-serif;color:#7d8678}footer{border-top:1px solid var(--line);padding:22px 4%;font-size:10px;color:#89907f;display:flex;justify-content:space-between}.board{display:block;width:100%;overflow:hidden}.hex polygon{stroke:#e7d7ae;stroke-width:4;stroke-linejoin:round;filter:drop-shadow(0 4px 1px #163b3226)}.hex.selectable{cursor:pointer}.hex.selectable:hover polygon,.hex.selectable:focus polygon{stroke:#fff8d1;stroke-width:7;filter:brightness(1.1)}.land-icon{font-size:44px;fill:#254c3b;opacity:.35;text-anchor:middle}.land-icon.small{font-size:30px}.token{fill:#fff3d3;stroke:#b59d6a;stroke-width:1.2}.number{fill:#273e33;font:600 20px Georgia,serif;text-anchor:middle}.number.red{fill:#b64b3b}.house{stroke:#fff8e7;stroke-width:2;animation:pop .4s ease-out}.waves{animation:water 9s linear infinite}.boat{font-size:30px;animation:bob 5s ease-in-out infinite}.boat.second{animation-delay:-2s}.sea-label{font-size:8px;fill:#d6e8da;letter-spacing:2px;text-anchor:middle}.game{max-width:1600px;margin:auto;padding:30px 4%}.game-heading{display:flex;align-items:center;justify-content:space-between;gap:15px;margin-bottom:25px}.game h1{font-size:34px;letter-spacing:-1px;margin:9px 0}.prototype{font-size:9px;letter-spacing:1.5px;color:#958e76}.code{font-size:10px;background:transparent;border:0;letter-spacing:1px}.code b{font-size:13px;margin:0 10px}.quiet{padding:8px 10px;font-size:11px;border:0;background:transparent}.play-layout{display:grid;grid-template-columns:minmax(0,1fr) 300px;gap:22px}.board-wrap{border-radius:18px;background:radial-gradient(ellipse at 50% 45%,#4b9290,#276b71);box-shadow:inset 0 0 80px #123e4020;overflow:hidden;color:#d5e7d7}.board-caption,.board-bottom{display:flex;justify-content:space-between;padding:18px 23px;font-size:10px;letter-spacing:.5px}.board-caption span:first-child{letter-spacing:2px}.board-bottom{opacity:.7;font-size:9px}.board-wrap .board{max-height:560px}.actions{display:flex;gap:12px;align-items:center;background:#eeeee2;border-radius:12px;margin-top:13px;padding:12px}.actions button{flex:1;font-size:12px;padding:13px 8px}.dice{display:flex;gap:5px;font-size:35px;line-height:1;color:#456057;padding:0 6px}.panel{border:1px solid var(--line);border-radius:12px;background:#fffdf670;padding:22px}aside{display:flex;flex-direction:column;gap:17px}h2{font-size:25px;letter-spacing:-.5px}.turn-panel p{font-size:12px;line-height:1.7;color:#7e8878}.full{width:100%;margin-top:9px;font-size:12px}.panel-title{display:flex;justify-content:space-between;font-size:9px;letter-spacing:1.5px;color:#85907e;font-weight:600;margin-bottom:14px}.player{display:flex;align-items:center;gap:11px;padding:14px 0;border-top:1px solid #e5e5d9}.player.current{background:#e8eedf;margin:0 -12px;padding:14px 12px;border-radius:8px}.avatar{display:grid;place-items:center;width:39px;height:39px;border-radius:50%;background:var(--player);color:white;font-family:Georgia,serif;font-size:20px}.player>div{flex:1}.player strong{display:block;font-size:12px}.player strong small{font-size:8px;color:#809175;margin-left:6px}.player div>span{display:block;font-size:9px;color:#8a917f;margin-top:4px}.player>b{font-size:19px;font-family:Georgia,serif}.player>b small{font:8px 'DM Sans',sans-serif;color:#89907f}.log p{font-size:11px;color:#7d8977;line-height:1.5;border-left:2px solid #dce3d1;padding-left:10px}.hand{display:flex;align-items:center;gap:24px;grid-column:1;position:relative;padding:20px 22px}.hand h2{font-size:23px;margin:8px 0}.hand-title .eyebrow{font-size:8px}.resources{display:flex;gap:10px;flex:1}.resource{position:relative;flex:1;max-width:105px;min-width:55px;height:104px;border:1px solid #c4d1b8;border-radius:8px;background:#e5ebd8;display:flex;align-items:center;flex-direction:column;padding:10px 5px}.resource>span{font-size:26px}.resource strong{font-size:16px;background:#fffcf2;padding:1px 8px;border-radius:4px;margin:4px 0}.resource small{font-size:9px;color:#5e725c}.r1{background:#f0dfd1;border-color:#dac1af}.r2{background:#e9edda}.r3{background:#f3e7c4;border-color:#decfa7}.r4{background:#e0e4e1;border-color:#c8d0cd}.hand-note{position:absolute;bottom:-23px;left:0;font-size:9px;color:#8a917f}.test-note{font-size:10px;line-height:1.8;color:#8b907f;margin:42px 0 5px;max-width:850px}.selected{background:#e3b65f}.mobile-tabs{display:none}#toast{position:fixed;left:50%;bottom:25px;transform:translate(-50%,20px);background:var(--control-surface);color:#fff9e9;padding:14px 22px;border-radius:10px;font-size:13px;box-shadow:0 8px 30px #0002;opacity:0;pointer-events:none;transition:.2s;max-width:90vw;z-index:10}#toast.show{opacity:1;transform:translate(-50%,0)}@keyframes water{to{transform:translate(90px,0)}}@keyframes bob{50%{transform:translate(0,-6px)}}@keyframes pop{from{opacity:0;transform:translateY(-8px)}to{opacity:1;transform:translateY(0)}}@media(min-width:1400px){.game{padding-left:6%;padding-right:6%}}@media(max-width:1000px){.play-layout{grid-template-columns:minmax(0,1fr) 250px;gap:15px}.panel{padding:17px}.hand{gap:15px;flex-wrap:wrap}.hand-title{width:100%}.hand h2{margin:3px 0}.welcome{gap:25px;padding-top:60px}.version{display:none}.floating-note{font-size:17px;padding:15px}.board-caption,.board-bottom{padding:15px;font-size:8px}}@media(max-width:700px){header{height:72px;padding:0 5%;gap:8px}.brand{font-size:26px;gap:6px}.brand span{font-size:22px}.pill{font-size:9px;padding:6px 8px}.code{margin-left:auto;padding:6px;font-size:8px}.code b{margin:0 3px;font-size:10px}.game header .pill{display:none}header:has(.code) .pill{display:none}.quiet{font-size:9px;padding:5px}.welcome{display:flex;flex-direction:column;padding:42px 7%;gap:40px}.welcome h1{font-size:53px}.intro{font-size:14px}.welcome-tags{gap:14px;font-size:10px}.island-preview{width:100%;max-width:450px;padding:20px 0}.welcome form{max-width:none}.fine{max-width:none}.floating-note{bottom:0;left:-5px}footer{gap:15px;line-height:1.5}footer span{max-width:140px}.game{padding:25px 4%}.game h1{font-size:27px}.game-heading .eyebrow{font-size:8px;letter-spacing:1px}.prototype{display:none}.mobile-tabs{display:flex;background:#e9ecdf;border-radius:9px;padding:4px;margin-bottom:17px;gap:4px}.mobile-tabs button{flex:1;border:0;background:transparent;padding:9px;font-size:12px}.mobile-tabs .active{background:#fffdf5;box-shadow:0 2px 5px #00000009}.play-layout{display:flex;flex-direction:column}.board-wrap .board{min-height:300px}.board-caption{padding:15px 12px;font-size:8px;gap:10px}.board-bottom{padding:10px 12px;font-size:7px}.actions{gap:6px;padding:8px}.actions button{font-size:10px;padding:12px 5px}.dice{font-size:27px;gap:1px;padding:0}.hand{display:none;order:-1}.cards-view .hand{display:block}.cards-view .board-column{display:none}.hand-title{margin-bottom:18px}.resource{height:125px;padding-top:14px}.resource>span{font-size:30px}.resources{gap:6px}.resource small{font-size:8px}.hand-note{position:static;font-size:9px;margin-top:20px;line-height:1.6}.turn-panel{padding:22px}.turn-panel h2{font-size:28px}.players{padding-bottom:5px}.log{display:none}.test-note{margin-top:20px}.hand-title .eyebrow{font-size:9px}}@media(prefers-reduced-motion:reduce){*,*::before,*::after{animation:none!important;transition:none!important;scroll-behavior:auto!important}}

.view-switch{display:flex;gap:6px;padding:0 15px 8px}.view-switch button{padding:6px 12px;font-size:10px;background:transparent;color:#d5e7d7;border-color:#ffffff30}.view-switch button[aria-pressed=true]{background:#ffffff22}.scene-view{position:relative;height:520px;background:#123d47;overflow:hidden}.scene-world{width:100%;height:100%}.scene-world canvas{display:block;touch-action:none}.scene-tools{position:absolute;bottom:12px;left:10px;right:10px;display:flex;gap:5px;flex-wrap:wrap}.scene-tools button{background:#133e45dd;color:#f7efd9;border:1px solid #ffffff30;font-size:9px;padding:8px;border-radius:7px}.scene-info{position:absolute;left:13px;top:12px;background:#133e45b8;padding:7px 10px;border-radius:7px;color:#f7efd9;font-size:9px;pointer-events:none}#scene-slot{min-width:0}@media(max-width:700px){.scene-view{height:400px}.scene-tools button{font-size:8px;padding:8px 6px}.scene-info{font-size:8px}}

.scene-world{position:relative}

.scene-tools select{font:9px "DM Sans",Arial,sans-serif;background:#133e45ed;color:#f7efd9;border:1px solid #ffffff30;border-radius:7px;padding:8px;max-width:135px;min-width:0}.scene-tools select:focus-visible{outline:2px solid #d0953e;outline-offset:3px}

/* Large displays: expand the board and scale controls instead of centering a narrow app. */
@media(min-width:1500px){
 .game{max-width:3600px;padding:32px clamp(36px,3vw,130px)}
 .play-layout{grid-template-columns:minmax(0,1fr) clamp(320px,20vw,540px);gap:clamp(22px,1.5vw,48px)}
 .scene-view{height:clamp(540px,calc(100dvh - 480px),1440px)}
 .board-wrap .board{max-height:none;height:clamp(540px,calc(100dvh - 480px),1440px)}
 .game h1{font-size:clamp(36px,2vw,65px)}
 .eyebrow,.board-caption,.board-bottom{font-size:clamp(10px,.6vw,18px)}
 .panel{padding:clamp(23px,1.5vw,45px)}
 .panel h2{font-size:clamp(28px,1.6vw,48px)}
 .panel-title,.player div>span{font-size:clamp(10px,.6vw,17px)}
 .player strong,.turn-panel p,.full{font-size:clamp(13px,.8vw,23px)}
 .player{gap:18px;padding:clamp(15px,1vw,30px) 0}
 .avatar{width:clamp(42px,2.5vw,75px);height:clamp(42px,2.5vw,75px);font-size:clamp(22px,1.4vw,40px)}
 .player>b{font-size:clamp(22px,1.6vw,42px)}
 .log p{font-size:clamp(12px,.75vw,21px)}
 .actions button{font-size:clamp(14px,.9vw,25px);padding:clamp(14px,1vw,25px)}
 .dice{font-size:clamp(38px,2.5vw,65px)}
 .scene-tools{gap:10px;bottom:18px;left:18px}
 .scene-tools button,.scene-tools select,.scene-info{font-size:clamp(11px,.7vw,20px);padding:clamp(10px,.65vw,18px)}
 .scene-tools select{max-width:240px}
 .view-switch button{font-size:clamp(12px,.7vw,20px);padding:9px 16px}
 .hand{gap:clamp(25px,2vw,60px)}
 .hand h2{font-size:clamp(27px,1.5vw,44px)}
 .resources{gap:clamp(12px,1vw,28px)}
 .resource{max-width:165px;height:clamp(110px,7vw,170px);padding:14px}
 .resource>span{font-size:clamp(30px,2vw,48px)}
 .resource strong{font-size:clamp(18px,1vw,30px)}
 .resource small,.hand-note,.test-note{font-size:clamp(11px,.65vw,18px)}
 .welcome{max-width:2500px;gap:5vw;padding-top:clamp(80px,8vh,180px)}
 .welcome h1{font-size:clamp(72px,4vw,140px)}
 .welcome .intro{font-size:clamp(17px,1vw,26px);max-width:650px}
}
@media(min-width:2500px){
 header{height:120px;gap:40px}.brand span{font-size:42px}.brand{font-size:48px}
 .pill,.code,.quiet{font-size:17px}.code b{font-size:23px}
 .game-heading{margin-bottom:35px}.prototype{font-size:15px}
 .hand-title .eyebrow{font-size:13px}.player strong small,.player>b small{font-size:13px}
 .welcome form,.welcome .fine{max-width:520px}.welcome label,.welcome input,.welcome button{font-size:21px}
 .welcome-tags,.welcome .fine,.divider{font-size:16px}.welcome .floating-note{font-size:30px}
}

/* Fullscreen keeps the existing live controls above a persistent 3D canvas. */
body.board-fullscreen{overflow:hidden;background:#123d47}
.board-fullscreen #app{height:100dvh}
.board-fullscreen .game-heading,.board-fullscreen .mobile-tabs,.board-fullscreen .test-note,.board-fullscreen .board-bottom{display:none}
.board-fullscreen .game,.board-fullscreen .play-layout,.board-fullscreen .board-column,.board-fullscreen .board-wrap{margin:0;padding:0;max-width:none;display:block;border:0;border-radius:0;background:transparent;box-shadow:none}
.board-fullscreen .scene-view{position:fixed;inset:0;width:100vw;height:100dvh;z-index:0}
.board-fullscreen header{position:fixed;left:24px;right:24px;top:16px;height:50px;padding:0;z-index:5;border:0;color:#f7f0df;pointer-events:none}
.board-fullscreen header>*{pointer-events:auto}
.board-fullscreen .brand{color:#f7f0df}.board-fullscreen .brand span{font-size:26px}
.board-fullscreen header .code,.board-fullscreen header .quiet,.board-fullscreen .pill{color:#f7f0df;background:#123e45c9;border:1px solid #e9e4cb30;backdrop-filter:blur(12px);font-size:11px;border-radius:8px}
.board-fullscreen .pill{margin-left:auto}
.board-fullscreen .view-switch{position:fixed;left:24px;top:85px;z-index:5;padding:0;gap:7px}
.board-fullscreen .view-switch button{background:var(--control-surface);font-size:11px;padding:10px 14px;color:#f7f0df;border-color:#e9e4cb30;backdrop-filter:blur(12px)}
.board-fullscreen .view-switch button[aria-pressed=true]{background:var(--control-hover)e8;border-color:#d8cda77a}
.board-fullscreen .board-caption{position:fixed;left:24px;top:135px;z-index:3;padding:9px 12px;gap:25px;background:#123e45b8;border-radius:8px;font-size:10px;color:#e3ebd9;pointer-events:none}
.board-fullscreen .scene-info{top:180px;left:24px;font-size:10px;padding:8px 12px}
.board-fullscreen aside{position:fixed;right:24px;top:100px;width:clamp(250px,18vw,350px);max-height:calc(100dvh - 185px);overflow:auto;z-index:3;gap:12px;scrollbar-width:thin;scrollbar-color:#82988b transparent}
.board-fullscreen .panel{background:#f9f5e9e8;backdrop-filter:blur(18px);border:1px solid #f5eed970;box-shadow:0 6px 24px #001e2425;padding:18px;border-radius:12px}
.board-fullscreen .panel h2{font-size:24px}.board-fullscreen .turn-panel p{font-size:12px}.board-fullscreen .panel-title{font-size:10px}.board-fullscreen .player strong{font-size:13px}.board-fullscreen .player div>span{font-size:10px}.board-fullscreen .player{padding:12px 0;gap:10px}.board-fullscreen .avatar{width:36px;height:36px;font-size:20px}.board-fullscreen .player>b{font-size:23px}.board-fullscreen .full{font-size:12px}
.board-fullscreen .log{display:block}.board-fullscreen .log p{font-size:11px}
.board-fullscreen .actions{position:fixed;bottom:24px;left:24px;width:min(560px,calc(100vw - 48px));z-index:4;background:#f9f5e9eb;backdrop-filter:blur(18px);border:1px solid #f5eed970;box-shadow:0 6px 24px #001e2425;padding:10px;margin:0;border-radius:12px}
.board-fullscreen .actions button{font-size:12px;padding:12px 8px}.board-fullscreen .dice{font-size:32px}
.board-fullscreen .hand{display:flex;position:fixed;bottom:106px;left:24px;z-index:3;width:440px;max-width:calc(100vw - 48px);padding:14px 17px;gap:12px;flex-wrap:wrap}
.board-fullscreen .hand-title{width:100%}.board-fullscreen .hand-title h2{font-size:20px;margin:4px 0}.board-fullscreen .hand-title .eyebrow{font-size:8px}
.board-fullscreen .resources{gap:8px}.board-fullscreen .resource{height:79px;min-width:45px;padding:6px}.board-fullscreen .resource>span{font-size:20px}.board-fullscreen .resource strong{font-size:14px;margin:2px 0}.board-fullscreen .resource small{font-size:9px}
.board-fullscreen .hand-note{position:static;margin:0;font-size:9px}
.board-fullscreen .scene-tools{left:auto;right:24px;bottom:24px;z-index:4;gap:6px;max-width:calc(100vw - 640px)}
.board-fullscreen .scene-tools button,.board-fullscreen .scene-tools select{font-size:10px;padding:11px 12px}.board-fullscreen .scene-tools select{max-width:150px}
.board-fullscreen .board-wrap>.board{position:fixed;inset:0;width:100vw;height:100dvh;max-height:none;background:#276b71;z-index:0}
@media(min-width:2500px){
 .board-fullscreen header{top:28px;left:36px;right:36px}.board-fullscreen .brand span{font-size:36px}
 .board-fullscreen aside{right:36px;top:120px;width:400px;gap:18px}
 .board-fullscreen .panel{padding:25px}.board-fullscreen .panel h2{font-size:30px}.board-fullscreen .player strong{font-size:18px}.board-fullscreen .turn-panel p,.board-fullscreen .log p,.board-fullscreen .full{font-size:16px}.board-fullscreen .panel-title,.board-fullscreen .player div>span{font-size:13px}
 .board-fullscreen .actions{left:36px;bottom:30px;width:680px}.board-fullscreen .actions button{font-size:18px}.board-fullscreen .dice{font-size:42px}
 .board-fullscreen .hand{left:36px;bottom:125px;width:520px}.board-fullscreen .resource{height:100px}.board-fullscreen .resource>span{font-size:28px}
 .board-fullscreen .scene-tools{right:36px;bottom:30px;max-width:calc(100vw - 780px)}.board-fullscreen .scene-tools button,.board-fullscreen .scene-tools select{font-size:15px;padding:16px}.board-fullscreen .scene-tools select{max-width:210px}
}
@media(max-width:1000px){
 .board-fullscreen aside{top:155px;right:14px;width:210px;max-height:calc(100dvh - 330px)}
 .board-fullscreen .panel{padding:12px}.board-fullscreen .panel h2{font-size:19px}.board-fullscreen .players .player{padding:9px 0}.board-fullscreen .log{display:none}
 .board-fullscreen .hand{width:320px}.board-fullscreen .actions{width:420px}
 .board-fullscreen .scene-tools{top:85px;bottom:auto;right:14px;max-width:280px;justify-content:flex-end}
}
@media(max-width:600px){
 .board-fullscreen header{left:12px;right:12px;top:8px}.board-fullscreen .brand span{font-size:20px}.board-fullscreen header .quiet{font-size:9px}
 .board-fullscreen .view-switch{left:12px;top:68px;gap:5px}.board-fullscreen .view-switch button{font-size:9px;padding:8px}
 .board-fullscreen .board-caption{left:12px;top:112px;font-size:8px;gap:12px}.board-fullscreen .scene-info{top:148px;left:12px;font-size:8px}
 .board-fullscreen aside{top:190px;right:12px;width:150px;max-height:calc(100dvh - 440px)}
 .board-fullscreen .turn-panel p,.board-fullscreen .players,.board-fullscreen .hand-title,.board-fullscreen .hand-note{display:none}.board-fullscreen .turn-panel h2{font-size:16px}.board-fullscreen .full{font-size:10px;padding:8px}
 .board-fullscreen .hand{left:12px;bottom:88px;width:calc(100vw - 24px);max-width:none;padding:9px}
 .board-fullscreen .resource{height:66px}.board-fullscreen .resource>span{font-size:17px}.board-fullscreen .resource small{font-size:8px}
 .board-fullscreen .actions{left:12px;bottom:12px;width:calc(100vw - 24px);padding:8px}.board-fullscreen .actions button{font-size:10px;padding:10px 4px}.board-fullscreen .dice{font-size:26px}
 .board-fullscreen .scene-tools{top:148px;right:12px;max-width:155px;gap:4px}.board-fullscreen .scene-tools button,.board-fullscreen .scene-tools select{font-size:8px;padding:6px}
}
/* Separate controllers keep the shared display free of private cards. */
.controller-shell{max-width:600px;margin:24px auto;padding:0 16px 40px;display:grid;gap:16px}.controller-shell h1{font-size:32px}.controller-shell .hand{display:block;margin:0}.controller-shell .resources{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:6px}.controller-shell .resource{width:auto;min-width:0;padding:12px 4px}.controller-shell .resource span{font-size:26px}.controller-shell .resource strong{font-size:22px}.controller-shell .resource small{font-size:10px}.controller-actions{display:grid;gap:10px}.controller-actions button{min-height:54px}.build-options{display:grid;grid-template-columns:repeat(2,1fr);gap:8px}.build-options button{text-align:left;min-height:64px}.build-options small{display:block;opacity:.7;margin-top:4px}.host-access details{padding:12px 0}.host-access summary{cursor:pointer;font-weight:bold}.invite-secret{display:block;letter-spacing:3px;font-size:24px;margin:14px 0}.host-access p{font-size:13px}.host-access button{margin-top:8px}.board-fullscreen .actions{width:auto;max-width:650px;gap:16px}.board-fullscreen .actions strong{font-size:15px}.board-fullscreen .actions small{font-size:11px}.board-fullscreen aside .host-access{padding:16px}.board-fullscreen .host-access h2{font-size:23px}.board-fullscreen .host-access p{font-size:12px}.board-fullscreen .host-access button{font-size:12px;padding:11px}.board-fullscreen .host-access .invite-secret{font-size:22px}.board-fullscreen .host-access details p{font-size:11px}.controller-mode header{gap:12px;flex-wrap:wrap}.controller-mode header .code{font-size:11px}.controller-mode header .pill{display:none}@media(max-width:600px){.controller-mode header{padding:16px}.controller-mode .brand{font-size:24px}.controller-mode header .quiet{margin-left:auto}.controller-shell{margin-top:12px}.controller-shell .panel{padding:18px}.board-fullscreen .actions small{display:none}.board-fullscreen aside{max-height:calc(100dvh - 300px)}.board-fullscreen .host-access{display:none}}
.controller-shell .board{width:100%;height:auto;background:#247a83;border-radius:18px}.host-access input[readonly]{font-size:12px;width:100%;min-width:0}
.board-fullscreen .scene-world>[role="status"]{top:215px!important;left:24px;right:auto!important}
.join-qr{margin:14px auto;width:240px;max-width:100%;background:white;border-radius:12px;overflow:hidden}.join-qr svg{display:block;width:100%;height:auto}.map-terrain{text-anchor:middle;fill:#203f37;font:11px Arial,sans-serif}.map-number{text-anchor:middle;fill:#333;font:bold 17px Georgia,serif}.build-target{cursor:pointer}.build-target:focus{outline:none;filter:drop-shadow(0 0 4px #ff8c00)}.build-confirm{position:sticky;bottom:12px;background:#fff9e9;border:2px solid #d6a34b;border-radius:16px;padding:12px;box-shadow:0 5px 20px #1233}.build-confirm button{margin-top:8px}.setup-instruction{background:#e9ecd8;padding:12px;border-radius:12px}.map-scroll{overflow:auto;border-radius:16px;background:#247a83}.controller-shell .map-scroll .board{width:700px;max-width:none;display:block}.map-scroll .build-target circle:first-child{r:22px}.controller-shell .build-panel{min-width:0}.map-scroll .build-target line:first-child{stroke-width:36px}

.invite-entry header{justify-content:center;padding:28px 20px}.invite-welcome{max-width:440px;margin:clamp(24px,8vh,90px) auto;padding:0 20px}.invite-welcome .panel{padding:32px}.invite-welcome h1{font-size:44px;margin:12px 0}.invite-welcome p{line-height:1.6}.invite-welcome input{width:100%;margin:8px 0 18px}.invite-welcome button{min-height:54px}.invite-welcome [role="alert"]{color:#9c3524;font-weight:600}@media(max-width:480px){.invite-welcome .panel{padding:24px}.invite-entry .brand{font-size:28px}}

/* Calm illustrated terrain map for the personal build controller. */
.controller-shell{max-width:680px}.controller-shell .turn-panel{order:0}.controller-shell .build-panel{order:1;padding:0;overflow:hidden;background:#fffdf7;border:1px solid #e0e4d9;border-radius:24px;box-shadow:0 12px 36px #20453b0a}.controller-shell .controller-actions{order:2}.controller-shell .hand{order:3}.controller-shell .players{order:4}.build-panel>.eyebrow{padding:24px 24px 0;color:#718c7d;font-size:10px;letter-spacing:2px}.build-panel>h2{padding:0 24px;font-size:27px;margin:9px 0}.build-panel>p{padding:0 24px;font-size:13px;color:#7a887f;margin:0 0 16px}.map-toolbar{display:flex;align-items:center;justify-content:space-between;padding:10px 18px;background:#edf2e9;color:#406b60;font-size:11px;border-top:1px solid #e0e7dc}.map-toolbar>span{display:flex;align-items:center;gap:7px}.map-toolbar i{width:9px;height:9px;background:#fff;border:2px solid #4c8178;border-radius:50%}.map-toolbar>div{display:flex;align-items:center;gap:12px}.map-toolbar button{width:32px;height:32px;border-radius:10px;padding:0;font-size:20px;background:#fffdf7}.map-toolbar>div>span{font-size:10px;font-variant-numeric:tabular-nums;min-width:30px;text-align:center}.controller-shell .map-scroll{border-radius:0;background:#183f52;max-height:75dvh;overscroll-behavior:contain;scrollbar-width:thin}.controller-shell .map-scroll .board{min-width:0;max-width:none;height:auto;display:block;border-radius:0;animation:none}.map-scroll .build-target circle:first-child{r:19px}.map-footnote{text-align:center;padding:12px;color:#8a968d;font-size:10px;background:#f4f6ef}.build-map .map-terrain{fill:#fff4d8;font:8px 'DM Sans',sans-serif;text-anchor:middle;letter-spacing:.3px}.build-map .map-number{font:bold 20px Georgia,serif}.map-probability{font:8px Arial,sans-serif;text-anchor:middle;fill:#a68551;letter-spacing:1px}.controller-shell .build-confirm{margin:16px;bottom:12px;border-radius:16px;border:1px solid #c8dace;background:#edf4e9;box-shadow:0 8px 24px #163c3320}.build-confirm>p{margin:0 0 6px;font-size:13px}.controller-mode.founding-mode .controller-actions,.controller-mode.founding-mode .hand{display:none}.founding-mode .controller-shell .turn-panel h1{font-size:30px;margin:10px 0}.founding-mode .controller-shell .turn-panel>p:not(.setup-instruction){display:none}.founding-mode .setup-instruction{font-size:13px;line-height:1.7;margin-bottom:0;background:#eaf0e3;color:#496655}.build-target.chosen{filter:drop-shadow(0 0 5px #ffc56a)}.build-map .build-target{transition:none;animation:none}.build-map .build-target:hover{filter:drop-shadow(0 0 3px #d5f9ed)}@media(max-width:600px){.controller-shell{padding:0 12px 30px;gap:12px}.controller-shell .build-panel{padding:0}.build-panel>.eyebrow{padding:20px 18px 0}.build-panel>h2{font-size:24px;padding:0 18px}.build-panel>p{padding:0 18px}.controller-shell .turn-panel{padding:18px;border-radius:20px}.map-toolbar{padding:8px 12px}.controller-mode header .brand{font-size:23px}.controller-mode header .code{font-size:9px}.controller-mode header .quiet{font-size:10px;padding:9px}}
/* The phone is a game screen: map underneath a compact HUD. */
html:has(body.controller-mode),body.controller-mode{overflow:hidden;background:#0d2e39}.controller-mode #app{position:relative;height:100%;overflow:hidden}.controller-mode #app>header{display:none}.controller-stage{position:absolute;inset:0;width:100%;height:100%;isolation:isolate;background:radial-gradient(ellipse at 50% 50%,#337f85,#123a50);color:#f7f4e6;overflow:hidden}.controller-stage .controller-map-viewport{position:absolute;inset:90px 0 120px;max-height:none;border-radius:0;background:transparent;display:flex;overflow:auto;overscroll-behavior:contain;scrollbar-width:none;touch-action:pan-x pan-y}.controller-map-viewport::-webkit-scrollbar{display:none}.controller-map-viewport .board{flex:none;display:block;margin:auto;width:calc(min(100vw,(100dvh - 210px)*1.036)*var(--map-zoom))!important;max-width:none;height:auto;border-radius:0;background:transparent;animation:none}.controller-hud{position:absolute;z-index:2;top:max(16px,env(safe-area-inset-top));left:16px;right:16px;display:flex;align-items:center;justify-content:space-between;gap:12px;pointer-events:none}.controller-hud>*{pointer-events:auto}.controller-turn{display:flex;align-items:center;gap:10px;padding:12px 16px;background:#10343bd9;border:1px solid #e4f5df20;backdrop-filter:blur(16px);border-radius:18px;box-shadow:0 4px 20px #00273422}.controller-player-dot{width:9px;height:9px;border-radius:50%;box-shadow:0 0 0 4px #ffffff12;flex-shrink:0}.controller-turn small{font-size:9px;letter-spacing:1px;color:#a7c8c0}.controller-turn h1{font:500 21px 'Fraunces',Georgia,serif;line-height:1.2;margin:4px 0 0;color:#fff7df}.controller-hud-buttons{display:flex;gap:8px}.hud-icon{position:relative;width:50px;height:50px;display:grid;place-items:center;padding:12px;border-radius:16px;border:1px solid #e4f5df35;background:#10343be6;color:#fff6df;backdrop-filter:blur(16px);font-size:22px}.hud-icon svg{width:29px;height:29px;overflow:visible}.hud-icon svg rect{fill:#416c66;stroke:#f7e8bd;stroke-width:1.6}.hud-icon svg path{fill:none;stroke:#f7e8bd;stroke-width:1.4}.hud-icon b{position:absolute;right:-4px;top:-5px;background:#efca7d;color:#264e47;min-width:21px;height:21px;border-radius:20px;font-size:10px;display:grid;place-items:center;border:2px solid #17434d}.controller-dock{position:absolute;z-index:3;bottom:max(16px,env(safe-area-inset-bottom));left:16px;right:16px;margin:auto;max-width:720px;padding:14px 16px;background:#10363ce8;border:1px solid #e4f5df2b;backdrop-filter:blur(20px);border-radius:22px;box-shadow:0 8px 30px #00293640}.controller-instruction{font-size:12px;color:#e5edde;text-align:center;margin:0;line-height:1.5}.screen-actions,.screen-confirm{display:flex;align-items:center;justify-content:center;gap:8px;margin-top:12px}.screen-actions button,.screen-confirm button{min-height:44px;font-size:12px;padding:11px 14px;border-radius:12px;background:#ffffff0d;color:#fcf6e4;border-color:#ffffff25}.screen-actions button.primary,.screen-confirm button.primary{background:#f0cb83;color:#234d45;border-color:#f0cb83}.screen-actions button.selected{background:#4c7e70;border-color:#b5d3b8}.screen-confirm span{font-size:12px;margin-right:auto;color:#d9e8d9}.controller-step{display:flex;justify-content:center;align-items:center;gap:12px;margin-top:12px;font-size:10px;color:#88aba4}.controller-step span{border:1px solid #ffffff15;padding:7px 12px;border-radius:20px}.controller-step .active{background:#f3d593;color:#254d43;border-color:#f3d593}.controller-step .done{color:#d0e3d5;border-color:#94b8a3}.controller-step i{width:24px;height:1px;background:#92b5a6}.no-build-place{display:block;font-size:10px;color:#f0d49a;margin-top:8px;text-align:center}.controller-sheet{position:fixed;inset:auto 0 0;width:min(100%,650px);max-width:100%;max-height:88dvh;margin:0 auto;padding:0;border:1px solid #d6e0d3;border-bottom:0;border-radius:28px 28px 0 0;background:#f8f5e9;color:#24463e;box-shadow:0 -12px 60px #08262c44;overflow:auto;overscroll-behavior:contain}.controller-sheet::backdrop{background:#061f2cd6;backdrop-filter:blur(5px)}.sheet-inner{padding:10px 24px max(30px,env(safe-area-inset-bottom))}.sheet-grip{width:38px;height:4px;background:#d0d9cc;border-radius:5px;margin:0 auto 22px}.sheet-heading{display:flex;align-items:center;justify-content:space-between;gap:10px}.sheet-heading h2{font-size:32px;margin:8px 0}.sheet-heading .eyebrow{font-size:9px;color:#77917e;letter-spacing:1.8px}.sheet-heading>button{width:42px;height:42px;padding:0;border-radius:50%;background:#e9eddf;border:0;font-size:18px;flex:none}.sheet-subtitle{font-size:12px;color:#7d8e7e;margin:0}.card-hand{display:flex;justify-content:center;gap:7px;padding:42px 0 28px}.card-hand .hand-card{position:relative;display:flex;align-items:center;flex-direction:column;justify-content:center;gap:8px;width:95px;min-width:0;height:148px;padding:14px 4px;border-radius:14px;border:1px solid #cbd4ba;box-shadow:0 8px 15px #244c3b15;transform:rotate(var(--card-angle));transform-origin:50% 120%;background-image:linear-gradient(145deg,#ffffff77,transparent)}.card-hand .hand-card>span{font-size:33px}.card-hand .hand-card>strong{font-size:26px;background:#fff8dd99;border-radius:8px;min-width:30px;text-align:center}.card-hand .hand-card>small{font-size:10px}.build-costs{border-top:1px solid #dde2d0;padding-top:10px}.build-costs p{display:flex;justify-content:space-between;align-items:center;gap:12px;font-size:11px;line-height:1.7}.build-costs b{white-space:nowrap}.build-costs span{color:#71836f;text-align:right}.controller-sheet .players{background:transparent;border:0;padding:16px 0;margin:0;box-shadow:none}.sheet-dice{display:flex;align-items:center;justify-content:space-between;padding:12px 0;border-top:1px solid #dbe1d0;font-size:12px;color:#71836f}.sheet-dice .dice{font-size:32px}.sheet-log{padding:14px 0}.sheet-log p{font-size:12px;line-height:1.6;color:#6f816f}.controller-mode #toast{z-index:20}
@media(max-width:480px){.controller-hud{left:12px;right:12px;top:max(12px,env(safe-area-inset-top));gap:8px}.controller-turn{padding:10px 12px;gap:8px;min-width:0}.controller-turn h1{font-size:18px}.controller-turn small{font-size:8px;letter-spacing:.4px}.hud-icon{width:44px;height:44px;border-radius:14px;padding:9px}.controller-hud-buttons{gap:6px}.controller-dock{left:10px;right:10px;padding:12px;border-radius:18px}.controller-instruction{font-size:11px}.screen-actions{gap:5px;flex-wrap:wrap}.screen-actions button{font-size:11px;padding:10px;flex:1;white-space:nowrap}.screen-confirm{flex-wrap:wrap}.screen-confirm button{padding:10px;font-size:11px}.sheet-inner{padding-left:20px;padding-right:20px}.sheet-heading h2{font-size:28px}.card-hand{gap:4px;padding-top:35px}.card-hand .hand-card{height:122px;border-radius:11px;gap:6px}.card-hand .hand-card>span{font-size:26px}.card-hand .hand-card>strong{font-size:23px}.card-hand .hand-card>small{font-size:8px}.build-costs p{font-size:10px}}
@media(orientation:landscape) and (max-height:600px){.controller-hud{top:max(8px,env(safe-area-inset-top));left:max(12px,env(safe-area-inset-left));right:max(12px,env(safe-area-inset-right))}.controller-turn{padding:8px 12px}.controller-turn h1{font-size:17px}.hud-icon{width:42px;height:42px;padding:8px}.controller-stage .controller-map-viewport{inset:58px 0 90px}.controller-map-viewport .board{width:calc(min(100vw,(100dvh - 148px)*1.036)*var(--map-zoom))!important}.controller-dock{bottom:8px;padding:9px 14px;max-width:650px}.controller-step{margin-top:5px}.screen-actions,.screen-confirm{margin-top:6px}.controller-sheet{max-height:96dvh}.card-hand{padding-top:18px;padding-bottom:12px}.card-hand .hand-card{height:105px}.sheet-grip{margin-bottom:10px}}
.card-hand{padding-left:16px;padding-right:16px}
/* Shared session controls, sound settings and synchronized start roll. */
.audio-intro,.audio-footnote{font-size:12px;line-height:1.7;color:#71836f}.audio-footnote{font-size:10px;margin-top:20px}.audio-mute{display:flex;align-items:center;gap:12px;padding:20px 0;border-bottom:1px solid #dce2d2;font-size:13px}.audio-mute input{width:22px;height:22px;accent-color:#235f54}.audio-slider{display:grid;grid-template-columns:1fr auto;gap:12px;align-items:center;padding:17px 0 4px;font-size:13px}.audio-slider output{font-size:12px;font-variant-numeric:tabular-nums;color:#6b8370}.audio-slider input{grid-column:1/-1;width:100%;height:28px;padding:0;accent-color:#28675b;cursor:pointer}.finish-actions{display:flex;gap:10px;justify-content:flex-end;flex-wrap:wrap;margin-top:24px}.danger{background:#aa4b3f;color:#fff8e8;border-color:#aa4b3f}.danger-quiet{color:#a04a3e!important;border-color:#d7b8a7!important}.board-fullscreen .danger-quiet{margin-top:12px}.game-notice{position:fixed;top:max(95px,env(safe-area-inset-top));left:50%;transform:translate(-50%,-15px);z-index:1000;max-width:calc(100vw - 32px);width:max-content;padding:16px 24px;border-radius:18px;pointer-events:none;opacity:0;background:#edf1e3;color:#24483e;border:1px solid #b6c9b4;box-shadow:0 12px 35px #14372c2b;text-align:center;font-weight:600;font-size:14px;transition:opacity .22s,transform .22s}.game-notice.visible{opacity:1;transform:translate(-50%,0)}.game-notice.turn{background:#f4d99b;border-color:#fff1c4;color:#234d40;font:500 27px 'Fraunces',Georgia,serif}.game-notice.winner{background:#e5efdc}.starter-panel{padding:22px;background:#faf6e9;color:#294d43;border:1px solid #d6dfcc;border-radius:20px;box-shadow:0 8px 28px #183d3410}.starter-panel h2{font-size:27px;margin:8px 0 10px}.starter-panel>p{font-size:12px;line-height:1.6;color:#758771}.starter-panel>.eyebrow{font-size:9px;letter-spacing:2px}.starter-results{display:grid;gap:8px;margin:20px 0}.starter-result{display:flex;align-items:center;gap:10px;min-height:50px;padding:8px;border-radius:13px;background:#e9eee0}.starter-result strong{font-size:13px;flex:1}.starter-die{display:inline-grid;place-items:center;font-size:39px;line-height:1;min-width:44px;color:#385e4d}.starter-result.winner{background:#f4dfab}.starter-panel>small{display:block;font-size:10px;line-height:1.7;margin-top:12px;color:#849075}.starter-panel summary{font-size:11px;cursor:pointer;margin-top:12px}.starter-panel details p{font-size:10px}.starter-on-map{position:absolute;z-index:4;left:50%;top:50%;transform:translate(-50%,-50%);width:min(420px,calc(100% - 28px));max-height:calc(100dvh - 200px);overflow:auto;box-shadow:0 20px 100px #072d4780}.starter-winner{font-size:12px;line-height:1.5;padding:14px;background:#e7eddc;border-radius:12px;color:#315946}.dice-arrive{animation:dice-arrive .55s ease-out}@keyframes dice-arrive{0%{transform:rotate(-90deg) scale(.55);opacity:.2}65%{transform:rotate(12deg) scale(1.12)}100%{transform:rotate(0) scale(1);opacity:1}}.board-fullscreen header #open-audio{pointer-events:auto}.board-fullscreen aside .starter-panel h2{font-size:24px}.board-fullscreen aside .starter-panel p{font-size:12px}.board-fullscreen aside .starter-result .avatar{width:28px;height:28px;font-size:12px}.board-fullscreen aside .starter-die{font-size:32px}
@media(max-width:480px){.controller-hud-buttons .hud-icon{width:39px;height:42px;padding:8px;border-radius:13px}.controller-hud-buttons{gap:5px}.controller-turn{max-width:calc(100vw - 165px);padding:10px}.controller-turn h1{font-size:16px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.controller-turn>div{min-width:0}.controller-turn small{display:block;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.starter-panel{padding:18px}.starter-panel h2{font-size:24px}.starter-on-map{max-height:calc(100dvh - 210px)}.game-notice{font-size:12px;padding:13px 18px;top:94px}.game-notice.turn{font-size:25px}.finish-actions{flex-direction:column}.finish-actions button{width:100%}}
@media(prefers-reduced-motion:reduce){.dice-arrive{animation:none}.game-notice{transition:none}}

.notice-die{display:block;font-size:42px;line-height:1;margin-bottom:8px;color:#365d49;animation:dice-arrive .55s ease-out}@media(prefers-reduced-motion:reduce){.notice-die{animation:none}}

/* Keep the landing illustration inside its curved frame; the note stays outside. */
.home-entry .island-preview{aspect-ratio:1 / 1.08;padding:0;min-width:0;isolation:isolate}.home-entry .preview-surface{position:absolute;inset:0;overflow:hidden;border-radius:inherit;display:flex;align-items:center;justify-content:center;background:linear-gradient(#143e53,#277e88)}.home-entry .preview-surface .board{width:100%;height:100%;max-width:100%;display:block}.home-entry .preview-label{position:absolute;top:28px;left:18px;right:18px;z-index:1;font-size:8px;letter-spacing:2.5px}.home-entry .floating-note{z-index:2;bottom:-10px}@media(max-width:600px){.home-entry .preview-label{top:20px;font-size:7px;letter-spacing:2px}.home-entry .floating-note{bottom:-14px}}

.home-entry .preview-surface .board>rect:first-of-type{display:none}

/* Shared live screen: room invitations belong to the lobby. */
.live-game .turn-panel,.live-game .board-caption,.live-game .actions small{display:none}
.board-column>.log{margin-top:20px;text-align:left}
.board-column>.log .panel-title{font-size:13px;letter-spacing:2px}
.board-column>.log p{font-size:16px;line-height:1.65;margin:14px 0;color:#466154;overflow-wrap:anywhere}
.board-column>.log p:first-of-type{font-size:19px;font-weight:600;color:#203f3b}
.board-fullscreen .board-column>.log{display:block;position:fixed;left:24px;bottom:112px;width:clamp(260px,23vw,420px);max-height:calc(100dvh - 350px);overflow:auto;z-index:3;margin:0;background:#f9f5e9ed;backdrop-filter:blur(18px)}
.board-fullscreen.live-game .scene-info{display:none}
.game-notice.live-turn{top:50%;transform:translate(-50%,-45%);width:min(850px,calc(100vw - 48px));padding:clamp(28px,5vw,64px);font:500 clamp(32px,5vw,76px)/1.15 'Fraunces',Georgia,serif;letter-spacing:-.03em;background:#fff5d9f5;color:#214c43;border:1px solid #f9d98c;border-radius:28px;box-shadow:0 24px 100px #092c4570;backdrop-filter:blur(20px);overflow-wrap:anywhere}
.game-notice.live-turn::before{content:'DER NÄCHSTE SPIELZUG';display:block;font:700 11px 'DM Sans',sans-serif;letter-spacing:3px;color:#7c8a66;margin-bottom:18px}
.game-notice.live-turn.visible{transform:translate(-50%,-50%)}
@media(min-width:2200px){.board-fullscreen .board-column>.log{left:36px;bottom:130px;width:460px;padding:28px}.board-fullscreen .board-column>.log p{font-size:21px}.board-fullscreen .board-column>.log p:first-of-type{font-size:25px}}
@media(max-width:900px){.board-fullscreen .board-column>.log{left:14px;bottom:105px;width:240px;max-height:calc(100dvh - 290px);padding:16px}.board-fullscreen .board-column>.log p{font-size:13px}.board-fullscreen .board-column>.log p:first-of-type{font-size:15px}}
@media(max-width:600px){.board-fullscreen .board-column>.log{left:12px;bottom:88px;width:calc(100vw - 186px);max-height:32dvh;padding:12px}.board-fullscreen .board-column>.log .panel-title{font-size:9px;letter-spacing:1px}.board-fullscreen.live-game header .code,.board-fullscreen.live-game header .pill{display:none}.board-fullscreen.live-game header{gap:8px}.board-fullscreen.live-game header .brand{margin-right:auto}}
@media(prefers-reduced-motion:reduce){.game-notice.live-turn{transition:none}}
.board-fullscreen.live-game header #finish-game{color:#f5c1a9!important;margin-top:0}

/* Public dice reveal uses the server's result; the movement is decorative. */
.game-notice.dice-roll{top:50%;transform:translate(-50%,-45%);width:min(580px,calc(100vw - 40px));padding:32px 42px;border-radius:28px;background:#fff6dfee;border:1px solid #f6da9d;color:#214c43;box-shadow:0 24px 100px #092c4570;backdrop-filter:blur(20px)}
.game-notice.dice-roll.visible{transform:translate(-50%,-50%)}
.roll-label{font-size:clamp(18px,2vw,28px);overflow-wrap:anywhere}
.roll-pair{display:flex;justify-content:center;gap:28px;margin:30px 0;perspective:700px}
.roll-die{width:clamp(76px,9vw,128px);aspect-ratio:1;display:grid;grid-template-columns:repeat(3,1fr);grid-template-rows:repeat(3,1fr);gap:9%;padding:16px;border-radius:20%;background:linear-gradient(135deg,#fffef7,#eed9ae);border:2px solid #fff9e7;box-shadow:0 8px 0 #c4a77c,0 14px 24px #6a4b3433}
.roll-die:nth-child(2){background:linear-gradient(135deg,#ef956e,#c25942);border-color:#f6bb8c;box-shadow:0 8px 0 #8e4436,0 14px 24px #6a4b3433}
.roll-die i{border-radius:50%;background:transparent}.roll-die .pip{background:#244c43;box-shadow:inset 0 2px 2px #092c4555}.roll-die:nth-child(2) .pip{background:#fff4d9}
.rolling .roll-die{animation:live-dice-tumble 1s ease-out both}.rolling .roll-die:nth-child(2){animation-name:live-dice-tumble-second}
.roll-result{min-height:80px;display:flex;justify-content:center;align-items:center;gap:14px;font-size:clamp(22px,3vw,36px);font-variant-numeric:tabular-nums}.roll-result strong{font:600 clamp(54px,6vw,80px)/1 'Fraunces',Georgia,serif;color:#b65c36}.rolling .roll-result{font-size:16px;color:#78846b}
@keyframes live-dice-tumble{0%{transform:translate(-70px,-45px) rotate(-120deg) rotateY(160deg);opacity:.3}45%{transform:translate(10px,-25px) rotate(30deg) rotateY(50deg)}75%{transform:translate(-4px,4px) rotate(-12deg)}100%{transform:none;opacity:1}}
@keyframes live-dice-tumble-second{0%{transform:translate(70px,-70px) rotate(160deg) rotateX(150deg);opacity:.3}45%{transform:translate(-12px,-35px) rotate(-40deg) rotateX(50deg)}75%{transform:translate(5px,4px) rotate(15deg)}100%{transform:none;opacity:1}}
@media(prefers-reduced-motion:reduce){.rolling .roll-die{animation:none}.game-notice.dice-roll{transition:none}}
/* Player board and permanently visible private hand. */
.controller-stage{--hand-height:150px;--dock-height:112px}

.controller-stage .controller-map-viewport{inset:80px 0 calc(var(--hand-height) + var(--dock-height) + env(safe-area-inset-bottom));border-radius:0;display:flex;align-items:flex-start;justify-content:flex-start}
.controller-stage .controller-map-viewport .board{width:calc(min(100vw,(100dvh - 80px - var(--hand-height) - var(--dock-height) - env(safe-area-inset-bottom))*1.036)*var(--map-zoom))!important;min-width:300px;max-width:none;height:auto;flex:none;margin:auto;overflow:visible}
.controller-stage .controller-dock{bottom:calc(var(--hand-height) + env(safe-area-inset-bottom));padding:9px 12px;left:10px;right:10px}

.screen-actions{flex-wrap:nowrap!important;gap:6px;margin-top:7px}.screen-actions button{width:46px;min-width:42px;min-height:46px;padding:9px!important;flex:1;max-width:72px}.screen-actions svg{display:block;width:25px;height:25px;margin:auto}
.persistent-hand{position:absolute;z-index:3;bottom:0;left:0;right:0;height:calc(var(--hand-height) + env(safe-area-inset-bottom));padding:6px 12px calc(6px + env(safe-area-inset-bottom));background:linear-gradient(#153d48f5,#0c2c39);border-top:1px solid #cde9da33;color:#f5e8c8}

.mini-card{flex:1;min-width:0;border:1px solid #f7dfa2aa;border-radius:10px;background-image:linear-gradient(145deg,#fff9da88,transparent);box-shadow:0 4px 10px #0003;color:#25473f;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:3px}.mini-card>span{font-size:clamp(22px,4vh,36px)}.mini-card strong{font-size:20px}.mini-card small{font-size:10px;font-weight:600}
.build-target{pointer-events:all}.build-target line:last-child{filter:drop-shadow(0 1px 2px #083a42);stroke-opacity:.95}.build-target:hover line:last-child,.build-target:focus line:last-child{stroke:#ffe09a;stroke-width:12px}
@media(max-height:650px){.controller-stage{--hand-height:82px;--dock-height:100px}.mini-card{flex-direction:row;gap:5px}.mini-card>span{font-size:20px}.mini-card small{font-size:8px}.controller-stage .controller-map-viewport{top:65px}.controller-instruction{font-size:10px}}
.dice-theatre{position:fixed;inset:0;z-index:1200;display:flex;flex-direction:column;align-items:center;justify-content:center;background:rgba(0,0,0,.78);color:#fff1ce;pointer-events:auto;padding:max(16px,env(safe-area-inset-top)) 16px max(16px,env(safe-area-inset-bottom))}
.dice-theatre h2{font-size:clamp(24px,4vw,48px);margin:10px;text-align:center;overflow-wrap:anywhere}.dice-stage{width:min(100%,1000px);height:min(52dvh,550px);background:transparent;overflow:hidden}.dice-stage canvas{width:100%;height:100%;display:block}.dice-total{font:600 clamp(40px,7vw,90px)/1.1 'Fraunces',Georgia,serif;text-align:center;min-height:110px;margin-top:20px}.dice-total p{font:400 clamp(16px,2vw,26px) 'DM Sans',sans-serif;margin:12px}.dice-fallback{display:flex;align-items:center;justify-content:center;gap:24px;font-size:110px;background:transparent}.dice-placeholder{display:grid;place-items:center;width:90px;height:90px;border:2px solid #f5e5c7;border-radius:16px;background:#fff0cc;color:#24483b;font-size:52px}.dice-placeholder:nth-child(2){background:#b9573e;color:#fff4d7}
.resource-gain{position:fixed;z-index:1100;left:50%;top:40%;transform:translate(-50%,-50%);width:min(440px,calc(100vw - 24px));padding:22px;border-radius:24px;background:#fff4dbf5;box-shadow:0 12px 65px #062b4855;pointer-events:none;text-align:center}.resource-gain h2{font-size:24px;margin:0 0 18px}.gain-cards{display:flex;gap:9px}.gain-cards .mini-card{height:120px;animation:gain-rise .45s ease-out}
@keyframes gain-rise{from{transform:translateY(30px);opacity:0}to{transform:none;opacity:1}}
@media(prefers-reduced-motion:reduce){.gain-cards .mini-card{animation:none}}
@media(max-height:500px){.dice-theatre{flex-direction:row;gap:16px}.dice-theatre h2{font-size:18px;max-width:20%}.dice-stage{height:80dvh;width:50%}.dice-total{font-size:36px;min-height:0;max-width:25%}.dice-total p{font-size:14px}}
.controller-turn h1{letter-spacing:-.3px}
.mini-card.r0{background-color:#b8cba6}.mini-card.r1{background-color:#e8b799}.mini-card.r2{background-color:#d9dea7}.mini-card.r3{background-color:#eed38d}.mini-card.r4{background-color:#c6d0d0}.mini-card{color:#24463e}.mini-card>span>svg{display:block;width:48px;height:48px}.gain-cards .mini-card{max-width:130px}.gain-cards{justify-content:center}
@media(max-height:650px){.mini-card>span>svg{width:25px;height:25px}}
@media(orientation:landscape) and (max-height:600px){
 .controller-stage .persistent-hand{left:auto;right:0;top:65px;bottom:0;width:190px;height:auto;padding:6px 10px max(6px,env(safe-area-inset-bottom));border-top:0;border-left:1px solid #cde9da33}
 .controller-stage .controller-map-viewport{inset:60px 190px 100px}
 .controller-stage .controller-map-viewport .board{width:calc(min(100vw - 190px,(100dvh - 160px)*1.036)*var(--map-zoom))!important;min-width:140px}
 .controller-stage .controller-dock{left:max(10px,env(safe-area-inset-left));right:200px;bottom:max(8px,env(safe-area-inset-bottom))}

}
.controller-hud-buttons .hud-icon svg path{fill:none;stroke:currentColor;stroke-width:1.8}
.controller-audio-settings{border-top:1px solid #dbe1d0;padding:16px 0}.controller-audio-settings summary{cursor:pointer;font-weight:600;font-size:15px}.controller-sheet .sheet-heading h2{overflow-wrap:anywhere}
/* Larger touch board; the hand and dock retain their reserved screen space. */
.controller-hud-buttons .hud-icon{padding:0;display:grid;place-items:center}
.controller-hud-buttons .hud-icon svg{display:block;width:26px;height:26px;margin:0;overflow:hidden}
.controller-map-viewport .build-target circle:first-child{r:26px}
.controller-stage :is(.hud-icon,.screen-actions button,.screen-confirm button){--controller-button-bg:var(--control-surface);--controller-button-color:#fcf6e4;background:var(--controller-button-bg);color:var(--controller-button-color)}
.controller-stage :is(.screen-actions,.screen-confirm) button.primary{--controller-button-bg:#f0cb83;--controller-button-color:#234d45}
.controller-stage .screen-actions button.selected{--controller-button-bg:#4c7e70}
.controller-stage :is(.hud-icon,.screen-actions button,.screen-confirm button):is(:hover,:active,:focus-visible):not(:disabled){background:var(--controller-button-bg);color:var(--controller-button-color);filter:brightness(1.12);transform:none}
/* Fit the complete island including harbors; pinch transforms only this viewport. */
.controller-stage .controller-map-viewport{touch-action:none;overflow:auto}
.controller-stage .controller-map-viewport .board{width:var(--board-width,100%)!important;min-width:0!important;max-width:none;height:auto;margin:auto}
.controller-sheet select{display:block;width:100%;padding:12px;margin:8px 0 16px;border:1px solid #c8d5bf;border-radius:10px;background:#fffaf0;color:#24483e;font:inherit}
.controller-sheet form{max-width:none}.controller-sheet p{line-height:1.6}.development-rule{font-size:12px;color:#6e806c}.development-hand{display:grid;grid-template-columns:repeat(auto-fit,minmax(180px,1fr));gap:12px;margin-top:20px}.development-card{padding:18px;border-radius:15px;border:1px solid #bfceb4;background:linear-gradient(140deg,#fff6dc,#dce4cb)}.development-card h3{font-family:Georgia,serif;margin:0 0 12px}.development-card p,.development-card small{font-size:12px}.development-card small{display:block;margin-top:8px}.development-card button{width:100%}

@media(max-width:420px){.screen-actions{gap:4px}.screen-actions button{min-width:38px;width:42px;padding:8px!important}}
/* Quiet shared-screen settings, outside the play area until opened. */
.board-settings-trigger{position:fixed;right:max(18px,env(safe-area-inset-right));bottom:max(18px,env(safe-area-inset-bottom));z-index:20;display:grid;place-items:center;width:44px;height:44px;padding:10px;border-radius:14px;border:1px solid #edf1d933;background:var(--control-surface);color:#f7f0df;backdrop-filter:blur(12px);box-shadow:0 4px 16px #082e3926}
.board-settings-trigger svg{width:22px;height:22px;display:block}.board-settings-trigger:hover{background:var(--control-hover);color:#fff4dc}.board-settings-trigger:focus-visible{outline:2px solid #f0cb83;outline-offset:3px}
.board-settings-panel{position:fixed;inset:auto max(18px,env(safe-area-inset-right)) calc(74px + env(safe-area-inset-bottom)) auto;margin:0;width:min(300px,calc(100vw - 36px));max-height:calc(100dvh - 100px);overflow:auto;padding:20px;border:1px solid #e8e3c94d;border-radius:18px;background:var(--control-panel);color:#f7f0df;box-shadow:0 12px 45px #051c3266;backdrop-filter:blur(18px)}
.board-settings-panel h2{font-size:22px;margin:0 0 16px;color:inherit}
.board-settings-panel .scene-tools,.board-fullscreen .board-settings-panel .scene-tools{position:static;inset:auto;display:grid;grid-template-columns:1fr;max-width:none;gap:9px}
.board-settings-panel .scene-tools button,.board-settings-panel .scene-tools select,.board-fullscreen .board-settings-panel .scene-tools button,.board-fullscreen .board-settings-panel .scene-tools select{width:100%;max-width:none;min-height:44px;padding:11px 14px;font-size:13px;text-align:left;background:#ffffff0b;color:#f7f0df;border:1px solid #ffffff29;border-radius:10px}
.board-settings-panel .scene-tools button:hover,.board-settings-panel .scene-tools button[aria-pressed=true]{background:var(--control-hover)}.board-settings-panel select option{background:#102d47;color:#f7f0df}
.board-settings-trigger:is(:hover,:active,:focus-visible):not(:disabled){background:var(--control-hover);color:#fff4dc;transform:none}
.board-settings-panel .scene-tools button:hover:not(:disabled){background:var(--control-hover);color:#f7f0df;transform:none}
.lobby-player-names{list-style:none;margin:16px 0;padding:0;display:grid;gap:10px}.lobby-player-names li{display:flex;align-items:center;gap:10px;font-size:14px;line-height:1.4;min-width:0}.lobby-player-names li>span:last-child{overflow-wrap:anywhere}.lobby-player-dot{width:10px;height:10px;border-radius:50%;flex:none}
/* One quiet lobby card, with secondary actions revealed only on demand. */
.host-lobby .game-heading,.host-lobby header .code,.host-lobby header .pill{display:none}
.host-lobby header{height:76px;border-bottom:0}.host-lobby header #leave{margin-left:auto}
.host-lobby .game{padding-top:12px}.host-lobby .play-layout{grid-template-columns:minmax(0,1fr) 300px;align-items:start;gap:24px}
.host-lobby .scene-view{height:calc(100dvh - 150px);min-height:400px}.host-lobby .board-wrap{border-radius:20px;overflow:hidden;box-shadow:none}
.host-lobby .lobby-card{padding:24px;border:1px solid #dedfd1;border-radius:20px;box-shadow:none;background:#faf8f1}
.lobby-card-heading{display:flex;align-items:center;justify-content:space-between;gap:16px}.lobby-card-heading h2{margin:0;font-size:27px}.lobby-card-heading>span{font-size:13px;color:#78847a;font-variant-numeric:tabular-nums}
.lobby-card .lobby-player-names:empty{display:none}.lobby-card .lobby-player-names{margin:20px 0}
.lobby-card .lobby-invite{margin:18px 0 14px;padding:0}.lobby-invite>summary{padding:13px 14px;border:1px solid #d6ddcc;border-radius:10px;text-align:center;list-style:none;font-size:13px}.lobby-invite>summary::-webkit-details-marker{display:none}.lobby-invite[open]>summary{background:#edf0e5}
.lobby-card .join-qr{margin-top:16px}.lobby-card .invite-secret{font-size:16px;text-align:center}.lobby-card .lobby-invite p{font-size:12px;text-align:center}.lobby-card #start{margin-top:0;min-height:46px}
.lobby-minimum{display:block;text-align:center;font-size:11px;color:#78847a;margin-top:8px}.lobby-card .lobby-more{padding:0;margin-top:20px}.lobby-card .lobby-more>summary{font-size:11px;font-weight:400;color:#78847a;text-align:center}.lobby-more p{font-size:12px}
.host-lobby.board-fullscreen .scene-view{height:100dvh}.host-lobby.board-fullscreen aside{top:94px;width:300px}.host-lobby.board-fullscreen .lobby-card{background:#faf8f1ed}
@media(max-width:700px){.host-lobby .play-layout{display:flex;flex-direction:column}.host-lobby .scene-view{height:42dvh;min-height:260px}.host-lobby aside{width:100%}.host-lobby.board-fullscreen aside{width:min(280px,calc(100vw - 28px));top:130px;max-height:calc(100dvh - 210px)}.host-lobby.board-fullscreen .host-access{display:block}.host-lobby .lobby-card{padding:20px}}
/* View controls float over the board; the host needs no page header. */
.board-wrap{position:relative}
.board-wrap .view-switch{position:absolute;top:16px;left:16px;z-index:5;padding:0;gap:6px}
.board-wrap .view-switch button{background:var(--control-surface);color:#f7f0df;border-color:#e9e4cb30;backdrop-filter:blur(12px);min-height:36px}
.board-wrap .view-switch button:hover:not(:disabled),.board-wrap .view-switch button[aria-pressed=true]{background:var(--control-hover)e8;color:#f7f0df;transform:none}
.board-fullscreen .board-wrap .view-switch{position:fixed;top:20px;left:20px}
.host-view .game-heading{display:none}.host-view .game{padding-top:20px}.host-lobby .scene-view{height:calc(100dvh - 40px)}
.host-session-options{font-size:12px;color:#71836f;padding:12px}.host-session-options summary{cursor:pointer}.host-session-options button{display:block;width:100%;margin-top:10px;font-size:12px}
.host-lobby.board-fullscreen aside{top:20px}
@media(max-width:700px){.board-wrap .view-switch{top:12px;left:12px}.board-fullscreen .board-wrap .view-switch{top:12px;left:12px}.host-lobby .scene-view{height:48dvh;min-height:280px}.host-lobby.board-fullscreen .scene-view{height:100dvh}.host-lobby.board-fullscreen aside{top:68px}}
/* The host always uses the entire browser viewport as the game table. */
.host-view.board-fullscreen .game{padding:0}
.host-lobby.board-fullscreen aside{top:max(18px,env(safe-area-inset-top));right:max(18px,env(safe-area-inset-right));width:280px;max-height:calc(100dvh - 94px)}
.host-lobby.board-fullscreen .lobby-card{padding:18px;border-radius:16px;background:#faf8f1e8;backdrop-filter:blur(16px);box-shadow:0 8px 32px #082c3426}
.host-lobby.board-fullscreen .lobby-card-heading h2{font-size:23px}.host-lobby.board-fullscreen .lobby-invite{margin:14px 0 10px}.host-lobby.board-fullscreen .lobby-more{margin-top:14px}
.host-view .view-switch button{font-size:11px}
@media(max-width:700px){.host-lobby.board-fullscreen aside{top:64px;right:12px;width:min(260px,calc(100vw - 24px));max-height:calc(100dvh - 140px)}.host-lobby.board-fullscreen .lobby-card{padding:16px}}
.lobby-card .lobby-invite .join-qr{width:176px;margin:10px auto}.lobby-card .lobby-invite p{margin:8px 0;line-height:1.5}.lobby-card .lobby-invite .invite-secret{margin:8px 0;font-size:14px}
.board-wrap .view-switch .fullscreen-icon,.board-wrap .view-switch .board-settings-trigger{position:static;inset:auto;display:grid;place-items:center;flex:none;width:44px;height:44px;min-height:44px;padding:10px;border-radius:14px;box-shadow:0 4px 16px #082e3926}
.view-switch .fullscreen-icon svg,.view-switch .board-settings-trigger svg{width:22px;height:22px;display:block}
.board-settings-panel{inset:74px auto auto 20px;max-height:calc(100dvh - 94px)}
@media(max-width:700px){.board-settings-panel{inset:66px auto auto 12px}}

.player-trade{margin-top:24px;padding-top:16px;border-top:1px solid var(--line)}
.player-trade fieldset{min-width:0;margin:14px 0;padding:12px;border:1px solid var(--line);border-radius:10px}
.player-trade legend{font-size:13px;font-weight:700;padding:0 5px}
.player-trade fieldset label{display:flex;align-items:center;justify-content:space-between;gap:12px}
.player-trade fieldset input{width:88px;padding:9px}
.player-trade .development-card{overflow-wrap:anywhere}
.player-trade .development-card button{margin:8px 6px 0 0}

/* CATANIA wordmark: classical gold capitals on a deep red panel. */
.brand .brand-wordmark{
 display:inline-block;flex:none;padding:.10em .22em .13em;
 font-family:"Times New Roman",Times,Georgia,serif;font-size:clamp(30px,3.2vw,47px);font-weight:700;
 line-height:.94;letter-spacing:-.035em;color:#ffdf69;
 background:linear-gradient(110deg,#9c0c18,#b71220 65%,#920b15);
 border:1px solid #7e1019;border-radius:2px;
 text-shadow:0 1px 0 #fff0a655,0 2px 2px #67101355;
 white-space:nowrap;font-style:normal;
}
.brand{gap:0;text-decoration:none}
@media(max-width:600px){.brand .brand-wordmark{font-size:30px}}
.board-fullscreen .brand .brand-wordmark{font-size:25px}

.lighting-controls{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:5px;width:100%;min-width:0;grid-column:1/-1}
.lighting-controls button{min-width:0;padding:10px 4px;font:600 11px Arial,sans-serif;white-space:nowrap;text-align:center}
.lighting-controls button[aria-pressed="true"]{background:#e2bc70;color:#193f43;border-color:#f3d797}
.lighting-controls .lighting-status{grid-column:1/-1;font:10px/1.5 Arial,sans-serif;color:inherit;opacity:.8;margin-top:3px}

.lighting-controls button{display:grid;place-items:center;min-height:42px}
.lighting-controls button svg{display:block;width:24px;height:24px}
.lighting-controls button[data-lighting-mode="interval"][aria-pressed="true"] svg{animation:lighting-cycle-turn 12s linear infinite}
@keyframes lighting-cycle-turn{to{transform:rotate(360deg)}}
@media(prefers-reduced-motion:reduce){.lighting-controls button[data-lighting-mode="interval"] svg{animation:none!important}}

/* Mobile table: content-sized controls reserve their own space around the island. */
.controller-stage{
 --hand-height:94px;display:grid;
 grid-template-rows:auto minmax(0,1fr) auto auto;
 padding-top:env(safe-area-inset-top);
 background:radial-gradient(ellipse at 50% 35%,#39858a 0%,#174957 65%,#10343e 100%);
}
.controller-stage .controller-hud{position:relative;inset:auto;grid-row:1;padding:12px max(14px,env(safe-area-inset-right)) 8px max(14px,env(safe-area-inset-left));gap:12px}
.controller-stage .controller-turn{max-width:none;min-width:0;flex:0 1 auto;padding:6px 12px;border-radius:16px;box-shadow:none}
.controller-stage .controller-turn>div{min-width:0}
.controller-stage .controller-turn h1{font:600 17px/1.3 'DM Sans',sans-serif;letter-spacing:0;margin:0 0 2px;white-space:nowrap;text-overflow:ellipsis;overflow:hidden}
.controller-stage .controller-turn small{display:block;font-size:10px;letter-spacing:.5px;white-space:nowrap}
.controller-stage .controller-hud-buttons{flex:none}
.controller-stage .controller-hud-buttons .hud-icon{width:46px;height:46px}
.controller-stage .controller-map-viewport{position:relative;inset:auto;grid-row:2;grid-column:1;min-height:0;min-width:0;margin-bottom:0}

.controller-stage .controller-dock{position:relative;inset:auto;grid-row:3;width:calc(100% - 20px);max-width:720px;margin:0 auto 10px;padding:12px;border-radius:20px}
.controller-stage .controller-instruction{font-size:12px;line-height:1.5;text-wrap:pretty}
.controller-stage .screen-actions{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:5px;margin-top:0}
.controller-stage .screen-actions button{display:grid;place-items:center;width:100%;max-width:none;min-width:0;min-height:62px;padding:8px 2px!important;border-radius:12px}
.controller-stage .screen-actions svg{width:34px;height:34px;margin:0}

.controller-stage .screen-actions button.selected{box-shadow:inset 0 0 0 2px #e8d49e}
.controller-stage .screen-confirm{margin:0}
.controller-stage .screen-confirm button.primary{width:100%;min-height:50px;font-size:16px;--controller-button-bg:linear-gradient(135deg,#ffe299,#edb747);--controller-button-color:#234d45;border-color:#f6d481;box-shadow:inset 0 1px 0 #fff3bf80,0 4px 12px #00293630}
.controller-stage .controller-build-confirm{position:relative;z-index:5;grid-row:2;grid-column:1;align-self:end;justify-self:center;width:calc(100% - 20px);max-width:720px;margin:0 auto 14px;padding:0;border:0;background:none;box-shadow:none;pointer-events:none}
.controller-build-confirm button{pointer-events:auto}
.controller-stage.has-build-selection .controller-floating-actions{margin-bottom:80px}
.founding-mode .controller-stage .controller-dock{padding:0;border:0;background:none;box-shadow:none;backdrop-filter:none}
.controller-stage .persistent-hand{position:relative;inset:auto;grid-row:4;width:100%;height:var(--hand-height);padding:4px max(12px,env(safe-area-inset-right)) 16px max(12px,env(safe-area-inset-left));background:linear-gradient(#123d46,#0d2e39)}

.resource-strip{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));height:100%;width:100%;max-width:650px;margin:0 auto}
.resource-total{display:flex;flex-direction:column;align-items:center;justify-content:center;gap:2px;min-width:0;color:#fff2cf}
.resource-symbol{display:block;width:40px;height:40px}
.resource-symbol svg{display:block;width:100%;height:100%}
.resource-total.is-empty{opacity:.5}
.resource-total strong{font-size:22px;line-height:24px;font-weight:600;font-variant-numeric:tabular-nums}
/* Floating shortcuts stay above the turn controls and clear of the resource totals. */
.controller-floating-actions{position:relative;z-index:4;grid-row:2;grid-column:1;align-self:end;justify-self:end;display:flex;gap:12px;margin:0 max(14px,env(safe-area-inset-right)) 14px 0;pointer-events:none}
.controller-floating-actions .floating-action{position:relative;display:grid;place-items:center;width:52px;height:52px;padding:0;border-radius:50%;border:1px solid #cde9da55;background:linear-gradient(145deg,#2c5b61f5,#173f48f5);color:#fff0c9;box-shadow:0 6px 18px #001b2a66,inset 0 1px 0 #ffffff18;backdrop-filter:blur(12px);pointer-events:auto}
.controller-floating-actions .floating-action:is(:hover,:active):not(:disabled){background:linear-gradient(145deg,#376b70,#1d4b54);transform:none}
.floating-action>svg{display:block;width:25px;height:25px}
.floating-count{position:absolute;top:-6px;right:-6px;display:grid;place-items:center;width:24px;height:24px;border-radius:50%;background:#fff;color:#173f48;box-shadow:0 2px 6px #001b2a40;font-size:12px;line-height:1;font-weight:700;font-variant-numeric:tabular-nums}
.floating-notification-dot{position:absolute;top:1px;right:1px;width:10px;height:10px;border-radius:50%;background:#fff;box-shadow:0 0 0 2px #214b52}

.controller-stage :is(button,input,select):focus-visible{outline:2px solid #f0cb83;outline-offset:3px}
.controller-sheet .sheet-heading{position:sticky;top:0;z-index:2;background:#f8f5e9;padding:8px 0 12px}
.controller-sheet .sheet-heading>button{width:44px;height:44px}
.controller-sheet input,.controller-sheet select{font-size:16px;min-height:48px}
.controller-sheet .sheet-inner{padding-left:20px;padding-right:20px}
@media(max-width:700px){
 .invite-entry header{height:76px;padding:12px max(20px,env(safe-area-inset-left));border-bottom:0}
 .invite-welcome{margin:24px auto;padding:0 18px max(24px,env(safe-area-inset-bottom))}
 .invite-welcome .panel{padding:26px 22px;border-radius:22px;background:#fffdf6;box-shadow:0 12px 40px #284a3610}
 .invite-welcome h1{font-size:40px;line-height:1.15}
 .invite-welcome input{font-size:16px;min-height:54px;border-radius:12px}
 .invite-welcome form{max-width:none}
 .invite-welcome form .primary{justify-content:center;border-radius:12px;font-size:15px}
 .controller-sheet{max-height:calc(100dvh - max(12px,env(safe-area-inset-top)));border-radius:24px 24px 0 0}
 .controller-sheet .sheet-heading h2{font-size:27px}
}
@media(max-height:700px){
 .controller-stage{--hand-height:86px}
 .controller-stage .controller-map-viewport{margin-bottom:72px}
 
 .controller-stage .controller-hud{padding-top:6px;padding-bottom:4px}
 .controller-stage .controller-turn h1{font-size:17px}
 .controller-stage .controller-dock{padding:9px;margin-bottom:6px}
 .controller-stage .screen-actions button{min-height:54px}

}

@media(orientation:landscape) and (max-height:600px){
 .controller-stage{grid-template-columns:minmax(0,1fr) minmax(230px,30%);grid-template-rows:auto minmax(0,1fr) auto}
 .controller-stage .controller-hud{grid-column:1/-1;padding-top:4px;padding-bottom:4px}
 .controller-stage .controller-turn{padding:6px 12px}
 .controller-stage .controller-map-viewport{grid-row:2;grid-column:1;margin-bottom:0;margin-right:0}
 
 .controller-stage .controller-dock{grid-row:2;grid-column:2;align-self:center;width:calc(100% - 20px);max-height:calc(100% - 16px);overflow:auto;margin:8px 10px;padding:10px}
 .controller-stage .controller-instruction{font-size:11px}
 .controller-stage .screen-actions{grid-template-columns:repeat(3,minmax(0,1fr));margin-top:0}
 .controller-stage .screen-actions button{min-height:48px}
 .controller-stage .screen-actions svg{width:30px;height:30px}
 .controller-stage .persistent-hand{grid-column:1/-1;grid-row:3;height:90px;min-height:0;padding:8px calc(max(14px,env(safe-area-inset-right)) + 132px) 16px max(14px,env(safe-area-inset-left));border-left:0;border-top:1px solid #cde9da33}

 .controller-stage .resource-strip{height:66px;max-width:600px;margin:0 auto}
 .controller-stage .controller-floating-actions{grid-row:3;grid-column:1/-1;align-self:center;margin-bottom:8px}

}
/* Long turn headings and the starter draw stay within the reserved play area. */
.controller-stage{grid-template-columns:minmax(0,1fr)}
.controller-stage .controller-hud{min-width:0}
.controller-stage>.starter-on-map{position:relative;inset:auto;transform:none;grid-column:1;grid-row:2;align-self:center;justify-self:center;min-height:0;max-height:100%;margin:0;width:min(420px,calc(100% - 28px));overflow:auto;overscroll-behavior:contain}

@media(orientation:landscape) and (max-height:600px){
 .controller-stage{grid-template-columns:minmax(0,1fr) minmax(230px,30%)}
 .controller-stage:not(.has-turn-controls):not(.has-build-selection):not(.robber-placement) .controller-map-viewport{grid-column:1/-1}
 .controller-stage.has-build-selection .controller-map-viewport{grid-column:1}
 .controller-stage .controller-build-confirm{grid-column:2;align-self:center;width:calc(100% - 20px);margin:0 10px}
 .controller-stage.has-turn-controls .controller-build-confirm{align-self:start;margin-top:10px}
 .controller-stage.has-turn-controls.has-build-selection .controller-dock{align-self:end;max-height:calc(100% - 70px)}
 .controller-stage.has-build-selection .controller-floating-actions{margin-bottom:8px}
}
@media(orientation:landscape) and (max-height:360px){
 .controller-stage .controller-dock{max-height:calc(100% - 8px);margin:4px 10px;padding:7px}
 .controller-stage .screen-actions button,.controller-stage .screen-confirm button.primary{min-height:44px}
 .controller-stage .screen-actions button{padding:6px 2px!important}
 .controller-stage.has-turn-controls .controller-build-confirm{margin-top:4px}
 .controller-stage.has-turn-controls.has-build-selection .controller-dock{max-height:calc(100% - 56px)}
}

/* The entry screen contains only the wordmark and the two ways into a game. */
.home-screen{position:relative;isolation:isolate;min-height:100dvh;display:grid;place-items:center;padding:max(24px,env(safe-area-inset-top)) max(24px,env(safe-area-inset-right)) max(24px,env(safe-area-inset-bottom)) max(24px,env(safe-area-inset-left));background:#25483d url('/images/catania-opener-v1.jpg') center 48%/cover no-repeat}
.home-screen::before{content:"";position:absolute;inset:0;z-index:-1;pointer-events:none;background:radial-gradient(ellipse at 50% 52%,#082e3266,transparent 65%),linear-gradient(0deg,#082c3433,transparent 45%)}
.home-menu{width:min(100%,340px);display:grid;gap:44px}
.home-menu .brand{justify-content:center}
.home-menu .brand-wordmark{font-size:clamp(48px,7vw,68px);box-shadow:0 8px 32px #142e3459}
.home-actions{display:grid;gap:14px}
.home-actions button{width:100%;min-height:56px;margin:0;padding:15px 20px;border-radius:12px;font-size:16px;box-shadow:0 6px 22px #08262c33}
.home-actions button.primary{background:#143f42f5;border-color:#c9d5b580;color:#fff8e5}
.home-actions button.primary:hover{background:#225858}
.home-actions button:not(.primary){background:#fff5dff5;border-color:#fff4d6;color:#21473e}
.home-actions button:not(.primary):hover{background:#fff9eb}
.home-actions button:focus-visible{outline:3px solid #fff1bb;outline-offset:4px}
.home-join-dialog{width:min(440px,calc(100vw - 32px));max-height:calc(100dvh - 32px);padding:24px;border:1px solid #d6dfcc;border-radius:20px;background:#f8f5e9;color:#24463e;box-shadow:0 20px 80px #08262c44;overflow:auto}
.home-join-dialog::backdrop{background:#061f2cb3;backdrop-filter:blur(5px)}
.home-join-heading{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-bottom:20px}
.home-join-heading h2{margin:0;font-size:28px}
.home-join-heading button{width:44px;height:44px;padding:0;flex:none;border:0;border-radius:50%;background:#e9eddf;font-size:18px}
.home-join-dialog form{max-width:none}
.home-join-fields{display:grid;grid-template-columns:1fr 1fr;gap:14px}
.home-join-fields label{min-width:0;margin:0;font-size:13px}
.home-join-fields input{margin-top:8px;font-size:16px;min-height:50px;padding:12px}
.home-join-dialog form .primary{justify-content:center;min-height:50px;margin-top:20px;font-size:15px}
.home-join-dialog [role=alert]{color:#9c3524;font-size:13px;line-height:1.5}
@media(orientation:landscape) and (max-height:500px){.home-menu{gap:28px}.home-menu .brand-wordmark{font-size:54px}.home-actions{gap:12px}.home-actions button{min-height:52px}.home-join-dialog{padding:18px 24px}.home-join-heading{margin-bottom:14px}}

@media(max-width:500px){.home-join-fields{grid-template-columns:1fr}}

/* Allow normal scrolling, but keep native touch zoom off the application UI. */
html,body,dialog{touch-action:pan-x pan-y}

/* Keep the document anchored; only the app and its panels may scroll. */
html{height:100%;overflow:hidden;overscroll-behavior:none;background:#143f42}
body{position:fixed;inset:0;width:100%;height:100%;overflow:hidden;overscroll-behavior:none;background:#143f42}
#app{height:100%;overflow:auto;overscroll-behavior:none}
.home-screen{height:100%;min-height:0;overflow:auto;overscroll-behavior:none}
/* Paint the opener on the page itself, including iOS standalone safe areas. */
html:has(body.home-entry),body.home-entry{background:#25483d url('/images/catania-opener-v1.jpg') center 48%/cover no-repeat}
.home-entry .home-screen{background:transparent}
.controller-stage .controller-map-viewport,
.controller-stage>.starter-on-map,
.controller-sheet,
.home-join-dialog,
.board-settings-panel,
.board-fullscreen aside{overscroll-behavior:none}

/* Three short join steps, centered in both phone orientations. */
.home-actions button small{display:block;font-size:11px;font-weight:400;margin-top:5px}
.home-actions button:disabled{opacity:.7}
.home-join-fields{grid-template-columns:1fr}
.join-progress{font-size:11px;font-weight:700;letter-spacing:1px;text-transform:uppercase;color:#6a7e70;margin:0 0 16px}
.join-setup-screen{padding:20px max(20px,env(safe-area-inset-right)) 20px max(20px,env(safe-area-inset-left))}
.join-setup-card{width:min(100%,460px);max-height:100%;overflow:auto;overscroll-behavior:none;padding:26px;border:1px solid #f5efd8;border-radius:24px;background:#fbf7ec;box-shadow:0 20px 80px #08262c59}
.join-setup-card .home-join-heading{margin:0 0 6px}
.join-setup-card .join-progress{margin:0}
.join-setup-card h1{font-size:30px;letter-spacing:-.8px;line-height:1.2;margin:8px 0 24px}
.join-setup-card form{max-width:none}
.join-setup-card input{font-size:16px;min-height:52px}
.join-setup-card form .primary{justify-content:center;min-height:50px;margin-top:18px}
.join-setup-card [role=alert]{color:#9c3524;font-size:13px;line-height:1.5}
.seat-reserved{text-align:center;color:#65806c;font-size:11px;margin:20px 0 0}
.avatar-choices{--avatar-size:128px;position:relative;display:grid;grid-auto-flow:column;grid-auto-columns:var(--avatar-size);gap:14px;overflow-x:auto;overflow-y:hidden;padding:12px max(0px,calc((100% - var(--avatar-size))/2));scroll-snap-type:x mandatory;scrollbar-width:none;overscroll-behavior-x:contain;touch-action:pan-x}
.avatar-choices::-webkit-scrollbar{display:none}
.avatar-choice{min-width:0;padding:0;border:0;background:transparent;border-radius:50% 50% 12px 12px;position:relative;scroll-snap-align:center;transform:scale(.76);opacity:.65;transition:transform .2s,opacity .2s}
.avatar-choice:hover:not(:disabled){background:transparent;transform:scale(.82)}
.avatar-choice.is-preview,.avatar-choice.is-preview:hover:not(:disabled){transform:scale(1);opacity:1}
.avatar-portrait{display:block;position:relative;aspect-ratio:1;border-radius:50%;overflow:hidden;background:var(--avatar-background,#e0e7da);border:3px solid #fffdf5;box-shadow:0 2px 8px #294a3f24}
.avatar-portrait img,.avatar img{position:absolute;width:var(--portrait-scale,170%);height:var(--portrait-scale,170%);max-width:none;left:50%;top:var(--portrait-top,-3%);transform:translateX(-50%);object-fit:contain;pointer-events:none;user-select:none}
.avatar-choice:hover:not(:disabled) .avatar-portrait,.avatar-choice.is-preview .avatar-portrait{border-color:#d6ac5c}
.avatar-name{display:block;font-size:14px;font-weight:600;margin-top:10px}
.avatar-navigation{display:flex;align-items:center;justify-content:center;gap:18px;margin:5px 0 12px}
.avatar-navigation button{display:grid;place-items:center;width:40px;height:40px;padding:0;border:0;border-radius:50%;background:#e9eddf;font-size:27px;font-weight:400}
.avatar-navigation span{min-width:48px;text-align:center;font-size:12px;color:#6a7e70;font-variant-numeric:tabular-nums}
#select-avatar{min-height:50px;margin:0;font-size:15px}
.avatar-taken{display:none;position:absolute;inset:0;place-items:center;font-size:24px;background:#e4e4dd66;color:#375846}
.avatar-choice.is-taken,.avatar-choice.is-taken.is-preview{opacity:.45}
.avatar-choice.is-taken img{filter:grayscale(1)}
.avatar-choice.is-taken .avatar-taken{display:grid}
#edit-setup-name{display:block;margin:16px auto 0;font-size:12px;text-decoration:underline;text-underline-offset:3px}
.avatar{position:relative;overflow:hidden;flex:none;border:2px solid var(--player);background:#e2e8d7}
.controller-player-avatar{width:40px;height:40px}
.lobby-player-names small{display:block;font-size:10px;color:#7b8979;margin-top:3px}
@media(max-width:380px){.join-setup-card{padding:20px 16px}.avatar-choices{--avatar-size:112px;gap:10px}.join-setup-card h1{font-size:27px}}
@media(orientation:landscape) and (max-height:500px){.join-setup-screen{padding-top:12px;padding-bottom:12px}.join-setup-card{padding:14px 24px;max-height:calc(100dvh - 24px)}.join-setup-card h1{font-size:26px;margin:2px 0 8px}.join-setup-card .home-join-heading{margin-bottom:0}.join-setup-card .home-join-heading button{width:34px;height:34px}.avatar-choices{--avatar-size:88px;padding-top:5px;padding-bottom:5px}.avatar-name{margin-top:6px;font-size:12px}.avatar-navigation{margin:2px 0 6px}.avatar-navigation button{width:30px;height:30px;font-size:23px}#select-avatar{min-height:42px}.seat-reserved{margin-top:8px}#edit-setup-name{margin-top:6px}}

/* Phones join a computer-hosted game; the opener stays deliberately minimal. */
.mobile-home .home-menu{height:100%;min-height:220px;position:relative;display:block}
.mobile-home .home-menu>.brand{position:absolute;left:0;right:0;top:28%;transform:translateY(-50%)}
.mobile-home .home-actions{position:absolute;left:0;right:0;top:72%;transform:translateY(-50%)}
.mobile-home #join-session{background:#143f42f5;color:#fff8e5;border-color:#c9d5b580}

/* A quiet lobby on phones before the host starts the game. */
.waiting-room-mode{background:#082a46;color:#f4f7ff}
.waiting-room{min-height:100%;width:min(100%,560px);margin:auto;padding:max(42px,env(safe-area-inset-top)) max(24px,env(safe-area-inset-right)) max(32px,env(safe-area-inset-bottom)) max(24px,env(safe-area-inset-left))}
.waiting-wordmark{font-family:Georgia,serif;letter-spacing:3px;font-size:12px;color:#a8bfd3}
.waiting-room h1{font-family:'DM Sans',sans-serif;font-size:32px;font-weight:600;letter-spacing:-.6px;margin:24px 0 10px;color:#f4f7ff}
.waiting-room-intro>p{font-size:14px;color:#a5bed5;margin:0}

.waiting-room-count{display:flex;justify-content:space-between;font-size:10px;font-weight:700;letter-spacing:1.8px;color:#97b4ce;margin:0 4px 16px}
.waiting-room-count span{letter-spacing:1px}
.waiting-room-list{list-style:none;margin:0;padding:0;display:grid;gap:12px}
.waiting-player{display:flex;align-items:center;gap:15px;padding:7px 18px 7px 9px;min-height:90px;border-radius:42px 16px 16px 42px;background:#2d4e81;box-shadow:0 5px 0 #061d322b;position:relative}
.waiting-player.is-self{background:#345c91}
.waiting-player-portrait{position:relative;flex:none}
.waiting-player .avatar{width:74px;height:74px;border:3px solid #a7c5da;background:#b3caca;font-family:'DM Sans',sans-serif;font-size:26px;color:#24425b}
.waiting-seat{position:absolute;left:-5px;top:-6px;width:23px;height:23px;display:grid;place-items:center;border-radius:50%;background:#264c76;border:2px solid #082a46;color:#e1eeff;font-size:12px;font-weight:700}
.waiting-player-name{min-width:0;flex:1}
.waiting-player-name strong{display:block;font-size:18px;font-weight:600;line-height:1.3;overflow-wrap:anywhere;color:#fff}
.waiting-player-name small{display:block;font-size:11px;color:#b4cae0;margin-top:5px}
.waiting-self{font-size:9px;letter-spacing:1px;border:1px solid #789bbd;color:#d6e9ff;border-radius:5px;padding:4px;flex:none}
@media(orientation:landscape) and (max-height:600px){.waiting-room{width:min(100%,960px);min-height:100%;display:grid;grid-template-columns:220px minmax(0,1fr);align-items:center;gap:32px;padding:24px max(32px,env(safe-area-inset-right)) 24px max(32px,env(safe-area-inset-left))}.waiting-room h1{font-size:30px}.waiting-room-list{gap:9px}.waiting-player{min-height:62px;padding:5px 16px 5px 7px;gap:14px}.waiting-player .avatar{width:52px;height:52px}.waiting-player-name strong{font-size:16px}.waiting-room-count{margin-bottom:12px}}

.waiting-player{border:1px solid var(--player);background:linear-gradient(100deg,var(--player-wash),transparent 85%),#243f67}
.waiting-player.is-self{background:linear-gradient(100deg,var(--player-wash),transparent 85%),#2c4c76}
.waiting-player .avatar{border-color:var(--player)}
.waiting-seat{border-color:var(--player)}

.waiting-room-intro{margin-bottom:36px}
.waiting-player img{transform-origin:50% 36%;animation:waiting-avatar-idle 13s ease-in-out infinite}
.waiting-player:nth-child(2) img{animation-duration:16s;animation-delay:-5s}
.waiting-player:nth-child(3) img{animation-duration:14s;animation-delay:-9s}
.waiting-player:nth-child(4) img{animation-duration:18s;animation-delay:-3s}
@keyframes waiting-avatar-idle{0%,12%,40%,100%{transform:translateX(-50%) translateY(0) rotate(0)}20%{transform:translateX(-50%) translateY(-.6%) rotate(-2deg)}27%{transform:translateX(-50%) translateY(-.4%) rotate(1.2deg)}65%{transform:translateX(-50%) translateY(-.7%) rotate(0)}78%{transform:translateX(-50%) translateY(0) rotate(0)}}
@media(orientation:landscape) and (max-height:600px){.waiting-room-intro{margin-bottom:0}}
@media(prefers-reduced-motion:reduce){.waiting-player img{animation:none}}

/* The shared desktop screen keeps the roster anchored above settings. */
.live-player-overlay{position:fixed;right:max(18px,env(safe-area-inset-right));bottom:78px;z-index:4;width:280px;padding:13px;border-radius:18px;border:1px solid #c8d9ec33;background:#092a43eb;backdrop-filter:blur(16px);box-shadow:0 10px 32px #03172240;color:#f3f6ff}
.live-roster-heading{display:flex;justify-content:space-between;font-size:9px;font-weight:700;letter-spacing:1.7px;color:#afc6db;margin-bottom:10px}
.live-player-overlay ol{list-style:none;margin:0;padding:0;display:grid;gap:7px}
.live-roster-player{display:grid;grid-template-columns:auto minmax(0,1fr) auto;align-items:center;gap:6px 10px;min-height:51px;padding:5px 9px 5px 5px;border:1px solid var(--player);border-radius:10px;background:linear-gradient(100deg,var(--player-wash),transparent),#243f67}
.live-roster-player .avatar,.board-fullscreen .live-roster-player .avatar{width:40px;height:40px;border:2px solid var(--player);background:#b5cccd}
.live-roster-player>div{min-width:0;flex:1}
.live-roster-player strong{display:block;font-size:13px;font-weight:600;overflow-wrap:anywhere;line-height:1.2}
.live-roster-player small{display:block;font-size:9px;font-weight:400;color:#b8cee2;margin-top:4px}
.live-roster-player>b{font-size:19px;white-space:nowrap;flex:none}
.live-roster-player>b small{display:inline;font-size:8px}
.live-roster-player.is-active{box-shadow:0 0 0 2px var(--player);background:linear-gradient(100deg,var(--player-wash),transparent),#3c5d7c}
.board-fullscreen.has-live-roster aside{max-height:calc(100dvh - var(--live-roster-space) - 110px)}
.host-lobby.board-fullscreen.has-live-roster aside{max-height:calc(100dvh - var(--live-roster-space) - 32px)}
@media(min-width:2200px){.live-player-overlay{width:340px;right:30px;bottom:84px;padding:16px}.live-roster-player strong{font-size:16px}.live-roster-player small{font-size:11px}.live-roster-player .avatar,.board-fullscreen .live-roster-player .avatar{width:48px;height:48px}}
@media(max-width:700px){.live-player-overlay{width:200px;right:12px;bottom:74px;padding:10px}.live-roster-player strong{font-size:11px}.live-roster-player .avatar{width:34px;height:34px}}

/* Translucent glass lets the harbor remain visible behind the live roster. */
.live-player-overlay,.live-game .board-column>.log,.live-game .actions{background:linear-gradient(135deg,#d3efff2b,#12385855 42%,#071e365c);border-color:#d2eeff55;backdrop-filter:blur(6px) saturate(135%);-webkit-backdrop-filter:blur(6px) saturate(135%);box-shadow:inset 0 1px 0 #ffffff4d,inset 0 -1px 0 #0a254133,0 12px 32px #03172233}
.live-roster-heading{font-size:11px;letter-spacing:1px;color:#e3f0fc}
.live-roster-player{background:linear-gradient(110deg,var(--player-wash),#ffffff08),#12345140;box-shadow:inset 0 1px 0 #ffffff26}
.live-roster-player.is-active{background:linear-gradient(110deg,var(--player-wash),#ffffff12),#244d7066}

/* Shared game information sits around the board, with one clear turn heading. */
.live-game .game-heading{display:none}
.live-game .actions{position:fixed;top:max(20px,env(safe-area-inset-top));bottom:auto;left:50%;right:auto;transform:translateX(-50%);z-index:4;width:max-content;max-width:min(760px,calc(100vw - 380px));margin:0;padding:13px 24px;gap:16px;border:1px solid #d2eeff55;border-radius:18px;justify-content:center;color:#fff5dc;text-align:center}
.live-game .actions strong{font:500 clamp(20px,2vw,28px)/1.25 'Fraunces',Georgia,serif;overflow-wrap:anywhere}
.live-game .actions .dice{flex:none;display:flex;align-items:center;justify-content:center;align-self:center;gap:8px;padding:0;color:#fff0c8;font-size:64px;line-height:1}
.live-game .actions .dice span{display:flex;align-items:center;justify-content:center;line-height:1}
.live-game .actions .dice svg{display:block;width:40px;height:40px}
.live-game:not(.board-fullscreen) .actions{top:110px}
.live-game .board-column>.log{position:fixed;z-index:3;display:block;margin:0;left:max(24px,env(safe-area-inset-left));bottom:max(24px,env(safe-area-inset-bottom));width:clamp(280px,25vw,420px);max-height:min(38dvh,380px);padding:18px 20px;border-radius:18px;color:#e3f0fc}
.live-game .board-column>.log .panel-title{color:#e3f0fc;font-size:12px;letter-spacing:1.4px;margin-bottom:12px}
.live-game .board-column>.log p{font-size:14px;line-height:1.5;color:#c7dbe9;margin:10px 0}
.live-game .board-column>.log p:first-of-type{font-size:17px;font-weight:600;color:#fff4d4}
.live-game .board-column>.log p:last-child{margin-bottom:0}
.live-player-overlay{right:max(24px,env(safe-area-inset-right));bottom:max(24px,env(safe-area-inset-bottom));width:340px;padding:16px;border-radius:20px;max-height:calc(100dvh - 120px);overflow:auto}
.live-roster-heading{font-size:13px;margin-bottom:13px}
.live-player-overlay ol{gap:10px}
.live-roster-player{min-height:68px;padding:7px 12px 7px 7px;gap:7px 12px;border-radius:14px}
.live-roster-player .avatar,.board-fullscreen .live-roster-player .avatar{width:50px;height:50px;flex:none}
.live-roster-player strong{font-size:17px}
.live-roster-player small{font-size:11px}
.live-roster-player>b{font-size:24px}
.live-roster-player>b small{font-size:10px}
.live-roster-player.is-active{border-color:var(--player);background:linear-gradient(110deg,var(--player-wash),#ffffff12),#244d7077;box-shadow:0 0 0 1px var(--player),inset 0 1px 0 var(--player-wash),0 0 18px var(--player-wash)}
.live-roster-player.is-active .avatar{box-shadow:0 0 0 2px var(--player)}
@media(min-width:2200px){
 .live-player-overlay{width:420px;padding:20px;right:32px;bottom:32px}
 .live-roster-player{min-height:84px}.live-roster-player strong{font-size:22px}.live-roster-player small{font-size:14px}.live-roster-player>b{font-size:30px}
 .live-roster-player .avatar,.board-fullscreen .live-roster-player .avatar{width:64px;height:64px}
 .live-roster-heading{font-size:16px}
 .live-game .board-column>.log{left:32px;bottom:32px;width:460px;padding:24px}
 .live-game .board-column>.log p{font-size:18px}.live-game .board-column>.log p:first-of-type{font-size:22px}
}
@media(max-width:1100px){
 .live-player-overlay{width:300px;padding:13px;right:18px;bottom:18px}
 .live-roster-player{min-height:60px;padding:6px 9px 6px 6px;gap:6px 10px}.live-roster-player strong{font-size:15px}
 .live-roster-player .avatar,.board-fullscreen .live-roster-player .avatar{width:44px;height:44px}
 .live-game .board-column>.log{left:18px;bottom:18px;width:260px;padding:16px}
}
@media(max-width:900px){.live-game .actions{top:80px;max-width:calc(100vw - 32px);padding:10px 18px}.live-game .actions strong{font-size:20px}}
@media(max-width:700px){
 .live-player-overlay{width:220px;padding:10px;right:12px;bottom:12px}.live-roster-player strong{font-size:12px}.live-roster-player small{font-size:9px}.live-roster-player>b{font-size:19px}
 .live-roster-player .avatar,.board-fullscreen .live-roster-player .avatar{width:36px;height:36px}
 .live-game .board-column>.log{left:12px;bottom:12px;width:calc(100vw - 256px);min-width:150px;max-height:30dvh;padding:12px}
 .live-game .board-column>.log p{font-size:12px}.live-game .board-column>.log p:first-of-type{font-size:14px}
}

/* The host shares one short game ID; the code itself is the copy button. */
.host-lobby .lobby-code-card,.host-lobby.board-fullscreen .lobby-code-card{padding:20px;border:1px solid #d2eeff55;border-radius:18px;color:#f2f7ff;background:linear-gradient(135deg,#d3efff2b,#12385877 42%,#071e3677);backdrop-filter:blur(8px) saturate(130%);-webkit-backdrop-filter:blur(8px) saturate(130%);box-shadow:inset 0 1px 0 #ffffff4d,0 12px 32px #03172233}
.lobby-code-card .eyebrow{color:#c1d6e7;font-size:10px;letter-spacing:2px}
.lobby-code-card .game-id-button{display:flex;align-items:center;justify-content:space-between;gap:10px;width:100%;margin:14px 0 18px!important;padding:12px 0!important;border:0;background:transparent;color:#fff;user-select:text}
.game-id-button span{font:600 30px/1.2 ui-monospace,SFMono-Regular,Consolas,monospace;letter-spacing:3px}
.game-id-button svg{width:20px;height:20px;flex:none;opacity:.65}
.game-id-actions{display:flex;align-items:center;gap:8px;margin-top:14px}
.lobby-code-card .game-id-actions .game-id-button{flex:1;width:auto;min-width:0;margin:0!important}
.lobby-code-card .game-id-icon-button{display:grid;place-items:center;flex:none;width:44px;height:44px;margin:0!important;padding:10px!important;border:1px solid #d3e6ed40;border-radius:11px;color:#f2f7ff;background:#ffffff0d}
.game-id-icon-button svg{width:22px;height:22px}.lobby-code-card .game-id-icon-button:hover{background:#ffffff21;color:#ffe4a0}
.join-qr-dialog{width:min(420px,calc(100vw - 32px));max-height:calc(100dvh - 32px);padding:26px;border:1px solid #e8d7b1;border-radius:24px;background:#fff9ea;color:#24463e;box-shadow:0 20px 70px #071c3555;overflow:auto;text-align:center}
.join-qr-dialog::backdrop{background:rgb(3 19 30 / .42)}
.join-qr-heading{display:flex;align-items:center;justify-content:space-between;gap:16px}.join-qr-heading h2{font:600 29px 'Fraunces',Georgia,serif;margin:0;text-align:left}
.join-qr-heading button{display:grid;place-items:center;width:42px;height:42px;flex:none;padding:0;background:#e8edde;border:0;border-radius:50%;color:#31564c;font-size:23px}
.join-qr-dialog p{font-size:14px;line-height:1.5;margin:16px 0;color:#687867}
.join-qr-image{max-width:300px;margin:18px auto;padding:10px;background:#fff;border-radius:16px;border:1px solid #e9e3d3}.join-qr-image svg{display:block;width:100%;height:auto}
.join-qr-code{display:block;font:600 29px ui-monospace,SFMono-Regular,Consolas,monospace;letter-spacing:4px;color:#31564c}
.join-qr-dialog .join-qr-note{font-size:12px;margin-bottom:0}.join-qr-dialog .join-qr-error{color:#96513c}.join-qr-loading{padding:50px 0}
.lobby-code-card .game-id-button:hover:not(:disabled){background:transparent;color:#fff1bf;transform:none}

.lobby-code-card #start{margin-top:0;background:#f1d49a;color:#183b4d;border-color:#f6deac;border-radius:11px}
.lobby-code-card #start:hover:not(:disabled){background:#ffe6b6}
.lobby-code-card .lobby-minimum,.lobby-code-card .lobby-more>summary{color:#b3cce0}
.lobby-code-card .lobby-more button:not(.danger-quiet){background:#ffffff10;color:#eaf3ff;border-color:#ffffff33}
.lobby-code-card .island-layout-options label{margin-top:16px;color:#c5d8e6}
#join-code{text-transform:uppercase;letter-spacing:3px;font-family:ui-monospace,SFMono-Regular,Consolas,monospace}

.host-start-overlay{position:fixed;left:50%;top:50%;transform:translate(-50%,-50%);z-index:6;display:grid;justify-items:center;gap:14px;max-width:calc(100vw - 40px);pointer-events:none}
.host-start-button{min-width:300px;min-height:78px;max-width:100%;padding:20px 44px;border-radius:20px;background:#e8a20c;background-image:linear-gradient(150deg,#ffe16a 0%,#f6bf24 42%,#d98b05 100%);border:1px solid #ffdb55;color:#392604;font-size:24px;font-weight:700;box-shadow:inset 0 2px 0 #ffed98,inset 0 -3px 0 #b97405,0 14px 42px #05233d66;opacity:1;pointer-events:auto}
.host-start-button:hover:not(:disabled){background:#f4b517;background-image:linear-gradient(150deg,#ffe986 0%,#ffcb36 42%,#e9a00c 100%)}
.host-start-button:active:not(:disabled){transform:translateY(1px);box-shadow:inset 0 1px 0 #ffed98,inset 0 -1px 0 #b97405,0 7px 22px #05233d66}
.host-start-button:disabled{background:#bd8c28;background-image:linear-gradient(150deg,#dfbd64 0%,#c59b3c 42%,#a57117 100%);border-color:#d5ad52;color:#533f19;opacity:1;filter:none}
.host-start-overlay p{margin:0;padding:9px 15px;background:#0a294acc;backdrop-filter:blur(6px);border-radius:10px;color:#d2e2f1;font-size:12px;text-align:center}

/* Session actions share the top-left toolbar with graphics and sound. */
.session-options-panel .scene-tools .session-end-action{color:#ffc5ac;border-color:#f3a48655}
.session-options-panel .scene-tools .session-end-action:hover:not(:disabled){background:#69483f;color:#ffe3d3}
.solo-test-control{padding-bottom:16px;margin-bottom:16px;border-bottom:1px solid #ffffff29}
.solo-test-control button{display:flex;align-items:center;justify-content:space-between;gap:12px;width:100%;min-height:44px;padding:9px 0;border:0;background:transparent;color:#f7f0df;font-size:13px;text-align:left}
.solo-test-control button:hover:not(:disabled){background:transparent;transform:none;color:#ffe3a1}
.solo-test-switch{flex:none;position:relative;width:40px;height:24px;border:1px solid #ffffff40;border-radius:20px;background:#ffffff15}
.solo-test-switch::after{content:"";position:absolute;top:3px;left:3px;width:16px;height:16px;border-radius:50%;background:#bfccd0;transition:transform .15s}
[aria-checked=true]>.solo-test-switch{background:#e8b84b;border-color:#ffdf91}
[aria-checked=true]>.solo-test-switch::after{transform:translateX(16px);background:#173f44}
.solo-test-control p{margin:6px 0 0;font-size:11px;line-height:1.5;color:#b9cfcd}
.solo-test-active{padding:10px;border:1px solid #e8b84b66;border-radius:10px;color:#ffe3a1;font-size:12px}
.lobby-code-card .game-id-button{margin-bottom:0!important}

.waiting-avatar-change{display:block;width:100%;min-height:46px;margin-top:20px;border:1px solid #8daec655;border-radius:12px;background:#ffffff0d;color:#dcecff;font-size:14px}
.waiting-avatar-change:hover:not(:disabled){background:#ffffff1c;color:#fff}
@media(orientation:landscape) and (max-height:600px){.waiting-avatar-change{min-height:40px;margin-top:12px;padding:8px 16px}}

.reload-view{display:flex;align-items:center;justify-content:center;gap:10px}
.reload-view svg{width:19px;height:19px;flex:none}
.controller-sheet .reload-view{width:100%;min-height:48px;margin:10px 0 16px;border-color:#bdcdb9;background:#e9eddf;color:#24463e;font-size:14px}
.controller-sheet .reload-view:hover:not(:disabled){background:#dfe8d4}

.network-tools{position:fixed;bottom:calc(12px + env(safe-area-inset-bottom));left:12px;z-index:80}.network-tools>button{display:grid;place-items:center;width:40px;height:40px;padding:9px;border:0;border-radius:50%;background:transparent;color:#dfede8;box-shadow:none;opacity:.45;transition:opacity .18s ease,background .18s ease}.network-tools>button svg{width:22px;height:22px;filter:drop-shadow(0 1px 2px #0008)}.network-tools>button:hover,.network-tools>button:focus-visible{opacity:1;background:#ffffff12}.network-tools>button:focus-visible{outline:2px solid currentColor;outline-offset:2px}.network-tools dialog{max-width:min(460px,calc(100vw - 32px));max-height:85dvh;overflow:auto;padding:24px;border:1px solid #c9b582;border-radius:16px;background:#fff8e9;color:#173e40}.network-tools dialog::backdrop{background:#0008}.network-tools dialog p{line-height:1.5}.network-tools dialog a{color:#175e67;overflow-wrap:anywhere}.network-tools dialog img{display:block;margin:12px auto}.network-tools dialog img[hidden]{display:none}.network-tools dialog button{margin:4px}

/* Robber movement uses the live board instead of a sheet of field numbers. */
.controller-stage.robber-placement{grid-template-columns:minmax(0,1fr);grid-template-rows:minmax(0,1fr) auto}
.controller-stage.robber-placement .controller-map-viewport{grid-row:1;grid-column:1;margin:0;min-height:0}
.controller-stage.robber-placement .controller-dock{grid-row:2;grid-column:1;align-self:stretch;width:calc(100% - 24px);max-width:560px;margin:8px auto 16px;padding:14px}
.robber-dock>.primary{min-height:50px;margin-top:12px;background:#f0cb83;color:#234d45;border-color:#f0cb83;font-size:16px}
.robber-dock>.primary:hover:not(:disabled){background:#f5d594;color:#234d45}
.robber-target{cursor:pointer;outline:none}
.robber-target polygon{fill:transparent;stroke:transparent;stroke-width:5;stroke-linejoin:round;pointer-events:all}
.robber-target.is-selected polygon{fill:#ffdc6d2b;stroke:#ffe39a}
.robber-target:focus-visible polygon{stroke:#fff9df;stroke-dasharray:8 4}
.robber-target[aria-disabled=true]{cursor:wait}
.robber-victims{display:flex;flex-wrap:wrap;justify-content:center;gap:8px;margin-top:12px}
.robber-victims>span{flex-basis:100%;text-align:center;color:#d9e8d9;font-size:12px}
.robber-victims button{display:flex;align-items:center;gap:8px;min-height:46px;max-width:100%;padding:5px 10px 5px 5px;border-radius:24px;background:var(--control-surface);border:1px solid #ffffff35;color:#f7f4e6;font-size:13px}
.robber-victims button>span:last-child{overflow-wrap:anywhere;min-width:0}
.robber-victims button[aria-pressed=true]{border-color:#f0cb83;background:#3d6256;box-shadow:inset 0 0 0 1px #f0cb83}
.robber-victims button:hover:not(:disabled){background:#345e60;color:#fff;transform:none}
.robber-victims .avatar{flex:none;width:34px;height:34px}
.robber-victim-note{margin:10px 0 0;text-align:center;color:#d9e8d9;font-size:12px}
@media(orientation:landscape) and (max-height:600px){
 .controller-stage.robber-placement{grid-template-columns:minmax(0,1fr) minmax(230px,32%);grid-template-rows:minmax(0,1fr)}
 .controller-stage.robber-placement .controller-dock{grid-row:1;grid-column:2;align-self:center;width:calc(100% - 20px);max-height:calc(100% - 32px);margin:16px 10px;padding:12px;overflow:auto}
}

/* A public offer gathers replies; the seller confirms one final exchange. */
.trade-sheet{width:min(100%,720px)}
.trade-tabs{display:grid;grid-template-columns:1fr 1fr;gap:4px;padding:4px;border:1px solid #d6c6a3;border-radius:28px;background:#e9dfc5;margin:8px 0 20px}
.trade-tabs button{min-height:46px;padding:10px 8px;border:0;border-radius:23px;background:transparent;color:#596250;font-size:14px}
.trade-tabs button[aria-pressed=true]{background:linear-gradient(140deg,#35655d,#173f3a);color:#fff5d9;box-shadow:0 2px 6px #243e3426}
.trade-market{margin:0;padding:0;border:0}
.trade-market h3{font:600 21px 'Fraunces',Georgia,serif;margin:0}
.trade-market .trade-guidance,.trade-market .trade-draft-summary{font-size:13px;color:#687563;line-height:1.5;margin:12px 0 16px}
.trade-market .trade-choice{padding:12px 10px 8px;margin:14px 0;border-radius:17px;background:#ede5d1;border:1px solid #ded0ae}
.trade-market .trade-choice legend{float:left;width:100%;font-size:16px;color:#24463e;padding:0;margin:0 0 14px}
.trade-resource-grid{clear:both;display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:8px}
.trade-resource{position:relative;min-width:0;text-align:center}
.trade-resource>button:first-child{position:relative;display:grid;place-items:center;width:100%;height:72px;padding:8px 2px;border:1px solid #d5c8a7;border-radius:13px;background:#fff8e6;color:#344c3d;box-shadow:0 2px 5px #6b573710;font-size:11px}
.trade-resource svg{width:48px;height:48px}
.trade-resource>button:first-child:disabled{opacity:.5;filter:none}
.trade-resource.is-selected>button:first-child{border-color:#729465;background:#f8ffe9;box-shadow:0 0 0 1px #729465;opacity:1}
.trade-choice:nth-of-type(2) .trade-resource.is-selected>button:first-child{border-color:#c18b47;box-shadow:0 0 0 1px #c18b47;background:#fff3d6}
.trade-resource b{position:absolute;top:-7px;right:-5px;display:grid;place-items:center;min-width:25px;height:25px;border-radius:50%;background:#294d40;color:#fff9df;border:2px solid #f8f5e9;font-size:12px}
.trade-resource>small{display:block;margin-top:7px;white-space:nowrap;font-size:9px;color:#6c785e}
.trade-resource .trade-minus{position:absolute;z-index:1;left:-10px;top:-15px;width:44px;height:44px;border:0;border-radius:50%;padding:0;background:radial-gradient(circle,#fff9e9 43%,#b6b992 44%,#b6b992 47%,transparent 49%);color:#36503b;font-size:22px;box-shadow:none}
.trade-market .primary{justify-content:center;background:linear-gradient(140deg,#ffe299,#edb747);border-color:#ddb15b;color:#304c3b;min-height:48px;font-weight:700}
.trade-market .primary:disabled{opacity:.45}
.bank-market .bank-resource>button:first-child{height:92px;gap:3px}
.bank-rate{font-style:normal;font-size:11px;font-weight:700;line-height:1.2;border-radius:8px;padding:3px 8px;background:#eee7d5;color:#64715b}
.bank-rate.has-harbor{background:#e7c879;color:#574522}
.bank-choice-check{position:absolute;top:-6px;right:-5px;display:grid;place-items:center;width:22px;height:22px;border-radius:50%;background:#52714a;color:#fff9df;font:700 13px Arial,sans-serif;border:2px solid #f8f5e9}
.bank-market .trade-choice:nth-of-type(2) .bank-choice-check{background:#b27d39}
.bank-market .bank-resource.is-selected>button:disabled{opacity:.5}
.bank-preview{border:1px solid #ded0ae;border-radius:16px;padding:12px;text-align:center;background:linear-gradient(120deg,#edf1df,#fff2d6)}
.bank-preview-exchange{display:flex;align-items:center;justify-content:center;gap:24px;margin-bottom:8px;min-height:58px}
.bank-preview-resource{display:grid;grid-template-columns:44px auto;gap:0 5px;align-items:center}.bank-preview-resource svg{width:44px;height:44px}.bank-preview-resource strong{font-size:24px;color:#34533f}
.bank-preview-empty{display:grid;place-items:center;width:64px;height:58px;color:#99a084;font-size:30px;border:1px dashed #bcc3a3;border-radius:10px}
.bank-preview-arrow{font-size:28px;color:#829068}.bank-preview>strong{display:block;font-size:15px;color:#34533f}.bank-preview>small{display:block;font-size:11px;color:#69735d;margin-top:5px}
.bank-market .bank-trade-hint{font-size:12px;line-height:1.4;text-align:center;color:#69735d;margin:12px 0}
.bank-market .bank-trade-feedback{font-size:13px;text-align:center;color:#376144;background:#e7efd9;border-radius:10px;padding:10px;margin:12px 0}
@media(max-width:380px){.bank-market .trade-choice{padding-left:7px;padding-right:7px}.bank-market .bank-resource>button:first-child{height:86px}.bank-rate{font-size:10px;padding:3px 6px}.bank-resource>small{font-size:8px}.bank-preview-exchange{gap:18px}}
.trade-offer{margin-bottom:20px}
.trade-offer-heading{display:flex;align-items:center;justify-content:space-between;gap:12px;margin:18px 0}
.trade-offer-heading>span{font-size:11px;color:#6e795d;background:#e8ead9;padding:6px 10px;border-radius:20px}
.trade-exchange{display:grid;grid-template-columns:minmax(0,1fr) 24px minmax(0,1fr);align-items:center;gap:8px}
.trade-bundle{min-width:0;padding:14px 8px;border:1px solid #d4c5a2;border-radius:16px;background:#efe5cc;text-align:center}
.trade-bundle h4{font-size:14px;margin:0 0 10px}
.trade-bundle>div{display:flex;justify-content:center;gap:8px;flex-wrap:wrap}
.trade-bundle>div>span{display:grid;grid-template-columns:36px auto;align-items:center;min-width:48px;gap:2px}
.trade-bundle svg{width:36px;height:36px}.trade-bundle b{font-size:21px}
.trade-exchange-arrow{text-align:center;font-size:25px;color:#7d8a66}
.trade-responses{list-style:none;margin:0 0 16px;padding:0;display:grid;gap:10px}
.trade-response{display:flex;align-items:center;gap:10px;padding:10px;border:1px solid #d3ceb4;border-left:4px solid var(--player);border-radius:15px;background:#fffbef}
.trade-response>.avatar{position:relative;width:42px;height:42px;border-radius:50%;overflow:hidden;border:2px solid var(--player);flex:none}
.trade-response>div:not(.trade-response-actions){flex:1;min-width:0}.trade-response strong{display:block;font-size:15px;overflow-wrap:anywhere}.trade-response small{display:block;font-size:11px;color:#7b816e;margin-top:4px}
.trade-response.is-accepted{border-color:#8caa7a;background:#f0f5df}.trade-response.is-accepted small{color:#3b7449;font-weight:700}
.trade-response-actions{display:flex;gap:6px;flex-wrap:wrap;justify-content:flex-end}
.trade-response-actions button{min-height:44px;padding:8px 10px;font-size:12px;border-radius:12px}
.trade-response-actions button:not(.primary){border:0;background:transparent;color:#8b5c42}
.trade-reply-actions{display:grid;grid-template-columns:1fr 1fr;gap:10px}
.trade-reply-actions button{min-height:48px;border-radius:13px}
.trade-market .trade-feedback{padding:12px 14px;border:1px solid #b6c79c;background:#e9efd9;border-radius:12px;color:#375d43;font-size:14px}
.trade-market .trade-warning{color:#905e3b;font-size:13px}
.trade-market .trade-empty{padding:24px 12px;text-align:center;color:#6c785e}
.trade-alert{position:absolute;z-index:6;top:calc(max(12px,env(safe-area-inset-top)) + 66px);left:16px;right:16px;max-width:600px;margin:0 auto;display:flex;align-items:center;gap:12px;min-height:66px;padding:12px 16px;border:1px solid #f0ce82;border-radius:16px;background:linear-gradient(130deg,#375952,#143b40);color:#fff4cf;text-align:left;box-shadow:0 6px 24px #061e3455}
.trade-alert>svg{width:28px;height:28px;flex:none}.trade-alert>span{flex:1}.trade-alert strong{display:block;font-size:14px}.trade-alert small{display:block;margin-top:4px;color:#d6dfc8;font-size:11px}.trade-alert>b{font-size:26px}
@media(max-width:380px){.trade-sheet .sheet-inner{padding-left:12px;padding-right:12px}.trade-resource-grid{gap:5px}.trade-resource svg{width:38px;height:38px}.trade-resource>button:first-child{height:60px;font-size:9px}.trade-resource>small{font-size:8px}.trade-response{flex-wrap:wrap}.trade-response-actions{margin-left:auto}.trade-offer-heading h3{font-size:18px}}
@media(orientation:landscape) and (max-height:600px){.trade-sheet{max-height:96dvh}.trade-alert{top:64px;left:12px;right:auto;max-width:calc(100% - 24px);min-height:50px;padding:8px 12px}.trade-alert strong{font-size:12px}.trade-alert small{display:none}}

/* The chosen robber field stays bright while the other fields recede. */
.controller-stage .controller-dock,.controller-stage.robber-placement .controller-dock{background:transparent;border:0;box-shadow:none;backdrop-filter:none;-webkit-backdrop-filter:none}
.controller-stage.robber-placement .controller-dock{padding:0}
.robber-dock>.primary{background:linear-gradient(135deg,#ffe299,#edb747);box-shadow:0 6px 20px #082c3a40}
.robber-shade{fill:#041c2b;fill-opacity:.64;pointer-events:none}
.robber-target.is-selected polygon{fill:transparent;stroke:#ffe19a;stroke-width:7;filter:drop-shadow(0 0 4px #fff1b1)}
.robber-selection-check{pointer-events:none}.robber-selection-check circle{fill:#ffe3a1;stroke:#fff6d9;stroke-width:2}.robber-selection-check path{fill:none;stroke:#24463e;stroke-width:3;stroke-linecap:round;stroke-linejoin:round}
.controller-map-viewport,.controller-map-viewport *{-webkit-tap-highlight-color:transparent}
.controller-stage .controller-dock:not(.robber-dock){padding:0}
.controller-stage .screen-actions{background:none;border:0;box-shadow:none;backdrop-filter:none;-webkit-backdrop-filter:none}
.controller-stage .screen-actions button{--controller-button-bg:#fff5dc14;border-color:#fff1c933;box-shadow:0 3px 12px #001e2820}
.controller-stage .screen-actions button:disabled{--controller-button-bg:transparent;border-color:transparent;box-shadow:none}
.controller-stage .screen-actions button.selected{--controller-button-bg:linear-gradient(135deg,#ffe299,#edb747);--controller-button-color:#234d45}

/* Cheap SVG highlights mirror the shared 3D board after the dice disappear. */
.production-field{pointer-events:none;animation:production-glow .8s ease-in-out 4 alternate}
.production-wash{fill:#ffe8a1;fill-opacity:.27}
.production-beams polygon{fill:url(#production-light);opacity:.48}
.production-rim{fill:none;stroke:#fff8d8;stroke-width:9;stroke-linejoin:round;filter:drop-shadow(0 0 7px #ffdb84)}
@keyframes production-glow{from{opacity:.8}to{opacity:1}}
@media(prefers-reduced-motion:reduce){.production-field{animation:none}.production-rim{filter:none}}

/* Select discards with an upward card gesture or explicit plus/minus controls. */
.discard-progress{text-align:center;margin:12px 0}.discard-progress>strong{font-size:35px;color:#284e40}.discard-progress>strong>span{font-size:22px;color:#859077}.discard-progress p{font-size:13px;margin:4px 0;color:#68775e}
.discard-pile{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:8px;padding:12px 8px;background:#e9e7d2;border:1px dashed #acb493;border-radius:16px}
.discard-pile>span{display:flex;align-items:center;justify-content:center;gap:2px;color:#31543f}.discard-pile svg{width:32px;height:32px}.discard-pile b{font-size:18px}.discard-pile .is-empty{opacity:.3}
.discard-picker .discard-help{text-align:center;font-size:12px;margin:18px 0;color:#6c7b64}
.discard-hand{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:8px;margin:0 0 20px}.discard-resource{min-width:0}
.discard-resource .discard-swipe{display:flex;align-items:center;flex-direction:column;justify-content:center;gap:5px;width:100%;height:150px;padding:8px 2px;border:1px solid #d8cda9;border-radius:14px;background:linear-gradient(150deg,#fffae9,#e9dfc0);color:#34503c;box-shadow:0 4px 10px #5a62421a;touch-action:none;user-select:none;-webkit-user-select:none}
.discard-swipe svg{width:48px;height:48px;pointer-events:none}.discard-swipe>strong{font-size:23px;line-height:1.1}.discard-swipe>small{font-size:10px}.discard-up{color:#81936c;font-size:18px;line-height:1}.discard-swipe:disabled{opacity:.45}
.discard-stepper{display:grid;grid-template-columns:1fr;gap:4px;margin-top:8px}.discard-stepper button{min-width:0;width:100%;min-height:44px;padding:0;border-radius:10px;background:#edf0df;font-size:23px;color:#345840}.discard-stepper button:disabled{opacity:.3}
.discard-picker>.primary{justify-content:center;min-height:50px;background:linear-gradient(135deg,#ffe299,#edb747);border-color:#e0bd73;color:#244a3d;font-size:16px}
.discard-picker .discard-error{font-size:13px;color:#9b4e37}
@media(min-width:560px){.discard-stepper{grid-template-columns:1fr 1fr}}
@media(max-width:380px){.discard-hand{gap:5px}.discard-swipe svg{width:38px;height:38px}.discard-resource .discard-swipe{height:132px}.discard-swipe>small{font-size:8px}.discard-pile{gap:4px}.discard-pile svg{width:26px;height:26px}.discard-pile b{font-size:15px}}

@media(max-width:700px){.game-id-actions .game-id-button span{font-size:26px;letter-spacing:2px}}

/* Shared lightweight resource artwork, including the optional hand detail sheet. */
.card-hand .hand-card>span>svg{display:block;width:40px;height:40px}


/* Neutral portraits remain centered; prominent reactions appear over the map. */
.live-roster-player .avatar-neutral img{width:100%;height:100%;left:0;top:0;transform:translateY(2%) scale(1.08);transform-origin:50% 0;object-fit:contain}
.board-avatar-reactions{position:fixed;inset:0;z-index:25;pointer-events:none;overflow:hidden}
.board-reaction-group{position:absolute;display:flex;align-items:flex-start;justify-content:center;gap:12px;transform:translate(-50%,-100%);isolation:isolate}
.board-reaction-group[hidden]{display:none}
.board-emotion-card{width:104px;display:flex;flex-direction:column;align-items:center;gap:5px;color:#fff5d6;animation:board-reaction-arrive var(--reaction-duration,4200ms) both;animation-delay:var(--reaction-delay,0ms);text-align:center}
.board-emotion-face{position:relative;display:block;width:100px;height:100px;border-radius:50%;border:3px solid #ffe6a6;background:radial-gradient(circle at 50% 35%,#fff0bd,#c59a4f);box-shadow:0 0 0 3px var(--player),0 0 28px #ffde8caa,0 10px 26px #001f3866;overflow:hidden;animation:board-face-cheer 1s ease-in-out 2}
.avatar-expression{position:absolute;inset:0;background-repeat:no-repeat;background-size:300% 100%;transform:translateY(2%) scale(1.08);transform-origin:50% 0}
.mood-happy .avatar-expression{background-position:0 0}.mood-sad .avatar-expression{background-position:50% 0}.mood-angry .avatar-expression{background-position:100% 0}
.mood-crying .avatar-expression{background-position:50% 0}
.board-emotion-card>strong{font-size:14px;line-height:1.1;text-shadow:0 2px 5px #001b30,0 0 9px #001b30;max-width:120px;overflow-wrap:anywhere}
.board-emotion-gain{display:flex;align-items:center;justify-content:center;gap:4px;min-width:59px;padding:2px 8px;border:1px solid #ffe8a4;border-radius:18px;background:linear-gradient(#fff0b9,#efc86d);color:#3b3829;box-shadow:0 3px 12px #102c3444}
.board-emotion-gain svg{width:30px;height:30px}.board-emotion-gain b{font-size:20px}
.board-emotion-card.mood-sad .board-emotion-face{background:#cadce6;border-color:#c5e6ff;box-shadow:0 0 0 3px var(--player),0 0 28px #8fc8ef88;animation:board-face-sigh 1.2s ease-in-out 2}
.board-emotion-card.mood-angry .board-emotion-face{background:#f0c59d;border-color:#ffd1a4;box-shadow:0 0 0 3px var(--player),0 0 28px #f0a15e88;animation:board-face-grumble .6s ease-in-out 3}
@keyframes board-reaction-arrive{0%{opacity:0;transform:translateY(25px) scale(.6)}12%{opacity:1;transform:translateY(-5px) scale(1.08)}22%,82%{opacity:1;transform:none}100%{opacity:0;transform:translateY(-24px) scale(.96)}}
@keyframes board-face-cheer{0%,100%{transform:none}35%{transform:rotate(-7deg) translateY(-7px)}70%{transform:rotate(7deg)}}
@keyframes board-face-sigh{0%,100%{transform:none}50%{transform:rotate(-8deg) translateY(4px)}}
@keyframes board-face-grumble{0%,100%{transform:none}25%{transform:rotate(-9deg)}75%{transform:rotate(9deg)}}
@media(min-width:1800px){.board-emotion-card{width:134px}.board-emotion-face{width:126px;height:126px}.board-emotion-card>strong{font-size:18px}.board-emotion-gain b{font-size:24px}.board-emotion-gain svg{width:36px;height:36px}}
@media(prefers-reduced-motion:reduce){.board-emotion-card,.board-emotion-face{animation:none!important}}

.trade-market .trade-preview-submit{display:block;width:100%;max-width:none;min-height:92px;margin:0;padding:14px 16px;border-radius:17px;text-align:center;white-space:normal}
.trade-market .trade-preview-submit:disabled{opacity:1;cursor:default;background:linear-gradient(120deg,#edf1df,#fff2d6);color:#69735d;border:1px solid #ded0ae;box-shadow:none}
.trade-market .trade-preview-submit.is-ready{background:linear-gradient(145deg,#ffed9b 0%,#f6cf63 48%,#e7ad36 100%);color:#493615;border:1px solid #cb912c;box-shadow:inset 0 1px 0 #fff5c9,0 5px 14px #79571a22}
.trade-market .trade-preview-submit.is-ready:hover:not(:disabled){background:linear-gradient(145deg,#fff2b0,#ffda76 48%,#f2bb4c)}
.trade-market .trade-preview-submit.is-ready strong,.trade-market .trade-preview-submit.is-ready small{color:#493615}
.trade-preview-action{display:block;font-size:15px;font-weight:700;margin-top:10px;color:#493615}
.trade-market button.trade-draft-summary>span:first-child{display:block;font-size:17px;line-height:1.5}

.board-emotion-score{font-size:13px;font-weight:700;white-space:nowrap;min-height:32px;padding:5px 9px}

/* A public, central trade celebration uses small still images, also on phones. */
.board-avatar-reactions[popover]{margin:0;padding:0;border:0;width:100%;height:100%;max-width:none;max-height:none;background:transparent;color:inherit}
.board-trade-group{transform:translate(-50%,-50%);width:min(590px,calc(100vw - 32px))}
.board-trade-notice{position:relative;isolation:isolate;overflow:hidden;width:100%;border:1px solid #f4d79b99;border-radius:32px;background:#294439;box-shadow:0 24px 90px #00192888,0 0 48px #ffe5a026;color:#fff6de;animation:board-reaction-arrive var(--reaction-duration,5200ms) both;animation-delay:var(--reaction-delay,0ms)}
.board-trade-background{position:absolute;z-index:-2;inset:-4px;width:calc(100% + 8px);height:calc(100% + 8px);object-fit:cover;filter:blur(2px)}
.board-trade-notice:before{content:'';position:absolute;z-index:-1;inset:0;background:linear-gradient(180deg,#14231c44,#172c2470 40%,#10241ed9)}
.board-trade-content{display:flex;flex-direction:column;align-items:center;padding:26px 28px 30px;text-align:center}
.board-trade-kicker{font-size:12px;font-weight:700;letter-spacing:2.5px;text-shadow:0 2px 6px #09251d;margin-bottom:18px}
.board-trade-notice .board-emotion-face{width:136px;height:136px;border-width:4px}
.board-trade-notice h2{font-family:Georgia,serif;font-size:32px;line-height:1.15;margin:20px 0 18px;color:#fff4d5;text-shadow:0 2px 8px #08261e;overflow-wrap:anywhere}
.board-trade-exchange{display:flex;align-items:center;justify-content:center;gap:30px;width:100%;padding:13px 16px;border:1px solid #fff1c646;border-radius:20px;background:#102b2580;box-shadow:inset 0 1px 0 #fff2c217}
.board-trade-exchange>span{display:flex;flex:1;min-width:0;flex-direction:column;align-items:center;gap:4px}
.board-trade-exchange svg{width:58px;height:58px;filter:drop-shadow(0 4px 5px #071e2477)}
.board-trade-exchange strong{font-size:21px;line-height:1.2}.board-trade-exchange small{font-size:12px;color:#eee8cd}.board-trade-exchange>b{font-size:32px;font-weight:400;color:#ffe3a2}
@media(max-width:600px){.board-trade-content{padding:20px 18px}.board-trade-notice{border-radius:24px}.board-trade-kicker{font-size:10px;margin-bottom:13px}.board-trade-notice .board-emotion-face{width:94px;height:94px}.board-trade-notice h2{font-size:25px;margin:15px 0}.board-trade-exchange{gap:14px;padding:10px}.board-trade-exchange svg{width:46px;height:46px}.board-trade-exchange strong{font-size:17px}}
@media(max-height:480px){.board-trade-content{display:grid;grid-template-columns:100px 1fr;gap:10px 18px;padding:18px 24px}.board-trade-kicker{grid-column:1/-1;margin:0}.board-trade-notice .board-emotion-face{grid-column:1;grid-row:2/4;width:88px;height:88px}.board-trade-notice h2{grid-column:2;font-size:24px;margin:0}.board-trade-exchange{grid-column:2;padding:6px 10px;gap:15px}.board-trade-exchange svg{width:38px;height:38px}.board-trade-exchange strong{font-size:16px}.board-trade-exchange small{font-size:10px}}
@media(prefers-reduced-motion:reduce){.board-trade-notice{animation:none!important}}

/* Completed player trades show both partners and both public resource bundles. */
.board-trade-partners{display:flex;align-items:center;justify-content:center;gap:30px}
.board-trade-partners>span:not(.board-emotion-face){font-size:38px;color:#ffe5a7;text-shadow:0 2px 7px #173322}
.board-player-trade-notice .board-emotion-face{width:112px;height:112px}
.board-player-trade-notice h2{font-size:28px;margin:18px 0;max-width:100%}
.board-player-trade-exchange{display:grid;grid-template-columns:1fr 1fr;gap:12px;width:100%}
.board-player-trade-bundle{min-width:0;padding:13px 12px 15px;border:1px solid #fff1c646;border-radius:18px;background:#102b259e}
.board-player-trade-bundle h3{font-family:inherit;font-size:14px;line-height:1.4;margin:0 0 10px;color:#fff2d2;overflow-wrap:anywhere}
.board-player-trade-bundle h3>span{margin:0 4px;color:#ffe0a0}
.board-player-trade-bundle>div{display:flex;align-items:flex-start;justify-content:center;gap:10px;flex-wrap:wrap}
.board-player-trade-bundle>div>span{display:flex;flex-direction:column;align-items:center;gap:4px;min-width:60px}
.board-player-trade-bundle svg{width:48px;height:48px;filter:drop-shadow(0 3px 4px #071e2477)}
.board-player-trade-bundle strong{font-size:16px;line-height:1.3;white-space:nowrap}
@media(max-width:600px){.board-trade-partners{gap:24px}.board-player-trade-notice .board-emotion-face{width:86px;height:86px}.board-player-trade-notice h2{font-size:23px}.board-player-trade-exchange{gap:8px}.board-player-trade-bundle{padding:10px 7px 12px}.board-player-trade-bundle h3{font-size:12px}.board-player-trade-bundle>div{gap:8px}.board-player-trade-bundle>div>span{min-width:45px}.board-player-trade-bundle svg{width:38px;height:38px}.board-player-trade-bundle strong{font-size:13px}}
@media(max-height:480px){.board-player-trade-notice .board-trade-content{grid-template-columns:140px 1fr;gap:8px 18px;padding:14px 20px}.board-player-trade-notice .board-trade-partners{grid-column:1;grid-row:2/4;gap:8px;flex-wrap:wrap}.board-player-trade-notice .board-emotion-face{width:58px;height:58px}.board-trade-partners>span:not(.board-emotion-face){font-size:23px}.board-player-trade-notice h2{font-size:20px;margin:0}.board-player-trade-exchange{grid-column:2;gap:8px}.board-player-trade-bundle{padding:7px}.board-player-trade-bundle h3{margin-bottom:5px;font-size:11px}.board-player-trade-bundle>div{gap:5px}.board-player-trade-bundle>div>span{min-width:45px}.board-player-trade-bundle svg{width:30px;height:30px}.board-player-trade-bundle strong{font-size:12px}}

/* Awards stay beside the name without adding another roster row. */
.live-roster-name{display:flex;align-items:center;gap:7px;min-width:0}
.live-roster-name>strong{min-width:0;flex:1;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.live-roster-player.has-awards{grid-template-columns:auto minmax(0,1fr) auto auto}
.live-roster-awards{display:flex;align-items:center;align-self:center;gap:5px;flex:none}
.live-roster-award{position:relative;display:flex;width:31px;height:28px;align-items:center;justify-content:flex-start;color:#bac6cf;opacity:.72;filter:drop-shadow(0 1px 3px #102c45)}
.live-roster-award.is-holder{color:#ffe1a0;opacity:1}
.live-roster-award svg{width:22px;height:22px}
.live-roster-award-count{position:absolute;right:0;bottom:-1px;display:flex;align-items:center;justify-content:center;min-width:16px;height:16px;padding:0 3px;border:1px solid #203e50;border-radius:9px;background:#bac6cf;color:#193b4d;font-size:11px;font-weight:800;line-height:1;font-variant-numeric:tabular-nums}
.live-roster-award.is-holder .live-roster-award-count{background:#ffe2a0}
.board-award-portrait{position:relative}
.board-award-medal{position:absolute;right:-10px;bottom:-4px;width:53px;height:53px;display:flex;align-items:center;justify-content:center;border:2px solid #fff1bf;border-radius:50%;background:linear-gradient(135deg,#fff0b6,#e4ae40);box-shadow:0 4px 15px #173b2377;color:#654c1e}
.board-award-medal svg{width:32px;height:32px}
.board-award-notice h2{max-width:480px;margin:25px 0 20px;font-size:30px}
.board-award-points{padding:10px 23px;border:1px solid #fff2b9;border-radius:24px;background:linear-gradient(135deg,#fff2c0,#e9bd59);color:#4e3e1e;font-size:22px;font-weight:700;box-shadow:0 3px 18px #ffe09133}
@media(min-width:1800px){.live-roster-award{width:38px;height:34px}.live-roster-award svg{width:28px;height:28px}.live-roster-award-count{min-width:19px;height:19px;font-size:13px}.live-roster-awards{gap:7px}}
@media(max-width:700px){.live-roster-award{width:26px;height:24px}.live-roster-award svg{width:18px;height:18px}.live-roster-award-count{min-width:14px;height:14px;font-size:10px;padding:0 2px}.live-roster-name{gap:4px}.live-roster-awards{gap:3px}.board-award-notice h2{font-size:24px}.board-award-medal{width:42px;height:42px;right:-8px}.board-award-medal svg{width:26px;height:26px}.board-award-points{font-size:19px}}
@media(max-height:480px){.board-award-portrait{grid-column:1;grid-row:2/4}.board-award-medal{width:35px;height:35px;right:-2px}.board-award-medal svg{width:22px;height:22px}.board-award-notice h2{font-size:24px;margin:0}.board-award-points{grid-column:2;justify-self:center;font-size:18px;padding:8px 18px}}

/* Keep the current turn obvious while preserving the compact roster height. */
.live-player-overlay.has-active-turn .live-roster-player{transition:opacity .25s ease,background .25s ease,box-shadow .25s ease,filter .25s ease}
.live-player-overlay.has-active-turn .live-roster-player:not(.is-active){opacity:.76;filter:saturate(.8);background:linear-gradient(110deg,var(--player-wash),#ffffff04),#08263bc9;box-shadow:inset 0 1px 0 #ffffff10}
.live-player-overlay.has-active-turn .live-roster-player.is-active{opacity:1;filter:none;background:linear-gradient(110deg,var(--player-wash),#ffffff12),#264a65f2;border-color:var(--player);box-shadow:0 0 0 2px var(--player),inset 0 1px 0 var(--player-wash),0 0 22px var(--player-wash)}
.live-player-overlay.has-active-turn .live-roster-player.is-active strong{font-weight:700;color:#fff8e3}
@media(prefers-reduced-motion:reduce){.live-player-overlay.has-active-turn .live-roster-player{transition:none}}

/* Open offers remain public until the seller completes or withdraws them. */
.notice-portrait{position:relative;display:block;flex:none;width:92px;height:92px;overflow:hidden;border-radius:50%;border:3px solid #ffe7b1;background:#cfdfd5;box-shadow:0 0 0 3px var(--player),0 8px 25px #001b3c55;color:#23443e;font-size:30px;text-align:center;line-height:86px}
.notice-portrait>img{display:block;width:100%;height:100%;object-fit:contain;transform:translateY(2%) scale(1.08);transform-origin:50% 0}
.desktop-trade-offer{position:fixed;z-index:21;left:50%;top:50%;transform:translate(-50%,-50%);width:min(620px,calc(100vw - 48px));padding:25px 30px 18px;border:1px solid #f6d78ca6;border-radius:28px;background:linear-gradient(145deg,#183e50f7,#082c40ed);box-shadow:inset 0 1px 0 #ffecbd30,0 24px 80px #00182699,0 0 35px #ffdf7630;backdrop-filter:blur(12px);color:#fff1cb;pointer-events:none}
.has-center-announcement .desktop-trade-offer{visibility:hidden}
.desktop-offer-kicker{display:flex;align-items:center;justify-content:center;gap:10px;font-size:12px;letter-spacing:2.5px;font-weight:700;color:#f4d58f}.desktop-offer-kicker svg{width:23px;height:23px}
.desktop-offer-owner{display:flex;justify-content:center;align-items:center;gap:20px;margin:22px 0}.desktop-offer-owner h2{margin:0;font:700 35px/1.15 Georgia,serif;overflow-wrap:anywhere;min-width:0;color:#fff3d4}.desktop-offer-owner h2>span{display:block;font:400 18px/1.4 system-ui;margin-top:6px;color:#c6dbdf}
.desktop-offer-exchange{display:grid;grid-template-columns:minmax(0,1fr) 28px minmax(0,1fr);gap:12px;align-items:stretch}.desktop-offer-exchange>span{align-self:center;font-size:29px;color:#f4d58f;text-align:center}
.desktop-offer-bundle{min-width:0;border:1px solid #d6e7ce40;border-radius:18px;background:#ffffff0b;padding:13px 12px}.desktop-offer-bundle:first-child{border-color:#9ecfa477;background:#78ac7b1a}.desktop-offer-bundle:last-child{border-color:#efd08d77;background:#e8ba5c14}.desktop-offer-bundle h3{text-align:center;margin:0 0 10px;font:600 15px/1.2 system-ui;color:#f8e8c5}.desktop-offer-bundle>div{display:flex;justify-content:center;gap:12px;flex-wrap:wrap}.desktop-offer-bundle>div>span{display:flex;flex-direction:column;align-items:center;gap:2px}.desktop-offer-bundle svg{width:60px;height:60px;filter:drop-shadow(0 3px 5px #001a2855)}.desktop-offer-bundle b{font-size:25px;line-height:1.2}
.desktop-offer-replies{list-style:none;padding:0;margin:20px 0 0;display:flex;gap:9px;justify-content:center;flex-wrap:wrap}.offer-reply{display:flex;align-items:center;gap:9px;flex:1;min-width:0;padding:9px 11px;border:1px solid #b7d3da40;border-radius:14px;background:#001d2f55}.offer-reply .notice-portrait{width:34px;height:34px;line-height:30px;font-size:18px;border-width:1px;box-shadow:0 0 0 2px var(--player)}.offer-reply>span{min-width:0}.offer-reply strong{display:block;font-size:13px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.offer-reply small{display:block;font-size:11px;color:#b8cfd8;margin-top:4px}.offer-reply.is-accepted{border-color:#a9d89088;background:#698c3426}.offer-reply.is-accepted small{color:#c4f2a8}.offer-reply.is-rejected small,.offer-reply.is-declined small{color:#eab0a7}.desktop-trade-offer>p{text-align:center;font-size:12px;color:#b8cfd8;margin:16px 0 0}
@media(min-width:1800px){.desktop-trade-offer{width:750px;padding:32px 40px 25px}.desktop-offer-owner h2{font-size:43px}.desktop-offer-bundle svg{width:74px;height:74px}.offer-reply strong{font-size:16px}.offer-reply small{font-size:13px}}
@media(max-height:650px){.desktop-trade-offer{padding:15px 24px}.desktop-offer-owner{margin:12px 0}.desktop-offer-owner .notice-portrait{width:66px;height:66px}.desktop-offer-owner h2{font-size:28px}.desktop-offer-bundle{padding:9px}.desktop-offer-bundle svg{width:45px;height:45px}.desktop-offer-replies{margin-top:12px}.desktop-trade-offer>p{margin-top:10px}}

/* Monopol: one shared scene instead of overlapping gain/loss portraits. */
.board-monopoly-notice{background:radial-gradient(ellipse at 50% 15%,#5b6d51,#113148 75%)}
.monopoly-winner{position:relative}.monopoly-winner>.notice-portrait{width:126px;height:126px;background:#e4c17c;animation:board-face-cheer 1s ease-in-out 2}
.monopoly-gain{position:absolute;right:-45px;bottom:-4px;display:flex;align-items:center;gap:4px;padding:5px 12px 5px 5px;border:2px solid #ffe8a3;border-radius:24px;background:linear-gradient(135deg,#fff0b5,#edbe5c);color:#463a1f;box-shadow:0 5px 22px #08233066}.monopoly-gain svg{width:43px;height:43px}.monopoly-gain b{font-size:28px}
.board-monopoly-notice h2{font-size:28px;margin:22px 0 0}.monopoly-flow{font-size:30px;color:#f6d58a;line-height:1;margin:7px 0 10px;animation:monopoly-flow 1s ease-out 3}
.monopoly-opponents{display:flex;justify-content:center;gap:30px;width:100%}.monopoly-opponent{flex:1;min-width:0;display:flex;flex-direction:column;align-items:center;gap:7px;text-align:center}.monopoly-opponent .notice-portrait{width:76px;height:76px;border-color:#b5d8e2;background:#b7c9d9;box-shadow:0 0 0 2px var(--player),0 4px 20px #001c3277}.monopoly-opponent.has-loss .notice-portrait{animation:board-face-sigh 1.2s ease-in-out 2}.monopoly-opponent strong{max-width:100%;overflow-wrap:anywhere;font-size:15px}.monopoly-opponent small{padding:3px 10px;border-radius:15px;background:#092639b0;color:#d7e5e8;font-size:13px}.monopoly-opponent.has-loss small{color:#ffd4c8}
@keyframes monopoly-flow{from{transform:translateY(12px);opacity:.2}to{transform:translateY(-3px);opacity:1}}
@media(max-height:580px){.board-monopoly-notice .board-trade-content{display:flex;padding:18px 24px}.board-monopoly-notice .board-trade-kicker{margin-bottom:12px}.monopoly-winner>.notice-portrait{width:88px;height:88px}.monopoly-opponent .notice-portrait{width:54px;height:54px}.board-monopoly-notice h2{font-size:24px;margin-top:16px}.monopoly-gain svg{width:32px;height:32px}.monopoly-flow{margin:2px 0 8px}}
@media(prefers-reduced-motion:reduce){.monopoly-winner>.notice-portrait,.monopoly-opponent .notice-portrait,.monopoly-flow{animation:none!important}}

/* Personal theft notice: the victim's phone gets a light DOM overlay. */
.board-robber-backdrop{position:absolute;inset:0;background:#031b2a99;animation:robber-notice-backdrop var(--reaction-duration,5200ms) both;animation-delay:var(--reaction-delay,0ms)}
.board-robber-group{width:min(440px,calc(100vw - 32px))}
.board-robber-notice{background:radial-gradient(ellipse at 35% 10%,#455b69,#123347 80%);border-color:#ffe1a07a;box-shadow:inset 0 1px 0 #fff3cc30,0 24px 70px #00101b99;animation-name:robber-notice-arrive}
.board-robber-notice .board-trade-content{display:flex;padding:28px 22px}
.board-robber-notice .board-trade-kicker{color:#f3d393;margin-bottom:24px}
.robber-notice-portraits{display:flex;align-items:center;justify-content:center;gap:18px}
.robber-notice-victim .notice-portrait{width:112px;height:112px;background:#b6c6d0;animation:board-face-sigh 1.2s ease-in-out 2}
.robber-notice-thief .notice-portrait{width:84px;height:84px;background:#e4c17c}
.robber-notice-arrow{font-size:32px;color:#efd393}
.board-robber-notice h2{font-size:29px;margin:25px 0 18px;max-width:100%;overflow-wrap:anywhere}
.robber-notice-loss{display:flex;align-items:center;justify-content:center;gap:8px;padding:8px 18px;border:1px solid #edb39b99;border-radius:24px;background:#e9a38422;color:#ffdac7;font-size:19px;line-height:1.2}
.robber-notice-loss svg{width:42px;height:42px;flex:none;filter:drop-shadow(0 2px 4px #00172355)}
@keyframes robber-notice-backdrop{0%{opacity:0}6%,90%{opacity:1}100%{opacity:0}}
@keyframes robber-notice-arrive{0%{opacity:0;transform:translateY(16px) scale(.96)}12%,82%{opacity:1;transform:none}100%{opacity:0;transform:translateY(-12px)}}
@media(max-height:480px){.board-robber-notice .board-trade-content{padding:15px 20px}.board-robber-notice .board-trade-kicker{margin-bottom:12px}.robber-notice-victim .notice-portrait{width:70px;height:70px}.robber-notice-thief .notice-portrait{width:58px;height:58px}.board-robber-notice h2{font-size:23px;margin:14px 0 12px}.robber-notice-loss{font-size:16px;padding:8px 16px}}
@media(prefers-reduced-motion:reduce){.board-robber-backdrop,.robber-notice-victim .notice-portrait{animation:none!important}}
@media(max-height:480px){.robber-notice-loss svg{width:30px;height:30px}}

/* A lightweight victory burst needs no canvas, textures or extra 3D context. */
.board-victory-backdrop{position:absolute;inset:0;background:radial-gradient(ellipse at 50% 42%,#88713555,#031b2ad9 65%);animation:victory-backdrop 14s both}
.board-victory-group{width:min(680px,calc(100vw - 36px))}
.board-victory-notice{position:relative;display:flex;flex-direction:column;align-items:center;gap:0;width:100%;padding:32px 24px;color:#fff0c5;text-align:center;animation:victory-arrive var(--reaction-duration,14000ms) both;animation-delay:var(--reaction-delay,0ms)}
.victory-kicker{font-size:13px;letter-spacing:3px;font-weight:700;text-shadow:0 2px 10px #062c36}
.victory-portrait{position:relative;margin-top:65px}.victory-portrait:before{content:'';position:absolute;inset:-75px;border-radius:50%;background:radial-gradient(circle,#ffda7877,transparent 69%);z-index:-1}.victory-portrait .notice-portrait{width:190px;height:190px;border:6px solid #fff0b9;background:radial-gradient(circle,#fff0b7,#cd963b);box-shadow:0 0 0 6px var(--player),0 0 65px #ffe29b99,0 12px 40px #052b3a88;animation:board-face-cheer 1s ease-in-out 2}
.victory-crown{position:absolute;z-index:2;width:115px;height:77px;left:50%;top:-59px;transform:translateX(-50%) rotate(-7deg);filter:drop-shadow(0 4px 10px #c3862280)}
.board-victory-notice h2{max-width:100%;overflow-wrap:anywhere;margin:25px 0 20px;font:700 56px/1.1 Georgia,serif;color:#fff1c7;text-shadow:0 4px 20px #001b27,0 0 35px #ffcd6c55}.board-victory-notice h2>span{display:block;font-size:.65em;margin-top:7px;color:#f9d98a}
.victory-score{padding:12px 30px;border:1px solid #fff1b8;border-radius:30px;background:linear-gradient(135deg,#ffefb5,#e6ac39);box-shadow:0 6px 30px #ffda7044;color:#493817;font-size:24px}.board-victory-notice>p{font-size:16px;color:#cddcd7;margin:18px 0 0}
.victory-confetti{position:absolute;inset:0;overflow:hidden;pointer-events:none}.victory-confetti i{position:absolute;left:50%;top:48%;width:9px;height:17px;border-radius:2px;background:var(--confetti-color);animation:confetti-burst var(--confetti-duration) cubic-bezier(.15,.5,.4,1) both;backface-visibility:hidden}.victory-confetti i:nth-child(3n){width:12px;height:12px;border-radius:50%}.victory-confetti i:nth-child(5n){width:6px;height:22px}
@keyframes confetti-burst{0%{opacity:0;transform:translate(0,0) rotate(0) scale(.3)}3%{opacity:1}30%{transform:translate(var(--confetti-x),var(--confetti-y)) rotate(var(--confetti-spin)) scale(1)}76%{opacity:1}100%{opacity:0;transform:translate(var(--confetti-drift),75vh) rotate(calc(var(--confetti-spin) * 2)) scale(.8)}}
@keyframes victory-backdrop{0%{opacity:0}5%,92%{opacity:1}100%{opacity:0}}
@keyframes victory-arrive{0%{opacity:0;transform:translateY(25px) scale(.75)}5%{opacity:1;transform:translateY(-4px) scale(1.03)}9%,92%{opacity:1;transform:none}100%{opacity:0;transform:translateY(-16px)}}
@media(max-width:600px){.victory-kicker{font-size:10px;letter-spacing:1.8px}.victory-portrait .notice-portrait{width:145px;height:145px}.board-victory-notice h2{font-size:39px}.victory-score{font-size:21px}.victory-confetti i:nth-child(even){display:none}}
@media(max-height:600px){.board-victory-notice{padding:15px}.victory-portrait{margin-top:42px}.victory-portrait .notice-portrait{width:112px;height:112px}.victory-crown{width:80px;height:54px;top:-41px}.board-victory-notice h2{font-size:34px;margin:16px 0}.victory-score{font-size:18px;padding:9px 22px}.board-victory-notice>p{margin-top:12px;font-size:13px}}
@media(prefers-reduced-motion:reduce){.victory-confetti{display:none}.board-victory-backdrop,.board-victory-notice,.victory-portrait .notice-portrait{animation:none!important}}

/* Server-synchronized deadlines; the shared screen owns the audible warning. */
.desktop-game-timer,.board-fullscreen .desktop-game-timer{position:fixed;top:max(20px,env(safe-area-inset-top));right:max(24px,env(safe-area-inset-right));width:210px;max-height:none;overflow:visible;z-index:5;display:grid;gap:0;padding:18px 22px;border:1px solid #e4d29a66;border-radius:20px;background:linear-gradient(135deg,#c3e5ff26,#082e48bf 60%,#071e36d9);color:#fff0c5;box-shadow:inset 0 1px 0 #fff4cf4d,0 12px 32px #03172233;backdrop-filter:blur(10px) saturate(130%);-webkit-backdrop-filter:blur(10px) saturate(130%);pointer-events:none}
.game-timer-row{display:grid;justify-items:center;gap:5px;text-align:center}.game-timer-row>span{display:flex;align-items:center;gap:7px;font-size:12px;font-weight:700;letter-spacing:.12em;text-transform:uppercase;color:#d0e0e9}.game-timer-row svg{width:20px;height:20px}.game-countdown{font-variant-numeric:tabular-nums;line-height:1;letter-spacing:.01em}.turn-timer>.game-countdown{font-size:58px;font-weight:600}.offer-timer{margin-top:15px;padding-top:13px;border-top:1px solid #d2eeff33}.offer-timer>.game-countdown{font-size:30px}.game-timer-expired{display:none;font-size:11px;line-height:1.3;color:#e5cbb7}.is-expired>.game-timer-expired{display:block}.is-expired>.game-countdown{opacity:.6}.is-urgent .game-countdown{color:#ffb76a;text-shadow:0 0 22px #ff951f88}.game-timer-row.is-urgent{animation:timer-warning 1s ease-in-out infinite}.live-game.has-game-timer .actions{max-width:min(760px,calc(100vw - 510px))}.live-game:not(.board-fullscreen) .desktop-game-timer{top:110px}
.board-fullscreen.has-live-roster .desktop-game-timer{max-height:none}
.trade-deadline{display:flex;align-items:center;justify-content:space-between;gap:12px;margin:0 0 14px;padding:10px 14px;border-radius:12px;background:#ead5a14d;color:#685127;font-size:13px}.trade-deadline b{font-size:22px}.trade-deadline.is-urgent{background:#d06b1822;color:#8a420d}.trade-deadline.is-urgent .game-countdown{color:#9c4213;text-shadow:none}
.time-limit-settings{display:grid;gap:12px;margin:18px 0;padding:16px 0;border-block:1px solid #d2eeff33}.time-limit-settings h3{font-size:16px;margin:0;color:#fff0cb}.time-limit-settings label{display:flex;justify-content:space-between;align-items:center;gap:12px;margin:0;color:#e0eaf0;font-size:13px}.time-limit-settings label>span{display:flex;align-items:center;gap:7px;font-size:11px;color:#bacee0}.time-limit-settings input{width:76px;padding:9px 7px;border:1px solid #dfedfc55;border-radius:9px;background:#ffffff15;color:#fff6e2;font-size:16px;line-height:1.3;min-height:40px}.time-limit-settings p{margin:0;font-size:11px;line-height:1.5;color:#bacee0}.time-limit-settings button{border-color:#ffdc9477;background:linear-gradient(135deg,#ffe4a0,#e8b75c);color:#4c3618}
@keyframes timer-warning{50%{filter:brightness(1.2)}}
@media(max-width:1100px){.desktop-game-timer,.board-fullscreen .desktop-game-timer{width:170px;padding:14px 16px}.turn-timer>.game-countdown{font-size:48px}.live-game.has-game-timer .actions{max-width:calc(100vw - 430px)}}
@media(max-width:900px){.desktop-game-timer,.board-fullscreen .desktop-game-timer{top:16px;right:16px;width:150px;padding:10px 14px}.turn-timer>.game-countdown{font-size:38px}.game-timer-row>span{font-size:10px}.live-game.has-game-timer .actions{top:190px;max-width:calc(100vw - 32px)}}
@media(prefers-reduced-motion:reduce){.game-timer-row.is-urgent{animation:none}}

.avatar-role{display:block;font-size:11px;font-weight:400;color:#6a7e70;margin-top:2px}

.home-create-dialog{width:min(660px,calc(100vw - 32px));max-width:660px}.game-size-options{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:18px;margin:24px 0 12px}.game-size-options button{display:flex;flex-direction:column;align-items:center;justify-content:center;gap:14px;min-height:200px;padding:24px 12px;border:1px solid #a9916c;border-radius:16px;background:var(--control-surface);color:#fff1d5;transition:transform .15s,border-color .15s,background .15s}.game-size-options button:hover{transform:translateY(-3px);border-color:#e9c483;background:var(--control-hover)}.game-size-options button:focus-visible{outline:3px solid #dcae58;outline-offset:4px}.game-size-options strong{font-size:24px}.game-size-options small{font-size:13px;color:#d7ccb6}.game-size-island{font-size:48px;line-height:1;color:#e3c080}.game-size-options button:disabled{opacity:.6;transform:none}@media(max-width:480px){.game-size-options{gap:10px}.game-size-options button{min-height:170px;padding:18px 8px}.game-size-options strong{font-size:20px}.game-size-options small{font-size:11px}}

/* Illustrated private development-card draw, using a single lightweight image. */
.development-reveal{position:fixed;inset:0;margin:0;width:100vw;height:100dvh;max-width:none;max-height:none;padding:max(20px,env(safe-area-inset-top)) 20px max(18px,env(safe-area-inset-bottom));border:0;background:transparent;overflow:auto;color:#f9edcd;overscroll-behavior:none}
.development-reveal::backdrop{background:#031722db;backdrop-filter:blur(3px);-webkit-backdrop-filter:blur(3px)}
.development-reveal-content{--reveal-card-width:min(340px,calc(100vw - 44px),calc((100dvh - 174px)*.6667));min-height:100%;width:100%;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:16px}
.development-reveal-kicker{margin:0;text-align:center;font-size:13px;font-weight:700;letter-spacing:.12em;text-transform:uppercase}.development-reveal-kicker span{display:block;margin-top:5px;font-size:10px;letter-spacing:.08em;font-weight:400;color:#c1d0d0}
.development-playing-card{position:relative;isolation:isolate;flex:none;display:grid;grid-template-rows:auto minmax(0,1fr) auto auto;width:var(--reveal-card-width);height:calc(var(--reveal-card-width)*1.5);padding:13px;border:1px solid #fff0bd;border-radius:19px;background:radial-gradient(ellipse at 20% 0%,#fff7da,transparent 65%),linear-gradient(145deg,#f4e6bc,#dac58c);color:#302b1f;box-shadow:0 22px 65px #0009,0 0 44px #ecc77822,inset 0 0 0 4px #a87a3c55;overflow:hidden;transform-origin:50% 80%;animation:development-card-arrive .6s cubic-bezier(.16,.8,.3,1) both}
.development-playing-card::before{content:'';position:absolute;inset:7px;border:1px solid #9b793e88;border-radius:12px;pointer-events:none;z-index:2}.development-card-title{padding:10px 6px 12px;background:linear-gradient(120deg,#ffffff1c,#0000000d),var(--card-color);border:1px solid #2d332e66;border-bottom:3px double #fff2c8;color:#fff0ca;text-align:center;text-shadow:0 1px 2px #0005}.development-card-title small{display:block;font-size:9px;font-weight:600;letter-spacing:.15em;text-transform:uppercase;opacity:.88}.development-card-title h2{margin:4px 0 0;font-family:Georgia,serif;font-size:clamp(21px,6.8vw,32px);font-weight:700;letter-spacing:0;line-height:1}
.development-card-illustration{display:block;width:100%;height:100%;min-height:0;object-fit:cover;object-position:center;border-inline:1px solid #705d3b99;border-bottom:3px double #9a713b;user-select:none;-webkit-user-drag:none}
.development-card-description{padding:15px 9px 13px;text-align:center;background:radial-gradient(ellipse,#fff5d9b3,transparent 75%)}.development-card-description p{margin:0;font-family:Georgia,serif;font-size:clamp(13px,4.2vw,18px);line-height:1.4;text-wrap:pretty}.development-victory-point{display:block;margin:0 0 6px;color:#78541e;font-family:Georgia,serif;font-size:23px}.development-playing-card footer{display:grid;gap:6px;padding:9px 4px 4px;border-top:1px solid #997c4555;text-align:center}.development-playing-card footer>span{font-size:10px;font-weight:800;letter-spacing:.25em;color:#806637}.development-playing-card footer small{font-size:10px;color:#796c50}
.development-reveal-dismiss{width:var(--reveal-card-width);min-height:48px;display:flex;justify-content:center;align-items:center;gap:14px;border:1px solid #eacc87a6;border-radius:14px;background:linear-gradient(135deg,#fff0ba,#e5bd66);color:#543d1b;font-size:15px;box-shadow:0 6px 24px #0004}.development-reveal-dismiss span{font-size:23px;font-weight:400}.development-reveal-dismiss:hover:not(:disabled){background:#f6d794}
.development-hand .development-card{overflow:hidden;padding:13px;background:linear-gradient(145deg,#fbf1d4,#e7d7ae);border-color:#baa776}.development-hand .development-card-art{display:block;width:calc(100% + 26px);height:130px;object-fit:cover;margin:-13px -13px 13px;border-bottom:2px solid #c7b281;pointer-events:none}.development-hand .development-card h3{font-size:20px;color:#47391f}.development-hand .development-card button{margin-top:10px}
@keyframes development-card-arrive{from{opacity:0;transform:translateY(36px) rotate(-5deg) scale(.9)}to{opacity:1;transform:translateY(0) rotate(0) scale(1)}}
@media(max-height:700px) and (orientation:portrait){.development-reveal-content{gap:10px;--reveal-card-width:min(310px,calc(100vw - 44px),calc((100dvh - 150px)*.6667))}.development-card-title{padding:8px 5px}.development-card-description{padding:10px 6px}.development-card-description p{font-size:15px}.development-playing-card footer{gap:4px;padding:7px 3px 2px}.development-playing-card footer small{font-size:9px}}
@media(max-height:520px) and (orientation:landscape){.development-reveal{padding:16px max(20px,env(safe-area-inset-right)) 16px max(20px,env(safe-area-inset-left))}.development-reveal-content{--reveal-card-width:min(240px,calc((100dvh - 36px)*.6667));display:grid;grid-template-columns:var(--reveal-card-width) minmax(150px,210px);grid-template-rows:auto auto;align-content:center;justify-content:center;gap:20px 28px}.development-playing-card{grid-column:1;grid-row:1/3;padding:10px;border-radius:15px}.development-reveal-kicker{grid-column:2;grid-row:1;align-self:end}.development-reveal-dismiss{grid-column:2;grid-row:2;align-self:start;width:100%}.development-card-title{padding:6px 4px 8px}.development-card-title small{font-size:7px}.development-card-title h2{font-size:23px}.development-card-description{padding:9px 4px}.development-card-description p{font-size:13px;line-height:1.3}.development-victory-point{font-size:18px}.development-playing-card footer{gap:3px;padding:5px 1px 0}.development-playing-card footer small{font-size:8px}}
@media(prefers-reduced-motion:reduce){.development-playing-card{animation:none}}
/* Card typography stays centered independently of the page footer layout. */
.development-playing-card,.development-hand .development-card{text-align:center}
.development-playing-card footer{grid-template-columns:minmax(0,1fr);justify-content:stretch;justify-items:center;text-align:center}
.development-playing-card footer>span,.development-playing-card footer>small{width:100%;max-width:none;text-align:center}

/* Shared roster layouts for real games and visual previews. */
.live-player-overlay.roster-right{left:auto;right:18px;bottom:18px;transform:none;width:332px;padding:10px;max-width:calc(100vw - 24px)}
.live-player-overlay.roster-right ol{display:grid;grid-template-columns:1fr;gap:8px}
.live-player-overlay.roster-right .live-roster-player{display:grid;grid-template-columns:40px minmax(0,1fr) auto auto;gap:4px 9px;padding:9px;min-height:0;border-radius:14px}
.roster-right .live-roster-player .avatar{width:36px;height:36px;grid-row:1}
.roster-right .live-roster-player>div{text-align:left}
.roster-right .live-roster-awards{grid-column:3;grid-row:1;gap:5px}
.roster-right .live-roster-player>b{grid-column:4;grid-row:1;margin:0 0 0 10px;font-size:23px}
.live-player-overlay.roster-bottom{left:50%;right:auto;bottom:14px;transform:translateX(-50%);width:min(780px,calc(100vw - 32px));padding:10px}
.live-player-overlay.roster-bottom ol{display:grid;grid-template-columns:repeat(6,minmax(0,1fr));gap:8px}
.live-player-overlay.roster-bottom .live-roster-player{display:flex;flex-direction:column;gap:5px;padding:8px;min-height:0;border-radius:14px}
.roster-bottom .live-roster-player .avatar{width:36px;height:36px}
.roster-bottom .live-roster-player>div{text-align:center}
.roster-bottom .live-roster-awards{display:flex;gap:10px}
.roster-bottom .live-roster-player>b{display:block;font-size:23px;margin-top:7px}
.live-player-overlay.roster-bottom .live-roster-player,.live-player-overlay.roster-right .live-roster-player{opacity:1;filter:none}
.roster-bottom .live-roster-player strong,.roster-right .live-roster-player strong{font-size:13px}
.roster-bottom .live-roster-player>div>small,.roster-right .live-roster-player>div>small{font-size:10px;margin-top:3px}
.roster-bottom .live-roster-player>b small,.roster-right .live-roster-player>b small{display:inline;font-size:11px}
@media(max-width:600px){.live-player-overlay.roster-bottom ol{grid-template-columns:repeat(3,minmax(0,1fr))}}

.counter-offer-detail{flex-basis:100%;min-width:0;padding:10px;border:1px solid #799d8c;border-radius:10px}.trade-response.is-countered{flex-wrap:wrap}.counter-offer-detail .trade-response-actions{margin-top:10px}

.npc-control{display:grid;gap:8px;margin-top:18px;text-align:left}.npc-control label{font-weight:700}.npc-control select{padding:10px;border:1px solid #91aaa0;border-radius:10px;background:var(--control-surface);color:#fff;font:inherit}.npc-control small{line-height:1.4;opacity:.8}

/* Shared blue controls match the translucent lobby panels. */
.board-settings-trigger,.board-wrap .view-switch button,.npc-control select,
.lobby-code-card .game-id-icon-button{
 background:var(--control-surface);border-color:var(--control-border);color:var(--control-text);
}
.npc-control select option{background:#102d47;color:var(--control-text)}
.npc-control select:focus-visible{outline:2px solid #9bd4ff;outline-offset:3px}
.lobby-code-card .game-id-icon-button:hover:not(:disabled),.npc-control select:hover{background:var(--control-hover)}
#toast{background:var(--control-panel);color:var(--control-text);border:1px solid var(--control-border);backdrop-filter:blur(12px)}
