/* Mergly-Animationen (von mergly.de übernommen, auf .mg begrenzt) */
.mg { --orange: #ee6e44;
  --orange-strong: #ff5a00;
  --orange-text: #c2410c;
  --orange-soft: #fdede6;
  --bg: #f7f8fa;
  --bg2: #eef0f3;
  --surface: #ffffff;
  --text: #0e1116;
  --muted: #5b6573;
  --border: #e4e7ec;
  --shadow: 0 1px 2px rgba(14, 17, 22, 0.04), 0 8px 24px rgba(14, 17, 22, 0.06);
  
  --yt: #ff0000; --ig: #e1306c; --tt: #000000; --bs: #1185fe; --ma: #6364ff; --tu: #001935; --tw: #9146ff; --nw: #c2410c; }
.mg * { box-sizing: border-box; }
.mg a { color: var(--orange-text); }
.mg svg { width: 1em; height: 1em; flex: none; }
@keyframes mg-pulse { 50% { box-shadow: 0 0 0 8px transparent; } }
.mg .hero-phone { position: relative; justify-self: center; text-align: left; }
.mg .float { position: absolute; display: flex; align-items: center; gap: 8px; background: var(--surface); border: 1px solid var(--border); box-shadow: var(--shadow); border-radius: 14px; padding: 10px 14px; font-size: 13px; white-space: nowrap; animation: mg-bob 5s ease-in-out infinite; }
.mg .float svg { color: #f0365a; width: 16px; height: 16px; }
.mg .f1 { left: -120px; top: 40px; }
.mg .f2 { right: -90px; bottom: 210px; animation-delay: -2.5s; }
@keyframes mg-bob { 50% { transform: translateY(-8px); } }
.mg .device { width: 300px; height: 620px; border-radius: 46px; padding: 11px; background: #0e1116; box-shadow: 0 0 0 2px #2c3642, 0 40px 80px rgba(14, 17, 22, .28), 0 20px 50px rgba(255, 90, 0, .12); }
.mg .device.sm { width: 260px; height: 540px; border-radius: 42px; padding: 10px; }
.mg .app { height: 100%; border-radius: 36px; overflow: hidden; background: var(--bg); color: var(--text); display: flex; flex-direction: column; font-size: 12px; line-height: 1.35; position: relative; }
.mg .device.sm .app { border-radius: 32px; }
.mg .statusbar { display: flex; justify-content: space-between; align-items: center; padding: 12px 22px 4px; font-size: 12px; }
.mg .statusbar .sig { width: 38px; height: 10px; border-radius: 3px; background: linear-gradient(90deg, var(--text) 60%, transparent 60%); opacity: .8; }
.mg .app-top { display: flex; align-items: center; gap: 8px; padding: 6px 14px 8px; font-size: 16px; }
.mg .app-logo { width: 26px; height: 26px; border-radius: 8px; }
.mg .app-top .avatar-sm { margin-left: auto; width: 26px; height: 26px; border-radius: 50%; }
.mg .a1 { background: linear-gradient(135deg, #fbbf24, #f0365a); }
.mg .a2 { background: linear-gradient(135deg, #44c3ee, #6364ff); }
.mg .a3 { background: linear-gradient(135deg, #ef794d, #ec623a); }
.mg .a4 { background: linear-gradient(135deg, #4ade80, #0ea5e9); }
.mg .a5 { background: linear-gradient(135deg, #a970ff, #f0365a); }
.mg .av { width: 30px; height: 30px; border-radius: 50%; flex: none; display: inline-block; }
.mg .stories { display: flex; gap: 10px; padding: 2px 14px 8px; }
.mg .story { display: flex; flex-direction: column; align-items: center; gap: 3px; }
.mg .story small { font-size: 10px; color: var(--muted); }
.mg .ring { padding: 2px; border-radius: 50%; background: linear-gradient(135deg, #ef794d, #ff5a00); }
.mg .ring.seen { background: var(--border); }
.mg .ring i { display: block; width: 42px; height: 42px; border-radius: 50%; border: 2px solid var(--bg); }
.mg .filters { display: flex; gap: 6px; padding: 0 14px 10px; justify-content: center; }
.mg .pf { width: 32px; height: 32px; border-radius: 50%; border: 2px solid var(--border); display: grid; place-items: center; font-size: 9px; font-weight: 800; background: var(--surface); }
.mg .pf.all { width: auto; padding: 0 12px; border-radius: 999px; }
.mg .pf.on { border-color: var(--orange); background: var(--orange); color: #fff; }
.mg .pf.yt { color: var(--yt); }
.mg .pf.ig { color: var(--ig); }
.mg .pf.tt { color: var(--tt); }
.mg .pf.bs { color: var(--bs); }
.mg .pf.tw { color: var(--tw); }
.mg .glyph { display: inline-grid; place-items: center; min-width: 18px; height: 14px; padding: 0 3px; border-radius: 4px; font-size: 8px; font-style: normal; font-weight: 800; color: #fff; vertical-align: 1px; letter-spacing: .02em; }
.mg .glyph.yt { background: var(--yt); }
.mg .glyph.ig { background: linear-gradient(45deg, #f9a43a, #e1306c 50%, #8a3ab9); }
.mg .glyph.tt { background: #000; box-shadow: inset 0 0 0 1px #444; }
.mg .glyph.bs { background: var(--bs); }
.mg .glyph.tu { background: #001935; box-shadow: inset 0 0 0 1px #3a4f6a; }
.mg .glyph.tw { background: var(--tw); }
.mg .glyph.nw { background: var(--nw); }
.mg .feed { flex: 1; overflow: hidden; padding: 0 10px; display: flex; flex-direction: column; gap: 10px; }
.mg .post { background: var(--surface); border-radius: 16px; padding: 10px; box-shadow: 0 1px 2px rgba(14, 17, 22, .05), 0 4px 12px rgba(14, 17, 22, .05); display: flex; flex-direction: column; gap: 8px; }
.mg .post p { margin: 0; font-size: 12.5px; }
.mg .ph { display: flex; align-items: center; gap: 8px; }
.mg .ph b { display: block; font-size: 12.5px; }
.mg .ph small { color: var(--muted); font-size: 10.5px; }
.mg .media { position: relative; height: 140px; border-radius: 12px; overflow: hidden; }
.mg .m-game { background: radial-gradient(circle at 70% 30%, #ff7a45 0 12%, transparent 13%), linear-gradient(160deg, #1e1b4b, #6364ff 60%, #44c3ee); }
.mg .m-food { height: 110px; background: radial-gradient(circle at 50% 55%, #fbbf24 0 22%, #f97316 23% 30%, transparent 31%), linear-gradient(135deg, #7c2d12, #c2410c); }
.mg .m-live { background: radial-gradient(circle at 30% 70%, #f0365a55, transparent 40%), linear-gradient(135deg, #2e1065, #9146ff); }
.mg .play { position: absolute; inset: 0; margin: auto; width: 38px; height: 38px; border-radius: 50%; background: rgba(0, 0, 0, .45); display: grid; place-items: center; color: #fff; backdrop-filter: blur(4px); }
.mg .play svg { width: 16px; height: 16px; margin-left: 2px; }
.mg .dur { position: absolute; right: 8px; bottom: 8px; background: rgba(0, 0, 0, .7); color: #fff; font-size: 9.5px; font-weight: 700; padding: 1px 5px; border-radius: 4px; }
.mg .eng { display: flex; align-items: center; gap: 14px; color: var(--muted); font-size: 11px; font-weight: 600; }
.mg .eng span { display: flex; align-items: center; gap: 4px; }
.mg .eng svg { width: 16px; height: 16px; }
.mg .eng i { flex: 1; }
.mg .eng .liked { color: #f0365a; }
.mg .tabbar { display: flex; border-top: 1px solid var(--border); background: var(--surface); padding: 6px 0 14px; }
.mg .tabbar span { flex: 1; display: flex; flex-direction: column; align-items: center; gap: 2px; font-size: 10px; font-weight: 600; color: var(--muted); }
.mg .tabbar svg { width: 20px; height: 20px; }
.mg .tabbar .on { color: var(--orange-text); }
.mg .tabbar i { width: 4px; height: 4px; border-radius: 50%; background: var(--orange); }
.mg .tabbar.dark { background: #000; border-color: #1f2731; }
.mg .tabbar.dark span { color: #9ba5b1; }
.mg .tabbar.dark .on { color: #ff7a45; }
.mg figcaption { text-align: center; color: var(--muted); font-size: 15px; max-width: 260px; }
.mg figcaption b { display: block; color: var(--text); font-size: 18px; margin-bottom: 2px; }
.mg .live-tag { font-style: normal; background: #f0365a; color: #fff; font-size: 8.5px; font-weight: 800; padding: 1px 4px; border-radius: 3px; margin-right: 3px; }
.mg .chat-top { display: flex; align-items: center; gap: 8px; padding: 6px 14px 10px; border-bottom: 1px solid var(--border); }
.mg .chat-top b { display: block; font-size: 13px; }
.mg .chat-top small { color: #22a55b; font-size: 10.5px; }
.mg .msg { max-width: 78%; padding: 8px 11px; border-radius: 16px; font-size: 12px; }
.mg .msg.in { background: var(--surface); border-bottom-left-radius: 5px; align-self: flex-start; box-shadow: 0 1px 2px rgba(14, 17, 22, .06); }
.mg .msg.out { background: var(--orange); color: #fff; border-bottom-right-radius: 5px; align-self: flex-end; }
.mg .msg.share { padding: 4px; background: var(--orange); }
.mg .share-card { background: var(--surface); color: var(--text); border-radius: 12px; padding: 6px; width: 150px; }
.mg .share-card .media { height: 70px; border-radius: 8px; margin-bottom: 5px; }
.mg .share-card b { display: block; font-size: 11px; }
.mg .share-card small { color: var(--muted); font-size: 10px; }
.mg .composer { margin: 8px 10px 14px; display: flex; align-items: center; justify-content: space-between; background: var(--surface); border: 1px solid var(--border); border-radius: 999px; padding: 6px 6px 6px 14px; color: var(--muted); }
.mg .composer i { width: 28px; height: 28px; border-radius: 50%; background: var(--orange); color: #fff; display: grid; place-items: center; }
.mg .composer svg { width: 14px; height: 14px; }
.mg .card { background: var(--surface); border: 1px solid var(--border); border-radius: 22px; padding: 24px; }
.mg .card h3 { margin: 0 0 6px; font-size: 18px; letter-spacing: -0.01em; }
.mg .card p { margin: 0; color: var(--muted); font-size: 15px; }
.mg .beta-form { display: flex; flex-direction: column; gap: 16px; box-shadow: var(--shadow); padding: 28px; }
.mg .beta-form label > span { display: block; font-weight: 600; font-size: 15px; margin-bottom: 6px; }
.mg .beta-form em { color: var(--muted); font-style: normal; font-weight: 400; }
.mg .beta-form small { display: block; color: var(--muted); font-size: 13px; margin-top: 6px; line-height: 1.45; }
.mg .beta-form input[type="email"], .mg .beta-form input[type="text"] { width: 100%; padding: 12px 14px; border-radius: 12px; border: 1px solid var(--border);
  background: var(--bg); color: var(--text); font: inherit; }
.mg .beta-form input:focus { outline: 2px solid var(--orange); outline-offset: 1px; }
.mg .beta-form fieldset { border: 0; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 8px 20px; }
.mg .beta-form legend { font-weight: 600; font-size: 15px; margin-bottom: 6px; padding: 0; width: 100%; }
.mg .beta-form .choice { display: flex; align-items: flex-start; gap: 8px; font-size: 15px; }
.mg .beta-form .choice input { margin-top: 4px; accent-color: var(--orange); }
.mg .beta-form .consent span { display: inline; margin: 0; font-weight: 400; font-size: 13px; color: var(--muted); line-height: 1.5; }
.mg .beta-form button { padding: 15px 20px; border: 0; border-radius: 999px; background: var(--orange); color: #fff;
  font: inherit; font-weight: 700; cursor: pointer; box-shadow: 0 8px 20px rgba(255, 90, 0, 0.28); }
.mg .beta-form button:hover { background: var(--orange-strong); }
.mg .android-note { background: var(--orange-soft); border-radius: 14px; padding: 12px 14px; font-size: 14px; color: var(--text); line-height: 1.5; }
.mg .android-note b { display: block; color: var(--orange-text); }
.mg .beta-form .choice .plain { display: inline; margin: 0; font-weight: 400; font-size: 15px; }
.mg .hp { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
@media (max-width: 960px) {
.mg .f1 { left: -40px; }
.mg .f2 { right: -30px; }
}
@media (max-width: 760px) {
.mg .device { width: 270px; height: 560px; }
.mg .float { display: none; }
}
.mg .demos { display: grid; grid-template-columns: repeat(3, 1fr); gap: 48px 32px; justify-items: center; }
.mg .demo { margin: 0; display: flex; flex-direction: column; align-items: center; gap: 22px; }
.mg .demo:not(.is-playing) *, .mg .demo:not(.is-playing) *::after { animation-play-state: paused !important; }
.mg .app.dk { --bg: #090c10; --surface: #12161d; --text: #fff; --muted: #9ba5b1; --border: #1f2731; --tt: #fff;
  background: var(--bg); color: var(--text); }
.mg .app.dk .statusbar .sig { background: linear-gradient(90deg, #fff 60%, transparent 60%); }
.mg .d-top { display: flex; align-items: center; gap: 7px; padding: 6px 12px 8px; }
.mg .d-pf { width: 26px; height: 26px; border-radius: 50%; display: grid; place-items: center; font-size: 10px; font-weight: 800; background: #1b2129; }
.mg .d-pf.on { box-shadow: 0 0 0 2px #ee6e44; }
.mg .d-pf .m { width: 12px; height: 12px; border-radius: 4px; background: linear-gradient(135deg, #ef794d, #ec623a); display: block; }
.mg .d-pf.yt { color: #ff3b30; }
.mg .d-pf.tw { color: #a970ff; }
.mg .d-pf.tu { color: #7c9cc4; font-family: Georgia, serif; }
.mg .d-icons { margin-left: auto; color: var(--muted); font-size: 15px; letter-spacing: 6px; }
.mg .d-icons b { font-weight: 400; position: relative; display: inline-block; }
.mg .d-chips { display: flex; gap: 6px; padding: 0 12px 10px; }
.mg .d-chips b { padding: 4px 10px; border-radius: 999px; background: #1b2129; font-size: 10.5px; font-weight: 700; color: var(--muted); white-space: nowrap; }
.mg .d-chips b.on { background: #ee6e44; color: #fff; }
.mg .d-viewport { flex: 1; position: relative; overflow: hidden; }
.mg .d-card { background: var(--surface); border-radius: 14px; padding: 9px; margin: 0 10px 8px; display: flex; flex-direction: column; gap: 7px; }
.mg .d-card p { margin: 0; font-size: 11.5px; }
.mg .d-ph { display: flex; align-items: center; gap: 8px; }
.mg .d-ph b { display: block; font-size: 11.5px; }
.mg .d-ph small { color: var(--muted); font-size: 10px; }
.mg .d-ph u { text-decoration: none; color: #ff7a45; }
.mg .d-media { position: relative; height: 118px; border-radius: 10px; overflow: hidden; }
.mg .d-media.d-short { height: 74px; }
.mg .d-media .play { width: 32px; height: 32px; font-size: 11px; }
.mg .m-sport { background: radial-gradient(circle at 35% 60%, #fff 0 5%, transparent 6%), linear-gradient(180deg, #166534, #22a55b 55%, #15803d); }
.mg .d-eng { display: flex; gap: 12px; font-size: 10.5px; color: var(--muted); font-weight: 600; }
.mg .d-eng i { flex: 1; }
.mg .d-eng .hot { color: #f0365a; }
.mg .d-tabbar { display: flex; border-top: 1px solid var(--border); background: var(--surface); padding: 8px 0 14px; position: relative; z-index: 3; }
.mg .d-tabbar span { flex: 1; text-align: center; color: var(--muted); font-size: 15px; }
.mg .d-tabbar .on { color: #ff7a45; }
.mg .d-tabbar.dark { background: #000; position: absolute; left: 0; right: 0; bottom: 0; }
@keyframes mg-tap { 0%, 100% { opacity: 0; transform: translate(-50%, -50%) scale(.4); } 30% { opacity: .9; transform: translate(-50%, -50%) scale(1); } 70% { opacity: 0; transform: translate(-50%, -50%) scale(1.5); } }
.mg .tap, .mg .s4-filter::after, .mg .s4-pop::after, .mg .f5-t1::after, .mg .f5-t2::after, .mg .f5-save::after { content: ''; position: absolute; width: 30px; height: 30px; border-radius: 50%; background: rgba(255, 255, 255, .55);
  box-shadow: 0 0 0 6px rgba(255, 255, 255, .18); left: 50%; top: 50%; opacity: 0; pointer-events: none; }
.mg .t1-list { animation: mg-t1-pull 8s cubic-bezier(.4, 0, .2, 1) infinite; }
@keyframes mg-t1-pull { 0%, 12% { transform: translateY(0); } 20%, 30% { transform: translateY(48px); } 38%, 100% { transform: translateY(0); } }
.mg .t1-spin { position: absolute; left: 50%; top: 12px; width: 22px; height: 22px; margin-left: -11px; border-radius: 50%;
  border: 2.5px solid #ee6e44; border-right-color: transparent; opacity: 0; animation: mg-t1-spin 8s linear infinite; }
@keyframes mg-t1-spin { 0%, 15% { opacity: 0; transform: rotate(0); } 18% { opacity: 1; } 34% { opacity: 1; transform: rotate(720deg); } 37%, 100% { opacity: 0; transform: rotate(760deg); } }
.mg .t1-pill { position: absolute; z-index: 2; left: 50%; top: 2px; transform: translate(-50%, -40px); background: #ee6e44; color: #fff;
  font-size: 10.5px; font-weight: 700; padding: 5px 11px; border-radius: 999px; box-shadow: 0 6px 16px rgba(255, 90, 0, .35);
  animation: mg-t1-pill 8s ease infinite; white-space: nowrap; }
@keyframes mg-t1-pill { 0%, 38% { transform: translate(-50%, -40px); opacity: 0; } 43%, 70% { transform: translate(-50%, 0); opacity: 1; } 76%, 100% { transform: translate(-50%, -40px); opacity: 0; } }
.mg .t1-new { max-height: 0; overflow: hidden; animation: mg-t1-new 8s cubic-bezier(.4, 0, .2, 1) infinite; }
@keyframes mg-t1-new { 0%, 40% { max-height: 0; opacity: 0; } 52%, 92% { max-height: 190px; opacity: 1; } 99%, 100% { max-height: 0; opacity: 0; } }
.mg .t1-tap { animation: mg-t1-tap 8s ease infinite; top: 120px; }
@keyframes mg-t1-tap { 0%, 8% { opacity: 0; transform: translate(-50%, 0) scale(.6); } 11% { opacity: .9; transform: translate(-50%, 0) scale(1); }
  22% { opacity: .9; transform: translate(-50%, 70px) scale(1); } 26%, 100% { opacity: 0; transform: translate(-50%, 70px) scale(.6); } }
.mg .s2-track { position: absolute; left: 0; right: 0; top: 0; height: 300%; animation: mg-s2-swipe 9s cubic-bezier(.65, 0, .25, 1) infinite; }
@keyframes mg-s2-swipe { 0%, 26% { transform: translateY(0); } 32%, 60% { transform: translateY(-33.333%); } 66%, 92% { transform: translateY(-66.666%); } 98%, 100% { transform: translateY(0); } }
.mg .s2-short { height: 33.333%; position: relative; }
.mg .s2-short::after { content: ''; position: absolute; left: 0; right: 0; bottom: 0; height: 45%; background: linear-gradient(transparent, rgba(0, 0, 0, .78)); }
.mg .sc1 { background: radial-gradient(circle at 50% 36%, #fde68a 0 9%, #fb923c 10% 18%, transparent 19%), linear-gradient(180deg, #1e3a8a 0%, #7c3aed 38%, #f97316 62%, #1f2937 63%, #0b0f14 100%); }
.mg .sc2 { background: radial-gradient(circle at 62% 40%, #ff7a45 0 10%, transparent 11%), linear-gradient(200deg, #0f172a, #312e81 40%, #6364ff 70%, #44c3ee); }
.mg .sc3 { background: radial-gradient(circle at 50% 46%, #fef3c7 0 14%, #f59e0b 15% 22%, #b45309 23% 30%, transparent 31%), linear-gradient(160deg, #431407, #9a3412); }
.mg .s2-info { position: absolute; left: 12px; right: 58px; bottom: 62px; z-index: 1; }
.mg .s2-info b { display: flex; align-items: center; gap: 6px; font-size: 12px; }
.mg .s2-info .av { width: 24px; height: 24px; border: 2px solid #fff; }
.mg .s2-info p { margin: 6px 0 0; font-size: 11.5px; opacity: .92; }
.mg .s2-top { position: absolute; top: 30px; left: 0; right: 0; display: flex; justify-content: center; gap: 6px; z-index: 2; }
.mg .s2-top span { padding: 3px 9px; border-radius: 999px; background: rgba(0, 0, 0, .35); font-size: 10px; font-weight: 700; color: rgba(255, 255, 255, .8); }
.mg .s2-top .on { background: #ee6e44; color: #fff; }
.mg .s2-rail { position: absolute; right: 10px; bottom: 74px; display: flex; flex-direction: column; gap: 14px; z-index: 2; font-size: 18px; text-align: center; }
.mg .s2-heart { animation: mg-s2-heart 9s ease infinite; }
@keyframes mg-s2-heart { 0%, 40% { color: #fff; transform: scale(1); } 42% { color: #f0365a; transform: scale(1.4); } 45%, 60% { color: #f0365a; transform: scale(1); } 62%, 100% { color: #fff; } }
.mg .s2-burst { position: absolute; left: 50%; top: 42%; z-index: 3; font-size: 64px; color: #f0365a; opacity: 0; transform: translate(-50%, -50%) scale(.3);
  animation: mg-s2-burst 9s ease infinite; text-shadow: 0 6px 24px rgba(240, 54, 90, .5); }
@keyframes mg-s2-burst { 0%, 40% { opacity: 0; transform: translate(-50%, -50%) scale(.3); } 43% { opacity: 1; transform: translate(-50%, -50%) scale(1.1); } 47% { opacity: 1; transform: translate(-50%, -50%) scale(1); } 52%, 100% { opacity: 0; transform: translate(-50%, -70%) scale(1); } }
.mg .s2-sound { animation: mg-s2-sound 9s ease infinite; }
@keyframes mg-s2-sound { 0%, 6% { transform: scale(1); } 8% { transform: scale(1.35); } 11%, 100% { transform: scale(1); } }
.mg .l3-player { position: relative; margin: 4px 0 0; aspect-ratio: 16 / 9; background: radial-gradient(circle at 30% 70%, #f0365a66, transparent 40%), radial-gradient(circle at 75% 30%, #44c3ee55, transparent 35%), linear-gradient(135deg, #2e1065, #9146ff); overflow: hidden; }
.mg .l3-player .live-tag { position: absolute; left: 10px; top: 10px; font-size: 9px; }
.mg .l3-player small { position: absolute; left: 46px; top: 9px; font-size: 10px; font-weight: 700; }
.mg .l3-eq { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); display: flex; gap: 5px; align-items: flex-end; height: 34px; }
.mg .l3-eq i { width: 7px; border-radius: 3px; background: rgba(255, 255, 255, .9); animation: mg-l3-eq 1.1s ease-in-out infinite; }
.mg .l3-eq i:nth-child(2) { animation-delay: -.4s; }
.mg .l3-eq i:nth-child(3) { animation-delay: -.8s; }
@keyframes mg-l3-eq { 0%, 100% { height: 8px; } 50% { height: 34px; } }
.mg .l3-meta { display: flex; align-items: center; gap: 8px; padding: 10px 12px; border-bottom: 1px solid var(--border); }
.mg .l3-meta b { display: block; font-size: 12px; }
.mg .l3-meta small { color: var(--muted); font-size: 10px; }
.mg .l3-chat { flex: 1; overflow: hidden; padding: 8px 12px; }
.mg .l3-lines p { margin: 0 0 7px; font-size: 11px; line-height: 1.35; opacity: 0; animation: mg-l3-line 8s ease infinite; }
.mg .l3-lines p.me { background: rgba(238, 110, 68, .14); border-radius: 8px; padding: 4px 6px; margin-left: -6px; }
.mg .l3-lines p:nth-child(1) { animation-delay: .2s; }
.mg .l3-lines p:nth-child(2) { animation-delay: .9s; }
.mg .l3-lines p:nth-child(3) { animation-delay: 1.6s; }
.mg .l3-lines p:nth-child(4) { animation-delay: 2.3s; }
.mg .l3-lines p:nth-child(5) { animation-delay: 3s; }
.mg .l3-lines p:nth-child(6) { animation-delay: 5s; }
.mg .l3-lines p:nth-child(7) { animation-delay: 6s; }
@keyframes mg-l3-line { 0% { opacity: 0; transform: translateY(6px); } 4%, 88% { opacity: 1; transform: none; } 94%, 100% { opacity: 0; } }
.mg .l3-input { margin: 6px 10px 14px; display: flex; align-items: center; background: var(--surface); border: 1px solid var(--border); border-radius: 999px; padding: 6px 6px 6px 12px; font-size: 11px; color: var(--muted); }
.mg .l3-typed { flex: 1; overflow: hidden; white-space: nowrap; color: #fff; max-width: 0; animation: mg-l3-type 8s steps(20) infinite; }
@keyframes mg-l3-type { 0%, 42% { max-width: 0; } 58%, 61% { max-width: 160px; } 62%, 100% { max-width: 0; } }
.mg .l3-input i { width: 26px; height: 26px; border-radius: 50%; background: #ee6e44; color: #fff; display: grid; place-items: center; font-style: normal; font-size: 11px; margin-left: auto; }
.mg .s4-filter { color: #fff; }
.mg .s4-filter::after { animation: mg-tap 8s ease infinite; animation-delay: 0s; }
.mg .s4-list { position: relative; flex: 1; }
.mg .s4-a { height: 96px; animation: mg-s4-a 8s cubic-bezier(.4, 0, .2, 1) infinite; }
.mg .s4-b { height: 150px; animation: mg-s4-b 8s cubic-bezier(.4, 0, .2, 1) infinite; }
@keyframes mg-s4-a { 0%, 58% { transform: translateY(0); } 68%, 92% { transform: translateY(158px); } 100% { transform: translateY(0); } }
@keyframes mg-s4-b { 0%, 58% { transform: translateY(0); } 68%, 92% { transform: translateY(-104px); } 100% { transform: translateY(0); } }
.mg .s4-sheet { position: absolute; left: 0; right: 0; bottom: 0; z-index: 4; background: #161b22; border-radius: 18px 18px 0 0; padding: 14px 14px 22px;
  box-shadow: 0 -10px 30px rgba(0, 0, 0, .5); transform: translateY(110%); animation: mg-s4-sheet 8s cubic-bezier(.4, 0, .2, 1) infinite; }
@keyframes mg-s4-sheet { 0%, 16% { transform: translateY(110%); } 23%, 50% { transform: translateY(0); } 57%, 100% { transform: translateY(110%); } }
.mg .s4-sheet small { display: block; color: var(--muted); font-size: 9px; font-weight: 800; letter-spacing: .08em; margin: 4px 0 6px; }
.mg .s4-opt { position: relative; display: grid; grid-template-columns: 1fr auto; padding: 8px 4px; border-radius: 10px; }
.mg .s4-opt b { font-size: 12px; }
.mg .s4-opt span { grid-column: 1; color: var(--muted); font-size: 10px; }
.mg .s4-opt i { grid-row: 1 / span 2; grid-column: 2; align-self: center; color: #ff7a45; font-style: normal; font-weight: 800; }
.mg .s4-new i { animation: mg-s4-off 8s step-end infinite; }
.mg .s4-pop i { opacity: 0; animation: mg-s4-on 8s step-end infinite; }
@keyframes mg-s4-off { 0% { opacity: 1; } 40% { opacity: 0; } 100% { opacity: 1; } }
@keyframes mg-s4-on { 0% { opacity: 0; } 40% { opacity: 1; } 100% { opacity: 0; } }
.mg .s4-pop::after { animation: mg-tap 8s ease infinite; animation-delay: 2.3s; left: 40%; }
.mg .s4-filter::after { animation-name: mg-s4-tap1; }
@keyframes mg-s4-tap1 { 0%, 13% { opacity: 0; transform: translate(-50%, -50%) scale(.4); } 16% { opacity: .9; transform: translate(-50%, -50%) scale(1); } 21%, 100% { opacity: 0; transform: translate(-50%, -50%) scale(1.5); } }
.mg .s4-pop::after { animation-name: mg-s4-tap2; animation-delay: 0s; }
@keyframes mg-s4-tap2 { 0%, 35% { opacity: 0; transform: translate(-50%, -50%) scale(.4); } 38% { opacity: .9; transform: translate(-50%, -50%) scale(1); } 43%, 100% { opacity: 0; transform: translate(-50%, -50%) scale(1.5); } }
.mg .s4-opt .s4-toggle { width: 26px; height: 15px; border-radius: 999px; background: #2c3642; grid-row: 1; grid-column: 2; }
.mg .f5-head { padding: 6px 14px 10px; }
.mg .f5-head b { display: block; font-size: 16px; }
.mg .f5-head small { color: var(--muted); font-size: 10.5px; }
.mg .f5-topics { display: flex; flex-wrap: wrap; gap: 6px; padding: 0 12px; }
.mg .f5-topics span { position: relative; padding: 6px 10px; border-radius: 999px; background: #1b2129; font-size: 10.5px; font-weight: 600; border: 1px solid transparent; }
.mg .f5-t1 { animation: mg-f5-t1 9s step-end infinite; }
.mg .f5-t2 { animation: mg-f5-t2 9s step-end infinite; }
@keyframes mg-f5-t1 { 0% { background: #1b2129; } 14% { background: #ee6e44; } 100% { background: #1b2129; } }
@keyframes mg-f5-t2 { 0% { background: #1b2129; } 28% { background: #ee6e44; } 100% { background: #1b2129; } }
.mg .f5-t1::after { animation: mg-f5-tap1 9s ease infinite; }
.mg .f5-t2::after { animation: mg-f5-tap2 9s ease infinite; }
.mg .f5-save::after { animation: mg-f5-tap3 9s ease infinite; }
@keyframes mg-f5-tap1 { 0%, 10% { opacity: 0; transform: translate(-50%, -50%) scale(.4); } 13% { opacity: .9; transform: translate(-50%, -50%) scale(1); } 18%, 100% { opacity: 0; transform: translate(-50%, -50%) scale(1.5); } }
@keyframes mg-f5-tap2 { 0%, 24% { opacity: 0; transform: translate(-50%, -50%) scale(.4); } 27% { opacity: .9; transform: translate(-50%, -50%) scale(1); } 32%, 100% { opacity: 0; transform: translate(-50%, -50%) scale(1.5); } }
@keyframes mg-f5-tap3 { 0%, 37% { opacity: 0; transform: translate(-50%, -50%) scale(.4); } 40% { opacity: .9; transform: translate(-50%, -50%) scale(1); } 45%, 100% { opacity: 0; transform: translate(-50%, -50%) scale(1.5); } }
.mg .f5-save { position: relative; margin: 18px 12px 0; text-align: center; padding: 10px; border-radius: 999px; background: #ee6e44; font-weight: 800; font-size: 12px; }
.mg .f5-result { position: absolute; inset: 34px 0 0 0; background: var(--bg); padding-top: 8px; transform: translateX(105%); animation: mg-f5-result 9s cubic-bezier(.4, 0, .2, 1) infinite; }
@keyframes mg-f5-result { 0%, 44% { transform: translateX(105%); } 51%, 92% { transform: translateX(0); } 99%, 100% { transform: translateX(105%); } }
.mg .c6-chat { flex: 1; padding: 12px; display: flex; flex-direction: column; gap: 8px; overflow: hidden; }
.mg .c6-chat .msg, .mg .c6-typing { max-height: 0; opacity: 0; padding-top: 0; padding-bottom: 0; overflow: hidden; }
.mg .c6-m1 { animation: mg-c6-a 8s ease infinite; }
.mg .c6-m2 { animation: mg-c6-b 8s ease infinite; }
.mg .c6-m3 { animation: mg-c6-d 8s ease infinite; }
.mg .c6-m4 { animation: mg-c6-e 8s ease infinite; }
.mg .c6-chat .msg.share { padding: 0 4px; }
@keyframes mg-c6-a { 0%, 4% { max-height: 0; opacity: 0; padding: 0 11px; } 9%, 94% { max-height: 160px; opacity: 1; padding: 8px 11px; } 100% { max-height: 0; opacity: 0; padding: 0 11px; } }
@keyframes mg-c6-b { 0%, 18% { max-height: 0; opacity: 0; transform: translateX(30px); } 24%, 94% { max-height: 160px; opacity: 1; transform: none; padding: 4px; } 100% { max-height: 0; opacity: 0; } }
@keyframes mg-c6-d { 0%, 41% { max-height: 0; opacity: 0; padding: 0 11px; } 46%, 94% { max-height: 160px; opacity: 1; padding: 8px 11px; } 100% { max-height: 0; opacity: 0; padding: 0 11px; } }
@keyframes mg-c6-e { 0%, 55% { max-height: 0; opacity: 0; padding: 0 11px; } 60%, 94% { max-height: 160px; opacity: 1; padding: 8px 11px; } 100% { max-height: 0; opacity: 0; padding: 0 11px; } }
.mg .c6-typing { align-self: flex-start; display: flex; gap: 4px; background: var(--surface); border-radius: 14px; animation: mg-c6-c 8s ease infinite; }
@keyframes mg-c6-c { 0%, 28% { max-height: 0; opacity: 0; padding: 0 12px; } 31%, 40% { max-height: 40px; opacity: 1; padding: 10px 12px; } 42%, 100% { max-height: 0; opacity: 0; padding: 0 12px; } }
.mg .c6-typing i { width: 6px; height: 6px; border-radius: 50%; background: var(--muted); animation: mg-c6-dot 1s ease-in-out infinite; }
.mg .c6-typing i:nth-child(2) { animation-delay: .15s; }
.mg .c6-typing i:nth-child(3) { animation-delay: .3s; }
@keyframes mg-c6-dot { 0%, 100% { transform: translateY(0); opacity: .5; } 50% { transform: translateY(-3px); opacity: 1; } }
.mg .c6-toast { position: absolute; left: 50%; bottom: 70px; transform: translate(-50%, 20px); background: #fff; color: #0e1116; font-size: 11px; font-weight: 700; padding: 7px 12px; border-radius: 999px; white-space: nowrap; opacity: 0; animation: mg-c6-toast 8s ease infinite; box-shadow: 0 8px 20px rgba(0, 0, 0, .4); }
@keyframes mg-c6-toast { 0%, 70% { opacity: 0; transform: translate(-50%, 20px); } 74%, 88% { opacity: 1; transform: translate(-50%, 0); } 92%, 100% { opacity: 0; transform: translate(-50%, 20px); } }
@media (max-width: 960px) {
.mg .demos { grid-template-columns: none; grid-auto-flow: column; grid-auto-columns: 280px; overflow-x: auto; scroll-snap-type: x mandatory; padding: 8px 20px 20px; margin: 0 -20px; justify-content: start; }
.mg .demo { scroll-snap-align: center; }
}
@media (prefers-reduced-motion: reduce) {
.mg .demo * { animation: none !important; }
}
@media (prefers-reduced-motion: reduce) {
.mg * { animation: none !important; transition: none !important; }
}
:root[data-theme="dark"] .mg { --orange-text: #ff7a45;
    --orange-soft: rgba(238, 110, 68, 0.16);
    --bg: #090c10;
    --bg2: #0d1116;
    --surface: #10151b;
    --text: #ffffff;
    --muted: #9ba5b1;
    --border: #1f2731;
    --shadow: 0 1px 2px rgba(0, 0, 0, 0.4), 0 8px 24px rgba(0, 0, 0, 0.35);
    --tt: #ffffff; --tu: #7c9cc4; --tw: #a970ff; --nw: #ff7a45; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .mg { --orange-text: #ff7a45;
    --orange-soft: rgba(238, 110, 68, 0.16);
    --bg: #090c10;
    --bg2: #0d1116;
    --surface: #10151b;
    --text: #ffffff;
    --muted: #9ba5b1;
    --border: #1f2731;
    --shadow: 0 1px 2px rgba(0, 0, 0, 0.4), 0 8px 24px rgba(0, 0, 0, 0.35);
    --tt: #ffffff; --tu: #7c9cc4; --tw: #a970ff; --nw: #ff7a45; } }
