/* ==== JPM KIT v1 — base visual dos jogos (sincronizado; regras do jogo vêm depois do "fim da base") ==== */
.jpm-game[data-game="laboratorio-das-misturas"] {
  --g-glass: rgba(23, 27, 52, .72);
  --g-accent: var(--primary, #6046FF);
  font-family: inherit;
  color: var(--ink, #172033);
  user-select: none;
  -webkit-user-select: none;
  -webkit-tap-highlight-color: transparent;
  container-type: size;
  font-size: clamp(11px, 2.1cqw, 17px);
}
.jpm-game[data-game="laboratorio-das-misturas"] [hidden] { display: none; }
.jpm-game[data-game="laboratorio-das-misturas"] button { font: inherit; color: inherit; cursor: pointer; }
.jpm-game[data-game="laboratorio-das-misturas"] button:focus-visible { outline: 3px solid var(--ink, #172033); outline-offset: 2px; }
.jpm-game[data-game="laboratorio-das-misturas"] .g-canvas { position: absolute; inset: 0; display: block; width: 100%; height: 100%; touch-action: none; }
.jpm-game[data-game="laboratorio-das-misturas"] .sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; }

/* HUD numa faixa só */
.jpm-game[data-game="laboratorio-das-misturas"] .g-hud { position: absolute; left: 0; right: 0; top: 0; z-index: 2; display: flex; gap: 8px; align-items: center; flex-wrap: wrap; padding: 10px 12px; pointer-events: none; }
.jpm-game[data-game="laboratorio-das-misturas"] .g-chip { display: inline-flex; align-items: center; gap: 6px; padding: 6px 12px 6px 8px; border-radius: var(--r-pill, 999px); background: var(--g-glass); color: var(--surface, #fff); font-weight: 900; font-size: clamp(13px, 2.3cqw, 19px); font-variant-numeric: tabular-nums; white-space: nowrap; }
.jpm-game[data-game="laboratorio-das-misturas"] .g-chip--right { margin-left: auto; }
.jpm-game[data-game="laboratorio-das-misturas"] .g-chip--warn { background: var(--coral, #FF6868); }
.jpm-game[data-game="laboratorio-das-misturas"] .g-ico { width: 1.2em; height: 1.2em; flex: none; }
.jpm-game[data-game="laboratorio-das-misturas"] .g-bar { position: relative; width: clamp(70px, 18cqw, 180px); height: .7em; border-radius: var(--r-pill, 999px); background: rgba(255, 255, 255, .25); overflow: hidden; }
.jpm-game[data-game="laboratorio-das-misturas"] .g-fill { position: absolute; inset: 0 auto 0 0; width: 0; border-radius: inherit; background: var(--yellow, #FFD43B); transition: width .2s linear; }
.jpm-game[data-game="laboratorio-das-misturas"] .g-hearts { display: flex; gap: 4px; padding: 6px 10px; border-radius: var(--r-pill, 999px); background: var(--g-glass); }
.jpm-game[data-game="laboratorio-das-misturas"] .g-heart { width: clamp(16px, 3cqw, 26px); height: clamp(16px, 3cqw, 26px); color: var(--coral, #FF6868); transition: transform .2s, opacity .2s; }
.jpm-game[data-game="laboratorio-das-misturas"] .g-heart.is-lost { color: rgba(255, 255, 255, .35); transform: scale(.85); }

/* telas */
.jpm-game[data-game="laboratorio-das-misturas"] .g-screen { position: absolute; inset: 0; z-index: 4; display: grid; place-items: center; padding: 12px; }
.jpm-game[data-game="laboratorio-das-misturas"] .g-intro, .jpm-game[data-game="laboratorio-das-misturas"] .g-over, .jpm-game[data-game="laboratorio-das-misturas"] .g-paused { background: rgba(23, 27, 52, .32); }
.jpm-game[data-game="laboratorio-das-misturas"] .g-intro { background: linear-gradient(90deg, rgba(23, 27, 52, .38), rgba(23, 27, 52, .05) 70%); justify-items: start; padding-left: 6cqw; }
.jpm-game[data-game="laboratorio-das-misturas"] .g-card { width: min(92%, 420px); padding: clamp(14px, 3.4cqw, 28px); border-radius: var(--r-card, 16px); background: var(--surface, #fff); color: var(--ink, #172033); text-align: center; box-shadow: var(--shadow2, 0 18px 44px rgba(23, 32, 51, .16)); }
.jpm-game[data-game="laboratorio-das-misturas"] .g-intro .g-card { width: min(56%, 400px); }
.jpm-game[data-game="laboratorio-das-misturas"] .g-card--small { width: auto; padding: 16px 22px; }
.jpm-game[data-game="laboratorio-das-misturas"] .g-kicker { margin: 0; font-size: clamp(10px, 1.8cqw, 13px); font-weight: 900; letter-spacing: .1em; text-transform: uppercase; color: var(--muted, #606B80); }
.jpm-game[data-game="laboratorio-das-misturas"] .g-title { margin: 4px 0 6px; font-size: clamp(20px, 4.6cqw, 34px); line-height: 1.05; letter-spacing: -.04em; font-weight: 900; }
.jpm-game[data-game="laboratorio-das-misturas"] .g-text { margin: 0 0 14px; color: var(--muted, #606B80); font-weight: 600; font-size: clamp(12px, 2.2cqw, 16px); }
.jpm-game[data-game="laboratorio-das-misturas"] .g-btn { min-height: 46px; padding: 0 26px; border: 0; border-radius: var(--r-pill, 999px); background: var(--g-accent); color: var(--surface, #fff); font-weight: 900; font-size: clamp(15px, 2.6cqw, 19px); box-shadow: 0 8px 18px rgba(23, 32, 51, .22); transition: transform .12s; }
.jpm-game[data-game="laboratorio-das-misturas"] .g-btn:active { transform: scale(.96); }
.jpm-game[data-game="laboratorio-das-misturas"] .g-btn--ghost { background: var(--bg, #F3F6FA); color: var(--ink, #172033); box-shadow: inset 0 0 0 2px var(--line, #E3E8EF); }
.jpm-game[data-game="laboratorio-das-misturas"] .g-row { display: flex; gap: 8px; justify-content: center; flex-wrap: wrap; }
.jpm-game[data-game="laboratorio-das-misturas"] .g-results { display: flex; justify-content: center; gap: clamp(12px, 4cqw, 30px); margin: 10px 0; }
.jpm-game[data-game="laboratorio-das-misturas"] .g-num { display: block; font-size: clamp(20px, 4.4cqw, 32px); font-weight: 900; letter-spacing: -.03em; font-variant-numeric: tabular-nums; }
.jpm-game[data-game="laboratorio-das-misturas"] .g-lbl { font-size: clamp(11px, 1.8cqw, 13px); color: var(--muted, #606B80); font-weight: 700; }
.jpm-game[data-game="laboratorio-das-misturas"] .g-best { margin: 0 0 14px; font-weight: 800; color: var(--g-accent); min-height: 1.2em; }
.jpm-game[data-game="laboratorio-das-misturas"] .g-stars { display: flex; justify-content: center; gap: 6px; margin: 4px 0 8px; font-size: clamp(22px, 5cqw, 36px); }
.jpm-game[data-game="laboratorio-das-misturas"] .g-star { width: 1em; height: 1em; color: var(--line, #E3E8EF); }
.jpm-game[data-game="laboratorio-das-misturas"] .g-star.is-on { color: var(--yellow, #FFD43B); }

.jpm-game[data-game="laboratorio-das-misturas"] .g-ready { pointer-events: none; align-content: center; gap: 12px; }
.jpm-game[data-game="laboratorio-das-misturas"] .g-howto { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; }
.jpm-game[data-game="laboratorio-das-misturas"] .g-howto-item { display: inline-flex; align-items: center; gap: 8px; padding: 6px 12px 6px 6px; border-radius: var(--r-pill, 999px); background: var(--g-glass); color: var(--surface, #fff); font-weight: 700; font-size: clamp(12px, 2.1cqw, 16px); }
.jpm-game[data-game="laboratorio-das-misturas"] .g-key { padding: 3px 9px; border-radius: 8px; background: var(--surface, #fff); color: var(--ink, #172033); font-weight: 900; }
.jpm-game[data-game="laboratorio-das-misturas"] .g-touch-only { display: none; }
.jpm-game[data-game="laboratorio-das-misturas"] .g-count { font-size: clamp(48px, 14cqw, 120px); font-weight: 900; color: var(--surface, #fff); text-shadow: 0 6px 0 rgba(23, 27, 52, .35); line-height: 1; animation: laboratorio-das-misturas-pop .8s ease-out infinite; }
@keyframes laboratorio-das-misturas-pop { from { transform: scale(1.25); opacity: .4; } 30% { transform: scale(1); opacity: 1; } }

/* botões de toque */
.jpm-game[data-game="laboratorio-das-misturas"] .g-touch { position: absolute; left: 0; right: 0; bottom: 0; z-index: 3; display: flex; justify-content: space-between; align-items: flex-end; gap: 10px; padding: 10px; pointer-events: none; }
.jpm-game[data-game="laboratorio-das-misturas"] .g-touch-group { display: flex; gap: 10px; align-items: flex-end; }
.jpm-game[data-game="laboratorio-das-misturas"] .g-tbtn { pointer-events: auto; width: clamp(52px, 13cqw, 80px); height: clamp(52px, 13cqw, 80px); border: 0; border-radius: 50%; background: rgba(23, 27, 52, .45); color: var(--surface, #fff); display: grid; place-items: center; touch-action: none; font-weight: 900; font-size: clamp(11px, 2cqw, 14px); }
.jpm-game[data-game="laboratorio-das-misturas"] .g-tbtn svg { width: 55%; height: 55%; }
.jpm-game[data-game="laboratorio-das-misturas"] .g-tbtn--action { background: rgba(96, 70, 255, .78); }
.jpm-game[data-game="laboratorio-das-misturas"] .g-tbtn.is-on, .jpm-game[data-game="laboratorio-das-misturas"] .g-tbtn:active { transform: scale(.94); background: rgba(96, 70, 255, .9); }

/* aviso curto no meio da tela (+10, Combo!, Errou) */
.jpm-game[data-game="laboratorio-das-misturas"] .g-toast { position: absolute; left: 50%; top: 22%; z-index: 3; transform: translateX(-50%); padding: .4em 1em; border-radius: var(--r-pill, 999px); background: var(--surface, #fff); color: var(--ink, #172033); font-weight: 900; font-size: clamp(14px, 3cqw, 24px); white-space: nowrap; box-shadow: var(--shadow2, 0 18px 44px rgba(23, 32, 51, .16)); pointer-events: none; animation: laboratorio-das-misturas-toast .9s ease-out forwards; }
.jpm-game[data-game="laboratorio-das-misturas"] .g-toast.is-good { background: var(--green, #46D68C); color: var(--surface, #fff); }
.jpm-game[data-game="laboratorio-das-misturas"] .g-toast.is-bad { background: var(--coral, #FF6868); color: var(--surface, #fff); }
@keyframes laboratorio-das-misturas-toast { from { opacity: 0; transform: translate(-50%, 10px) scale(.9); } 15% { opacity: 1; transform: translate(-50%, 0) scale(1.05); } 80% { opacity: 1; } to { opacity: 0; transform: translate(-50%, -12px) scale(1); } }

@media (pointer: coarse) {
  .jpm-game[data-game="laboratorio-das-misturas"] .g-touch-only { display: inline-flex; }
}
@container (max-width: 520px) {
  .jpm-game[data-game="laboratorio-das-misturas"] .g-intro { justify-items: center; padding-left: 12px; background: rgba(23, 27, 52, .3); }
  .jpm-game[data-game="laboratorio-das-misturas"] .g-intro .g-card { width: min(92%, 400px); }
}
@media (prefers-reduced-motion: reduce) {
  .jpm-game[data-game="laboratorio-das-misturas"] .g-count, .jpm-game[data-game="laboratorio-das-misturas"] .g-toast { animation: none; }
}
/* ==== fim da base ==== */

/* jogo */
.jpm-game[data-game="laboratorio-das-misturas"] {
  --g-accent: #6046FF;
  --lm-ink: #172033;
  --lm-green: #22A36B;
  --lm-coral: #E5484D;
  --lm-amber: #F2A93B;
  --lm-glass: rgba(23, 27, 52, .74);
}
.jpm-game[data-game="laboratorio-das-misturas"] .lm-small { margin: 10px 0 0; font-size: .74em; color: var(--muted, #606B80); font-weight: 700; }
.jpm-game[data-game="laboratorio-das-misturas"] .lm-seqbtn { margin-top: 10px; min-height: 40px; padding: 0 16px; border: 0; border-radius: 999px; background: #E9F8F2; color: #116A47; font-weight: 850; font-size: clamp(12px, 2.1cqw, 15px); box-shadow: inset 0 0 0 2px #B8EBD5; }

/* HUD */
.jpm-game[data-game="laboratorio-das-misturas"] .lm-hud { padding: 1.4cqh 1.4cqw; gap: .8cqw; flex-wrap: nowrap; }
.jpm-game[data-game="laboratorio-das-misturas"] .lm-hbtn { pointer-events: auto; flex: none; width: clamp(38px, 5.6cqw, 48px); height: clamp(38px, 5.6cqw, 48px); border: 0; border-radius: 50%; background: var(--lm-glass); color: #fff; display: grid; place-items: center; }
.jpm-game[data-game="laboratorio-das-misturas"] .lm-hbtn svg { width: 52%; height: 52%; }
.jpm-game[data-game="laboratorio-das-misturas"] .lm-lvl { gap: .45em; padding: .3em .8em .3em .35em; font-size: clamp(11px, 2cqw, 17px); min-width: 0; flex: 0 1 auto; }
.jpm-game[data-game="laboratorio-das-misturas"] .lm-lvn { display: grid; place-items: center; min-width: 1.7em; height: 1.7em; padding: 0 .3em; border-radius: 999px; background: #46D68C; color: var(--lm-ink); font-size: .85em; }
.jpm-game[data-game="laboratorio-das-misturas"] .lm-lvl.is-seq .lm-lvn { background: #FFD43B; }
.jpm-game[data-game="laboratorio-das-misturas"] .lm-lname { overflow: hidden; text-overflow: ellipsis; }
.jpm-game[data-game="laboratorio-das-misturas"] .lm-steps { display: flex; gap: 3px; margin: 0; padding: 3px; list-style: none; border-radius: 999px; background: rgba(255, 255, 255, .9); box-shadow: 0 3px 10px rgba(23, 32, 51, .12); flex: none; }
.jpm-game[data-game="laboratorio-das-misturas"] .lm-st { display: flex; align-items: center; gap: .3em; padding: .2em .55em .2em .25em; border-radius: 999px; color: #7A8499; font-weight: 850; font-size: clamp(10px, 1.7cqw, 14px); white-space: nowrap; }
.jpm-game[data-game="laboratorio-das-misturas"] .lm-st b { display: grid; place-items: center; width: 1.45em; height: 1.45em; border-radius: 50%; background: #E9EDF5; font-size: .85em; }
.jpm-game[data-game="laboratorio-das-misturas"] .lm-st svg { width: 1.45em; height: 1.45em; padding: .2em; border-radius: 50%; background: var(--lm-green); color: #fff; }
.jpm-game[data-game="laboratorio-das-misturas"] .lm-st.is-on { background: var(--g-accent); color: #fff; }
.jpm-game[data-game="laboratorio-das-misturas"] .lm-st.is-on b { background: rgba(255, 255, 255, .25); }
.jpm-game[data-game="laboratorio-das-misturas"] .lm-st.is-done { color: var(--lm-green); }
.jpm-game[data-game="laboratorio-das-misturas"] .lm-st:not(.is-on) span { display: none; }
.jpm-game[data-game="laboratorio-das-misturas"] .lm-score { margin-left: auto; gap: .2em; padding: .3em .7em .3em .45em; font-size: clamp(11px, 2cqw, 17px); }
.jpm-game[data-game="laboratorio-das-misturas"] .lm-slash { opacity: .55; }

/* tarefa */
.jpm-game[data-game="laboratorio-das-misturas"] .lm-task { position: absolute; z-index: 2; left: 1.4cqw; top: calc(1.4cqh + clamp(42px, 6.6cqw, 54px)); max-width: min(52cqw, 500px); padding: .5em .8em; border-radius: 14px; background: rgba(255, 255, 255, .95); box-shadow: 0 6px 18px rgba(23, 32, 51, .14); pointer-events: none; }
.jpm-game[data-game="laboratorio-das-misturas"] .lm-task-t { margin: 0; font-weight: 900; color: var(--g-accent); font-size: .95em; line-height: 1.2; }
.jpm-game[data-game="laboratorio-das-misturas"] .lm-task-s { margin: .2em 0 0; font-weight: 650; color: #3A4459; font-size: .8em; line-height: 1.28; }
.jpm-game[data-game="laboratorio-das-misturas"] .lm-task-s:empty { display: none; }

/* rótulos 3D */
.jpm-game[data-game="laboratorio-das-misturas"] .lm-tags { position: absolute; inset: 0; z-index: 1; pointer-events: none; overflow: hidden; }
.jpm-game[data-game="laboratorio-das-misturas"] .lm-tag { position: absolute; left: 0; top: 0; padding: .2em .65em; border-radius: 999px; background: rgba(255, 255, 255, .95); color: var(--lm-ink); font-weight: 850; font-size: clamp(9px, 1.6cqw, 14px); white-space: nowrap; box-shadow: 0 3px 10px rgba(23, 32, 51, .16); translate: -50% -100%; will-change: transform; }
.jpm-game[data-game="laboratorio-das-misturas"] .lm-tag--bk { background: var(--lm-glass); color: #fff; }
.jpm-game[data-game="laboratorio-das-misturas"] .lm-tag--bk.is-target { background: var(--g-accent); box-shadow: 0 0 0 3px rgba(96, 70, 255, .3); }
.jpm-game[data-game="laboratorio-das-misturas"] .lm-tag--bk.is-over { background: var(--lm-green); transform-origin: center; scale: 1.12; }
.jpm-game[data-game="laboratorio-das-misturas"] .lm-tag--mk { translate: 0 -50%; background: #FFF3C4; border: 2px solid #F2A93B; animation: laboratorio-das-misturas-pop .3s ease-out; }
.jpm-game[data-game="laboratorio-das-misturas"] .lm-tag--app { background: #fff; color: var(--g-accent); box-shadow: 0 0 0 2px rgba(96, 70, 255, .35), 0 3px 10px rgba(23, 32, 51, .16); }
.jpm-game[data-game="laboratorio-das-misturas"] .lm-tag--prod { display: inline-flex; align-items: center; gap: .25em; padding: .15em .55em .15em .35em; font-size: clamp(8px, 1.45cqw, 13px); }
.jpm-game[data-game="laboratorio-das-misturas"] .lm-tag--prod svg { width: 1.2em; height: 1.2em; padding: .15em; border-radius: 50%; background: var(--lm-green); color: #fff; }
.jpm-game[data-game="laboratorio-das-misturas"] .lm-tag--prod.is-goal { box-shadow: 0 0 0 2px var(--lm-green), 0 3px 10px rgba(23, 32, 51, .16); }

/* bandeja de materiais/equipamentos */
.jpm-game[data-game="laboratorio-das-misturas"] .lm-tray { position: absolute; z-index: 3; left: 50%; bottom: 1.6cqh; translate: -50% 0; display: flex; align-items: stretch; justify-content: center; gap: .4em; width: max-content; max-width: 97cqw; padding: .4em; border-radius: 18px; background: rgba(255, 255, 255, .95); box-shadow: 0 8px 24px rgba(23, 32, 51, .18); }
.jpm-game[data-game="laboratorio-das-misturas"] .lm-card { position: relative; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: .15em; width: clamp(54px, 11.5cqw, 104px); min-height: clamp(52px, 11cqw, 92px); padding: .3em .1em; border: 0; border-radius: 14px; background: #F3F5FA; color: var(--lm-ink); box-shadow: inset 0 -4px 0 var(--c, #8A94A8); touch-action: none; transition: transform .12s; }
.jpm-game[data-game="laboratorio-das-misturas"] .lm-card.is-drag { cursor: grab; }
.jpm-game[data-game="laboratorio-das-misturas"] .lm-card.is-held { transform: scale(.94); opacity: .55; }
.jpm-game[data-game="laboratorio-das-misturas"] .lm-card:disabled { opacity: .4; cursor: default; }
.jpm-game[data-game="laboratorio-das-misturas"] .lm-card.is-used { opacity: .35; box-shadow: inset 0 0 0 2px #E3E8EF; }
.jpm-game[data-game="laboratorio-das-misturas"] .lm-ci { display: grid; place-items: center; width: clamp(24px, 4.8cqw, 42px); height: clamp(24px, 4.8cqw, 42px); border-radius: 50%; background: var(--c, #8A94A8); color: #fff; }
.jpm-game[data-game="laboratorio-das-misturas"] .lm-ci svg { width: 64%; height: 64%; }
.jpm-game[data-game="laboratorio-das-misturas"] .lm-cl { max-width: 100%; font-weight: 850; font-size: clamp(8px, 1.5cqw, 13px); line-height: 1.05; text-align: center; letter-spacing: -.01em; }
.jpm-game[data-game="laboratorio-das-misturas"] .lm-badge { position: absolute; top: 3px; right: 4px; padding: 0 .35em; border-radius: 999px; background: var(--lm-ink); color: #fff; font-weight: 900; font-size: clamp(8px, 1.4cqw, 12px); }
.jpm-game[data-game="laboratorio-das-misturas"] .lm-key { position: absolute; top: 3px; left: 4px; padding: 0 .3em; border-radius: 5px; background: rgba(23, 32, 51, .08); color: #7A8499; font: 800 clamp(7px, 1.2cqw, 10px)/1.4 inherit; }
.jpm-game[data-game="laboratorio-das-misturas"] .lm-card.is-btn { width: auto; min-width: clamp(52px, 10cqw, 92px); padding: .3em .7em; }
.jpm-game[data-game="laboratorio-das-misturas"] .lm-card.is-go { background: var(--g-accent); color: #fff; box-shadow: 0 5px 12px rgba(96, 70, 255, .3); }
.jpm-game[data-game="laboratorio-das-misturas"] .lm-card.is-go .lm-ci { background: rgba(255, 255, 255, .22); }
.jpm-game[data-game="laboratorio-das-misturas"] .lm-card.is-go .lm-key { background: rgba(255, 255, 255, .2); color: #fff; }
.jpm-game[data-game="laboratorio-das-misturas"] .lm-sep { width: 2px; margin: .3em .1em; border-radius: 2px; background: #E3E8EF; }
.jpm-game[data-game="laboratorio-das-misturas"] .lm-ghost { position: absolute; left: 0; top: 0; z-index: 6; width: 68px; min-height: 68px; pointer-events: none; background: #fff; box-shadow: 0 12px 26px rgba(23, 32, 51, .28), inset 0 -4px 0 var(--c, #8A94A8); rotate: -6deg; }
.jpm-game[data-game="laboratorio-das-misturas"] .lm-ghost.is-over { box-shadow: 0 0 0 4px var(--lm-green), 0 12px 26px rgba(23, 32, 51, .28); rotate: 0deg; }
.jpm-game[data-game="laboratorio-das-misturas"] .lm-ghost .lm-key, .jpm-game[data-game="laboratorio-das-misturas"] .lm-ghost .lm-badge { display: none; }
.jpm-game[data-game="laboratorio-das-misturas"] .lm-chip { position: relative; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: .1em; min-width: clamp(64px, 14cqw, 128px); min-height: clamp(52px, 10cqw, 80px); padding: .3em .7em; border: 0; border-radius: 14px; background: #F3F5FA; color: var(--lm-ink); box-shadow: inset 0 0 0 2px #DDE3EE; font-size: clamp(10px, 1.8cqw, 15px); }
.jpm-game[data-game="laboratorio-das-misturas"] .lm-chip b { font-weight: 900; font-size: 1.05em; white-space: nowrap; }
.jpm-game[data-game="laboratorio-das-misturas"] .lm-chip span { font-weight: 750; color: #5A6478; font-size: .86em; }
.jpm-game[data-game="laboratorio-das-misturas"] .lm-chip > svg { position: absolute; top: 4px; right: 4px; width: 1.4em; height: 1.4em; padding: .2em; border-radius: 50%; color: #fff; }
.jpm-game[data-game="laboratorio-das-misturas"] .lm-chip.is-ok { background: var(--lm-green); color: #fff; box-shadow: none; }
.jpm-game[data-game="laboratorio-das-misturas"] .lm-chip.is-ok span { color: #fff; }
.jpm-game[data-game="laboratorio-das-misturas"] .lm-chip.is-ok > svg { background: rgba(255, 255, 255, .25); }
.jpm-game[data-game="laboratorio-das-misturas"] .lm-chip.is-bad { background: #FFE6E6; color: #A32020; box-shadow: inset 0 0 0 2px var(--lm-coral); }
.jpm-game[data-game="laboratorio-das-misturas"] .lm-chip.is-bad > svg { background: var(--lm-coral); }
.jpm-game[data-game="laboratorio-das-misturas"] .lm-chip:disabled { cursor: default; }
.jpm-game[data-game="laboratorio-das-misturas"] .lm-chip:not(:disabled):hover { box-shadow: inset 0 0 0 3px var(--g-accent); }
.jpm-game[data-game="laboratorio-das-misturas"] .lm-chip--ev { flex-direction: row; gap: .45em; padding: .3em .8em .3em .4em; }
.jpm-game[data-game="laboratorio-das-misturas"] .lm-chip--ev .lm-ci { width: clamp(22px, 4.2cqw, 36px); height: clamp(22px, 4.2cqw, 36px); }

/* retorno */
.jpm-game[data-game="laboratorio-das-misturas"] .lm-fb { position: absolute; z-index: 3; left: 50%; bottom: calc(1.6cqh + clamp(62px, 13.6cqw, 112px)); translate: -50% 0; display: flex; align-items: center; gap: .6em; width: max-content; max-width: min(92cqw, 640px); padding: .5em .8em .5em .55em; border-radius: 16px; background: #fff; color: var(--lm-ink); box-shadow: 0 10px 28px rgba(23, 32, 51, .22); border-left: 6px solid var(--g-accent); animation: laboratorio-das-misturas-pop .3s ease-out; pointer-events: none; }
.jpm-game[data-game="laboratorio-das-misturas"] .lm-fb.is-good { border-left-color: var(--lm-green); }
.jpm-game[data-game="laboratorio-das-misturas"] .lm-fb.is-bad { border-left-color: var(--lm-coral); }
.jpm-game[data-game="laboratorio-das-misturas"] .lm-fb.is-warn { border-left-color: var(--lm-amber); }
.jpm-game[data-game="laboratorio-das-misturas"] .lm-fb-ico { flex: none; width: 1.9em; height: 1.9em; border-radius: 50%; display: grid; place-items: center; background: var(--g-accent); color: #fff; }
.jpm-game[data-game="laboratorio-das-misturas"] .lm-fb.is-good .lm-fb-ico { background: var(--lm-green); }
.jpm-game[data-game="laboratorio-das-misturas"] .lm-fb.is-bad .lm-fb-ico { background: var(--lm-coral); }
.jpm-game[data-game="laboratorio-das-misturas"] .lm-fb.is-warn .lm-fb-ico { background: var(--lm-amber); }
.jpm-game[data-game="laboratorio-das-misturas"] .lm-fb-ico svg { width: 62%; height: 62%; }
.jpm-game[data-game="laboratorio-das-misturas"] .lm-fb-body { min-width: 0; }
.jpm-game[data-game="laboratorio-das-misturas"] .lm-fb-title { margin: 0; font-weight: 900; font-size: .95em; line-height: 1.2; }
.jpm-game[data-game="laboratorio-das-misturas"] .lm-fb-text { margin: .1em 0 0; font-weight: 650; font-size: .84em; line-height: 1.28; color: #3A4459; }

/* banner da fase */
.jpm-game[data-game="laboratorio-das-misturas"] .lm-banner { background: transparent; align-content: start; padding-top: 30cqh; }
.jpm-game[data-game="laboratorio-das-misturas"] .lm-bcard { padding: .5em 1.4em .6em; border-radius: 20px; background: rgba(255, 255, 255, .95); text-align: center; box-shadow: 0 10px 30px rgba(23, 32, 51, .2); animation: laboratorio-das-misturas-pop .35s ease-out; }
.jpm-game[data-game="laboratorio-das-misturas"] .lm-bnum { margin: 0; font-weight: 900; color: var(--g-accent); font-size: clamp(11px, 2cqw, 16px); letter-spacing: .06em; text-transform: uppercase; }
.jpm-game[data-game="laboratorio-das-misturas"] .lm-bname { margin: 0; font-weight: 900; font-size: clamp(18px, 4.2cqw, 34px); letter-spacing: -.03em; }

/* painel de fases e resumo */
.jpm-game[data-game="laboratorio-das-misturas"] .lm-levels, .jpm-game[data-game="laboratorio-das-misturas"] .lm-report { background: rgba(23, 27, 52, .42); }
.jpm-game[data-game="laboratorio-das-misturas"] .lm-panel { display: flex; flex-direction: column; width: min(96cqw, 900px); max-height: 92cqh; border-radius: 20px; background: #fff; box-shadow: 0 18px 44px rgba(23, 32, 51, .25); overflow: hidden; }
.jpm-game[data-game="laboratorio-das-misturas"] .lm-phead { display: flex; align-items: center; gap: .6em; padding: .7em .9em; border-bottom: 2px solid #EEF1F7; }
.jpm-game[data-game="laboratorio-das-misturas"] .lm-ptitle { margin: 0; font-weight: 900; font-size: clamp(16px, 3cqw, 24px); letter-spacing: -.02em; }
.jpm-game[data-game="laboratorio-das-misturas"] .lm-total { display: inline-flex; align-items: center; gap: .25em; padding: .2em .6em; border-radius: 999px; background: #FFF6D6; font-weight: 850; font-size: clamp(11px, 2cqw, 15px); }
.jpm-game[data-game="laboratorio-das-misturas"] .lm-total svg { width: 1.1em; height: 1.1em; color: #F2B705; }
.jpm-game[data-game="laboratorio-das-misturas"] .lm-pbtn { margin-left: auto; min-height: clamp(32px, 6cqw, 42px); padding: 0 1em; border: 0; border-radius: 999px; background: #E9F8F2; color: #116A47; font-weight: 850; font-size: clamp(11px, 2cqw, 15px); box-shadow: inset 0 0 0 2px #B8EBD5; }
.jpm-game[data-game="laboratorio-das-misturas"] .lm-x { flex: none; width: clamp(32px, 6cqw, 42px); height: clamp(32px, 6cqw, 42px); border: 0; border-radius: 50%; background: #EEF1F7; display: grid; place-items: center; }
.jpm-game[data-game="laboratorio-das-misturas"] .lm-x svg { width: 50%; height: 50%; }
.jpm-game[data-game="laboratorio-das-misturas"] .lm-mods { overflow-y: auto; overscroll-behavior: contain; padding: .5em .9em .9em; }
.jpm-game[data-game="laboratorio-das-misturas"] .lm-mod { margin-top: .5em; }
.jpm-game[data-game="laboratorio-das-misturas"] .lm-mod-t { display: flex; align-items: center; gap: .45em; margin: .3em 0 .45em; font-weight: 900; font-size: clamp(12px, 2.2cqw, 17px); }
.jpm-game[data-game="laboratorio-das-misturas"] .lm-mod-t span { display: grid; place-items: center; width: 1.6em; height: 1.6em; border-radius: 50%; background: var(--mc); color: #fff; font-size: .85em; }
.jpm-game[data-game="laboratorio-das-misturas"] .lm-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(clamp(96px, 20cqw, 150px), 1fr)); gap: .5em; }
.jpm-game[data-game="laboratorio-das-misturas"] .lm-lcard { position: relative; display: flex; flex-direction: column; align-items: flex-start; gap: .2em; min-height: 52px; padding: .5em .6em; border: 0; border-radius: 14px; background: #F6F8FC; text-align: left; box-shadow: inset 0 0 0 2px #E3E8EF; }
.jpm-game[data-game="laboratorio-das-misturas"] .lm-lcard.is-next { box-shadow: inset 0 0 0 3px var(--mc); background: #fff; }
.jpm-game[data-game="laboratorio-das-misturas"] .lm-lcard.is-done { background: #F1FBF6; }
.jpm-game[data-game="laboratorio-das-misturas"] .lm-lnum { display: grid; place-items: center; min-width: 1.7em; height: 1.7em; border-radius: 8px; background: var(--mc); color: #fff; font-weight: 900; font-size: clamp(10px, 1.8cqw, 14px); }
.jpm-game[data-game="laboratorio-das-misturas"] .lm-lname2 { font-weight: 850; font-size: clamp(10px, 1.8cqw, 14px); line-height: 1.15; }
.jpm-game[data-game="laboratorio-das-misturas"] .lm-lsteps { display: flex; gap: 3px; }
.jpm-game[data-game="laboratorio-das-misturas"] .lm-lsteps i, .jpm-game[data-game="laboratorio-das-misturas"] .lm-lstars i { display: block; width: clamp(12px, 2.2cqw, 17px); height: clamp(12px, 2.2cqw, 17px); color: #8A94A8; }
.jpm-game[data-game="laboratorio-das-misturas"] .lm-lstars { position: absolute; top: .5em; right: .5em; display: flex; gap: 1px; }
.jpm-game[data-game="laboratorio-das-misturas"] .lm-lstars i { color: #DDE3EE; }
.jpm-game[data-game="laboratorio-das-misturas"] .lm-lstars i.is-on { color: #F2B705; }
.jpm-game[data-game="laboratorio-das-misturas"] .lm-lsteps svg, .jpm-game[data-game="laboratorio-das-misturas"] .lm-lstars svg { width: 100%; height: 100%; }

/* resultado */
.jpm-game[data-game="laboratorio-das-misturas"] .lm-rcard { width: min(94%, 540px); max-height: 94cqh; overflow-y: auto; padding: clamp(12px, 2.6cqw, 24px); }
.jpm-game[data-game="laboratorio-das-misturas"] .lm-rcard .g-stars { margin: 0 0 4px; }
.jpm-game[data-game="laboratorio-das-misturas"] .lm-stats { display: flex; justify-content: center; gap: clamp(8px, 3cqw, 24px); margin: .2em 0 .5em; }
.jpm-game[data-game="laboratorio-das-misturas"] .lm-stats div { display: flex; flex-direction: column; align-items: center; min-width: 4.4em; padding: .25em .5em; border-radius: 12px; background: #F3F5FA; }
.jpm-game[data-game="laboratorio-das-misturas"] .lm-stats b { font-weight: 900; font-size: clamp(16px, 3.4cqw, 26px); font-variant-numeric: tabular-nums; }
.jpm-game[data-game="laboratorio-das-misturas"] .lm-stats span { font-weight: 750; font-size: clamp(9px, 1.6cqw, 12px); color: var(--muted, #606B80); }
.jpm-game[data-game="laboratorio-das-misturas"] .lm-learn { margin: .3em 0; font-weight: 700; font-size: clamp(11px, 2cqw, 15px); line-height: 1.3; }
.jpm-game[data-game="laboratorio-das-misturas"] .lm-obj, .jpm-game[data-game="laboratorio-das-misturas"] .lm-bn { margin: .25em 0; font-weight: 650; font-size: clamp(10px, 1.8cqw, 13px); color: #3A4459; }
.jpm-game[data-game="laboratorio-das-misturas"] .lm-sum { margin-bottom: .6em; }
.jpm-game[data-game="laboratorio-das-misturas"] .lm-code { display: inline-block; margin: 0 .15em; padding: .05em .5em; border-radius: 999px; background: #E9E4FF; color: #4A33D6; font-weight: 900; }
.jpm-game[data-game="laboratorio-das-misturas"] .lm-ibtn { padding: 0 14px; }
.jpm-game[data-game="laboratorio-das-misturas"] .lm-ibtn svg { width: 20px; height: 20px; }

/* resumo da aula */
.jpm-game[data-game="laboratorio-das-misturas"] .lm-rep { width: min(94cqw, 720px); }
.jpm-game[data-game="laboratorio-das-misturas"] .lm-rep-body { overflow-y: auto; overscroll-behavior: contain; padding: .6em 1em; }
.jpm-game[data-game="laboratorio-das-misturas"] .lm-rep-sub { margin: 0 0 .4em; font-weight: 750; color: var(--muted, #606B80); font-size: clamp(10px, 1.8cqw, 14px); }
.jpm-game[data-game="laboratorio-das-misturas"] .lm-rep-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(clamp(150px, 40cqw, 300px), 1fr)); gap: .3em .8em; margin: .4em 0; padding: 0; list-style: none; }
.jpm-game[data-game="laboratorio-das-misturas"] .lm-rep-list li { display: flex; align-items: center; gap: .45em; padding: .25em .4em; border-radius: 10px; background: #F6F8FC; font-size: clamp(10px, 1.8cqw, 14px); }
.jpm-game[data-game="laboratorio-das-misturas"] .lm-rep-n { display: grid; place-items: center; width: 1.6em; height: 1.6em; border-radius: 50%; background: var(--g-accent); color: #fff; font-weight: 900; font-size: .85em; flex: none; }
.jpm-game[data-game="laboratorio-das-misturas"] .lm-rep-name { flex: 1; font-weight: 800; }
.jpm-game[data-game="laboratorio-das-misturas"] .lm-rep-v { font-weight: 850; color: #3A4459; font-variant-numeric: tabular-nums; }
.jpm-game[data-game="laboratorio-das-misturas"] .lm-rep-s { color: #F2B705; letter-spacing: -.05em; }
.jpm-game[data-game="laboratorio-das-misturas"] .lm-rep-s i { font-style: normal; color: #DDE3EE; }
.jpm-game[data-game="laboratorio-das-misturas"] .lm-rep-h { margin: .7em 0 .25em; font-weight: 900; font-size: clamp(12px, 2.2cqw, 16px); }
.jpm-game[data-game="laboratorio-das-misturas"] .lm-rep-obj, .jpm-game[data-game="laboratorio-das-misturas"] .lm-rep-bncc { margin: 0; padding-left: 1.2em; font-weight: 650; font-size: clamp(10px, 1.75cqw, 13px); line-height: 1.35; color: #3A4459; }
.jpm-game[data-game="laboratorio-das-misturas"] .lm-rep-bncc li { margin-bottom: .25em; }
.jpm-game[data-game="laboratorio-das-misturas"] .lm-rep-bncc b { color: #4A33D6; }
.jpm-game[data-game="laboratorio-das-misturas"] .lm-rep-note { margin: .6em 0 0; font-weight: 700; font-size: clamp(9px, 1.6cqw, 12px); color: var(--muted, #606B80); }
.jpm-game[data-game="laboratorio-das-misturas"] .lm-rep-btns { padding: .6em; border-top: 2px solid #EEF1F7; }

@keyframes laboratorio-das-misturas-pop { from { opacity: 0; transform: scale(.92); } to { opacity: 1; transform: scale(1); } }

@container (max-width: 640px) {
  .jpm-game[data-game="laboratorio-das-misturas"] .lm-lname { display: none; }
  .jpm-game[data-game="laboratorio-das-misturas"] .lm-task { max-width: 60cqw; padding: .35em .6em; }
  .jpm-game[data-game="laboratorio-das-misturas"] .lm-task-s { display: none; }
  .jpm-game[data-game="laboratorio-das-misturas"] .lm-key { display: none; }
  .jpm-game[data-game="laboratorio-das-misturas"] .lm-st { padding: .15em .2em; }
  .jpm-game[data-game="laboratorio-das-misturas"] .lm-st.is-on span { display: none; }
}
@container (max-width: 640px) {
  .jpm-game[data-game="laboratorio-das-misturas"] .lm-fb { top: calc(1.4cqh + 42px); bottom: auto; max-width: 97cqw; }
  .jpm-game[data-game="laboratorio-das-misturas"] .lm-fb:not([hidden]) + .lm-task { visibility: hidden; }
  .jpm-game[data-game="laboratorio-das-misturas"] .lm-tray { gap: .25em; padding: .3em; }
  .jpm-game[data-game="laboratorio-das-misturas"] .lm-chip { min-width: 0; padding: .25em .45em; }
  .jpm-game[data-game="laboratorio-das-misturas"] .lm-chip--ev { flex-direction: column; gap: .1em; flex: 1 1 0; }
  .jpm-game[data-game="laboratorio-das-misturas"] .lm-chip--ev b { white-space: normal; text-align: center; line-height: 1.05; font-size: .92em; }
}
@container (max-width: 520px) {
  .jpm-game[data-game="laboratorio-das-misturas"] .lm-steps { display: none; }
  .jpm-game[data-game="laboratorio-das-misturas"] .lm-fb { max-width: 96cqw; padding: .35em .6em .35em .4em; }
  .jpm-game[data-game="laboratorio-das-misturas"] .lm-fb-text { font-size: .78em; }
}
@container (max-height: 330px) {
  .jpm-game[data-game="laboratorio-das-misturas"] .lm-rcard { padding: 8px 12px; max-height: 96cqh; }
  .jpm-game[data-game="laboratorio-das-misturas"] .lm-rcard .g-kicker { display: none; }
  .jpm-game[data-game="laboratorio-das-misturas"] .lm-rcard .g-title { margin: 0; font-size: 17px; }
  .jpm-game[data-game="laboratorio-das-misturas"] .lm-rcard .g-stars { font-size: 16px; margin: 0; }
  .jpm-game[data-game="laboratorio-das-misturas"] .lm-stats { margin: 2px 0; gap: 6px; }
  .jpm-game[data-game="laboratorio-das-misturas"] .lm-stats div { flex-direction: row; gap: .3em; padding: .1em .45em; min-width: 0; }
  .jpm-game[data-game="laboratorio-das-misturas"] .lm-stats b { font-size: 13px; }
  .jpm-game[data-game="laboratorio-das-misturas"] .lm-learn { margin: 2px 0; font-size: 10px; line-height: 1.2; }
  .jpm-game[data-game="laboratorio-das-misturas"] .lm-obj, .jpm-game[data-game="laboratorio-das-misturas"] .lm-bn { margin: 1px 0; font-size: 9px; }
  .jpm-game[data-game="laboratorio-das-misturas"] .lm-sum { margin-bottom: 4px; }
  .jpm-game[data-game="laboratorio-das-misturas"] .lm-rcard .g-row { flex-wrap: nowrap; gap: 6px; }
  .jpm-game[data-game="laboratorio-das-misturas"] .lm-rcard .g-btn { min-height: 36px; padding: 0 12px; font-size: 13px; }
  .jpm-game[data-game="laboratorio-das-misturas"] .lm-panel { max-height: 96cqh; border-radius: 14px; }
  .jpm-game[data-game="laboratorio-das-misturas"] .lm-phead { padding: .35em .6em; }
  .jpm-game[data-game="laboratorio-das-misturas"] .lm-rep-btns { padding: .3em; }
  .jpm-game[data-game="laboratorio-das-misturas"] .lm-rep-btns .g-btn { min-height: 36px; font-size: 13px; }
}
@media (prefers-reduced-motion: reduce) {
  .jpm-game[data-game="laboratorio-das-misturas"] .lm-fb, .jpm-game[data-game="laboratorio-das-misturas"] .lm-bcard, .jpm-game[data-game="laboratorio-das-misturas"] .lm-tag--mk { animation: none; }
}
