/* A quiet, warm game shell: the world owns the frame; tools appear on purpose. */
:root{color-scheme:dark;--ink:#f5ead1;--muted:#c8c7b2;--pine:#263d3a;--deep:#192b2c;--paper:#f5ead1;--paper-ink:#293c37;--gold:#e8ba69;--line:#b7c1a52e;--shadow:0 14px 40px #12272445;font-family:system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif}
*{box-sizing:border-box}body{margin:0;background:#29433e;color:var(--ink);height:100dvh;overflow:hidden}button,input,select,textarea{font:inherit}button,input,select,textarea,a{touch-action:manipulation}button{padding:10px 14px;min-height:44px;border:1px solid var(--line);border-radius:9px;background:#415850;color:inherit;cursor:pointer;font-size:13px}button:hover{background:#566f60;border-color:#ddcc9b88}button:disabled{opacity:.5;cursor:default}button:focus-visible,a:focus-visible,input:focus-visible,select:focus-visible,textarea:focus-visible,[tabindex]:focus-visible,summary:focus-visible{outline:3px solid var(--gold);outline-offset:3px}.primary{background:var(--gold);border-color:#caa060;color:#283d35;font-weight:650}.primary:hover{background:#f5cc85}.danger{border-color:#a4544466!important;color:#914e3e!important;background:#eed7c5!important}.subtle,small{font-size:12px;line-height:1.55;color:var(--muted)}p{line-height:1.6;margin:0 0 16px}h1,h2,h3{font-family:Georgia,"Times New Roman",serif;font-weight:normal;margin:0}h2{font-size:29px;line-height:1.15}h3{font-size:20px;margin:22px 0 12px}a{color:inherit}label{display:grid;gap:7px;font-size:13px;margin:14px 0}label.check{display:flex;align-items:center;gap:9px}input:not([type=checkbox]):not([type=radio]):not([type=range]),textarea,select{width:100%;min-height:44px;padding:11px 12px;border:1px solid #a5bba049;border-radius:8px;background:#213d36;color:var(--ink);font-size:15px}input[type=checkbox],input[type=radio]{accent-color:#b18445}textarea{resize:vertical;line-height:1.5}input[type=range]{width:100%;accent-color:#a77f40}.hud{background:#233c37ed;border:1px solid var(--line);box-shadow:var(--shadow);border-radius:13px}[hidden]{display:none!important}.sr-only{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0,0,0,0)}.eyebrow{font-size:10px;letter-spacing:.24em;font-weight:600;color:#e6c58b}#world{position:absolute;inset:0}#world canvas{display:block;width:100%;height:100%;outline:none}.title-screen{position:absolute;inset:0;overflow:auto;background:radial-gradient(ellipse at 74% 35%,#566353,#304b43 42%,#1e3735 85%);z-index:10}.title-content{position:relative;width:min(500px,48vw);margin:min(11vh,105px) 0 60px max(7vw,28px);z-index:2}.title-content h1{font-size:clamp(54px,6vw,88px);line-height:.93;letter-spacing:-.055em;color:#f2dfb6;margin:20px 0 22px}.title-content h1 span{font-size:.76em;letter-spacing:-.055em}.title-description{color:#c9d0b7;font:18px/1.55 Georgia,serif;margin-bottom:28px}.title-menu{display:grid;gap:8px;width:290px;max-width:100%}.title-menu button{display:flex;align-items:center;justify-content:space-between;padding:13px 19px;font-size:15px;text-align:left;background:#c3d1b40d;border-color:#e0dccb24;border-radius:7px;transition:transform .15s,background .15s}.title-menu button:hover{transform:translateX(5px);background:#dbe1c71d}.title-menu button.primary{background:var(--gold);color:#283d35;border-color:var(--gold)}.title-menu button span{opacity:.6;font-size:19px}.title-content #title-status{font-size:12px;color:#bacab4;margin:18px 0 8px;max-width:350px}.title-utilities{display:flex;gap:16px;flex-wrap:wrap}.title-utilities button,.identity-tools button{border:0;background:none;padding:4px 0;min-height:36px;font-size:11px;color:#c6cdb8;text-decoration:underline;text-underline-offset:4px}.identity-tools{font-size:11px;color:#aebea9;margin-top:12px;max-width:350px}.identity-tools summary{cursor:pointer;padding:6px 0}.identity-tools output{font:11px/1.5 ui-monospace,monospace;overflow-wrap:anywhere}.title-caption{position:absolute;right:9vw;bottom:7vh;color:#afbd9e;font:italic 15px Georgia,serif;letter-spacing:.03em}.title-atmosphere{position:absolute;inset:0;overflow:hidden;pointer-events:none}.title-moon{position:absolute;width:72px;height:72px;left:77%;top:13%;border-radius:50%;background:#eee0ac;box-shadow:0 0 90px #e8d69b28}.title-moon:after{content:"";position:absolute;width:63px;height:63px;top:-6px;left:20px;background:#52614e;border-radius:50%}.title-ground{position:absolute;width:75%;height:29%;border-radius:50% 40% 0 0;background:#1c3531;bottom:-8%;right:-8%;transform:rotate(-4deg)}.title-house{position:absolute;width:340px;height:238px;right:13vw;top:43%;background:linear-gradient(90deg,#25423a,#345042);border-radius:4px;transform:rotate(-2deg);box-shadow:0 40px 90px #122b2455}.title-house:before{content:"";position:absolute;left:-32px;right:-32px;top:-88px;height:110px;background:#1a332f;clip-path:polygon(0 100%,27% 14%,70% 0,100% 100%);border-bottom:8px solid #566447}.title-house:after{content:"";position:absolute;width:62px;height:111px;background:#1c3531;bottom:0;left:139px;border-radius:34px 34px 0 0;border:5px solid #566447}.title-house i{position:absolute;width:42px;height:58px;border-radius:18px 18px 0 0;background:#d7b270;box-shadow:0 0 30px #e8bb773c;top:28px;border:5px solid #738266}.title-house i:nth-child(1){left:32px}.title-house i:nth-child(2){left:104px}.title-house i:nth-child(3){right:104px}.title-house i:nth-child(4){right:32px}.title-house i:nth-child(5){left:32px;top:131px}.title-house i:nth-child(6){right:32px;top:131px}.admission{position:absolute;z-index:12;left:50%;top:50%;transform:translate(-50%,-50%);width:min(450px,calc(100% - 32px));max-height:calc(100dvh - 32px);overflow:auto;padding:28px;background:#29473ff5;border:1px solid #d9d7b32b;border-radius:20px;box-shadow:0 30px 80px #122b2966}.admission h2{margin:15px 0 14px}.admission .back-button{background:none;border:0;padding:0;min-height:32px;margin-bottom:20px;color:#bbc9b0}.profile-fields{display:grid;grid-template-columns:1.5fr 1fr;gap:12px}.admission form .primary{width:100%;margin:8px 0 16px}.admission #join-privacy{font-size:11px;margin:6px 0}.world-status{position:absolute;left:22px;top:20px;display:flex;gap:15px;align-items:center;padding:10px 12px;z-index:3;max-width:min(420px,calc(100% - 150px))}.world-status>div{min-width:0;display:grid;grid-template-columns:7px minmax(0,1fr);column-gap:9px;flex:1}.world-status strong{font:16px Georgia,serif;display:block;max-width:300px;min-width:0;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.location-dot{display:inline-block;width:7px;height:7px;background:#d8b876;border-radius:50%;margin-right:0;align-self:center}.world-status small{display:block;grid-column:1/-1;min-width:0;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;font-size:10px;color:#b6c8b3;margin-top:4px;padding-left:16px}.world-status button{background:none;border:0;font-size:20px;padding:0;width:44px;min-width:44px;min-height:44px;flex-shrink:0}.world-status #connection-limit-pending{width:auto;font-size:11px;padding:0 8px}.resident-disclosure{position:absolute;right:22px;top:20px;z-index:4;max-width:min(420px,calc(100% - 44px));font-size:12px}.resident-disclosure summary{padding:14px;min-height:44px;cursor:pointer}.resident-disclosure[open]{width:330px}.roster{padding:0 12px 10px;max-height:240px;overflow:auto}.resident{display:block;padding:10px 2px;border-top:1px solid var(--line);font-size:11px;line-height:1.5;overflow-wrap:anywhere}.resident[data-willing=true]{color:#d9eabf}.resident time{display:block;color:#acbea4;font-size:10px}.availability{position:absolute;left:22px;top:95px;padding:0 10px;display:flex;gap:12px;z-index:3}.availability label{display:flex;align-items:center;gap:6px;font-size:11px;margin:9px 0}.context-hint{position:absolute;bottom:91px;left:50%;transform:translateX(-50%);color:#eff0da;font-size:11px;line-height:1.5;text-align:center;padding:8px 14px;border-radius:20px;background:#233c3799;max-width:calc(100% - 40px);pointer-events:none}.toolbelt{position:absolute;bottom:24px;left:50%;transform:translateX(-50%);display:flex;gap:4px;padding:6px;z-index:3;max-width:calc(100% - 32px)}.toolbelt button{background:transparent;border:0;white-space:nowrap;font-size:12px;padding:9px 15px}.toolbelt button:hover{background:#54705c}.toolbelt button:last-child{font-size:17px;padding:7px 14px;border-left:1px solid var(--line);border-radius:0 7px 7px 0}#chat-count:not(:empty){display:inline-block;padding:1px 5px;border-radius:12px;background:var(--gold);color:var(--deep);font-size:10px}.touch-toggle{position:absolute;left:22px;bottom:24px;display:none;z-index:4;font-size:11px}.movement{position:absolute;left:22px;bottom:80px;padding:8px;display:flex;flex-direction:column;align-items:center;gap:4px;user-select:none;z-index:4}.movement>div{display:flex;gap:4px}.movement button{width:44px;min-height:44px;padding:7px;touch-action:none}.takeover{position:absolute;right:22px;bottom:100px;z-index:3;font-size:11px}.modal-backdrop{position:absolute;inset:0;background:#102a2866;backdrop-filter:none;z-index:11}.panel{position:absolute;top:50%;left:50%;transform:translate(-50%,-50%);z-index:12;width:min(490px,calc(100% - 32px));max-height:calc(100dvh - 40px);padding:24px;overflow:auto;background:var(--paper);color:var(--paper-ink);border:1px solid #fff5;box-shadow:0 25px 90px #102a2866;border-radius:17px;color-scheme:light}.panel[data-tool=room]{left:auto;right:22px;top:20px;bottom:100px;transform:none;width:min(410px,calc(100% - 32px));max-height:none}.panel button{background:#e6ddc5;color:var(--paper-ink);border-color:#aab49155}.panel button:hover{background:#d3d9bf}.panel .primary{background:var(--gold)}.panel .subtle,.panel small{color:#67725e}.panel input:not([type=checkbox]):not([type=radio]):not([type=range]),.panel textarea,.panel select{background:#fffaed;color:var(--paper-ink);border-color:#acb7a366}.panel-heading{display:flex;justify-content:space-between;align-items:center;gap:16px;margin-bottom:20px}.panel-heading h2{font-size:28px}.panel-heading button{font-size:24px;padding:0;width:44px;flex-shrink:0;background:transparent;border:0}.panel form{margin:16px 0}.button-row{display:flex;gap:7px;flex-wrap:wrap;margin:12px 0}.button-row button{font-size:11px;padding:8px 10px}.panel-feedback{font-size:12px;line-height:1.6;padding:12px;background:#d2d5b829;border:1px solid #afb99855;border-radius:9px;overflow-wrap:anywhere}.code-row{display:flex;justify-content:space-between;align-items:center;gap:10px;padding:12px;background:#e2ddc8;border-radius:10px}.code-row code{font:22px ui-monospace,monospace;letter-spacing:.1em}.member-row{border-bottom:1px solid #b0b79a55;padding:12px 0;font-size:13px;display:flex;justify-content:space-between;align-items:center;gap:10px}.member-row>div{display:flex;flex-wrap:wrap;gap:5px}.member-row button{font-size:10px;padding:6px 8px}.card{padding:15px;border:1px solid #b0b79a66;border-radius:12px;margin:12px 0;background:#fff9e480;overflow-wrap:anywhere}.card h3{margin:6px 0;font-size:20px}.card p{font-size:13px;white-space:pre-wrap;margin:10px 0}.card-state{font-size:11px;color:#55794f}.card a{font-size:12px}.pending-entry{padding:12px 0;border-bottom:1px solid #aab49155;overflow-wrap:anywhere;font-size:12px}.pending-entry pre{font:11px/1.6 ui-monospace,monospace;white-space:pre-wrap;max-height:180px;overflow:auto;background:#dedac9;padding:10px;border-radius:8px}.pending-entry details{margin:10px 0}.panel output,#lobby-recovery-output{display:block;overflow-wrap:anywhere;font:12px/1.5 ui-monospace,monospace;margin:10px 0}#camera-controls output{display:inline;font:12px system-ui,sans-serif;margin:0}#camera-controls label{grid-template-columns:1fr auto}#camera-controls input{grid-column:1/-1}#furniture-editor{border-top:1px solid #aab49155;margin-top:20px}#furniture-editor .button-row:first-of-type{display:grid;grid-template-columns:repeat(3,1fr)}.readme-link{display:block;padding:13px;border:1px solid #aab49166;border-radius:9px;font-size:13px;text-decoration:none}hr{border:0;border-top:1px solid #aab49155;margin:24px 0}.chat-window{position:absolute;z-index:5;display:flex;flex-direction:column;background:#f4ead4;color:var(--paper-ink);border-color:#ebe0c5;min-width:0;min-height:0;overflow:hidden;color-scheme:light;border-radius:14px;box-shadow:0 16px 60px #162e2b55}.chat-heading{display:flex;align-items:center;gap:7px;padding:11px 12px;flex:0 0 62px;border-bottom:1px solid #bcc4aa66;cursor:grab;touch-action:none;background:#e6dfc7}.chat-heading>div{flex:1;min-width:0}.chat-heading strong{font:17px Georgia,serif;overflow:hidden;text-overflow:ellipsis;display:block;white-space:nowrap}.chat-heading small{display:block;font-size:9px;color:#77816c;margin-top:3px}.chat-heading button{background:transparent;color:var(--paper-ink);border:0;padding:5px 8px;min-height:36px;font-size:10px}.chat-heading #chat-close{font-size:21px;min-width:32px}.chat-body{display:flex;flex-direction:column;min-height:0;flex:1}.chat-body #chat-panel{display:flex;flex-direction:column;min-height:45px;flex:1;padding:0 15px}.chat-body #chat-privacy{flex-shrink:0;margin:11px 0 4px;font-size:10px;color:#7a806c;line-height:1.4}.chat-body #transcript{margin:0;padding:0;overflow:auto;overscroll-behavior:contain;list-style:none;flex:1;font-size:13px;scrollbar-width:thin}.chat-body #transcript li{padding:10px 0;border-bottom:1px solid #bdc3a848;overflow-wrap:anywhere;white-space:pre-wrap;line-height:1.6}.chat-body #transcript b{color:#587b56;font-size:11px;display:block;margin-bottom:2px}.chat-body #quick-chat{padding:11px 13px 13px;border-top:1px solid #bcc4aa66;flex-shrink:0;min-height:0}.chat-body textarea{min-height:64px;max-height:160px;height:76px;resize:vertical;background:#fffbef;color:var(--paper-ink);border-color:#acb7a355;font-size:13px}.composer-actions{display:flex;gap:10px;align-items:center;justify-content:space-between;margin-top:6px;padding-right:7px}.composer-actions span{font-size:9px;line-height:1.4;color:#74806a;max-width:190px}.composer-actions button{min-height:36px;padding:7px 13px;font-size:11px}.resize-handle{position:absolute;bottom:1px;right:1px;padding:0;width:23px;min-height:23px;border:0;background:transparent;color:#84947d;font-size:17px;cursor:nwse-resize;touch-action:none}.notice{position:absolute;z-index:20;bottom:104px;left:50%;transform:translateX(-50%);max-width:min(560px,calc(100% - 32px));padding:14px 20px;background:#f3e5be;color:#2d4339;border-radius:10px;box-shadow:var(--shadow);font-size:12px;line-height:1.5;pointer-events:none}.board-workspace{position:absolute;inset:0;z-index:30;background:#f5f0e3;color:#304236;display:flex;flex-direction:column;color-scheme:light}.board-workspace>header{display:flex;align-items:center;gap:20px;padding:8px 14px;background:#e9e2cc;flex-shrink:0;border-bottom:1px solid #d2d6bd}.board-workspace h2{font:18px Georgia,serif}.board-workspace #board-status{font-size:10px;color:#6e7a63;flex:1}.board-workspace button{background:#fbf7e9;color:#304236;border-color:#afb99c66;font-size:12px}.board-workspace #board-frame-host{flex:1;min-height:0}.board-workspace iframe{display:block;width:100%;height:100%;border:0;background:#fff}noscript{position:absolute;inset:35% 15% auto;z-index:30;background:#29473f;padding:25px}
@media(pointer:coarse){.touch-toggle{display:block}.toolbelt{bottom:24px;left:auto;right:16px;transform:none;max-width:calc(100% - 122px)}.toolbelt button{padding:8px 10px}}
@media(max-width:700px){.title-content{width:calc(100% - 48px);margin:60px 24px 45px}.title-content h1{font-size:61px}.title-description{font-size:16px;margin-bottom:24px}.title-menu{width:100%}.title-atmosphere{opacity:.45}.title-house{right:-175px;top:39%;transform:rotate(-4deg) scale(.8)}.title-moon{left:78%;top:6%;width:44px;height:44px}.title-moon:after{width:40px;height:40px;left:15px;background:#3b5547}.title-caption{display:none}.title-content #title-status{font-size:11px}.admission{padding:22px}.profile-fields{gap:9px}.world-status{left:12px;top:12px;padding:9px 10px;max-width:calc(100% - 126px);gap:6px}.world-status strong{font-size:13px;max-width:200px}.world-status small{font-size:9px}.world-status button{width:44px;min-height:44px}.resident-disclosure{right:12px;top:12px;max-width:calc(100% - 24px)}.resident-disclosure summary{font-size:10px;padding:13px 10px}.resident-disclosure[open]{width:calc(100% - 24px)}.availability{left:12px;top:87px;padding:0 9px;gap:10px}.availability label{font-size:10px}.toolbelt{bottom:16px;left:12px;right:12px;transform:none;max-width:none;justify-content:space-between;padding:4px;gap:0}.toolbelt button{font-size:10px;padding:8px 9px}.toolbelt button:last-child{font-size:15px;padding:8px 12px}.context-hint{bottom:78px;font-size:10px;width:calc(100% - 24px);max-width:none}.touch-toggle{left:12px;bottom:112px;min-height:40px;padding:8px 11px}.movement{left:12px;bottom:160px}.takeover{right:12px;bottom:112px;font-size:10px}.panel{padding:20px;max-height:calc(100dvh - 24px)}.panel[data-tool=room]{right:12px;top:130px;bottom:84px;width:calc(100% - 24px)}.panel-heading h2{font-size:25px}.chat-heading{padding:10px}.chat-heading strong{font-size:16px}.chat-body textarea{font-size:16px;height:68px}.chat-body #quick-chat{padding:9px 11px 11px}.composer-actions span{font-size:9px}.notice{bottom:84px}.board-workspace>header{gap:8px;padding:7px 9px}.board-workspace h2{font-size:15px}.board-workspace #board-status{display:none}.board-workspace button{margin-left:auto;font-size:10px}}
@media(max-height:600px){.title-content{margin-top:35px}.title-content h1{font-size:55px}.title-description{font-size:15px;margin-bottom:14px}.title-menu{gap:5px}.title-menu button{padding:9px 15px;min-height:40px}.panel[data-tool=room]{top:12px;bottom:78px}.chat-body textarea{height:58px;min-height:50px}.chat-body #chat-privacy{font-size:9px}.context-hint{bottom:80px}}
@media(prefers-reduced-motion:reduce){*{scroll-behavior:auto!important;transition:none!important}}
body[data-reduced-motion=true] *{scroll-behavior:auto!important;transition:none!important}

.chat-window[data-compact=true] .chat-body #chat-privacy{display:none}.chat-window[data-compact=true] .chat-body #chat-panel{min-height:0}.chat-window[data-compact=true] .chat-body #quick-chat{padding:7px 10px 10px}.chat-window[data-compact=true] .chat-body textarea{min-height:44px;height:48px;max-height:70px}.chat-window[data-compact=true] .composer-actions span{max-width:160px}.chat-window[data-compact=true] .composer-actions button{min-height:32px;padding:5px 10px}

#context-hint:empty{display:none}

.camera-hud{position:absolute;left:24px;top:148px;display:flex;gap:3px;padding:4px;z-index:3}.camera-hud button{min-height:44px;padding:8px 12px;border-color:transparent;background:transparent;font-size:12px}.camera-hud button[aria-pressed=true]{background:#e8ba69;color:#283d35}.camera-hud button:hover{background:#566f60}.camera-hud button[aria-pressed=true]:hover{background:#f5cc85}
@media(max-width:700px){.camera-hud{left:12px;top:140px}.camera-hud button{padding:8px 10px;font-size:11px}}
@media(max-height:450px){.camera-hud{left:auto;right:12px;top:76px}.camera-hud button{min-height:44px;padding:7px 9px}}

#light-form,#starter-editor{border-top:1px solid #aab49155;padding-top:12px;margin-top:20px}#starter-editor summary{cursor:pointer;font:20px Georgia,serif;padding:10px 0}#starter-editor select,#light-form select{width:100%}#light-form button{margin-top:12px}.starter-preview{margin-top:12px;background:#ede4cd;border:1px solid #aab49166;border-radius:10px;overflow:hidden}.starter-preview svg{display:block;width:100%;max-height:230px}#starter-status{min-height:2.6em}

/* Keep the tool title and its exit distinct from card actions in long forms. */
.panel-heading{position:sticky;top:0;z-index:2;background:var(--paper);padding:8px 0;border-bottom:1px solid #aab49155}

/* The same voluntary panel shell holds the public break table. Cells are descriptive; columns are touch targets. */
.panel-heading{margin-top:-8px;top:-24px;padding-top:24px;background:var(--paper);box-shadow:0 -24px 0 var(--paper)}
.panel[data-tool=game]{width:min(570px,calc(100% - 24px));padding:12px;max-height:calc(100dvh - 24px)}
.panel[data-tool=game] .panel-heading{top:-12px;padding-top:12px;margin-top:-8px;margin-bottom:8px;box-shadow:0 -12px 0 var(--paper)}
.panel[data-tool=game] .panel-heading h2{font-size:25px}
.game-layout{display:grid;gap:10px}.game-position{min-width:0}.game-turn{font-size:15px;font-weight:650;line-height:1.35;min-height:21px;margin:0 0 4px}.game-last{font-size:12px;line-height:1.3;margin:0 0 6px;min-height:16px}.game-columns{display:grid;grid-template-columns:repeat(7,minmax(0,1fr));gap:4px;margin-bottom:4px}.game-columns button{padding:4px;min-width:0;min-height:44px;font-weight:650}.game-grid{border:2px solid #557063;padding:4px;border-radius:9px;background:#cbd6bb;display:grid;gap:4px}.game-grid>[role=row]{display:grid;grid-template-columns:repeat(7,minmax(0,1fr));gap:4px}.game-grid [role=cell]{height:40px;border-radius:6px;display:flex;align-items:center;justify-content:center;font-size:17px;font-weight:700;background:#f9f3df;color:#626c58}.game-grid [data-token="0"]{background:#efd397;color:#493c25;border-radius:50%}.game-grid [data-token="1"]{background:#526c62;color:#fff8df;border-radius:2px}.game-grid [data-last=true]{outline:3px solid #1d352b;outline-offset:-3px;text-decoration:underline;text-underline-offset:4px}.game-legend{font-size:11px;line-height:1.2;margin:6px 0 0}.game-intro{font-size:12px;margin:0 0 5px;line-height:1.35}.game-decisions>[data-game-roster]{font-size:12px;line-height:1.35;margin:0 0 6px;overflow-wrap:anywhere}.game-consent,.game-exits{display:flex;gap:6px;flex-wrap:wrap}.game-consent button,.game-exits button{font-size:12px;padding:8px 10px}.game-feedback{font-size:12px;line-height:1.35;margin:6px 0;overflow-wrap:anywhere}.game-deadline{font-size:11px;line-height:1.35;margin:7px 0 0}.game-rules{font-size:12px;margin-top:8px;line-height:1.5}.game-rules summary{min-height:44px;padding:12px 0;cursor:pointer}.game-rules p{margin:4px 0 12px}.game-rules table{border-collapse:collapse;font-size:11px;width:100%}.game-rules th,.game-rules td{border:1px solid #aab491;padding:4px;text-align:center}.game-rules caption{text-align:left;margin-bottom:6px}.game-table-status{position:absolute;z-index:5;right:22px;bottom:94px;display:flex;gap:5px;align-items:center;max-width:calc(100% - 24px);padding:4px 6px;font-size:11px}.game-table-status button{min-height:44px;padding:7px 10px;font-size:11px}.places-list{display:grid;gap:9px}.places-list button{text-align:left}.toolbelt button{padding-left:11px;padding-right:11px}
@media(max-width:700px){.panel-heading{top:-20px;padding-top:20px;box-shadow:0 -20px 0 var(--paper)}.game-table-status{right:12px;bottom:78px;max-width:calc(100% - 24px)}.toolbelt button{padding-left:6px;padding-right:6px;font-size:10px}.game-grid [role=cell]{height:39px}.game-decisions .game-exits button{flex:1}.game-table-status>span{max-width:146px;line-height:1.3}}
@media(max-height:500px) and (min-width:600px){.panel[data-tool=game]{width:min(810px,calc(100% - 24px));height:calc(100dvh - 24px);max-height:none}.game-layout{grid-template-columns:minmax(310px,1fr) minmax(270px,.95fr);gap:16px}.game-grid [role=cell]{height:27px;font-size:14px}.game-grid,.game-grid>[role=row]{gap:3px}.game-turn{font-size:13px;min-height:18px}.game-last{font-size:11px}.game-columns{gap:3px}.game-legend{margin-top:5px}.game-table-status{bottom:80px}.game-rules summary{font-size:11px}.panel[data-tool=game] .panel-heading{height:44px;min-height:44px;padding-top:0;margin-top:0}.panel[data-tool=game] .panel-heading h2{font-size:22px}}

.game-columns button[aria-disabled=true]{opacity:.65;cursor:help}.game-columns button[aria-disabled=true]:focus-visible{opacity:1}

.update-required{position:absolute;left:50%;top:20px;transform:translateX(-50%);width:min(520px,calc(100% - 24px));max-height:calc(100dvh - 40px);overflow:auto;padding:20px;z-index:10;background:var(--paper);color:var(--paper-ink);box-shadow:var(--shadow)}.update-required h2{font-size:24px}.update-required p{font-size:13px;line-height:1.5}.update-required button{min-height:44px;background:#e6ddc5;color:var(--paper-ink)}#voice-destination{overflow-wrap:anywhere}#voice-form{padding:12px 0;border-bottom:1px solid #aab49155}#voice-status{min-height:2em}

/* Picture table: one full illustration beneath opaque unsolved covers. */
.break-menu{display:flex;gap:8px;margin:0 0 8px}.break-menu button{display:flex;flex:1;flex-direction:column;gap:3px;align-items:flex-start;min-width:0;font-weight:650}.break-menu button[aria-pressed=true]{border:2px solid #77603b;background:#eed8a9;padding:9px 13px}.break-menu span{font-size:11px;font-weight:normal}.break-menu+p{font-size:11px;line-height:1.4;margin:0 0 8px}.panel[data-tool=game][data-break-activity=picture]{width:min(1220px,calc(100% - 28px));max-height:calc(100dvh - 28px);padding:14px 20px}.puzzle-top{display:flex;align-items:center;justify-content:space-between;gap:12px;margin:0 0 8px}.puzzle-top>p{font-size:12px;margin:0;line-height:1.4}.puzzle-tools{display:flex;gap:6px;flex-shrink:0}.puzzle-tools button,.puzzle-consent button{font-size:12px;padding:8px 11px}.puzzle-consent{display:flex;gap:6px;flex-wrap:wrap;margin:0 0 12px;position:sticky;top:46px;z-index:2;background:var(--paper);padding:4px 0}.puzzle-workspace{display:grid;grid-template-columns:minmax(0,1fr) 350px;gap:26px;align-items:center}.puzzle-board-section,.puzzle-tray-section{min-width:0}.puzzle-section-heading{display:flex;justify-content:space-between;align-items:center;gap:8px;margin-bottom:7px}.puzzle-section-heading h3{font:20px Georgia,serif;margin:0}.puzzle-section-heading span{font-size:12px;white-space:nowrap}.puzzle-board{display:grid;grid-template-columns:repeat(6,minmax(0,1fr));width:min(100%,650px);margin:auto;border:2px solid #718262;border-radius:10px;background-size:100% 100%;background-repeat:no-repeat;background-origin:content-box;background-clip:content-box;padding:4px}.panel .puzzle-cell{aspect-ratio:1;min-height:0;min-width:0;padding:0;position:relative;border:1px dashed #8a967c;border-radius:3px;background:#e8e5cf}.puzzle-cell:before{content:'+';position:absolute;inset:0;display:grid;place-items:center;font:20px Georgia,serif;color:#6e7c61}.panel .puzzle-cell.placed{background:transparent;border:1px solid #a5b18e}.puzzle-cell.placed:before{display:none}.puzzle-instruction{font-size:12px;line-height:1.4;text-align:center;margin:8px 0 0;color:#53624c}.puzzle-tray{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:7px;padding:5px;background:#e5dfc8;border:1px solid #aab49a66;border-radius:9px}.panel .puzzle-piece{aspect-ratio:1;min-width:44px;min-height:44px;padding:0;position:relative;background-size:600% 400%;background-repeat:no-repeat;border:2px solid #fff8e5;border-radius:6px;box-shadow:0 2px 3px #4d564733}.puzzle-piece[aria-pressed=true]{outline:3px solid #72491c;outline-offset:-5px;border-color:#614521}.puzzle-piece[aria-pressed=true]:after{content:'✓';display:grid;place-items:center;position:absolute;right:1px;bottom:1px;background:#f7d190;color:#3d3d27;width:20px;height:20px;border-radius:50%;font-weight:700}.puzzle-piece.placed{opacity:.55;filter:saturate(.45);box-shadow:none}.puzzle-piece.placed:after{content:'Placed';position:absolute;inset:auto 0 0;background:#334b3cf5;color:#fff9e7;font-size:10px;padding:3px}.puzzle-piece[aria-disabled=true],.puzzle-cell[aria-disabled=true]{cursor:default}.puzzle-browse{display:flex;justify-content:space-between;align-items:center;gap:6px;height:48px;font-size:11px}.puzzle-browse button{font-size:12px;padding:7px 12px}.puzzle-selection{display:flex;gap:10px;align-items:center;border-top:1px solid #aab49a66;min-height:76px;padding-top:10px}.puzzle-selection p{font-size:12px;line-height:1.45;margin:0}.puzzle-preview{width:64px;height:64px;flex-shrink:0;background-color:#e8e5cf;border:1px dashed #8a967c;border-radius:7px;background-size:600% 400%;background-repeat:no-repeat}.puzzle-feedback{font-size:12px;line-height:1.5;min-height:44px;margin:12px 0 0;padding:10px 12px;border:1px solid #bbc3a7;border-radius:8px;background:#e7dfc6;overflow-wrap:anywhere}.puzzle-reset{padding:12px;border:1px solid #9a7151;background:#f1dfc6;border-radius:9px;margin:8px 0}.puzzle-reset p{font-size:12px;margin-bottom:8px}.puzzle-reference{position:absolute;z-index:4;top:80px;bottom:15px;right:15px;width:min(540px,calc(100% - 30px));overflow:auto;padding:16px;background:#fffaed;border:2px solid #82916f;border-radius:12px;box-shadow:0 20px 70px #173a2a66}.puzzle-reference>div{display:flex;align-items:center;justify-content:space-between;gap:12px;position:sticky;top:-16px;background:#fffaed;padding:6px 0}.puzzle-reference h3{margin:0}.puzzle-reference img{width:100%;height:auto;display:block;margin:8px 0}.puzzle-reference p{font-size:13px;line-height:1.6;margin:8px 0}.room-work-entry{padding:14px;background:#e8e2cb;border:1px solid #b3b99f;border-radius:10px;margin-bottom:14px}.room-work-entry .eyebrow{color:#657653;font-size:9px;line-height:1.4;margin-bottom:6px}.room-work-entry p{font-size:12px;line-height:1.5;overflow-wrap:anywhere;white-space:pre-wrap;margin:6px 0}.room-work-entry .subtle{font-size:11px;margin-bottom:0}.room-work-entry button{width:100%;margin-top:8px}
@media(max-width:700px){.panel[data-tool=game][data-break-activity=picture]{width:calc(100% - 16px);max-height:calc(100dvh - 16px);padding:10px 12px}.panel[data-tool=game][data-break-activity=picture] .panel-heading{top:-10px;padding-top:10px;box-shadow:0 -10px 0 var(--paper)}.break-menu{gap:6px}.break-menu button{font-size:11px;padding:8px}.break-menu button[aria-pressed=true]{padding:7px}.break-menu span{font-size:10px}.puzzle-top{gap:6px;flex-wrap:wrap}.puzzle-top>p{font-size:10px;flex:1;min-width:125px}.puzzle-tools button{font-size:10px;padding:6px 8px}.puzzle-consent{gap:5px;top:45px;margin-bottom:7px}.puzzle-consent button{font-size:10px;padding:6px 8px;flex:1;white-space:nowrap}.puzzle-workspace{display:flex;flex-direction:column;gap:10px;align-items:stretch}.puzzle-section-heading h3{font-size:17px}.puzzle-section-heading span{font-size:10px}.puzzle-board{width:min(100%,330px);padding:3px}.puzzle-instruction{font-size:10px;margin-top:5px}.puzzle-tray{grid-template-columns:repeat(6,minmax(0,1fr));gap:4px;padding:4px}.puzzle-browse{height:44px}.puzzle-browse button{font-size:11px}.puzzle-selection{min-height:52px;padding-top:5px;gap:8px}.puzzle-preview{width:44px;height:44px}.puzzle-selection p{font-size:11px}.puzzle-feedback{margin-top:8px;font-size:10px;padding:8px;min-height:40px}.puzzle-reference{top:55px;padding:12px}.puzzle-reference p{font-size:12px}}
@media(max-height:500px) and (min-width:701px){.panel[data-tool=game][data-break-activity=picture]{width:calc(100% - 16px);height:calc(100dvh - 16px);max-height:none;padding:8px 12px}.panel[data-tool=game][data-break-activity=picture] .panel-heading{height:44px;min-height:44px;padding-top:0;margin-top:0}.break-menu{max-width:440px;margin:0 0 3px}.break-menu button{flex-direction:row;align-items:center;justify-content:space-between;font-size:10px;padding:5px 8px;min-height:44px}.break-menu button[aria-pressed=true]{padding:4px 7px}.break-menu+p{font-size:10px;margin-bottom:4px}.puzzle-top{margin:0 0 4px}.puzzle-top>p{font-size:10px}.puzzle-tools button{font-size:10px;padding:5px 8px}.puzzle-consent{top:40px;margin-bottom:5px;padding:0;gap:5px}.puzzle-consent button{font-size:10px;padding:5px 8px}.puzzle-workspace{grid-template-columns:minmax(0,1fr) 340px;gap:20px;align-items:start}.puzzle-section-heading{margin-bottom:4px}.puzzle-section-heading h3{font-size:17px}.puzzle-section-heading span{font-size:10px}.puzzle-board{width:296px;padding:3px}.puzzle-tray{grid-template-columns:repeat(6,minmax(0,1fr));gap:5px}.puzzle-instruction{font-size:10px;margin-top:4px}.puzzle-browse{height:44px}.puzzle-selection{min-height:46px;padding-top:4px}.puzzle-preview{width:44px;height:44px}.puzzle-selection p{font-size:10px}.puzzle-feedback{font-size:10px;margin-top:4px;padding:7px;min-height:38px}body[data-break-activity=picture] .chat-window[data-compact=true] .chat-body #chat-panel{min-height:80px}body[data-break-activity=picture] .chat-body #transcript{min-height:64px}body[data-break-activity=picture] .chat-body #quick-chat{padding:7px 10px}body[data-break-activity=picture] .chat-body textarea{height:44px;min-height:44px;max-height:60px}body[data-break-activity=picture] .chat-body #chat-privacy{display:none}}

@media(max-height:500px) and (min-width:701px){body[data-break-activity=picture] .chat-body #quick-chat{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:8px}body[data-break-activity=picture] .chat-body .composer-actions{display:contents}body[data-break-activity=picture] .chat-body .composer-actions span{display:none}body[data-break-activity=picture] .chat-body .composer-actions button{grid-column:2;grid-row:1;min-height:44px}body[data-break-activity=picture] .chat-body textarea{grid-column:1;grid-row:1;min-width:0;resize:none}}

/* Native integration: voluntary break tools must leave the real conversation on top. */
body[data-break-activity=picture] .chat-window,body[data-break-activity=four] .chat-window{z-index:14}
/* Keep all four picture rows visible in short landscape without shrinking targets. */
@media(max-height:500px) and (min-width:701px){.panel[data-tool=game][data-break-activity=picture] .panel-heading{margin-bottom:0}.panel[data-tool=game][data-break-activity=picture] .break-menu{position:absolute;left:180px;top:8px;width:430px;max-width:calc(100% - 250px);margin:0;z-index:3}.panel[data-tool=game][data-break-activity=picture] #break-exclusive{display:none}.panel[data-tool=game][data-break-activity=picture] .puzzle-top{margin-bottom:0}.panel[data-tool=game][data-break-activity=picture] .puzzle-consent{margin-bottom:0}}

/* A chat resized in landscape keeps readable conversation when the view grows again. */
body:is([data-break-activity=picture],[data-break-activity=four]) .chat-window[data-compact=true] .chat-body #chat-panel{min-height:80px}
body:is([data-break-activity=picture],[data-break-activity=four]) .chat-window[data-compact=true] .chat-body #quick-chat{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:8px;padding:7px 10px}
body:is([data-break-activity=picture],[data-break-activity=four]) .chat-window[data-compact=true] .chat-body .composer-actions{display:contents}
body:is([data-break-activity=picture],[data-break-activity=four]) .chat-window[data-compact=true] .chat-body .composer-actions span{display:none}
body:is([data-break-activity=picture],[data-break-activity=four]) .chat-window[data-compact=true] .chat-body .composer-actions button{grid-column:2;grid-row:1;min-height:44px}
body:is([data-break-activity=picture],[data-break-activity=four]) .chat-window[data-compact=true] .chat-body textarea{grid-column:1;grid-row:1;min-width:0;min-height:44px;height:44px;max-height:60px;resize:none}

/* The resident disclosure and Places share native keyboard visit actions. */
button.resident{text-align:left;white-space:normal;min-height:44px;cursor:pointer}#resident-visits button{text-align:left}#game-place-occupancy{white-space:pre-line}#game-table-status{flex-wrap:wrap;max-width:calc(100% - 24px)}
#game-panel-stand{float:right;margin:0 0 6px 10px;font-size:11px}.panel[data-tool=game] .panel-heading #panel-close{width:auto;min-width:44px;padding:7px 10px;font-size:12px}#game-panel-stand + .break-menu{clear:both}
body[data-panel=studio] .chat-window{z-index:14}.panel[data-tool=studio]{width:min(1050px,calc(100% - 24px));max-height:calc(100dvh - 28px)}
body[data-panel=gathering] .chat-window{z-index:14}.panel[data-tool=gathering]{width:min(1050px,calc(100% - 24px));max-height:calc(100dvh - 28px)}

/* Picture controls have a fixed primary footprint; player names and secondary
   table actions are available in an explicit, bounded native disclosure. */
.puzzle-top{flex-wrap:wrap}
.puzzle-top>[data-puzzle-roster]{font-size:13px;line-height:1.35;min-width:0;margin:0;flex-shrink:0;white-space:nowrap}
.puzzle-toolbar{display:grid;grid-template-columns:repeat(4,minmax(44px,1fr));gap:6px;align-items:start;width:min(100%,560px);flex-shrink:0}
.puzzle-primary{display:grid;gap:4px;min-width:0}
.puzzle-toolbar>button,.puzzle-primary button,.puzzle-menu>summary{box-sizing:border-box;min-width:44px;min-height:44px;width:100%;padding:4px 6px;font-size:13px;line-height:1.2;white-space:normal}
.puzzle-menu{position:relative;min-width:0}
.puzzle-menu>summary{list-style:none;display:flex;align-items:center;justify-content:center;gap:3px;text-align:center;border:1px solid #a5ae9366;border-radius:9px;background:#e8e2cb;cursor:pointer}
.puzzle-menu>summary::-webkit-details-marker{display:none}
.puzzle-menu>summary:focus-visible{outline:3px solid var(--gold);outline-offset:3px}
.puzzle-menu[open]>summary{background:#eed8a9;border-color:#77603b}
[data-puzzle-menu-alert]{font-weight:700;color:#7b441e}
.puzzle-menu-body{position:absolute;z-index:5;left:0;right:auto;top:calc(100% + 6px);width:min(340px,calc(100vw - 52px));max-height:min(60dvh,460px);display:flex;flex-direction:column;overflow:hidden;padding:12px;background:var(--paper);color:var(--paper-ink);border:1px solid #82916f;border-radius:10px;box-shadow:0 12px 40px #173a2a55}
.puzzle-menu-heading{display:flex;align-items:center;justify-content:space-between;gap:8px;position:static;flex-shrink:0;background:var(--paper);padding:4px 0}
.puzzle-menu-scroll{min-height:0;overflow-y:auto;overflow-x:hidden;overscroll-behavior:contain;padding:0 4px 4px}
.puzzle-menu-body h3{margin:12px 0 8px;font-size:18px}
.puzzle-menu-heading h3{margin:0}
.puzzle-menu-body button{min-width:44px;min-height:44px;width:100%;font-size:13px;line-height:1.35;margin:0 0 6px}
.puzzle-menu-heading button{width:auto;flex-shrink:0;margin:0}
.puzzle-players{margin:8px 0 12px;padding-left:21px;font-size:13px;line-height:1.45}
.puzzle-players li{margin-bottom:6px;overflow-wrap:anywhere;white-space:normal}
.puzzle-menu-body .subtle{font-size:12px;line-height:1.45;margin:6px 0 0}
.panel[data-tool=game][data-break-activity=picture] .puzzle-cell,.puzzle-browse button{min-width:44px;min-height:44px}
.puzzle-browse{font-size:12px}.puzzle-browse button{font-size:13px}
@media(max-width:700px){
 .puzzle-top{flex-direction:column;align-items:stretch;gap:6px;margin-bottom:8px}
 .puzzle-top>[data-puzzle-roster]{flex:none;min-width:0;font-size:13px;line-height:1.35}
 .puzzle-toolbar{width:100%}
 .puzzle-instruction{font-size:12px;line-height:1.3}
 .puzzle-section-heading span,.puzzle-selection p{font-size:12px}
 .puzzle-feedback{font-size:12px;line-height:1.4;min-height:44px}
 .puzzle-piece.placed:after{font-size:11px}
}

/* Text labels need intrinsic targets; retain the established header typography. */
.panel[data-tool=studio] .panel-heading #panel-close,.panel[data-tool=gathering] .panel-heading #panel-close{width:auto;min-width:44px;min-height:44px;padding:0 10px;flex-shrink:0}
