/*
 * The legacy page's screens around the title: the top bar, the pause menu, the resume hint and the
 * Options frame (web/join.js, web/shell.js). The title itself is client/title-screen.css, bundled
 * into assets/join.css; what it builds on and these screens' final look are restated here from
 * client/style.css and client/hud.css, whose page-wide rules (body, button, h1, kbd) would restyle
 * this whole page. Sizes are GUI pixels (--mc-px, client/gui-scale.ts) where the legacy page's are.
 */
/* The game's pixel face (client/pixel-font.ts), which the legacy page's body carries for every screen. */
.topbar, #loading-screen, #pause-layer, .resume-hint, #settings h2, #voice-hud { font-family: 'Common Pixel', ui-monospace, monospace; }


/* client/style.css .topbar, .top-right, .edition and .connection, as the title shows them; in the
   world, client/hud.css's: the frame rate, the connection and ? as small dark pills at the top right. */
.topbar { position: fixed; top: 36px; left: 48px; right: 48px; z-index: 5; display: flex; align-items: center;
          justify-content: flex-end; pointer-events: none; }
.top-right { display: flex; align-items: center; gap: 25px; }
.top-right .frame-rate { font-variant-numeric: tabular-nums; }
body.playing .topbar { top: calc(2 * var(--mc-px)); right: calc(2 * var(--mc-px)); left: auto; }
body.playing .top-right { gap: calc(2 * var(--mc-px)); font-size: var(--mc-font-half); }
body.playing .edition { display: none; }
body.playing .top-right .connection, body.playing .topbar .icon-button {
  padding: var(--mc-px) calc(2 * var(--mc-px)); border: 0; border-radius: 0; background: #00000091;
  box-shadow: 0 0 0 var(--mc-px) #000000; color: #f0f0f0; font-size: var(--mc-font-half); font-weight: 400; letter-spacing: 0;
  text-shadow: 1px 1px 0 #3f3f3f; backdrop-filter: none; width: auto; height: auto; line-height: 1.2;
}
body.playing .topbar .icon-button { min-width: calc(7 * var(--mc-px)); text-align: center; }
.edition { font-size: 10px; letter-spacing: 1.7px; font-weight: 700; }
.connection { display: flex; align-items: center; gap: 8px; padding: 10px 14px; border: 1px solid #ffffffa6; border-radius: 30px;
              background: #f7f9efc9; backdrop-filter: blur(8px); color: #26372e; font-size: 11px; font-weight: 500; }
.connection i { width: 6px; height: 6px; display: inline-block; border-radius: 50%; background: #cfac5e; }
.connection i.online { background: #668e4c; box-shadow: 0 0 0 3px #7c995613; }
.connection i.error { background: #b5644d; }
.connection i.connecting, .connection i.reconnecting { animation: connection-pulse 1.4s ease infinite; }
@keyframes connection-pulse { 50% { opacity: 0.35; } }

/* The pause menu: a heading and a column of buttons over the darkened world, no card. */
#pause-layer { position: fixed; inset: 0; z-index: 6; display: flex; align-items: center; justify-content: center; background: #000000a8; }
.resume-hint { position: fixed; left: 50%; top: 50%; z-index: 6; transform: translate(-50%, -50%); padding: calc(2 * var(--mc-px)) calc(4 * var(--mc-px));
               background: #0000008a; color: #ffffff; font-size: var(--mc-font-half); text-shadow: 1px 1px 0 #3f3f3f; pointer-events: none;
               animation: resume-hint-in 120ms ease-out 180ms both; }
@keyframes resume-hint-in { from { opacity: 0; } }
.pause-card { width: calc(200 * var(--mc-px)); max-width: calc(100 * var(--vw) - 8 * var(--mc-px)); display: grid; justify-items: stretch;
              gap: calc(2 * var(--mc-px)); color: #f0f0f0; font-size: var(--mc-font-half); text-align: center; }
.pause-card .eyebrow, .pause-card p { display: none; }
.pause-card h2 { margin: 0 0 calc(4 * var(--mc-px)); font-family: inherit; font-size: var(--mc-font); font-weight: 400;
                 color: #ffffff; text-shadow: var(--mc-px) var(--mc-px) 0 #3f3f3f; }
.pause-card button { font-family: inherit; cursor: pointer; }
.pause-card .primary-button { display: flex; align-items: center; justify-content: center; width: 100%; padding: 18px 23px;
                              border: 0; border-radius: 5px; background: #8b8b8b; color: #202020; font-size: 13px; font-weight: 600;
                              box-shadow: 0 5px 14px #34492a14; }
.pause-card .primary-button span:last-child { display: none; }
.pause-actions { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: calc(2 * var(--mc-px)); }
.pause-actions button, .pause-card kbd {
  border: 0; border-radius: 0; background: #8b8b8b; color: #202020; font-size: var(--mc-font-half); font-weight: 400; letter-spacing: 0;
  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);
}
.pause-actions button { width: 100%; padding: calc(2 * var(--mc-px)) calc(4 * var(--mc-px)); line-height: 1.4; }
.pause-card kbd { display: inline-block; margin-left: 5px; padding: 0 var(--mc-px); font-family: inherit; }
/* A watcher's pause menu (web/shell.js watchMode): Resume and Options. The rest is a player's, and
   nothing of a watcher's is saved. */
body[data-watch] #pause-layer .pause-actions { grid-template-columns: 1fr; }
body[data-watch] #pause-layer .pause-actions > :not(#pause-settings),
body[data-watch] #pause-layer .pause-note { display: none; }

/* The Players screen (client/ui.ts players panel): client/hud.css's #modal panel and close button over
   the darkened world, and client/style.css's player list and friends rules (client/player-list.ts and
   client/friends.ts write the markup). */
#players-panel, #voice-panel, #guide-panel { position: fixed; left: 50%; top: 50%; z-index: 8; transform: translate(-50%, -50%); box-sizing: border-box;
                 width: calc(220 * var(--mc-px)); max-width: calc(100 * var(--vw) - 8 * var(--mc-px)); max-height: calc(100 * var(--vh) - 6 * var(--mc-px));
                 overflow: auto; padding: calc(6 * var(--mc-px)); background: #c6c6c6; color: #404040;
                 font-family: 'Common Pixel', ui-monospace, monospace; font-size: var(--mc-font-half);
                 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),
                             0 0 0 var(--mc-px) #000000, 0 0 0 100vmax #000000a8; }
#players-panel .close-button, #voice-panel .close-button, #guide-panel .close-button { position: absolute; right: calc(4 * var(--mc-px)); top: calc(4 * var(--mc-px)); width: calc(9 * var(--mc-px));
                               height: calc(9 * var(--mc-px)); padding: 0; border: 0; border-radius: 0; background: #8b8b8b; color: #1f1f1f;
                               font: inherit; font-size: var(--mc-font-half); line-height: 1; cursor: pointer;
                               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); }
#players-panel .close-button:hover, #voice-panel .close-button:hover, #guide-panel .close-button:hover { background: #a3a3a3; }
#players-panel h2 { margin: 0 0 calc(3 * var(--mc-px)); font-family: inherit; font-size: var(--mc-font); font-weight: 400; }
#players-panel .eyebrow, #voice-panel .eyebrow, #guide-panel .eyebrow { display: flex; align-items: center; gap: 10px; color: #6b6b6b; font-size: 10px; font-weight: 700; letter-spacing: 1px; }
#players-panel button, #players-panel input, #voice-panel button, #voice-panel input, #guide-panel button { font: inherit; }
#players-panel input[type='search'] { box-sizing: border-box; width: 100%; margin: 8px 0 12px; }
.player-names { columns: 2; max-height: calc(55 * var(--vh)); margin: 0; padding: 0; overflow-y: auto; list-style: none; }
.player-names li { padding: 2px 0; overflow-wrap: anywhere; }
.player-more { font-size: 12px; opacity: 0.7; }
.friends .eyebrow { margin-top: 8px; }
.friend-list { max-height: calc(22 * var(--vh)); margin: 4px 0 8px; padding: 0; overflow-y: auto; list-style: none; }
.friend-list li, .player-names li { display: flex; gap: 6px; align-items: center; }
.friend-name { flex: 1; overflow-wrap: anywhere; }
.friend-status { font-size: 12px; opacity: 0.6; }
.friend-status.online { color: #7fd46a; opacity: 1; }
.friend-action { padding: 1px 6px; font-size: 12px; cursor: pointer; }
/* The Field guide (client/ui.ts help panel): client/style.css's guide rules under client/hud.css's
   final look for them (the #modal prose scale, bevelled keys and buttons, grey notes). */
#guide-panel h2 { margin: 0 0 calc(3 * var(--mc-px)); font-family: inherit; font-size: var(--mc-font); font-weight: 400; }
#guide-panel > p { color: #555555; font-size: var(--mc-font-half); line-height: 1.6; }
#guide-panel .help-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 0 23px; font-size: var(--mc-font-half); line-height: 1.55; }
#guide-panel .help-grid > div { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 12px 0;
                                border-bottom: 1px solid #b0b0b0; }
#guide-panel .help-grid > div > span { font-size: 10px; color: #67765b; text-align: right; }
#guide-panel kbd { display: inline-block; padding: 0 var(--mc-px); border: 0; border-radius: 0; background: #8b8b8b; color: #202020;
                   font-family: inherit; font-size: var(--mc-font-half); font-weight: 400; letter-spacing: 0;
                   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); }
#guide-panel .help-grid kbd { white-space: nowrap; }
#guide-panel .field-note { margin-top: 22px; padding: 16px; border: 0; border-radius: 0; background: #b8b8b8; color: #2a2a2a;
                           font-size: var(--mc-font-half); line-height: 1.55; }
#guide-panel .fluid-note { margin-top: 17px; }
#guide-panel .field-note b { display: block; margin-bottom: 3px; color: #4d6342; font-family: inherit; font-weight: 400; }
@media (max-width: 680px) {
  #guide-panel .help-grid { gap: 0 12px; }
  #guide-panel .help-grid > div { display: grid; gap: 6px; justify-items: start; }
  #guide-panel .help-grid > div > span { text-align: left; font-size: 9px; }
}
/* Its biome guide: client/style.css's rules under client/hud.css's final look. */
#guide-panel .biome-guide { margin-top: 30px; font-size: var(--mc-font-half); line-height: 1.55; }
#guide-panel .biome-guide h3 { margin: 9px 0; font-family: inherit; font-size: var(--mc-font); font-weight: 400; letter-spacing: 0; }
#guide-panel .biome-guide > p { margin: 0 0 17px; color: #697368; font-size: 12px; line-height: 1.65; }
#guide-panel .biome-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(155px, 1fr)); gap: 9px; }
#guide-panel .biome-card { position: relative; padding: 14px 12px 12px; border: 0; border-radius: 0; background: #b8b8b8; color: #2a2a2a;
                           text-align: left; font: inherit; cursor: pointer; }
