/* ==== JPM KIT v1 — base visual dos jogos (sincronizado; regras do jogo vêm depois do "fim da base") ==== */
.jpm-game[data-game="baba"] {
  --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="baba"] [hidden] { display: none; }
.jpm-game[data-game="baba"] button { font: inherit; color: inherit; cursor: pointer; }
.jpm-game[data-game="baba"] button:focus-visible { outline: 3px solid var(--ink, #172033); outline-offset: 2px; }
.jpm-game[data-game="baba"] .g-canvas { position: absolute; inset: 0; display: block; width: 100%; height: 100%; touch-action: none; }
.jpm-game[data-game="baba"] .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="baba"] .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="baba"] .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="baba"] .g-chip--right { margin-left: auto; }
.jpm-game[data-game="baba"] .g-chip--warn { background: var(--coral, #FF6868); }
.jpm-game[data-game="baba"] .g-ico { width: 1.2em; height: 1.2em; flex: none; }
.jpm-game[data-game="baba"] .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="baba"] .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="baba"] .g-hearts { display: flex; gap: 4px; padding: 6px 10px; border-radius: var(--r-pill, 999px); background: var(--g-glass); }
.jpm-game[data-game="baba"] .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="baba"] .g-heart.is-lost { color: rgba(255, 255, 255, .35); transform: scale(.85); }

