/* The original Bone Bros headstone around Multimate's native character controls.
 * The engine still owns selection, spatial navigation, focus and modal lifetime. */
.mm-modal.mm-modal-loadout {
  flex-direction: row; align-items: flex-end; justify-content: center; padding: 0;
  background: transparent; backdrop-filter: none; -webkit-backdrop-filter: none;
}
.mm-modal .mm-modal-card:is(.mm-lo-card, .mm-modal-wide), .mm-staging .mm-staging-card {
  --stone-height: min(601px, calc(100vh - 26px));
  position: relative; flex: none; display: block; box-sizing: border-box;
  width: min(100vw, calc(var(--stone-height) * 1.59778)); height: var(--stone-height);
  max-width: none; max-height: none; padding: 0; margin: 0;
  border: 0; border-radius: 0; overflow: hidden;
  background: transparent url('./assets/ui/picker-tombstone.webp?v=304f7dcc') center bottom / auto 100% no-repeat;
  box-shadow: none; color: #eee5d1; font-family: Georgia, 'Times New Roman', serif;
}
:is(.mm-modal .mm-lo-card, .mm-modal .mm-modal-wide, .mm-staging .mm-staging-card) > .mm-modal-h {
  position: absolute; inset: 18% 10% auto; margin: 0; padding: 0; display: block;
  text-align: center; color: #edcf91; font: bold 29px / 1.15 Georgia, serif;
  letter-spacing: .09em; text-shadow: 0 2px 1px #05080c, 0 -1px #ffffff18;
}
.mm-modal.mm-modal-loadout .mm-note {
  position: absolute; inset: 25% 10% auto; padding: 0; margin: 0 !important;
  color: #c3cbd0; text-align: center; font: 12px / 1.4 system-ui, sans-serif;
}
.mm-modal.mm-modal-loadout .mm-lo, .mm-modal.mm-modal-loadout .mm-lo-main { display: contents; }
:is(.mm-modal .mm-lo-card, .mm-modal .mm-modal-wide, .mm-staging .mm-staging-card) :is(.mm-lo-grid, .mm-clstrip-track, .mm-classgrid) {
  position: absolute; left: 10.5%; right: 10.5%; top: 30%; height: 34%;
  display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); grid-auto-columns: minmax(0, .72fr);
  grid-template-rows: 16px minmax(0, 1fr) 16px minmax(0, 1fr); gap: 5px 9px;
  margin: 0; padding: 0; overflow: visible;
}
:is(.mm-modal .mm-lo-card, .mm-modal .mm-modal-wide, .mm-staging .mm-staging-card) :is(.mm-lo-grid, .mm-clstrip-track, .mm-classgrid)::before, :is(.mm-modal .mm-lo-card, .mm-modal .mm-modal-wide, .mm-staging .mm-staging-card) :is(.mm-lo-grid, .mm-clstrip-track, .mm-classgrid)::after {
  color: #b4c0c6; font: 11px / 16px Georgia, serif; letter-spacing: .19em;
  border-bottom: 1px solid #71839344; text-shadow: 0 1px #000;
}
:is(.mm-modal .mm-lo-card, .mm-modal .mm-modal-wide, .mm-staging .mm-staging-card) :is(.mm-lo-grid, .mm-clstrip-track, .mm-classgrid)::before { content: 'H E R O E S'; grid-column: 1 / 4; grid-row: 1; }
:is(.mm-modal .mm-lo-card, .mm-modal .mm-modal-wide, .mm-staging .mm-staging-card) :is(.mm-lo-grid, .mm-clstrip-track, .mm-classgrid)::after { content: 'S K E L E T O N S'; grid-column: 1 / 4; grid-row: 3; }
:is(.mm-modal .mm-lo-card, .mm-modal .mm-modal-wide, .mm-staging .mm-staging-card) .mm-classchip[data-cls] {
  position: relative; display: flex; flex-direction: row; align-items: center; gap: 6px;
  box-sizing: border-box; width: 100%; height: 100%; min-width: 0; min-height: 0;
  margin: 0; padding: 7px 9px; border: 0; border-radius: 0; aspect-ratio: auto;
  background: #101b25; color: #eee5d1; box-shadow: none; overflow: hidden;
  transition: background-color 120ms, box-shadow 120ms;
}
:is(.mm-modal .mm-lo-card, .mm-modal .mm-modal-wide, .mm-staging .mm-staging-card) .mm-classchip[data-cls]::before {
  content: ''; position: absolute; inset: 0; width: auto; height: auto; border: 10px solid transparent;
  transform: none; animation: none; background: none; box-shadow: none;
  border-image: url('./assets/ui/picker-tile.webp?v=221a3149') 48 fill / 10px;
  opacity: .8; pointer-events: none;
}
:is(.mm-modal .mm-lo-card, .mm-modal .mm-modal-wide, .mm-staging .mm-staging-card) .mm-classchip[data-cls][data-cls='mage'] { grid-column: 1; grid-row: 2; }
:is(.mm-modal .mm-lo-card, .mm-modal .mm-modal-wide, .mm-staging .mm-staging-card) .mm-classchip[data-cls][data-cls='rogue'] { grid-column: 2; grid-row: 2; }
:is(.mm-modal .mm-lo-card, .mm-modal .mm-modal-wide, .mm-staging .mm-staging-card) .mm-classchip[data-cls][data-cls='knight'] { grid-column: 3; grid-row: 2; }
:is(.mm-modal .mm-lo-card, .mm-modal .mm-modal-wide, .mm-staging .mm-staging-card) .mm-classchip[data-cls][data-cls='skeleton-mage'] { grid-column: 1; grid-row: 4; }
:is(.mm-modal .mm-lo-card, .mm-modal .mm-modal-wide, .mm-staging .mm-staging-card) .mm-classchip[data-cls][data-cls='skeleton-minion'] { grid-column: 2; grid-row: 4; }
:is(.mm-modal .mm-lo-card, .mm-modal .mm-modal-wide, .mm-staging .mm-staging-card) .mm-classchip[data-cls][data-cls='skeleton-warrior'] { grid-column: 3; grid-row: 4; }
:is(.mm-modal .mm-lo-card, .mm-modal .mm-modal-wide, .mm-staging .mm-staging-card) .mm-classchip[data-cls][data-cls='barbarian'] {
  grid-column: 4; grid-row: 2 / 5; flex-direction: column; justify-content: center; gap: 8px;
}
:is(.mm-modal .mm-lo-card, .mm-modal .mm-modal-wide, .mm-staging .mm-staging-card) .mm-classchip[data-cls]:hover { background-color: #29313a; }
:is(.mm-modal .mm-lo-card, .mm-modal .mm-modal-wide, .mm-staging .mm-staging-card) .mm-classchip[data-cls].on { background: #3b3021; box-shadow: inset 0 0 0 2px #d5ae66; }
:is(.mm-modal .mm-lo-card, .mm-modal .mm-modal-wide, .mm-staging .mm-staging-card) .mm-classchip[data-cls].on::before { opacity: .48; }
:is(.mm-modal .mm-lo-card, .mm-modal .mm-modal-wide, .mm-staging .mm-staging-card) .mm-classchip[data-cls]:focus-visible, :is(.mm-modal .mm-lo-card, .mm-modal .mm-modal-wide, .mm-staging .mm-staging-card) .mm-classchip[data-cls].mm-navon {
  outline: 2px solid #f4d392; outline-offset: 2px; box-shadow: inset 0 0 0 2px #d5ae6688;
}
:is(.mm-modal .mm-lo-card, .mm-modal .mm-modal-wide, .mm-staging .mm-staging-card) .mm-classchip[data-cls] .mm-avatar {
  position: relative; flex: 0 0 48%; width: 48%; height: 100%; min-width: 0;
  padding: 0; border: 0; border-radius: 44% 44% 4px 4px; overflow: hidden;
  box-shadow: inset 0 0 12px #060c12;
}
:is(.mm-modal .mm-lo-card, .mm-modal .mm-modal-wide, .mm-staging .mm-staging-card) .mm-classchip[data-cls] .mm-avimg {
  position: static; display: block; inset: auto; width: 100%; height: 100%;
  max-width: 100%; max-height: 100%; object-fit: contain; object-position: center bottom;
  transform: none !important; scale: 1; border-radius: 0;
}
:is(.mm-modal .mm-lo-card, .mm-modal .mm-modal-wide, .mm-staging .mm-staging-card) .mm-classchip[data-cls] .mm-avatar canvas { display: none; }
:is(.mm-modal .mm-lo-card, .mm-modal .mm-modal-wide, .mm-staging .mm-staging-card) .mm-classchip[data-cls] .mm-clslabel {
  position: relative; display: block; inset: auto; flex: 1; width: auto; max-width: none;
  margin: 0; padding: 0; transform: none; border: 0; border-radius: 0;
  background: transparent; color: #eee5d1; font: bold 17px / 1.15 Georgia, serif;
  text-align: left; white-space: normal; overflow: visible; text-overflow: clip;
  text-shadow: 0 2px 2px #000;
}
:is(.mm-modal .mm-lo-card, .mm-modal .mm-modal-wide, .mm-staging .mm-staging-card) .mm-classchip[data-cls].on .mm-clslabel { color: #ffdfa0; }
:is(.mm-modal .mm-lo-card, .mm-modal .mm-modal-wide, .mm-staging .mm-staging-card) .mm-classchip[data-cls][data-cls='barbarian'] .mm-avatar { flex: none; width: 96%; height: 68%; }
:is(.mm-modal .mm-lo-card, .mm-modal .mm-modal-wide, .mm-staging .mm-staging-card) .mm-classchip[data-cls][data-cls='barbarian'] .mm-clslabel { flex: none; text-align: center; font-size: 16px; }
.mm-modal.mm-modal-loadout .mm-lo-cmp {
  position: absolute; left: 11%; right: 11%; top: 66%; height: 8.1%; width: auto;
  min-width: 0; max-width: none; flex: none; display: block; padding: 0; margin: 0;
  border: 1px solid #68768066; border-radius: 3px; background: #080f188c;
  box-shadow: inset 0 1px 5px #0007; color: #cbd2d4; overflow: auto;
}
.mm-modal.mm-modal-loadout .mm-lo-blk {
  display: grid; grid-template-columns: auto 1fr; grid-template-rows: auto auto;
  gap: 3px 14px; padding: 6px 12px; border: 0; background: transparent;
}
.mm-modal.mm-modal-loadout .mm-lo-blkh {
  grid-column: 1; grid-row: 1; color: #edcf91; font: bold 14px / 1.2 Georgia, serif;
  text-transform: none; letter-spacing: .03em; margin: 0;
}
.mm-modal.mm-modal-loadout .mm-lo-stats {
  grid-column: 1; grid-row: 2; display: flex; flex-direction: row; gap: 12px; padding: 0; margin: 0;
  color: #b7c2cb; font: 11px / 1.25 system-ui, sans-serif; list-style: none;
}
.mm-modal.mm-modal-loadout .mm-lo-pro {
  grid-column: 2; grid-row: 1 / 3; align-self: center; margin: 0;
  color: #d2d8d8; font: 12px / 1.35 Georgia, serif;
}
.mm-modal.mm-modal-loadout .mm-lo-pro .mmi { display: none; }
.mm-modal.mm-modal-loadout .mm-lo-actions {
  position: absolute; left: 13%; right: 13%; top: 76%; height: 46px;
  display: grid; grid-template-columns: 1fr 1.6fr; gap: 12px; margin: 0; padding: 0;
}
.mm-modal.mm-modal-loadout .mm-lo-actions .mm-btn {
  width: 100%; min-width: 0; min-height: 46px; margin: 0; padding: 8px 16px;
  border: 1px solid #ad8b50; border-radius: 3px;
  background: linear-gradient(#363126, #1a1d20); color: #f5d894;
  box-shadow: inset 0 0 0 3px #0e141b, 0 2px 3px #0009;
  font: bold 17px / 1.2 Georgia, serif; letter-spacing: .04em;
  text-shadow: 0 2px 2px #000; transition: border-color 120ms, background 120ms;
}
.mm-modal.mm-modal-loadout .mm-lo-actions .mm-btn:hover { background: #36352c; border-color: #f4d392; }
.mm-modal.mm-modal-loadout .mm-lo-actions .mm-ghost { border-color: #65747e; background: #101820cc; color: #c8ced0; font-size: 14px; }
.mm-modal.mm-modal-loadout .mm-lo-actions .mm-btn:focus-visible, .mm-modal.mm-modal-loadout .mm-lo-actions .mm-navon {
  outline: 2px solid #f4d392; outline-offset: 3px;
}
.mm-modal.mm-modal-loadout .mm-lo-slot {
  position: absolute; left: 13%; right: 13%; top: 85%; height: 44px;
  display: block; padding: 0; margin: 0; color: #b4b8b8;
}
.bb-engine-picker-footer { font: 11px / 1.3 Georgia, serif; text-align: center; }
.bb-engine-picker-footer p { margin: 0 0 5px; color: #d3c4a5; }
.bb-engine-picker-ad {
  position: static; display: flex; justify-content: center; width: 100%; height: 20px;
  margin: 0; padding: 0; gap: 8px; transform: none; border: 0; border-radius: 0;
  background: transparent; box-shadow: none; color: #aeb5ba;
}
.bb-engine-picker-ad .bb-break-ad-mark, .bb-engine-picker-ad i { display: none; }
.bb-engine-picker-ad b, .bb-engine-picker-ad strong { display: inline; font: 10px / 1.2 Georgia, serif; letter-spacing: .08em; }
.bb-engine-picker-ad b::after { content: ' · '; }
.bb-engine-picker-ad small { margin: 0; align-self: center; color: #919aa2; font: 8px / 1 system-ui, sans-serif; letter-spacing: .06em; }
@media (max-width: 760px) {
  .mm-modal .mm-modal-card:is(.mm-lo-card, .mm-modal-wide), .mm-staging .mm-staging-card { width: 100vw; --stone-height: min(670px, calc(100vh - 16px)); }
  :is(.mm-modal .mm-lo-card, .mm-modal .mm-modal-wide, .mm-staging .mm-staging-card) > .mm-modal-h { left: 3%; right: 3%; top: 18%; font-size: 24px; letter-spacing: .035em; }
  .mm-modal.mm-modal-loadout .mm-note { left: 6%; right: 6%; top: 24%; font-size: 11px; }
  :is(.mm-modal .mm-lo-card, .mm-modal .mm-modal-wide, .mm-staging .mm-staging-card) :is(.mm-lo-grid, .mm-clstrip-track, .mm-classgrid) {
    left: 5%; right: 5%; top: 28.5%; height: 34.5%; grid-template-columns: repeat(2, minmax(0, 1fr)); grid-auto-columns: minmax(0, 1fr);
    grid-template-rows: repeat(3, minmax(0, 1fr)); gap: 6px;
  }
  :is(.mm-modal .mm-lo-card, .mm-modal .mm-modal-wide, .mm-staging .mm-staging-card) :is(.mm-lo-grid, .mm-clstrip-track, .mm-classgrid)::before, :is(.mm-modal .mm-lo-card, .mm-modal .mm-modal-wide, .mm-staging .mm-staging-card) :is(.mm-lo-grid, .mm-clstrip-track, .mm-classgrid)::after { display: none; }
  :is(.mm-modal .mm-lo-card, .mm-modal .mm-modal-wide, .mm-staging .mm-staging-card) .mm-classchip[data-cls] { gap: 3px; padding: 6px; }
  :is(.mm-modal .mm-lo-card, .mm-modal .mm-modal-wide, .mm-staging .mm-staging-card) .mm-classchip[data-cls] .mm-clslabel { font-size: 13px; }
  :is(.mm-modal .mm-lo-card, .mm-modal .mm-modal-wide, .mm-staging .mm-staging-card) .mm-classchip[data-cls][data-cls='mage'] { grid-column: 1; grid-row: 1; }
  :is(.mm-modal .mm-lo-card, .mm-modal .mm-modal-wide, .mm-staging .mm-staging-card) .mm-classchip[data-cls][data-cls='rogue'] { grid-column: 2; grid-row: 1; }
  :is(.mm-modal .mm-lo-card, .mm-modal .mm-modal-wide, .mm-staging .mm-staging-card) .mm-classchip[data-cls][data-cls='knight'] { grid-column: 1; grid-row: 2; }
  :is(.mm-modal .mm-lo-card, .mm-modal .mm-modal-wide, .mm-staging .mm-staging-card) .mm-classchip[data-cls][data-cls='barbarian'] { grid-column: 3; grid-row: 1 / 4; }
  :is(.mm-modal .mm-lo-card, .mm-modal .mm-modal-wide, .mm-staging .mm-staging-card) .mm-classchip[data-cls][data-cls='skeleton-mage'] { grid-column: 2; grid-row: 2; }
  :is(.mm-modal .mm-lo-card, .mm-modal .mm-modal-wide, .mm-staging .mm-staging-card) .mm-classchip[data-cls][data-cls='skeleton-minion'] { grid-column: 1; grid-row: 3; }
  :is(.mm-modal .mm-lo-card, .mm-modal .mm-modal-wide, .mm-staging .mm-staging-card) .mm-classchip[data-cls][data-cls='skeleton-warrior'] { grid-column: 2; grid-row: 3; }
  :is(.mm-modal .mm-lo-card, .mm-modal .mm-modal-wide, .mm-staging .mm-staging-card) .mm-classchip[data-cls][data-cls='barbarian'] .mm-clslabel { font-size: 14px; }
  .mm-modal.mm-modal-loadout .mm-lo-cmp { left: 6%; right: 6%; top: 65%; height: 10%; }
  .mm-modal.mm-modal-loadout .mm-lo-blk { column-gap: 10px; padding: 7px 8px; }
  .mm-modal.mm-modal-loadout .mm-lo-blkh { font-size: 13px; }
  .mm-modal.mm-modal-loadout .mm-lo-stats { font-size: 10px; gap: 8px; }
  .mm-modal.mm-modal-loadout .mm-lo-pro { font-size: 11px; }
  .mm-modal.mm-modal-loadout .mm-lo-actions { left: 7%; right: 7%; top: 77%; grid-template-columns: 1fr 1.3fr; gap: 8px; }
  .mm-modal.mm-modal-loadout .mm-lo-actions .mm-btn { font-size: 15px; padding: 8px; }
  .mm-modal.mm-modal-loadout .mm-lo-actions .mm-ghost { font-size: 12px; }
  .mm-modal.mm-modal-loadout .mm-lo-slot { left: 5%; right: 5%; top: 86%; }
}
@media (max-width: 450px) {
  :is(.mm-modal .mm-lo-card, .mm-modal .mm-modal-wide, .mm-staging .mm-staging-card) .mm-classchip[data-cls]:not([data-cls='barbarian']) { flex-direction: column; gap: 0; padding: 4px; }
  :is(.mm-modal .mm-lo-card, .mm-modal .mm-modal-wide, .mm-staging .mm-staging-card) .mm-classchip[data-cls]:not([data-cls='barbarian']) .mm-avatar { flex: 1; height: 0; width: 100%; }
  :is(.mm-modal .mm-lo-card, .mm-modal .mm-modal-wide, .mm-staging .mm-staging-card) .mm-classchip[data-cls] .mm-clslabel { flex: none; font-size: 12px; text-align: center; }
  :is(.mm-modal .mm-lo-card, .mm-modal .mm-modal-wide, .mm-staging .mm-staging-card) .mm-classchip[data-cls] .mm-avimg { transform: scale(1.15) !important; }
}
@media (max-height: 540px) and (min-width: 761px) {
  :is(.mm-modal .mm-lo-card, .mm-modal .mm-modal-wide, .mm-staging .mm-staging-card) > .mm-modal-h { font-size: 24px; }
  .mm-modal.mm-modal-loadout .mm-note { font-size: 10px; }
  :is(.mm-modal .mm-lo-card, .mm-modal .mm-modal-wide, .mm-staging .mm-staging-card) .mm-classchip[data-cls] .mm-clslabel { font-size: 14px; }
  .mm-modal.mm-modal-loadout .mm-lo-actions { top: 75%; }
  .mm-modal.mm-modal-loadout .mm-lo-slot { top: 87%; }
}
@media (prefers-reduced-motion: reduce) {
  :is(.mm-modal .mm-lo-card, .mm-modal .mm-modal-wide, .mm-staging .mm-staging-card) .mm-classchip[data-cls], .mm-modal.mm-modal-loadout .mm-lo-actions .mm-btn { transition: none; }
}

:is(.mm-modal .mm-lo-card, .mm-modal .mm-modal-wide, .mm-staging .mm-staging-card) .mm-classchip[data-cls]::after { display: none; }

/* Lobby identity and host bot editor: the same seven choices on the stone.
 * Keep the engine's form, selection, validation and commit/cancel handlers.
 * Grid layout needs no carousel arrows or scroll translation. No :has() or
 * container units: school Chromebooks on Chrome 103 retain the whole layout. */
.mm-modal .mm-modal-card.mm-modal-wide {
  --stone-height: min(601px, calc(100vh - 40px));
}
.mm-modal .mm-modal-wide > .mm-modal-h::before,
.mm-modal .mm-modal-wide::before, .mm-modal .mm-modal-wide::after { display: none; }
.mm-modal .mm-modal-wide > .mm-modal-h { text-transform: uppercase; }
.mm-modal .mm-modal-wide .mm-clstrip,
.mm-modal .mm-modal-wide .mm-clstrip-view {
  position: static; display: contents; overflow: visible;
}
.mm-modal .mm-modal-wide .mm-clstrip-arrow { display: none; }
.mm-modal .mm-modal-wide .mm-clstrip-track {
  top: 27%; height: 30%; width: auto; transform: none !important;
}
.mm-modal .mm-modal-wide .mm-id-form {
  position: absolute; top: 60%; left: 11%; right: 11%; margin: 0;
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 18px;
}
.mm-modal .mm-modal-wide .mm-id-form > div { min-width: 0; }
.mm-modal .mm-modal-wide .mm-sgroup-h {
  margin: 0 0 5px; color: #c5cbd0; font: 12px / 1.2 Georgia, serif;
  letter-spacing: .06em;
}
.mm-modal .mm-modal-wide #mm-id-name {
  box-sizing: border-box; width: 100%; min-width: 0; height: 40px; padding: 7px 10px;
  background: #0e1721cc; border: 1px solid #788692; border-radius: 3px;
  color: #eee5d1; font: 16px / 1.2 Georgia, serif; box-shadow: inset 0 2px 5px #0008;
}
.mm-modal .mm-modal-wide #mm-id-name:focus-visible {
  outline: 2px solid #f4d392; outline-offset: 2px;
}
.mm-modal .mm-modal-wide #mm-id-colors { display: flex; flex-wrap: wrap; gap: 7px; margin: 0; }
.mm-modal .mm-modal-wide .mm-swatch {
  flex: none; width: 30px; height: 30px; border-radius: 5px;
  border: 2px solid #14202b; box-shadow: inset 0 0 0 2px #ffffff22, 0 2px 3px #0008;
}
.mm-modal .mm-modal-wide .mm-swatch.on,
.mm-modal .mm-modal-wide .mm-swatch:focus-visible { outline: 2px solid #f4d392; outline-offset: 2px; }
.mm-modal .mm-modal-wide #mm-id-name + .mm-sgroup-h { margin-top: 8px; }
.mm-modal .mm-modal-wide .mm-diffrow { display: flex; gap: 4px; margin: 0; }
.mm-modal .mm-modal-wide .mm-diffchip {
  flex: 1; min-width: 0; min-height: 30px; padding: 4px; border-radius: 3px;
  background: #111c27; color: #cbd2d4; font: 12px / 1.2 Georgia, serif;
}
.mm-modal .mm-modal-wide .mm-diffchip.on { border-color: #d5ae66; color: #ffdfa0; background: #3b3021; }
.mm-modal .mm-modal-wide .mm-diffchip .mmi { display: none; }
.mm-modal .mm-modal-wide .mm-confirm-row {
  position: absolute; top: 82%; left: 11%; right: 11%; display: flex; gap: 12px; margin: 0;
}
.mm-modal .mm-modal-wide .mm-confirm-row .mm-btn {
  flex: 1; min-width: 0; min-height: 46px; margin: 0; padding: 8px 12px;
  border: 1px solid #ad8b50; border-radius: 3px;
  background: linear-gradient(#363126, #1a1d20); color: #f5d894;
  box-shadow: inset 0 0 0 3px #0e141b, 0 2px 3px #0009;
  font: bold 17px / 1.2 Georgia, serif; letter-spacing: .04em; text-shadow: 0 2px 2px #000;
}
.mm-modal .mm-modal-wide .mm-confirm-row .mm-btn:hover { background: #36352c; border-color: #f4d392; }
.mm-modal .mm-modal-wide .mm-confirm-row .mm-ghost { border-color: #65747e; background: #101820cc; color: #c8ced0; }
.mm-modal .mm-modal-wide .mm-confirm-row .mm-danger { border-color: #996a60; background: #271a1ccc; color: #e0a296; }
.mm-modal .mm-modal-wide .mm-confirm-row .mm-btn:focus-visible { outline: 2px solid #f4d392; outline-offset: 3px; }
@media (max-width: 760px) {
  .mm-modal .mm-modal-card.mm-modal-wide { width: calc(100vw - 32px); --stone-height: min(670px, calc(100vh - 32px)); }
  .mm-modal .mm-modal-wide .mm-clstrip-track { top: 27%; height: 30%; }
  .mm-modal .mm-modal-wide .mm-id-form { top: 60%; left: 6%; right: 6%; gap: 10px; }
  .mm-modal .mm-modal-wide #mm-id-colors { gap: 6px; }
  .mm-modal .mm-modal-wide .mm-swatch { width: 28px; height: 28px; }
  .mm-modal .mm-modal-wide .mm-confirm-row { top: 83%; left: 6%; right: 6%; gap: 6px; }
  .mm-modal .mm-modal-wide .mm-confirm-row .mm-btn { font-size: 14px; padding: 8px 5px; letter-spacing: 0; }
}
@media (max-height: 540px) {
  .mm-modal .mm-modal-card.mm-modal-wide { --stone-height: 500px; max-height: calc(100vh - 32px); overflow-y: auto; }
  .mm-modal .mm-modal-wide .mm-clstrip-track { top: 130px; height: 145px; }
  .mm-modal .mm-modal-wide .mm-id-form { top: 290px; }
  .mm-modal .mm-modal-wide .mm-confirm-row { top: 420px; padding-bottom: 28px; }
  .mm-modal .mm-modal-wide > .mm-modal-h { top: 85px; font-size: 23px; }
  .mm-modal .mm-modal-card.mm-modal-wide { background-size: auto 500px; background-position: center top; background-attachment: local; }
}

/* Quick Play's native World join card is a third entry surface. Keep its
 * identity, join/watch actions and engine team assignment; share the stone. */
.mm-staging .mm-staging-card {
  --stone-height: min(601px, calc(100vh - 24px));
}
.mm-staging-card > .mm-logo,
.mm-staging-card > .mm-staging-sub:not(#mm-stage-live) { display: none; }
.mm-staging-card > .mm-float + .mm-staging-label {
  position: absolute; top: 18%; left: 8%; right: 8%; margin: 0;
  color: #edcf91; font: bold 27px / 1.2 Georgia, serif; text-transform: uppercase;
  letter-spacing: .06em; text-shadow: 0 2px 1px #05080c; text-align: center;
}
.mm-staging-card > #mm-stage-live {
  position: absolute; top: 24%; left: 8%; right: 8%; margin: 0;
  color: #c3cbd0; font: 12px / 1.4 system-ui, sans-serif; text-align: center;
}
.mm-staging .mm-staging-card .mm-classgrid { top: 29%; height: 33%; }
.mm-staging-card > .mm-float {
  position: absolute; top: 67%; left: 25%; right: 25%; margin: 0;
}
.mm-staging-card #mm-stage-name {
  box-sizing: border-box; width: 100%; min-width: 0; height: 46px;
  border: 1px solid #788692; border-radius: 3px; background: #0e1721ee;
  color: #eee5d1; font: 16px / 1.2 Georgia, serif;
}
.mm-staging-card > .mm-classgrid + .mm-staging-label {
  position: absolute; top: 63.5%; left: 50%; margin: 0;
  color: #c5cbd0; font: 12px / 1.2 Georgia, serif;
}
.mm-staging-card > .mm-colorrow {
  position: absolute; top: 67%; left: 50%; right: 11%; margin: 0;
  display: flex; flex-wrap: wrap; gap: 7px;
}
.mm-staging-card .mm-swatch {
  flex: none; width: 30px; height: 30px; border-radius: 5px;
  border: 2px solid #14202b; box-shadow: inset 0 0 0 2px #ffffff22, 0 2px 3px #0008;
}
.mm-staging-card .mm-swatch.on,
.mm-staging-card .mm-swatch:focus-visible,
.mm-staging-card #mm-stage-name:focus-visible { outline: 2px solid #f4d392; outline-offset: 2px; }
.mm-staging-card > .mm-btn {
  position: absolute; top: 82%; width: 36%; min-height: 46px; margin: 0 !important;
  padding: 8px 12px; border: 1px solid #ad8b50; border-radius: 3px;
  background: linear-gradient(#363126, #1a1d20); color: #f5d894;
  box-shadow: inset 0 0 0 3px #0e141b, 0 2px 3px #0009;
  font: bold 17px / 1.2 Georgia, serif; letter-spacing: .04em; text-shadow: 0 2px 2px #000;
}
.mm-staging-card > #mm-stage-join { left: 53%; }
.mm-staging-card > #mm-stage-watch { left: 11%; border-color: #65747e; background: #101820cc; color: #c8ced0; }
.mm-staging-card > .mm-btn:hover { background: #36352c; border-color: #f4d392; }
.mm-staging-card > .mm-btn:focus-visible { outline: 2px solid #f4d392; outline-offset: 3px; }
.mm-staging-card > .mm-staging-err {
  position: absolute; top: 91%; left: 11%; right: 11%; margin: 0;
  font: 12px / 1.3 system-ui, sans-serif;
}
@media (max-width: 760px) {
  .mm-staging .mm-staging-card { width: calc(100vw - 24px); --stone-height: min(670px, calc(100vh - 24px)); }
  .mm-staging-card > .mm-float + .mm-staging-label { left: 4%; right: 4%; font-size: 22px; letter-spacing: .025em; }
  .mm-staging-card > .mm-float { left: 17%; right: 17%; }
  .mm-staging-card > .mm-colorrow { right: 6%; gap: 5px; }
  .mm-staging-card .mm-swatch { width: 28px; height: 28px; }
  .mm-staging-card > .mm-btn { width: 41%; }
  .mm-staging-card > #mm-stage-watch { left: 6%; }
}
@media (max-height: 540px) {
  .mm-staging .mm-staging-card {
    --stone-height: 500px; max-height: calc(100vh - 24px); overflow-y: auto;
    background-size: auto 500px; background-position: center top; background-attachment: local;
  }
  .mm-staging-card > .mm-float + .mm-staging-label { top: 85px; font-size: 23px; }
  .mm-staging-card > #mm-stage-live { top: 116px; }
  .mm-staging .mm-staging-card .mm-classgrid { top: 144px; height: 150px; }
  .mm-staging-card > .mm-float, .mm-staging-card > .mm-colorrow { top: 320px; }
  .mm-staging-card > .mm-classgrid + .mm-staging-label { top: 302px; }
  .mm-staging-card > .mm-btn { top: 410px; }
  .mm-staging-card > .mm-staging-err { top: 460px; padding-bottom: 24px; }
}
