/* The world owns the viewport; chat takes space only when explicitly opened. */
body{background:#252d23}main{max-width:none;margin:0;padding:0}.cafe-layout{display:block}.room-area,#room-area.expanded{height:var(--cafe-viewport,100dvh);min-height:500px;display:flex;flex-direction:column;border:0;border-radius:0;background:#f4ede2;overflow:hidden}.world-wrap,#room-area.expanded .world-wrap{flex:1;height:auto;min-height:0;width:100%;isolation:isolate}.room-topline{top:max(14px,env(safe-area-inset-top));left:max(16px,env(safe-area-inset-left));right:max(16px,env(safe-area-inset-right));align-items:flex-start;gap:10px;pointer-events:none}.room-topline>*,.room-controls>*{pointer-events:auto}.room-label,.room-controls,.world-tools>summary{background:#fbf5e6d9;backdrop-filter:blur(12px);border:1px solid #fff6dc80;box-shadow:0 3px 18px #26302312;border-radius:14px;color:#614c36}.room-label{min-height:44px;padding:0 12px;max-width:38%;overflow:hidden}.room-label .divider{margin:0}.room-label #room-status{display:inline;overflow:hidden;text-overflow:ellipsis;color:#76654e}.game-brand{font:20px var(--serif);letter-spacing:.1em;padding:0;white-space:nowrap}.room-controls{margin-left:auto;display:flex;align-items:center;gap:9px;padding:4px 7px}.room-controls .sound-button{min-height:36px;border:0;background:transparent;font-size:11px;white-space:nowrap}.view-switch{border:0;background:#ede4d5b3;border-radius:10px}.view-switch button{min-height:36px;padding:7px 10px;font-size:11px}.game-menu{display:flex;gap:2px;align-items:center}.game-menu>button{min-height:36px;padding:8px 12px;border-radius:10px;font-size:12px;white-space:nowrap}.game-menu button:hover,.game-menu button[aria-expanded=true]{background:#e0d1bd}.tiny-count{background:#ddd1bd;color:#604e37}.world-tools>summary{display:grid;place-items:center;list-style:none;width:44px;height:44px;font-size:16px;cursor:pointer;letter-spacing:2px}.world-tools summary::-webkit-details-marker{display:none}.world-tools-panel{position:absolute;right:0;top:54px;width:min(340px,calc(100vw - 32px));max-height:calc(100% + var(--cafe-viewport,100dvh) - 260px);max-height:min(570px,65dvh);overflow:auto;overscroll-behavior:contain;border:1px solid #dacdb7;border-radius:16px;background:#fcf7edee;backdrop-filter:blur(18px);padding:16px;box-shadow:0 10px 45px #252b272e;scrollbar-width:thin}.tools-heading{display:flex;align-items:center;gap:10px;font:20px var(--serif);padding-bottom:10px;border-bottom:1px solid var(--line)}.tools-heading button{font:11px var(--sans);color:#715b43;min-height:36px;margin-left:auto}.world-tools .weather{display:flex;padding:12px 0}.world-tools .weather small{color:#8c7963}.world-tools .room-footer,#room-area.expanded .world-tools .room-footer{height:auto;min-height:0;padding:0;border:0;background:none;display:block}.world-tools .room-footer>div{display:flex;flex-wrap:wrap;gap:6px;justify-content:flex-start}.world-tools .room-footer>div:last-child{margin-top:10px;padding-top:10px;border-top:1px solid var(--line)}.world-tools .room-footer button{border-radius:9px;background:#eee3d2;color:#695037;padding:9px 10px;min-height:40px;font-size:11px}.world-tools #online-status{flex-basis:100%;margin:0;font-size:10px}.world-tools #walk-status{display:inline}.world-tools .visitors-panel{padding:14px 0;margin-top:14px}.world-tools .journey-strip{display:block;margin-top:8px;padding:12px;border-radius:10px;min-height:0;background:#eee8db}.world-tools .stay-stat{width:auto;border:0;padding-bottom:12px}.world-tools .next-drink-block{padding:10px 0;border-top:1px solid #ddd3c3}.world-tools .next-drink-heading{display:flex;flex-wrap:wrap;gap:4px;margin-bottom:8px}.world-tools .collection-link{width:100%;border:0;border-top:1px solid #ddd3c3;padding:10px 0 0}.world-tools .collection-link small{display:inline;margin-left:10px}
#table-panel{position:absolute;z-index:8;top:72px;right:max(16px,env(safe-area-inset-right));bottom:146px;width:284px;max-height:650px;min-height:0;display:flex;flex-direction:column;flex-wrap:nowrap;overflow:auto;overscroll-behavior:contain;scrollbar-width:thin;padding:18px 20px;gap:0;background:#fcf8efef;backdrop-filter:blur(16px);box-shadow:0 10px 50px #26302329;border-color:#eadcc7;border-radius:16px}.table-close{position:absolute;right:12px;top:12px;min-height:32px;min-width:32px;font-size:20px}.table-heading{padding-right:28px}.table-heading h2{font-size:21px}.table-panel .current-drink{height:108px;flex:none}.table-panel .current-drink svg{height:110px}.table-panel .drink-name-row{display:flex}.table-panel .dessert-on-table{display:flex;gap:9px}.table-panel .dessert-on-table>div{text-align:left}.table-panel .dessert-art{width:68px;height:68px;margin:0}.table-panel .cookie-progress-block{margin-top:14px;padding-top:14px}.table-panel .sip-button{flex:none;min-height:40px}.table-panel .drink-description{font-size:10px}.table-panel .gentle-note{font-size:10px}
#activity-bar{position:absolute;z-index:6;bottom:max(14px,env(safe-area-inset-bottom));left:16px;max-width:min(680px,calc(100% - 32px));padding:9px 12px;background:#fbf6e7d9;border:1px solid #fff5de99;border-radius:15px;backdrop-filter:blur(12px);box-shadow:0 4px 22px #25302212}.activity-heading{font-size:10px;margin:0 0 6px;gap:20px}.activity-heading button{min-height:28px;padding:0 5px;color:#72523c}.activity-options{flex-wrap:nowrap;gap:6px}.activity-options button{flex:0 1 auto;min-width:0;min-height:40px;padding:8px 13px;font-size:11px;background:#fff9ee80;border-color:#d9c9b090;border-radius:10px;white-space:nowrap}.activity-options svg{width:16px;height:16px}.activity-options button[aria-pressed=true]{background:#725337;color:#fff6e7}.shared-table{font-size:10px;margin-top:7px;padding-top:5px;gap:6px}.shared-table button{min-height:32px;color:#71543a}#pond-activities{margin:0}#pond-hint{font-size:10px}.dog-request{position:absolute;z-index:7;right:16px;top:78px;width:max-content;max-width:min(340px,calc(100% - 32px));margin:0;gap:10px;border:1px solid #f4e9e4;box-shadow:0 8px 25px #46332622;backdrop-filter:blur(12px);background:#f9e9e3ed;color:#80514b;font-size:12px}.dog-request button{padding:10px;min-height:42px;background:#fff5edc7;border-color:#ddc1b4}
/* Optional chat dock. Its history scrolls independently of the world. */
.chat-panel{flex:none;height:154px;padding:8px max(18px,env(safe-area-inset-right)) max(8px,env(safe-area-inset-bottom)) max(18px,env(safe-area-inset-left));border-top:1px solid #d8c9b3;background:#f6efe3;color:#6f563e;overflow:hidden}.chat-heading{height:25px;display:flex;gap:8px;align-items:center;font-size:11px}.chat-heading small{font-size:9px;color:#998268;margin-left:9px}.chat-launcher{position:static;margin-left:auto;box-shadow:none;min-height:24px;padding:0 5px;border:0;border-radius:4px;background:none;font-size:10px;color:#8a7056}.chat-body{display:grid;grid-template-columns:minmax(0,1fr) minmax(300px,.65fr);align-items:center;gap:20px;height:106px;padding:0}.chat-note,.chat-key-note{display:none}.chat-messages,.expanded .chat-messages{height:100%;max-height:none;margin:0;border-radius:0;border:0;border-right:1px solid #e2d5c1;padding:4px 16px 4px 0;background:transparent;gap:5px}.chat-message,.chat-message.mine{display:flex;gap:9px;align-self:stretch;max-width:100%;font-size:12px;line-height:1.6}.chat-message strong,.chat-message.mine strong{margin:0;padding-top:1px;flex:none;max-width:32%;overflow-wrap:anywhere;text-align:left;font-size:10px;color:#907052}.chat-message p,.chat-message.mine p{background:none;border:0;padding:0;font-size:12px;line-height:1.6;color:#5f4b35}.chat-message.mine strong{color:#607345}.chat-input-label{font-size:10px;margin-bottom:5px}.chat-compose textarea{height:44px;min-height:44px;max-height:44px;resize:none;font-size:16px;padding:8px 11px;border-radius:11px;background:#fffcf6}.chat-compose button{min-height:44px;font-size:11px;min-width:64px;border-radius:11px}.chat-meta{font-size:9px;margin-top:4px}.chat-messages:empty:before{font-size:11px}.toast-stack{bottom:172px;z-index:45}.entrance-card{z-index:9}.world-wrap .entrance-card{top:52%;max-height:calc(100% - 100px)}
@media(max-width:850px){.room-label{padding:0 9px;max-width:25%}.room-label #room-status,.room-label .divider{display:none}.room-controls{gap:5px}.game-menu>button{padding:8px 9px}.room-controls .sound-button #sound-label{display:none}.chat-body{gap:12px;grid-template-columns:minmax(0,1fr) minmax(270px,.8fr)}}
@media(max-width:650px){.room-area,#room-area.expanded{min-height:460px}.room-topline{top:max(10px,env(safe-area-inset-top));left:10px;right:10px;display:grid;grid-template-columns:1fr 44px;gap:7px}.room-label{max-width:none;width:max-content;height:38px;min-height:38px;grid-column:1;grid-row:1}.game-brand{font-size:19px}.room-controls{grid-row:2;grid-column:1 / -1;width:max-content;max-width:100%;margin-left:0;gap:3px;padding:3px 4px;flex-wrap:wrap;border-radius:12px}.game-menu{gap:0}.game-menu>button{min-height:38px;padding:7px 9px;font-size:11px}.view-switch button{min-height:38px;padding:6px 8px;font-size:10px}.room-controls .sound-button{padding:6px 9px;min-height:38px}.world-tools{grid-row:1;grid-column:2}.world-tools>summary{height:38px;width:44px}.world-tools-panel{top:47px;max-height:calc(100dvh - 240px);z-index:10}.room-topline:has(.world-tools[open]){z-index:10}#table-panel{top:104px;right:10px;bottom:124px;width:min(284px,calc(100% - 20px));padding:16px}.dog-request{top:104px;right:10px;max-width:calc(100% - 20px);font-size:11px;padding:8px 10px}.dog-request button{min-height:40px}#activity-bar{left:10px;bottom:10px;max-width:calc(100% - 20px);padding:7px 9px}.activity-heading{font-size:9px;margin-bottom:4px}.activity-options{gap:4px;flex-wrap:wrap}.activity-options button{flex:1 1 auto;font-size:10px;padding:7px 10px;min-height:40px}.activity-options svg{display:none}.shared-table{font-size:9px}.shared-table #table-partner{display:none}.shared-table{margin-top:4px;padding-top:3px}.chat-panel{height:158px;padding:5px max(12px,env(safe-area-inset-right)) max(5px,env(safe-area-inset-bottom)) max(12px,env(safe-area-inset-left))}.chat-heading{height:22px;font-size:10px}.chat-body{display:flex;flex-direction:column;gap:4px;align-items:stretch;height:calc(100% - 22px)}.chat-messages,.expanded .chat-messages{flex:1;min-height:26px;height:auto;border:0;padding:2px 0;gap:4px}.chat-message p,.chat-message.mine p{font-size:11px}.chat-message strong,.chat-message.mine strong{font-size:9px}.chat-input-label{display:none}.chat-compose{gap:7px}.chat-meta{font-size:8px;margin-top:2px}.chat-compose button{padding:8px 10px;min-width:58px}.chat-compose textarea{font-size:16px}.chat-panel form{flex:none}.toast-stack{bottom:174px}.world-wrap .entrance-card{top:56%;max-height:calc(100% - 118px);width:320px}.room-area:has(#chat-input:focus){min-height:300px}.room-area:has(#chat-input:focus) .world-wrap{min-height:130px}.room-area:has(#chat-input:focus) #activity-bar,.room-area:has(#chat-input:focus) .dog-request{visibility:hidden}}
@media(max-height:580px) and (min-width:651px){.room-area,#room-area.expanded{min-height:360px}.chat-panel{height:126px}.chat-body{height:82px}.world-wrap .entrance-card{max-height:calc(100% - 72px);top:55%}#table-panel{bottom:18px}.activity-heading{display:none}.shared-table{display:none}.dog-request{top:68px}.toast-stack{bottom:140px}}
@media(max-width:360px){.game-menu>button{padding:7px}.view-switch button{padding:6px}.room-controls{gap:0}.room-controls .sound-button{padding:6px}.tiny-count{margin-left:1px}.activity-options button{padding:6px 8px}}
/* The toolbar may wrap after language changes; keep all overlays below it. */
.room-topline:has(.world-tools[open]){z-index:10}#table-panel,.dog-request{top:var(--hud-bottom,104px)}.world-wrap .entrance-card{top:calc(50% + var(--hud-bottom,72px)/2);max-height:calc(100% - var(--hud-bottom,72px) - 20px)}
/* Large, single-row actions sit within easy reach at the lower center. */
#activity-bar{left:50%;right:auto;bottom:max(7%,20px);transform:translateX(-50%);width:max-content;max-width:calc(100% - 32px);padding:12px 14px;border:1px solid #fff8e9dd;border-radius:19px;background:#fbf3e5ed;box-shadow:0 8px 30px #1b211a38,0 1px 0 #fff9ef inset}
#activity-bar .activity-heading{display:flex;justify-content:center;margin:0 0 9px;font-size:11px;color:#72553b;text-align:center}
#activity-bar .activity-row{display:flex;flex-flow:row nowrap;align-items:center;gap:10px;max-width:100%;overflow-x:auto;overscroll-behavior-x:contain;scrollbar-width:thin;scrollbar-color:#b6a087 transparent;padding:3px 2px 5px;scroll-snap-type:x proximity}
#activity-bar .activity-options{display:contents}
#activity-bar .activity-row button{flex:0 0 auto;min-width:118px;min-height:56px;padding:13px 18px;border:1px solid #b99b79;border-radius:13px;background:#fffaf0;color:#503820;font-size:14px;font-weight:600;line-height:1.4;white-space:nowrap;box-shadow:0 3px 0 #dac7ad;scroll-snap-align:center;touch-action:manipulation}
#activity-bar .activity-row button:hover:not(:disabled){background:#efe1ca;border-color:#93704b}
#activity-bar .activity-row button[aria-pressed=true]{background:#725236;color:#fff9ef;border-color:#62432b;box-shadow:0 3px 0 #49311e}
#activity-bar .activity-row button:focus-visible{outline:3px solid #927044;outline-offset:2px}
#activity-bar .activity-row svg{display:block;width:20px;height:20px;flex:none}
#activity-bar #end-activity{background:#ede1d1;border-style:dashed;color:#75583c;min-width:110px;font-size:12px}
#activity-bar .shared-table{justify-content:center;margin-top:7px;padding-top:6px;font-size:10px;border-color:#ddccb5}
#activity-bar .shared-table button{min-height:32px;padding:5px 8px;color:#755337}
#activity-bar #pond-hint{white-space:nowrap}
@media(max-height:580px){#activity-bar{bottom:18px;padding:8px 11px}#activity-bar .activity-heading{display:none}#activity-bar .activity-row button{min-height:48px}#activity-bar .shared-table{display:none}}
/* Keep phone controls in one shallow row, including touch-screen landscape. */
@media(max-width:650px), (max-width:1024px) and (pointer:coarse){
 #activity-bar{display:flex;align-items:center;gap:4px;left:50%;bottom:max(8px,env(safe-area-inset-bottom));max-width:calc(100% - 16px);padding:4px 5px;border-radius:11px;box-shadow:0 3px 12px #1b211a26}
 .is-demo #activity-bar{bottom:max(48px,calc(env(safe-area-inset-bottom) + 40px))}
 #activity-bar .activity-heading,#activity-bar #pond-hint{display:block;position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);clip-path:inset(50%);white-space:nowrap}
 #activity-bar .activity-row{flex:1 1 auto;min-width:0;gap:4px;padding:2px;scrollbar-width:none}
 #activity-bar .activity-row::-webkit-scrollbar{display:none}
 #activity-bar .activity-row button{min-width:0;min-height:40px;padding:7px 8px;font-size:11px;border-radius:8px;box-shadow:0 1px 0 #dac7ad}
 #activity-bar .activity-row button[aria-pressed=true]{box-shadow:0 1px 0 #49311e}
 #activity-bar .activity-row button:focus-visible{outline-offset:-3px}
 #activity-bar .activity-row svg{display:none}
 #activity-bar #end-activity{min-width:0;font-size:11px}
 #activity-bar .shared-table{display:flex;flex:none;margin:0;padding:0;border:0}
 #activity-bar #table-partner{display:none}
 #activity-bar #greet-button{width:40px;min-height:40px;padding:0;border:1px solid #d9c9b0;border-radius:8px;font-size:0;line-height:1;background:#fff9ee80;touch-action:manipulation}
 #activity-bar #greet-button::after{content:'👋';font-size:18px}
}

/* Only the invitation is centered; the quiet lap status stays by the HUD. */
#dog-request.wants-cuddle{left:50%;right:auto;top:50%;transform:translate(-50%,-50%);max-width:calc(100% - 28px);padding:18px 22px;gap:16px;justify-content:center;font-size:15px;border-radius:18px;box-shadow:0 12px 40px #46332638}
#dog-request.wants-cuddle button{min-height:48px;padding:12px 18px;font-size:14px}
@media(max-width:650px){#dog-request.wants-cuddle{padding:14px 16px;gap:12px;font-size:13px}#dog-request.wants-cuddle button{padding:10px 14px}}

/* The chat toggle stays in the world even while the entire dock is hidden. */
.room-topline>.chat-launcher{position:relative;inset:auto;display:flex;align-items:center;justify-content:center;gap:6px;flex:none;margin:0;min-height:44px;padding:8px 12px;border:1px solid #fff6dc80;border-radius:14px;background:#fbf5e6d9;backdrop-filter:blur(12px);box-shadow:0 3px 18px #26302312;font-size:12px;color:#614c36}
.room-topline>.chat-launcher[aria-expanded=true]{background:#725236;color:#fff9ef;border-color:#62432b}
.chat-launcher svg{width:18px;height:18px;fill:none;stroke:currentColor;stroke-width:1.6;stroke-linecap:round;stroke-linejoin:round}
.chat-launcher .chat-unread{position:absolute;top:-5px;right:-5px;min-width:17px;height:17px;margin:0;padding:1px 4px;border:1px solid #fff5e7;border-radius:9px;background:#795438;color:#fff;font-size:9px;line-height:14px;text-align:center}
.chat-heading{height:30px}
.chat-heading>span{min-width:0}
.chat-close{display:grid;place-items:center;margin-left:auto;min-width:32px;min-height:28px;padding:0 7px;border-radius:8px;background:#e9ddcb;font-size:21px;line-height:1;color:#6f563e}
.chat-close:hover{background:#dac8af}
.chat-body{height:calc(100% - 30px)}
@media(max-width:650px){
 .room-topline{grid-template-columns:1fr 44px 44px}
 .room-topline>.chat-launcher{grid-row:1;grid-column:2;width:44px;min-height:38px;height:38px;padding:0;border-radius:12px}
 .chat-launcher .chat-toggle-label{display:none}
 .world-tools{grid-column:3}
}
/* A closed dock must leave no reserved chat space or mobile keyboard focus. */
.room-area:has(#chat-panel[hidden]),#room-area.expanded:has(#chat-panel[hidden]){min-height:0}

.trail-acorns-count{margin:10px 0 0;padding:8px 10px;border-radius:9px;background:#efe5d4;color:#795b38;font-size:11px;line-height:1.6}.menu-categories [hidden]{display:none!important}.menu-categories button{flex-shrink:0}#onsen-activities[hidden]{display:none!important}#onsen-menu-action:disabled{opacity:.5}

/* A small channel label stays next to the café name on desktop and mobile. */
.channel-badge{display:inline-flex;align-items:center;border-left:1px solid #cbb89e;margin-left:8px;padding-left:8px;font:500 10px var(--sans);letter-spacing:0;white-space:nowrap;color:#775b40}.channel-badge[hidden]{display:none}.entrance-card .channel-explanation,.channel-explanation{font-size:10px;line-height:1.65;color:#907458;margin:8px 0 12px;text-align:center}@media(max-width:650px){.channel-badge{font-size:9px;margin-left:6px;padding-left:6px}}

/* Channel and map choices share the quiet upper-left navigation strip. */
body.has-entered:not(.is-demo) .room-topline .room-label{min-width:0;max-width:none;min-height:44px;padding:2px 6px 2px 10px;gap:8px;overflow:visible}
body.has-entered:not(.is-demo) .room-label #room-status,body.has-entered:not(.is-demo) .room-label>.divider{display:none}
.world-navigation{position:relative;display:flex;align-items:center;gap:4px;min-width:0;font-family:var(--sans);letter-spacing:0}
.world-navigation[hidden]{display:none}
.world-picker{position:relative;min-width:0;flex:0 1 auto}
.world-picker>summary{display:flex;align-items:center;justify-content:center;gap:5px;min-width:0;min-height:40px;max-width:164px;padding:7px 9px;border:1px solid #d6c2a68c;border-radius:10px;background:#fff9edb8;color:#674a31;font:500 11px var(--sans);line-height:1.35;white-space:nowrap;list-style:none;cursor:pointer;touch-action:manipulation}
.world-picker>summary::-webkit-details-marker{display:none}
.world-picker>summary::marker{content:''}
.world-picker>summary>span:first-child{flex:none;font-size:13px;line-height:1}
.world-navigation #channel-badge,.world-navigation #map-label{display:block;min-width:0;overflow:hidden;text-overflow:ellipsis;border:0;margin:0;padding:0;font:inherit;color:inherit;letter-spacing:0}
.world-navigation #channel-badge[hidden]{display:none}
.world-picker .picker-chevron{flex:none;font-size:10px;line-height:1;opacity:.7;transition:transform .15s ease}
.world-picker[open] .picker-chevron{transform:rotate(180deg)}
.world-picker>summary:hover,.world-picker[open]>summary{background:#e9d8bf;border-color:#b69772;color:#563a22}
.world-picker>summary:focus-visible,.world-picker-panel button:focus-visible{outline:2px solid #85613f;outline-offset:2px}
.world-picker:not([open])>.world-picker-panel{display:none}
.world-picker-panel{position:absolute;top:calc(100% + 8px);left:0;z-index:2;width:180px;max-width:calc(100vw - 24px);max-height:min(280px,calc(100dvh - 110px));overflow-y:auto;overscroll-behavior:contain;scrollbar-width:thin;display:flex;flex-direction:column;gap:4px;padding:7px;border:1px solid #d5bfa2;border-radius:13px;background:#fcf7edfa;backdrop-filter:blur(18px);box-shadow:0 9px 28px #3b291e2b}
#map-picker .world-picker-panel{left:auto;right:0;width:238px}
.world-picker-panel button{display:flex;align-items:center;gap:8px;width:100%;min-height:40px;padding:9px 11px;border:1px solid transparent;border-radius:8px;background:transparent;color:#6b5037;font:500 12px var(--sans);line-height:1.4;white-space:normal;text-align:left;overflow-wrap:anywhere;touch-action:manipulation}
.world-picker-panel button:hover{background:#f0e4d1}
.world-picker-panel button[aria-pressed=true],.world-picker-panel button[aria-current=location]{border-color:#d0b592;background:#e9d9c0;color:#5b3d23}
.room-topline:has(.world-picker[open]){z-index:12}
@media(min-width:651px) and (max-width:1200px){
 body.has-entered:not(.is-demo) .room-topline{display:grid;grid-template-columns:minmax(0,1fr) 44px 44px;gap:8px}
 body.has-entered:not(.is-demo) .room-topline .room-label{grid-row:1;grid-column:1;width:max-content;max-width:100%}
 body.has-entered:not(.is-demo) .room-controls{grid-row:2;grid-column:1 / -1;width:max-content;max-width:100%;margin-left:0;flex-wrap:wrap}
 body.has-entered:not(.is-demo) .room-topline>.chat-launcher{grid-row:1;grid-column:2;width:44px;padding:0}
 body.has-entered:not(.is-demo) .chat-launcher .chat-toggle-label{display:none}
 body.has-entered:not(.is-demo) .world-tools{grid-row:1;grid-column:3}
}
@media(max-width:650px){
 body.has-entered:not(.is-demo) .room-topline{grid-template-columns:minmax(0,1fr) 44px 44px;gap:7px}
 body.has-entered:not(.is-demo) .room-topline .room-label{width:100%;max-width:100%;min-height:40px;height:auto;padding:0;gap:0;border:0;background:none;box-shadow:none;backdrop-filter:none;border-radius:0}
 body.has-entered:not(.is-demo) .room-label>.green-dot,body.has-entered:not(.is-demo) .room-label>.game-brand{display:none}
 .world-navigation{width:100%;max-width:100%;gap:4px}
 .world-picker{position:static;min-width:0}
 #channel-picker{flex:0 1 84px;min-width:72px}
 #map-picker{flex:1 1 110px;min-width:0}
 .world-picker>summary{width:100%;max-width:none;min-height:40px;padding:7px 6px;gap:4px;background:#fbf5e6e8;border-color:#dfcdb2;backdrop-filter:blur(12px);box-shadow:0 3px 14px #26302312}
 .world-picker>summary>span:first-child{font-size:12px}
 .world-picker-panel,#map-picker .world-picker-panel{left:0;right:auto;top:calc(100% + 7px);width:240px;max-width:calc(100vw - 24px)}
 body.has-entered:not(.is-demo) .room-topline>.chat-launcher,body.has-entered:not(.is-demo) .world-tools>summary{min-height:40px;height:40px}
}
@media(prefers-reduced-motion:reduce){.world-picker .picker-chevron{transition:none}}

/* The toy collection follows the café menu without competing with game controls. */
.wax-tier{display:inline-flex;align-items:center;margin:2px 0 7px;padding:3px 7px;border:1px solid #ddcfb9;border-radius:12px;background:#f4eadb;color:#826647;font-size:9px;line-height:1.4}.wax-tier-topping{background:#f6e1e6;color:#915e70;border-color:#e5c0cc}.wax-tier-rare{background:#e8e1f1;color:#76608d;border-color:#cfc0dd}.menu-item.chosen:has(.wax-tier){border-color:#987550;background:#f6eddd}.menu-categories{overflow-x:auto;flex-wrap:nowrap;scrollbar-width:thin}

/* Small notifications stay below the upper-left controls. */
#toasts.toast-stack{position:absolute;left:max(12px,env(safe-area-inset-left));right:auto;top:var(--hud-bottom,112px);bottom:auto;transform:none;width:min(270px,calc(100% - 24px));align-items:flex-start;pointer-events:none;z-index:9}#toasts .toast{max-width:100%;font-size:10px;line-height:1.5;padding:7px 10px;border-radius:9px;box-shadow:0 3px 12px #38291f18}#toasts .toast svg{width:24px;height:24px}