/* HUD layout: the scene fills the window; tools float on top (like the production
   building), and the old side panels live in a drawer. Paper / sage palette. */
html,body{height:100%;overflow:hidden;background:#10181e}
main.hud-app{max-width:none;margin:0;padding:0;height:100dvh;position:relative;overflow:hidden;overflow:clip}
.hud-app .stage-section{position:absolute;inset:0;border:0;border-radius:0;background:#10181e;overflow:hidden;overflow:clip;transition:right .25s ease}
.hud-app .stage{height:100%;min-height:0;aspect-ratio:auto}
@media(min-width:1100px){.hud-app .stage-section.has-drawer{right:320px}}

.hud{position:absolute;z-index:3;top:10px;left:10px;right:10px;display:flex;justify-content:space-between;align-items:flex-start;gap:10px;pointer-events:none}
.hud>*{pointer-events:auto}
.hud-place{display:flex;flex-direction:column;gap:1px;padding:6px 11px;border:1px solid #a6b59f;border-radius:6px;background:rgb(246 245 238 / .92);color:#344f36;line-height:1.35}
.hud-place b{font-size:10px;letter-spacing:.12em;color:#6c7e66}
.hud-place span{font-size:13px;font-weight:600}
.hud-place em{margin-left:8px;font-style:normal;font-weight:500;font-size:11px;color:#6c7e66}
.hud-tools{display:flex;flex-wrap:wrap;justify-content:flex-end;gap:6px}
.hud-tool{min-height:34px;padding:0 11px;border:1px solid #a6b59f;border-radius:6px;background:rgb(246 245 238 / .92);color:#344f36;font:inherit;font-size:12px;font-weight:600;white-space:nowrap;cursor:pointer}
.hud-tool[aria-pressed=true]{background:#435c44;border-color:#435c44;color:#f0f5e9}
.hud-tool:disabled{opacity:.55;cursor:not-allowed}
.hud-tool:focus-visible{outline:2px solid #f0f5e9;outline-offset:2px}
.hud-menu{background:#344f36;border-color:#344f36;color:#f6f5ee}
.hud-menu[aria-expanded=true]{background:rgb(246 245 238 / .92);color:#344f36;border-color:#a6b59f}
.hud-hint{position:absolute;z-index:1;left:50%;bottom:calc(var(--os-bottom,0px) + 10px);transform:translateX(-50%);margin:0;color:rgb(240 245 233 / .72);font-size:11px;text-shadow:0 1px 2px #000a;pointer-events:none;white-space:nowrap}
.stage.has-chat .hud-hint{display:none}
@media(pointer:coarse){.hud-hint{display:none}.hud-tool{min-height:40px}}
/* 月老廟: 拜拜／上香 are the cat's own actions, anywhere in the temple. */
.temple-acts{position:absolute;z-index:2;left:50%;bottom:calc(var(--os-bottom,0px) + 34px);transform:translateX(-50%);display:flex;gap:10px}
.temple-acts button{min-width:88px;min-height:42px;padding:0 18px;border:1px solid #b65a36;border-radius:21px;background:rgb(247 239 219 / .94);color:#8e3f22;font:inherit;font-size:14px;font-weight:700;letter-spacing:.12em;box-shadow:0 2px 6px rgb(0 0 0 / .18);cursor:pointer}
.temple-acts button:hover:not(:disabled){background:#fbf5e6}
.temple-acts button[aria-pressed=true]{background:#b65a36;color:#f7efdb;opacity:1}
.temple-acts button:disabled:not([aria-pressed=true]){opacity:.55;cursor:default}
@media(pointer:coarse){.temple-acts{bottom:max(18px,env(safe-area-inset-bottom))}.temple-acts button{min-height:46px}}
/* Phones: above the activity card (起身繼續散步) that sits along the bottom. */
@media(max-width:700px){.temple-acts{bottom:96px}}

/* Discreet on purpose: the text version is for whoever looks for it. */
.text-version-link{position:absolute;z-index:3;right:8px;bottom:calc(var(--os-bottom,0px) + 6px);min-height:0;padding:2px 4px;border:0;background:none;color:rgb(240 245 233 / .5);font:inherit;font-size:10px;text-decoration:underline;text-underline-offset:2px;cursor:pointer}
.text-version-link:hover,.text-version-link:focus-visible{color:#f0f5e9}

.hud-drawer{position:absolute;z-index:6;top:0;right:0;bottom:0;width:320px;box-sizing:border-box;overflow:auto;overscroll-behavior:contain;padding:12px 18px 28px;background:#f6f5ee;border-left:1px solid #c9d0c4;transform:translateX(100%);transition:transform .25s ease,visibility .25s;visibility:hidden}
.hud-drawer.is-open{transform:none;visibility:visible}
.hud-drawer-head{display:flex;justify-content:space-between;align-items:center;margin:0 0 6px}
.hud-drawer-head h2{margin:0;font-size:14px;color:#344f36}
.hud-drawer-head button{display:grid;place-items:center;width:36px;height:36px;min-height:0;padding:0;border:0;background:none;color:#344f36;cursor:pointer}
.hud-drawer .local-note a{margin-left:6px;color:#435c44}
.hud-app .controls.hud-drawer{display:block;margin:0}

.loading-cover{position:absolute;z-index:7;inset:0;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:10px;padding:20px 20px max(calc(var(--os-bottom,0px) + 20px),env(safe-area-inset-bottom));overflow-y:auto;background:#10181e url(./poster.jpg) center/cover no-repeat}
.loading-card{display:flex;flex-direction:column;align-items:center;gap:8px;width:min(280px,100%);padding:18px 20px 14px;border:1px solid #a6b59f;border-radius:8px;background:rgb(246 245 238 / .94);color:#344f36;text-align:center}
.loading-card strong{font-size:12px;letter-spacing:.18em;color:#6c7e66}
.loading-card span{font-size:15px;font-weight:600}
.loading-card small{font-size:11px;color:#6c7e66}
.loading-bar{width:100%;height:6px;border-radius:3px;background:#dfe5d6;overflow:hidden}
.loading-bar i{display:block;height:100%;background:#435c44;transition:width .25s ease}
.travel-cover{background:#a8dccb}
.travel-bar{position:relative}
.travel-bar i{width:100%;transform-origin:left;transition:transform .25s ease}
.travel-bar b{position:absolute;inset:0;width:40%;background:linear-gradient(90deg,transparent,rgb(255 255 255 / .6),transparent);animation:travel-shimmer 1.1s linear infinite;will-change:transform}
@keyframes travel-shimmer{from{transform:translateX(-100%)}to{transform:translateX(250%)}}

.touch-stick{position:absolute;z-index:3;width:116px;height:116px;margin:-58px 0 0 -58px;border-radius:50%;border:1.5px solid rgb(246 245 238 / .55);background:rgb(16 24 30 / .22);display:grid;place-items:center;pointer-events:none}
.touch-stick-knob{width:50px;height:50px;border-radius:50%;background:rgb(246 245 238 / .82);box-shadow:0 2px 6px rgb(0 0 0 / .3);pointer-events:none}


.text-version{position:absolute;z-index:8;inset:0;overflow:auto;padding:22px max(18px,calc(50% - 320px)) 40px;background:#f6f5ee;color:#344f36}
.text-version header{display:flex;justify-content:space-between;align-items:center;gap:12px;margin-bottom:8px}
.text-version h2{margin:0;font-size:18px}
.text-version header button{display:flex;align-items:center;gap:6px;min-height:40px;padding:0 12px;border:1px solid #a6b59f;border-radius:6px;background:#fafaf6;color:#344f36;font:inherit;font-size:13px;cursor:pointer}
.text-version h3{margin:24px 0 6px;font-size:15px}
.text-version ul{margin:0;padding:0;list-style:none;border-top:1px solid #d6dccd}
.text-version li>*{display:flex;flex-direction:column;gap:2px;padding:11px 2px;border-bottom:1px solid #d6dccd;color:inherit;text-decoration:none;font-size:15px;font-weight:600;overflow-wrap:anywhere}
.text-version li a:hover{background:#eef2e7}
.text-version small{font-size:12px;font-weight:400;color:#6c7e66}
.text-version em{font-style:normal;font-size:12px;font-weight:400;color:#6c7e66}
.text-version-reason{padding:10px 12px;border-radius:6px;background:#e7ecdf;font-size:13px}
.text-version-empty{color:#6c7e66;font-size:13px}

.market-stall-tags{color:#56694f;font-size:12px}
.stall-tag-block{margin-top:12px}
.stall-tags{display:flex;flex-wrap:wrap;gap:6px;margin:0 0 6px;padding:0;list-style:none}
.stall-tag{min-height:32px;padding:4px 12px;border:1px solid #a8b69f;border-radius:999px;background:#fafaf6;color:#344f36;font:inherit;font-size:13px;cursor:pointer}
.stall-tag[aria-pressed=true]{background:#dfe8d8;border-color:#93a78b;color:#304b33;font-weight:600}
.stall-tag:focus-visible{outline:3px solid #9f6a3c;outline-offset:2px}
.tag-shelf{margin:12px 0 0;padding:0;list-style:none;display:grid;gap:8px}
.tag-shelf>li{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:8px 0;border-bottom:1px solid #cbd4c3}
.tag-shelf small{display:block;color:#56694f;font-size:12px}
.market-dib{display:flex;justify-content:center;align-items:center;gap:8px;margin-top:12px;text-decoration:none}

@media(max-width:700px){
  .hud{top:8px;left:8px;right:8px}
  .hud-place{padding:5px 9px}
  .hud-place span{font-size:12px}
  .hud-tool{padding:0 9px;font-size:11px}
  .hud-drawer{top:auto;left:0;width:auto;height:min(70dvh,560px);border-left:0;border-top:1px solid #c9d0c4;border-radius:12px 12px 0 0;transform:translateY(100%)}
  .hud-app .world-conversation{position:absolute;z-index:5;inset:auto 0 0 0;width:auto;max-height:64dvh;border:1px solid #a6b59f;border-radius:12px 12px 0 0}
  .hud-app .mobile-furniture-shelf{position:absolute;z-index:4;left:0;right:0;bottom:0}
}
@media(prefers-reduced-motion:reduce){.hud-app .stage-section,.hud-drawer,.loading-bar i{transition:none}.travel-bar b{animation:none}}
.hud-done{background:#ac7248;border-color:#ac7248;color:#fffaf2}

/* Phone decorating: HUD keeps only 完成布置 / 布置; the furniture strip is one swipeable row. */
.hud-place span{white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
@media(max-width:700px){
  .hud-place{max-width:42vw}
  .hud-tools.is-decorating>.hud-tool:not(.hud-done):not(.hud-menu){display:none}
  .hud-app .mobile-furniture-shelf{display:block;padding:8px 0 calc(10px + env(safe-area-inset-bottom));border-top:1px solid #c9d0c4;background:rgb(231 236 223 / .96)}
  .furniture-strip{display:flex;gap:8px;overflow-x:auto;overscroll-behavior-x:contain;scroll-snap-type:x proximity;padding:2px 12px;scrollbar-width:none}
  .furniture-strip::-webkit-scrollbar{display:none}
  .furniture-strip>div{flex:0 0 auto;scroll-snap-align:start}
  .furniture-strip .mobile-furniture-card{width:84px;min-height:0;padding:6px 4px 7px;flex-direction:column;align-items:center;text-align:center;gap:2px;touch-action:pan-x}
  .furniture-strip .mobile-furniture-card .furniture-image{width:52px;height:52px}
  .furniture-strip .mobile-furniture-card small{display:none}
  .furniture-strip .mobile-furniture-card strong{font-size:11px;line-height:1.35}
  .furniture-strip-colors{display:flex;gap:6px;overflow-x:auto;padding:0 12px 8px;scrollbar-width:none}
  .furniture-strip-colors button{flex:0 0 auto;min-height:32px;padding:0 10px;border:1px solid #a6b59f;border-radius:16px;background:#fafaf6;color:#344f36;font:inherit;font-size:11px}
  .furniture-strip-colors button[aria-pressed=true]{background:#435c44;border-color:#435c44;color:#f0f5e9}
  .hud-app .scene-tools{top:auto;bottom:var(--shelf-space,128px)}
  .hud-app .scene-feedback{bottom:calc(var(--shelf-space,128px) + 52px)}
}
/* Touch screens: the joystick owns the bottom-left, so activity controls sit bottom-right. */
@media(pointer:coarse){.hud-app .activity-tools,.hud-app .stage.has-chat .activity-tools{left:auto;right:12px;bottom:30px;max-width:calc(100% - 156px)}}

/* 3F wardrobe (Mini Cozy Room layout, paper / sage palette). */
.wardrobe-panel{display:flex;flex-direction:column;gap:0}
.wardrobe-head{display:flex;align-items:center;gap:10px;padding:10px 10px 8px 12px;border-bottom:1px solid #cbd4c3}
.wardrobe-head h2{flex:1;margin:0;text-align:center;font-size:15px}
.wardrobe-head>button{display:grid;place-items:center;width:36px;height:36px;min-height:0;padding:0;border:0;background:none;color:#344f36;cursor:pointer}
.wardrobe-slots{display:flex;gap:4px}
.wardrobe-slots button{width:28px;height:28px;min-height:0;padding:0;border:1px solid #a6b59f;border-radius:4px;background:#fafaf6;color:#344f36;font:inherit;font-size:12px;font-weight:600;cursor:pointer}
.wardrobe-slots button[aria-pressed=true]{background:#435c44;border-color:#435c44;color:#f0f5e9}
.wardrobe-tabs{display:flex;gap:4px;padding:8px 12px 0;background:#e7ecdf;border-bottom:1px solid #cbd4c3}
.wardrobe-tabs button{min-height:36px;padding:0 16px;border:1px solid transparent;border-bottom:0;border-radius:6px 6px 0 0;background:none;color:#56694f;font:inherit;font-size:13px;font-weight:600;cursor:pointer}
.wardrobe-tabs button[aria-selected=true]{background:#f6f5ee;border-color:#cbd4c3;color:#344f36;margin-bottom:-1px}
.wardrobe-body{flex:1;min-height:0;display:grid;grid-template-columns:76px minmax(0,1fr)}
.wardrobe-rail{display:flex;flex-direction:column;gap:6px;padding:10px 8px;border-right:1px solid #cbd4c3;overflow:auto}
.wardrobe-rail button{min-height:44px;padding:4px;border:1px solid #cbd4c3;border-radius:6px;background:#fafaf6;color:#344f36;font:inherit;font-size:12px;font-weight:600;cursor:pointer}
.wardrobe-rail button[aria-pressed=true]{border-color:#435c44;box-shadow:inset 0 0 0 1px #435c44;color:#2c4430}
.wardrobe-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(70px,1fr));align-content:start;gap:8px;padding:10px;overflow:auto}
.wardrobe-grid button{position:relative;display:flex;flex-direction:column;align-items:center;gap:4px;min-height:0;padding:8px 4px 6px;border:1px solid #cbd4c3;border-radius:6px;background:#fafaf6;color:#344f36;font:inherit;cursor:pointer}
.wardrobe-grid button[aria-selected=true]{border-color:#435c44;box-shadow:inset 0 0 0 1px #435c44}
.wardrobe-grid img{width:48px;height:48px;image-rendering:pixelated}
.wardrobe-grid small{font-size:11px;line-height:1.3}
.wardrobe-empty{display:grid;place-items:center;width:48px;height:48px;border:1px dashed #a6b59f;border-radius:4px;font-size:9px;font-weight:700;letter-spacing:.06em;color:#6c7e66}
.wardrobe-swatch{display:flex;width:48px;height:48px;border-radius:4px;overflow:hidden;border:1px solid #cbd4c3}
.wardrobe-swatch i{flex:1}
.wardrobe-check{position:absolute;top:4px;right:4px;width:16px;height:16px;padding:1px;border-radius:50%;background:#435c44;color:#f0f5e9}
.wardrobe-pending{margin:0;padding:8px 12px;border-top:1px solid #cbd4c3;background:#eef2e7;color:#56694f;font-size:12px}
.wardrobe-detail{margin:0;padding:8px 12px;border-top:1px solid #cbd4c3;background:#f8f6ee;color:#4f5f49;font-size:12px;line-height:1.6;min-height:2.6em}.wardrobe-detail strong{display:block;font-size:12px;color:#35463b}
.wardrobe-foot{display:flex;justify-content:space-between;align-items:center;gap:10px;padding:8px 12px;border-top:1px solid #cbd4c3;color:#6c7e66;font-size:11px}
.wardrobe-foot button{min-height:38px;padding:0 14px;border:0;border-radius:6px;background:#435c44;color:#f0f5e9;font:inherit;font-size:13px;font-weight:600;cursor:pointer}
@media(max-width:700px){.hud-app .wardrobe-panel{max-height:58dvh}.wardrobe-body{grid-template-columns:68px minmax(0,1fr)}}
.wardrobe-head>.wardrobe-turn{width:auto;padding:0 10px;border:1px solid #a6b59f;border-radius:6px;background:#fafaf6;font:inherit;font-size:12px;font-weight:600}

/* Decorating on every screen: catalog tray along the bottom, room tools along the top,
   item tools floating above the selected piece. Desktop shrinks the scene above the tray. */
.hud-app .decor-tray{display:block;position:absolute;z-index:4;left:0;right:0;bottom:0;padding:8px 0 calc(10px + env(safe-area-inset-bottom));border-top:1px solid #c9d0c4;background:rgb(231 236 223 / .97)}
@media(min-width:701px){.hud-app .stage-section.is-decorating .stage{height:calc(100% - var(--shelf-space,150px) + 8px)}}
.hud-app .stage-section.is-decorating .text-version-link{display:none}
.decor-tray-head{display:flex;align-items:center;gap:10px;padding:0 12px 8px}
.decor-tray-tabs{display:flex;gap:4px;flex:1 1 auto;min-width:0;overflow-x:auto;scrollbar-width:none}
.decor-tray-tabs::-webkit-scrollbar{display:none}
.decor-tray-tabs button{flex:0 0 auto;min-height:32px;padding:0 12px;border:0;border-radius:16px;background:transparent;color:#405a40;font-size:12px;font-weight:500}
.decor-tray-tabs button:hover{background:#dfe6d7}
.decor-tray-tabs button[aria-pressed=true]{background:#435c44;color:#f0f5e9}
.decor-tray-search{flex:0 0 170px;min-width:0;min-height:32px;padding:0 12px;border:1px solid #a8b69f;border-radius:16px;background:#fafaf6;color:#344f36;font:inherit;font-size:12px}
.decor-tray-search:focus-visible{outline:3px solid #9f6a3c;outline-offset:1px}
.decor-tray-empty{margin:0;padding:22px 14px;font-size:12px;color:#52664a}
.hud-app .decor-tray .furniture-strip{display:flex;gap:8px;overflow-x:auto;overscroll-behavior-x:contain;scroll-snap-type:x proximity;padding:2px 12px;scrollbar-width:thin;scrollbar-color:#a6b59f transparent}
.hud-app .decor-tray .furniture-strip>div{flex:0 0 auto;scroll-snap-align:start}
.hud-app .decor-tray .mobile-furniture-card{width:96px;min-height:0;padding:6px 4px 7px;flex-direction:column;align-items:center;text-align:center;gap:2px;touch-action:pan-x}
.hud-app .decor-tray .mobile-furniture-card .furniture-image{width:64px;height:64px}
.hud-app .decor-tray .mobile-furniture-card small,.hud-app .decor-tray .mobile-furniture-card>.drag-handle{display:none}
.hud-app .decor-tray .mobile-furniture-card strong{font-size:11px;line-height:1.35}
.decor-tray-finishes{display:grid;gap:8px;padding:2px 12px 4px}
.decor-tray-finish-row{display:flex;align-items:center;gap:6px;overflow-x:auto;scrollbar-width:none}
.decor-tray-finish-row>span{flex:0 0 36px;font-size:12px;font-weight:600;color:#405a40}
.decor-tray-finish-row button{flex:0 0 auto;display:flex;align-items:center;gap:7px;min-height:38px;padding:0 11px;font-size:12px;font-weight:500}
.decor-tray-finish-row button[aria-pressed=true]{background:#dfe8d8;border-color:#93a78b;color:#304b33}
.decor-tray-finish-row .room-decor-finish-color{width:20px;height:20px}
.decor-toolbar{position:absolute;z-index:3;top:62px;left:50%;transform:translateX(-50%);display:flex;align-items:center;gap:2px;max-width:calc(100% - 20px);padding:4px;border:1px solid #c9d0c4;border-radius:10px;background:rgb(250 250 246 / .96);box-shadow:0 4px 16px #06100c33;overflow-x:auto;scrollbar-width:none}
.decor-toolbar::-webkit-scrollbar{display:none}
.decor-toolbar button{flex:0 0 auto;display:flex;align-items:center;gap:5px;min-height:38px;padding:0 9px;border:0;border-radius:6px;background:transparent;font-size:12px;font-weight:500;white-space:nowrap}
.decor-toolbar button:hover{background:#e7ece3}
.decor-toolbar button svg{width:18px;height:18px;flex:none}
.decor-toolbar button[aria-pressed=true]{background:#dfe8d8;color:#304b33;box-shadow:inset 0 0 0 1px #93a78b}
.decor-toolbar .decor-toolbar-done{padding:0 14px;background:#ac7248;color:#fffaf2;font-weight:600}
.decor-toolbar .decor-toolbar-done:hover{background:#94603b}
.decor-toolbar-gap{flex:none;width:1px;align-self:stretch;margin:5px 3px;background:#d3d9cc}
@media(max-width:1000px){.decor-toolbar button:not(.decor-toolbar-done) span{display:none}.decor-toolbar button{padding:0 9px}}
@media(max-width:700px){.decor-toolbar{top:54px;left:8px;right:8px;transform:none;max-width:none;justify-content:space-between}}
.item-tools{position:absolute;z-index:3;transform:translate(-50%,calc(-100% - 12px));display:flex;flex-wrap:wrap;justify-content:center;align-items:center;gap:4px;width:max-content;max-width:min(320px,calc(100vw - 16px));padding:4px;border:1px solid #c9d0c4;border-radius:9px;background:#fafaf6;box-shadow:0 4px 16px #06100c40}
.item-tools>span{padding:0 8px;font-size:12px;font-weight:600;color:#35463b;white-space:nowrap}
.item-tools button{min-height:36px;padding:0 11px;font-size:12px}
.item-tools .item-tools-primary{background:#435c44;border-color:#435c44;color:#f0f5e9}
.item-tools.is-docked{left:50%;top:auto;bottom:calc(var(--shelf-space,150px) + 8px);transform:translateX(-50%)}
.item-tools-colors{display:flex;justify-content:center;gap:4px;flex-basis:100%;padding-top:4px;border-top:1px solid #e1e5dc}
.item-tools-colors button{width:36px;min-height:36px;padding:0;display:grid;place-items:center}
.item-tools-colors button span{width:20px;height:20px;border-radius:50%;border:1px solid #8e8572}
.item-tools-colors button[aria-pressed=true]{background:#dfe8d8;border-color:#435c44;box-shadow:inset 0 0 0 1px #435c44}
.hud-app .stage-section.is-decorating .scene-feedback{bottom:calc(var(--shelf-space,150px) + 8px)}
@media(min-width:701px){.hud-app .stage-section.is-decorating .scene-feedback{bottom:calc(var(--os-bottom,0px) + 12px)}}
@media(min-width:701px){.item-tools.is-docked{bottom:calc(var(--os-bottom,0px) + 12px)}}
@media(max-width:700px){
  .decor-toolbar{gap:0;padding:3px}
  .decor-toolbar-gap{display:none}
  .decor-toolbar button{padding:0 7px;min-height:40px}
  .decor-toolbar .decor-toolbar-done{margin-left:auto;padding:0 12px}
}

/* Loading cover choices (2026-11-12): 建立帳號／訪客進入, then 進入BL管委會; LINE community capsule. */
.loading-card{width:min(300px,100%)}
.loading-choices{display:grid;grid-template-columns:1fr 1fr;gap:8px;width:100%;margin-top:6px}
.loading-choices button{display:flex;flex-direction:column;align-items:center;gap:2px;min-height:52px;padding:8px 6px;font-size:14px;border-color:#a6b59f;background:#fafaf6;color:#344f36}
.loading-choices button:first-child{background:#435c44;border-color:#435c44;color:#f0f5e9}
.loading-choices button:first-child:hover{background:#344b36}
.loading-choices button small{font-size:10px;font-weight:500;color:inherit;opacity:.75}
.loading-card .loading-enter{width:100%;min-height:48px;margin-top:6px;font-size:15px;letter-spacing:.06em;background:#435c44;border-color:#435c44;color:#f0f5e9}
.loading-card .loading-enter:hover:not(:disabled){background:#344b36}
.loading-card .loading-enter:disabled{opacity:1;background:#dfe5d6;border-color:#cdd6c4;color:#6c7e66;cursor:wait}
.line-capsule{flex:none;margin-top:6px;display:inline-flex;align-items:center;gap:8px;max-width:calc(100% - 32px);padding:8px 16px 8px 8px;border-radius:999px;background:#06c755;color:#fff;font-size:13px;font-weight:600;text-decoration:none;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;box-shadow:0 4px 18px rgb(0 0 0 / .25)}
.line-capsule b{padding:3px 8px;border-radius:999px;background:#fff;color:#06c755;font-size:11px;letter-spacing:.04em}
.line-capsule:hover{background:#05b34c}
.fullscreen-hint{position:absolute;z-index:9;left:50%;top:max(14px,env(safe-area-inset-top));transform:translateX(-50%);margin:0;max-width:calc(100% - 32px);padding:8px 14px;border-radius:999px;background:rgb(16 24 30 / .82);color:#f4efe1;font-size:12px;text-align:center;pointer-events:none}

/* Loading notes (2026-11-13): three short blocks under the card so the wait is not empty. */
.loading-cover{justify-content:safe center}
.loading-notes{display:grid;gap:8px;width:min(300px,100%);margin:0;padding:0;list-style:none}
.loading-notes li{display:flex;align-items:center;gap:12px;padding:10px 14px 10px 10px;border:1px solid rgb(166 181 159 / .7);border-radius:8px;background:rgb(246 245 238 / .88);color:#344f36;box-shadow:0 2px 10px rgb(0 0 0 / .12)}
.loading-note-icon{flex:none;display:grid;place-items:center;width:38px;height:38px;border-radius:50%;background:#e4ead9;color:#435c44}
.loading-notes p{margin:0;font-size:13px;line-height:1.45;text-align:left}
@media(max-height:620px){.loading-notes li{padding:7px 12px 7px 8px}.loading-note-icon{width:32px;height:32px}}

/* Chat dock (2026-11-13): closed it is one icon in the bottom-left corner. */
.lounge-chat-dock{position:absolute;z-index:2;left:12px;bottom:max(calc(var(--os-bottom,0px) + 12px),env(safe-area-inset-bottom))}
.lounge-chat-icon{position:relative;display:grid;place-items:center;width:46px;height:46px;min-height:0;padding:0;border:1px solid rgb(206 220 214 / .55);border-radius:50%;background:rgb(10 18 22 / .68);color:#eef3ec;box-shadow:0 4px 14px rgb(0 0 0 / .3)}
.lounge-chat-icon:hover{background:rgb(10 18 22 / .82)}
.lounge-chat-dot{position:absolute;top:-2px;right:-2px;width:12px;height:12px;border-radius:50%;background:#e5484d;box-shadow:0 0 0 2px #fff}
.lounge-chat .lounge-chat-fold{font-size:12px}
@media(pointer:coarse){.lounge-chat .lounge-chat-fold{width:30px;height:26px}.lounge-chat .lounge-chat-input input{height:32px;font-size:16px}}
/* Fullscreen ended by a tab switch or back gesture: one tap to return (2026-11-13). */
.fullscreen-restore{position:absolute;z-index:4;left:50%;bottom:max(14px,env(safe-area-inset-bottom));transform:translateX(-50%);min-height:38px;padding:0 16px;border:1px solid rgb(246 245 238 / .6);border-radius:999px;background:rgb(16 24 30 / .72);color:#f4efe1;font-size:13px;box-shadow:0 4px 14px rgb(0 0 0 / .3)}
.building-stats b{font-size:18px;color:#2f4a36;white-space:nowrap}
.building-stats-note{margin:12px 0 0;font-size:14px;line-height:1.7}
.displaced-cover{background:rgba(16,24,30,.62);backdrop-filter:blur(2px)}
/* Visitors (2026-11-14): decorating and dressing say 「建立帳號後才能…」 instead of working. */
.scene-notice{position:absolute;z-index:6;top:62px;left:50%;transform:translateX(-50%);display:flex;align-items:center;gap:10px;width:max-content;max-width:calc(100% - 32px);margin:0;padding:6px 6px 6px 14px;border-radius:8px;background:#f5f7ef;color:#345437;font-size:13px;line-height:1.4;box-shadow:0 4px 14px #06100c33}
.scene-notice button,.wardrobe-locked button,.room-decor-locked button{flex:none;min-height:34px;padding:0 12px;border:0;border-radius:6px;background:#435c44;color:#f0f5e9;font:inherit;font-size:12px;font-weight:600;cursor:pointer}
.wardrobe-locked,.room-decor-locked{display:flex;align-items:center;justify-content:space-between;gap:10px;margin:8px 12px 0;padding:8px 8px 8px 10px;border-radius:6px;background:#fbf3df;color:#6a5426;font-size:12px;line-height:1.5}
.room-decor-locked{margin:8px 0}
.wardrobe-grid button[aria-disabled="true"]{cursor:not-allowed;opacity:.6}
.wardrobe-slots button:disabled{cursor:not-allowed;opacity:.5}
.wardrobe-foot-nudge{color:#a5562e;font-weight:600}
.visitor-tag.is-self .visitor-name{background:rgb(52 75 60 / .72)}
