/* HUD reference: separate inspector, tools, player and chat lanes. */
.scene-theme .parcel-inspector{left:auto!important;right:24px!important;top:220px!important;bottom:auto!important;width:250px;z-index:36;max-height:calc(100dvh - 400px);overflow:auto}
.scene-theme .place-title,body.scene-theme[data-night=true] .place-title{color:#203e35;text-shadow:none;background:#fff6dfed;border:2px solid #344c3d;padding:14px 16px;box-shadow:inset 0 0 0 2px #e9dcb9,4px 4px 0 #10282080;max-width:285px;border-radius:0;z-index:25}
.scene-theme .place-title h1{font-size:21px;margin:7px 0}.scene-theme .place-title small{font-size:10px}.scene-theme .place-title p{font-size:11px;line-height:1.8}
.scene-theme .land-tools{bottom:170px!important;gap:8px}.scene-theme .land-tools small{background:#fff6dfed;border:1px solid #566750;padding:4px 7px}
.scene-theme .player-card,.scene-theme .chat-dock,.scene-theme .parcel-inspector{box-shadow:inset 0 0 0 2px #e8ddb9,4px 4px 0 #152f2980!important}
.scene-theme #gridToggle,.scene-theme #returnTown{background:#364f38;color:#fff0c9;border:2px solid #8eaa75;box-shadow:inset 0 0 0 2px #233c2b,3px 3px 0 #172b2280;padding:10px 13px;letter-spacing:.3px}
.scene-theme #gridToggle:hover,.scene-theme #returnTown:hover{color:#243c2d}.scene-theme #gridToggle[aria-pressed=true]{color:#243c2d}
.scene-theme .parcel-inspector strong{padding-bottom:8px;border-bottom:2px solid #9f9c7b}.scene-theme .parcel-inspector small{border-top:2px dotted #a5a284;padding-top:9px;margin-top:5px}
@media(max-width:900px) and (min-width:761px){.scene-theme .chat-dock{width:350px}.scene-theme .player-card{max-width:210px}.scene-theme .parcel-inspector{width:220px}}
@media(max-width:760px){.scene-theme .parcel-inspector{right:12px!important;top:230px!important;bottom:auto!important;width:210px;max-height:calc(100dvh - 410px)}.scene-theme .land-tools{bottom:182px!important}.scene-theme .place-title{left:12px;top:88px;max-width:160px;padding:8px 10px}.scene-theme .place-title h1{font-size:15px}.scene-theme .place-title small{font-size:8px;letter-spacing:1px}}


.scene-theme .place-title{position:fixed;left:24px;top:106px;width:280px;pointer-events:auto}
.scene-theme .map-status,body.scene-theme[data-room] .map-status,.scene-theme .place-title .scene-weather{position:static!important;inset:auto!important;display:flex;flex-wrap:wrap;align-items:center;gap:5px 8px;width:auto;max-width:none;padding:10px 0 0!important;margin-top:10px;border:0!important;border-top:2px dotted #aba889!important;border-radius:0!important;background:transparent!important;box-shadow:none!important;color:#304a3b!important;text-shadow:none;pointer-events:auto;font-size:11px}
.scene-theme .map-status time{width:100%}.scene-theme .map-status a{margin-left:auto}.scene-theme .map-status #skyToggle{font-size:10px;min-height:28px;padding:3px 5px;margin-left:auto}
.scene-theme .town-bottom,body.scene-theme[data-room] .town-bottom{position:fixed;left:24px;right:24px;bottom:80px;display:flex;align-items:end;justify-content:space-between;width:auto;pointer-events:none}
.scene-theme .town-bottom .player-card,.scene-theme .town-bottom .view-tools{pointer-events:auto;margin:0}.scene-theme .player-card{width:230px;max-width:230px;min-width:0;padding:10px;gap:9px}.scene-theme .player-card canvas{width:32px;height:32px}.scene-theme #zoomOut,.scene-theme #zoomIn{display:none!important}
.scene-theme .land-tools{left:24px;right:auto;width:240px;display:flex;flex-wrap:wrap}.scene-theme .land-tools small{width:100%;font-size:10px}
.scene-theme .chat-dock,body.scene-theme[data-room] .chat-dock{bottom:16px;width:min(470px,calc(100vw - 540px));left:50%;padding:6px;transform:translateX(-50%)}.scene-theme .chat-dock form{display:flex!important}.scene-theme .chat-toggle{display:none!important}
body.scene-theme[data-room] .places-panel{top:280px;left:24px}.scene-theme .town-help{position:fixed;left:24px;right:auto;bottom:12px;max-width:220px;font-size:10px}.scene-theme.choosing-role .land-tools{display:none}
@media(max-width:760px){.scene-theme .place-title{left:12px;top:88px;width:190px;max-width:190px;padding:8px 10px}.scene-theme .place-title p{display:none}.scene-theme .place-title h1{font-size:16px}.scene-theme .map-status{font-size:10px!important;padding-top:6px!important;margin-top:6px}.scene-theme .map-status #skyToggle{display:none}.scene-theme .town-bottom,body.scene-theme[data-room] .town-bottom{left:10px;right:10px;bottom:105px}.scene-theme .player-card{width:200px;max-width:200px;padding:6px}.scene-theme .chat-dock,body.scene-theme[data-room] .chat-dock{left:10px;right:10px;bottom:12px;width:auto;transform:none}.scene-theme .land-tools{left:10px;bottom:180px!important}.scene-theme .town-help{display:none}body.scene-theme[data-room] .places-panel{top:270px;left:12px;width:155px}}

.emoji-tray{position:absolute;bottom:100%;left:0;display:grid;grid-template-columns:repeat(6,1fr);gap:3px;padding:8px;background:#fff6df;border:2px solid #405740;z-index:50}.emoji-tray[hidden]{display:none}.emoji-tray button{font-family:system-ui!important;font-size:21px!important;padding:5px!important}.emoji-toggle{min-width:36px!important;padding:4px!important}.scene-speech-layer{position:fixed;inset:0;pointer-events:none;z-index:55}.scene-speech-bubble{position:absolute;transform:translate(-50%,-100%);max-width:220px;padding:8px 12px;background:#fff6df;color:#253c30;border:2px solid #40543e;box-shadow:3px 3px 0 #12291d55;font:14px/1.6 HashlingsPixel,system-ui;overflow-wrap:anywhere}.scene-speech-bubble:after{content:"";position:absolute;left:calc(50% - 5px);bottom:-7px;width:8px;height:8px;background:#fff6df;border-right:2px solid #40543e;border-bottom:2px solid #40543e;transform:rotate(45deg)}


/* Home-page tokens are the visual authority for every scene. */
.scene-theme{font-family:var(--hl-font);--paper:var(--hl-paper);--panel:var(--hl-paper);--line:var(--hl-line)}
.scene-theme :is(.place-title,.player-card,.view-tools,.chat-dock,.arrival-panel,.modal-card,.places-panel,.people-panel,.parcel-inspector,.emoji-tray),body.scene-theme[data-night=true] .place-title{background:var(--hl-paper);color:var(--hl-ink);border:1px solid var(--hl-line)!important;border-radius:var(--hl-radius)!important;box-shadow:var(--hl-shadow)!important;font-family:var(--hl-font)!important;text-shadow:none}
.scene-theme :is(button,input,summary,.land-tools,.place-title,.parcel-inspector){font-family:var(--hl-font)!important}
.scene-theme button:not(nav button),.scene-theme #gridToggle,.scene-theme #returnTown{border:1px solid var(--hl-line);border-radius:var(--hl-button);background:var(--hl-secondary);color:var(--hl-ink);box-shadow:none;font-family:var(--hl-font)!important;letter-spacing:0}
.scene-theme button:not(nav button):hover{background:var(--hl-active);color:var(--hl-brand)}
.scene-theme button[aria-pressed=true]{background:var(--hl-active)!important;color:var(--hl-brand)!important;border-color:var(--hl-green)!important}
.scene-theme input{border:1px solid var(--hl-line);border-radius:var(--hl-button);background:var(--hl-secondary);color:var(--hl-ink)}
.scene-theme .chat-dock form button[type=submit]{background:var(--hl-green);color:white}
.scene-theme .place-title{padding:18px;box-sizing:border-box}.scene-theme .place-title small{display:block;padding-right:72px;letter-spacing:1.5px;color:var(--hl-muted)}
.scene-theme .place-title h1{font:700 20px/1.45 var(--hl-font);margin:12px 0 8px}.scene-theme .place-title p{font:12px/1.75 var(--hl-font);color:var(--hl-muted)}
.scene-theme .scene-online{position:absolute;right:14px;top:15px;font:600 11px/1.6 var(--hl-font);color:var(--hl-brand);white-space:nowrap;background:var(--hl-active);border-radius:20px;padding:2px 8px}
.scene-theme .place-title .map-status{border-top:1px solid var(--hl-line)!important;color:var(--hl-muted)!important}
.scene-theme .land-tools small{background:var(--hl-paper);border:1px solid var(--hl-line);border-radius:6px;color:var(--hl-muted)}
.scene-theme .parcel-inspector strong,.scene-theme .parcel-inspector small{border-color:var(--hl-line);border-width:1px;border-style:solid none none}
.scene-speech-bubble{font:14px/1.6 var(--hl-font);background:var(--hl-paper);color:var(--hl-ink);border:1px solid var(--hl-line);border-radius:12px;box-shadow:var(--hl-shadow)}.scene-speech-bubble:after{background:var(--hl-paper);border-color:var(--hl-line);border-width:1px}
.scene-theme .player-card canvas,.scene-theme .role-pick canvas{image-rendering:pixelated}
#atlasPins [id^="pin-"]{display:none!important}
@media(max-width:760px){.scene-theme .place-title{width:220px;max-width:220px;padding:12px}.scene-theme .place-title h1{font-size:16px}.scene-theme .scene-online{top:10px;right:10px;font-size:10px}}

/* Separate history and composer cards across all scenes. */
