/* The dock as tangibles.fun's side rail (owner 2026-10-21: "change the way we have these to these icons"): their
   .hud-dock and .hudbtn, from their player stylesheet. A column of 48 px icon buttons at the bottom left (rows 56 px,
   18 px up, 14 px in), each a cream line icon (34 px, 1.5 px lines, washes hidden) under their two drop shadows, the
   key on their cream badge at the bottom right; hover grows it 8 % and lightens it. Under 900 px wide or 560 px tall,
   their smaller rail (rows 50 px, 40 px buttons, 26 px icons). Loaded after hud.css, so these rules win. */
#mpHud .mp-dock {
  --cream-ink: #f3edd3; --paper-hi: #fbf7e6; --fast: .18s ease-out;
  position: absolute; left: 14px; bottom: 18px; right: auto; top: auto; translate: none; transform: none;
  display: grid; grid-auto-rows: 56px; place-items: center; width: 48px; gap: 0;
  transition: opacity .2s, filter .2s;
}
#mpHud:has(.mp-toast.is-on) .mp-dock, #mpHud.mp-tutorial .mp-dock { transform: none; }
#mpHud .mp-dock .mp-hudbtn {
  --transition: 0%;
  position: relative; display: grid; place-items: center; width: 48px; height: 48px; padding: 0; margin: 0;
  border: none; border-radius: 50%; background: none; box-shadow: none; font-size: 28px; line-height: 1;
  color: var(--cream-ink); filter: drop-shadow(0 1px 2px #0009) drop-shadow(0 0 6px #0000004d);
  transition: transform var(--fast);
}
#mpHud .mp-dock .mp-hudbtn:hover, #mpHud .mp-dock .mp-hudbtn:focus-visible { transform: scale(1.08); box-shadow: none; color: var(--cream-ink); outline: none; }
#mpHud .mp-dock .mp-hudbtn:active { transform: scale(1.08); }
#mpHud .mp-dock .mp-hudbtn:hover .ic, #mpHud .mp-dock .mp-hudbtn:focus-visible .ic { color: var(--paper-hi); }
#mpHud .mp-dock .mp-hudbtn .ic { display: block; width: 34px; height: 34px; stroke-width: 1.5px; fill: none; stroke: currentColor; }
#mpHud .mp-dock .mp-hudbtn .ic .w { fill-opacity: 0; }
#mpHud .mp-dock .mp-hudbtn .mp-dlabel { display: none; }
/* their kbd: a cream pill, navy letter */
#mpHud .mp-dock .mp-hudbtn kbd {
  position: absolute; bottom: -4px; right: -4px; box-sizing: border-box; display: inline-grid; place-items: center;
  min-width: 18px; width: auto; height: 18px; padding: 0 5px; border-radius: 9px; flex: none;
  background: #f5f1e1; color: #2b3f5c; border: 1px solid #2b3f5c59; box-shadow: 0 1px 2px #00000047;
  font: 700 11px/1 var(--fontFamily-default); letter-spacing: 0; text-transform: none; font-style: normal; white-space: nowrap; opacity: 1;
}
#mpHud .mp-dock .mp-hudbtn kbd::after { display: none; }
/* their .badge (accent yellow, charcoal ring, top left), carrying our count */
#mpHud .mp-dock .mp-hudbtn .mp-badge {
  position: absolute; left: 0; top: 0; min-width: 16px; height: 16px; padding: 0 4px; box-sizing: border-box; border-radius: 8px;
  background: #e6dc3a; color: #2a2a2e; box-shadow: 0 0 0 2px #2a2a2e; font: 700 10px/16px var(--fontFamily-default); text-align: center;
}
#mpHud .mp-dock .mp-hudbtn .mp-badge:empty { display: none; }
@media (height <= 560px), (width <= 900px) {
  #mpHud .mp-dock { grid-auto-rows: 50px; }
  #mpHud .mp-dock .mp-hudbtn { width: 40px; height: 40px; }
  #mpHud .mp-dock .mp-hudbtn .ic { width: 26px; height: 26px; }
}
/* the bag at the bottom middle (owner 2026-10-21: "put this bottom middle"); it steps aside while the game's own
   tutorial card (How to Move, Sprint, Jump) or the bottom message band holds that spot, as the ball bar does */
#mpHud .mp-bag { left: 50%; right: auto; bottom: 0; transform: translateX(-50%); transition: opacity .3s; }
#mpHud.mp-tutorial .mp-bag, #mpHud:has(.mp-toast.is-on) .mp-bag { opacity: 0; pointer-events: none; }

