/* Increase Inner Peace - Money Math Game v1.0.0 */
.iipmmg-root {
  --mm-teal: #0f766e;
  --mm-teal-2: #14b8a6;
  --mm-sea: #e7f7f3;
  --mm-mint: #d6f2e4;
  --mm-gold: #f2b84b;
  --mm-gold-d: #a86b12;
  --mm-ink: #17324d;
  --mm-ink-2: #4b6378;
  --mm-cream: #fffaf0;
  --mm-coral: #e2574c;
  --mm-green: #23854a;
  --mm-line: #d8e7e3;
  --mm-radius: 20px;
  position: relative;
  overflow: hidden;
  max-width: 960px;
  margin: 0 auto 24px;
  font-family: ui-rounded, "Nunito", "Trebuchet MS", "Segoe UI", system-ui, -apple-system, sans-serif;
  color: var(--mm-ink);
  line-height: 1.45;
  -webkit-font-smoothing: antialiased;
}
.iipmmg-root *, .iipmmg-root *::before, .iipmmg-root *::after { box-sizing: border-box; }
.iipmmg-app {
  background:
    radial-gradient(1200px 400px at 10% -10%, rgba(20,184,166,.14), transparent 60%),
    radial-gradient(800px 380px at 110% 0%, rgba(242,184,75,.18), transparent 60%),
    var(--mm-cream);
  border: 2px solid var(--mm-line);
  border-radius: 28px;
  padding: clamp(16px, 3.5vw, 36px);
  box-shadow: 0 18px 40px -24px rgba(23,50,77,.35);
}
.iipmmg-root h2, .iipmmg-root h3, .iipmmg-root h4, .iipmmg-root p { margin: 0; padding: 0; color: inherit; font-family: inherit; }
.iipmmg-root button { font-family: inherit; cursor: pointer; -webkit-tap-highlight-color: transparent; }
.iipmmg-root button:focus-visible { outline: 3px solid var(--mm-gold); outline-offset: 3px; }
.iipmmg-root button:disabled { cursor: default; }

/* Hero */
.iipmmg-hero { text-align: center; padding: 6px 0 22px; }
.iipmmg-hero__coins { display: flex; justify-content: center; align-items: center; gap: 10px; margin-bottom: 12px; }
.iipmmg-hero__coins > * { animation: iipmmg-bob 3.2s ease-in-out infinite; }
.iipmmg-hero__coins > *:nth-child(2) { animation-delay: .4s; }
.iipmmg-hero__coins > *:nth-child(3) { animation-delay: .8s; }
.iipmmg-hero__coins > *:nth-child(4) { animation-delay: 1.2s; }
.iipmmg-brand { font-size: 13px; letter-spacing: .18em; text-transform: uppercase; font-weight: 800; color: var(--mm-teal); }
.iipmmg-title { font-size: clamp(32px, 6vw, 54px) !important; line-height: 1.05 !important; font-weight: 900 !important; color: var(--mm-ink) !important; margin: 4px 0 8px !important; letter-spacing: -.01em; }
.iipmmg-title::after { content: ""; display: block; width: 84px; height: 6px; border-radius: 6px; margin: 12px auto 0; background: linear-gradient(90deg, var(--mm-teal-2), var(--mm-gold)); }
.iipmmg-sub { font-size: clamp(15px, 2.2vw, 18px); color: var(--mm-ink-2); max-width: 560px; margin: 0 auto !important; }