#guide-panel .biome-card.current { box-shadow: inset 0 0 0 1px #6b8658; }
#guide-panel .biome-swatch { display: block; width: 25px; height: 20px; margin-bottom: 11px; background: var(--biome-color);
                             clip-path: polygon(0 24%, 40% 0, 100% 26%, 100% 77%, 55% 100%, 0 75%); }
#guide-panel .biome-card b { display: block; font-family: inherit; font-size: 12px; font-weight: 400; }
#guide-panel .biome-card small { display: block; min-height: 45px; margin: 7px 0 12px; color: #727c6a; font-size: 10px; line-height: 1.5; }
#guide-panel .biome-card [data-biome-distance] { display: block; font-size: 11px; font-weight: 600; }
#guide-panel .biome-card em { display: block; margin-top: 4px; color: #7c8475; font-size: 9px; font-style: normal; }
/* The marked route (client/style.css and client/hud.css .navigation-hint): one line at the bottom left
   in the world, gone while a screen owns the window (client/ui.ts markScreenOpen). */
#navigation-hint { position: fixed; left: calc(2 * var(--mc-px)); bottom: calc(2 * var(--mc-px)); z-index: 5; display: block;
                   max-width: 270px; margin: 0; padding: var(--mc-px) calc(2 * var(--mc-px)); border: 0; border-radius: 0;
                   background: #00000091; box-shadow: 0 0 0 var(--mc-px) #000000; color: #ffffff;
                   font-family: 'Common Pixel', ui-monospace, monospace; font-size: var(--mc-font-half); line-height: 1.6;
                   text-shadow: 1px 1px 0 #3f3f3f; cursor: pointer; pointer-events: auto; }
