/* The one page's own sheet (段 2). Only what holds while no place is up, or above every place: the page's height and
   background, the start-up guard's box (moved here from the playground's sheet with its markup, M2c) and the page's one
   status line. Each place's sheet comes and goes with the place (scene.html) and is added after this one, so its rules
   for html and body win while it is up. */
html,body{height:100%;margin:0}
body{background:#07100c;color:#f3e3b4;-webkit-tap-highlight-color:transparent}
.load-failed{position:fixed;inset:0;z-index:1000;display:grid;place-content:center;justify-items:center;gap:16px;padding:24px;background:#0b1814;color:#f3e3b4;font-size:16px;text-align:center}
.load-failed[hidden]{display:none}
.load-failed p{margin:0}
.load-failed button{min-width:160px;min-height:48px;padding:10px 20px;border:1px solid #e9d59a;border-radius:4px;background:#2e4a3c;color:#f3e3b4;font:inherit;font-weight:700}
/* A short line while a switch waits for the place to finish what it is sending (seg0 CONTRACT 切換與未知結果). */
.shell-status{position:fixed;left:50%;bottom:calc(16px + env(safe-area-inset-bottom));z-index:900;max-width:min(92vw,360px);margin:0;padding:8px 14px;border-radius:999px;background:#0b1814e6;color:#f3e3b4;font:14px/1.5 system-ui,"Microsoft JhengHei",sans-serif;text-align:center;translate:-50% 0;pointer-events:none}
.shell-status[hidden]{display:none}
/* Sign-in (CHANGES 第 7 條): Discord always; Google only while /api/auth/status says it is open to everyone (auth.js
   writes html[data-google-login]); the line for an app's built-in browser only then and only there (html[data-inapp]).
   On the grove's cover the two follow its Discord button, which hides in the states that offer no sign-in. Google's
   button is Google's light style: white, #747775 edge, #1F1F1F text, the official G (/app/google-g.svg, unchanged). */
html:not([data-google-login="open"]) [data-login-provider="google"],
html:not([data-google-login="open"]) [data-login-inapp],
html:not([data-inapp]) [data-login-inapp],
#cover-login[hidden] ~ [data-login-provider],
#cover-login[hidden] ~ [data-login-inapp]{display:none!important}
.login .brand-google{background:#FFFFFF;border-color:#747775;color:#1F1F1F}
.login .brand-google .brand-logo{left:12.4px;width:28px;height:28px}
.login-inapp{display:flex;align-items:center;justify-content:center;gap:8px;margin:-2px 0 2px;font-size:12px;line-height:1.5;color:#d6d0ae;text-align:center}
.login-copy{min-height:32px;padding:0 10px;border:1px solid #d9b56e;border-radius:3px;background:#3b2a19;color:#f8eed5;font:600 12px/1 "Noto Sans TC","Microsoft JhengHei",sans-serif}
.login-legal{display:flex;justify-content:center;gap:16px;margin:6px 0 0;font-size:12px;line-height:1.5}
.login-legal a{color:#d6d0ae;text-decoration:underline;text-underline-offset:2px}
.login-legal a:focus-visible,.login-copy:focus-visible{outline:3px solid #9fe0c8;outline-offset:2px}
