/* Shared visual authority: values taken from the current home, not scene variants. */
:root{--hl-paper:#fbfcf8;--hl-secondary:#eef0e7;--hl-ink:#1d2530;--hl-muted:#5c6862;--hl-line:rgba(30,40,32,.12);--hl-green:#2f9e6b;--hl-active:#d9ecdf;--hl-brand:#24694f;--hl-radius:12px;--hl-button:9px;--hl-font:"Segoe UI","PingFang SC",-apple-system,sans-serif;--hl-shadow:0 8px 24px #243c3214}
.shared-theme{font-family:var(--hl-font)}
.scene-routebar{position:fixed;top:110px;left:max(24px,calc((100vw - 1120px)/2));z-index:28;display:flex;gap:6px;align-items:center;background:var(--hl-paper);padding:5px;border-radius:12px;box-shadow:var(--hl-shadow)}
.scene-routebar a{font:600 12px var(--hl-font);text-decoration:none;color:var(--hl-muted);padding:10px 14px;min-height:40px;display:flex;align-items:center;border-radius:8px}
.scene-routebar a.active{background:var(--hl-active);color:var(--hl-brand)}
.scene-theme .scene-routebar button{min-height:40px;padding:8px 12px}
.scene-theme .scene-account{display:flex;align-items:center;justify-content:center;min-width:44px;min-height:44px;text-decoration:none;color:var(--hl-ink);font-weight:600}
.scene-account canvas{width:34px;height:34px;image-rendering:pixelated;border-radius:10px;background:var(--hl-secondary)}
.scene-language{background:var(--hl-secondary);color:var(--hl-ink);border:1px solid var(--hl-line);border-radius:9px;min-height:44px;padding:8px 12px;font:600 13px var(--hl-font)}
.scene-theme .atlas-heading{top:188px;left:max(24px,calc((100vw - 1120px)/2))}
.scene-theme .atlas-panel,.scene-theme .enter-card{top:188px;right:max(24px,calc((100vw - 1120px)/2));width:350px}
body.scene-theme[data-room] .sky-status{top:174px;left:max(24px,calc((100vw - 1120px)/2))}
body.scene-theme[data-room] .places-panel{top:208px;left:max(24px,calc((100vw - 1120px)/2))}
body.scene-theme[data-room] .people-panel{top:174px;right:max(24px,calc((100vw - 1120px)/2))}
.scene-theme .places-panel summary,.scene-theme .people-panel summary,.scene-theme .scene-settings summary{font:18px/1.5 HashlingsPixel,var(--hl-font);padding:10px 0;letter-spacing:0}
.scene-theme .chat-dock,.scene-theme .player-card{padding:12px}
.scene-theme .player-card canvas{width:42px;height:42px}
.scene-theme .player-card strong{font-size:14px}
.scene-theme .chat-dock details{box-shadow:none;background:transparent}
.scene-theme .chat-dock details summary{font:13px/1.5 var(--hl-font)}
.scene-theme .scene-preview-link{display:flex;align-items:center;justify-content:center;min-height:46px;padding:12px 16px;background:var(--hl-green);color:white;text-decoration:none;font:700 13px var(--hl-font);border-radius:9px;margin:12px 0}
.shared-theme nav.app-nav .links{position:relative;overflow:visible}
.shared-theme nav.app-nav .nav-mascot{display:block;top:-24px;width:40px;height:40px}
.scene-theme .chat-toggle{display:none}
.scene-theme .city-pin:active{transform:translate(-50%,-100%) scale(.96)}
.shared-theme nav.app-nav{position:fixed;top:clamp(14px,2.6vh,26px);left:50%;right:auto;transform:translateX(-50%);width:min(1120px,calc(100% - 40px));max-width:calc(100% - 40px);min-height:66px;display:flex;align-items:center;justify-content:space-between;gap:16px;padding:8px 12px;background:var(--hl-paper);border:0;border-radius:var(--hl-radius);box-shadow:var(--hl-shadow);backdrop-filter:none;-webkit-backdrop-filter:none;z-index:50}
.shared-theme nav.app-nav .logo{display:flex;align-items:center;gap:10px;text-decoration:none;background:none;border:0;padding:0;flex-shrink:0;color:var(--hl-brand)}
.shared-theme nav.app-nav .logo svg{width:34px;height:34px;flex:none}.shared-theme nav.app-nav .logo b{display:block;color:var(--hl-brand);background:none;font:800 17px var(--hl-font);letter-spacing:3px;-webkit-text-fill-color:var(--hl-brand)}
.shared-theme nav.app-nav .links{display:flex;align-items:center;gap:4px;margin:0;padding:3px;background:#edf1eb;border:0;border-radius:8px;box-shadow:none;backdrop-filter:none;-webkit-backdrop-filter:none;animation:none}
.shared-theme nav.app-nav .links a{display:inline-flex;align-items:center;justify-content:center;min-height:44px;padding:10px 14px;color:#4c5b53;font:600 13px var(--hl-font);letter-spacing:0;text-decoration:none;background:transparent;border:0;border-radius:8px;white-space:nowrap}
.shared-theme nav.app-nav .links a.active{background:var(--hl-active);color:#16211c}.shared-theme nav.app-nav .links a:before,.shared-theme nav.app-nav .links a:after{display:none}
.shared-theme nav.app-nav .nav-right{display:flex;align-items:center;gap:8px;margin:0;flex-shrink:0}.shared-theme nav.app-nav .nav-district{display:none}
.scene-theme{--panel:var(--hl-paper);--paper:var(--hl-paper);--panel2:var(--hl-secondary);--ink:var(--hl-ink);--txt:var(--hl-ink);--dim:var(--hl-muted);--muted:var(--hl-muted);--line:var(--hl-line);--teal:var(--hl-green);color:var(--hl-ink);font:14px/1.5 var(--hl-font)}
.scene-theme button,.scene-theme input,.scene-theme summary,.scene-theme nav a{font-family:var(--hl-font)}
.scene-theme button,.scene-theme .nav-home{min-height:44px;padding:9px 14px;background:var(--hl-secondary);color:var(--hl-ink);border:1px solid var(--hl-line);border-radius:var(--hl-button);font-size:13px;font-weight:700;letter-spacing:0;text-decoration:none;display:inline-flex;align-items:center;justify-content:center;box-shadow:none}
.scene-theme button:hover:not(:disabled),.scene-theme .nav-home:hover{background:#e4eadd;opacity:1}.scene-theme button:disabled{opacity:.35;cursor:not-allowed}.scene-theme button:active{transform:scale(.96)}
.scene-theme :is(button,a,input,summary):focus-visible{outline:3px solid #936900;outline-offset:3px}
.scene-theme :is(.arrival-panel,.atlas-panel,.enter-card,.player-card,.chat-dock,.chat-dock details,.places-panel,.people-panel,.scene-settings,.online-panel){background:var(--hl-paper);color:var(--hl-ink);border:0;border-radius:var(--hl-radius);box-shadow:var(--hl-shadow);backdrop-filter:none}
.scene-theme :is(.arrival-panel,.atlas-panel,.enter-card){padding:28px;border-radius:16px;box-shadow:0 16px 40px #25344b10}
.scene-theme :is(.arrival-panel h2,.enter-card h1,.atlas-panel h1,.moon-destination strong){font-family:HashlingsPixel,var(--hl-font);font-size:24px;font-weight:400;line-height:1.5;letter-spacing:0;color:var(--hl-ink)}
.scene-theme :is(.arrival-panel p,.enter-card p,.atlas-panel p,.moon-destination span,.place-sheet p){font:13px/1.8 var(--hl-font);color:var(--hl-muted)}
.scene-theme :is(.arrival-panel small,.atlas-panel small,.session-badge){font:12px/1.6 var(--hl-font);letter-spacing:0;color:var(--hl-muted)}
.scene-theme :is(.role-pick,.pick){display:flex;flex-direction:column;align-items:center;justify-content:center;gap:7px;min-width:0;padding:12px 8px;background:var(--hl-secondary);border:1px solid var(--hl-line);border-radius:var(--hl-radius);color:var(--hl-ink);box-shadow:none;transform:none}
.scene-theme .role-pick[aria-pressed=true],.scene-theme .pick.selected{background:var(--hl-active);border-color:var(--hl-green);box-shadow:inset 0 0 0 1px var(--hl-green)}
.scene-theme .pick strong,.scene-theme .role-pick span{font:700 12px var(--hl-font)}.scene-theme .pick small{font:11px/1.5 var(--hl-font)}.scene-theme .avatar-preview{border-radius:12px}
.scene-theme .session-badge{background:var(--hl-secondary);border:1px solid var(--hl-line);border-radius:9px}.scene-theme .empty-pick{background:var(--hl-secondary);border:1px dashed #b9c8bc;border-radius:12px;font:13px/1.8 var(--hl-font)}
.scene-theme :is(.arrival-actions button,.enter-actions button,.atlas-panel .enter-city,.chat-dock form button,#placeAction){background:var(--hl-green);color:white;border:0;border-radius:var(--hl-button);font:700 13px var(--hl-font);min-height:46px;padding:12px 18px;box-shadow:none}
.scene-theme :is(.arrival-actions button,.enter-actions button,.atlas-panel .enter-city,.chat-dock form button,#placeAction):hover:not(:disabled){background:var(--hl-green);opacity:.9}
.scene-theme .moon-destination b{background:var(--hl-green);color:white;border-radius:var(--hl-button);font:700 13px var(--hl-font);min-height:46px;padding:13px 18px}.scene-theme .moon-destination b:hover{opacity:.9}
.scene-theme .enter-actions a{display:flex;align-items:center;justify-content:center;background:var(--hl-secondary);border:1px solid var(--hl-line);border-radius:var(--hl-button);color:var(--hl-ink);min-height:46px;font:700 13px var(--hl-font)}
.scene-theme :is(.earth-destinations,.atlas-status){border-color:var(--hl-line)}.scene-theme .atlas-status{color:var(--hl-muted)}.scene-theme .atlas-status.offline{color:#936900}
.scene-theme :is(.scene-settings summary,.places-panel summary,.people-panel summary,.earth-destinations summary){font:600 13px var(--hl-font);min-height:44px;letter-spacing:0;color:var(--hl-ink)}
.scene-theme #placesList button{display:flex;justify-content:flex-start;gap:10px;background:var(--hl-secondary);border:1px solid var(--hl-line);font-size:12px;border-radius:9px}
.scene-theme .atlas-city-list button.active,.scene-theme #gridToggle[aria-pressed=true]{background:var(--hl-active);border-color:var(--hl-green)}
.scene-theme :is(.atlas-controls button,.city-zoom button,.city-visits button){background:var(--hl-secondary);color:var(--hl-ink);border:1px solid var(--hl-line);border-radius:9px;font-family:var(--hl-font)}
.scene-theme .atlas-controls{background:var(--hl-paper);padding:6px;gap:6px;border-radius:12px;box-shadow:var(--hl-shadow)}
.scene-theme .city-pin{background:var(--hl-paper);color:var(--hl-ink);border:1px solid var(--hl-line);font:700 12px var(--hl-font);border-radius:9px;box-shadow:var(--hl-shadow);transform:translate(-50%,-100%)}.scene-theme .city-pin[data-open=true],.scene-theme .moon-town-pin{background:var(--hl-active);border-color:var(--hl-green)}.scene-theme .city-pin:after{background:var(--hl-green);box-shadow:none}
.scene-theme .modal{background:rgba(26,34,26,.45);backdrop-filter:blur(4px);padding:20px}.scene-theme #placeSheet .modal-card{background:var(--hl-paper);border:1px solid var(--hl-line);border-radius:12px;padding:28px;width:470px;color:var(--hl-ink)}.scene-theme #placeTitle{font:700 22px/1.5 var(--hl-font);margin:14px 0 8px}.scene-theme #placeType{font:12px var(--hl-font);color:var(--hl-muted)}.scene-theme #closePlace{position:absolute;top:8px;right:8px;font-size:20px}
.scene-theme .chat-dock input{background:var(--hl-secondary);border:1px solid var(--hl-line);border-radius:9px;color:var(--hl-ink);font:13px var(--hl-font);min-height:44px}.scene-theme .chat-dock input::placeholder{color:var(--hl-muted)}
.scene-theme .player-card canvas,.scene-theme .people-row canvas{background:var(--hl-secondary);border-radius:9px}.scene-theme .player-card strong{font:700 12px var(--hl-font)}.scene-theme .player-card span{color:var(--hl-muted)}
.scene-theme .event-notice{background:var(--hl-paper);color:var(--hl-ink);border:1px solid var(--hl-line);border-radius:9px;box-shadow:var(--hl-shadow);font:12px/1.7 var(--hl-font)}
.scene-theme .exit-cafe{background:var(--hl-secondary);color:var(--hl-ink);border-color:var(--hl-line)}
@media(max-width:1000px){.shared-theme nav.app-nav{gap:8px}.shared-theme nav.app-nav .logo b{display:none}.shared-theme nav.app-nav .links a{padding:8px 10px}}
@media(max-width:760px){
 .scene-routebar{top:124px;left:12px;right:12px;gap:2px;padding:4px;overflow-x:auto}.scene-routebar a{font-size:11px;padding:8px 10px;white-space:nowrap;flex-shrink:0}.scene-theme .scene-routebar button{font-size:10px;padding:8px;flex-shrink:0}.scene-theme .scene-account{min-height:38px;min-width:34px}.scene-language{min-height:38px;font-size:11px;padding:6px}.scene-account canvas{width:28px;height:28px}
 .shared-theme nav.app-nav{top:10px;width:calc(100% - 20px);max-width:calc(100% - 20px);min-height:0;display:grid;grid-template-columns:1fr auto;gap:6px;padding:8px;border-radius:12px}.shared-theme nav.app-nav .logo b{display:block;font-size:12px;letter-spacing:1px}.shared-theme nav.app-nav .logo svg{width:26px;height:26px}.shared-theme nav.app-nav .nav-right{grid-row:1;grid-column:2;gap:5px}.shared-theme nav.app-nav .nav-right :is(button,a){font-size:11px;padding:8px;min-height:38px}.shared-theme nav.app-nav .links{grid-row:2;grid-column:1/-1;width:100%;padding:0;gap:0;overflow:auto}.shared-theme nav.app-nav .links a{flex:1;padding:8px 6px;min-height:40px;font-size:11px}
 .scene-theme :is(.arrival-panel,.enter-card,.atlas-panel){padding:20px;border-radius:16px}.scene-theme .choosing-role .arrival-panel{padding:20px}.scene-theme .arrival-panel h2{font-size:24px}.scene-theme .chat-dock input{font-size:16px}.scene-theme .chat-toggle{background:transparent;border:0;justify-content:space-between;width:100%}.scene-theme #placeSheet .modal-card{padding:22px 18px}
 .scene-theme .atlas-heading{top:136px}.scene-theme .atlas-controls{top:134px}.scene-theme .sky-info{top:182px}.scene-theme .atlas-load{top:220px}.scene-theme .sky-status{top:128px}.scene-theme .places-panel,.scene-theme .people-panel{top:151px}.scene-theme .event-notice{top:207px}.scene-theme .city-pin{font-size:11px;padding:8px;min-height:40px}.scene-theme .city-visits,.scene-theme .online-panel{top:132px}
}
@media(max-width:760px){
 .scene-theme .atlas-heading{top:186px;left:16px}.scene-theme .atlas-controls{top:184px}.scene-theme .sky-info{top:228px}
 .scene-theme .atlas-panel,.scene-theme .enter-card{top:auto;right:12px;left:12px;bottom:34px;width:auto;max-height:40dvh}
 body.scene-theme[data-room] .sky-status{top:180px;left:14px}
 body.scene-theme[data-room] .places-panel,body.scene-theme[data-room] .people-panel{top:210px}
 body.scene-theme[data-room] .places-panel{left:12px}body.scene-theme[data-room] .people-panel{right:12px}
 body.scene-theme[data-room] .event-notice{top:270px}
 .scene-theme .places-panel summary,.scene-theme .people-panel summary,.scene-theme .scene-settings summary{font-size:15px}
}
@media(max-width:360px){.scene-theme nav.app-nav .logo b{font-size:10px}.scene-theme nav.app-nav .logo{gap:5px}.scene-theme nav.app-nav .nav-right{gap:3px}}
@media(max-width:760px){
 .shared-theme nav.app-nav .links{overflow:visible}
 .shared-theme nav.app-nav .nav-mascot{top:-21px;width:32px;height:32px}
 .scene-theme .atlas-controls{bottom:auto;align-items:center}
 .scene-theme .chat-toggle{display:flex}
 body.scene-theme[data-room] .sky-status{top:180px}
 body.scene-theme[data-room] .places-panel,body.scene-theme[data-room] .people-panel{top:210px}
 body.scene-theme[data-room] .event-notice{top:270px}
}

.scene-theme :is(.places-panel,.people-panel,.scene-settings) summary{font-family:HashlingsPixel,var(--hl-font);font-size:18px;font-weight:400;line-height:1.5}
.scene-theme select:focus-visible{outline:3px solid #936900;outline-offset:3px}
@media(max-width:760px){.scene-theme :is(.places-panel,.people-panel,.scene-settings) summary{font-size:15px}}

@media(max-width:760px){.scene-theme .atlas-heading{top:181px;max-width:calc(100% - 128px);z-index:25}.scene-theme .atlas-heading h2{font-size:16px;line-height:1.4;margin:0}.scene-theme .sky-info{top:248px}.scene-theme .chat-dock{padding:0}.scene-theme .chat-dock.expanded{padding:8px}.scene-theme .atlas-panel{max-height:44dvh}}

.shared-theme nav.app-nav .nav-mascot{position:absolute;pointer-events:none;z-index:3;transition:left .22s ease}.shared-theme nav.app-nav .nav-mascot svg{width:100%;height:100%;display:block;animation:none}

/* Native CSS cursor; the ink tip is the actual click hotspot. No pointer overlay. */
@media (any-hover:hover) and (any-pointer:fine){
 body.shared-theme,body.shared-theme *{cursor:url("assets/ui/pixel-quill.png") 2 2,auto!important}
 body.shared-theme :is(a,button,summary,select,label,[role="button"],input[type="checkbox"],input[type="radio"],input[type="range"]),body.shared-theme :is(a,button,summary,label,[role="button"]) *{cursor:url("assets/ui/pixel-quill-active.png") 2 2,pointer!important}
 body.shared-theme :is(input:not([type="checkbox"]):not([type="radio"]):not([type="range"]),textarea,[contenteditable="true"]){cursor:text!important}
 body.shared-theme :is(button:disabled,input:disabled,select:disabled,[aria-disabled="true"]),body.shared-theme :is(button:disabled,[aria-disabled="true"]) *{cursor:not-allowed!important}
 body.shared-theme [aria-busy="true"],body.shared-theme [aria-busy="true"] *{cursor:progress!important}
}

/* Shared controls: warm paper, ink, and a restrained chartreuse action accent.
   Visual reference: https://robinhood.com/us/en/crypto/chain/ */
body.shared-theme{
 --hl-paper:#fffef8;--hl-secondary:#f0f1e9;--hl-ink:#19251c;--hl-muted:#586357;
 --hl-line:#d6ddce;--hl-brand:#294632;--hl-active:#e6f4bb;--hl-button:24px;
 --hl-action:#d2f65a;--hl-action-hover:#c4ea43;--hl-action-ink:#1b2814;--hl-shadow:0 8px 24px #17271b0d;
 --panel:var(--hl-paper);--panel2:var(--hl-secondary);--txt:var(--hl-ink);--dim:var(--hl-muted);
 --line:var(--hl-line);--ui-paper:var(--hl-paper);--ui-ink:var(--hl-ink);--ui-line:var(--hl-line);
}
body.shared-theme nav.app-nav{border:1px solid var(--hl-line);background:var(--hl-paper)}
body.shared-theme nav.app-nav .links{background:#eef0e6;border-radius:24px;padding:3px}
body.shared-theme nav.app-nav .links a{border-radius:22px;color:#40503e;transition:background .15s,color .15s}
body.shared-theme nav.app-nav .links a:hover{background:#e1e9d4;color:#19251c}
body.shared-theme nav.app-nav .links a.active{background:var(--hl-action);color:var(--hl-action-ink)}
body.shared-theme :is(.btn,.nav-home,.scene-preview-link,.scene-language){border-radius:28px;box-shadow:none;transition:background .15s,border-color .15s,color .15s}
body.shared-theme button:not(.event-pin):not(.landmark-pin):not(.city-pin):not(.wallet):not(.pick):not(.role-pick):not(.world-event-row):not(.world-landmark-row){border-radius:24px}
body.shared-theme.home-layout .btn:not(.ghost):not(.account),
body.shared-theme.scene-theme :is(.arrival-actions button,.enter-actions button,.atlas-panel .enter-city,.chat-dock form button,#placeAction,.scene-preview-link),
body.shared-theme.home-layout .fusion-fields button{
 background:var(--hl-action);color:var(--hl-action-ink);border:1px solid transparent;box-shadow:none;
 font-weight:700;min-height:46px;
}
body.shared-theme.home-layout .btn:not(.ghost):not(.account):hover:not(:disabled),
body.shared-theme.scene-theme :is(.arrival-actions button,.enter-actions button,.atlas-panel .enter-city,.chat-dock form button,#placeAction,.scene-preview-link):hover:not(:disabled){background:var(--hl-action-hover);color:#17230e;opacity:1}
body.shared-theme .btn.ghost,body.shared-theme .nav-home{background:var(--hl-paper);border:1px solid #9aaa90;color:#294632}
body.shared-theme .btn.ghost:hover,body.shared-theme .nav-home:hover{background:#edf3df;border-color:#627954}
body.shared-theme.home-layout .btn:disabled,body.shared-theme.scene-theme button:disabled{background:#e6e9df;color:#71796b;border-color:transparent;opacity:.65}
body.shared-theme :is(input,select){border-color:#c9d2bf}
body.shared-theme :is(input,select):focus{border-color:#718d4c}
body.shared-theme :is(button,a,input,select,summary):focus-visible{outline:3px solid #55782e;outline-offset:3px}
body.shared-theme.home-layout .world-meta>summary{background:#edf3df;border-color:#bdcea7;color:#294632}
body.shared-theme.home-layout .world-meta-action{background:#253b2c;color:#e2fb90;border-radius:20px;padding:8px 14px}
body.shared-theme.home-layout .world-meta>summary:hover{background:#e4edcf}
body.shared-theme .scene-dock{border-color:#c9d2bf;background:var(--hl-paper)}
body.shared-theme .dock-tools>summary,body.shared-theme .dock-chat>summary{background:#edf1e5;color:#294632;border-radius:22px}
body.shared-theme .scene-online{background:#e8f2d7;color:#355329}
@media(prefers-reduced-motion:reduce){body.shared-theme :is(button,.btn,nav a){transition:none}}

/* Shared spacing, readable controls, and bounded panels across home and scenes. */
body.shared-theme{--hl-radius:16px;--hl-muted:#52604e}
body.shared-theme :is(.modal-card,.account-recovery,.enter-card,.atlas-panel){border:1px solid var(--hl-line);border-radius:18px;box-shadow:0 18px 64px #10241826;color:var(--hl-ink);background:var(--hl-paper)}
body.shared-theme .modal-card{max-height:calc(100dvh - 48px);overflow-y:auto;overscroll-behavior:contain;scrollbar-width:thin}
body.shared-theme .modal-card :is(h2,h3){line-height:1.35}
body.shared-theme .modal-card p{line-height:1.75}
body.shared-theme :is(.creature-close,.close-sheet,.modal-card>button[aria-label]){min-width:44px;min-height:44px}
body.shared-theme :is(input:not([type=checkbox]):not([type=radio]),select,textarea){font-size:16px;min-height:44px;border-radius:12px;background:var(--hl-secondary);color:var(--hl-ink)}
body.shared-theme :is(input,textarea)::placeholder{color:#667260;opacity:1}
body.shared-theme nav.app-nav :is(.acct-dd-menu,.lang-dd-menu){border-radius:14px;box-shadow:0 12px 36px #10241826;max-height:min(540px,70dvh);overflow-y:auto;overscroll-behavior:contain;padding:6px}
body.shared-theme nav.app-nav .lang-dd-item{min-height:44px;border-radius:9px;font-size:13px}
body.shared-theme nav.app-nav .acct-head button{min-height:40px;font-size:12px}
body.shared-theme nav.app-nav .acct-empty{font-size:12px;line-height:1.7;padding:14px}
body.shared-theme nav.app-nav #acctBtn{min-width:44px;min-height:44px}
body.shared-theme :is(.pick,.role-pick,.recovery-list button){border:1px solid var(--hl-line);border-radius:12px;box-shadow:none}
body.shared-theme :is(.pick.selected,.role-pick.selected){border-color:#637f3d;background:#eef6d9;box-shadow:inset 0 0 0 1px #637f3d}
body.shared-theme.home-layout :is(.mint-card,.world-gate){border:1px solid var(--hl-line);box-shadow:0 8px 28px #1426190a}
body.shared-theme.home-layout :is(.field-error,.seed-hint,.mint-hint){font-size:12px;line-height:1.65}
body.shared-theme.home-layout .fusion-tools summary{gap:10px;padding:10px 0}
body.shared-theme.hud-grouped .place-title{padding:16px 18px;border:1px solid var(--hl-line);border-radius:16px;box-shadow:var(--hl-shadow)}
body.shared-theme.hud-grouped .place-title h1{font-size:22px;line-height:1.35;margin:8px 0 10px;letter-spacing:-.3px}
body.shared-theme.hud-grouped .place-title p{font-size:13px;line-height:1.65;color:var(--hl-muted)}
body.shared-theme.hud-grouped .place-title .map-status{font-size:12px!important;line-height:1.6;gap:4px 10px;color:var(--hl-muted);font-variant-numeric:tabular-nums}
body.shared-theme.hud-grouped .scene-dock{gap:16px;padding:12px 14px;border-radius:16px}
body.shared-theme.hud-grouped .dock-tool-content{border-radius:14px;padding:14px;box-shadow:0 8px 30px #10241826}
body.shared-theme.hud-grouped :is(.dock-tools>summary,.dock-chat>summary){border-radius:12px;border:1px solid #d1dbc3;font-size:13px}
body.shared-theme.hud-grouped .dock-tool-content button{font-size:13px;min-height:44px;background:#edf1e5;color:#294632;border:1px solid #c9d2bf}
body.shared-theme.hud-grouped .dock-tool-content button[aria-pressed=true]{background:#253b2c;color:#e2fb90;border-color:#253b2c}
body.shared-theme.hud-grouped #chatLines{font-size:13px;line-height:1.65;overflow-wrap:anywhere}
body.shared-theme.hud-grouped #chatLines p{margin:0;padding:7px 0;border-bottom:1px solid #d6ddce80}
body.shared-theme.hud-grouped #chatLines p:last-child{border-bottom:0}
body.shared-theme.hud-grouped #chatStatus{font-size:11px;line-height:1.5;color:var(--hl-muted);margin-top:5px}
body.shared-theme.hud-grouped .scene-dock #chatInput{padding:10px 12px;border:1px solid #c9d2bf}
body.shared-theme.hud-grouped .land-tools small{font-size:12px;line-height:1.5}
@media(max-width:760px){
 body.shared-theme .modal{padding:12px}
 body.shared-theme .modal-card{padding:22px 16px;max-height:calc(100dvh - 24px);border-radius:16px}
 body.shared-theme.hud-grouped .place-title{padding:10px 12px}
 body.shared-theme.hud-grouped .place-title h1{font-size:18px;margin:0;line-height:1.35;padding-right:76px}
 body.shared-theme.hud-grouped .place-title .map-status{font-size:11px!important;line-height:1.5;margin-top:6px}
 body.shared-theme.hud-grouped .scene-dock{padding:8px;gap:8px;border-radius:14px}
 body.shared-theme.hud-grouped .player-card strong{font-size:12px}
 body.shared-theme.hud-grouped .player-card span{font-size:11px}
 body.shared-theme.hud-grouped .dock-chat>summary{min-height:44px}
 body.shared-theme nav.app-nav .links a{font-size:11px}
}
@media(max-height:500px) and (orientation:landscape){
 body.shared-theme.hud-grouped .place-title{padding:8px 12px}
 body.shared-theme.hud-grouped .place-title h1{font-size:16px;margin:0}
 body.shared-theme.hud-grouped .scene-dock{padding:7px 10px;gap:12px}
}
@media(max-width:760px){
 body.shared-theme nav.app-nav .nav-right,body.shared-theme nav.app-nav .acct-dd,body.shared-theme nav.app-nav .lang-dd{position:static}
 body.shared-theme nav.app-nav .acct-dd-menu,body.shared-theme nav.app-nav .lang-dd-menu{right:8px;left:auto;top:calc(100% + 8px);max-width:calc(100vw - 38px);max-height:calc(100dvh - 150px)}
}
@media(max-width:400px){body.shared-theme nav.app-nav .logo b,body.shared-theme nav.app-nav .brand b{display:none}}
/* Map metadata follows the bottom controls instead of competing with navigation. */
body.shared-theme.hud-grouped .place-title.map-info{position:fixed;top:auto!important;left:auto!important;right:20px;bottom:var(--info-dock-space,150px);width:300px;max-width:calc(100vw - 32px);max-height:calc(100dvh - var(--hud-top,110px) - var(--info-dock-space,150px) - 12px);overflow:auto;padding:0}
body.shared-theme.hud-grouped .map-info>summary{display:flex;align-items:center;gap:10px;min-height:58px;padding:12px 14px;cursor:pointer;list-style:none}
body.shared-theme.hud-grouped .map-info>summary::-webkit-details-marker{display:none}
body.shared-theme.hud-grouped .map-info>summary h1{flex:1;min-width:0;font-size:17px;margin:0;padding:0;line-height:1.35}
body.shared-theme.hud-grouped .map-info .scene-online{position:static;flex:none;font-size:10px;white-space:nowrap}
.map-info .info-chevron{display:inline-grid;place-items:center;flex:0 0 44px;width:44px;height:44px;line-height:0}.map-info .info-chevron svg{display:block;width:16px;height:16px;transform-origin:8px 8px;transition:transform .15s}.map-info>summary[aria-expanded=true] .info-chevron svg{transform:rotate(180deg)}
.map-info-content{padding:0 16px 14px}.map-info-content>small{display:block!important;margin:2px 0 10px}
body.shared-theme.hud-grouped .map-info .map-info-content p{display:block;margin:8px 0 12px}
body.shared-theme .map-info>summary:focus-visible{outline:2px solid var(--hl-brand);outline-offset:-3px}
body.scene-theme .world-footer{position:fixed;z-index:24;left:24px;bottom:max(16px,env(safe-area-inset-bottom));width:min(620px,calc(100vw - 48px));display:grid;gap:12px;pointer-events:none}
.world-footer-row{display:flex;align-items:center;justify-content:space-between;gap:16px}
body.scene-theme .world-footer .sky-info{position:static!important;inset:auto!important;height:auto;display:grid;gap:5px;font-size:12px;line-height:1.5;min-width:0}
body.scene-theme .world-footer .sky-info span{font-size:11px}
body.scene-theme .world-footer #mapViewSwitch{position:static;flex:none;pointer-events:auto;border-radius:12px;min-height:44px;margin:0}
body.scene-theme .world-footer .atlas-credit{position:static;max-width:none;font:10px/1.7 var(--hl-font);border-top:1px solid #b7cdd033;padding-top:10px;color:#b7cdd0;pointer-events:auto;text-wrap:pretty}
body[data-scene="picker"] .world-footer,body[data-scene="city"] .world-footer{display:none}
@media(max-width:760px){
 body.shared-theme.hud-grouped .place-title.map-info{right:10px;max-width:calc(100vw - 20px);width:290px}
 body.shared-theme.hud-grouped .map-info>summary{min-height:52px;padding:10px 12px}
 body.shared-theme.hud-grouped .map-info>summary h1{font-size:15px}
 body.scene-theme .world-footer{left:16px;width:calc(100vw - 32px);gap:8px}
 body.scene-theme .world-footer .sky-info span{font-size:10px}
 body.scene-theme .world-footer .atlas-credit{font-size:9px;padding-top:8px}
}
body.shared-theme.hud-grouped .place-title.map-info{padding:0!important}
body.shared-theme.hud-grouped .map-info>summary h1{font-size:17px!important;margin:0!important;padding:0!important}
@media(max-width:760px){body.shared-theme.hud-grouped .place-title.map-info{width:290px!important}body.shared-theme.hud-grouped .map-info>summary h1{font-size:15px!important}}
body.scene-theme .world-footer .atlas-credit{display:flex;flex-wrap:wrap;gap:4px 12px;align-items:center}
body.scene-theme .world-footer .atlas-credit a{display:inline;min-height:0;padding:0;font:inherit;background:none;border:0;border-radius:0;box-shadow:none}
body.scene-theme .world-footer .atlas-credit>*{white-space:nowrap}
/* Map information aligns with the navigation's left edge. */
body.shared-theme.hud-grouped .place-title.map-info{left:var(--info-nav-left,20px)!important;right:auto!important;top:var(--hud-top,96px)!important;bottom:auto!important;max-height:calc(100dvh - var(--hud-top,96px) - var(--info-dock-space,150px) - 16px)}
/* Emoji trigger keeps a balanced hit area beside the composer. */
body.shared-theme #chatForm #emojiBtn,body.shared-theme #chatForm #chatEmoji,body.shared-theme #chatDock button[aria-label*="表情"],body.shared-theme #chatDock .emoji-btn{flex:0 0 48px!important;width:48px!important;min-width:48px!important;height:46px!important;min-height:46px!important;padding:0!important;display:inline-flex;align-items:center;justify-content:center;border-radius:14px!important}

body.scene-theme .world-footer .world-mission{margin:0;color:#d5e3d7;font:12px/1.8 var(--hl-font);max-width:56em;text-wrap:pretty;pointer-events:none}
@media(max-width:759px){body.scene-theme .world-footer .world-mission{font-size:11px;line-height:1.7}}

/* Shared pixel face for page headings; the asset is also used by scene-pixel.css. */
@font-face{font-family:HashlingsPixel;src:url("assets/fonts/fusion-pixel-12px-monospaced-zh_hans.woff2") format("woff2");font-display:swap}

/* 148: Shared dismiss controls use one fixed square and a centered CSS pixel X.
   Background pixels do not create grid rows or alter absolute button positioning.
   Explicit close selectors preserve ordinary Cancel and transactional actions. */
body button:is(.hl-close-button,.guide-close,.account-wallet-close,[data-finance-close],.production-close,.market-dialog .close,.hash-token-close,#payModal .payment-close,.creature-close,.close-sheet,.wx-close,#closePlace){box-sizing:border-box;display:inline-grid;place-items:center;flex:0 0 44px;width:44px;height:44px;min-width:44px;min-height:44px;max-width:44px;max-height:44px;padding:0;border:1px solid var(--hl-line,#c9d2bf);border-radius:0;background-color:var(--hl-paper,#fffef8);--hl-close-pixel:linear-gradient(currentColor,currentColor);background-image:var(--hl-close-pixel),var(--hl-close-pixel),var(--hl-close-pixel),var(--hl-close-pixel),var(--hl-close-pixel),var(--hl-close-pixel),var(--hl-close-pixel),var(--hl-close-pixel),var(--hl-close-pixel),var(--hl-close-pixel),var(--hl-close-pixel),var(--hl-close-pixel),var(--hl-close-pixel);background-size:2px 2px;background-repeat:no-repeat;background-position:50% 50%,calc(50% - 6px) calc(50% - 6px),calc(50% - 4px) calc(50% - 4px),calc(50% - 2px) calc(50% - 2px),calc(50% + 2px) calc(50% + 2px),calc(50% + 4px) calc(50% + 4px),calc(50% + 6px) calc(50% + 6px),calc(50% + 6px) calc(50% - 6px),calc(50% + 4px) calc(50% - 4px),calc(50% + 2px) calc(50% - 2px),calc(50% - 2px) calc(50% + 2px),calc(50% - 4px) calc(50% + 4px),calc(50% - 6px) calc(50% + 6px);color:var(--hl-ink,#253b2c);font-size:0;line-height:1;letter-spacing:0;box-shadow:none;cursor:pointer;transform:none;transition:background-color .12s,border-color .12s,color .12s}
body button:is(.hl-close-button,.guide-close,.account-wallet-close,[data-finance-close],.production-close,.market-dialog .close,.hash-token-close,#payModal .payment-close,.creature-close,.close-sheet,.wx-close,#closePlace)::before{content:none}
body button:is(.hl-close-button,.guide-close,.account-wallet-close,[data-finance-close],.production-close,.market-dialog .close,.hash-token-close,#payModal .payment-close,.creature-close,.close-sheet,.wx-close,#closePlace)::after{content:none}
body button:is(.hl-close-button,.guide-close,.account-wallet-close,[data-finance-close],.production-close,.market-dialog .close,.hash-token-close,#payModal .payment-close,.creature-close,.close-sheet,.wx-close,#closePlace):hover{background-color:var(--hl-secondary,#edf3df);border-color:#627954;color:var(--hl-ink,#253b2c);transform:none}
body button:is(.hl-close-button,.guide-close,.account-wallet-close,[data-finance-close],.production-close,.market-dialog .close,.hash-token-close,#payModal .payment-close,.creature-close,.close-sheet,.wx-close,#closePlace):active{background-color:#e2ebd5;transform:none}
body button:is(.hl-close-button,.guide-close,.account-wallet-close,[data-finance-close],.production-close,.market-dialog .close,.hash-token-close,#payModal .payment-close,.creature-close,.close-sheet,.wx-close,#closePlace):focus-visible{outline:3px solid #55782e;outline-offset:3px}
@media(prefers-reduced-motion:reduce){body button:is(.hl-close-button,.guide-close,.account-wallet-close,[data-finance-close],.production-close,.market-dialog .close,.hash-token-close,#payModal .payment-close,.creature-close,.close-sheet,.wx-close,#closePlace){transition:none}}

/* 166: Product actions share the compact claim control's shape, pixel face and
   state colors. Opt-in hooks keep tabs, filters, nav links and choice cards out. */
body.shared-theme{
 --hl-cta-bg:#c8f541;--hl-cta-bg-hover:#d7ff5e;--hl-cta-bg-pressed:#b8e535;
 --hl-cta-ink:#173f19;--hl-cta-border:#64c43c;
 --hl-cta-shadow:0 2px 0 #4c9a28,0 0 18px #8be04538;
 --hl-cta-shadow-hover:0 2px 0 #4c9a28,0 0 24px #8be04555;
 --hl-cta-disabled-bg:#e6eae3;--hl-cta-disabled-ink:#828f7e;--hl-cta-disabled-border:#d3dcd0;
 --hl-cta-radius:999px;
}
body.shared-theme :where(.hl-primary-action,.hl-dialog-action,.arrival-actions button,.enter-actions button,.atlas-panel .enter-city,.chat-dock form button,#placeAction,.scene-preview-link,.scene-role-confirm){
 box-sizing:border-box;display:inline-flex;align-items:center;justify-content:center;gap:8px;
 min-height:42px;padding:9px 14px;border-radius:var(--hl-cta-radius)!important;
 font-family:HashlingsPixel,var(--hl-font,monospace)!important;font-weight:400!important;line-height:1.35;letter-spacing:0;
 text-align:center;text-decoration:none;transform:translateY(0);-webkit-tap-highlight-color:transparent;
 transition:background-color .12s,border-color .12s,color .12s,box-shadow .12s,transform .08s;
}
body.shared-theme :where(.hl-primary-action,.hl-dialog-action--primary,.arrival-actions button,.enter-actions button,.atlas-panel .enter-city,.chat-dock form button,#placeAction,.scene-preview-link,.scene-role-confirm){
 background:var(--hl-cta-bg)!important;color:var(--hl-cta-ink)!important;border-color:var(--hl-cta-border)!important;
 box-shadow:var(--hl-cta-shadow)!important;opacity:1;
}
body.shared-theme :where(.hl-primary-action,.hl-dialog-action--primary,.arrival-actions button,.enter-actions button,.atlas-panel .enter-city,.chat-dock form button,#placeAction,.scene-preview-link,.scene-role-confirm):hover:not(:disabled):not([aria-disabled="true"]){
 background:var(--hl-cta-bg-hover)!important;border-color:var(--hl-cta-border)!important;box-shadow:var(--hl-cta-shadow-hover)!important;color:var(--hl-cta-ink)!important;opacity:1;
}
body.shared-theme :where(.hl-primary-action,.hl-dialog-action--primary,.arrival-actions button,.enter-actions button,.atlas-panel .enter-city,.chat-dock form button,#placeAction,.scene-preview-link,.scene-role-confirm):active:not(:disabled):not([aria-disabled="true"]){background:var(--hl-cta-bg-pressed)!important;}
body.shared-theme .hl-dialog-action--secondary{background:var(--hl-paper,#fffef8)!important;color:var(--hl-ink,#19251c)!important;border-color:var(--hl-cta-disabled-border)!important;box-shadow:0 2px 0 #cfd7c9!important;}
body.shared-theme .hl-dialog-action--secondary:hover:not(:disabled){background:var(--hl-secondary,#f0f1e9)!important;border-color:#9aaa90!important;color:var(--hl-ink,#19251c)!important;}
body.shared-theme :where(.hl-primary-action,.hl-dialog-action,.arrival-actions button,.enter-actions button,.atlas-panel .enter-city,.chat-dock form button,#placeAction,.scene-preview-link,.scene-role-confirm):active:not(:disabled):not([aria-disabled="true"]){transform:translateY(1px)!important;box-shadow:none!important;}
body.shared-theme :where(.hl-primary-action,.hl-dialog-action,.arrival-actions button,.enter-actions button,.atlas-panel .enter-city,.chat-dock form button,#placeAction,.scene-preview-link,.scene-role-confirm):is(:disabled,[aria-disabled="true"]){background:var(--hl-cta-disabled-bg)!important;color:var(--hl-cta-disabled-ink)!important;border-color:var(--hl-cta-disabled-border)!important;box-shadow:none!important;opacity:1!important;cursor:not-allowed;transform:none!important;}
body.shared-theme :where(.hl-primary-action,.hl-dialog-action,.hl-close-button,.arrival-actions button,.enter-actions button,.atlas-panel .enter-city,.chat-dock form button,#placeAction,.scene-preview-link,.scene-role-confirm):focus-visible{outline:3px solid #55782e!important;outline-offset:3px!important;}
body button.hl-close-button{border-radius:10px!important;box-shadow:0 2px 0 #cfd7c9!important;}
body button.hl-close-button:active{transform:translateY(1px)!important;box-shadow:none!important;}
/* Loading the shared font on billing must not turn its utility controls into CTAs. */
body.shared-theme.billing-page :where(#copyAddress,#refresh,#more){border-radius:10px!important;font-family:system-ui,-apple-system,"Microsoft YaHei",sans-serif!important;}
body.shared-theme.billing-page #filters button{border-radius:25px!important;font-family:system-ui,-apple-system,"Microsoft YaHei",sans-serif!important;}
@media(max-width:600px){body.shared-theme :where(.hl-primary-action,.hl-dialog-action,.arrival-actions button,.enter-actions button,.atlas-panel .enter-city,.chat-dock form button,#placeAction,.scene-preview-link,.scene-role-confirm){min-height:44px;}}
@media(prefers-reduced-motion:reduce){body.shared-theme :where(.hl-primary-action,.hl-dialog-action,.hl-close-button,.arrival-actions button,.enter-actions button,.atlas-panel .enter-city,.chat-dock form button,#placeAction,.scene-preview-link,.scene-role-confirm){transition:none;}}

/* 181: A real disabled control advertises the future guild without creating a
   dead hash link or changing the order of the product navigation. */
body.shared-theme nav.app-nav .links button.nav-coming-soon{
 appearance:none;display:inline-flex;align-items:center;justify-content:center;
 min-height:44px;margin:0;padding:10px 12px;border:0;border-radius:22px;
 background:transparent;color:#6c796b;font:600 11px/1.15 var(--hl-font);
 letter-spacing:0;white-space:nowrap;opacity:.74;box-shadow:none;cursor:not-allowed;
}
body.shared-theme nav.app-nav .links button.nav-coming-soon:disabled{
 background:transparent;color:#6c796b;opacity:.74;box-shadow:none;transform:none;
}
/* Keep every destination on one compact row. The pill owns narrow-screen
   scrolling so labels never wrap or make the navigation taller. */
body.shared-theme nav.app-nav .links{
 flex:1 1 auto;min-width:0;flex-wrap:nowrap;overflow-x:auto;overflow-y:hidden;
 scrollbar-width:thin;overscroll-behavior-x:contain;
}
body.shared-theme nav.app-nav .links :is(a,button.nav-coming-soon){
 box-sizing:border-box;flex:0 0 auto;min-width:0;height:44px;min-height:44px;
 padding:8px 10px;white-space:nowrap;line-height:1.15;
}
@media(max-width:1000px){
 body.shared-theme nav.app-nav .links :is(a,button.nav-coming-soon){padding:8px 9px}
}
@media(max-width:700px){
 body.shared-theme nav.app-nav .links{justify-content:flex-start}
 body.shared-theme nav.app-nav .links :is(a,button.nav-coming-soon){flex:0 0 auto;height:40px;min-height:40px;padding:8px 9px;font-size:10px}
}

/* SHELFLINGS uses the exact supplied logo, with a transparent background. */
body.shared-theme :is(.logo,.brand) [data-hashlings-brand-logo]{display:block;width:44px;height:44px;flex:0 0 44px;line-height:0}
body.shared-theme :is(.logo,.brand) [data-hashlings-brand-logo]>img.logo-mark{display:block;width:44px;height:44px;object-fit:contain;background:transparent;border-radius:0;image-rendering:auto}
body.shared-theme .world-loading-logo img{background:transparent;border-radius:0;image-rendering:auto;filter:none}
.home-layout .hero .shelf-brand-story{max-width:560px;margin:-8px 0 24px;color:var(--hl-muted,#607662);font-size:13px;line-height:1.6;overflow-wrap:anywhere}
@media(max-width:620px){.home-layout .hero .shelf-brand-story{font-size:12px;max-width:340px;margin-top:-2px}}
/* Keep the longer Shelf Beast slogan together at both layout breakpoints. */
.home-layout .hero h1{font-size:clamp(30px,3.3vw,44px)}
.home-layout .hero h1 span{display:inline-block;white-space:nowrap}
/* Batch results use the same account-authoritative collection as single opens. */
.box-batch-dialog{position:fixed;inset:0;margin:auto;box-sizing:border-box;max-width:680px;width:calc(100% - 40px);max-height:calc(100dvh - 32px);overflow:auto;overscroll-behavior:contain;scrollbar-width:thin;padding:28px;border:1px solid #515762;border-radius:16px;background:#181a20;color:#eaecef}.box-batch-dialog::backdrop{background:#000b}.box-batch-dialog ul{display:grid;grid-template-columns:repeat(auto-fit,minmax(min(230px,100%),1fr));gap:10px;padding:0;list-style:none}.box-batch-dialog li{padding:14px;border:1px solid #333740;border-radius:8px}.box-batch-dialog h2{font-size:22px}