body:not(.playing) #navigation-hint,
body:has(#pause-layer:not([hidden]), #settings:not([hidden]), #profile-panel:not([hidden]), #signin-panel:not([hidden]),
         #players-panel:not([hidden]), #voice-panel:not([hidden]), #guide-panel:not([hidden]), #duel-panel:not([hidden]),
         #commerce-panel:not([hidden]), #inventory:not([hidden]), #sign-editor:not([hidden]),
         #survival:not([hidden])) :is(#navigation-hint, #debug-overlay) { display: none; }
/* The map screen and the compass route line (client/navigation.ts): client/style.css's rules, in the
   legacy page's pixel face. The route line sits under the screens, as the HUD does; the map screen
   covers everything, the marked route line included. */
.navigation-overlay { position: fixed; inset: 0; z-index: 90; display: flex; flex-direction: column; align-items: center;
                      justify-content: center; gap: 14px; padding: 20px; background: #10231ef2; color: #f2eedb;
                      font-family: 'Common Pixel', ui-monospace, monospace; }
.navigation-overlay h2 { margin: 0; font-size: 22px; }
.navigation-overlay canvas { width: min(70 * var(--vh), 85 * var(--vw)); height: min(70 * var(--vh), 85 * var(--vw)); border: 2px solid #789484; border-radius: 6px;
                             image-rendering: pixelated; }
.map-controls { display: flex; gap: 8px; }
.map-controls button { padding: 9px 17px; border: 1px solid #80988a; border-radius: 5px; background: #354e41; color: #fff;
                       font: inherit; cursor: pointer; }
.navigation-route { position: fixed; left: 22px; bottom: 105px; z-index: 5; padding: 8px 12px; border-radius: 5px;
                    background: #17382a9c; color: #e7efd6; font-family: 'Common Pixel', ui-monospace, monospace; font-size: 12px;
                    pointer-events: none; }
body:has(.navigation-overlay:not([hidden])) #navigation-hint { display: none; }
/* client/style.css .icon-button: the title's ? button, which opens the Field guide. */
.topbar .icon-button { pointer-events: auto; width: 31px; height: 31px; border: 1px solid #43584163; border-radius: 50%;
                       background: transparent; color: #26372e; font-family: inherit; font-size: 16px; cursor: pointer; }
/* Proximity voice (client/voice-panel.ts), client/style.css's rules: the controls above the player list
   and on the Voice screen, the HUD's voice line and mic button (in the world only, as the legacy HUD
   is), and the title's prompt to turn the microphone on. */
.voice .voice-row { display: flex; flex-wrap: wrap; gap: 8px 14px; align-items: center; margin: 6px 0; }
.voice-slider { display: inline-flex; gap: 4px; align-items: center; font-size: 13px; }
.voice-slider input { width: 90px; }
.voice-speaking { color: #7fd46a; }
#voice-hud { position: fixed; left: 12px; bottom: 96px; z-index: 5; padding: 3px 8px; font-size: 13px; color: #fff;
             pointer-events: none; background: rgba(0, 0, 0, 0.45); }
#voice-hud.voice-live { color: #7fd46a; }
.voice-button { position: fixed; left: 12px; bottom: 128px; z-index: 7; width: 34px; height: 34px; display: grid; place-items: center;
                padding: 0; color: #d8d8d8; cursor: pointer; pointer-events: auto; background: rgba(0, 0, 0, 0.45);
                border: 1px solid rgba(255, 255, 255, 0.25); border-radius: 8px; }
body:not(.playing) .voice-button, body:not(.playing) #voice-hud { display: none; }
.voice-button svg { width: 14px; height: 19px; }
.voice-button[data-state='off'] { color: #777; }
.voice-button[data-state='listening'] { color: #aaa; }
.voice-button[data-state='on'] { color: #fff; }
.voice-button[data-state='talking'] { color: #55ff55; border-color: #55ff55; }
.voice-button[data-state='muted'] { color: #ff5555; }
/* The first visit's voice card (web/voice.js), in the welcome card's look (client/vmon/vmon.css #welcome-card).
   It is no screen and the trainer plays on under it, so it sits at the top, under the compass, off the
   middle of the view (and off the pause card's buttons). */
.voice-prompt { position: fixed; top: 64px; left: 50%; transform: translateX(-50%); z-index: 50; width: min(380px, calc(100vw - 16px));
                box-sizing: border-box; display: grid; gap: 8px; justify-items: center; padding: 20px 22px 18px; text-align: center;
                border-radius: var(--vu-r-lg); background: #fff; color: var(--vu-ink); box-shadow: var(--vu-shadow-lg);
                font: 500 14px/1.4 var(--vu-font-body); pointer-events: auto; }
.voice-prompt[hidden] { display: none; }
.voice-prompt-mic { width: 26px; height: 36px; color: var(--vu-sky); }
.voice-prompt h2 { margin: 0; font: 600 22px/1.2 var(--vu-font-display); }
.voice-prompt p { margin: 0; }
.voice-prompt .voice-prompt-note { color: var(--vu-ink-2); font-size: 12px; }
.voice-prompt-key { padding: 0 6px; border-radius: 4px; background: var(--vu-cloud); font: 600 13px/1.4 var(--vu-font-display); }
.voice-prompt-actions { display: flex; gap: 8px; width: 100%; margin-top: 6px; }
.voice-prompt-actions button { flex: 1; min-height: 44px; padding: 0 14px; border: 0; border-radius: 999px; font: 600 15px/1.2 var(--vu-font-display); cursor: pointer; }
.voice-prompt-on { background: var(--vu-sky); color: #fff; box-shadow: inset 0 -3px 0 rgb(0 0 0 / 18%); }
/* The pause menu's Looking to battle switch: an Off/On pill, gold when on, as the name tags' banner. */
.pause-looking { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.looking-pill { min-width: 34px; padding: 1px 8px; border-radius: 999px; background: var(--vu-cloud); color: var(--vu-ink-2); font-size: 12px; font-weight: 700; text-align: center; }
.pause-looking[aria-pressed='true'] .looking-pill { background: #ffbe28; color: #3c1e00; }
.voice-prompt .text-button { background: #fff; color: var(--vu-ink); box-shadow: inset 0 0 0 2px var(--vu-rule); }
/* client/hud.css #hud .tab-list: the names in columns of at most 20 rows on one dark panel at the top
   centre, while Tab is held; it never takes a click or focus. */
#tab-list { position: fixed; top: calc(10 * var(--mc-px)); left: 50%; z-index: 7; transform: translateX(-50%); display: grid;
            grid-auto-flow: column; grid-template-rows: repeat(var(--rows, 1), auto); gap: var(--mc-px) calc(5 * var(--mc-px));
            padding: var(--mc-px); background: #00000080; font-family: 'Common Pixel', ui-monospace, monospace;
            pointer-events: none; user-select: none; }
#tab-list span { min-width: calc(60 * var(--mc-px)); padding: 0 var(--mc-px); background: #ffffff20; color: #ffffff;
                 font-size: var(--mc-font); line-height: calc(8 * var(--mc-px)); text-shadow: var(--mc-px) var(--mc-px) 0 #3f3f3f;
                 white-space: nowrap; }

/* A screen closed with Escape and the browser would not give mouse look back without a click. */
.resume-hint { position: fixed; left: 50%; top: 50%; z-index: 6; transform: translate(-50%, -50%);
               padding: calc(2 * var(--mc-px)) calc(4 * var(--mc-px)); background: #0000008a; color: #ffffff;
               font-size: var(--mc-font-half); text-shadow: 1px 1px 0 #3f3f3f; pointer-events: none;
               animation: resume-hint-in 120ms ease-out 180ms both; }
@keyframes resume-hint-in { from { opacity: 0; } }

/* Options (client/settings.ts, client/hud.css's Options screen as finally drawn): no slab, the world
   behind darkened evenly, under the screen as around it (legacy's modal layer), two columns of
   bevelled rows 310 GUI pixels wide, its title white with a hard shadow; the tabs are plain buttons,
   as there. */
#settings { position: fixed; top: 50%; left: 50%; z-index: 8; transform: translate(-50%, -50%); box-sizing: border-box;
            width: calc(310 * var(--mc-px)); max-width: calc(100 * var(--vw) - 8 * var(--mc-px)); max-height: calc(100 * var(--vh) - 6 * var(--mc-px));
            overflow: auto; padding: calc(4 * var(--mc-px)) 0; color: #f0f0f0; font-family: 'Common Pixel', ui-monospace, monospace;
            font-size: var(--mc-font-half); background: #000000a8; box-shadow: 0 0 0 100vmax #000000a8; }
#settings button, #settings input { font: inherit; }
#settings h2 { margin: 0 0 calc(4 * var(--mc-px)); font-size: var(--mc-font); font-weight: 400; text-align: center; color: #ffffff;
               text-shadow: var(--mc-px) var(--mc-px) 0 #3f3f3f; }
#settings .close-button { position: absolute; right: calc(4 * var(--mc-px)); top: calc(4 * var(--mc-px)); width: calc(9 * var(--mc-px));
                          height: calc(9 * var(--mc-px)); padding: 0; border: 0; border-radius: 0; background: #8b8b8b; color: #1f1f1f;
                          line-height: 1; cursor: pointer;
                          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); }
#settings .close-button:hover { background: #a3a3a3; }
#settings .mc-button[aria-pressed='true'] { background: #c6c6c6;
  box-shadow: inset var(--mc-px) var(--mc-px) 0 0 var(--mc-panel-shadow), inset calc(-1 * var(--mc-px)) calc(-1 * var(--mc-px)) 0 0 #ffffff; }
#settings .mc-tabs { display: flex; flex-wrap: wrap; justify-content: center; gap: var(--mc-px); margin-bottom: calc(3 * var(--mc-px)); }
#settings .mc-option-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: calc(10 * var(--mc-px));
                            row-gap: calc(2 * var(--mc-px)); }
#settings .mc-option { display: grid; gap: var(--mc-px); align-content: start; }
#settings .mc-option > label { display: grid; gap: var(--mc-px); padding: calc(1.5 * var(--mc-px)) calc(3 * var(--mc-px)); background: #8b8b8b;
                               color: #202020;
                               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); }
#settings .mc-option b { font-weight: 400; color: #1a1a1a; }
#settings .mc-option small { line-height: 1.5; }
#settings .mc-option small, #settings .mc-note, #settings .mc-bind > span, #settings .mc-bind-group h4 { color: #d0d0d0; text-shadow: 1px 1px 0 #2a2a2a; }
/* The fill up to the value: web/settings.js writes --mc-slider on the .mc-option-slider row. */
#settings .mc-option input[type='range'] { -webkit-appearance: none; appearance: none; width: 100%; height: calc(3 * var(--mc-px)); margin: 0;
                                           border-radius: 0; background: linear-gradient(to right, #a0a0a0 0 var(--mc-slider, 0%), #373737 var(--mc-slider, 0%) 100%); }
#settings .mc-option input[type='range']::-webkit-slider-thumb { -webkit-appearance: none; width: calc(4 * var(--mc-px)); height: calc(6 * var(--mc-px));
  border-radius: 0; background: #c6c6c6;
  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); }
#settings .mc-option input[type='range']::-moz-range-thumb { width: calc(4 * var(--mc-px)); height: calc(6 * var(--mc-px)); border: 0; border-radius: 0;
  background: #c6c6c6; }
#settings .mc-binds { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: calc(10 * var(--mc-px)); row-gap: calc(3 * var(--mc-px));
                      margin-top: calc(3 * var(--mc-px)); }
#settings .mc-bind-group h4 { margin: 0 0 var(--mc-px); font-size: var(--mc-font-half); font-weight: 400; }
#settings .mc-bind { display: flex; align-items: center; justify-content: space-between; gap: calc(2 * var(--mc-px)); padding: calc(0.5 * var(--mc-px)) 0; }
#settings .mc-key { min-width: calc(22 * var(--mc-font-half)); text-align: center; }
/* Java shows a clashing binding in red and still lets you keep it. So does this. */
#settings .mc-bind.clashing .mc-key { color: #a02020; }
#settings .mc-key.listening { color: #f0f0f0; background: #5c5c5c; }
#settings .mc-note { margin: calc(2 * var(--mc-px)) 0 0; line-height: 1.5; }
#settings .mc-option-actions { display: flex; flex-wrap: wrap; justify-content: center; gap: var(--mc-px); margin-top: calc(3 * var(--mc-px)); }
@media (max-width: 720px) { #settings .mc-option-grid, #settings .mc-binds { grid-template-columns: minmax(0, 1fr); } }
/* client/hud.css "Item tooltip": the hover and focus panel (web/tooltips.js, client/tooltip.ts). */
.mc-tooltip { position: fixed; z-index: 200; max-width: min(330px, 70 * var(--vw)); padding: calc(1.6 * var(--mc-px)) calc(2.4 * var(--mc-px));
              display: grid; gap: calc(0.7 * var(--mc-px)); background: #100016f2; border: calc(0.8 * var(--mc-px)) solid #2b0f68;
              box-shadow: 0 0 0 1px #05000a; color: #cfcfcf; font-size: 12px; line-height: 1.45; pointer-events: none; text-shadow: 1px 1px #000; }
.mc-tooltip[hidden] { display: none; }
.mc-tooltip b { color: #fff; font-weight: 600; }
.mc-tooltip b.named { color: #62dcd9; font-style: italic; }
/* 1.13.2 raises an enchanted common item to EnumRarity.RARE, whose name is aqua (§b). */
.mc-tooltip b.enchanted { color: #55ffff; }
/* EnumRarity.UNCOMMON (§e): an enchanted book with a stored enchantment. */
.mc-tooltip b.uncommon { color: #ffff55; }
.mc-tooltip span { color: #a9a9c4; }
.mc-tooltip em { color: #ff8f84; font-style: normal; }
/* client/style.css .slot: the HUD hotbar's slots take the pointer (for the tooltip) whenever it is
   free; under pointer lock nothing hovers. The bar itself stays pointer-events: none (index.html). */
#hotbar > .slot { pointer-events: auto; }
/* client/hud.css .recovery-tray: the "Items to collect" tray (web/inventory.js drawTray), its filled slots in
   rows as wide as the bag, the note under its heading and Collect all at the heading's end. */
#inventory .recovery-tray { display: grid; gap: 4px; }
#inventory .recovery-tray .label { display: flex; justify-content: space-between; align-items: center; font-weight: 600; }
#inventory .recovery-note { max-width: calc(9 * 51px); margin: 0; font-size: 12px; line-height: 1.55; opacity: 0.8; }
#inventory .recovery-grid { display: flex; flex-wrap: wrap; gap: 3px; max-width: calc(9 * 51px); }
#inventory .recovery-tray .collect-all { font: inherit; font-weight: 400; color: inherit; background: rgb(0 0 0 / 40%); border: 1px solid rgb(255 255 255 / 25%); padding: 2px 8px; cursor: pointer; }
#inventory .recovery-tray .collect-all:disabled { opacity: 0.5; cursor: default; }

#inventory .anvil { display: grid; grid-template-columns: 2fr auto 1fr; gap: calc(8 * var(--mc-px)); align-items: center; }
#inventory .anvil label, #inventory .anvil-note { grid-column: 1 / -1; }
#inventory .anvil input { display: block; width: 100%; box-sizing: border-box; }
#inventory .anvil-inputs { display: flex; gap: calc(8 * var(--mc-px)); }
