/* =====================================================================
   Migs Space – „Migs Air“ (Etappe 1 + 2): HUD, Steuerung, Hangar (Kampagne, Chaos, Schalter), Rückblick (game/migsair-play.js)
   Alle Klassen mit Präfix ma-. Schriftgröße über --fs (JS: 1,25 % von min(Breite, 1,35·Höhe), 12–40 px).
   Glow-/Weltraum-Stil wie das übrige Migs Space · kein Spielknopf unter 52 px · touch-action:none.
   ===================================================================== */
.ma-root { position: relative; overflow: hidden; }
.ma-stage { position: absolute; inset: 0; overflow: hidden; background: #070818; color: #fff; outline: none;
  font-family: 'Fredoka', system-ui, sans-serif; font-size: var(--fs, 14px); line-height: 1.25;
  -webkit-user-select: none; user-select: none; -webkit-touch-callout: none; -webkit-tap-highlight-color: transparent; touch-action: none; }
.ma-stage [hidden] { display: none !important; }
.ma-cv { position: absolute; left: 0; top: 0; width: 100%; height: 100%; display: block; }
.ma-hud { position: absolute; inset: 0; pointer-events: none; }
.ma-hud button { pointer-events: auto; }

/* ---------- Oberleiste: Menü · Flugfortschritt · Tank · Sterne ---------- */
.ma-top { position: absolute; left: 0; right: 0; top: 0; display: flex; align-items: center; gap: .8em; padding: .6em .9em; }
.ma-menubtn { flex: 0 0 auto; width: 2.6em; height: 2.6em; min-width: 40px; min-height: 40px; border-radius: 50%; border: 1px solid rgba(130,150,255,.55);
  background: rgba(16,18,48,.8); color: #fff; font: inherit; font-size: 1.05em; cursor: pointer; }
.ma-prog { flex: 1 1 auto; max-width: 36em; margin: 0 auto; min-width: 0; padding: .35em .8em .5em; border-radius: 1em; background: rgba(10,12,40,.72);
  border: 1px solid rgba(130,150,255,.35); }
.ma-prog-l { font-weight: 600; font-size: .95em; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; text-align: center; }
.ma-prog-bar { position: relative; height: .5em; margin-top: .3em; border-radius: .25em; background: rgba(255,255,255,.12); }
.ma-prog-bar i { position: absolute; left: 0; top: 0; bottom: 0; width: 0; border-radius: .25em; background: linear-gradient(90deg, #7dfcff, #b48cff); transition: width .4s; }
.ma-prog-bar b { position: absolute; top: 50%; left: 0; transform: translate(-50%, -55%); font-size: 1em; transition: left .4s; text-shadow: 0 0 6px #7dfcff; }
.ma-fuel { flex: 0 0 auto; display: flex; align-items: center; gap: .35em; padding: .45em .7em; border-radius: 1em; background: rgba(10,12,40,.72); border: 1px solid rgba(255,210,63,.4); }
.ma-fuel .ico { font-size: 1.1em; }
.ma-fuel-bar { position: relative; width: 4.6em; height: .65em; border-radius: .33em; background: rgba(255,255,255,.12); overflow: hidden; }
.ma-fuel-bar i { position: absolute; left: 0; top: 0; bottom: 0; width: 50%; background: linear-gradient(90deg, #ffb347, #ffd23f); transition: width .5s; }
.ma-fuel.low { border-color: #ff5a6e; animation: ma-blink 1s steps(2, start) infinite; }
.ma-fuel.low .ma-fuel-bar i { background: #ff5a6e; }
.ma-fuel.out { background: rgba(120,0,30,.75); }
.ma-stars { flex: 0 0 auto; padding: .35em .7em; border-radius: 1em; background: rgba(10,12,40,.72); border: 1px solid rgba(255,210,63,.4); color: #ffd23f;
  font-size: 1.15em; letter-spacing: .05em; text-shadow: 0 0 8px rgba(255,210,63,.6); }
/* Vorrat (Etappe 2): 💧 Wasserspender · 🍔 Burger-Automat · 🧳 verlorene Koffer – gleiche Zahlen wie auf den Geräten */
.ma-stock { flex: 0 0 auto; display: flex; align-items: center; gap: .55em; padding: .4em .7em; border-radius: 1em; background: rgba(10,12,40,.72); border: 1px solid rgba(127,200,255,.45);
  font-weight: 600; white-space: nowrap; }
.ma-stock span { display: inline-flex; align-items: baseline; gap: .12em; }
.ma-stock b { font-size: 1.1em; }
.ma-stock i { font-style: normal; font-size: .8em; opacity: .65; }
.ma-stock .low b { color: #ffd23f; }
.ma-stock .zero { color: #ff8a9a; animation: ma-blink 1s steps(2, start) infinite; }
.ma-stock .zero b { color: #ff5a6e; }
.ma-stock .lost { color: #ffb0bb; }

/* ---------- Mitte: Flugstunde, Warnung, Banner, Kapitäns-Ticker ---------- */
.ma-mid { position: absolute; top: 4.1em; left: 50%; transform: translateX(-50%); width: min(94%, 36em); display: flex; flex-direction: column; align-items: center; gap: .45em; }
.ma-tut { width: 100%; box-sizing: border-box; padding: .6em .9em .7em; border-radius: 1em; background: rgba(28,24,74,.9); border: 2px solid #ffd23f;
  box-shadow: 0 0 18px rgba(255,210,63,.35); text-align: center; animation: ma-in .3s ease-out; }
.ma-tut.ok { border-color: #5ee07a; box-shadow: 0 0 22px rgba(94,224,122,.5); }
.ma-tut-n { font-size: .8em; letter-spacing: .08em; text-transform: uppercase; color: #ffd23f; }
.ma-tut.ok .ma-tut-n { color: #5ee07a; }
.ma-tut-h { font-size: 1.25em; font-weight: 700; margin-top: .1em; }
.ma-tut-x { font-size: 1em; margin-top: .2em; opacity: .95; }
.ma-tut-x:empty, .ma-tut.ok .ma-tut-k { display: none; }
.ma-tut-k { display: inline-block; margin-top: .35em; padding: .15em .7em; border-radius: .8em; background: rgba(255,210,63,.18); color: #ffe68a; font-size: .85em; font-weight: 600; }
.ma-warn { display: flex; align-items: center; gap: .5em; padding: .4em 1em; border-radius: 1.2em; background: rgba(90,10,40,.85); border: 2px solid #ff5a6e;
  box-shadow: 0 0 16px rgba(255,61,90,.45); font-weight: 600; animation: ma-in .25s ease-out; }
.ma-warn .ico { font-size: 1.3em; }
.ma-warn b { min-width: 1.4em; text-align: center; font-size: 1.35em; color: #ffd23f; }
.ma-warn.hot { animation: ma-pulse .5s ease-in-out infinite alternate; }
.ma-warn.calm { background: rgba(16,30,80,.85); border-color: #7dfcff; box-shadow: 0 0 14px rgba(125,252,255,.35); }
.ma-warn { max-width: 100%; box-sizing: border-box; }
.ma-warn .tx { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ma-warn .more { flex: 0 0 auto; padding: .05em .45em; border-radius: .8em; background: rgba(255,255,255,.12); font-size: .95em; letter-spacing: .05em; white-space: nowrap; }
.ma-next { position: absolute; right: .9em; top: 4.3em; padding: .3em .7em; border-radius: 1em; background: rgba(10,12,40,.7); border: 1px solid rgba(130,150,255,.35); font-size: .85em; }
.ma-banner { padding: .35em 1.1em; border-radius: 1.2em; font-size: 1.35em; font-weight: 700; text-align: center; text-shadow: 0 2px 0 rgba(0,0,0,.35);
  background: rgba(16,18,48,.88); border: 2px solid #7dfcff; animation: ma-pop .35s cubic-bezier(.2,1.6,.4,1); }
.ma-banner.good { border-color: #5ee07a; color: #c8ffd4; box-shadow: 0 0 18px rgba(94,224,122,.45); }
.ma-banner.boom { border-color: #ff5a6e; color: #ffd0d6; box-shadow: 0 0 18px rgba(255,61,90,.5); font-size: 1.55em; }
.ma-banner.warn { border-color: #ffd23f; color: #fff0b0; }
.ma-banner.big { font-size: 1.7em; border-color: #b48cff; }
/* Just-in-time-Hinweis hochkant: kompakt oben unter dem Banner, höchstens 2 Zeilen, nie klickbar */
.ma-jit { display: flex; align-items: center; gap: .45em; max-width: 100%; box-sizing: border-box; padding: .3em .8em; border-radius: 1em; pointer-events: none;
  background: rgba(16,18,48,.9); border: 1.5px solid #7dfcff; font-size: .82em; line-height: 1.2; animation: ma-in .3s ease-out; }
.ma-jit .ico { flex: 0 0 auto; font-size: 1.25em; }
.ma-jit .tx { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
/* Flugstunde am PC: Karte links oben, damit Treppe und Tür (Nase rechts) frei bleiben */
.ma-stage:not(.ma-port):not(.ma-is-touch) .ma-mid.ma-tutmode { left: 4.2em; transform: none; width: min(38%, 30em); align-items: flex-start; }
.ma-ticker { max-width: 100%; padding: .3em .9em; border-radius: 1em; background: rgba(10,12,40,.78); border: 1px solid rgba(180,140,255,.5); font-size: .95em; text-align: center; animation: ma-in .3s ease-out; }

/* ---------- unten: Crew, Hinweis-Karte, Aktions-Hinweis ---------- */
.ma-crewbar { position: absolute; left: .8em; bottom: .7em; display: flex; flex-wrap: wrap; gap: .35em; max-width: 30%; }
.ma-chip { display: inline-flex; align-items: center; gap: .25em; padding: .2em .6em; border-radius: .9em; font-size: .82em; font-weight: 600; background: rgba(10,12,40,.75);
  border: 1.5px solid var(--c, #7dfcff); white-space: nowrap; }
.ma-chip { position: relative; }
.ma-chip-emo { position: absolute; left: 50%; bottom: 100%; transform: translateX(-50%); font-size: 1.7em; white-space: nowrap; pointer-events: none; color: #fff; text-shadow: 0 0 3px #10142a, 0 0 3px #10142a; animation: ma-emo 1.7s ease-out forwards; }
@keyframes ma-emo { 0% { opacity: 0; transform: translate(-50%, 6px) scale(.6); } 12% { opacity: 1; transform: translate(-50%, 0) scale(1.1); } 80% { opacity: 1; } 100% { opacity: 0; transform: translate(-50%, -8px); } }
.ma-chip.me { background: var(--c, #7dfcff); color: #10142a; }
.ma-chip.away { opacity: .5; }
.ma-chip.bot { border-style: dashed; border-color: #9aa8ff; color: #c8d0ff; }
.ma-chip small { opacity: .7; font-weight: 400; }
.ma-toast { position: absolute; left: 50%; bottom: 4.4em; transform: translateX(-50%); display: flex; align-items: center; gap: .6em; max-width: min(92%, 32em);
  padding: .55em 1em; border-radius: 1em; background: rgba(16,18,48,.94); border: 2px solid #7dfcff; box-shadow: 0 0 18px rgba(125,252,255,.35); animation: ma-in .3s ease-out; }
.ma-toast .ico { font-size: 1.6em; }
.ma-act { position: absolute; left: 50%; bottom: .8em; transform: translateX(-50%); display: flex; align-items: center; gap: .55em; padding: .35em 1em .35em .4em;
  border-radius: 1.4em; background: rgba(10,12,40,.82); border: 1.5px solid rgba(255,255,255,.4); font-weight: 600; white-space: nowrap; max-width: 70%; overflow: hidden; text-overflow: ellipsis; }
.ma-act .k { display: inline-block; min-width: 1.6em; padding: .15em .55em; border-radius: .6em; background: #fff; color: #10142a; font-weight: 700; text-align: center; box-shadow: 0 .15em 0 #9aa8c8; }
.ma-act.dim { opacity: .55; }
.ma-act.glow { border-color: #ffd23f; box-shadow: 0 0 18px rgba(255,210,63,.6); animation: ma-pulse .7s ease-in-out infinite alternate; }
.ma-act.aim { border-color: #7dfcff; box-shadow: 0 0 16px rgba(125,252,255,.5); }
.ma-act .wbar { flex: 0 0 auto; position: relative; width: 5em; height: .55em; border-radius: .3em; background: rgba(255,255,255,.15); overflow: hidden; }
.ma-act .wbar i { position: absolute; left: 0; top: 0; bottom: 0; background: linear-gradient(90deg, #7dfcff, #ffd23f); transition: width .12s; }

/* ---------- Pfeile: NUR zu dringenden Aufgaben, die gerade niemand erledigt (höchstens 2) ---------- */
.ma-arrows { position: absolute; inset: 0; pointer-events: none; overflow: hidden; }
.ma-arrow { position: absolute; width: 0; height: 0; pointer-events: none; }
.ma-arrow .ic { position: absolute; left: -1.05em; top: -1.05em; width: 2.1em; height: 2.1em; display: flex; align-items: center; justify-content: center; border-radius: 50%;
  background: rgba(16,18,48,.88); border: 2px solid #ffd23f; font-size: 1em; box-shadow: 0 0 12px rgba(255,210,63,.5); }
.ma-arrow .ar { position: absolute; width: 1.6em; height: 1.6em; left: -.8em; top: -.8em; display: flex; align-items: center; justify-content: center; font-size: 1.3em; color: #ffd23f;
  text-shadow: 0 0 8px rgba(255,210,63,.9), 0 2px 0 rgba(0,0,0,.5); }
.ma-arrow:not(.edge) { animation: ma-bob .8s ease-in-out infinite alternate; }
.ma-arrow.st .ic { border-color: #7dfcff; box-shadow: 0 0 12px rgba(125,252,255,.55); }
.ma-status { position: absolute; left: 50%; top: 45%; transform: translate(-50%, -50%); padding: .7em 1.3em; border-radius: 1em; background: rgba(16,18,48,.95);
  border: 2px solid #ffd23f; font-weight: 600; font-size: 1.1em; text-align: center; pointer-events: none; }

/* ---------- Handy: Joystick + 1 großer Knopf + kleiner 📢 ---------- */
.ma-touch { position: absolute; inset: 0; pointer-events: none; display: none; }
.ma-stage.ma-is-touch.ma-flight .ma-touch { display: block; }
.ma-joy { position: absolute; width: max(110px, 7.5em); height: max(110px, 7.5em); margin: calc(max(110px, 7.5em) / -2) 0 0 calc(max(110px, 7.5em) / -2);
  border-radius: 50%; background: radial-gradient(circle, rgba(125,252,255,.08), rgba(125,252,255,.18)); border: 2px solid rgba(125,252,255,.5); }
.ma-joy-knob { position: absolute; left: 50%; top: 50%; width: 44%; height: 44%; border-radius: 50%; transform: translate(-50%, -50%);
  background: radial-gradient(circle at 35% 30%, #ffffff, #7dfcff 60%, #2a7fa0); box-shadow: 0 0 14px rgba(125,252,255,.6); }
.ma-bigbtn { position: absolute; right: max(16px, 1.4em); bottom: max(20px, 1.6em); width: max(104px, 7.4em); height: max(104px, 7.4em); border-radius: 50%; pointer-events: auto;
  border: 3px solid #fff; background: radial-gradient(circle at 35% 30%, #fff6c8, #ffd23f 55%, #d08a10); color: #10142a; font: inherit; font-weight: 700; cursor: pointer;
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: .1em; box-shadow: 0 6px 0 #8a5a08, 0 0 22px rgba(255,210,63,.45); touch-action: none; }
.ma-bigbtn .ico { font-size: 2.3em; line-height: 1; }
.ma-bigbtn .lbl { font-size: .74em; max-width: 86%; line-height: 1.05; text-align: center; white-space: normal; overflow: hidden;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
.ma-bigbtn.on { transform: translateY(5px); box-shadow: 0 1px 0 #8a5a08, 0 0 28px rgba(255,210,63,.7); }
.ma-bigbtn.glow { animation: ma-glow .8s ease-in-out infinite alternate; }
.ma-bigbtn.dim { filter: saturate(.55) brightness(.85); }
.ma-bigbtn.aim { background: radial-gradient(circle at 35% 30%, #e8ffff, #7dfcff 55%, #2a8fb0); box-shadow: 0 1px 0 #1a5a70, 0 0 30px rgba(125,252,255,.8); }
.ma-rufbtn { position: absolute; right: calc(max(16px, 1.4em) + max(104px, 7.4em) / 2 - max(56px, 3.6em) / 2); bottom: calc(max(20px, 1.6em) + max(104px, 7.4em) + 12px); width: max(56px, 3.6em); height: max(56px, 3.6em);
  border-radius: 50%; pointer-events: auto; border: 2px solid rgba(180,140,255,.8); background: rgba(40,30,100,.85); color: #fff; font-size: 1.4em; cursor: pointer; touch-action: none; }
.ma-rufbtn.cd { filter: grayscale(1) brightness(.6); }
/* Geister-Joystick: zeigt am Handy, wie man läuft (Flugstunde Schritt 1–2, erste 10 s jedes Flugs; weg nach der ersten Berührung) */
.ma-ghost { position: absolute; left: max(22px, 1.8em); bottom: max(34px, 2.6em); display: flex; flex-direction: column; align-items: center; gap: .35em; pointer-events: none; opacity: .7; }
.ma-ghost-ring { position: relative; width: max(104px, 7em); height: max(104px, 7em); border-radius: 50%; border: 2px dashed rgba(125,252,255,.65); background: rgba(125,252,255,.07); }
.ma-ghost-thumb { position: absolute; left: 50%; top: 50%; width: 42%; height: 42%; margin: -21% 0 0 -21%; border-radius: 50%;
  background: radial-gradient(circle at 35% 30%, #ffffff, #7dfcff 60%, #2a7fa0); box-shadow: 0 0 14px rgba(125,252,255,.6); animation: ma-ghost 1.8s ease-in-out infinite; }
.ma-ghost-l { padding: .15em .6em; border-radius: .8em; background: rgba(10,12,40,.8); font-size: .85em; font-weight: 600; white-space: nowrap; }
.ma-is-touch .ma-crewbar { top: 4.2em; bottom: auto; max-width: 60%; font-size: .9em; }
.ma-is-touch.ma-port .ma-mid { top: 4em; }
.ma-is-touch.ma-port .ma-toast { bottom: calc(max(20px, 1.6em) + max(104px, 7.4em) + max(56px, 3.6em) + 2em); }
.ma-is-touch:not(.ma-port) .ma-toast { bottom: .6em; max-width: 52%; }
.ma-is-touch.ma-port .ma-crewbar, .ma-small .ma-crewbar { display: none; }
.ma-port .ma-top { gap: .45em; padding: .5em .55em; }
.ma-port .ma-fuel-bar { width: 3em; }
.ma-port .ma-fuel { padding: .4em .55em; }
.ma-port .ma-stock { gap: .35em; padding: .4em .5em; }
.ma-port .ma-stock i, .ma-small .ma-stock i { display: none; }
.ma-port .ma-stars { padding: .35em .45em; letter-spacing: 0; font-size: 1em; }
.ma-port .ma-prog { padding: .3em .55em .45em; }

/* ---------- Overlays: Hangar, So geht’s, Menü, Rückblick ---------- */
.ma-ov { position: absolute; inset: 0; display: none; align-items: center; justify-content: center; padding: 1em; box-sizing: border-box; overflow: auto; pointer-events: auto;
  background: radial-gradient(ellipse at 50% 30%, rgba(40,48,144,.55), rgba(5,6,24,.92)); }
.ma-ov.on { display: flex; }
.ma-ov.dim { background: rgba(5,6,24,.6); }
.ma-card { position: relative; box-sizing: border-box; max-width: 100%; max-height: 100%; overflow: auto; padding: 1.1em 1.3em 1.2em; border-radius: 1.3em;
  background: rgba(16,18,48,.95); border: 1px solid rgba(130,150,255,.5); box-shadow: 0 0 40px rgba(80,110,255,.35); animation: ma-in .3s ease-out; }
.ma-modal { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; padding: 1em; box-sizing: border-box; background: rgba(5,6,24,.55); }
.ma-logo { font-size: 1.6em; letter-spacing: .02em; }
.ma-logo b { background: linear-gradient(90deg, #7dfcff, #b48cff, #ff7ad9); -webkit-background-clip: text; background-clip: text; color: transparent; }
.ma-sub { opacity: .85; margin: .1em 0 .5em; }
/* Hangar: immer dieselbe Größe, egal welches Level – Kopf, Auswahl, zwei Spalten (scrollen nur im Inneren), Fuß */
.ma-hangar { width: min(100%, 66em); height: min(100%, 41em); padding: 0; display: flex; flex-direction: column; overflow: hidden;
  background: linear-gradient(165deg, rgba(34,40,108,.97), rgba(13,15,44,.98) 58%); border-color: rgba(125,252,255,.38);
  box-shadow: inset 0 0 0 1px rgba(255,255,255,.05), 0 18px 60px rgba(0,0,0,.55), 0 0 50px rgba(80,110,255,.32); }
.ma-hg-head { flex: 0 0 auto; display: flex; align-items: center; justify-content: space-between; gap: .8em; padding: .65em 1.1em .35em; }
.ma-hg-title { flex: 0 1 auto; min-width: 0; }
.ma-hg-title .ma-sub { margin: 0; font-size: .92em; }
.ma-hg-top { flex: 0 0 auto; padding: .15em 1.1em .45em; }
.ma-hg-body { flex: 1 1 auto; min-height: 0; display: grid; grid-template-columns: minmax(0, 1.75fr) minmax(0, 1fr); gap: .65em; padding: .1em 1.1em .6em; overflow: auto; }
.ma-hg-main, .ma-hg-side { display: flex; flex-direction: column; gap: .55em; min-width: 0; }
.ma-panel { display: flex; flex-direction: column; gap: .5em; padding: .6em .75em; border-radius: 1em; background: rgba(255,255,255,.045); border: 1px solid rgba(130,150,255,.24); }
.ma-hg-side .ma-panel:last-child { flex: 1 1 auto; }
.ma-hangar .ma-hg-foot { flex: 0 0 auto; position: static; margin: 0; padding: .55em 1.1em .75em; background: rgba(8,10,30,.5); border-top: 1px solid rgba(130,150,255,.22); }
.ma-hangar .ma-go { min-height: 50px; font-size: 1.3em; }
.ma-lvcard .ma-hg-head { padding: 0; }
.ma-x { width: 2.4em; height: 2.4em; min-width: 44px; min-height: 44px; border-radius: 50%; border: 1px solid rgba(255,255,255,.35); background: rgba(255,255,255,.06); color: #fff; font: inherit; cursor: pointer; }
.ma-thumb { flex: 1 1 auto; min-width: 0; height: 4.2em; object-fit: contain; filter: drop-shadow(0 0 12px rgba(125,252,255,.35)); }
/* Kampagne: Level-Karten (Schloss, bis das vorige ≥ 1 Stern hat), 🌪️ Chaos als eigene, bunte Karte */
.ma-lvls { display: grid; grid-template-columns: repeat(5, 1fr); gap: .45em; }
.ma-lv { position: relative; display: flex; flex-direction: column; align-items: flex-start; gap: .05em; min-height: 52px; padding: .45em .6em .5em; border-radius: .9em; text-align: left; cursor: pointer;
  font: inherit; color: #fff; background: rgba(40,48,144,.45); border: 2px solid rgba(130,150,255,.45); min-width: 0; }
.ma-lv .no { font-size: .72em; letter-spacing: .06em; text-transform: uppercase; opacity: .75; }
.ma-lv .ic { position: absolute; right: .45em; top: .3em; font-size: 1.15em; letter-spacing: -.1em; }
.ma-lv .tt { font-weight: 700; font-size: .92em; line-height: 1.15; max-width: 100%; overflow: hidden; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
.ma-lv .st { font-size: .8em; color: #ffd23f; min-height: 1.1em; margin-top: auto; }
.ma-lv.on { border-color: #7dfcff; background: rgba(60,80,200,.6); box-shadow: 0 0 16px rgba(125,252,255,.45); }
.ma-lv.locked { opacity: .45; cursor: default; }
.ma-lv.locked .st { color: #c8d0ff; }
.ma-lv:disabled { cursor: default; }
.ma-lv.chaos { background: linear-gradient(135deg, rgba(255,90,110,.45), rgba(180,140,255,.45), rgba(125,252,255,.4)); border-color: rgba(255,122,217,.7); }
.ma-lv.chaos.on { border-color: #ffd23f; box-shadow: 0 0 18px rgba(255,122,217,.6); }
.ma-lv.chaos .no { font-size: 1.2em; opacity: 1; }
.ma-lv.chaos .ic { display: none; }
/* Level 9 gewonnen: Chaos groß als Standard, Level im Popup */
.ma-chaos-top { display: grid; grid-template-columns: minmax(0, 1fr) minmax(9em, 13em); gap: .5em; }
.ma-chaos-hero { position: relative; overflow: hidden; isolation: isolate; display: flex; align-items: center; gap: .7em; min-height: 5.4em; padding: .6em 1em; border-radius: 1.1em; border: 2px solid rgba(255,122,217,.7); color: #fff; font: inherit; text-align: left; cursor: pointer; background: linear-gradient(120deg, #3a1468, #7a1f6b 45%, #103a78); }
.ma-chaos-hero::before { content: ''; position: absolute; inset: -80% -10%; z-index: -1; background: conic-gradient(from 0deg, rgba(255,90,110,.6), rgba(255,210,63,.4), rgba(125,252,255,.5), rgba(180,140,255,.6), rgba(255,90,110,.6)); filter: blur(24px); animation: ma-chaos-spin 9s linear infinite; }
@keyframes ma-chaos-spin { to { transform: rotate(360deg); } }
.ma-chaos-hero.on { border-color: #ffd23f; box-shadow: 0 0 24px rgba(255,122,217,.65); }
.ma-chaos-hero:not(.on) { filter: grayscale(1) brightness(.68); border-color: rgba(190,195,220,.4); }   /* ein Level ist gewählt: Chaos ausgegraut, Klick = wieder aktiv */
.ma-chaos-hero:not(.on)::before, .ma-chaos-hero:not(.on) .tw { animation-play-state: paused; }
.ma-chaos-hero:not(.on):not(:disabled):hover { filter: grayscale(.35) brightness(.95); }
.ma-chaos-hero:disabled { cursor: default; }
.ma-chaos-hero .tw { font-size: 2.6em; line-height: 1; filter: drop-shadow(0 0 10px rgba(255,255,255,.5)); animation: ma-chaos-wob 2.4s ease-in-out infinite; }
@keyframes ma-chaos-wob { 50% { transform: rotate(-9deg) scale(1.08); } }
.ma-chaos-hero .tx { display: flex; flex-direction: column; gap: .1em; min-width: 0; flex: 1 1 auto; }
.ma-chaos-hero .tx b { font-size: 1.5em; line-height: 1.1; letter-spacing: .01em; text-shadow: 0 2px 8px rgba(0,0,0,.45); }
.ma-chaos-hero .tx small { font-size: .9em; opacity: .95; line-height: 1.2; text-shadow: 0 1px 4px rgba(0,0,0,.5); }
.ma-chaos-hero .st { font-size: 1.15em; color: #ffd23f; text-shadow: 0 1px 4px rgba(0,0,0,.5); white-space: nowrap; }
.ma-lvbtn { display: flex; flex-direction: column; justify-content: center; align-items: flex-start; gap: .1em; min-height: 52px; padding: .4em .8em; border-radius: 1.1em; border: 2px solid rgba(130,150,255,.45); background: rgba(40,48,144,.45); color: #fff; font: inherit; text-align: left; cursor: pointer; min-width: 0; }
.ma-lvbtn .lb { font-weight: 700; font-size: 1.05em; }
.ma-lvbtn small { font-size: .82em; opacity: .85; line-height: 1.15; max-width: 100%; overflow: hidden; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
.ma-lvbtn.on { border-color: #7dfcff; background: rgba(60,80,200,.6); box-shadow: 0 0 16px rgba(125,252,255,.45); }
.ma-lvbtn:hover, .ma-chaos-hero.on:not(:disabled):hover { filter: brightness(1.1); }
.ma-lvcard { width: min(100%, 48em); display: flex; flex-direction: column; gap: .6em; }
.ma-lvcard .ma-how-h { margin: 0; }
.ma-comp { flex: 0 0 auto; display: flex; align-items: center; gap: .4em; padding: .25em .7em; border-radius: 1em; background: rgba(16,18,48,.82); border: 1px solid rgba(255,210,63,.6); white-space: nowrap; }
.ma-comp .ar { display: inline-block; color: #ffd23f; font-style: normal; font-size: 1.25em; line-height: 1; transition: transform .25s; }
.ma-comp .tx { font-size: .85em; }
.ma-comp.ok { border-color: #5ee07a; }
.ma-comp.ok .ar { color: #5ee07a; }
.ma-row2 { flex-wrap: nowrap; gap: .3em; font-size: .86em; }
.ma-row2 .ma-seg { padding-left: .4em; padding-right: .4em; white-space: nowrap; }
.ma-row2 .ma-seg small { display: none; }
.ma-row2 .ma-segs { flex: 0 1 auto; min-width: 0; }
.ma-brief-pl { margin-left: auto; padding: .1em .6em; border-radius: 1em; white-space: nowrap; font-size: .85em; background: rgba(127,212,255,.16); border: 1px solid rgba(127,212,255,.4); }
.ma-comp.bad { border-color: #ff5a6e; }
.ma-comp.bad .ar { color: #ff5a6e; }
.ma-q-t { font-size: 1.15em; font-weight: 700; }
.ma-queue { width: min(100%, 30em); text-align: center; }
.ma-queue .ma-hg-actions { justify-content: center; margin-top: .6em; }
/* Briefing: „Neu!“-Karten */
.ma-brief { display: flex; flex-direction: column; gap: .4em; padding: .55em .7em; border-radius: 1em; background: rgba(10,12,40,.55); border: 1px solid rgba(130,150,255,.3); }
.ma-brief.chaos { border-color: rgba(255,122,217,.55); }
.ma-brief .bh { display: flex; flex-wrap: wrap; align-items: baseline; gap: .2em .7em; }
.ma-brief .bh b { font-size: 1.05em; }
.ma-brief .bh span { opacity: .8; font-size: .9em; }
.ma-neus { display: grid; grid-template-columns: repeat(auto-fit, minmax(14em, 1fr)); gap: .45em; padding-top: .3em; }
.ma-neu { position: relative; display: flex; align-items: center; gap: .55em; padding: .45em .65em; border-radius: .9em; background: rgba(255,210,63,.1); border: 1.5px solid rgba(255,210,63,.55); }
.ma-neu .i { font-size: 1.8em; line-height: 1; }
.ma-neu b { display: block; }
.ma-neu div span { display: block; font-size: .86em; opacity: .9; line-height: 1.2; }
.ma-neu .tag { position: absolute; right: .5em; top: -.65em; padding: 0 .45em; border-radius: .6em; background: #ffd23f; color: #10142a; font-size: .72em; font-weight: 700; }
/* Mechanik-Schalter: Symbol + Name, an = hell, Level-Standard mit gelbem Punkt, „braucht andere“ = gestreift */
.ma-mechs-h { display: flex; align-items: center; flex-wrap: wrap; gap: .5em; }
.ma-mechs-h .lb { font-weight: 600; }
.ma-mechs { display: grid; grid-template-columns: repeat(auto-fill, minmax(6.9em, 1fr)); grid-auto-rows: minmax(3.7em, 1fr); gap: .35em; flex: 1 1 auto; }
.ma-mechs .ma-mech { min-width: 0; flex-direction: column; justify-content: center; align-items: center; gap: .15em; padding: .35em .4em; border-radius: .9em; text-align: center; }
.ma-mechs .ma-mech .i { font-size: 1.6em; line-height: 1.1; }
.ma-mechs .ma-mech .n { white-space: normal; line-height: 1.12; }
.ma-hg-main .ma-panel:last-child { flex: 1 1 auto; }
.ma-mech { position: relative; display: inline-flex; align-items: center; gap: .3em; min-height: 40px; padding: .2em .7em .2em .45em; border-radius: 1.1em; cursor: pointer; font: inherit; font-size: .88em;
  color: #c8d0ff; background: rgba(16,18,48,.8); border: 1.5px dashed rgba(130,150,255,.45); }
.ma-mech .i { font-size: 1.25em; filter: grayscale(1) opacity(.55); }
.ma-mech.on { color: #10142a; background: linear-gradient(180deg, #e8fbff, #9ff3ff); border: 1.5px solid #7dfcff; font-weight: 600; box-shadow: 0 0 10px rgba(125,252,255,.35); }
.ma-mech.on .i { filter: none; }
.ma-mech.dflt::after { content: ''; position: absolute; right: .3em; top: .3em; width: .38em; height: .38em; border-radius: 50%; background: #ffd23f; }
.ma-mech.blocked { background: repeating-linear-gradient(135deg, rgba(16,18,48,.8) 0 .4em, rgba(60,60,110,.8) .4em .8em); color: #9aa0c8; border-style: dashed; }
.ma-mech.blocked .i { filter: grayscale(1) opacity(.5); }
.ma-mech:disabled { cursor: default; }
.ma-mech.more { cursor: default; border-style: dotted; opacity: .7; }
.ma-tag { padding: .1em .6em; border-radius: .8em; background: rgba(255,122,217,.18); border: 1px solid rgba(255,122,217,.6); font-size: .8em; font-weight: 600; }
.ma-tag.ok { background: rgba(94,224,122,.15); border-color: rgba(94,224,122,.6); }
.ma-tag.dim { background: rgba(255,255,255,.06); border-color: rgba(255,255,255,.25); font-weight: 400; }
.ma-note { color: #ffe08a; font-size: .88em; }
.ma-mechs-fold { display: flex; align-items: center; flex-wrap: wrap; gap: .45em; width: 100%; min-height: 48px; padding: .35em .7em; border-radius: 1em; cursor: pointer; font: inherit; color: #fff; text-align: left;
  background: rgba(10,12,40,.55); border: 1.5px solid rgba(125,252,255,.45); }
.ma-mechs-fold .lb { font-weight: 600; }
.ma-mechs-fold .ics { font-size: 1.2em; letter-spacing: .05em; }
.ma-mechs-fold .go { margin-left: auto; color: #7dfcff; font-weight: 600; }
.ma-mechs-fold.open { border-style: dashed; background: rgba(10,12,40,.3); }
.ma-card.noanim { animation: none; }
.ma-row { display: flex; align-items: center; flex-wrap: wrap; gap: .6em; }
.ma-row .lb { font-weight: 600; }
.ma-segs { display: inline-flex; border-radius: .9em; overflow: hidden; border: 1.5px solid rgba(130,150,255,.55); }
.ma-seg { min-width: 3em; min-height: 44px; padding: .3em .7em; border: 0; border-right: 1px solid rgba(130,150,255,.35); background: rgba(16,18,48,.8); color: #fff; font: inherit; cursor: pointer; }
.ma-seg:last-child { border-right: 0; }
.ma-seg.on { background: #7dfcff; color: #10142a; font-weight: 700; }
.ma-crew { display: flex; flex-wrap: wrap; gap: .4em; }
.ma-code { display: flex; align-items: center; flex-wrap: wrap; gap: .6em; }
.ma-code b { font-size: 1.4em; letter-spacing: .15em; color: #7dfcff; }
.ma-hg-actions { display: flex; align-items: center; justify-content: center; flex-wrap: wrap; gap: .7em; margin-top: .4em; }
.ma-go { min-height: 56px; padding: .5em 1.6em; border-radius: 1.4em; border: 2px solid #fff; cursor: pointer; font: inherit; font-size: 1.45em; font-weight: 700; color: #10142a;
  background: linear-gradient(180deg, #8fffd0, #20c890); box-shadow: 0 5px 0 #0c7a54, 0 0 22px rgba(94,224,122,.45); }
.ma-go:active { transform: translateY(3px); box-shadow: 0 2px 0 #0c7a54; }
.ma-seg.locked { opacity: .55; cursor: default; }
.ma-seg.ma-len small { opacity: .75; font-size: .8em; }
.ma-go:focus-visible, .ma-btn:focus-visible, .ma-lv:focus-visible, .ma-seg:focus-visible, .ma-mech:focus-visible { outline: 3px solid #ffd23f; outline-offset: 2px; }
.ma-go.ready { background: linear-gradient(180deg, #fff1a8, #ffd23f); box-shadow: 0 5px 0 #a07a10; }
.ma-go.ready.on { background: linear-gradient(180deg, #8fffd0, #20c890); }
.ma-btn { min-height: 48px; padding: .45em 1.1em; border-radius: 1.2em; border: 1.5px solid rgba(130,150,255,.7); background: rgba(40,48,144,.7); color: #fff; font: inherit; font-weight: 600; cursor: pointer; }
.ma-btn.sm { min-height: 40px; padding: .25em .8em; font-size: .9em; }
.ma-btn.picked, .ma-go.picked { outline: 3px solid #ffd23f; }
.ma-wait { width: 100%; text-align: center; opacity: .8; }
.ma-connect { display: flex; flex-direction: column; align-items: center; gap: .8em; min-width: min(100%, 20em); }
.ma-spin { width: 2.6em; height: 2.6em; border-radius: 50%; border: 4px solid rgba(125,252,255,.25); border-top-color: #7dfcff; animation: ma-spin 1s linear infinite; }

.ma-how { width: min(100%, 44em); }
.ma-how-h { font-size: 1.5em; font-weight: 700; margin-bottom: .2em; }
.ma-how-goal { margin-bottom: .7em; opacity: .9; }
.ma-how-grid { display: grid; grid-template-columns: repeat(5, 1fr); gap: .6em; }
.ma-how-grid .tile { display: flex; flex-direction: column; align-items: center; text-align: center; gap: .25em; padding: .7em .5em; border-radius: 1em; background: rgba(40,48,144,.4); border: 1.5px solid rgba(130,150,255,.4); }
.ma-how-grid .tile.hl { border-color: #ffd23f; box-shadow: 0 0 14px rgba(255,210,63,.35); }
.ma-how-grid .big { font-size: 2.2em; }
.ma-how-grid span { font-size: .88em; opacity: .9; }
.ma-how-jobs { display: flex; flex-wrap: wrap; justify-content: center; gap: .4em; margin: .8em 0 .2em; }
.ma-how-jobs span { padding: .25em .7em; border-radius: .9em; background: rgba(10,12,40,.7); border: 1px solid rgba(255,255,255,.2); font-size: .9em; }
.ma-how-sub { margin: .6em 0 .3em; font-weight: 600; }
.ma-how-mechs { display: grid; grid-template-columns: repeat(auto-fit, minmax(15em, 1fr)); gap: .4em; }
.ma-how-mechs .m { display: flex; align-items: center; gap: .5em; padding: .35em .6em; border-radius: .8em; background: rgba(40,48,144,.35); border: 1px solid rgba(130,150,255,.35); }
.ma-how-mechs .i { font-size: 1.5em; }
.ma-how-mechs b { display: block; font-size: .95em; }
.ma-how-mechs div span { display: block; font-size: .82em; opacity: .9; line-height: 1.2; }
/* Chaos & Co. (viele Mechaniken): „So geht’s“ passt ohne Scrollen – breiter, Mechaniken in mehreren Spalten, kompakter,
   Schrift schrumpft mit der Höhe des Spielfelds (Container .ma-modal) */
.ma-modal { container-type: size; }
.ma-how:has(.ma-how-mechs) { width: min(100%, 80em); padding: .8em 1.1em .9em; font-size: min(1em, 2.5cqh, 1.6cqw); }
.ma-how:has(.ma-how-mechs) .ma-how-h { font-size: 1.3em; margin-bottom: .1em; }
.ma-how:has(.ma-how-mechs) .ma-how-goal { margin-bottom: .45em; }
.ma-how:has(.ma-how-mechs) .ma-how-grid { gap: .4em; }
.ma-how:has(.ma-how-mechs) .ma-how-grid .tile { padding: .4em .45em; gap: .1em; }
.ma-how:has(.ma-how-mechs) .ma-how-grid .big { font-size: 1.6em; }
.ma-how:has(.ma-how-mechs) .ma-how-jobs { margin: .45em 0 .1em; gap: .3em; }
.ma-how:has(.ma-how-mechs) .ma-how-sub { margin: .4em 0 .25em; }
.ma-how:has(.ma-how-mechs) .ma-how-mechs { grid-template-columns: repeat(auto-fill, minmax(17em, 1fr)); gap: .3em; }
.ma-how:has(.ma-how-mechs) .ma-how-mechs .m { padding: .25em .5em; }
.ma-how:has(.ma-how-mechs) .ma-hg-actions { margin-top: .5em; }
/* niedrig (Handy quer) oder hochkant: Mechaniken nur mit Symbol + Name (Beschreibung als Tooltip am PC), dafür lesbare Schrift */
@container (max-height: 560px) {
  .ma-how:has(.ma-how-mechs) { font-size: min(1em, 3.2cqh, 1.95cqw); padding: .5em .8em .55em; }
  .ma-how:has(.ma-how-mechs) .ma-how-mechs div span { display: none; }
  .ma-how:has(.ma-how-mechs) .ma-how-mechs { grid-template-columns: repeat(auto-fill, minmax(9.5em, 1fr)); }
  .ma-how:has(.ma-how-mechs) .ma-how-mechs .m { min-width: 0; padding: .2em .45em; }
  .ma-how:has(.ma-how-mechs) .ma-how-mechs .m div { min-width: 0; }
  .ma-how:has(.ma-how-mechs) .ma-how-mechs b { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
  .ma-how:has(.ma-how-mechs) .ma-how-mechs .i { font-size: 1.2em; }
  .ma-how:has(.ma-how-mechs) .ma-how-jobs { font-size: .85em; margin: .3em 0 0; }
  .ma-how:has(.ma-how-mechs) .ma-hg-actions { margin-top: .35em; }
  .ma-how:has(.ma-how-mechs) .ma-hg-actions .ma-go { padding-top: .3em; padding-bottom: .3em; }
}
.ma-modal:has(> .ma-how .ma-how-mechs) { padding: .5em; }
@container (orientation: portrait) {
  .ma-how:has(.ma-how-mechs) { font-size: min(1em, 1.85cqh, 3.7cqw); }
  .ma-how:has(.ma-how-mechs) .ma-how-mechs div span { display: none; }
  .ma-how:has(.ma-how-mechs) .ma-how-mechs { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .ma-how:has(.ma-how-mechs) .ma-how-mechs .i { font-size: 1.2em; }
}
.ma-menu .ma-card { display: flex; flex-direction: column; gap: .6em; min-width: min(100%, 18em); }

.ma-res { width: min(100%, 52em); display: flex; flex-direction: column; align-items: center; gap: .55em; text-align: center; }
.ma-res-h { font-size: 1.7em; font-weight: 700; }
.ma-res-sub { margin-top: -.3em; color: #c8d0ff; font-size: 1.05em; }
.ma-res-pax { display: flex; flex-wrap: wrap; justify-content: center; gap: .15em .35em; }
.ma-rp { display: inline-flex; flex-direction: column; align-items: center; opacity: 0; animation: ma-pop .35s cubic-bezier(.2,1.6,.4,1) forwards; }
.ma-rp canvas { width: 2.8em; height: 2.8em; }
.ma-rp i { font-style: normal; font-size: .62em; color: #ffd23f; letter-spacing: -.05em; }
.ma-res-stars { font-size: 3em; color: #ffd23f; letter-spacing: .1em; text-shadow: 0 0 18px rgba(255,210,63,.7); opacity: 0; animation: ma-pop .5s cubic-bezier(.2,1.6,.4,1) forwards; }
.ma-res-stat { display: flex; flex-wrap: wrap; justify-content: center; gap: .5em; }
.ma-res-stat span { padding: .2em .7em; border-radius: .9em; background: rgba(10,12,40,.7); border: 1px solid rgba(255,255,255,.2); }
.ma-rw { color: #8fffd0; font-weight: 600; }
.ma-res-unl { display: flex; flex-wrap: wrap; justify-content: center; gap: .4em; }
.ma-unlock { padding: .3em .8em; border-radius: 1em; background: rgba(94,224,122,.16); border: 1.5px solid #5ee07a; font-weight: 600; animation: ma-pop .5s cubic-bezier(.2,1.6,.4,1) both; animation-delay: 1s; }
.ma-unlock.dim { background: rgba(255,210,63,.1); border-color: rgba(255,210,63,.5); font-weight: 400; }
.ma-res-rv { display: grid; grid-template-columns: repeat(2, 1fr); gap: .5em; width: 100%; }
.ma-rv { display: flex; align-items: center; gap: .6em; text-align: left; padding: .5em .7em; border-radius: 1em; background: rgba(40,48,144,.35); border: 1px solid rgba(130,150,255,.35);
  opacity: 0; animation: ma-in .4s ease-out forwards; }
.ma-rv canvas { flex: 0 0 auto; width: 3.2em; height: 3.2em; }
.ma-rv .s { color: #ffd23f; font-size: .9em; }
.ma-rv .s small { color: #c8d0ff; margin-left: .3em; }
.ma-rv .q { font-size: .95em; }
.ma-res-aw { display: flex; flex-wrap: wrap; justify-content: center; gap: .4em; }
.ma-aw { padding: .25em .7em; border-radius: .9em; background: rgba(255,210,63,.14); border: 1px solid rgba(255,210,63,.5); font-size: .9em; }
.ma-res-btns { display: flex; flex-wrap: wrap; justify-content: center; gap: .6em; margin-top: .3em; }
.ma-voted { min-height: 1.2em; opacity: .8; font-size: .9em; }

/* schmale Bildschirme (Handy) */
@media (max-width: 560px) {
  .ma-lvls { grid-template-columns: repeat(2, 1fr); }
  .ma-lv.chaos { grid-column: span 2; }
  .ma-how-grid { grid-template-columns: repeat(2, 1fr); }
  .ma-how-grid .tile:last-child { grid-column: span 2; }
  .ma-neus { grid-template-columns: 1fr; }
  /* ABFLUG bleibt am Handy immer sichtbar (Karte scrollt darunter) */
  .ma-hangar .ma-hg-actions { position: sticky; bottom: -1.2em; z-index: 2; margin: .2em -1.3em -1.2em; padding: .55em 1em .8em; background: linear-gradient(180deg, rgba(16,18,48,0), rgba(16,18,48,.97) 30%); }
  .ma-res-rv { grid-template-columns: 1fr; }
  .ma-go { font-size: 1.3em; }
  .ma-thumb { height: 3em; }
  /* „Gleich: 🐦 7 s“ rechts oben und die Mitte (Ticker/Warnung/Karte) überlappen sich sonst auf dem Handy → Mitte rückt darunter */
  .ma-hud:has(.ma-next:not([hidden])) .ma-mid { top: 6.5em; }
}

@keyframes ma-in { from { opacity: 0; transform: translateY(-6px); } to { opacity: 1; transform: none; } }
@keyframes ma-pop { 0% { opacity: 0; transform: scale(.5); } 100% { opacity: 1; transform: scale(1); } }
@keyframes ma-pulse { from { filter: brightness(1); } to { filter: brightness(1.35); transform: scale(1.04); } }
@keyframes ma-glow { from { box-shadow: 0 6px 0 #8a5a08, 0 0 12px rgba(255,210,63,.4); } to { box-shadow: 0 6px 0 #8a5a08, 0 0 36px 8px rgba(255,240,140,.9); transform: scale(1.06); } }
@keyframes ma-blink { 50% { opacity: .45; } }
@keyframes ma-ghost { 0%, 15% { transform: none; } 45%, 60% { transform: translate(55%, -40%); } 85%, 100% { transform: none; } }
@keyframes ma-spin { to { transform: rotate(360deg); } }
@keyframes ma-bob { from { transform: translateY(-.25em); } to { transform: translateY(.25em); } }
/* mittlere Breiten (Tablet hochkant, kleine Fenster): Level-Karten in 3 Spalten */
@media (min-width: 561px) and (max-width: 860px) { .ma-lvls { grid-template-columns: repeat(3, 1fr); } .ma-lv.chaos { grid-column: span 2; } .ma-how-grid { grid-template-columns: repeat(3, 1fr); } }
/* flache Bildschirme (Handy quer): Bild im Kopf weg, Karten kompakter */
@media (max-height: 760px) { .ma-sub { display: none; } }
@media (max-height: 520px) { .ma-thumb { display: none; } .ma-lv { min-height: 44px; padding: .3em .5em; } .ma-hangar { gap: .45em; }
  .ma-hangar .ma-hg-actions { position: sticky; bottom: -1.2em; z-index: 2; margin: .2em -1.3em -1.2em; padding: .5em 1em .7em; background: linear-gradient(180deg, rgba(16,18,48,0), rgba(16,18,48,.97) 30%); } }
.ma-tut .ma-tut-h, .ma-banner { animation-fill-mode: both; }
@media (prefers-reduced-motion: reduce) { .ma-stage * { animation-duration: .01s !important; animation-iteration-count: 1 !important; } .ma-chaos-hero::before { animation: none; } }
/* obere Leiste der Seite außerhalb des Flugs: durchsichtig über dem Migs-Air-Hintergrund, die Ebene rückt darunter (--ma-bar setzt game/app.js) */
body.migsair-on.migsair-bar #ui > #topbar { background: transparent !important; border-color: transparent !important; box-shadow: none !important; backdrop-filter: none !important; }
body.migsair-on.migsair-bar #ui:has(> .screen.active:not(#scr-menu)) ~ #migsair-root { visibility: hidden; }   /* Einstellungen/Profil aus der Leiste: ganz normal, der Hangar wartet dahinter */
.ma-ov { padding-top: calc(var(--ma-bar, 0px) + 1em); }
/* Musik-Regler: immer oben rechts (Hangar, Flug, Rückblick) */
.ma-vol { position: absolute; right: .6em; top: calc(var(--ma-bar, 0px) + .55em); z-index: 40; display: flex; flex-direction: row-reverse; align-items: center; gap: .4em; pointer-events: auto; }
.ma-vol-b, .ma-vol-m { width: 2.5em; height: 2.5em; min-width: 40px; min-height: 40px; padding: 0; border-radius: 50%; border: 1px solid rgba(255,255,255,.35); background: rgba(16,18,48,.82); color: #fff; font: inherit; cursor: pointer; }
.ma-vol-b.off { border-color: #ff7a8a; }
.ma-vol-p { display: flex; align-items: center; gap: .5em; padding: .25em .8em .25em .3em; border-radius: 2em; background: rgba(16,18,48,.95); border: 1px solid rgba(130,150,255,.5); box-shadow: 0 0 16px rgba(80,110,255,.35); }
.ma-vol-r { width: min(11em, 34vw); accent-color: #7dfcff; cursor: pointer; }
.ma-vol-n { min-width: 2em; text-align: right; font-size: .9em; font-variant-numeric: tabular-nums; }
.ma-vol-b:focus-visible, .ma-vol-m:focus-visible, .ma-vol-r:focus-visible { outline: 3px solid #ffd23f; outline-offset: 2px; }
.ma-top { padding-right: 3.8em; }
.ma-port .ma-top { padding-right: 3.6em; }
.ma-small .ma-hg-head { padding-right: 3.2em; }
.ma-small .ma-lvcard .ma-hg-head { padding-right: 3.2em; }
@media (max-width: 760px) { .ma-hangar { height: 100%; } .ma-hg-body { grid-template-columns: minmax(0, 1fr); } .ma-thumb { display: none; } }
@media (max-width: 560px) { .ma-chaos-top { grid-template-columns: 1fr; } .ma-chaos-hero { min-height: 4.4em; } .ma-chaos-hero .tx small { display: none; } }

/* ---- Einbau (game/app.js / index.html): Spielen-Seite „🤝 Koop“, Menü-Kachel, Ebenen über #migsair-root ---- */
.pl-k-migsair .pl-pv { background: radial-gradient(ellipse 55% 30% at 30% 72%, rgba(255, 255, 255, .55), transparent 70%),
  radial-gradient(ellipse 45% 22% at 76% 32%, rgba(255, 255, 255, .45), transparent 70%),
  radial-gradient(ellipse 60% 40% at 50% 46%, rgba(127, 212, 255, .35), transparent 70%),
  linear-gradient(170deg, #5fb8ff, #1d4f9a 62%, #071022); }
.pl-k-migsair .pl-pv-ico { animation: maPlFly 4.2s ease-in-out infinite; }
@keyframes maPlFly { 0%, 100% { translate: -4% -14%; rotate: -6deg; } 50% { translate: 4% -22%; rotate: 2deg; } }
@media (prefers-reduced-motion: reduce) { .pl-k-migsair .pl-pv-ico { animation: none; } }
.tile-migsair { --tc: #7fd4ff; }
/* Während eines Flugs liegt #migsair-root (z 900) über #ui (z 20): Hinweise (Toasts) und das Rückfrage-Fenster trotzdem zeigen */
body.migsair-on #ui { z-index: 950; }
body.migsair-on #ui > :not(#toasts):not(#topbar):not(.screen):not(.modal),
body.migsair-on:not(.migsair-bar) #ui > #topbar, body.migsair-on:not(.migsair-bar) #ui > .screen, body.migsair-on:not(.migsair-bar) #ui > .modal:not(#modal-confirm.open),
body.migsair-on #ui > #scr-menu, body.migsair-on #ui > .screen:not(.active), body.migsair-on #ui > .modal:not(.open) { visibility: hidden !important; pointer-events: none !important; }
/* neue Regeln: verlorene Runde (Absturz / < 3 Sterne) rot, Springer-Zahl, Hinweis „keine Belohnung“ */
.ma-res.lost .ma-res-h { color: #ff8a9a; }
.ma-res.lost .ma-res-stars { color: #8a90b8; }
.ma-res-jump { font-size: .95em; opacity: .9; margin: .1em 0 .3em; }
.ma-rw.dim { opacity: .75; font-size: .9em; }

/* ---- Stream: QR-Code, Meldungen, Aktionen (nur beim Streamer) ---- */
.ma-stream { position: absolute; inset: 0; z-index: 80; pointer-events: none; font-size: clamp(12px, 1.5vh, 19px); color: #fff; }
.ma-sw { position: absolute; transform-origin: top left; background: rgba(10, 14, 38, .78); border: 1px solid rgba(127, 212, 255, .35); border-radius: 14px; padding: .7em .8em; box-shadow: 0 8px 24px rgba(0, 0, 0, .4); }
.ma-sw.empty { display: none; }
.ma-sw[hidden] { display: none; }
.ma-sw-t { font-weight: 700; margin-bottom: .35em; color: #c9a7ff; }
.ma-sw-qr { text-align: center; width: 11.5em; box-sizing: border-box; }
.ma-sw-qr canvas { display: block; width: 100%; height: auto; background: #fff; border-radius: 8px; padding: .3em; box-sizing: border-box; }
.ma-sw-qt { font-weight: 700; margin-top: .4em; line-height: 1.15; }
.ma-sw-qc { font-size: .84em; opacity: .85; margin-top: .15em; }
.ma-sw-feed { width: 19em; }
.ma-sw-feed .ma-sw-b > div { padding: .1em 0; line-height: 1.25; overflow-wrap: anywhere; }
.ma-sw-list { width: 16em; }
.ma-sw-list .ma-sw-b > div { display: flex; justify-content: space-between; gap: .8em; padding: .08em 0; font-size: .9em; line-height: 1.25; }
.ma-sw-list b { color: #c9a7ff; }
.ma-sw-tools { display: none; position: absolute; right: -.6em; top: -.6em; gap: .25em; }
.ma-sw-tools button { width: 1.8em; height: 1.8em; border-radius: 50%; border: 0; background: #ffd23f; color: #231a00; font: inherit; font-weight: 700; cursor: pointer; }
.ma-stream.edit { pointer-events: auto; background: rgba(4, 6, 20, .5); }
.ma-stream.edit .ma-sw { cursor: move; outline: 2px dashed #ffd23f; outline-offset: 2px; touch-action: none; }
.ma-stream.edit .ma-sw.empty { display: block; min-height: 3em; }
.ma-stream.edit .ma-sw-tools { display: flex; }
.ma-tw-bar { position: absolute; left: 50%; top: 1em; transform: translateX(-50%); display: flex; align-items: center; gap: .7em; padding: .5em .8em; background: rgba(10, 14, 38, .95); border: 1px solid #ffd23f; border-radius: 12px; white-space: nowrap; }
.ma-tw-pop { position: absolute; inset: 0; z-index: 90; display: flex; align-items: center; justify-content: center; background: rgba(4, 6, 20, .6); padding: 16px; box-sizing: border-box; font-size: clamp(13px, 1.5vh, 18px); color: #fff; }
.ma-tw-card { width: min(46em, 100%); max-height: 100%; overflow-y: auto; box-sizing: border-box; background: #10143a; border: 1px solid rgba(127, 212, 255, .4); border-radius: 18px; padding: 1em 1.2em; display: flex; flex-direction: column; gap: .7em; }
.ma-tw-head { display: flex; justify-content: space-between; align-items: center; font-size: 1.25em; }
.ma-tw-head .ma-x { position: static; }
.ma-tw-st { padding: .4em .7em; border-radius: 10px; background: rgba(145, 70, 255, .2); line-height: 1.25; }
.ma-tw-chks { display: flex; flex-wrap: wrap; gap: .3em 1.2em; }
.ma-tw-chk { display: flex; align-items: center; gap: .4em; cursor: pointer; }
.ma-tw-chk.big { font-weight: 700; margin-bottom: .4em; }
.ma-tw-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .25em .9em; }
.ma-tw-list.dim { opacity: .45; pointer-events: none; }
.ma-tw-fx { display: flex; align-items: center; gap: .4em; min-width: 0; cursor: pointer; }
.ma-tw-fx .n { flex: 1; min-width: 0; line-height: 1.15; }
.ma-tw-fx.off .n { opacity: .5; }
.ma-tw-fx input[type="number"] { width: 4.8em; flex: none; font: inherit; color: #fff; background: rgba(255, 255, 255, .1); border: 1px solid rgba(255, 255, 255, .25); border-radius: 7px; padding: .1em .3em; box-sizing: border-box; }
.ma-tw-btns { display: flex; flex-wrap: wrap; gap: .5em; }
.ma-tw-btns .ma-btn.pri, .ma-tw-bar .ma-btn.pri { background: #9146ff; color: #fff; }
.ma-tw-note { font-size: .86em; opacity: .75; line-height: 1.3; }
@media (max-width: 640px) { .ma-tw-list { grid-template-columns: minmax(0, 1fr); } }
.ma-tw-bot { margin-top: .45em; flex-wrap: wrap; }
.ma-tw-bot input[type="number"] { width: 3.4em; font: inherit; color: #fff; background: rgba(255, 255, 255, .1); border: 1px solid rgba(255, 255, 255, .25); border-radius: 7px; padding: .1em .3em; box-sizing: border-box; }
.ma-queue { position: absolute; left: 50%; top: 4.6em; transform: translateX(-50%); z-index: 70; display: flex; flex-direction: column; align-items: center; gap: .1em; padding: .45em 1.1em; max-width: min(90%, 34em); text-align: center; color: #fff; background: rgba(10, 14, 38, .88); border: 1px solid #ffd23f; border-radius: 14px; pointer-events: none; font-size: clamp(13px, 1.7vh, 21px); }
.ma-sw-qf { font-size: .84em; color: #c9a7ff; margin-top: .15em; line-height: 1.15; }
.ma-sw-qf:empty { display: none; }
.ma-sw-alert { display: none; padding: .55em 1.1em; font-size: 1.25em; width: 19em; box-sizing: border-box; border-color: #c9a7ff; background: rgba(40, 18, 90, .92); }
.ma-sw-alert.show { display: block; animation: ma-alert-in .34s cubic-bezier(.2, 1.5, .4, 1); }
.ma-stream.edit .ma-sw-alert { display: block; animation: none; }
.ma-sw-alert[hidden] { display: none; }
.ma-sw-alert .ma-sw-b { display: flex; align-items: center; gap: .55em; line-height: 1.2; }
.ma-sw-alert .i { font-size: 1.5em; flex: none; }
.ma-sw-alert .t { min-width: 0; overflow-wrap: anywhere; }
@keyframes ma-alert-in { from { opacity: 0; translate: 0 -.8em; } to { opacity: 1; translate: 0 0; } }
@media (prefers-reduced-motion: reduce) { .ma-sw-alert.show { animation: none; } }

/* Fragezeichen ganz rechts oben, Lautstärke rückt daneben */
.ma-helpbtn { position: absolute; right: .6em; top: calc(var(--ma-bar, 0px) + .55em); z-index: 41; width: 2.5em; height: 2.5em; min-width: 40px; min-height: 40px; padding: 0; border-radius: 50%; border: 1px solid rgba(255,255,255,.35); background: rgba(16,18,48,.82); color: #fff; font-size: 1em; font-weight: 700; cursor: pointer; }
.ma-helpbtn:hover { background: rgba(60,66,130,.95); }
.ma-hud:not([hidden]) ~ .ma-vol { right: 3.9em; }
.ma-top { padding-right: 7em; }
.ma-port .ma-top { padding-right: 6.6em; }
/* Raumcode rechts unten, bis der Flieger startet */
.ma-invite { position: absolute; right: .9em; bottom: .9em; display: flex; flex-direction: column; align-items: center; gap: .05em; padding: .4em 1em .45em; border-radius: .9em; border: 1px solid rgba(125,252,255,.5); background: rgba(16,18,48,.88); color: #fff; cursor: pointer; }
.ma-invite[hidden] { display: none; }
.ma-invite small { font-size: .78em; opacity: .8; }
.ma-invite b { font-size: 1.35em; letter-spacing: .16em; color: #7dfcff; }
.ma-is-touch .ma-invite { right: .6em; bottom: 38%; }
/* Suchbild */
.ma-search { position: absolute; inset: 0; z-index: 60; overflow: hidden; display: flex; flex-direction: column; align-items: center; justify-content: flex-end; transition: opacity .45s ease; }
.ma-search.off { opacity: 0; pointer-events: none; }
.ma-search-cv { position: absolute; inset: 0; width: 100%; height: 100%; }
.ma-search-tx { position: relative; display: flex; flex-direction: column; gap: .35em; max-width: min(92%, 42em); margin-bottom: 9vh; padding: .9em 1.5em; border-radius: 1.2em; background: rgba(12,10,34,.76); color: #fff; text-align: center; }
.ma-search-tx b { font-size: clamp(1.3em, 2.8vw, 2em); line-height: 1.2; }
.ma-search-tx span { opacity: .85; line-height: 1.35; font-size: clamp(1em, 1.7vw, 1.25em); }
.ma-search-x { position: absolute; left: .9em; top: .9em; width: 2.5em; height: 2.5em; min-width: 40px; min-height: 40px; padding: 0; border-radius: 50%; border: 1px solid rgba(255,255,255,.4); background: rgba(12,10,34,.7); color: #fff; font-size: 1em; cursor: pointer; }
/* So geht’s: Hinweise */
.ma-how-more { display: flex; flex-direction: column; gap: .35em; font-size: .92em; line-height: 1.35; }