/* telas */
.jpm-game[data-game="baba"] .g-screen { position: absolute; inset: 0; z-index: 4; display: grid; place-items: center; padding: 12px; }
.jpm-game[data-game="baba"] .g-intro, .jpm-game[data-game="baba"] .g-over, .jpm-game[data-game="baba"] .g-paused { background: rgba(23, 27, 52, .32); }
.jpm-game[data-game="baba"] .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="baba"] .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="baba"] .g-intro .g-card { width: min(56%, 400px); }
.jpm-game[data-game="baba"] .g-card--small { width: auto; padding: 16px 22px; }
.jpm-game[data-game="baba"] .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="baba"] .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="baba"] .g-text { margin: 0 0 14px; color: var(--muted, #606B80); font-weight: 600; font-size: clamp(12px, 2.2cqw, 16px); }
.jpm-game[data-game="baba"] .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="baba"] .g-btn:active { transform: scale(.96); }
.jpm-game[data-game="baba"] .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="baba"] .g-row { display: flex; gap: 8px; justify-content: center; flex-wrap: wrap; }
.jpm-game[data-game="baba"] .g-results { display: flex; justify-content: center; gap: clamp(12px, 4cqw, 30px); margin: 10px 0; }
.jpm-game[data-game="baba"] .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="baba"] .g-lbl { font-size: clamp(11px, 1.8cqw, 13px); color: var(--muted, #606B80); font-weight: 700; }
.jpm-game[data-game="baba"] .g-best { margin: 0 0 14px; font-weight: 800; color: var(--g-accent); min-height: 1.2em; }
.jpm-game[data-game="baba"] .g-stars { display: flex; justify-content: center; gap: 6px; margin: 4px 0 8px; font-size: clamp(22px, 5cqw, 36px); }
.jpm-game[data-game="baba"] .g-star { width: 1em; height: 1em; color: var(--line, #E3E8EF); }
.jpm-game[data-game="baba"] .g-star.is-on { color: var(--yellow, #FFD43B); }

.jpm-game[data-game="baba"] .g-ready { pointer-events: none; align-content: center; gap: 12px; }
.jpm-game[data-game="baba"] .g-howto { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; }
.jpm-game[data-game="baba"] .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="baba"] .g-key { padding: 3px 9px; border-radius: 8px; background: var(--surface, #fff); color: var(--ink, #172033); font-weight: 900; }
.jpm-game[data-game="baba"] .g-touch-only { display: none; }
.jpm-game[data-game="baba"] .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: baba-pop .8s ease-out infinite; }
@keyframes baba-pop { from { transform: scale(1.25); opacity: .4; } 30% { transform: scale(1); opacity: 1; } }

/* botões de toque */
.jpm-game[data-game="baba"] .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="baba"] .g-touch-group { display: flex; gap: 10px; align-items: flex-end; }
.jpm-game[data-game="baba"] .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="baba"] .g-tbtn svg { width: 55%; height: 55%; }
.jpm-game[data-game="baba"] .g-tbtn--action { background: rgba(96, 70, 255, .78); }
.jpm-game[data-game="baba"] .g-tbtn.is-on, .jpm-game[data-game="baba"] .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="baba"] .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: baba-toast .9s ease-out forwards; }
.jpm-game[data-game="baba"] .g-toast.is-good { background: var(--green, #46D68C); color: var(--surface, #fff); }
.jpm-game[data-game="baba"] .g-toast.is-bad { background: var(--coral, #FF6868); color: var(--surface, #fff); }
@keyframes baba-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="baba"] .g-touch-only { display: inline-flex; }
}
@container (max-width: 520px) {
  .jpm-game[data-game="baba"] .g-intro { justify-items: center; padding-left: 12px; background: rgba(23, 27, 52, .3); }
  .jpm-game[data-game="baba"] .g-intro .g-card { width: min(92%, 400px); }
}
@media (prefers-reduced-motion: reduce) {
  .jpm-game[data-game="baba"] .g-count, .jpm-game[data-game="baba"] .g-toast { animation: none; }
}
/* ==== fim da base ==== */

/* jogo */

/* jogo: Babá */
.jpm-game[data-game="baba"] { --g-accent: #EE5C9C; --bb-ink: #2B2238; --bb-btn: clamp(52px, 9.6cqw, 78px); --bb-gap: clamp(6px, 1.2cqw, 12px); --bb-ring: clamp(58px, 13cqw, 112px); outline: none; }
.jpm-game[data-game="baba"] .g-canvas { cursor: default; }

/* HUD */
.jpm-game[data-game="baba"] .bb-hud { inset: 0; display: block; padding: 0; }
.jpm-game[data-game="baba"] .bb-bar { position: absolute; left: 0; top: 0; right: 0; display: flex; gap: 6px; align-items: center; padding: clamp(6px, 1.4cqw, 12px); }
.jpm-game[data-game="baba"] .bb-right { margin-left: auto; display: flex; gap: 6px; align-items: center; }
.jpm-game[data-game="baba"] .bb-menu { pointer-events: auto; width: clamp(34px, 6cqw, 46px); height: clamp(34px, 6cqw, 46px); border: 0; border-radius: 50%; background: var(--g-glass); display: grid; place-items: center; flex: none; padding: 0; }
.jpm-game[data-game="baba"] .bb-menu svg { width: 56%; height: 56%; }
.jpm-game[data-game="baba"] .bb-steps { gap: 4px; padding: 4px 8px; }
.jpm-game[data-game="baba"] .bb-step { position: relative; display: inline-grid; place-items: center; width: clamp(22px, 3.8cqw, 32px); height: clamp(22px, 3.8cqw, 32px); border-radius: 50%; background: rgba(255, 255, 255, .9); transition: transform .2s; }
.jpm-game[data-game="baba"] .bb-step > svg { width: 78%; height: 78%; }
.jpm-game[data-game="baba"] .bb-step.is-now { box-shadow: 0 0 0 3px #FFD166; transform: scale(1.08); }
.jpm-game[data-game="baba"] .bb-step.is-done > svg:first-child { opacity: .4; }
.jpm-game[data-game="baba"] .bb-step .bb-ok { position: absolute; right: -4px; bottom: -4px; width: 60%; height: 60%; animation: baba-pop .4s ease-out; }
.jpm-game[data-game="baba"] .bb-moodchip .g-bar { width: clamp(46px, 12cqw, 140px); }
.jpm-game[data-game="baba"] .bb-moodchip .g-fill { background: linear-gradient(90deg, #FF9F7A, #FFD166 45%, #5FDB8F); transition: width .3s; }
.jpm-game[data-game="baba"] .bb-moodchip.is-low { animation: baba-wobble 1s ease-in-out infinite; }
.jpm-game[data-game="baba"] .bb-goal { position: absolute; left: 50%; top: clamp(44px, 8.4cqw, 68px); transform: translateX(-50%); max-width: calc(100% - 24px); margin: 0; padding: .35em 1em; border-radius: var(--r-pill, 999px); background: rgba(255, 255, 255, .92); color: var(--bb-ink); font-weight: 800; font-size: clamp(11px, 2cqw, 17px); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; box-shadow: 0 4px 14px rgba(43, 34, 56, .14); }
.jpm-game[data-game="baba"] .bb-goal:empty { display: none; }
.jpm-game[data-game="baba"] .bb-goal.is-flash { animation: baba-flash .5s ease-out; }
.jpm-game[data-game="baba"] .bb-pbar { position: absolute; left: 50%; top: calc(clamp(44px, 8.4cqw, 68px) + clamp(24px, 4.2cqw, 36px)); width: clamp(90px, 24cqw, 220px); height: clamp(7px, 1.2cqw, 11px); transform: translateX(-50%); border-radius: var(--r-pill, 999px); background: rgba(43, 34, 56, .3); overflow: hidden; box-shadow: 0 0 0 2px rgba(255, 255, 255, .8); }
.jpm-game[data-game="baba"] .bb-pfill { position: absolute; inset: 0 auto 0 0; width: 0; border-radius: inherit; background: linear-gradient(90deg, #FF8FBF, #FFC75F); transition: width .12s linear; }

/* bandeja de itens e escolha de roupas */
.jpm-game[data-game="baba"] .bb-dock { justify-content: center; align-items: flex-end; gap: var(--bb-gap); padding: clamp(6px, 1.4cqw, 12px); }
.jpm-game[data-game="baba"] .bb-item, .jpm-game[data-game="baba"] .bb-opt { pointer-events: auto; position: relative; width: var(--bb-btn); height: var(--bb-btn); padding: 0; border: 0; border-radius: 50%; background: var(--surface, #fff); box-shadow: 0 4px 0 #F2C6DA, 0 8px 16px rgba(43, 34, 56, .18); display: grid; place-items: center; touch-action: manipulation; transition: transform .12s, opacity .15s; }
.jpm-game[data-game="baba"] .bb-opt { border-radius: clamp(14px, 2.4cqw, 22px); background: #FFF8FB; }
.jpm-game[data-game="baba"] .bb-item svg, .jpm-game[data-game="baba"] .bb-opt svg { width: 70%; height: 70%; pointer-events: none; }
.jpm-game[data-game="baba"] .bb-item:active, .jpm-game[data-game="baba"] .bb-opt:active { transform: scale(.93); }
.jpm-game[data-game="baba"] .bb-item.is-no { animation: baba-shake .4s ease-in-out; background: #FFE3E6; }
.jpm-game[data-game="baba"] .bb-item.is-ok { transform: scale(1.12); box-shadow: 0 4px 0 #9BE3B9, 0 0 0 4px #5FDB8F; }
.jpm-game[data-game="baba"] .bb-item.is-hint { animation: baba-wiggle .9s ease-in-out infinite; box-shadow: 0 4px 0 #F2C6DA, 0 0 0 4px #FFD166, 0 6px 18px rgba(255, 196, 60, .55); }
.jpm-game[data-game="baba"] .bb-opt.is-wrong { opacity: .35; transform: scale(.9); animation: baba-shake .4s ease-in-out; }
.jpm-game[data-game="baba"] .bb-key { position: absolute; left: 50%; top: -2px; transform: translate(-50%, -40%); min-width: 1.5em; padding: 0 .3em; border-radius: 99px; background: var(--g-accent); color: #fff; font-size: clamp(9px, 1.4cqw, 12px); font-weight: 900; line-height: 1.5; pointer-events: none; }
.jpm-game[data-game="baba"] .bb-picker { animation: baba-rise .25s ease-out; }
.jpm-game[data-game="baba"] .bb-want { position: relative; display: flex; flex-direction: column; align-items: center; justify-content: center; width: calc(var(--bb-btn) * 1.05); height: calc(var(--bb-btn) * 1.05); margin-right: calc(var(--bb-gap) * .6); border-radius: clamp(14px, 2.4cqw, 22px); background: var(--g-accent); box-shadow: 0 4px 0 #C93F7D, 0 8px 16px rgba(43, 34, 56, .2); pointer-events: none; }
.jpm-game[data-game="baba"] .bb-want-l { position: absolute; left: 50%; top: 0; transform: translate(-50%, -55%); padding: 0 .5em; border-radius: 99px; background: #fff; color: var(--g-accent); font-weight: 900; font-size: clamp(9px, 1.4cqw, 12px); line-height: 1.5; white-space: nowrap; box-shadow: 0 2px 6px rgba(43, 34, 56, .18); }
.jpm-game[data-game="baba"] .bb-want-ic { display: grid; place-items: center; width: 82%; height: 82%; border-radius: 50%; background: #fff; }
.jpm-game[data-game="baba"] .bb-want-ic svg { width: 78%; height: 78%; }

/* termômetro do leite */
.jpm-game[data-game="baba"] .bb-gauge { position: absolute; right: clamp(10px, 4cqw, 40px); top: 26%; bottom: 14%; z-index: 3; display: flex; flex-direction: column; align-items: center; gap: 4px; pointer-events: none; }
.jpm-game[data-game="baba"] .bb-g-tube { position: relative; flex: 1; width: clamp(20px, 3.6cqw, 34px); border-radius: 99px; background: linear-gradient(0deg, #8FD0FF, #CFEFFF 40%, #FFD0C8 70%, #FF8A7A); box-shadow: 0 0 0 3px #fff, 0 6px 16px rgba(43, 34, 56, .2); }
.jpm-game[data-game="baba"] .bb-g-zone { position: absolute; left: -5px; right: -5px; border-radius: 8px; background: #5FDB8F; box-shadow: 0 0 0 2px #fff; opacity: .9; }
.jpm-game[data-game="baba"] .bb-gauge.is-ok .bb-g-zone { animation: baba-glow .6s ease-in-out infinite alternate; }
.jpm-game[data-game="baba"] .bb-g-mark { position: absolute; left: 50%; bottom: 0; width: 170%; height: clamp(10px, 1.8cqw, 16px); transform: translate(-50%, 50%); border-radius: 99px; background: var(--bb-ink); box-shadow: 0 0 0 3px #fff; transition: bottom .06s linear; }
.jpm-game[data-game="baba"] .bb-gauge.is-hot .bb-g-mark { background: #FF5A5A; }
.jpm-game[data-game="baba"] .bb-g-ico { padding: .1em .5em; border-radius: 99px; color: #fff; font-weight: 900; font-size: clamp(9px, 1.5cqw, 13px); }
.jpm-game[data-game="baba"] .bb-g-hot { background: #FF7A6B; }
.jpm-game[data-game="baba"] .bb-g-cold { background: #5FB4F2; }

/* anel do ninar */
.jpm-game[data-game="baba"] .bb-ring { position: absolute; left: 80%; top: 56%; z-index: 3; width: var(--bb-ring); height: var(--bb-ring); margin: calc(var(--bb-ring) / -2) 0 0 calc(var(--bb-ring) / -2); pointer-events: none; }
.jpm-game[data-game="baba"] .bb-ring-out { position: absolute; inset: 0; border-radius: 50%; border: 4px solid #fff; box-shadow: 0 0 10px rgba(185, 166, 255, .9); will-change: transform; }
.jpm-game[data-game="baba"] .bb-ring-in { position: absolute; inset: 0; display: grid; place-items: center; border-radius: 50%; background: rgba(123, 102, 217, .35); box-shadow: inset 0 0 0 3px rgba(255, 255, 255, .6); }
.jpm-game[data-game="baba"] .bb-ring-in svg { width: 62%; height: 62%; filter: drop-shadow(0 2px 3px rgba(43, 34, 56, .3)); }
.jpm-game[data-game="baba"] .bb-ring.is-near .bb-ring-in { background: rgba(255, 212, 59, .45); }
.jpm-game[data-game="baba"] .bb-ring.is-hit .bb-ring-in { background: rgba(95, 219, 143, .8); transform: scale(1.15); }
.jpm-game[data-game="baba"] .bb-ring.is-miss .bb-ring-in { background: rgba(255, 138, 122, .6); }

/* mãozinha */
.jpm-game[data-game="baba"] .bb-hint { position: absolute; left: 0; top: 0; z-index: 5; width: clamp(30px, 5.4cqw, 48px); margin: -4px 0 0 -10px; pointer-events: none; filter: drop-shadow(0 3px 4px rgba(43, 34, 56, .3)); will-change: transform; }
.jpm-game[data-game="baba"] .bb-hint svg { display: block; width: 100%; height: auto; }

/* intro */
.jpm-game[data-game="baba"] .bb-intro-card .g-title { color: var(--g-accent); }

/* fases */
.jpm-game[data-game="baba"] .bb-levels { background: rgba(43, 34, 56, .3); }
.jpm-game[data-game="baba"] .bb-lv-card { width: min(94%, 800px); max-height: calc(100cqh - 24px); display: flex; flex-direction: column; gap: clamp(6px, 1.2cqw, 12px); padding: clamp(12px, 2.4cqw, 22px) clamp(10px, 2.2cqw, 22px); background: #FFF9FC; box-shadow: 0 0 0 clamp(4px, .8cqw, 7px) #FFC6DD, var(--shadow2, 0 18px 44px rgba(23, 32, 51, .16)); }
.jpm-game[data-game="baba"] .bb-lv-head { display: flex; align-items: center; justify-content: center; gap: 10px; }
.jpm-game[data-game="baba"] .bb-lv-head .g-title { margin: 0; font-size: clamp(16px, 3.6cqw, 30px); color: var(--g-accent); }
.jpm-game[data-game="baba"] .bb-lv-total { display: inline-flex; align-items: center; gap: 4px; padding: 3px 10px 3px 6px; border-radius: var(--r-pill, 999px); background: #FFF1C9; font-weight: 900; font-size: clamp(12px, 2cqw, 16px); color: var(--bb-ink); }
.jpm-game[data-game="baba"] .bb-lv-total svg { width: 1.2em; height: 1.2em; }
.jpm-game[data-game="baba"] .bb-lv-grid { flex: 1 1 auto; min-height: 0; overflow-y: auto; overscroll-behavior: contain; display: grid; grid-template-columns: repeat(6, 1fr); grid-auto-rows: max-content; gap: clamp(6px, 1.2cqw, 12px); padding: 4px 2px; }
.jpm-game[data-game="baba"] .bb-lv { position: relative; min-height: 52px; border: 0; border-radius: clamp(12px, 2cqw, 18px); background: #FFEAF3; color: var(--bb-ink); display: flex; flex-direction: column; align-items: center; gap: .15em; padding: .45em .2em .4em; font-weight: 900; transition: transform .12s; }
.jpm-game[data-game="baba"] .bb-lv:nth-child(3n+2) { background: #E6F7F1; }
.jpm-game[data-game="baba"] .bb-lv:nth-child(3n) { background: #F0ECFF; }
.jpm-game[data-game="baba"] .bb-lv:active { transform: scale(.95); }
.jpm-game[data-game="baba"] .bb-lv-n { position: absolute; left: 7px; top: 5px; font-size: clamp(10px, 1.7cqw, 14px); line-height: 1; color: #8A93A8; }
.jpm-game[data-game="baba"] .bb-lv-face { position: relative; width: clamp(28px, 6.4cqw, 56px); height: clamp(28px, 6.4cqw, 56px); border-radius: 50%; background: #fff; box-shadow: 0 0 0 3px #fff, 0 3px 8px rgba(43, 34, 56, .16); }
.jpm-game[data-game="baba"] .bb-lv-face > svg { width: 100%; height: 100%; }
.jpm-game[data-game="baba"] .bb-lv-name { font-size: clamp(10px, 1.6cqw, 13px); line-height: 1.1; }
.jpm-game[data-game="baba"] .bb-lv-ics { display: flex; gap: 1px; flex-wrap: wrap; justify-content: center; }
.jpm-game[data-game="baba"] .bb-lv-ic { display: grid; place-items: center; width: clamp(13px, 2.3cqw, 20px); height: clamp(13px, 2.3cqw, 20px); border-radius: 50%; background: #fff; }
.jpm-game[data-game="baba"] .bb-lv-ic svg { width: 84%; height: 84%; }
.jpm-game[data-game="baba"] .bb-lv-stars { display: flex; gap: 1px; }
.jpm-game[data-game="baba"] .bb-lv-star { width: clamp(10px, 1.8cqw, 16px); height: clamp(10px, 1.8cqw, 16px); color: #D3DBE6; }
.jpm-game[data-game="baba"] .bb-lv-star.is-on { color: #FFC23C; }
.jpm-game[data-game="baba"] .bb-lv.is-locked { opacity: .55; cursor: default; }
.jpm-game[data-game="baba"] .bb-lv.is-locked .bb-lv-face > svg { filter: grayscale(1); opacity: .45; }
.jpm-game[data-game="baba"] .bb-lock { position: absolute; inset: 0; display: grid; place-items: center; color: #6B7487; }
.jpm-game[data-game="baba"] .bb-lock svg { width: 56%; height: 56%; }

/* chegada */
.jpm-game[data-game="baba"] .bb-ready { align-content: center; gap: clamp(4px, 1cqw, 10px); text-align: center; background: rgba(43, 34, 56, .18); }
.jpm-game[data-game="baba"] .bb-rd-level { margin: 0; padding: .3em 1em; border-radius: var(--r-pill, 999px); background: var(--g-accent); color: var(--surface, #fff); font-weight: 900; font-size: clamp(13px, 2.6cqw, 20px); }
.jpm-game[data-game="baba"] .bb-rd-name { margin: 0; color: var(--surface, #fff); font-weight: 900; font-size: clamp(22px, 5.4cqw, 46px); letter-spacing: -.03em; line-height: 1.05; text-shadow: 0 3px 0 rgba(43, 34, 56, .35), 0 0 18px rgba(43, 34, 56, .25); animation: baba-pop .5s ease-out; }
.jpm-game[data-game="baba"] .bb-rd-tip { margin: 0; color: var(--surface, #fff); font-weight: 800; font-size: clamp(12px, 2.4cqw, 19px); text-shadow: 0 2px 0 rgba(43, 34, 56, .35); }
.jpm-game[data-game="baba"] .bb-ready.is-memo .bb-rd-tip { padding: .2em .8em; border-radius: 99px; background: #7C63E8; text-shadow: none; animation: baba-beat 1s ease-in-out infinite; }
.jpm-game[data-game="baba"] .bb-rd-steps { display: flex; align-items: center; gap: clamp(4px, .8cqw, 8px); padding: clamp(6px, 1.2cqw, 10px) clamp(10px, 2cqw, 16px); border-radius: clamp(16px, 3cqw, 26px); background: rgba(255, 255, 255, .95); box-shadow: 0 8px 20px rgba(43, 34, 56, .2); }
.jpm-game[data-game="baba"] .bb-rd-step { display: grid; place-items: center; width: clamp(30px, 6.4cqw, 56px); height: clamp(30px, 6.4cqw, 56px); border-radius: 50%; background: #FFF0F6; animation: baba-pop .45s ease-out both; }
.jpm-game[data-game="baba"] .bb-rd-step:nth-of-type(2) { animation-delay: .12s; }
.jpm-game[data-game="baba"] .bb-rd-step:nth-of-type(3) { animation-delay: .24s; }
.jpm-game[data-game="baba"] .bb-rd-step:nth-of-type(4) { animation-delay: .36s; }
.jpm-game[data-game="baba"] .bb-rd-step:nth-of-type(5) { animation-delay: .48s; }
.jpm-game[data-game="baba"] .bb-rd-step svg { width: 76%; height: 76%; }
.jpm-game[data-game="baba"] .bb-arrow { color: #C2A9D9; font-weight: 900; font-size: clamp(16px, 3cqw, 26px); line-height: 1; }

/* resultado */
.jpm-game[data-game="baba"] .bb-over-card { position: relative; padding-top: clamp(22px, 4.4cqw, 40px); margin-top: clamp(16px, 3cqw, 30px); }
.jpm-game[data-game="baba"] .bb-over-card .g-title { color: var(--g-accent); }
.jpm-game[data-game="baba"] .bb-sticker { position: absolute; left: 50%; top: 0; width: clamp(48px, 10cqw, 84px); height: clamp(48px, 10cqw, 84px); margin-left: calc(clamp(48px, 10cqw, 84px) / -2); margin-top: calc(clamp(48px, 10cqw, 84px) / -1.6); border-radius: 50%; background: #fff; box-shadow: 0 0 0 4px #FFC6DD, 0 6px 14px rgba(43, 34, 56, .25); animation: baba-stamp .6s cubic-bezier(.2, 1.6, .4, 1) both; }
.jpm-game[data-game="baba"] .bb-sticker > svg { width: 100%; height: 100%; }
.jpm-game[data-game="baba"] .bb-tip { margin: 0 0 4px; font-weight: 700; color: var(--muted, #606B80); font-size: clamp(11px, 1.9cqw, 14px); }
.jpm-game[data-game="baba"] .bb-over-card .g-best { margin-bottom: 10px; }

@keyframes baba-pop { from { transform: scale(.4); opacity: 0; } 70% { transform: scale(1.1); opacity: 1; } to { transform: scale(1); } }
@keyframes baba-flash { 0% { transform: translateX(-50%) scale(1); } 40% { transform: translateX(-50%) scale(1.06); } 100% { transform: translateX(-50%) scale(1); } }
@keyframes baba-beat { 0%, 100% { transform: scale(1); } 50% { transform: scale(1.06); } }
@keyframes baba-wiggle { 0%, 100% { transform: rotate(0); } 25% { transform: rotate(-8deg) scale(1.06); } 75% { transform: rotate(8deg) scale(1.06); } }
@keyframes baba-shake { 0%, 100% { transform: translateX(0); } 25% { transform: translateX(-6px); } 75% { transform: translateX(6px); } }
@keyframes baba-wobble { 0%, 100% { transform: rotate(0); } 50% { transform: rotate(-3deg); } }
@keyframes baba-glow { from { box-shadow: 0 0 0 2px #fff; } to { box-shadow: 0 0 0 2px #fff, 0 0 14px 4px rgba(95, 219, 143, .9); } }
@keyframes baba-rise { from { transform: translateY(30%); opacity: 0; } to { transform: translateY(0); opacity: 1; } }
@keyframes baba-stamp { from { transform: scale(2.2) rotate(-25deg); opacity: 0; } to { transform: scale(1) rotate(-8deg); opacity: 1; } }

@container (max-width: 640px) {
  .jpm-game[data-game="baba"] .bb-lv-grid { grid-template-columns: repeat(4, 1fr); }
  .jpm-game[data-game="baba"] .bb-lvl { display: none; }
}
@container (max-width: 460px) {
  .jpm-game[data-game="baba"] .bb-moodchip .g-bar { width: 36px; }
  .jpm-game[data-game="baba"] .bb-bar { gap: 4px; padding: 5px; }
  .jpm-game[data-game="baba"] .bb-right { gap: 4px; }
  .jpm-game[data-game="baba"] .g-chip { padding: 3px 7px 3px 5px; font-size: 12px; gap: 4px; }
  .jpm-game[data-game="baba"] .bb-steps { gap: 2px; padding: 3px 5px; }
  .jpm-game[data-game="baba"] .bb-step { width: 20px; height: 20px; }
  .jpm-game[data-game="baba"] .bb-step.is-now { box-shadow: 0 0 0 2px #FFD166; }
  .jpm-game[data-game="baba"] .bb-menu { width: 30px; height: 30px; }
  .jpm-game[data-game="baba"] .bb-goal { top: 38px; font-size: 11px; padding: .25em .8em; }
  .jpm-game[data-game="baba"] .bb-pbar { top: 60px; height: 6px; }
  .jpm-game[data-game="baba"] .bb-dock { padding: 5px; gap: 6px; }
  .jpm-game[data-game="baba"] .bb-key { display: none; }
  .jpm-game[data-game="baba"] .bb-picker { --bb-btn: min(52px, calc((100cqw - 56px) / 7)); }
  .jpm-game[data-game="baba"] .bb-gauge { top: 30%; bottom: 8%; right: 10px; }
}
@container (max-height: 330px) {
  .jpm-game[data-game="baba"] { --bb-btn: 52px; }
  .jpm-game[data-game="baba"] .bb-over-card { padding: 8px 12px 8px; margin-top: 0; width: min(96%, 460px); }
  .jpm-game[data-game="baba"] .bb-over { padding: 6px; }
  .jpm-game[data-game="baba"] .bb-sticker, .jpm-game[data-game="baba"] .bb-over-card .g-kicker, .jpm-game[data-game="baba"] .bb-tip { display: none; }
  .jpm-game[data-game="baba"] .bb-over-card .g-title { font-size: 18px; margin: 0 0 2px; }
  .jpm-game[data-game="baba"] .bb-over-card .g-stars { margin: 0; font-size: 20px; }
  .jpm-game[data-game="baba"] .bb-over-card .g-results { margin: 2px 0; }
  .jpm-game[data-game="baba"] .bb-over-card .g-num { font-size: 18px; }
  .jpm-game[data-game="baba"] .bb-over-card .g-best { margin: 0 0 4px; font-size: 12px; min-height: 0; }
  .jpm-game[data-game="baba"] .bb-over-card .g-row { flex-wrap: nowrap; gap: 6px; justify-content: center; }
  .jpm-game[data-game="baba"] .bb-over-card .g-btn { min-height: 44px; padding: 0 10px; font-size: 13px; white-space: nowrap; }
  .jpm-game[data-game="baba"] .bb-intro-card .g-text { margin-bottom: 8px; }
  .jpm-game[data-game="baba"] .bb-lv-card { padding: 8px; gap: 4px; max-height: calc(100cqh - 16px); }
  .jpm-game[data-game="baba"] .bb-lv-name { display: none; }
}
@container (max-height: 240px) {
  .jpm-game[data-game="baba"] .bb-over-card .g-best { display: none; }
  .jpm-game[data-game="baba"] .bb-over-card .g-lbl { font-size: 10px; }
  .jpm-game[data-game="baba"] .bb-over-card .g-title { font-size: 16px; }
  .jpm-game[data-game="baba"] .bb-intro-card { padding: 10px 14px; }
  .jpm-game[data-game="baba"] .bb-intro-card .g-kicker { display: none; }
  .jpm-game[data-game="baba"] .bb-intro-card .g-text { font-size: 12px; margin: 2px 0 6px; }
  .jpm-game[data-game="baba"] .bb-lv-head .g-title { font-size: 15px; }
  .jpm-game[data-game="baba"] .bb-lv-ics { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  .jpm-game[data-game="baba"] .bb-item.is-hint, .jpm-game[data-game="baba"] .bb-sticker, .jpm-game[data-game="baba"] .bb-rd-name, .jpm-game[data-game="baba"] .bb-moodchip.is-low, .jpm-game[data-game="baba"] .bb-ready.is-memo .bb-rd-tip, .jpm-game[data-game="baba"] .bb-gauge.is-ok .bb-g-zone { animation: none; }
}