.iipmmg-stats { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; margin-top: 20px; }
.iipmmg-stat { background: #fff; border: 2px solid var(--mm-line); border-radius: 16px; padding: 10px 18px; min-width: 128px; display: grid; justify-items: center; gap: 2px; }
.iipmmg-stat > span { font-size: 22px; line-height: 1; }
.iipmmg-stat b { font-size: 20px; font-weight: 900; }
.iipmmg-stat small { font-size: 12px; color: var(--mm-ink-2); font-weight: 700; }

/* Sections */
.iipmmg-section { margin-top: 22px; }
.iipmmg-h { font-size: 20px !important; font-weight: 900 !important; margin: 18px 0 12px !important; display: flex; align-items: center; gap: 10px; color: var(--mm-ink) !important; }
.iipmmg-step { display: inline-grid; place-items: center; width: 30px; height: 30px; border-radius: 50%; background: var(--mm-teal); color: #fff; font-size: 15px; }

.iipmmg-levels { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.iipmmg-level { text-align: left; background: #fff; border: 3px solid var(--mm-line); border-radius: 18px; padding: 14px 16px; display: grid; gap: 2px; color: var(--mm-ink); transition: transform .15s, border-color .15s, box-shadow .15s; }
.iipmmg-level:hover { transform: translateY(-2px); }
.iipmmg-level__name { font-size: 19px; font-weight: 900; }
.iipmmg-level__who { font-size: 13px; font-weight: 800; color: var(--mm-teal); }
.iipmmg-level__what { font-size: 13px; color: var(--mm-ink-2); }
.iipmmg-level.is-on { border-color: var(--mm-teal-2); box-shadow: 0 0 0 4px rgba(20,184,166,.18); background: var(--mm-sea); }
.iipmmg-level.is-on .iipmmg-level__name::after { content: " ✓"; color: var(--mm-teal); }

.iipmmg-modes { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 14px; }
.iipmmg-mode { position: relative; text-align: left; border: 0; border-radius: var(--mm-radius); padding: 18px 16px 16px; display: grid; gap: 6px; align-content: start; color: var(--mm-ink); background: #fff; box-shadow: inset 0 0 0 2px var(--mm-line), 0 6px 0 -1px var(--mm-line); transition: transform .15s, box-shadow .15s; min-height: 170px; }
.iipmmg-mode:hover { transform: translateY(-3px); box-shadow: inset 0 0 0 2px var(--mm-teal-2), 0 9px 0 -1px var(--mm-teal-2); }
.iipmmg-mode:active { transform: translateY(2px); }
.iipmmg-mode__icon { font-size: 34px; line-height: 1; width: 56px; height: 56px; display: grid; place-items: center; border-radius: 16px; background: var(--mm-sea); }
.iipmmg-mode--build .iipmmg-mode__icon { background: #fdecc8; }
.iipmmg-mode--change .iipmmg-mode__icon { background: var(--mm-mint); }
.iipmmg-mode--shop .iipmmg-mode__icon { background: #fde2de; }
.iipmmg-mode--mixed .iipmmg-mode__icon { background: #dbeafe; }
.iipmmg-mode__name { font-size: 17px; font-weight: 900; }
.iipmmg-mode__desc { font-size: 13.5px; color: var(--mm-ink-2); }
.iipmmg-mode__best { margin-top: auto; font-size: 13px; font-weight: 800; color: var(--mm-teal); }

/* Buttons */
.iipmmg-toolbar { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; margin-top: 24px; }
.iipmmg-btn { border: 0; border-radius: 999px; padding: 11px 20px; font-size: 15px; font-weight: 800; line-height: 1.2; color: var(--mm-ink); background: #fff; box-shadow: inset 0 0 0 2px var(--mm-line); transition: transform .12s, background .12s, box-shadow .12s; }
.iipmmg-btn:hover { transform: translateY(-1px); }
.iipmmg-btn:active { transform: translateY(1px); }
.iipmmg-btn--primary { background: var(--mm-teal); color: #fff; box-shadow: 0 4px 0 #0a5a54; }
.iipmmg-btn--primary:hover { background: #0d8a80; }
.iipmmg-btn--gold { background: var(--mm-gold); color: #3d2a05; box-shadow: 0 4px 0 var(--mm-gold-d); }
.iipmmg-btn--soft { background: var(--mm-sea); box-shadow: inset 0 0 0 2px #bfe6dd; }
.iipmmg-btn--ghost { background: transparent; }
.iipmmg-btn--big { font-size: 18px; padding: 14px 28px; }
.iipmmg-btn--small { font-size: 13px; padding: 8px 14px; color: var(--mm-ink-2); }
.iipmmg-note { text-align: center; font-size: 13px; color: var(--mm-ink-2); margin-top: 14px !important; }

/* Play */
.iipmmg-topbar { display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 10px; }
.iipmmg-topbar__mode { text-align: center; font-weight: 900; font-size: 16px; }
.iipmmg-topbar__score { display: flex; gap: 8px; font-weight: 900; }
.iipmmg-topbar__score > span { background: #fff; border: 2px solid var(--mm-line); border-radius: 999px; padding: 5px 12px; }
.iipmmg-topbar__score .is-hot { background: #fff1e0; border-color: #f7b267; animation: iipmmg-pulse 1s ease-in-out infinite; }
.iipmmg-chip { display: inline-block; font-size: 12px; padding: 2px 10px; border-radius: 999px; margin-left: 6px; vertical-align: middle; color: #fff; background: var(--mm-teal); }
.iipmmg-chip--medium { background: #c27c0e; }
.iipmmg-chip--hard { background: var(--mm-coral); }
.iipmmg-progress { height: 12px; border-radius: 999px; background: #e4eeeb; margin: 16px 0 6px; overflow: hidden; }
.iipmmg-progress > span { display: block; height: 100%; border-radius: 999px; background: linear-gradient(90deg, var(--mm-teal-2), var(--mm-gold)); transition: width .4s ease; }
.iipmmg-qnum { font-size: 13px; font-weight: 800; color: var(--mm-ink-2); text-align: right; }

.iipmmg-card { margin-top: 10px; background: #fff; border: 2px solid var(--mm-line); border-radius: 24px; padding: clamp(16px, 3vw, 28px); text-align: center; }
.iipmmg-card.is-enter { animation: iipmmg-in .35s ease both; }
.iipmmg-prompt { font-size: clamp(18px, 2.8vw, 23px); font-weight: 800; max-width: 640px; margin: 0 auto 16px !important; }
.iipmmg-prompt b { color: var(--mm-teal); }
.iipmmg-target { display: inline-block; font-size: 1.35em; background: #fff4d6; color: #7a4d00 !important; padding: 2px 14px; border-radius: 12px; border: 2px dashed var(--mm-gold); }
.iipmmg-hint { font-size: 12.5px; color: var(--mm-ink-2); margin-top: 12px !important; }

.iipmmg-pile { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 10px; padding: 18px; border-radius: 18px; background: repeating-linear-gradient(45deg, #f3faf8, #f3faf8 12px, #edf7f4 12px, #edf7f4 24px); margin: 0 auto 18px; max-width: 640px; }
.iipmmg-card.is-enter .iipmmg-pile > * { animation: iipmmg-drop .4s ease both; }
.iipmmg-pile > *:nth-child(2) { animation-delay: .05s; } .iipmmg-pile > *:nth-child(3) { animation-delay: .1s; }
.iipmmg-pile > *:nth-child(4) { animation-delay: .15s; } .iipmmg-pile > *:nth-child(5) { animation-delay: .2s; }
.iipmmg-pile > *:nth-child(6) { animation-delay: .25s; } .iipmmg-pile > *:nth-child(7) { animation-delay: .3s; }
.iipmmg-pile > *:nth-child(8) { animation-delay: .35s; }

.iipmmg-options { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; max-width: 560px; margin: 0 auto; }
.iipmmg-opt { position: relative; border: 0; border-radius: 18px; padding: 16px 14px; font-size: clamp(20px, 3vw, 26px); font-weight: 900; color: var(--mm-ink); background: var(--mm-sea); box-shadow: inset 0 0 0 3px #bfe6dd, 0 5px 0 #a7d8cd; transition: transform .1s, background .15s; }
.iipmmg-opt:hover:not(:disabled) { transform: translateY(-2px); background: #d9f3ec; }
.iipmmg-opt:active:not(:disabled) { transform: translateY(3px); box-shadow: inset 0 0 0 3px #bfe6dd, 0 2px 0 #a7d8cd; }
.iipmmg-key { position: absolute; top: 8px; left: 10px; font-size: 11px; font-weight: 800; color: var(--mm-ink-2); background: #fff; border-radius: 6px; padding: 1px 6px; }
.iipmmg-opt.is-correct { background: #d3f5df; box-shadow: inset 0 0 0 3px var(--mm-green), 0 5px 0 var(--mm-green); color: #0f5130; animation: iipmmg-pop .35s ease; }
.iipmmg-opt.is-correct::after { content: "✓"; margin-left: 8px; }
.iipmmg-opt.is-wrong { background: #fde3e0; box-shadow: inset 0 0 0 3px var(--mm-coral), 0 5px 0 var(--mm-coral); color: #8a1f17; animation: iipmmg-shake .4s ease; }
.iipmmg-opt:disabled:not(.is-correct):not(.is-wrong) { opacity: .55; }

.iipmmg-feedback { min-height: 0; margin: 14px auto 0; max-width: 720px; font-size: 16px; border-radius: 16px; text-align: center; }
.iipmmg-feedback.is-good, .iipmmg-feedback.is-bad, .iipmmg-feedback.is-info { padding: 14px 18px; animation: iipmmg-in .3s ease both; }
.iipmmg-feedback.is-good { background: #dcf6e6; color: #0f5130; border: 2px solid #9fdcb7; }
.iipmmg-feedback.is-bad { background: #fff0ec; color: #7a2018; border: 2px solid #f5b8ae; }
.iipmmg-feedback.is-info { background: #fff6dd; color: #6b4a00; border: 2px solid #f3d48a; }
.iipmmg-actions { display: flex; justify-content: center; margin-top: 16px; }

/* Shop visuals */
.iipmmg-shopline, .iipmmg-shelf { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 14px; margin: 0 auto 18px; }
.iipmmg-item { position: relative; width: 110px; height: 110px; border-radius: 22px; background: var(--mm-sea); display: grid; place-items: center; }
.iipmmg-card.is-enter .iipmmg-item { animation: iipmmg-drop .4s ease both; }
.iipmmg-item__emoji { font-size: 54px; line-height: 1; }
.iipmmg-tag { position: absolute; bottom: -10px; right: -12px; background: var(--mm-gold); color: #3d2a05; font-weight: 900; font-size: 15px; padding: 4px 10px; border-radius: 8px 14px 14px 8px; box-shadow: 0 3px 0 var(--mm-gold-d); }
.iipmmg-tag::before { content: ""; display: inline-block; width: 7px; height: 7px; border-radius: 50%; background: #fff; margin-right: 6px; vertical-align: middle; }
.iipmmg-plus { font-size: 30px; font-weight: 900; color: var(--mm-ink-2); }
.iipmmg-paywith { font-weight: 800; color: var(--mm-ink-2); font-size: 14px; }
.iipmmg-paywith::after { content: " →"; }
.iipmmg-wallet { display: inline-block; font-weight: 900; font-size: 17px; background: #e8f0ff; border: 2px solid #b8cdf5; border-radius: 14px; padding: 8px 16px; margin: -4px auto 18px; }

/* Build */
.iipmmg-tray { min-height: 96px; display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 8px; padding: 14px; border: 3px dashed #b7dcd3; border-radius: 20px; background: #f6fcfa; max-width: 680px; margin: 0 auto; }
.iipmmg-tray__empty { color: var(--mm-ink-2); font-weight: 700; font-size: 14px; }
.iipmmg-traypiece { border: 0; background: none; padding: 0; border-radius: 12px; }
.iipmmg-traypiece.is-new { animation: iipmmg-drop .25s ease both; }
.iipmmg-traypiece:hover:not(:disabled) { transform: translateY(-3px) rotate(-4deg); }
.iipmmg-total { font-weight: 800; margin: 12px 0 4px !important; font-size: 17px; }
.iipmmg-total b { color: var(--mm-teal); font-size: 1.15em; }
.iipmmg-palette { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; margin-top: 16px; padding-top: 16px; border-top: 2px solid var(--mm-line); }
.iipmmg-pick { border: 0; background: #fff; border-radius: 16px; padding: 10px 10px 6px; display: grid; justify-items: center; gap: 4px; box-shadow: inset 0 0 0 2px var(--mm-line), 0 4px 0 var(--mm-line); transition: transform .1s; min-width: 84px; }
.iipmmg-pick:hover:not(:disabled) { transform: translateY(-2px); }
.iipmmg-pick:active:not(:disabled) { transform: translateY(2px); box-shadow: inset 0 0 0 2px var(--mm-line); }
.iipmmg-pick:disabled { opacity: .5; }
.iipmmg-pick__label { font-size: 11.5px; font-weight: 800; color: var(--mm-ink-2); }
.iipmmg-buildbar { display: flex; justify-content: center; gap: 10px; margin-top: 18px; flex-wrap: wrap; }
.iipmmg-solution { margin-top: 12px; }
.iipmmg-solution p { font-weight: 800; color: var(--mm-ink-2); margin-bottom: 8px !important; }

/* Coins and bills */
.iipmmg-coin { --s: 50px; position: relative; flex: none; width: var(--s); height: var(--s); border-radius: 50%; display: inline-grid; place-items: center; font-weight: 900; font-size: calc(var(--s) * .3); color: #2a3340; background: radial-gradient(circle at 32% 28%, #ffffff 0%, #d7dce3 45%, #9aa3af 100%); box-shadow: inset 0 0 0 3px rgba(255,255,255,.55), inset 0 -4px 0 rgba(0,0,0,.12), 0 3px 6px rgba(23,50,77,.25); text-shadow: 0 1px 0 rgba(255,255,255,.6); }
.iipmmg-coin::before { content: ""; position: absolute; inset: 4px; border-radius: 50%; border: 2px dotted rgba(0,0,0,.18); }
.iipmmg-coin > span { position: relative; }
.iipmmg-coin--penny { background: radial-gradient(circle at 32% 28%, #f8c9a0 0%, #c8743e 50%, #8a4520 100%); color: #3f1d08; text-shadow: 0 1px 0 rgba(255,220,190,.6); }
.iipmmg-coin--nickel { background: radial-gradient(circle at 32% 28%, #fbfbfb 0%, #c3c7cc 50%, #868d96 100%); }
.iipmmg-coin--quarter { background: radial-gradient(circle at 32% 28%, #ffffff 0%, #cfd6de 45%, #8b95a3 100%); }
.iipmmg-coin--quarter::before { border-style: dashed; }

.iipmmg-bill { position: relative; flex: none; width: 108px; height: 50px; border-radius: 7px; display: inline-flex; align-items: center; justify-content: center; gap: 8px; color: #1f4d2b; font-weight: 900; background: linear-gradient(135deg, #e3f2dc 0%, #bfe0b5 55%, #a6d29a 100%); box-shadow: inset 0 0 0 2px #5a9a5f, inset 0 0 0 5px #e3f2dc, inset 0 0 0 6px #7fb57f, 0 3px 6px rgba(23,50,77,.25); }
.iipmmg-bill__v { font-size: 20px; position: relative; }
.iipmmg-bill__seal { width: 22px; height: 22px; border-radius: 50%; border: 2px solid #5a9a5f; background: radial-gradient(circle, #e9f5e4 30%, #a6d29a 31%, #a6d29a 50%, #e9f5e4 51%); }
.iipmmg-bill__c { position: absolute; top: 5px; left: 8px; font-size: 11px; }
.iipmmg-bill__c--r { left: auto; right: 8px; top: auto; bottom: 5px; }
.iipmmg-bill--b5 { background: linear-gradient(135deg, #e6f0f4 0%, #c3dbe2 55%, #a8cad3 100%); }
.iipmmg-bill--b10 { background: linear-gradient(135deg, #f6eedb 0%, #e5d3a6 55%, #d4bd84 100%); }
.iipmmg-bill--b20 { background: linear-gradient(135deg, #e4f1e6 0%, #c7dfc6 55%, #b0d2ad 100%); }
.iipmmg-bill--b50 { background: linear-gradient(135deg, #f3e7e6 0%, #e0c6c3 55%, #d0ada9 100%); }

/* Results */
.iipmmg-results { text-align: center; padding: 10px 0; }
.iipmmg-stars { display: flex; justify-content: center; gap: 8px; font-size: clamp(48px, 9vw, 72px); line-height: 1; }
.iipmmg-star { color: #e1e8e6; text-shadow: 0 4px 0 #cfd9d6; }
.iipmmg-star.is-on { color: var(--mm-gold); text-shadow: 0 4px 0 var(--mm-gold-d); animation: iipmmg-pop .5s ease both; }
.iipmmg-star.is-on:nth-child(2) { animation-delay: .15s; }
.iipmmg-star.is-on:nth-child(3) { animation-delay: .3s; }
.iipmmg-meta { font-size: 13px; font-weight: 800; color: var(--mm-ink-2); margin-top: 16px !important; }
.iipmmg-newbadges { margin-top: 20px; }
.iipmmg-newbadges > p { margin-bottom: 10px !important; color: var(--mm-teal); }

.iipmmg-badgegrid { display: grid; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: 12px; margin-top: 14px; }
.iipmmg-badge { background: #fff; border: 2px solid var(--mm-line); border-radius: 18px; padding: 14px 10px; display: grid; justify-items: center; gap: 4px; text-align: center; opacity: .7; }
.iipmmg-badge.is-on { opacity: 1; border-color: #f3d48a; background: #fffbef; }
.iipmmg-badge__icon { font-size: 34px; line-height: 1; }
.iipmmg-badge b { font-size: 14.5px; }
.iipmmg-badge small { font-size: 12px; color: var(--mm-ink-2); }

/* Learn */
.iipmmg-facts { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 12px; }
.iipmmg-fact { display: flex; gap: 14px; align-items: center; background: #fff; border: 2px solid var(--mm-line); border-radius: 18px; padding: 14px; }
.iipmmg-fact__art { width: 112px; flex: none; display: grid; place-items: center; }
.iipmmg-fact h4, .iipmmg-tip h4 { font-size: 16px !important; font-weight: 900 !important; margin-bottom: 2px !important; color: var(--mm-ink) !important; }
.iipmmg-fact h4 span { color: var(--mm-teal); margin-left: 4px; }
.iipmmg-fact p, .iipmmg-tip p { font-size: 14px; color: var(--mm-ink-2); }
.iipmmg-tips { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 12px; }
.iipmmg-tip { display: flex; gap: 12px; align-items: flex-start; background: var(--mm-sea); border-radius: 18px; padding: 14px; }
.iipmmg-tip__icon { font-size: 28px; line-height: 1; }

/* Download area */
.iipmmg-download { max-width: 960px; margin: 0 auto 30px; text-align: center; font-family: ui-rounded, "Nunito", "Trebuchet MS", "Segoe UI", system-ui, sans-serif; color: #17324d; }
.iipmmg-download h3 { font-size: 20px; font-weight: 900; margin: 0 0 6px; padding: 0; color: #17324d; }
.iipmmg-download p { margin: 0 0 14px; padding: 0; color: #4b6378; font-size: 15px; }
.iipmmg-download__links { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; }
.iipmmg-dl { display: inline-flex; align-items: center; gap: 8px; border-radius: 999px; padding: 12px 22px; font-weight: 800; font-size: 15px; text-decoration: none !important; background: #0f766e; color: #fff !important; box-shadow: 0 4px 0 #0a5a54; transition: transform .12s; }
.iipmmg-dl:hover { transform: translateY(-1px); }
.iipmmg-dl--alt { background: #f2b84b; color: #3d2a05 !important; box-shadow: 0 4px 0 #a86b12; }

/* Confetti */
.iipmmg-confetti { position: absolute; inset: 0; pointer-events: none; overflow: hidden; z-index: 5; }
.iipmmg-confetti i { position: absolute; top: -14px; width: 10px; height: 14px; border-radius: 2px; animation: iipmmg-fall 1.9s cubic-bezier(.2,.6,.4,1) forwards; }

@keyframes iipmmg-fall { to { transform: translate(var(--dx), 620px) rotate(var(--r)); opacity: 0; } }
@keyframes iipmmg-bob { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-7px); } }
@keyframes iipmmg-in { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
@keyframes iipmmg-drop { from { opacity: 0; transform: translateY(-12px) scale(.9); } to { opacity: 1; transform: none; } }
@keyframes iipmmg-pop { 0% { transform: scale(.6); } 60% { transform: scale(1.12); } 100% { transform: scale(1); } }
@keyframes iipmmg-shake { 0%, 100% { transform: translateX(0); } 25% { transform: translateX(-6px); } 75% { transform: translateX(6px); } }
@keyframes iipmmg-pulse { 0%, 100% { transform: scale(1); } 50% { transform: scale(1.07); } }

@media (max-width: 640px) {
  .iipmmg-levels { grid-template-columns: 1fr; }
  .iipmmg-topbar { grid-template-columns: auto 1fr; }
  .iipmmg-topbar__mode { text-align: right; font-size: 14px; }
  .iipmmg-topbar__score { grid-column: 1 / -1; justify-content: center; }
  .iipmmg-item { width: 92px; height: 92px; }
  .iipmmg-item__emoji { font-size: 44px; }
  .iipmmg-pick { min-width: 72px; }
}
@media (prefers-reduced-motion: reduce) {
  .iipmmg-root *, .iipmmg-root *::before, .iipmmg-root *::after { animation: none !important; transition: none !important; }
}
@media (hover: none) { .iipmmg-hint { display: none; } }
