﻿/* =====================================================================
   Mein Mig (V25.4 Politur) – Weltraum-Diorama, Präfix „mym-“
   Palette aus game/style.css (Fallbacks identisch).

   Gerüst (EIN flex/grid-Skelett, keine negativen Margins):
     .mym-shell  = Spalte (Kopfzeile → .mym-main), mittig (margin auto),
                   max. 1500px breit, overflow-y: auto → wird der Platz
                   knapp, scrollt die Shell statt abzuschneiden.
     .mym-main   = schmal: gestapelt · ab 1200px Viewport: 2 Spalten
                   (links Diorama-Karte, rechts Werte-Karte + Knöpfe).
     .mym-scene  = Diorama-Karte: Bullauge (Radialverlauf + SVG-Planet),
                   Lichtkegel, Deko mit Parallax-Feeling, Bühne mit
                   Podest + Mig-Schatten, Glas-Namensschild darunter.
     .mym-stage  = Quadrat clamp(240px, 26vmin, 360px) – Anker für
                   Sprechblase, Partikel-Ebene, Nacht-Oval und Zzz.

   V25.3 Wow-FX unverändert: Comic-Sprechblase an der Bühne, Partikel-
   Ebene .mym-fx, Nacht-Overlay .mym-night, Jubel- und Mikro-Animationen.
   Alles liegt absolut IN der Bühne (pointer-events: none).
   ===================================================================== */

