/* =====================================================================
   Migs Space – V36 Modus-Abstimmung (game/modevote.js, Präfix „mmv-“)
   Sitzt im Ende-Fenster (#ov-vote in #ui) → erbt den #ui-Zoom.
   4 Kacheln: ab 480 px Fensterbreite (Container) in einer Reihe, darunter 2 × 2. Kategorie-Farben: Standard Cyan, Spezial Gold, Community Pink.
   ===================================================================== */
.mmv { display: flex; flex-direction: column; gap: 10px; width: 100%; container-type: inline-size; font-family: var(--font, 'Fredoka', system-ui, sans-serif); color: var(--text, #f4f1ff); }
.mmv-h { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 4px 12px; }
.mmv-title { font-size: 17px; font-weight: 700; }
.mmv-sub { font-size: 13px; color: var(--muted, #a49fcf); }
.mmv-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
/* Spalten nach der Breite des Ende-Fensters (nicht des Bildschirms): ab 480 px eine Reihe, darunter 2 × 2 */
@container (min-width: 480px) { .mmv-grid.mmv-n4, .mmv-grid.mmv-n3 { grid-template-columns: repeat(var(--mmv-cols, 4), minmax(0, 1fr)); } .mmv-grid.mmv-n3 { --mmv-cols: 3; } }
.mmv-tile {
  --mmv-c: var(--cyan, #4fe3ff);
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  min-height: 150px;
  padding: 10px 10px 30px;
  border-radius: 16px;
  border: 2px solid color-mix(in srgb, var(--mmv-c) 45%, transparent);
  background: linear-gradient(180deg, color-mix(in srgb, var(--mmv-c) 20%, transparent), rgba(20, 16, 44, .82));
  color: inherit;
  font: inherit;
  text-align: center;
  cursor: pointer;
  overflow: hidden;
  transition: transform .14s ease, border-color .14s ease, box-shadow .14s ease, opacity .25s ease, filter .25s ease;
}
.mmv-tile.mmv-special { --mmv-c: var(--yellow, #ffd23f); }
.mmv-tile.mmv-community { --mmv-c: var(--pink, #ff4fd8); }
.mmv-tile:not(:disabled):hover, .mmv-tile:focus-visible { transform: translateY(-2px); border-color: var(--mmv-c); outline: none; }
.mmv-tile:disabled { cursor: default; }
.mmv-tile.mine { border-color: var(--mmv-c); box-shadow: 0 0 0 3px color-mix(in srgb, var(--mmv-c) 35%, transparent), 0 10px 26px color-mix(in srgb, var(--mmv-c) 30%, transparent); }
.mmv-tile.mine::after { content: '✓'; position: absolute; top: 8px; right: 10px; font-weight: 700; color: var(--mmv-c); }
.mmv-tile.lead .mmv-n { color: var(--mmv-c); }
.mmv-tile.win { border-color: var(--mmv-c); box-shadow: 0 0 0 3px var(--mmv-c), 0 14px 34px color-mix(in srgb, var(--mmv-c) 45%, transparent); transform: scale(1.03); }
.mmv-tile.lose { opacity: .45; filter: saturate(.5); transform: scale(.97); }
.mmv-cat { align-self: flex-start; font-size: 11px; letter-spacing: .06em; text-transform: uppercase; padding: 2px 8px; border-radius: 999px; background: color-mix(in srgb, var(--mmv-c) 22%, transparent); color: var(--mmv-c); font-weight: 600; }
.mmv-ico { font-size: 34px; line-height: 1.1; margin-top: 2px; }
.mmv-cat-i { font-size: 1.15em; letter-spacing: 0; }
.mmv-name { font-size: 16px; line-height: 1.2; font-weight: 700; max-width: 100%; overflow-wrap: anywhere; hyphens: auto; }
.mmv-desc { font-size: 12.5px; line-height: 1.3; color: var(--muted, #a49fcf); display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; max-width: 100%; overflow-wrap: anywhere; hyphens: auto; }
.mmv-by { font-size: 11.5px; color: var(--muted, #a49fcf); font-style: italic; max-width: 100%; overflow-wrap: anywhere; }
.mmv-vbar { position: absolute; left: 10px; right: 10px; bottom: 10px; height: 6px; border-radius: 6px; background: rgba(255, 255, 255, .08); overflow: hidden; }
.mmv-vbar i { display: block; height: 100%; width: 0; background: var(--mmv-c); transition: width .3s ease; }
.mmv-n { position: absolute; right: 12px; bottom: 17px; font-size: 11.5px; color: var(--muted, #a49fcf); }
.mmv-time { height: 4px; border-radius: 4px; background: rgba(255, 255, 255, .08); overflow: hidden; }
.mmv-time i { display: block; height: 100%; width: 100%; background: linear-gradient(90deg, var(--cyan, #4fe3ff), var(--pink, #ff4fd8)); transition: width .2s linear; }
.mmv-done .mmv-title { color: var(--green, #5dff9e); }
/* eine Reihe, aber schmales Fenster (z. B. 1920 × 1080): kompakter, Kategorie nur als Symbol */
@container (min-width: 480px) and (max-width: 759px) {
  .mmv-tile { padding: 8px 7px 28px; min-height: 140px; }
  .mmv-cat { padding: 2px 6px; }
  .mmv-cat-t { display: none; }
  .mmv-ico { font-size: 28px; }
  .mmv-name { font-size: 14px; }
  .mmv-desc { font-size: 11.5px; }
}
@media (max-width: 520px) {
  .mmv-tile { min-height: 124px; padding: 8px 8px 28px; }
  .mmv-ico { font-size: 28px; }
  .mmv-name { font-size: 14.5px; }
  .mmv-desc { -webkit-line-clamp: 2; font-size: 12px; }
  .mmv-title { font-size: 15.5px; }
}
@media (max-height: 560px) and (orientation: landscape) { .mmv-desc { display: none; } .mmv-tile { min-height: 96px; } }
@media (prefers-reduced-motion: reduce) { .mmv-tile, .mmv-vbar i, .mmv-time i { transition: none; } }
