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

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

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

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

/* jogo */
.jpm-game[data-game="vestir-boneca"] { --g-accent: #FF5FA2; --vb-pink: #FF5FA2; --vb-purple: #7B5CFF; --vb-ink: #3B2F4A; --vb-soft: #FFF0F7; --vb-line: #F1E4EE; --vb-u: clamp(30px, 9cqh, 50px); }
.jpm-game[data-game="vestir-boneca"] .g-card { color: var(--vb-ink); }
.jpm-game[data-game="vestir-boneca"] .g-btn { background: linear-gradient(180deg, #FF7DB5, var(--vb-pink)); }
.jpm-game[data-game="vestir-boneca"] .g-btn--ghost { background: var(--surface, #fff); color: var(--vb-ink); box-shadow: inset 0 0 0 2px var(--vb-line); }
.jpm-game[data-game="vestir-boneca"] .g-panel { position: absolute; z-index: 3; }

/* HUD */
.jpm-game[data-game="vestir-boneca"] .vb-hud { right: 50%; padding: 1.6cqh 1.6cqw; gap: 6px; flex-wrap: nowrap; }
.jpm-game[data-game="vestir-boneca"] .vb-hud .g-chip { font-size: clamp(11px, 3.2cqh, 18px); padding: .35em .8em .35em .6em; }
.jpm-game[data-game="vestir-boneca"] .vb-round { pointer-events: auto; flex: none; width: var(--vb-u); height: var(--vb-u); border: 0; border-radius: 50%; background: var(--g-glass); color: #fff; display: grid; place-items: center; padding: 0; }
.jpm-game[data-game="vestir-boneca"] .vb-round svg { width: 52%; height: 52%; }
.jpm-game[data-game="vestir-boneca"] .vb-round:active { transform: scale(.92); }
.jpm-game[data-game="vestir-boneca"] .vb-play-hud, .jpm-game[data-game="vestir-boneca"] .vb-free-nav { display: flex; gap: 6px; align-items: center; min-width: 0; }
.jpm-game[data-game="vestir-boneca"] .vb-play-hud[hidden], .jpm-game[data-game="vestir-boneca"] .vb-free-nav[hidden] { display: none; }
.jpm-game[data-game="vestir-boneca"] .vb-tbar { width: clamp(30px, 9cqw, 90px); }
.jpm-game[data-game="vestir-boneca"] .vb-tchip .g-fill { background: #FFD166; }
.jpm-game[data-game="vestir-boneca"] .vb-tchip.is-off { background: rgba(23, 27, 52, .45); }
.jpm-game[data-game="vestir-boneca"] .vb-tchip.is-off .g-ico { filter: grayscale(1); opacity: .6; }
.jpm-game[data-game="vestir-boneca"] .vb-scname { min-width: 0; overflow: hidden; text-overflow: ellipsis; }

/* pedidos */
.jpm-game[data-game="vestir-boneca"] .vb-reqs { left: 1.4cqw; top: calc(var(--vb-u) + 3.6cqh); width: 19cqw; display: flex; flex-direction: column; gap: 1cqh; pointer-events: none; }
.jpm-game[data-game="vestir-boneca"] .vb-req { display: flex; align-items: center; gap: .45em; padding: .3em .45em .3em .3em; border-radius: 14px; background: rgba(255, 255, 255, .9); box-shadow: 0 4px 12px rgba(59, 47, 74, .14); font-weight: 800; font-size: clamp(9px, 2.5cqh, 14px); line-height: 1.12; color: var(--vb-ink); transition: background .2s, transform .2s; }
.jpm-game[data-game="vestir-boneca"] .vb-req-ico { flex: none; width: clamp(20px, 6.4cqh, 36px); height: clamp(20px, 6.4cqh, 36px); display: grid; place-items: center; }
.jpm-game[data-game="vestir-boneca"] .vb-req-ico svg { width: 100%; height: 100%; }
.jpm-game[data-game="vestir-boneca"] .vb-req-t { flex: 1; min-width: 0; }
.jpm-game[data-game="vestir-boneca"] .vb-req-t b { color: #D88A00; }
.jpm-game[data-game="vestir-boneca"] .vb-req-k { flex: none; width: clamp(14px, 4.4cqh, 24px); height: clamp(14px, 4.4cqh, 24px); color: #E3D7EE; }
.jpm-game[data-game="vestir-boneca"] .vb-req-k svg { width: 100%; height: 100%; }
.jpm-game[data-game="vestir-boneca"] .vb-req--extra { background: rgba(255, 248, 220, .94); }
.jpm-game[data-game="vestir-boneca"] .vb-req--extra .vb-req-k { color: #FFC93C; }
.jpm-game[data-game="vestir-boneca"] .vb-req.is-met { background: rgba(225, 250, 236, .95); }
.jpm-game[data-game="vestir-boneca"] .vb-req.is-met .vb-req-k { animation: vestir-boneca-pop .35s ease-out; }
.jpm-game[data-game="vestir-boneca"] .vb-req.is-miss { animation: vestir-boneca-shake .5s ease-in-out; background: rgba(255, 220, 226, .96); }
@keyframes vestir-boneca-pop { from { transform: scale(.4); } 70% { transform: scale(1.25); } to { transform: scale(1); } }
@keyframes vestir-boneca-shake { 0%, 100% { transform: translateX(0); } 20%, 60% { transform: translateX(-6px); } 40%, 80% { transform: translateX(6px); } }

/* título do editor da boneca */
.jpm-game[data-game="vestir-boneca"] .vb-dolltitle { left: 1.6cqw; top: 2.4cqh; padding: .6em 1em; border-radius: 16px; background: rgba(255, 255, 255, .92); box-shadow: 0 6px 16px rgba(59, 47, 74, .16); }
.jpm-game[data-game="vestir-boneca"] .vb-dt-k { margin: 0; font-size: clamp(9px, 2.2cqh, 13px); font-weight: 900; letter-spacing: .08em; text-transform: uppercase; color: var(--vb-pink); }
.jpm-game[data-game="vestir-boneca"] .vb-dt-t { margin: 2px 0 0; font-size: clamp(12px, 3.4cqh, 20px); font-weight: 900; color: var(--vb-ink); }

/* botões de baixo (debaixo da boneca) */
.jpm-game[data-game="vestir-boneca"] .vb-actions { left: 30cqw; bottom: 2.4cqh; transform: translateX(-50%); display: flex; gap: 8px; align-items: center; }
.jpm-game[data-game="vestir-boneca"] .vb-actions .g-btn { min-height: clamp(38px, 12cqh, 58px); padding: 0 1.2em; display: inline-flex; align-items: center; gap: .5em; font-size: clamp(14px, 4cqh, 21px); white-space: nowrap; }
.jpm-game[data-game="vestir-boneca"] .vb-actions .g-btn[hidden] { display: none; }
.jpm-game[data-game="vestir-boneca"] .vb-actions svg { flex: none; width: 1.3em; height: 1.3em; }
.jpm-game[data-game="vestir-boneca"] .vb-clear { padding: 0; width: clamp(38px, 12cqh, 58px); justify-content: center; }
.jpm-game[data-game="vestir-boneca"] .vb-view.is-on { background: var(--vb-purple); color: #fff; box-shadow: none; }
.jpm-game[data-game="vestir-boneca"] .vb-done-n { padding: .1em .5em; border-radius: 99px; background: rgba(255, 255, 255, .3); font-size: .8em; }
.jpm-game[data-game="vestir-boneca"] .vb-done.is-ready { background: linear-gradient(180deg, #52DE96, #22C17A); animation: vestir-boneca-pulse 1.1s ease-in-out infinite; }
@keyframes vestir-boneca-pulse { 0%, 100% { transform: scale(1); } 50% { transform: scale(1.07); } }

/* guarda-roupa */
.jpm-game[data-game="vestir-boneca"] .vb-ward { right: 1.4cqw; top: 2.4cqh; bottom: 2.4cqh; width: 47cqw; display: flex; flex-direction: column; border-radius: clamp(12px, 3.4cqh, 22px); background: rgba(255, 255, 255, .95); box-shadow: 0 12px 30px rgba(59, 47, 74, .2); overflow: hidden; }
.jpm-game[data-game="vestir-boneca"] .vb-ward[hidden] { display: none; }
.jpm-game[data-game="vestir-boneca"] .vb-tabs { flex: none; display: flex; gap: 4px; padding: 1cqh 1cqh 0; background: linear-gradient(180deg, #FFE3F0, #FFF5FA); }
.jpm-game[data-game="vestir-boneca"] .vb-tab { position: relative; flex: 1; min-width: 0; height: clamp(34px, 12.5cqh, 66px); border: 0; border-radius: 12px 12px 0 0; background: transparent; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 1px; padding: 2px; color: var(--vb-ink); }
.jpm-game[data-game="vestir-boneca"] .vb-tab svg { width: clamp(22px, 7.4cqh, 38px); height: clamp(22px, 7.4cqh, 38px); }
.jpm-game[data-game="vestir-boneca"] .vb-tab-n { font-size: clamp(8px, 2cqh, 12px); font-weight: 800; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 100%; }
.jpm-game[data-game="vestir-boneca"] .vb-tab.is-on { background: #fff; box-shadow: 0 -3px 0 var(--vb-pink) inset; }
.jpm-game[data-game="vestir-boneca"] .vb-tab.is-hint::after { content: ""; position: absolute; top: 4px; right: 18%; width: 9px; height: 9px; border-radius: 50%; background: #FFC93C; box-shadow: 0 0 0 2px #fff; animation: vestir-boneca-pulse 1s ease-in-out infinite; }
.jpm-game[data-game="vestir-boneca"] .vb-grid { flex: 1; min-height: 0; overflow-y: auto; overscroll-behavior: contain; touch-action: pan-y; display: grid; grid-template-columns: repeat(auto-fill, minmax(clamp(50px, 16cqh, 96px), 1fr)); align-content: start; gap: clamp(4px, 1.4cqh, 9px); padding: clamp(5px, 1.6cqh, 10px); }
.jpm-game[data-game="vestir-boneca"] .vb-grid.is-doll { display: block; }
.jpm-game[data-game="vestir-boneca"] .vb-item { position: relative; border: 2px solid var(--vb-line); border-radius: 14px; background: #fff; padding: 3px 2px 2px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 1px; min-height: clamp(48px, 15cqh, 92px); touch-action: pan-y; transition: transform .12s, border-color .15s; }
.jpm-game[data-game="vestir-boneca"] .vb-item:active { transform: scale(.94); }
.jpm-game[data-game="vestir-boneca"] .vb-ico { width: 74%; aspect-ratio: 1; display: grid; place-items: center; pointer-events: none; }
.jpm-game[data-game="vestir-boneca"] .vb-ico svg { width: 100%; height: 100%; }
.jpm-game[data-game="vestir-boneca"] .vb-iname { font-size: clamp(8px, 2.1cqh, 12px); font-weight: 800; line-height: 1.05; text-align: center; color: var(--vb-ink); pointer-events: none; overflow: hidden; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
.jpm-game[data-game="vestir-boneca"] .vb-item.is-on { border-color: var(--vb-pink); background: var(--vb-soft); }
.jpm-game[data-game="vestir-boneca"] .vb-item.is-sel { box-shadow: 0 0 0 3px rgba(255, 95, 162, .3); }
.jpm-game[data-game="vestir-boneca"] .vb-item .vb-ok { position: absolute; top: 3px; right: 3px; width: clamp(12px, 4cqh, 20px); height: clamp(12px, 4cqh, 20px); pointer-events: none; }
.jpm-game[data-game="vestir-boneca"] .vb-item.is-hint { border-color: #FFC93C; animation: vestir-boneca-glow 1.4s ease-in-out infinite; }
@keyframes vestir-boneca-glow { 0%, 100% { box-shadow: 0 0 0 0 rgba(255, 201, 60, .0); } 50% { box-shadow: 0 0 0 4px rgba(255, 201, 60, .55); } }
.jpm-game[data-game="vestir-boneca"] .vb-item.is-new::before { content: "Nova!"; position: absolute; top: -2px; left: -2px; padding: 1px 5px; border-radius: 8px 0 8px 0; background: var(--vb-purple); color: #fff; font-size: clamp(7px, 1.8cqh, 10px); font-weight: 900; }
.jpm-game[data-game="vestir-boneca"] .vb-item.is-lock { opacity: .55; background: #F7F4FA; cursor: default; }
.jpm-game[data-game="vestir-boneca"] .vb-item.is-lock .vb-ico { filter: grayscale(.9); }
.jpm-game[data-game="vestir-boneca"] .vb-lock { position: absolute; top: 4px; right: 4px; width: clamp(12px, 3.6cqh, 18px); height: clamp(12px, 3.6cqh, 18px); color: #8B7FA0; }
.jpm-game[data-game="vestir-boneca"] .vb-lock svg { width: 100%; height: 100%; }
.jpm-game[data-game="vestir-boneca"] .vb-sec { margin: .3em 0 .3em .2em; font-size: clamp(10px, 2.6cqh, 14px); font-weight: 900; color: var(--vb-ink); }
.jpm-game[data-game="vestir-boneca"] .vb-row { display: flex; flex-wrap: wrap; gap: clamp(5px, 1.4cqh, 9px); margin-bottom: .4em; }
.jpm-game[data-game="vestir-boneca"] .vb-row--hair { display: grid; grid-template-columns: repeat(auto-fill, minmax(clamp(50px, 15cqh, 90px), 1fr)); }
.jpm-game[data-game="vestir-boneca"] .vb-sw { flex: none; width: clamp(26px, 8.4cqh, 44px); height: clamp(26px, 8.4cqh, 44px); border-radius: 50%; border: 3px solid #fff; background: var(--sw); box-shadow: 0 0 0 2px var(--vb-line), 0 3px 6px rgba(59, 47, 74, .18); padding: 0; transition: transform .12s; }
.jpm-game[data-game="vestir-boneca"] .vb-sw.is-on { box-shadow: 0 0 0 3px var(--vb-pink), 0 3px 8px rgba(59, 47, 74, .25); transform: scale(1.08); }
.jpm-game[data-game="vestir-boneca"] .vb-sw:disabled { opacity: .35; cursor: default; }
.jpm-game[data-game="vestir-boneca"] .vb-paint { flex: none; display: flex; align-items: center; gap: clamp(4px, 1.2cqh, 10px); padding: clamp(4px, 1.4cqh, 9px) clamp(6px, 1.6cqh, 12px); border-top: 2px solid var(--vb-line); background: #FFFBFD; }
.jpm-game[data-game="vestir-boneca"] .vb-paint[hidden] { display: none; }
.jpm-game[data-game="vestir-boneca"] .vb-paint-ico { flex: none; width: clamp(26px, 8.6cqh, 46px); height: clamp(26px, 8.6cqh, 46px); border-radius: 10px; background: #fff; box-shadow: inset 0 0 0 2px var(--vb-line); display: grid; place-items: center; }
.jpm-game[data-game="vestir-boneca"] .vb-paint-ico svg { width: 82%; height: 82%; }
.jpm-game[data-game="vestir-boneca"] .vb-swatches { flex: 1; min-width: 0; display: flex; justify-content: space-between; gap: 3px; }
.jpm-game[data-game="vestir-boneca"] .vb-swatches .vb-sw { width: clamp(20px, 7.4cqh, 40px); height: clamp(20px, 7.4cqh, 40px); border-width: 2px; }

/* telas: desafios e álbum */
.jpm-game[data-game="vestir-boneca"] .vb-levels, .jpm-game[data-game="vestir-boneca"] .vb-album { background: rgba(59, 47, 74, .28); padding: 2.4cqh 2cqw; }
.jpm-game[data-game="vestir-boneca"] .vb-lvcard, .jpm-game[data-game="vestir-boneca"] .vb-alcard { width: min(96cqw, 900px); height: 95cqh; display: flex; flex-direction: column; text-align: left; padding: clamp(8px, 2.6cqh, 20px) clamp(10px, 2.2cqw, 22px); }
.jpm-game[data-game="vestir-boneca"] .vb-lvhead { flex: none; display: flex; justify-content: space-between; align-items: center; gap: 8px; flex-wrap: wrap; margin-bottom: 1.4cqh; }
.jpm-game[data-game="vestir-boneca"] .vb-lvhead .g-title { margin: 0; font-size: clamp(16px, 5cqh, 30px); }
.jpm-game[data-game="vestir-boneca"] .vb-lvsub { margin: 2px 0 0; font-weight: 800; color: var(--muted, #606B80); font-size: clamp(10px, 2.6cqh, 14px); }
.jpm-game[data-game="vestir-boneca"] .vb-lvbtns { display: flex; gap: 6px; flex-wrap: wrap; }
.jpm-game[data-game="vestir-boneca"] .vb-mini { min-height: clamp(32px, 9cqh, 46px); padding: 0 1em; font-size: clamp(12px, 3cqh, 16px); }
.jpm-game[data-game="vestir-boneca"] .vb-mini--alt { background: linear-gradient(180deg, #9C82FF, var(--vb-purple)); }
.jpm-game[data-game="vestir-boneca"] .vb-lvgrid { flex: 1; min-height: 0; overflow-y: auto; overscroll-behavior: contain; display: grid; grid-template-columns: repeat(auto-fill, minmax(clamp(74px, 21cqh, 128px), 1fr)); gap: clamp(6px, 1.6cqh, 12px); align-content: start; padding: 2px 2px 6px; }
.jpm-game[data-game="vestir-boneca"] .vb-lv { position: relative; border: 0; border-radius: 16px; background: var(--card); padding: 6px 4px 6px; display: flex; flex-direction: column; align-items: center; gap: 2px; box-shadow: inset 0 -4px 0 rgba(59, 47, 74, .12); color: var(--vb-ink); transition: transform .12s; }
.jpm-game[data-game="vestir-boneca"] .vb-lv:active { transform: scale(.95); }
.jpm-game[data-game="vestir-boneca"] .vb-lv-art { position: relative; width: 58%; aspect-ratio: 1; display: grid; place-items: center; }
.jpm-game[data-game="vestir-boneca"] .vb-lv-art > svg { width: 100%; height: 100%; }
.jpm-game[data-game="vestir-boneca"] .vb-lv-n { position: absolute; top: 5px; left: 7px; min-width: 1.6em; padding: 0 .3em; border-radius: 99px; background: #fff; font-weight: 900; font-size: clamp(10px, 2.6cqh, 14px); }
.jpm-game[data-game="vestir-boneca"] .vb-lv-t { font-weight: 800; font-size: clamp(8px, 2.2cqh, 12px); line-height: 1.05; text-align: center; min-height: 2.1em; }
.jpm-game[data-game="vestir-boneca"] .vb-lv-stars { display: flex; gap: 1px; }
.jpm-game[data-game="vestir-boneca"] .vb-lv-star { width: clamp(11px, 3.4cqh, 18px); height: clamp(11px, 3.4cqh, 18px); color: rgba(59, 47, 74, .18); }
.jpm-game[data-game="vestir-boneca"] .vb-lv-star.is-on { color: #FFC93C; }
.jpm-game[data-game="vestir-boneca"] .vb-lv.is-locked { filter: grayscale(.8); opacity: .55; cursor: default; }
.jpm-game[data-game="vestir-boneca"] .vb-lv .vb-lock { top: 50%; left: 50%; right: auto; transform: translate(-50%, -50%); width: 40%; height: 40%; color: var(--vb-ink); }
.jpm-game[data-game="vestir-boneca"] .vb-lv.is-next { box-shadow: 0 0 0 3px var(--vb-pink), inset 0 -4px 0 rgba(59, 47, 74, .12); animation: vestir-boneca-pulse 1.4s ease-in-out infinite; }
.jpm-game[data-game="vestir-boneca"] .vb-algrid { flex: 1; min-height: 0; overflow-y: auto; display: grid; grid-template-columns: repeat(auto-fill, minmax(clamp(70px, 22cqh, 130px), 1fr)); gap: clamp(8px, 2cqh, 14px); align-content: start; padding: 4px; }
.jpm-game[data-game="vestir-boneca"] .vb-alempty { margin: 1em 0; text-align: center; }
.jpm-game[data-game="vestir-boneca"] .vb-pol { position: relative; }
.jpm-game[data-game="vestir-boneca"] .vb-pol:nth-child(odd) { transform: rotate(-2deg); }
.jpm-game[data-game="vestir-boneca"] .vb-pol:nth-child(even) { transform: rotate(2deg); }
.jpm-game[data-game="vestir-boneca"] .vb-pol-open { width: 100%; border: 0; padding: 6px 6px 4px; background: #fff; border-radius: 6px; box-shadow: 0 6px 14px rgba(59, 47, 74, .22); display: flex; flex-direction: column; gap: 4px; }
.jpm-game[data-game="vestir-boneca"] .vb-pol-open img { width: 100%; aspect-ratio: 3 / 4; object-fit: cover; border-radius: 3px; background: #F3EEF8; }
.jpm-game[data-game="vestir-boneca"] .vb-pol-cap { font-weight: 800; font-size: clamp(9px, 2.3cqh, 12px); color: var(--vb-ink); text-align: center; }
.jpm-game[data-game="vestir-boneca"] .vb-pol-x { position: absolute; top: -8px; right: -8px; width: 30px; height: 30px; border: 0; border-radius: 50%; background: var(--coral, #FF6868); color: #fff; display: grid; place-items: center; padding: 0; box-shadow: 0 3px 8px rgba(0, 0, 0, .2); }
.jpm-game[data-game="vestir-boneca"] .vb-pol-x svg { width: 60%; height: 60%; }

/* briefing da fase */
.jpm-game[data-game="vestir-boneca"] .vb-ready { pointer-events: auto; background: rgba(59, 47, 74, .22); cursor: pointer; }
.jpm-game[data-game="vestir-boneca"] .vb-rdcard { width: min(80cqw, 460px); }
.jpm-game[data-game="vestir-boneca"] .vb-rdcard .g-title { font-size: clamp(18px, 6cqh, 34px); }
.jpm-game[data-game="vestir-boneca"] .vb-rdcard .g-text { margin-bottom: 1.4cqh; }
.jpm-game[data-game="vestir-boneca"] .vb-rdreqs { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px; }
.jpm-game[data-game="vestir-boneca"] .vb-rq { display: inline-flex; align-items: center; gap: 6px; padding: 4px 10px 4px 5px; border-radius: 99px; background: var(--vb-soft); font-weight: 800; font-size: clamp(10px, 2.8cqh, 15px); }
.jpm-game[data-game="vestir-boneca"] .vb-rq svg { width: clamp(18px, 6cqh, 32px); height: clamp(18px, 6cqh, 32px); }
.jpm-game[data-game="vestir-boneca"] .vb-rdtap { margin: 1.6cqh 0 0; font-weight: 800; color: var(--vb-pink); font-size: clamp(10px, 2.6cqh, 14px); }

/* resultado */
.jpm-game[data-game="vestir-boneca"] .vb-over { justify-items: end; background: linear-gradient(270deg, rgba(59, 47, 74, .35), rgba(59, 47, 74, 0) 70%); padding: 2.4cqh 2cqw; }
.jpm-game[data-game="vestir-boneca"] .vb-ovcard { width: min(52cqw, 560px); max-height: 95cqh; overflow-y: auto; display: flex; gap: clamp(8px, 2cqw, 18px); align-items: center; text-align: left; padding: clamp(10px, 2.6cqh, 22px); }
.jpm-game[data-game="vestir-boneca"] .vb-ovphoto { flex: none; width: 34%; aspect-ratio: 3 / 4; object-fit: cover; padding: 5px 5px 14px; background: #fff; border-radius: 4px; box-shadow: 0 8px 18px rgba(59, 47, 74, .28); transform: rotate(-4deg); }
.jpm-game[data-game="vestir-boneca"] .vb-ovbody { flex: 1; min-width: 0; }
.jpm-game[data-game="vestir-boneca"] .vb-ovbody .g-title { font-size: clamp(18px, 6cqh, 34px); }
.jpm-game[data-game="vestir-boneca"] .vb-ovbody .g-stars { justify-content: flex-start; font-size: clamp(20px, 6.4cqh, 38px); margin: 0 0 4px; }
.jpm-game[data-game="vestir-boneca"] .g-star.is-pop { animation: vestir-boneca-pop .4s ease-out; }
.jpm-game[data-game="vestir-boneca"] .vb-ovlines { list-style: none; margin: 0 0 6px; padding: 0; display: grid; gap: 3px; font-weight: 700; font-size: clamp(10px, 2.6cqh, 14px); color: var(--muted, #606B80); }
.jpm-game[data-game="vestir-boneca"] .vb-ovlines li { display: flex; align-items: center; gap: 6px; }
.jpm-game[data-game="vestir-boneca"] .vb-ovlines li.is-ok { color: var(--vb-ink); }
.jpm-game[data-game="vestir-boneca"] .vb-ovlines .vb-ok { flex: none; width: 1.3em; height: 1.3em; }
.jpm-game[data-game="vestir-boneca"] .vb-ovscore { margin: 0 0 8px; font-size: clamp(10px, 2.6cqh, 14px); color: var(--muted, #606B80); font-weight: 700; }
.jpm-game[data-game="vestir-boneca"] .vb-ovscore b { color: var(--vb-pink); }
.jpm-game[data-game="vestir-boneca"] .vb-ovnew { display: flex; align-items: center; flex-wrap: wrap; gap: 4px; margin: 0 0 8px; padding: 4px 8px; border-radius: 12px; background: #F1EBFF; font-weight: 800; font-size: clamp(10px, 2.5cqh, 13px); color: var(--vb-purple); }
.jpm-game[data-game="vestir-boneca"] .vb-ovnew[hidden] { display: none; }
.jpm-game[data-game="vestir-boneca"] .vb-new-ico { width: clamp(20px, 6cqh, 32px); height: clamp(20px, 6cqh, 32px); }
.jpm-game[data-game="vestir-boneca"] .vb-new-ico svg { width: 100%; height: 100%; }
.jpm-game[data-game="vestir-boneca"] .vb-ovbody .g-row { justify-content: flex-start; }
.jpm-game[data-game="vestir-boneca"] .vb-ovrow { margin-top: 6px; }

/* foto, arrasto e avisos */
.jpm-game[data-game="vestir-boneca"] .vb-flash { position: absolute; inset: 0; z-index: 6; background: #fff; pointer-events: none; opacity: 0; }
.jpm-game[data-game="vestir-boneca"] .vb-flash.is-go { animation: vestir-boneca-flash .55s ease-out forwards; }
@keyframes vestir-boneca-flash { from { opacity: .95; } to { opacity: 0; } }
.jpm-game[data-game="vestir-boneca"] .vb-ghost { position: absolute; left: 0; top: 0; z-index: 7; width: clamp(48px, 16cqh, 90px); height: clamp(48px, 16cqh, 90px); margin: calc(clamp(48px, 16cqh, 90px) / -2) 0 0 calc(clamp(48px, 16cqh, 90px) / -2); pointer-events: none; filter: drop-shadow(0 8px 10px rgba(59, 47, 74, .3)); transition: scale .15s; }
.jpm-game[data-game="vestir-boneca"] .vb-ghost svg { width: 100%; height: 100%; }
.jpm-game[data-game="vestir-boneca"] .vb-ghost.is-over { scale: 1.25; }
.jpm-game[data-game="vestir-boneca"] .vb-toast { left: 30cqw; top: 15cqh; font-size: clamp(12px, 3.6cqh, 22px); z-index: 5; }

/* celular em pé: área 16:9 pequena */
@container (max-height: 330px) {
  .jpm-game[data-game="vestir-boneca"] .vb-tab-n, .jpm-game[data-game="vestir-boneca"] .vb-iname { display: none; }
  .jpm-game[data-game="vestir-boneca"] .vb-req-t { display: none; }
  .jpm-game[data-game="vestir-boneca"] .vb-reqs { width: auto; gap: 3px; }
  .jpm-game[data-game="vestir-boneca"] .vb-req { padding: 2px 3px 2px 2px; gap: 2px; border-radius: 10px; }
  .jpm-game[data-game="vestir-boneca"] .vb-hud .g-chip { padding: 3px 7px; }
  .jpm-game[data-game="vestir-boneca"] .vb-tbar { display: none; }
  .jpm-game[data-game="vestir-boneca"] .vb-grid { grid-template-columns: repeat(3, 1fr); }
  .jpm-game[data-game="vestir-boneca"] .vb-item { min-height: 46px; border-radius: 10px; }
  .jpm-game[data-game="vestir-boneca"] .vb-ico { width: 80%; }
  .jpm-game[data-game="vestir-boneca"] .vb-row--hair { grid-template-columns: repeat(4, 1fr); }
  .jpm-game[data-game="vestir-boneca"] .vb-ward { width: 50cqw; }
  .jpm-game[data-game="vestir-boneca"] .vb-paint { padding: 4px 5px; }
  .jpm-game[data-game="vestir-boneca"] .vb-swatches { gap: 1px; }
  .jpm-game[data-game="vestir-boneca"] .vb-swatches .vb-sw { width: 19px; height: 19px; border-width: 2px; box-shadow: 0 0 0 1px var(--vb-line); }
  .jpm-game[data-game="vestir-boneca"] .vb-swatches .vb-sw.is-on { box-shadow: 0 0 0 2px var(--vb-pink); }
  .jpm-game[data-game="vestir-boneca"] .vb-paint-ico { display: none; }
  .jpm-game[data-game="vestir-boneca"] .vb-ovcard .g-btn { min-height: 30px; padding: 0 .8em; font-size: 12px; }
  .jpm-game[data-game="vestir-boneca"] .vb-ovbody .g-title { font-size: 16px; margin: 0 0 2px; }
  .jpm-game[data-game="vestir-boneca"] .vb-ovbody .g-stars { font-size: 18px; }
  .jpm-game[data-game="vestir-boneca"] .vb-ovscore { margin-bottom: 4px; font-size: 10px; }
  .jpm-game[data-game="vestir-boneca"] .vb-ovrow { margin-top: 4px; gap: 4px; }
  .jpm-game[data-game="vestir-boneca"] .vb-scname { font-size: 11px; }
  .jpm-game[data-game="vestir-boneca"] .vb-actions { bottom: 4px; }
  .jpm-game[data-game="vestir-boneca"] .vb-actions .g-btn { min-height: 36px; font-size: 14px; padding: 0 .9em; }
  .jpm-game[data-game="vestir-boneca"] .vb-clear { width: 36px; }
  .jpm-game[data-game="vestir-boneca"] .vb-ovlines, .jpm-game[data-game="vestir-boneca"] .vb-ovnew, .jpm-game[data-game="vestir-boneca"] .vb-ovbody .g-kicker { display: none; }
  .jpm-game[data-game="vestir-boneca"] .vb-ovcard { width: 64cqw; }
  .jpm-game[data-game="vestir-boneca"] .vb-ovphoto { width: 30%; }
  .jpm-game[data-game="vestir-boneca"] .vb-rdcard .g-text { display: none; }
  .jpm-game[data-game="vestir-boneca"] .vb-rq span { display: none; }
  .jpm-game[data-game="vestir-boneca"] .vb-rq { padding: 3px; }
  .jpm-game[data-game="vestir-boneca"] .vb-lvbtns .g-btn { min-height: 30px; padding: 0 .7em; font-size: 12px; }
  .jpm-game[data-game="vestir-boneca"] .vb-lv-t { display: none; }
  .jpm-game[data-game="vestir-boneca"] .vb-dt-t { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  .jpm-game[data-game="vestir-boneca"] .vb-done.is-ready, .jpm-game[data-game="vestir-boneca"] .vb-item.is-hint, .jpm-game[data-game="vestir-boneca"] .vb-lv.is-next, .jpm-game[data-game="vestir-boneca"] .vb-tab.is-hint::after { animation: none; }
}