.mym-overlay {
  --mym-cyan: var(--cyan, #4fe3ff);
  --mym-pink: var(--pink, #ff4fd8);
  --mym-yellow: var(--yellow, #ffd23f);
  --mym-orange: var(--orange, #ff9f1c);
  --mym-green: var(--green, #5dff9e);
  --mym-red: var(--red, #ff5470);
  --mym-lilac: #b26bff;
  --mym-amber: #e8b964;
  --mym-text: var(--text, #f4f1ff);
  --mym-muted: var(--muted, #a49fcf);
  --mym-glass: var(--glass, rgba(28, 24, 62, 0.72));
  --mym-line: rgba(255, 255, 255, 0.1);
  --mym-back: var(--ease-back, cubic-bezier(.34, 1.56, .64, 1));
  --mym-out: var(--ease-out, cubic-bezier(.2, .9, .25, 1));
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: flex;
  color: var(--mym-text);
  font-family: var(--font, 'Fredoka', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif);
  font-weight: 500;
  opacity: 0;
  transition: opacity .25s var(--mym-out);
}
.mym-overlay.mym-on { opacity: 1; }
.mym-overlay[hidden], .mym-overlay [hidden] { display: none !important; }
.mym-overlay *, .mym-overlay *::before, .mym-overlay *::after { box-sizing: border-box; }
.mym-overlay button { font: inherit; color: inherit; border: 0; background: none; cursor: pointer; -webkit-tap-highlight-color: transparent; }
.mym-overlay button:disabled { cursor: default; opacity: .5; }
.mym-overlay p { margin: 0; }
.mym-overlay :focus { outline: none; }
.mym-overlay :focus-visible:not(.gp-focus) { outline: 3px solid var(--mym-cyan); outline-offset: 2px; }
body.mym-open { overflow: hidden; }

/* Inline-SVG-Icons: 1em groß, laufen über font-size des Elterns */
.mym-ico { display: inline-block; width: 1em; height: 1em; flex: 0 0 auto; vertical-align: -0.12em; }

/* ---------- Sternenhimmel-Hintergrund ---------- */
.mym-bg {
  position: absolute; inset: 0;
  background:
    radial-gradient(ellipse 90% 42% at 50% 112%, rgba(79, 227, 255, .12), transparent 62%),
    radial-gradient(ellipse 65% 55% at 14% 8%, rgba(178, 107, 255, .22), transparent 62%),
    radial-gradient(ellipse 55% 45% at 88% 16%, rgba(255, 79, 216, .1), transparent 60%),
    linear-gradient(180deg, #1c1546 0%, #120e2e 55%, #0b0918 100%);
}
.mym-bg::before {
  content: ''; position: absolute; inset: 0;
  background-image:
    radial-gradient(1.6px 1.6px at 22px 34px, rgba(255, 255, 255, .9), transparent 55%),
    radial-gradient(1.2px 1.2px at 128px 92px, rgba(255, 255, 255, .7), transparent 55%),
    radial-gradient(1.8px 1.8px at 196px 170px, rgba(173, 228, 255, .8), transparent 55%),
    radial-gradient(1.1px 1.1px at 64px 206px, rgba(255, 255, 255, .55), transparent 55%),
    radial-gradient(1.4px 1.4px at 240px 56px, rgba(255, 215, 130, .7), transparent 55%);
  background-size: 280px 280px;
}
.mym-bg::after {
  content: ''; position: absolute; inset: 0;
  background-image:
    radial-gradient(2px 2px at 90px 140px, rgba(255, 255, 255, .85), transparent 55%),
    radial-gradient(1.3px 1.3px at 300px 60px, rgba(255, 190, 240, .7), transparent 55%),
    radial-gradient(1.5px 1.5px at 210px 280px, rgba(160, 230, 255, .75), transparent 55%);
  background-size: 420px 420px;
  animation: mymTwinkle 3.8s ease-in-out infinite alternate;
}
@keyframes mymTwinkle { from { opacity: .35; } to { opacity: 1; } }

/* ---------- Grundgerüst: Shell mittig, scrollt im Notfall ---------- */
.mym-shell {
  position: relative;
  margin: auto;
  width: min(96vw, 1500px);
  max-height: 100%;
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: clamp(12px, 2vh, 20px);
  padding: calc(clamp(10px, 2vh, 24px) + var(--safe-t, 0px)) clamp(12px, 2.5vw, 32px)
           calc(clamp(12px, 2.2vh, 26px) + var(--safe-b, 0px));
  overflow-y: auto;
  overflow-x: hidden;
}

/* ---------- Kopfzeile: ‹ Zurück · Titel · ✦ / Streak / Garderobe ---------- */
.mym-head {
  width: 100%;
  flex: 0 0 auto;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 10px;
}
.mym-overlay .mym-back {
  justify-self: start;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 40px;
  padding: 7px 18px 7px 14px;
  border-radius: 999px;
  background: rgba(13, 11, 26, .55);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
  border: 1px solid var(--mym-line);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .12);
  font-weight: 600;
  font-size: 15px;
  white-space: nowrap;
  transition: transform .15s var(--mym-out), border-color .15s, background .15s;
}
.mym-overlay .mym-back:hover { transform: translateY(-1px); border-color: rgba(255, 255, 255, .28); background: rgba(255, 255, 255, .08); }
.mym-title { display: flex; align-items: center; justify-content: center; gap: 10px; min-width: 0; }
.mym-title-ico {
  display: inline-flex; align-items: center; justify-content: center;
  width: 40px; height: 40px;
  border-radius: 13px;
  background: linear-gradient(180deg, rgba(93, 255, 158, .2), rgba(93, 255, 158, .06));
  border: 1px solid rgba(93, 255, 158, .3);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .14);
  color: #9beebb;
  font-size: 21px;
}
.mym-title b { display: block; font-size: clamp(17px, 2.2vmin, 24px); font-weight: 700; white-space: nowrap; }
.mym-title small { display: block; color: var(--mym-muted); font-size: clamp(11px, 1.4vmin, 13px); white-space: nowrap; }
.mym-head-r { justify-self: end; display: flex; flex-wrap: wrap; align-items: center; justify-content: flex-end; gap: 8px; min-width: 0; }
.mym-overlay .mym-chip {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  min-height: 40px;
  padding: 6px 15px;
  border-radius: 999px;
  background: rgba(13, 11, 26, .55);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
  border: 1px solid var(--mym-line);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .12);
  font-weight: 600;
  font-size: 14px;
  white-space: nowrap;
}
.mym-coins {
  position: relative;                           /* Anker für den „−5 ✦“-Flieger */
  border-color: rgba(255, 210, 63, .32);
  color: #ffdf8e;
  font-variant-numeric: tabular-nums;
}
.mym-streak .mym-ico { font-size: 16px; color: #ffac4d; }
.mym-streak.is-off { opacity: .45; filter: grayscale(1); }
.mym-overlay .mym-chip-dress {
  background: linear-gradient(180deg, #a07a30, #6f521d);
  border-color: rgba(255, 213, 140, .35);
  color: #ffeccb;
  font-weight: 600;
  transition: transform .15s var(--mym-out), filter .15s, border-color .15s;
}
.mym-chip-dress .mym-ico { font-size: 16px; }
.mym-overlay .mym-chip-dress:hover:not(:disabled) { transform: translateY(-1px); filter: brightness(1.12); border-color: rgba(255, 213, 140, .55); }

/* ---------- Hauptbereich: gestapelt, ab 1200px zwei Spalten ---------- */
.mym-main {
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
}
.mym-left {
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  min-width: 0;
}
.mym-right {
  width: min(100%, 600px);
  min-width: 0;
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 20px;
}

/* ---------- Diorama-Karte: Bullauge + Lichtkegel + Bühne + Namensschild ---------- */
.mym-scene {
  position: relative;
  width: min(100%, 580px);
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: clamp(14px, 2.2vmin, 24px) clamp(14px, 2.2vmin, 26px) clamp(14px, 2vmin, 22px);
  border-radius: 26px;
  background: linear-gradient(180deg, rgba(42, 34, 92, .5), rgba(14, 11, 34, .62));
  border: 1px solid var(--mym-line);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .08), 0 18px 44px rgba(0, 0, 0, .35);
  overflow: hidden;
}
.mym-scene::after {                              /* sanfte Rand-Vignette */
  content: '';
  position: absolute; inset: 0;
  pointer-events: none;
  border-radius: inherit;
  box-shadow: inset 0 0 64px rgba(5, 4, 16, .5);
}

/* weiche Lichtkegel von oben */
.mym-beams { position: absolute; inset: 0; pointer-events: none; overflow: hidden; transition: opacity .6s var(--mym-out); }
.mym-beams::before, .mym-beams::after {
  content: '';
  position: absolute;
  top: -14%;
  width: 34%; height: 80%;
  background: linear-gradient(180deg, rgba(170, 200, 255, .13), rgba(170, 200, 255, 0) 72%);
  filter: blur(10px);
  transform-origin: 50% 0;
}
.mym-beams::before { left: 15%; transform: rotate(14deg); }
.mym-beams::after { right: 13%; width: 26%; transform: rotate(-16deg); opacity: .8; }

/* winzige Deko mit Parallax-Feeling (max. 20 % Deckkraft) */
.mym-deco { position: absolute; z-index: 1; pointer-events: none; opacity: .18; color: #cfe3ff; }
.mym-deco svg { display: block; width: 100%; height: auto; }
.mym-deco-a { top: 9%; left: 7%; width: 18px; animation: mymFloatA 9s ease-in-out infinite alternate; }
.mym-deco-b { top: 14%; right: 6%; width: 34px; color: #ffd9a8; opacity: .16; animation: mymFloatB 13s ease-in-out infinite alternate; }
.mym-deco-c { bottom: 20%; left: 9%; width: 12px; animation: mymFloatA 11s ease-in-out infinite alternate-reverse; }
@keyframes mymFloatA { from { transform: translateY(0) rotate(0deg); } to { transform: translateY(-10px) rotate(14deg); } }
@keyframes mymFloatB { from { transform: translateY(0); } to { transform: translateY(9px); } }

/* Bullauge hinter dem Mig */
.mym-dio {
  position: relative;
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: clamp(26px, 4.5vmin, 54px) clamp(24px, 4.5vmin, 52px) clamp(6px, 1.2vmin, 12px);
}
.mym-porthole {
  position: absolute;
  left: 50%; top: 46%;
  transform: translate(-50%, -50%);
  width: clamp(300px, 34vmin, 440px);
  aspect-ratio: 1 / 1;
  border-radius: 50%;
  background: radial-gradient(circle at 36% 28%, #322a7e 0%, #1d1655 46%, #0d0a2c 78%, #0a0722 100%);
  border: 1px solid rgba(255, 255, 255, .2);
  box-shadow:
    inset 0 0 54px rgba(4, 3, 14, .6),                 /* innere Vignette */
    inset 0 14px 30px rgba(130, 150, 255, .1),
    0 20px 50px rgba(0, 0, 0, .42);
  overflow: hidden;
  transition: filter .6s var(--mym-out);
}
.mym-ph-art { position: absolute; inset: 0; width: 100%; height: 100%; }
.mym-moon {
  position: absolute;
  z-index: 1;
  left: 33%; top: 21%;
  width: clamp(26px, 3.4vmin, 38px); height: auto;
  opacity: 0;
  pointer-events: none;
  filter: drop-shadow(0 0 12px rgba(255, 225, 150, .5));
  transition: opacity .6s var(--mym-out);
  animation: mymMoon 3.2s ease-in-out infinite alternate;
}
@keyframes mymMoon { from { transform: translateY(0) rotate(-8deg); } to { transform: translateY(-7px) rotate(6deg); } }
.mym-scene.is-night .mym-porthole { filter: brightness(.55) saturate(.75); }
.mym-scene.is-night .mym-moon { opacity: 1; }
.mym-scene.is-night .mym-beams { opacity: .25; }
.mym-scene.is-night .mym-deco { opacity: .08; }
.mym-deco { transition: opacity .6s var(--mym-out); }

/* ---------- Bühne: Quadrat, Anker für Canvas, Podest, FX, Nacht ---------- */
.mym-stage {
  position: relative;
  z-index: 2;
  width: clamp(240px, 26vmin, 360px);
  aspect-ratio: 1 / 1;
  flex: 0 0 auto;
}
.mym-canvas {
  position: relative;
  z-index: 2;
  display: block;
  width: 100%; height: 100%;
  filter: drop-shadow(0 10px 12px rgba(0, 0, 0, .3));
}
.mym-podium {                                    /* Podest: flache Ellipse, oben heller, Leuchtring */
  position: absolute;
  z-index: 1;
  left: 50%; bottom: 2.5%;
  width: 76%; height: 15%;
  transform: translateX(-50%);
  border-radius: 50%;
  background: linear-gradient(180deg, rgba(150, 162, 255, .32) 0%, rgba(74, 70, 152, .3) 45%, rgba(26, 22, 64, .44) 100%);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .24), 0 14px 26px rgba(0, 0, 0, .45);
}
.mym-podium::after {
  content: '';
  position: absolute; inset: 9% 5%;
  border-radius: 50%;
  box-shadow: inset 0 0 0 1.5px rgba(150, 220, 255, .26);
}
.mym-migshadow {                                 /* weicher Schlagschatten des Migs auf dem Podest */
  position: absolute;
  z-index: 1;
  left: 50%; bottom: 7.5%;
  width: 44%; height: 7%;
  transform: translateX(-50%);
  border-radius: 50%;
  background: rgba(5, 4, 16, .5);
  filter: blur(7px);
}
.mym-zzz {
  position: absolute;
  z-index: 5;                                    /* über Nacht-Overlay (3) und FX-Ebene (4) */
  top: 6%; right: 10%;
  font-weight: 700;
  color: var(--mym-cyan);
  text-shadow: 0 0 12px rgba(79, 227, 255, .6);
  pointer-events: none;
}
.mym-zzz span { display: inline-block; animation: mymZzz 2.4s ease-in-out infinite; }
.mym-zzz span:nth-child(1) { font-size: clamp(22px, 2.8vmin, 32px); animation-delay: 0s; }
.mym-zzz span:nth-child(2) { font-size: clamp(17px, 2.2vmin, 26px); animation-delay: .4s; }
.mym-zzz span:nth-child(3) { font-size: clamp(13px, 1.7vmin, 20px); animation-delay: .8s; }
@keyframes mymZzz {
  0% { opacity: 0; transform: translate(0, 10px) rotate(-6deg); }
  30% { opacity: 1; }
  100% { opacity: 0; transform: translate(14px, -26px) rotate(10deg); }
}

/* ---------- Glas-Namensschild unter dem Mig ---------- */
.mym-nameplate {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: center;
  gap: 10px;
  max-width: 94%;
  margin-top: clamp(8px, 1.4vmin, 14px);
  padding: 7px 8px 7px 20px;
  border-radius: 999px;
  background: rgba(12, 10, 28, .6);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, .1);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .18), 0 8px 20px rgba(0, 0, 0, .35);
  font-size: 18px;
  font-weight: 600;
  letter-spacing: .01em;
}
.mym-nameplate-tx { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.mym-overlay .mym-nameplate-edit {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px; height: 32px;
  border-radius: 50%;
  background: rgba(255, 255, 255, .08);
  border: 1px solid rgba(255, 255, 255, .12);
  color: var(--mym-text);
  font-size: 14px;
  opacity: .75;
  transition: opacity .15s, background .15s, transform .15s var(--mym-back);
}
.mym-overlay .mym-nameplate-edit:hover { opacity: 1; background: rgba(255, 255, 255, .16); transform: scale(1.08); }
.mym-on .mym-nameplate { animation: mymPlateIn .5s var(--mym-out) .1s both; }
@keyframes mymPlateIn { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }

/* Umbenennen-Editor (ersetzt das Namensschild, solange er offen ist) */
.mym-name-edit {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: clamp(8px, 1.4vmin, 14px);
  max-width: 100%;
}
.mym-name-input {
  width: clamp(170px, 22vw, 250px);
  min-width: 0;
  padding: 9px 14px;
  border-radius: 999px;
  border: 1px solid var(--mym-line);
  background: rgba(13, 11, 26, .66);
  color: var(--mym-text);
  font: inherit;
  font-size: 16px;
  text-align: center;
}
.mym-name-input:focus { border-color: var(--mym-cyan); }
.mym-overlay .mym-btn {
  padding: 9px 14px;
  border-radius: 999px;
  font-weight: 600;
  background: rgba(13, 11, 26, .6);
  border: 1px solid var(--mym-line);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .12);
  transition: transform .15s var(--mym-back), border-color .15s;
  white-space: nowrap;
}
.mym-overlay .mym-btn:hover { transform: scale(1.05); }
.mym-overlay .mym-btn-ok { border-color: rgba(93, 255, 158, .5); color: #8fe6b4; }
.mym-overlay .mym-btn-no { color: var(--mym-muted); }

/* ---------- Karten rechts ---------- */
.mym-card {
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 14px;
  padding: clamp(16px, 2vmin, 22px) clamp(16px, 2.2vmin, 24px);
  border-radius: 22px;
  background: linear-gradient(180deg, rgba(36, 29, 76, .55), rgba(17, 14, 38, .62));
  border: 1px solid var(--mym-line);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .07), 0 14px 34px rgba(0, 0, 0, .3);
}
.mym-card-label {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: rgba(244, 241, 255, .5);
}
.mym-moodline {
  min-height: 1.4em;
  font-size: 15px;
  font-weight: 500;
  color: var(--mym-text);
  opacity: .92;
}

/* ---------- Drei ruhige Balken: Satt / Energie / Zuneigung ---------- */
.mym-bars {
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.mym-bar {
  display: grid;
  grid-template-columns: 22px minmax(76px, auto) 1fr 48px;
  align-items: center;
  gap: 10px;
  font-size: 14px;
  font-weight: 600;
}
.mym-bar-ico { display: inline-flex; align-items: center; justify-content: center; font-size: 18px; }
.mym-bar-food .mym-bar-ico { color: #79dba0; }
.mym-bar-energy .mym-bar-ico { color: #e8c275; }
.mym-bar-love .mym-bar-ico { color: #e795b1; }
.mym-bar-label { white-space: nowrap; color: rgba(244, 241, 255, .85); }
.mym-bar-track {
  position: relative;
  display: block;
  height: 10px;
  border-radius: 999px;
  background: rgba(255, 255, 255, .06);
  box-shadow: inset 0 1px 2px rgba(0, 0, 0, .35);
  overflow: hidden;
}
.mym-bar-fill {
  position: absolute;
  inset: 0 auto 0 0;
  width: 100%;
  border-radius: 999px;
  transition: width .6s var(--mym-out);
}
.mym-bar-food .mym-bar-fill { background: linear-gradient(90deg, #3f9e68, #58d68d); }
.mym-bar-energy .mym-bar-fill { background: linear-gradient(90deg, #c2913e, #e8b964); }
.mym-bar-love .mym-bar-fill { background: linear-gradient(90deg, #b35e7f, #e089a7); }
.mym-bar-val { text-align: right; font-variant-numeric: tabular-nums; font-size: 13px; font-weight: 600; color: var(--mym-text); opacity: .6; }
.mym-bar.is-low .mym-bar-ico { animation: mymLow 1s ease-in-out infinite alternate; }
@keyframes mymLow { from { transform: none; } to { transform: scale(1.18); } }

/* ---------- Pflege heute (Glas-Pills mit SVG-Häkchen) + Gast-Teaser ---------- */
.mym-care {
  min-height: 30px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  color: var(--mym-muted);
}
.mym-care-t { white-space: nowrap; opacity: .85; }
.mym-care-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 12px;
  border-radius: 999px;
  background: rgba(255, 255, 255, .05);
  border: 1px solid var(--mym-line);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .08);
  color: rgba(244, 241, 255, .72);
  white-space: nowrap;
}
.mym-care-chip .mym-ico { font-size: 13px; opacity: .45; }
.mym-care-chip.is-done .mym-ico { opacity: 1; }
.mym-care-feed.is-done { background: rgba(88, 214, 141, .16); border-color: rgba(88, 214, 141, .45); color: #8fe6b4; }
.mym-care-pet.is-done { background: rgba(224, 137, 167, .16); border-color: rgba(224, 137, 167, .45); color: #f0a8c0; }
.mym-care-sleep.is-done { background: rgba(150, 120, 230, .18); border-color: rgba(164, 136, 240, .45); color: #c2aaf2; }
.mym-care-hint { white-space: nowrap; opacity: .75; }
.mym-care-teaser {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px;
  border-radius: 999px;
  border: 1px dashed rgba(255, 210, 63, .4);
  color: rgba(255, 222, 130, .85);
  white-space: nowrap;
}
.mym-care-teaser .mym-ico { font-size: 14px; }

/* ---------- Aktions-Knöpfe: 2×2 + breite Garderobe, gedeckte Verläufe ---------- */
.mym-actions {
  width: 100%;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}
.mym-overlay .mym-act {
  display: flex;
  align-items: center;
  gap: 12px;
  text-align: left;
  min-height: 72px;
  padding: 12px 16px;
  border-radius: 18px;
  background: linear-gradient(180deg, #2c7047, #1b4530);
  border: 1px solid rgba(255, 255, 255, .12);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .2), 0 10px 24px rgba(0, 0, 0, .32);
  transition: transform .16s var(--mym-out), filter .16s, box-shadow .16s;
}
.mym-overlay .mym-act:hover:not(:disabled) {
  transform: translateY(-2px);
  filter: brightness(1.12);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .26), 0 14px 30px rgba(0, 0, 0, .38);
}
.mym-overlay .mym-act:active:not(:disabled) { transform: scale(.97); filter: brightness(1.04); transition-duration: .07s; }
.mym-act-ico {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px; height: 36px;
  border-radius: 50%;
  background: rgba(255, 255, 255, .14);
  border: 1px solid rgba(255, 255, 255, .18);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .25);
  color: #fff;
  font-size: 20px;
}
.mym-act-tx { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.mym-act-t { font-size: 16px; font-weight: 600; line-height: 1.15; color: #fff; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.mym-act-sub { font-size: 12px; color: rgba(255, 255, 255, .55); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.mym-overlay .mym-act-feed { background: linear-gradient(180deg, #2c7047, #1b4530); }
.mym-overlay .mym-act-pet { background: linear-gradient(180deg, #8f4063, #58263d); }
.mym-overlay .mym-act-sleep { background: linear-gradient(180deg, #4b3a8a, #2c2159); }
.mym-overlay .mym-act-name { background: linear-gradient(180deg, #1b6b78, #0f4350); }
.mym-overlay .mym-act-dress {
  grid-column: 1 / -1;
  background: linear-gradient(180deg, #96712d, #5f461a);
}
.mym-act-sleep .mym-i-sun { display: none; }
.mym-act-sleep.is-wake .mym-i-moon { display: none; }
.mym-act-sleep.is-wake .mym-i-sun { display: inline-block; }

/* ---------- Overlay-Toasts: fixiert, schweben über allem ---------- */
.mym-toasts {
  position: fixed;
  left: 50%;
  bottom: calc(26px + var(--safe-b, 0px));
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  pointer-events: none;
  z-index: 1002;
}
.mym-toast {
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 8px 18px 8px 10px;
  border-radius: 999px;
  background: var(--glass-solid, rgba(28, 24, 62, 0.95));
  border: 1px solid var(--mym-line);
  box-shadow: 0 10px 26px rgba(0, 0, 0, .45);
  font-weight: 600;
  font-size: 14px;
  white-space: nowrap;
  animation: mymToastIn .35s var(--mym-back);
}
.mym-toast-ico {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 30px; height: 30px;
  border-radius: 50%;
  background: rgba(255, 255, 255, .12);
  box-shadow: inset 0 0 0 1px var(--mym-line);
  font-size: 15px;
}
@keyframes mymToastIn { from { opacity: 0; transform: translateY(18px) scale(.9); } to { opacity: 1; transform: none; } }

/* =====================================================================
   Wow-FX (V25.3): Sprechblase, Partikel, Nacht, Jubel, Mikro-Animationen
   Alle FX-Elemente leben absolut in der Bühne, pointer-events: none;
   das JS entfernt sie nach ihrer Animation wieder aus dem DOM.
   ===================================================================== */

/* ---------- Comic-Sprechblase oben rechts an der Bühne ---------- */
.mym-bubble {
  position: absolute;
  z-index: 6;
  top: -2%;
  right: -4%;
  max-width: 78%;
  padding: 9px 15px;
  border-radius: 16px;
  background: #fffdf4;
  border: 2px solid rgba(36, 28, 78, .28);
  box-shadow: 0 10px 26px rgba(0, 0, 0, .38);
  color: #241c4e;
  font-weight: 600;
  font-size: clamp(13px, 1.7vmin, 17px);
  line-height: 1.3;
  text-align: center;
  pointer-events: none;
  transform-origin: 22% 105%;
  animation: mymBubbleIn .42s var(--mym-back) both;
}
.mym-bubble::after {                             /* Zeiger-Dreieck zum Mig (unten links) */
  content: '';
  position: absolute;
  left: 16%;
  bottom: -8.5px;
  width: 15px; height: 15px;
  background: #fffdf4;
  border-right: 2px solid rgba(36, 28, 78, .28);
  border-bottom: 2px solid rgba(36, 28, 78, .28);
  border-bottom-right-radius: 4px;
  transform: rotate(45deg);
}
.mym-bubble.is-mini { padding: 6px 11px; font-size: clamp(12px, 1.4vmin, 14px); max-width: 56%; }
.mym-bubble.is-swap { animation: mymBubbleSwap .4s var(--mym-back); }
.mym-bubble.is-out { animation: mymBubbleOut .3s ease-in both; }
@keyframes mymBubbleIn {                         /* bouncy Pop-in mit Überschwingen */
  0% { opacity: 0; transform: scale(.2) rotate(-8deg); }
  62% { opacity: 1; transform: scale(1.12) rotate(2.5deg); }
  82% { transform: scale(.96) rotate(-1deg); }
  100% { opacity: 1; transform: scale(1); }
}
@keyframes mymBubbleSwap {                       /* Mini-Wackler: neue Meldung ersetzt die alte */
  0% { transform: scale(1); }
  30% { transform: scale(1.09) rotate(-3deg); }
  65% { transform: scale(.96) rotate(2deg); }
  100% { transform: scale(1); }
}
@keyframes mymBubbleOut { to { opacity: 0; transform: scale(.4) translateY(10px); } }

/* ---------- FX-Ebene + Partikel (Funken, SVG-Herzen, Sonne, SVG-Apfel) ---------- */
.mym-fx { position: absolute; inset: 0; z-index: 4; pointer-events: none; }
.mym-p {
  position: absolute;
  display: inline-block;
  margin: -0.55em 0 0 -0.55em;
  line-height: 1;
  pointer-events: none;
  will-change: transform, opacity;
}
.mym-p svg { display: block; width: 1em; height: 1em; }
.mym-crumb { color: var(--mym-yellow); text-shadow: 0 0 8px rgba(255, 210, 63, .8); animation: mymCrumb .72s ease-out var(--delay, 0ms) both; }
@keyframes mymCrumb {
  0% { opacity: 0; transform: translate(0, 0) scale(.5); }
  14% { opacity: 1; }
  100% { opacity: 0; transform: translate(var(--dx, 0px), calc(var(--dy, 0px) + 26px)) scale(.9) rotate(150deg); }
}
.mym-heart { filter: drop-shadow(0 0 8px rgba(255, 79, 216, .55)); animation: mymHeart 1.35s ease-out var(--delay, 0ms) both; }
@keyframes mymHeart {
  0% { opacity: 0; transform: translate(0, 0) scale(.4); }
  18% { opacity: 1; transform: translate(calc(var(--dx, 0px) * .3), -24px) scale(1.15); }
  100% { opacity: 0; transform: translate(var(--dx, 0px), -120px) scale(.75); }
}
.mym-sun { color: #ffd36b; filter: drop-shadow(0 0 10px rgba(255, 215, 130, .7)); animation: mymSun .95s ease-out var(--delay, 0ms) both; }
@keyframes mymSun {
  0% { opacity: 0; transform: translate(0, 0) scale(.4) rotate(0deg); }
  22% { opacity: 1; }
  100% { opacity: 0; transform: translate(var(--dx, 0px), var(--dy, 0px)) scale(1.15) rotate(40deg); }
}
.mym-apple {
  left: 50%; top: 55%;
  z-index: 5;
  font-size: clamp(24px, 3.2vmin, 34px);
  filter: drop-shadow(0 6px 10px rgba(0, 0, 0, .45));
  animation: mymFly .62s cubic-bezier(.5, .05, .55, 1) both;
}
@keyframes mymFly {                              /* Bogen-Kurve: Start am Knopf (--fx/--fy aus JS) */
  0% { opacity: 0; transform: translate(var(--fx, 120px), var(--fy, 80px)) rotate(0deg) scale(.7); }
  10% { opacity: 1; }
  55% { transform: translate(calc(var(--fx, 120px) * .42), calc(var(--fy, 80px) * .42 - 80px)) rotate(-190deg) scale(1.1); }
  100% { opacity: 1; transform: translate(0, -6px) rotate(-360deg) scale(.95); }
}

/* ---------- Bühnen-Momente: Squash (Futter), Wackler (Streicheln), Hüpfer (Idle) ---------- */
.mym-stage.is-squash .mym-canvas { animation: mymSquash .25s ease-out; transform-origin: 50% 88%; }
@keyframes mymSquash {
  0% { transform: scaleY(1); }
  40% { transform: scaleY(.92) scaleX(1.05); }
  100% { transform: scaleY(1); }
}
.mym-stage.is-wiggle { animation: mymWiggle .4s ease-in-out; transform-origin: 50% 90%; }
@keyframes mymWiggle {
  0%, 100% { transform: rotate(0deg); }
  25% { transform: rotate(1.5deg); }
  75% { transform: rotate(-1.5deg); }
}
.mym-canvas.is-hop { animation: mymHop .58s var(--mym-back); }
@keyframes mymHop {
  0%, 100% { transform: translateY(0); }
  35% { transform: translateY(-6%); }
  60% { transform: translateY(0) scaleY(.96); }
  80% { transform: translateY(-2%); }
}

/* ---------- Schlaf: Nacht-Oval, atmender Mig, gedimmte rechte Spalte ---------- */
.mym-night {
  position: absolute; inset: -4%;
  z-index: 3;
  pointer-events: none;
  opacity: 0;
  transition: opacity .6s var(--mym-out);
  border-radius: 50%;
  background: radial-gradient(ellipse 70% 60% at 50% 58%, rgba(7, 5, 20, .5), rgba(7, 5, 20, .26) 58%, transparent 78%);
}
.mym-stage.is-night .mym-night { opacity: 1; }
.mym-stage.is-night .mym-canvas { animation: mymBreathe 2.4s ease-in-out infinite; transform-origin: 50% 80%; }
@keyframes mymBreathe { 0%, 100% { transform: scale(1); } 50% { transform: scale(1.02); } }
.mym-right { transition: opacity .6s var(--mym-out); }
.mym-overlay.mym-asleep .mym-right { opacity: .6; }

/* ---------- Jubel & Mikro-FX: Chip-Parade, Streak-Flamme, ✦-Abzug, Balken ---------- */
.mym-care.is-party .mym-care-chip { animation: mymChipPop .55s var(--mym-back) both; }
.mym-care.is-party .mym-care-chip:nth-child(2) { animation-delay: 0s; }
.mym-care.is-party .mym-care-chip:nth-child(3) { animation-delay: .14s; }
.mym-care.is-party .mym-care-chip:nth-child(4) { animation-delay: .28s; }
@keyframes mymChipPop {
  0% { transform: scale(1); }
  45% { transform: scale(1.22) rotate(-3deg); box-shadow: 0 0 18px rgba(93, 255, 158, .5); }
  100% { transform: scale(1); }
}
.mym-streak.is-pulse { animation: mymStreakPulse 1.1s var(--mym-back); }
@keyframes mymStreakPulse {
  0%, 100% { transform: scale(1); }
  35% { transform: scale(1.3); box-shadow: 0 0 30px rgba(255, 159, 28, .6); }
}
.mym-coins.is-spend { animation: mymSpend .55s ease; }
@keyframes mymSpend {
  30% { color: var(--mym-red); border-color: rgba(255, 84, 112, .85); box-shadow: 0 0 18px rgba(255, 84, 112, .5); transform: scale(1.07); }
}
.mym-coin-fly {
  position: absolute;
  left: 50%; top: calc(100% + 2px);
  color: var(--mym-red);
  font-weight: 700;
  font-size: 14px;
  white-space: nowrap;
  pointer-events: none;
  text-shadow: 0 0 8px rgba(255, 84, 112, .6);
  animation: mymCoinFly .9s ease-out both;
}
@keyframes mymCoinFly {
  0% { opacity: 0; transform: translate(-50%, -6px); }
  25% { opacity: 1; transform: translate(-50%, 0); }
  100% { opacity: 0; transform: translate(-50%, 16px); }
}
.mym-bar.is-up .mym-bar-fill { animation: mymBarGlow .8s ease; }
@keyframes mymBarGlow {
  0%, 100% { filter: brightness(1); }
  35% { filter: brightness(1.6); }
}

/* ---------- Breite Fenster (ab 1200px): zwei Spalten ---------- */
@media (min-width: 1200px) {
  .mym-main {
    flex: 1 0 auto;
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    align-items: center;
    justify-items: center;
    gap: clamp(20px, 2.4vw, 44px);
  }
  .mym-right { width: 100%; max-width: 640px; }
}

/* ---------- Mittlere Fenster: Unterzeile weg, damit nichts kollidiert ---------- */
@media (max-width: 1100px) {
  .mym-title small { display: none; }
}

/* ---------- Schmale Fenster: Kopfzeile bricht sauber um ---------- */
@media (max-width: 860px) {
  .mym-head { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 8px 12px; }
  .mym-back { order: 0; }
  .mym-title { order: 1; flex: 1 1 auto; justify-content: flex-start; }
  .mym-title small { display: none; }
  .mym-head-r { order: 2; flex: 1 1 100%; justify-content: center; }
  .mym-chip { min-height: 38px; padding: 5px 12px; }
}

/* ---------- Handys: kompaktere Karten und Knöpfe ---------- */
@media (max-width: 520px) {
  .mym-scene { padding: 12px; }
  .mym-dio { padding: 22px 12px 6px; }
  .mym-porthole { width: clamp(270px, 86vw, 330px); }
  .mym-actions { gap: 10px; }
  .mym-act { min-height: 64px; padding: 10px 12px; gap: 10px; }
  .mym-act-t { font-size: 15px; }
  .mym-bar { grid-template-columns: 20px minmax(64px, auto) 1fr 44px; gap: 8px; }
  .mym-nameplate { font-size: 16px; }
}

/* ---------- Ruhe bitte ---------- */
@media (prefers-reduced-motion: reduce) {
  .mym-overlay *, .mym-overlay *::before, .mym-overlay *::after { animation: none !important; transition: none !important; }
}

/* ===== V26: Spiel-Leiste bleibt sichtbar – Münz-Effekte am echten ✦-Chip oben ===== */
#tb-coins-chip { position: relative; }
#tb-coins-chip.is-spend { animation: mymSpend .62s ease; }
#tb-coins-chip .mym-coin-fly {
  position: absolute; left: 50%; top: 100%;
  transform: translateX(-50%);
  color: #ff8a9b; font-weight: 700; font-size: 13px; white-space: nowrap;
  pointer-events: none; z-index: 40;
  animation: mymCoinFly .95s ease forwards;
}

/* ===== V26.2: Mein Mig skaliert wie das Spiel (gleiche Zoom-Stufen wie #ui in style.css) =====
   Ohne das wirkte das Overlay auf Ultrawide/5K wie eine Briefmarke in der Leere. */
@media (min-width: 1600px) and (min-height: 1000px) { .mym-overlay { zoom: 1.12; } }
@media (min-width: 2200px) and (min-height: 1200px) { .mym-overlay { zoom: 1.28; } }
@media (min-width: 3000px) and (min-height: 1400px) { .mym-overlay { zoom: 1.45; } }
/* Breitbild: mehr Präsenz für Szene + Spalten */
@media (min-width: 2200px) { .mym-shell { width: min(92vw, 1560px); } }

/* =====================================================================
   V30: Bedürfnisse über „Migs Hafen“ + Bereich „Spiele“
   ===================================================================== */
.mym-canvas { cursor: pointer; }
.mym-overlay .mym-act { position: relative; }
.mym-overlay .mym-act-play { background: linear-gradient(180deg, #8f4063, #58263d); }
.mym-act .mym-act-tx { flex: 1 1 auto; }
.mym-act-need {
  flex: 0 0 auto; width: 46px; height: 46px; margin: -4px -4px -4px 0;
  border-radius: 13px; background: rgba(0, 0, 0, .24); border: 1px solid rgba(255, 255, 255, .14);
  display: flex; align-items: center; justify-content: center;
}
.mym-act-need img { width: 100%; height: 100%; display: block; }
.mym-overlay .mym-act.is-have {
  box-shadow: 0 0 0 2px rgba(93, 255, 158, .8), 0 0 24px rgba(93, 255, 158, .35), 0 10px 24px rgba(0, 0, 0, .32);
  animation: mymHave 1.6s ease-in-out infinite;
}
@keyframes mymHave { 50% { box-shadow: 0 0 0 3px rgba(93, 255, 158, .95), 0 0 34px rgba(93, 255, 158, .5), 0 10px 24px rgba(0, 0, 0, .32); } }
.mym-act.is-have .mym-act-sub { color: #a6ffcb; }
.mym-act.is-have .mym-act-need { background: rgba(93, 255, 158, .18); border-color: rgba(93, 255, 158, .6); }
.mym-act.is-need .mym-act-sub { color: #ffe3a3; }
.mym-overlay .mym-act.is-full { filter: saturate(.65) brightness(.92); }
.mym-act.is-full .mym-act-sub { color: rgba(255, 255, 255, .55); }
.mym-overlay .mym-chip-games {
  background: linear-gradient(180deg, #2a6f9a, #1a4568);
  border-color: rgba(79, 227, 255, .4); color: #dff8ff;
  transition: transform .15s var(--mym-out), filter .15s;
}
.mym-chip-games .mym-ico { font-size: 17px; }
.mym-overlay .mym-chip-games:hover { transform: translateY(-1px); filter: brightness(1.12); }

.mym-games { width: 100%; flex: 0 0 auto; display: flex; flex-direction: column; gap: 10px; scroll-margin-top: 8px; }
.mym-games-head { display: flex; align-items: baseline; gap: 12px; padding: 0 4px; }
.mym-games-cap { font-size: 12px; color: var(--mym-muted); }
.mym-games-row { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(10px, 1.4vw, 18px); }
.mym-overlay .mym-game {
  position: relative; display: flex; align-items: center; gap: 12px;
  min-height: 98px; padding: 12px 14px; border-radius: 22px; text-align: left;
  border: 1px solid rgba(255, 255, 255, .14);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .14), 0 12px 30px rgba(0, 0, 0, .32);
  transition: transform .18s var(--mym-out), filter .18s, box-shadow .18s;
}
.mym-overlay .mym-game:hover { transform: translateY(-3px); filter: brightness(1.1); box-shadow: inset 0 1px 0 rgba(255, 255, 255, .18), 0 18px 40px rgba(0, 0, 0, .4); }
.mym-overlay .mym-game:active { transform: scale(.98); }
.mym-overlay .mym-game-merge { background: linear-gradient(135deg, rgba(38, 104, 160, .8), rgba(46, 28, 110, .86)); border-color: rgba(79, 227, 255, .42); }
.mym-overlay .mym-game-crush { background: linear-gradient(135deg, rgba(160, 44, 118, .78), rgba(62, 24, 96, .86)); }
.mym-overlay .mym-game-hole { background: linear-gradient(135deg, rgba(28, 40, 92, .88), rgba(10, 10, 32, .92)); }
.mym-game-art { flex: 0 0 auto; width: 100px; height: 66px; border-radius: 15px; background: rgba(0, 0, 0, .26); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .08); overflow: hidden; display: flex; }
.mym-game-art svg { width: 100%; height: 100%; display: block; }
.mym-game-tx { flex: 1 1 auto; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.mym-game-tx b { font-size: 17px; font-weight: 700; color: #fff; }
.mym-game-tx small { font-size: 12.5px; color: rgba(255, 255, 255, .72); }
.mym-game-stat { font-size: 11.5px; color: #ffe680; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.mym-game-stat:empty { display: none; }
.mym-game.is-hot .mym-game-stat::before { content: '● '; color: #5dff9e; }
.mym-game-go { flex: 0 0 auto; width: 40px; height: 40px; border-radius: 50%; display: flex; align-items: center; justify-content: center; background: linear-gradient(180deg, #4ff0a0, #17a85a); color: #052a14; font-size: 18px; box-shadow: inset 0 1px 0 rgba(255, 255, 255, .5), 0 6px 14px rgba(0, 0, 0, .3); }
.mym-game-new { position: absolute; top: -9px; right: 16px; padding: 2px 10px; border-radius: 9px; background: linear-gradient(90deg, #ff4fd8, #ffb347); color: #fff; font-size: 11px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; box-shadow: 0 4px 12px rgba(255, 79, 216, .45); }
@media (min-width: 1200px) { .mym-overlay .mym-chip-games { display: none; } }
@media (max-width: 1000px) {
  .mym-games-row { grid-template-columns: 1fr; gap: 10px; }
  .mym-overlay .mym-game { min-height: 78px; padding: 10px 12px; }
  .mym-game-art { width: 82px; height: 54px; }
}
@media (max-width: 520px) {
  .mym-overlay .mym-act-feed, .mym-overlay .mym-act-play, .mym-overlay .mym-act-sleep { grid-column: 1 / -1; }
  .mym-overlay .mym-act-dress { grid-column: auto; }
  .mym-care-teaser { white-space: normal; border-radius: 16px; }
  .mym-game-tx b { font-size: 16px; }
  .mym-game-tx small { font-size: 12px; }
  .mym-act-need { width: 40px; height: 40px; }
}

/* =====================================================================
   Neubau: Zimmer statt Bullauge, alles ohne Scrollen auf einen Blick
   ===================================================================== */
.mym-shell { width: min(96vw, 1560px); height: 100%; max-height: none; margin: 0 auto; }
.mym-head { display: flex; align-items: center; gap: 14px; }
.mym-title { justify-content: flex-start; }
.mym-head-r { margin-left: auto; }
.mym-main { flex: 1 1 auto; min-height: 0; align-items: stretch; }
.mym-left { min-height: 0; }
.mym-scene { width: 100%; height: 100%; min-height: clamp(400px, 58vh, 760px); padding: 0; display: block; overflow: hidden; border-radius: 24px; border: 1px solid rgba(255, 255, 255, .12); background: #1c1450; }
.mym-scene::after { display: none; }
.mym-room { position: absolute; inset: 0; transition: filter .7s var(--mym-out); }
.mym-room svg { display: block; width: 100%; height: 100%; }
.mym-room [data-lv] { opacity: 0; transition: opacity .7s var(--mym-out); }
.mym-room [data-lv].on { opacity: 1; }
.mym-scene.is-night .mym-room { filter: brightness(.45) saturate(.75); }
.mym-moon { top: 12%; left: 56%; right: auto; width: clamp(34px, 5vmin, 56px); height: auto; z-index: 1; }
.mym-dio { position: absolute; left: 0; right: 0; bottom: clamp(64px, 12%, 104px); padding: 0; z-index: 2; }
.mym-stage { width: clamp(220px, 38vmin, 400px); }
.mym-migshadow { display: none; }
.mym-nameplate { position: absolute; top: 14px; left: 14px; margin: 0; z-index: 3; }
.mym-name-edit { position: absolute; top: 14px; left: 14px; right: 14px; margin: 0; z-index: 4; }
.mym-actions { position: absolute; width: auto; left: 14px; right: 14px; bottom: 14px; z-index: 3; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
.mym-overlay .mym-act, .mym-overlay .mym-act-feed, .mym-overlay .mym-act-play, .mym-overlay .mym-act-sleep { min-height: 74px; padding: 10px 12px; border-radius: 18px; background: rgba(13, 10, 34, .8); border: 1px solid rgba(255, 255, 255, .16); box-shadow: 0 10px 24px rgba(0, 0, 0, .34); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); grid-column: auto; }
.mym-act-feed .mym-act-ico { color: #79dba0; }
.mym-act-play .mym-act-ico { color: #e795b1; }
.mym-act-sleep .mym-act-ico { color: #b7a6ff; }
.mym-act-tx { overflow: hidden; }
.mym-act-sub { white-space: normal; line-height: 1.2; }
.mym-right { width: 100%; max-width: none; min-height: 0; gap: 12px; }
.mym-card { padding: 14px 16px; border-radius: 20px; }
.mym-bars { gap: 7px; }
.mym-bond { display: flex; flex-direction: row; align-items: center; gap: 14px; }
.mym-bond-lvl { flex: none; width: 54px; height: 54px; border-radius: 50%; display: grid; place-items: center; font-size: 24px; font-weight: 800; color: #2a1a06; background: linear-gradient(180deg, #ffe08a, #f2a93b); box-shadow: inset 0 1px 0 rgba(255, 255, 255, .6), 0 6px 16px rgba(242, 169, 59, .35); }
.mym-bond-tx { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 3px; }
.mym-bond-name { font-size: 16px; font-weight: 700; color: #fff; }
.mym-bond-track { display: block; height: 9px; border-radius: 6px; background: rgba(0, 0, 0, .34); overflow: hidden; }
.mym-bond-fill { display: block; height: 100%; border-radius: 6px; background: linear-gradient(90deg, #f2a93b, #ffe08a); transition: width .6s var(--mym-out); }
.mym-bond-next { font-size: 12px; color: var(--mym-muted); }
.mym-care { margin: 0; padding: 0; border: 0; flex-wrap: wrap; }
.mym-week { flex: 1 1 100%; display: grid; grid-template-columns: repeat(7, 1fr); gap: 6px; margin-top: 8px; }
.mym-wk { height: 30px; border-radius: 9px; display: grid; place-items: center; font-size: 12px; font-weight: 700; color: rgba(255, 255, 255, .45); background: rgba(0, 0, 0, .26); border: 1px solid rgba(255, 255, 255, .08); }
.mym-wk.is-on { color: #2a1a06; background: linear-gradient(180deg, #ffd27a, #ff9a3c); border-color: transparent; }
.mym-wk.is-gift { font-size: 14px; }
.mym-games-row { grid-template-columns: 1fr; gap: 10px; }
.mym-overlay .mym-game { min-height: 72px; padding: 8px 12px; border-radius: 18px; }
.mym-game-art { width: 72px; height: 50px; border-radius: 12px; }
.mym-game-tx small { display: none; }
@media (min-width: 1100px) {
  .mym-main { display: grid; grid-template-columns: minmax(0, 1fr) clamp(360px, 30vw, 440px); gap: 16px; align-items: stretch; justify-items: stretch; }
  .mym-right { overflow-y: auto; scrollbar-width: thin; }
  .mym-overlay .mym-chip-games { display: none; }
}
@media (min-width: 1100px) and (min-height: 860px) {
  .mym-games-row { grid-template-columns: 1fr; }
  .mym-game-tx small { display: block; }
}
@media (max-width: 1099px) {
  .mym-shell { height: auto; min-height: 100%; }
  .mym-main { flex: none; }
  .mym-scene { height: clamp(420px, 66vh, 620px); min-height: 0; }
  .mym-right { max-width: 720px; align-self: center; }
}
@media (max-width: 520px) {
  .mym-actions { left: 8px; right: 8px; bottom: 8px; gap: 6px; }
  .mym-overlay .mym-act, .mym-overlay .mym-act-feed, .mym-overlay .mym-act-play, .mym-overlay .mym-act-sleep { flex-direction: column; align-items: center; text-align: center; gap: 4px; min-height: 64px; padding: 8px 6px; grid-column: auto; }
  .mym-act-ico { display: none; }
  .mym-act-tx { align-items: center; }
  .mym-act-sub { font-size: 11px; }
  .mym-act-need { width: 34px; height: 34px; margin: 0; }
  .mym-dio { bottom: 96px; }
  .mym-stage { width: min(68vw, 300px); }
}
