/* Migs Space – Karten-Auswahl & „Meine Karten“ (game/maps.js), Präfix „mm-“ */
.mm-root { position: fixed; inset: 0; z-index: 62; display: flex; align-items: stretch; justify-content: center; pointer-events: auto;
  padding: 18px max(16px, var(--dgut, 16px)) max(16px, min(4vh, 36px));
  background: radial-gradient(110% 80% at 0% 0%, rgba(79, 227, 255, .16), transparent 55%), radial-gradient(110% 80% at 100% 100%, rgba(255, 79, 216, .16), transparent 55%), rgba(5, 4, 12, .96);
  color: #fff; font-family: Fredoka, system-ui, sans-serif; }
.mm-root * { box-sizing: border-box; }
.mm-hidden { display: none !important; }
.mm-shell { container-type: inline-size; width: 100%; display: flex; flex-direction: column; gap: 12px; min-height: 0; padding: 16px 18px; border-radius: 24px;
  border: 1px solid rgba(255, 255, 255, .1); background: rgba(18, 14, 38, .97); box-shadow: 0 24px 60px rgba(0, 0, 0, .45); }
.mm-head { display: flex; align-items: center; gap: 12px; }
.mm-logo { font-size: 32px; }
.mm-htext { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.mm-htext h2 { margin: 0; font-size: 24px; }
.mm-sub { font-size: 13px; color: #b9b3e6; }
.mm-btn { font: inherit; font-weight: 600; font-size: 14px; color: #fff; cursor: pointer; min-height: 38px; padding: 6px 14px; border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, .16); background: rgba(255, 255, 255, .07); transition: background .15s, border-color .15s, transform .1s; }
.mm-btn:hover { background: rgba(255, 255, 255, .14); border-color: rgba(79, 227, 255, .55); }
.mm-btn:active { transform: translateY(1px); }
.mm-btn:disabled { opacity: .5; cursor: default; }
.mm-btn.on { border-color: #5dff9e; background: rgba(93, 255, 158, .16); }
.mm-btn-go { border-color: rgba(255, 210, 63, .7); background: linear-gradient(135deg, #ffd23f, #ff9f1c); color: #2a1a00; }
.mm-btn-go:hover { background: linear-gradient(135deg, #ffe066, #ffb340); }
.mm-btn-del.confirm { background: rgba(255, 84, 112, .35); border-color: #ff5470; }
.mm-x { width: 40px; padding: 0; font-size: 18px; }
.mm-tabs { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; }
.mm-tab { display: flex; align-items: center; gap: 8px; min-height: 44px; padding: 6px 16px; border-radius: 14px; cursor: pointer; font: inherit; font-weight: 700; font-size: 15px;
  color: #d8d3ff; border: 1px solid rgba(255, 255, 255, .1); background: rgba(255, 255, 255, .04); }
.mm-tab:hover { color: #fff; border-color: rgba(79, 227, 255, .5); }
.mm-tab.on { color: #fff; border-color: #4fe3ff; background: linear-gradient(135deg, rgba(79, 227, 255, .25), rgba(255, 79, 216, .18)); box-shadow: 0 0 18px rgba(79, 227, 255, .25); }
.mm-tab-ico { font-size: 18px; }
.mm-tab-n { font-size: 12px; padding: 1px 8px; border-radius: 999px; background: rgba(255, 255, 255, .12); }
.mm-sort { display: flex; gap: 6px; margin-left: auto; }
.mm-chip { font: inherit; font-size: 13px; font-weight: 700; color: #d8d3ff; cursor: pointer; padding: 6px 12px; border-radius: 999px; border: 1px solid rgba(255, 255, 255, .14); background: transparent; }
.mm-chip.on { color: #fff; border-color: #ffd23f; background: rgba(255, 210, 63, .16); }
.mm-note { margin: 0; font-size: 13px; color: #ffd23f; }
.mm-note[hidden] { display: none; }
.mm-grid { flex: 1; min-height: 0; overflow-y: auto; display: grid; grid-template-columns: repeat(auto-fill, minmax(clamp(250px, 15cqw, 680px), 1fr)); gap: 12px; align-content: start; padding: 2px 4px 8px 2px; }
.mm-card { position: relative; display: flex; flex-direction: column; border-radius: 18px; overflow: hidden; cursor: pointer; text-align: left; font: inherit; color: #fff;
  border: 1px solid rgba(255, 255, 255, .1); background: rgba(255, 255, 255, .04); transition: transform .15s, border-color .2s, box-shadow .2s; }
.mm-card:hover, .mm-card:focus-visible { transform: translateY(-3px); border-color: rgba(79, 227, 255, .6); box-shadow: 0 10px 28px rgba(0, 0, 0, .35), 0 0 20px rgba(79, 227, 255, .2); outline: none; }
.mm-card.sel { border-color: #5dff9e; box-shadow: 0 0 0 1px #5dff9e, 0 0 24px rgba(93, 255, 158, .3); }
.mm-art { position: relative; aspect-ratio: 16 / 10; background: #120f2c; display: grid; place-items: center; }
.mm-thumb { width: 100%; height: 100%; display: block; }
.mm-art-ico { font-size: 64px; filter: drop-shadow(0 0 16px rgba(255, 210, 63, .5)); }
.mm-art-emo { position: absolute; left: 10px; bottom: 8px; font-size: 26px; filter: drop-shadow(0 2px 6px rgba(0, 0, 0, .6)); }
.mm-badge { position: absolute; left: 8px; top: 8px; font-size: 11px; font-weight: 700; padding: 2px 8px; border-radius: 999px; background: rgba(0, 0, 0, .55); color: #e3dfff; }
.mm-b-std, .mm-b-random { color: #ffd23f; }
.mm-b-community { color: #4fe3ff; }
.mm-b-mine.on { color: #5dff9e; }
.mm-selb { position: absolute; right: 50px; top: 8px; font-size: 11px; font-weight: 800; padding: 2px 8px; border-radius: 999px; background: #5dff9e; color: #062010; }
.mm-fav { position: absolute; right: 8px; top: 6px; width: 34px; height: 34px; border-radius: 50%; border: 1px solid rgba(255, 255, 255, .25); background: rgba(0, 0, 0, .55);
  color: #fff; font-size: 18px; cursor: pointer; line-height: 1; }
.mm-fav.on { color: #ffd23f; border-color: #ffd23f; box-shadow: 0 0 12px rgba(255, 210, 63, .5); }
.mm-body { display: flex; flex-direction: column; gap: 3px; padding: 10px 12px 4px; }
.mm-name { font-size: 16px; }
.mm-meta { font-size: 12.5px; color: #b9b3e6; line-height: 1.3; }
.mm-acts { display: flex; flex-wrap: wrap; gap: 6px; padding: 8px 12px 12px; margin-top: auto; }
.mm-acts .mm-btn { min-height: 34px; padding: 4px 10px; font-size: 13px; }
.mm-acts .mm-pick { flex: 1; }
.mm-new { align-items: center; justify-content: center; gap: 6px; min-height: 240px; border-style: dashed; border-color: rgba(255, 210, 63, .5); background: rgba(255, 210, 63, .05); text-align: center; padding: 16px; }
.mm-new-plus { font-size: 46px; color: #ffd23f; line-height: 1; }
.mm-new b { font-size: 17px; }
.mm-empty { grid-column: 1 / -1; margin: 18px 0; text-align: center; color: #b9b3e6; font-size: 14px; }
body.mm-open .toasts { z-index: 80; }
@media (max-width: 640px) { .mm-grid { grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); } .mm-head .mm-btn-go { display: none; } }
/* sehr breite Schirme (z. B. 5K): größere Schrift und Knöpfe */
@container (min-width: 2400px) {
  .mm-head h2 { font-size: 36px; } .mm-sub { font-size: 18px; } .mm-logo { font-size: 46px; }
  .mm-tab { min-height: 58px; font-size: 20px; padding: 8px 22px; } .mm-chip { font-size: 17px; padding: 8px 16px; }
  .mm-btn { font-size: 18px; min-height: 48px; }
  .mm-grid { gap: 20px; }
  .mm-name { font-size: 24px; } .mm-meta { font-size: 17px; } .mm-badge, .mm-selb { font-size: 15px; padding: 3px 12px; }
  .mm-fav { width: 46px; height: 46px; font-size: 24px; } .mm-art-emo { font-size: 38px; }
  .mm-acts .mm-btn { min-height: 46px; font-size: 18px; padding: 6px 14px; }
  .mm-new-plus { font-size: 70px; } .mm-new b { font-size: 24px; } .mm-note, .mm-empty { font-size: 18px; }
}
.mm-size-l { font-size: 13px; font-weight: 700; color: #b9b3e6; align-self: center; margin-right: 2px; }
