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

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

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

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

/* jogo */
.jpm-game[data-game="bebe"] { --g-accent: #F0619A; --bb-pink: #FF7AA8; --bb-mint: #2EC4A6; --bb-glass: rgba(43, 35, 64, .66); --bb-cream: #FFF7EE; }
.jpm-game[data-game="bebe"] .g-panel { position: absolute; pointer-events: none; }
.jpm-game[data-game="bebe"] .bb-ico { width: 1.25em; height: 1.25em; display: block; }

/* HUD */
.jpm-game[data-game="bebe"] .bb-hud { gap: 6px; padding: 8px 10px; }
.jpm-game[data-game="bebe"] .bb-hud .g-chip { background: var(--bb-glass); }
.jpm-game[data-game="bebe"] .bb-day { pointer-events: auto; border: 0; cursor: pointer; }
.jpm-game[data-game="bebe"] .bb-needs { gap: 5px; padding: 4px 8px; }
.jpm-game[data-game="bebe"] .bb-need { --v: 100%; --nc: #46D68C; position: relative; display: grid; place-items: center; width: 1.85em; height: 1.85em; border-radius: 50%; background: conic-gradient(var(--nc) var(--v), rgba(255, 255, 255, .2) 0); }
.jpm-game[data-game="bebe"] .bb-need svg { width: 1.45em; height: 1.45em; padding: .16em; border-radius: 50%; background: #fff; box-sizing: border-box; }
.jpm-game[data-game="bebe"] .bb-need.is-low { --nc: #FF6868; animation: bebe-pulse 1s ease-in-out infinite; }
.jpm-game[data-game="bebe"] .bb-smiles { padding-right: 14px; }
.jpm-game[data-game="bebe"] .bb-clock { gap: 6px; }
.jpm-game[data-game="bebe"] .bb-cico { display: grid; place-items: center; }
.jpm-game[data-game="bebe"] .bb-moments { display: inline-flex; gap: 3px; margin-left: 2px; }
.jpm-game[data-game="bebe"] .bb-dot { width: .5em; height: .5em; border-radius: 50%; background: rgba(255, 255, 255, .3); }
.jpm-game[data-game="bebe"] .bb-dot.is-done { background: #FFD166; }

/* balão do bebê */
.jpm-game[data-game="bebe"] .bb-bubble { z-index: 2; display: flex; align-items: center; gap: .4em; padding: .35em .85em .35em .4em; border-radius: 999px; background: #fff; color: var(--ink, #172033); font-weight: 900; font-size: clamp(12px, 2.3cqw, 19px); white-space: nowrap; transform: translate(-50%, -100%); box-shadow: 0 8px 22px rgba(43, 35, 64, .22); }
.jpm-game[data-game="bebe"] .bb-bubble::after { content: ""; position: absolute; left: 50%; bottom: -.55em; width: .9em; height: .9em; background: #fff; border-radius: 50%; transform: translateX(-50%); box-shadow: .5em .55em 0 -.18em #fff; }
.jpm-game[data-game="bebe"] .bb-bubble.is-pop { animation: bebe-bubble .45s cubic-bezier(.3, 1.6, .5, 1); }
.jpm-game[data-game="bebe"] .bb-bubble-ico { display: grid; place-items: center; width: 2em; height: 2em; border-radius: 50%; background: #FFF0F6; }
.jpm-game[data-game="bebe"] .bb-bico { width: 1.5em; height: 1.5em; }

/* dica */
.jpm-game[data-game="bebe"] .bb-hint { z-index: 2; left: 50%; top: clamp(40px, 10cqh, 66px); transform: translateX(-50%); display: flex; align-items: center; gap: .5em; padding: .35em .9em .35em .4em; border-radius: 999px; background: var(--bb-glass); color: #fff; font-weight: 800; font-size: clamp(11px, 2.1cqw, 17px); white-space: nowrap; max-width: 94%; }
.jpm-game[data-game="bebe"] .bb-hint-ico { display: grid; place-items: center; flex: none; width: 1.75em; height: 1.75em; border-radius: 50%; background: #fff; color: var(--g-accent); }
.jpm-game[data-game="bebe"] .bb-hint-ico .bb-ico { width: 1.25em; height: 1.25em; }
.jpm-game[data-game="bebe"] .bb-hint-txt { overflow: hidden; text-overflow: ellipsis; }
.jpm-game[data-game="bebe"] .bb-hint-bar { position: relative; flex: none; width: clamp(40px, 10cqw, 110px); height: .6em; border-radius: 999px; background: rgba(255, 255, 255, .25); overflow: hidden; }
.jpm-game[data-game="bebe"] .bb-hint-fill { position: absolute; inset: 0 auto 0 0; width: 0; border-radius: inherit; background: linear-gradient(90deg, #FFD166, #FF9EC4); transition: width .2s linear; }

/* equilíbrio dos passinhos */
.jpm-game[data-game="bebe"] .bb-gauge { z-index: 2; left: 50%; top: clamp(70px, 20cqh, 120px); width: clamp(160px, 40cqw, 360px); height: clamp(16px, 3.6cqw, 26px); transform: translateX(-50%); border-radius: 999px; background: linear-gradient(90deg, #FF8A8A, #FFD166 25%, #7BE0A6 38%, #7BE0A6 62%, #FFD166 75%, #FF8A8A); box-shadow: 0 0 0 3px #fff, 0 6px 16px rgba(43, 35, 64, .2); }
.jpm-game[data-game="bebe"] .bb-gauge-ok { position: absolute; left: 50%; top: -4px; bottom: -4px; width: 3px; margin-left: -1.5px; background: #fff; border-radius: 2px; }
.jpm-game[data-game="bebe"] .bb-gauge-dot { position: absolute; left: 50%; top: 50%; width: 1.5em; height: 1.5em; border-radius: 50%; background: #fff; border: 4px solid var(--g-accent); transform: translate(-50%, -50%); box-sizing: border-box; }
.jpm-game[data-game="bebe"] .bb-gauge.is-bad .bb-gauge-dot { border-color: #E84A4A; }

/* botões numerados sobre os objetos */
.jpm-game[data-game="bebe"] .bb-badges { inset: 0; z-index: 2; }
.jpm-game[data-game="bebe"] .bb-badge { position: absolute; pointer-events: auto; width: clamp(44px, 8.6cqw, 64px); height: clamp(44px, 8.6cqw, 64px); margin: 0; padding: 0; border: 0; border-radius: 50%; transform: translate(-50%, -50%); background: rgba(255, 255, 255, .92); box-shadow: 0 0 0 3px rgba(240, 97, 154, .55), 0 6px 14px rgba(43, 35, 64, .25); display: grid; place-items: center; touch-action: manipulation; }
.jpm-game[data-game="bebe"] .bb-badge span { display: grid; place-items: center; width: 62%; height: 62%; border-radius: 50%; background: var(--g-accent); color: #fff; font-weight: 900; font-size: clamp(13px, 2.4cqw, 19px); }
.jpm-game[data-game="bebe"] .bb-badge.is-glow { box-shadow: 0 0 0 4px #FFD166, 0 0 22px rgba(255, 209, 102, .95); animation: bebe-pulse .7s ease-in-out infinite; }
.jpm-game[data-game="bebe"] .bb-badge.is-no { animation: bebe-shake .4s; background: #FFE3E3; }

/* roupinhas */
.jpm-game[data-game="bebe"] .bb-clothes { z-index: 3; left: 50%; bottom: clamp(8px, 3cqh, 18px); transform: translateX(-50%); display: flex; gap: clamp(8px, 2cqw, 16px); padding: clamp(5px, 1cqw, 9px); border-radius: 22px; background: rgba(255, 255, 255, .6); pointer-events: auto; }
.jpm-game[data-game="bebe"] .bb-cloth { position: relative; display: grid; place-items: center; width: clamp(56px, 12cqw, 92px); height: clamp(56px, 12cqw, 92px); padding: 0; border: 0; border-radius: 18px; background: #fff; color: var(--c); box-shadow: 0 4px 0 rgba(43, 35, 64, .14); touch-action: manipulation; }
.jpm-game[data-game="bebe"] .bb-cico { width: 70%; height: 70%; }
.jpm-game[data-game="bebe"] .bb-cloth:active { transform: scale(.93); }

/* bandeja de atividades */
.jpm-game[data-game="bebe"] .bb-tray { z-index: 3; left: 50%; bottom: clamp(5px, 2cqh, 14px); transform: translateX(-50%); display: flex; gap: clamp(3px, 1cqw, 9px); padding: clamp(3px, .9cqw, 8px); border-radius: 22px; background: rgba(255, 255, 255, .62); pointer-events: auto; box-shadow: 0 8px 22px rgba(43, 35, 64, .14); }
.jpm-game[data-game="bebe"] .bb-act { position: relative; display: grid; place-items: center; align-content: center; gap: 1px; width: clamp(52px, 10.6cqw, 84px); height: clamp(52px, 10.6cqw, 84px); padding: 0; border: 0; border-radius: 17px; background: #fff; box-shadow: 0 4px 0 rgba(43, 35, 64, .13); touch-action: manipulation; transition: transform .12s; }
.jpm-game[data-game="bebe"] .bb-aico { display: grid; place-items: center; width: 56%; height: 56%; }
.jpm-game[data-game="bebe"] .bb-aico .bb-ico { width: 100%; height: 100%; }
.jpm-game[data-game="bebe"] .bb-act:active, .jpm-game[data-game="bebe"] .bb-act.is-pick { transform: scale(.92); }
.jpm-game[data-game="bebe"] .bb-alb { font-size: clamp(8.5px, 1.6cqw, 13px); font-weight: 900; color: var(--ink, #172033); line-height: 1; }
.jpm-game[data-game="bebe"] .bb-num { position: absolute; left: 5px; top: 3px; font-size: clamp(8px, 1.4cqw, 11px); font-weight: 900; color: var(--muted, #606B80); }
.jpm-game[data-game="bebe"] .bb-act.is-wish { box-shadow: 0 0 0 3px #FFD166, 0 4px 0 rgba(43, 35, 64, .13); }
.jpm-game[data-game="bebe"] .bb-act.is-hint { animation: bebe-glow 1s ease-in-out infinite; }
.jpm-game[data-game="bebe"] .bb-act.is-new::after { content: "Novo"; position: absolute; right: -4px; top: -7px; padding: 1px 5px; border-radius: 999px; background: var(--g-accent); color: #fff; font-size: clamp(8px, 1.3cqw, 11px); font-weight: 900; }

/* toque */
.jpm-game[data-game="bebe"] .bb-touch { align-items: flex-end; }
.jpm-game[data-game="bebe"] .bb-hold { width: clamp(64px, 15cqw, 96px); height: clamp(64px, 15cqw, 96px); align-content: center; gap: 0; margin-left: auto; }
.jpm-game[data-game="bebe"] .bb-hold svg { width: 46%; height: 46%; }
.jpm-game[data-game="bebe"] .bb-hold span { font-size: clamp(10px, 1.8cqw, 13px); }
.jpm-game[data-game="bebe"] .bb-touch .g-tbtn { background: rgba(43, 35, 64, .5); }
.jpm-game[data-game="bebe"] .bb-touch .bb-hold { background: rgba(240, 97, 154, .85); }

/* esconde-esconde: olhos fechados */
.jpm-game[data-game="bebe"] .bb-peek { inset: 0; z-index: 3; display: grid; place-items: center; align-content: center; gap: 2cqh; background: rgba(43, 35, 64, .82); }
.jpm-game[data-game="bebe"] .bb-peek-hands { width: clamp(120px, 30cqw, 260px); height: auto; animation: bebe-peek 1.9s ease-in-out; }
.jpm-game[data-game="bebe"] .bb-peek-n { color: #fff; font-weight: 900; font-size: clamp(20px, 5cqw, 42px); letter-spacing: -.02em; }
.jpm-game[data-game="bebe"] .bb-fade { inset: 0; z-index: 3; background: #FFF7EE; opacity: 0; transition: opacity .28s ease; }
.jpm-game[data-game="bebe"] .bb-fade.is-on { opacity: 1; }

/* abertura */
.jpm-game[data-game="bebe"] .bb-intro .g-card { background: var(--bb-cream); }
.jpm-game[data-game="bebe"] .bb-intro .g-title { color: #D9407F; }
.jpm-game[data-game="bebe"] .bb-row { margin-top: 10px; }
.jpm-game[data-game="bebe"] .bb-row .g-btn--ghost { min-height: 40px; padding: 0 14px; font-size: clamp(12px, 2cqw, 15px); }

/* pronto */
.jpm-game[data-game="bebe"] .bb-ready { gap: 6px; background: radial-gradient(ellipse at center, rgba(43, 35, 64, .45), rgba(43, 35, 64, .1) 70%); }
.jpm-game[data-game="bebe"] .bb-ready p { margin: 0; text-align: center; }
.jpm-game[data-game="bebe"] .bb-rday { font-size: clamp(30px, 8cqw, 64px); font-weight: 900; color: #fff; letter-spacing: -.04em; text-shadow: 0 4px 0 rgba(217, 64, 127, .6); }
.jpm-game[data-game="bebe"] .bb-rstage { font-weight: 900; color: #fff; font-size: clamp(13px, 2.6cqw, 20px); }
.jpm-game[data-game="bebe"] .bb-rmission { display: inline-flex; align-items: center; gap: .5em; margin-top: 6px; padding: .4em 1em .4em .45em; border-radius: 999px; background: #fff; color: var(--ink, #172033); font-weight: 900; font-size: clamp(12px, 2.4cqw, 18px); }
.jpm-game[data-game="bebe"] .bb-rmission .bb-ico { width: 1.6em; height: 1.6em; }
.jpm-game[data-game="bebe"] .bb-rnew { padding: .3em .9em; border-radius: 999px; background: var(--g-accent); color: #fff; font-weight: 900; font-size: clamp(11px, 2.1cqw, 16px); animation: bebe-pulse 1s ease-in-out infinite; }

/* meu bebê */
.jpm-game[data-game="bebe"] .bb-custom { background: rgba(43, 35, 64, .25); justify-items: start; padding-left: 5cqw; }
.jpm-game[data-game="bebe"] .bb-cu-card { width: min(50%, 360px); padding: clamp(10px, 2.4cqw, 22px); background: var(--bb-cream); }
.jpm-game[data-game="bebe"] .bb-cu-title { margin-top: 0; font-size: clamp(18px, 3.6cqw, 28px); }
.jpm-game[data-game="bebe"] .bb-cu-lbl { margin: 6px 0 3px; font-weight: 900; font-size: clamp(11px, 1.9cqw, 14px); color: var(--muted, #606B80); text-align: left; }
.jpm-game[data-game="bebe"] .bb-cu-row { display: flex; gap: 6px; justify-content: flex-start; flex-wrap: wrap; align-items: center; }
.jpm-game[data-game="bebe"] .bb-name { justify-content: center; gap: 10px; }
.jpm-game[data-game="bebe"] .bb-nm { min-width: 5em; font-weight: 900; font-size: clamp(16px, 3cqw, 24px); color: #D9407F; }
.jpm-game[data-game="bebe"] .bb-round { display: grid; place-items: center; width: 40px; height: 40px; padding: 0; border: 0; border-radius: 50%; background: #fff; box-shadow: inset 0 0 0 2px var(--line, #E3E8EF); }
.jpm-game[data-game="bebe"] .bb-round svg { width: 55%; height: 55%; }
.jpm-game[data-game="bebe"] .bb-sw { width: clamp(30px, 5.4cqw, 42px); height: clamp(30px, 5.4cqw, 42px); padding: 0; border: 3px solid #fff; border-radius: 50%; background: var(--c); box-shadow: 0 0 0 2px var(--line, #E3E8EF); }
.jpm-game[data-game="bebe"] .bb-sw.is-on { box-shadow: 0 0 0 3px var(--g-accent); transform: scale(1.08); }
.jpm-game[data-game="bebe"] .bb-cu-done { margin-top: 10px; }

/* álbum */
.jpm-game[data-game="bebe"] .bb-album { background: rgba(43, 35, 64, .45); }
.jpm-game[data-game="bebe"] .bb-al-card { width: min(96%, 760px); max-height: calc(100cqh - 24px); display: flex; flex-direction: column; padding: clamp(10px, 2.2cqw, 20px); background: var(--bb-cream); }
.jpm-game[data-game="bebe"] .bb-al-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.jpm-game[data-game="bebe"] .bb-al-head .g-title { margin: 0; font-size: clamp(18px, 3.6cqw, 28px); }
.jpm-game[data-game="bebe"] .bb-al-total { display: inline-flex; align-items: center; gap: 4px; font-weight: 900; color: #E8A400; }
.jpm-game[data-game="bebe"] .bb-al-total svg { width: 1.3em; height: 1.3em; }
.jpm-game[data-game="bebe"] .bb-al-grid { flex: 1; min-height: 0; overflow-y: auto; display: grid; grid-template-columns: repeat(auto-fill, minmax(clamp(96px, 17cqw, 140px), 1fr)); gap: clamp(8px, 1.6cqw, 14px); padding: 10px 4px; margin: 6px 0; overscroll-behavior: contain; touch-action: pan-y; }
.jpm-game[data-game="bebe"] .bb-pc { display: flex; flex-direction: column; align-items: stretch; gap: 2px; padding: 7px 7px 6px; border: 0; border-radius: 6px; background: #fff; box-shadow: 0 6px 14px rgba(43, 35, 64, .16); transition: transform .15s; }
.jpm-game[data-game="bebe"] .bb-pc:nth-child(odd) { transform: rotate(-1.6deg); }
.jpm-game[data-game="bebe"] .bb-pc:nth-child(even) { transform: rotate(1.4deg); }
.jpm-game[data-game="bebe"] .bb-pc:hover:not([disabled]) { transform: rotate(0) scale(1.04); }
.jpm-game[data-game="bebe"] .bb-pc.is-cur { box-shadow: 0 0 0 3px var(--g-accent), 0 6px 14px rgba(43, 35, 64, .16); }
.jpm-game[data-game="bebe"] .bb-pph { display: grid; place-items: center; aspect-ratio: 4 / 3; border-radius: 3px; overflow: hidden; background: #FFE3EE; }
.jpm-game[data-game="bebe"] .bb-pph.bb-st2 { background: #E1F4FF; }
.jpm-game[data-game="bebe"] .bb-pph.bb-st3 { background: #E6F8EA; }
.jpm-game[data-game="bebe"] .bb-pimg { width: 100%; height: 100%; object-fit: cover; display: block; }
.jpm-game[data-game="bebe"] .bb-pico { width: 46%; height: 46%; }
.jpm-game[data-game="bebe"] .bb-lock { width: 34%; height: 34%; color: #C9C2D6; }
.jpm-game[data-game="bebe"] .bb-pday { font-weight: 900; font-size: clamp(11px, 1.9cqw, 14px); color: #D9407F; text-align: left; }
.jpm-game[data-game="bebe"] .bb-pname { font-weight: 700; font-size: clamp(9.5px, 1.6cqw, 12px); color: var(--muted, #606B80); text-align: left; line-height: 1.15; min-height: 2.3em; }
.jpm-game[data-game="bebe"] .bb-pstars { display: flex; gap: 1px; }
.jpm-game[data-game="bebe"] .bb-s { width: clamp(12px, 2.2cqw, 17px); height: clamp(12px, 2.2cqw, 17px); color: #E7E1EF; }
.jpm-game[data-game="bebe"] .bb-s.is-on { color: #FFC233; }
.jpm-game[data-game="bebe"] .bb-pc.is-lock { background: #F4F1F8; box-shadow: none; cursor: default; }
.jpm-game[data-game="bebe"] .bb-pc.is-lock .bb-pph { background: #ECE7F2; }

/* fim do dia */
.jpm-game[data-game="bebe"] .bb-over { background: linear-gradient(270deg, rgba(43, 35, 64, .42), rgba(43, 35, 64, .05) 75%); justify-items: end; padding-right: 4cqw; }
.jpm-game[data-game="bebe"] .bb-over-card { width: min(62%, 560px); display: flex; gap: clamp(10px, 2.2cqw, 20px); align-items: center; text-align: center; padding: clamp(12px, 2.6cqw, 24px); background: var(--bb-cream); }
.jpm-game[data-game="bebe"] .bb-polaroid { flex: none; width: 40%; padding: 7px 7px 4px; background: #fff; border-radius: 4px; box-shadow: 0 8px 18px rgba(43, 35, 64, .2); transform: rotate(-3deg); display: flex; flex-direction: column; align-items: stretch; }
.jpm-game[data-game="bebe"] .bb-photo { display: block; width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: 2px; }
.jpm-game[data-game="bebe"] .bb-photo-ico { display: grid; place-items: center; aspect-ratio: 4 / 3; background: #FFE3EE; }
.jpm-game[data-game="bebe"] .bb-photo-ico .bb-ico { width: 40%; height: 40%; }
.jpm-game[data-game="bebe"] .bb-photo-ico:empty { display: none; }
.jpm-game[data-game="bebe"] .bb-photo-cap { padding-top: 4px; font-weight: 900; font-size: clamp(10px, 1.8cqw, 14px); color: #D9407F; }
.jpm-game[data-game="bebe"] .bb-over-info { flex: 1; min-width: 0; }
.jpm-game[data-game="bebe"] .bb-over-title { font-size: clamp(18px, 3.8cqw, 30px); color: #D9407F; }
.jpm-game[data-game="bebe"] .bb-over .g-results { margin: 4px 0; }
.jpm-game[data-game="bebe"] .bb-mi { color: #E8A400; }
.jpm-game[data-game="bebe"] .bb-mi.is-ok { color: var(--bb-mint); }
.jpm-game[data-game="bebe"] .bb-tips { margin: 0 0 6px; color: var(--muted, #606B80); font-weight: 700; font-size: clamp(11px, 1.8cqw, 14px); }
.jpm-game[data-game="bebe"] .bb-tips:empty { display: none; }
.jpm-game[data-game="bebe"] .bb-over .g-best { margin-bottom: 8px; font-size: clamp(11px, 1.9cqw, 15px); }
.jpm-game[data-game="bebe"] .bb-links { display: flex; justify-content: center; gap: 14px; margin-top: 8px; }
.jpm-game[data-game="bebe"] .bb-link { padding: 4px 6px; border: 0; background: none; color: var(--g-accent); font-weight: 900; text-decoration: underline; text-underline-offset: 3px; font-size: clamp(12px, 2cqw, 15px); }

@keyframes bebe-bubble { from { transform: translate(-50%, -100%) scale(.4); } to { transform: translate(-50%, -100%) scale(1); } }
@keyframes bebe-pulse { 50% { transform: scale(1.08); } }
@keyframes bebe-glow { 50% { box-shadow: 0 0 0 4px #FFD166, 0 0 18px rgba(255, 209, 102, .9); transform: translateY(-3px); } }
@keyframes bebe-shake { 25% { translate: -5px 0; } 75% { translate: 5px 0; } }
@keyframes bebe-peek { 0% { transform: translateY(30%); } 30% { transform: translateY(0); } 100% { transform: translateY(0); } }

/* telas pequenas (celular em pé: a área do jogo fica baixinha) */
@container (max-width: 620px) {
  .jpm-game[data-game="bebe"] .bb-hud { gap: 4px; padding: 5px 6px; }
  .jpm-game[data-game="bebe"] .bb-hud .g-chip { padding: 3px 7px 3px 5px; font-size: 12px; }
  .jpm-game[data-game="bebe"] .bb-ctxt { display: none; }
  .jpm-game[data-game="bebe"] .bb-need { width: 1.6em; height: 1.6em; }
  .jpm-game[data-game="bebe"] .bb-need svg { width: 1.25em; height: 1.25em; }
  .jpm-game[data-game="bebe"] .bb-over-card { width: min(96%, 560px); }
  .jpm-game[data-game="bebe"] .bb-over { justify-items: center; padding-right: 12px; }
  .jpm-game[data-game="bebe"] .bb-custom { justify-items: center; padding-left: 12px; }
  .jpm-game[data-game="bebe"] .bb-cu-card { width: min(94%, 360px); }
}
@container (max-height: 340px) {
  .jpm-game[data-game="bebe"] .g-screen { padding: 6px; }
  .jpm-game[data-game="bebe"] .bb-hint { top: 36px; }
  .jpm-game[data-game="bebe"] .bb-gauge { top: 64px; }
  .jpm-game[data-game="bebe"] .bb-act { width: 50px; height: 50px; border-radius: 13px; }
  .jpm-game[data-game="bebe"] .bb-alb { display: none; }
  .jpm-game[data-game="bebe"] .bb-tray { bottom: 4px; gap: 4px; padding: 3px; border-radius: 16px; }
  .jpm-game[data-game="bebe"] .bb-polaroid { width: 30%; }
  .jpm-game[data-game="bebe"] .bb-over-card { padding: 8px 10px; gap: 8px; }
  .jpm-game[data-game="bebe"] .bb-over-title { margin: 0 0 2px; font-size: 16px; }
  .jpm-game[data-game="bebe"] .bb-over .g-stars { margin: 0; font-size: 18px; }
  .jpm-game[data-game="bebe"] .bb-over .g-results { margin: 0; }
  .jpm-game[data-game="bebe"] .bb-over .g-num { font-size: 16px; }
  .jpm-game[data-game="bebe"] .bb-over .g-btn { min-height: 34px; padding: 0 14px; font-size: 13px; }
  .jpm-game[data-game="bebe"] .bb-tips, .jpm-game[data-game="bebe"] .bb-over .g-best, .jpm-game[data-game="bebe"] .bb-links { display: none; }
  .jpm-game[data-game="bebe"] .bb-cu-card { padding: 6px 10px; }
  .jpm-game[data-game="bebe"] .bb-cu-title, .jpm-game[data-game="bebe"] .bb-cu-lbl { display: none; }
  .jpm-game[data-game="bebe"] .bb-cu-row { gap: 4px; margin-top: 4px; justify-content: center; }
  .jpm-game[data-game="bebe"] .bb-sw { width: 26px; height: 26px; border-width: 2px; }
  .jpm-game[data-game="bebe"] .bb-intro .g-kicker, .jpm-game[data-game="bebe"] .bb-intro .g-text { display: none; }
  .jpm-game[data-game="bebe"] .bb-intro .g-title { margin-bottom: 10px; }
  .jpm-game[data-game="bebe"] .bb-round { width: 32px; height: 32px; }
  .jpm-game[data-game="bebe"] .bb-cu-done { min-height: 32px; margin-top: 4px; }
  .jpm-game[data-game="bebe"] .bb-al-card { padding: 6px 8px; max-height: calc(100cqh - 12px); }
  .jpm-game[data-game="bebe"] .bb-al-grid { padding: 4px 2px; }
  .jpm-game[data-game="bebe"] .bb-row .g-btn--ghost { min-height: 32px; }
  .jpm-game[data-game="bebe"] .bb-rday { font-size: 28px; }
}
@media (prefers-reduced-motion: reduce) {
  .jpm-game[data-game="bebe"] .bb-bubble.is-pop, .jpm-game[data-game="bebe"] .bb-need.is-low, .jpm-game[data-game="bebe"] .bb-act.is-hint, .jpm-game[data-game="bebe"] .bb-badge.is-glow, .jpm-game[data-game="bebe"] .bb-rnew, .jpm-game[data-game="bebe"] .bb-peek-hands { animation: none; }
}
