/*
 * The first-join name and skin overlay and the Profile and Sign-in panels (web/profile.js). The picker
 * and sign-in widgets are the legacy page's (client/profile-picker.css, bundled as
 * assets/profile.css); this gives them the legacy GUI variables they are sized by (client/hud.css)
 * and its stone button (.mc-button), and places the overlay and panels as Settings is placed.
 */
/* The unit itself is client/gui-scale.ts's, which web/join.js sets on the root; 2px until then. */
:root {
  --mc-px: 2px;
  --mc-font: calc(10 * var(--mc-px));
  --mc-font-half: calc(5 * var(--mc-px));
  --mc-panel-shadow: #555555;
  --mc-panel-ink: #404040;
}
/* The title screen (web/join.js, web/screens.css) is below #hud and the panels; the loading screen
   (the legacy page's client/loading-screen.css, bundled as assets/join.css) covers everything but
   the banner. */
#loading-screen { z-index: 9; }
#hud { z-index: 5; }
#banner, #toast { z-index: 10; }
#loading-screen .profile-picker { margin-top: calc(8 * var(--mc-px)); }
#profile-panel, #signin-panel { position: fixed; top: 48px; right: 12px; z-index: 6; display: grid; gap: 10px;
                                width: min(460px, calc(100 * var(--vw) - 24px)); max-height: calc(80 * var(--vh)); overflow-y: auto; padding: 12px;
                                background: rgba(0, 0, 0, 0.82); color: #fff; font: 14px/1.35 system-ui, sans-serif; }
/* Sign in from the join's picker (a taken name, web/profile.js) opens over the loading screen. */
#signin-panel { z-index: 10; }
#profile-panel .row, #signin-panel .row { display: flex; justify-content: flex-end; }
.mc-button { display: inline-block; padding: calc(2 * var(--mc-px)) calc(4 * var(--mc-px)); border: 0; border-radius: 0;
             background: #8b8b8b; color: #202020; font-family: inherit; font-size: var(--mc-font-half); line-height: 1.4;
             box-shadow: inset var(--mc-px) var(--mc-px) 0 0 #ffffff, inset calc(-1 * var(--mc-px)) calc(-1 * var(--mc-px)) 0 0 var(--mc-panel-shadow); }
.mc-button:hover, .mc-button:focus-visible { background: #a5a5a5; }
.mc-button:disabled { color: #6b6b6b; }