/* the side rail in the paper style (owner 2026-10-21: "same paper styling" as the ball bar): each button is a kraft
   paper disc with an ink rim, a dashed stitch and a flat ink drop, a touch off straight; the icon in ink; the key on a
   small cream paper tab with an ink edge; the count badge stays yellow with an ink ring */
#mpHud .mp-dock { grid-auto-rows: 60px; width: 52px; }
#mpHud .mp-dock .mp-hudbtn {
  width: 50px; height: 50px; background: var(--paper-img) center / 700% 700% no-repeat, #efe4c8; border: 2px solid #2b2620;
  box-shadow: 2px 3px 0 #2b26202e, 0 6px 14px #0000003d; filter: none; color: #2b2620;
}
#mpHud .mp-dock .mp-hudbtn::after { content: ''; position: absolute; inset: 3px; border: 1.5px dashed #2b262059; border-radius: 50%; pointer-events: none; }
#mpHud .mp-dock .mp-hudbtn:nth-child(odd) { rotate: -2deg; }
#mpHud .mp-dock .mp-hudbtn:nth-child(even) { rotate: 1.5deg; }
#mpHud .mp-dock .mp-hudbtn:hover, #mpHud .mp-dock .mp-hudbtn:focus-visible { transform: scale(1.08) rotate(-1deg); color: #2b2620; box-shadow: 3px 4px 0 #2b262038, 0 8px 18px #00000047; }
#mpHud .mp-dock .mp-hudbtn:hover .ic, #mpHud .mp-dock .mp-hudbtn:focus-visible .ic { color: #2b2620; }
#mpHud .mp-dock .mp-hudbtn .ic { width: 28px; height: 28px; stroke-width: 1.8px; }
#mpHud .mp-dock .mp-hudbtn kbd { background: #f6eedb; color: #2b2620; border: 1.5px solid #2b2620; border-radius: 3px; box-shadow: 1px 2px 0 #2b26202e; rotate: 4deg; bottom: -6px; right: -7px; }
@media (height <= 560px), (width <= 900px) {
  #mpHud .mp-dock { grid-auto-rows: 52px; width: 44px; }
  #mpHud .mp-dock .mp-hudbtn { width: 42px; height: 42px; }
  #mpHud .mp-dock .mp-hudbtn .ic { width: 22px; height: 22px; }
}
#mpHud .mp-dock .mp-hudbtn kbd::before, #mpHud .field-balls > .ballchip kbd::before { display: none; }
/* the compass in the paper style, top right (owner 2026-10-21: "change this to paper style and put top right"): a kraft
   paper disc like the side rail's (ink rim, dashed stitch, flat ink drop, a touch off straight) in the top-right corner;
   the needle in ink, north red, turning with the camera as before; north-up mode (N or a click) makes the stitch solid */
#mpHud .mp-compass {
  top: 14px; right: 14px; width: 50px; height: 50px; box-sizing: border-box; border-radius: 50%; overflow: visible;
  background: var(--paper-img) center / 700% 700% no-repeat, #efe4c8; border: 2px solid #2b2620;
  box-shadow: 2px 3px 0 #2b26202e, 0 6px 14px #0000003d; rotate: 2deg; cursor: pointer;
}
#mpHud .mp-compass::after { content: ''; position: absolute; inset: 3px; border: 1.5px dashed #2b262059; border-radius: 50%; pointer-events: none; }
#mpHud .mp-compass--north::after { border-style: solid; border-color: #2b262080; }
#mpHud .mp-compass:hover { transform: scale(1.08) rotate(-1deg); }
#mpHud .mp-compass svg { position: absolute; inset: 5px; width: calc(100% - 10px); height: calc(100% - 10px); }
#mpHud .mp-compass circle { fill: none; stroke: none; }
#mpHud .mp-compass--north circle { stroke: none; }
#mpHud .mp-compass-n { fill: #b0392b; stroke: #2b2620; stroke-width: 1.2; stroke-linejoin: round; }
#mpHud .mp-compass-s { fill: #2b2620; stroke: #2b2620; stroke-width: 1.2; stroke-linejoin: round; }
@media (max-width: 768px) { #mpHud .mp-compass { top: 50px; right: 8px; width: 42px; height: 42px; } }   /* (phones: just under the gems strip, which spans the top there) */
