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

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

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

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

/* jogo */
.jpm-game[data-game="vestir-princesa"] { --g-accent: #E2569A; --vp-plum: #4A2366; --vp-rose: #FF5FA2; --vp-gold: #FFC23A; --vp-parch: #FFF8EC; --vp-line: #EBDDF3; --vp-tab: min(16cqh, 66px); --vp-u: clamp(30px, 9.5cqh, 52px); }
.jpm-game[data-game="vestir-princesa"] .g-card { color: var(--vp-plum); }
.jpm-game[data-game="vestir-princesa"] .g-btn { background: linear-gradient(180deg, #FF7DBA, #E2569A); box-shadow: 0 6px 0 #B8387A, 0 10px 18px rgba(74, 35, 102, .25); }
.jpm-game[data-game="vestir-princesa"] .g-btn:active { transform: translateY(3px) scale(.98); box-shadow: 0 3px 0 #B8387A, 0 6px 12px rgba(74, 35, 102, .2); }
.jpm-game[data-game="vestir-princesa"] .g-btn--ghost { background: #fff; color: var(--vp-plum); box-shadow: inset 0 0 0 2px var(--vp-line), 0 4px 0 #E2D2EE; }
.jpm-game[data-game="vestir-princesa"] .g-kicker { color: #B23A78; }
.jpm-game[data-game="vestir-princesa"] .g-intro .g-card { border: 3px solid #FFE3A0; }

/* faixa de cima: botão do mapa + convite */
.jpm-game[data-game="vestir-princesa"] .vp-hud { position: absolute; z-index: 3; top: 2cqh; left: calc(var(--vp-tab) * 2 + 2.4cqw + 4px); right: 33cqw; display: flex; justify-content: center; align-items: flex-start; gap: 1cqw; pointer-events: none; }
.jpm-game[data-game="vestir-princesa"] .vp-hud[hidden] { display: none; }
.jpm-game[data-game="vestir-princesa"] .vp-round { pointer-events: auto; flex: none; width: clamp(26px, 11cqh, 52px); height: clamp(26px, 11cqh, 52px); border: 0; border-radius: 50%; background: rgba(74, 35, 102, .82); color: #fff; display: grid; place-items: center; padding: 0; box-shadow: 0 4px 10px rgba(74, 35, 102, .25); }
.jpm-game[data-game="vestir-princesa"] .vp-round svg { width: 48%; height: 48%; }
.jpm-game[data-game="vestir-princesa"] .vp-round:active { transform: scale(.92); }
.jpm-game[data-game="vestir-princesa"] .vp-invite { min-width: 0; padding: .3em .45em .4em; border-radius: clamp(10px, 3cqh, 18px); background: var(--vp-parch); border: 2px solid #F2D58A; box-shadow: 0 6px 16px rgba(74, 35, 102, .2); text-align: center; }
.jpm-game[data-game="vestir-princesa"] .vp-inv-k { margin: 0 0 .2em; font-size: clamp(9px, 2.6cqh, 14px); font-weight: 900; color: #9A5A2E; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.jpm-game[data-game="vestir-princesa"] .vp-inv-row { display: flex; gap: clamp(3px, 1cqh, 8px); justify-content: center; align-items: stretch; flex-wrap: nowrap; }
.jpm-game[data-game="vestir-princesa"] .vp-grp { position: relative; display: flex; gap: clamp(2px, .6cqh, 5px); align-items: center; padding: clamp(2px, .7cqh, 5px); border-radius: 12px; background: rgba(74, 35, 102, .07); transition: background .2s; }
.jpm-game[data-game="vestir-princesa"] .vp-grp.is-on { background: rgba(255, 194, 58, .3); }
.jpm-game[data-game="vestir-princesa"] .vp-gstar { position: absolute; z-index: 1; left: -3px; top: -4px; width: clamp(10px, 3.4cqh, 18px); height: clamp(10px, 3.4cqh, 18px); color: #D8C9E6; filter: drop-shadow(0 1px 0 #fff) drop-shadow(0 -1px 0 #fff); }
.jpm-game[data-game="vestir-princesa"] .vp-grp.is-on .vp-gstar { color: var(--vp-gold); animation: vestir-princesa-pop .4s ease-out; }
.jpm-game[data-game="vestir-princesa"] .vp-gstar svg { width: 100%; height: 100%; display: block; }
.jpm-game[data-game="vestir-princesa"] .vp-chip { position: relative; flex: none; width: clamp(18px, 9cqh, 46px); height: clamp(18px, 9cqh, 46px); border-radius: 22%; background: #fff; box-shadow: inset 0 0 0 2px var(--vp-line); display: grid; place-items: center; transition: box-shadow .2s; }
.jpm-game[data-game="vestir-princesa"] .vp-chip > svg, .jpm-game[data-game="vestir-princesa"] .vp-chip > .vp-thumb { width: 86%; height: 86%; object-fit: contain; }
.jpm-game[data-game="vestir-princesa"] .vp-chip.is-met { box-shadow: inset 0 0 0 2px #3FC97E; background: #EFFFF5; }
.jpm-game[data-game="vestir-princesa"] .vp-chip--extra { box-shadow: inset 0 0 0 2px #F2D58A; background: #FFFBEA; }
.jpm-game[data-game="vestir-princesa"] .vp-pdots { display: flex; width: 74%; height: 74%; border-radius: 50%; overflow: hidden; box-shadow: 0 0 0 2px #fff, 0 0 0 3px rgba(74, 35, 102, .2); transform: rotate(-35deg); }
.jpm-game[data-game="vestir-princesa"] .vp-pdot { flex: 1; background: var(--gem); opacity: .35; transition: opacity .2s; }
.jpm-game[data-game="vestir-princesa"] .vp-pdot.is-on { opacity: 1; }
.jpm-game[data-game="vestir-princesa"] .vp-n { position: absolute; left: -3px; bottom: -3px; min-width: 1.4em; padding: 0 .25em; border-radius: 99px; background: var(--vp-plum); color: #fff; font-size: clamp(8px, 2.4cqh, 12px); font-weight: 900; line-height: 1.4; }
.jpm-game[data-game="vestir-princesa"] .vp-tick { position: absolute; top: -4px; right: -4px; width: clamp(10px, 3.6cqh, 18px); height: clamp(10px, 3.6cqh, 18px); }
.jpm-game[data-game="vestir-princesa"] .vp-tick svg { width: 100%; height: 100%; display: block; animation: vestir-princesa-pop .35s ease-out; }
.jpm-game[data-game="vestir-princesa"] .vp-chip.is-miss { animation: vestir-princesa-shake .5s ease-in-out; box-shadow: inset 0 0 0 3px #FF6868; background: #FFF0F0; }
@keyframes vestir-princesa-pop { from { transform: scale(.3); } 70% { transform: scale(1.25); } to { transform: scale(1); } }
@keyframes vestir-princesa-shake { 0%, 100% { transform: translateX(0); } 20%, 60% { transform: translateX(-5px); } 40%, 80% { transform: translateX(5px); } }

/* baús (esquerda) */
.jpm-game[data-game="vestir-princesa"] .vp-chests { position: absolute; z-index: 3; left: 1.2cqw; top: 50%; transform: translateY(-50%); display: grid; grid-template-columns: repeat(2, var(--vp-tab)); grid-auto-rows: var(--vp-tab); gap: min(1.6cqh, 8px); padding: min(1.6cqh, 8px); border-radius: clamp(12px, 3.4cqh, 22px); background: rgba(74, 35, 102, .78); box-shadow: 0 10px 24px rgba(74, 35, 102, .25); }
.jpm-game[data-game="vestir-princesa"] .vp-chests[hidden] { display: none; }
.jpm-game[data-game="vestir-princesa"] .vp-chest { position: relative; border: 0; border-radius: 30%; padding: 12%; background: radial-gradient(circle at 50% 35%, #FFFFFF, #F5E9FF); box-shadow: inset 0 -3px 0 rgba(74, 35, 102, .18); display: grid; place-items: center; transition: transform .12s; }
.jpm-game[data-game="vestir-princesa"] .vp-chest svg { width: 100%; height: 100%; }
.jpm-game[data-game="vestir-princesa"] .vp-chest:active { transform: scale(.92); }
.jpm-game[data-game="vestir-princesa"] .vp-chest.is-on { background: radial-gradient(circle at 50% 35%, #FFF6D6, #FFC23A); box-shadow: 0 0 0 3px #fff, inset 0 -3px 0 rgba(160, 90, 0, .3); }
.jpm-game[data-game="vestir-princesa"] .vp-chest.is-worn::before { content: ""; position: absolute; left: 6%; bottom: 6%; width: 22%; height: 22%; border-radius: 50%; background: #3FC97E; box-shadow: 0 0 0 2px #fff; }
.jpm-game[data-game="vestir-princesa"] .vp-chest.is-hint::after { content: ""; position: absolute; top: 4%; right: 4%; width: 24%; height: 24%; border-radius: 50%; background: var(--vp-gold); box-shadow: 0 0 0 2px #fff; animation: vestir-princesa-pulse 1s ease-in-out infinite; }
@keyframes vestir-princesa-pulse { 0%, 100% { transform: scale(1); } 50% { transform: scale(1.2); } }

/* guarda-roupa (direita) */
.jpm-game[data-game="vestir-princesa"] .vp-ward { position: absolute; z-index: 3; right: 1.2cqw; top: 2.4cqh; bottom: 2.4cqh; width: 31cqw; display: flex; flex-direction: column; border-radius: clamp(12px, 3.4cqh, 22px); background: rgba(255, 252, 247, .96); border: 3px solid #F2D58A; box-shadow: 0 12px 30px rgba(74, 35, 102, .22); overflow: hidden; }
.jpm-game[data-game="vestir-princesa"] .vp-ward[hidden] { display: none; }
.jpm-game[data-game="vestir-princesa"] .vp-ward-t { flex: none; margin: 0; padding: .35em .8em; background: linear-gradient(90deg, #8C5AE6, #B47AF0); color: #fff; font-weight: 900; font-size: clamp(11px, 3.4cqh, 19px); letter-spacing: .02em; }
.jpm-game[data-game="vestir-princesa"] .vp-grid { flex: 1; min-height: 0; overflow-y: auto; overscroll-behavior: contain; touch-action: pan-y; padding: clamp(4px, 1.6cqh, 10px); }
.jpm-game[data-game="vestir-princesa"] .vp-grid--items { display: grid; grid-template-columns: repeat(auto-fill, minmax(clamp(44px, 17cqh, 104px), 1fr)); align-content: start; gap: clamp(4px, 1.4cqh, 9px); }
.jpm-game[data-game="vestir-princesa"] .vp-item { position: relative; border: 2px solid var(--vp-line); border-radius: 14px; background: #fff; padding: 2px 2px 3px; display: flex; flex-direction: column; align-items: center; justify-content: flex-start; gap: 1px; touch-action: pan-y; transition: transform .12s, border-color .15s; color: var(--vp-plum); }
.jpm-game[data-game="vestir-princesa"] .vp-item:active { transform: scale(.94); }
.jpm-game[data-game="vestir-princesa"] .vp-ico { width: 88%; aspect-ratio: 1; display: grid; place-items: center; pointer-events: none; border-radius: 10px; background: radial-gradient(circle at 50% 45%, #FFF4FB, #F6ECFF 70%); }
.jpm-game[data-game="vestir-princesa"] .vp-thumb { width: 100%; height: 100%; object-fit: contain; display: block; pointer-events: none; -webkit-user-drag: none; }
.jpm-game[data-game="vestir-princesa"] .vp-thumb:not([src]) { visibility: hidden; }
.jpm-game[data-game="vestir-princesa"] .vp-iname { font-size: clamp(7px, 2.2cqh, 12px); font-weight: 800; line-height: 1.05; text-align: center; pointer-events: none; overflow: hidden; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; min-height: 2.1em; }
.jpm-game[data-game="vestir-princesa"] .vp-item.is-on { border-color: var(--vp-rose); background: #FFF0F7; }
.jpm-game[data-game="vestir-princesa"] .vp-item.is-hint { border-color: var(--vp-gold); animation: vestir-princesa-glow 1.4s ease-in-out infinite; }
@keyframes vestir-princesa-glow { 0%, 100% { box-shadow: 0 0 0 0 rgba(255, 194, 58, 0); } 50% { box-shadow: 0 0 0 4px rgba(255, 194, 58, .6); } }
.jpm-game[data-game="vestir-princesa"] .vp-item.is-new::before { content: "Nova!"; position: absolute; z-index: 1; top: -2px; left: -2px; padding: 1px 5px; border-radius: 10px 0 10px 0; background: #8C5AE6; color: #fff; font-size: clamp(7px, 2cqh, 10px); font-weight: 900; }
.jpm-game[data-game="vestir-princesa"] .vp-item.is-lock { opacity: .55; background: #F8F4FB; cursor: default; }
.jpm-game[data-game="vestir-princesa"] .vp-item.is-lock .vp-ico { filter: grayscale(1) brightness(1.1); }
.jpm-game[data-game="vestir-princesa"] .vp-ok { position: absolute; top: 3px; right: 3px; width: clamp(12px, 4.2cqh, 22px); height: clamp(12px, 4.2cqh, 22px); pointer-events: none; }
.jpm-game[data-game="vestir-princesa"] .vp-ok svg, .jpm-game[data-game="vestir-princesa"] .vp-lock svg { width: 100%; height: 100%; display: block; }
.jpm-game[data-game="vestir-princesa"] .vp-lock { position: absolute; top: 30%; left: 50%; transform: translate(-50%, -50%); width: 28%; height: 28%; color: var(--vp-plum); }
.jpm-game[data-game="vestir-princesa"] .vp-sec { display: flex; align-items: center; gap: .4em; margin: .2em 0 .35em .1em; font-size: clamp(10px, 3cqh, 15px); font-weight: 900; color: var(--vp-plum); }
.jpm-game[data-game="vestir-princesa"] .vp-sw { width: 1.1em; height: 1.1em; border-radius: 50%; background: var(--gem); box-shadow: 0 0 0 2px #fff, 0 0 0 3px rgba(74, 35, 102, .25); }
.jpm-game[data-game="vestir-princesa"] .vp-gems { display: grid; grid-template-columns: repeat(5, 1fr); gap: clamp(3px, 1.4cqh, 9px); margin-bottom: .5em; justify-items: center; }
.jpm-game[data-game="vestir-princesa"] .vp-gem { position: relative; width: min(100%, 50px); aspect-ratio: 1; border: 0; border-radius: 50%; padding: 0; background: radial-gradient(circle at 35% 30%, rgba(255, 255, 255, .9) 0 12%, transparent 13%), var(--gem); box-shadow: inset 0 -4px 0 rgba(0, 0, 0, .14), 0 0 0 2px #fff, 0 0 0 3px rgba(74, 35, 102, .2); transition: transform .12s; }
.jpm-game[data-game="vestir-princesa"] .vp-gem:active { transform: scale(.9); }
.jpm-game[data-game="vestir-princesa"] .vp-gem.is-on { transform: scale(1.1); box-shadow: inset 0 -4px 0 rgba(0, 0, 0, .14), 0 0 0 3px #fff, 0 0 0 6px var(--vp-rose); }
.jpm-game[data-game="vestir-princesa"] .vp-gem.is-pal::after { content: ""; position: absolute; top: -12%; right: -12%; width: 40%; height: 40%; background: var(--vp-gold); clip-path: polygon(50% 0, 61% 35%, 98% 35%, 68% 57%, 79% 91%, 50% 70%, 21% 91%, 32% 57%, 2% 35%, 39% 35%); }
.jpm-game[data-game="vestir-princesa"] .vp-palhint { display: flex; align-items: center; gap: .5em; margin: .2em 0 0; padding: .35em .5em; border-radius: 12px; background: #FFF6DA; font-size: clamp(9px, 2.7cqh, 14px); font-weight: 700; color: #7A4A1E; line-height: 1.15; }
.jpm-game[data-game="vestir-princesa"] .vp-palhint svg { flex: none; width: clamp(22px, 7cqh, 36px); height: clamp(22px, 7cqh, 36px); }
.jpm-game[data-game="vestir-princesa"] .vp-hairs { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(4px, 1.2cqh, 8px); margin-bottom: .5em; }
.jpm-game[data-game="vestir-princesa"] .vp-gem--skin, .jpm-game[data-game="vestir-princesa"] .vp-gem--hair { width: min(100%, 44px); }
.jpm-game[data-game="vestir-princesa"] .vp-gems--6 { grid-template-columns: repeat(6, 1fr); }
.jpm-game[data-game="vestir-princesa"] .vp-gems--4 { grid-template-columns: repeat(4, 1fr); }

/* botão de apresentar (embaixo, no meio) */
.jpm-game[data-game="vestir-princesa"] .vp-go { position: absolute; z-index: 3; bottom: 2.6cqh; left: calc(var(--vp-tab) * 2 + 2.6cqw + 6px); right: 33cqw; display: flex; justify-content: center; pointer-events: none; }
.jpm-game[data-game="vestir-princesa"] .vp-go[hidden] { display: none; }
.jpm-game[data-game="vestir-princesa"] .vp-present { pointer-events: auto; min-height: clamp(36px, 12cqh, 60px); padding: 0 1.1em; display: inline-flex; align-items: center; gap: .5em; font-size: clamp(13px, 4cqh, 22px); white-space: nowrap; background: linear-gradient(180deg, #B98CFF, #8C5AE6); box-shadow: 0 6px 0 #6A3AB8, 0 10px 18px rgba(74, 35, 102, .25); }
.jpm-game[data-game="vestir-princesa"] .vp-present.is-ready { background: linear-gradient(180deg, #FF8CC4, #E2569A); box-shadow: 0 6px 0 #B8387A, 0 10px 18px rgba(74, 35, 102, .25); animation: vestir-princesa-pulse 1.2s ease-in-out infinite; }
.jpm-game[data-game="vestir-princesa"] .vp-meter { display: inline-flex; gap: 1px; padding: .15em .35em; border-radius: 99px; background: rgba(255, 255, 255, .25); }
.jpm-game[data-game="vestir-princesa"] .vp-mstar { width: 1em; height: 1em; color: rgba(255, 255, 255, .45); }
.jpm-game[data-game="vestir-princesa"] .vp-mstar.is-on { color: #FFE27A; }

/* mapa dos reinos */
.jpm-game[data-game="vestir-princesa"] .vp-map { background: rgba(74, 35, 102, .32); padding: 2.4cqh 2cqw; }
.jpm-game[data-game="vestir-princesa"] .vp-mapcard { width: min(94cqw, 940px); height: 94cqh; display: flex; flex-direction: column; text-align: left; padding: clamp(8px, 2.4cqh, 18px) clamp(10px, 2cqw, 22px); background: var(--vp-parch); border: 3px solid #F2D58A; }
.jpm-game[data-game="vestir-princesa"] .vp-maphead { flex: none; display: flex; justify-content: space-between; align-items: center; gap: 8px; margin-bottom: 1.2cqh; }
.jpm-game[data-game="vestir-princesa"] .vp-maphead .g-title { margin: 0; font-size: clamp(15px, 5cqh, 30px); }
.jpm-game[data-game="vestir-princesa"] .vp-mapsub { display: flex; align-items: center; gap: .3em; margin: 0; padding: .25em .7em; border-radius: 99px; background: #fff; font-weight: 900; font-size: clamp(10px, 3cqh, 16px); color: var(--vp-plum); white-space: nowrap; }
.jpm-game[data-game="vestir-princesa"] .vp-mapsub svg { width: 1.2em; height: 1.2em; }
.jpm-game[data-game="vestir-princesa"] .vp-maplist { position: relative; flex: 1; min-height: 0; overflow-y: auto; overscroll-behavior: contain; display: flex; flex-direction: column; gap: clamp(5px, 1.6cqh, 12px); padding: 2px 2px 6px; }
.jpm-game[data-game="vestir-princesa"] .vp-realm { flex: none; display: flex; align-items: center; gap: clamp(6px, 1.6cqw, 14px); padding: clamp(4px, 1.4cqh, 10px); border-radius: 16px; background: var(--card); box-shadow: inset 0 -4px 0 rgba(74, 35, 102, .1); }
.jpm-game[data-game="vestir-princesa"] .vp-realm.is-closed { filter: grayscale(.7); opacity: .6; }
.jpm-game[data-game="vestir-princesa"] .vp-realm-h { flex: 0 0 22%; display: flex; align-items: center; gap: .4em; min-width: 0; }
.jpm-game[data-game="vestir-princesa"] .vp-realm-ico { flex: none; width: clamp(26px, 9cqh, 50px); height: clamp(26px, 9cqh, 50px); padding: clamp(2px, 1cqh, 7px); border-radius: 50%; background: #fff; display: grid; place-items: center; }
.jpm-game[data-game="vestir-princesa"] .vp-realm-ico svg { width: 100%; height: 100%; }
.jpm-game[data-game="vestir-princesa"] .vp-realm-n { font-weight: 900; font-size: clamp(9px, 2.8cqh, 15px); line-height: 1.05; color: var(--rink); }
.jpm-game[data-game="vestir-princesa"] .vp-realm-lv { flex: 1; display: grid; grid-template-columns: repeat(4, 1fr); gap: clamp(4px, 1.2cqw, 10px); }
.jpm-game[data-game="vestir-princesa"] .vp-lv { position: relative; border: 0; border-radius: 12px; background: #fff; padding: clamp(3px, 1cqh, 7px) 4px; display: flex; flex-direction: column; align-items: center; gap: 1px; box-shadow: inset 0 -3px 0 rgba(74, 35, 102, .12); color: var(--vp-plum); min-height: clamp(40px, 15cqh, 82px); justify-content: center; transition: transform .12s; }
.jpm-game[data-game="vestir-princesa"] .vp-lv:active { transform: scale(.95); }
.jpm-game[data-game="vestir-princesa"] .vp-lv-n { font-weight: 900; font-size: clamp(11px, 3.6cqh, 19px); color: var(--rink); line-height: 1; }
.jpm-game[data-game="vestir-princesa"] .vp-lv-t { font-weight: 800; font-size: clamp(7px, 2.2cqh, 12px); line-height: 1.05; text-align: center; overflow: hidden; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
.jpm-game[data-game="vestir-princesa"] .vp-lv-stars { display: flex; gap: 1px; }
.jpm-game[data-game="vestir-princesa"] .vp-lv-star { width: clamp(9px, 3.2cqh, 17px); height: clamp(9px, 3.2cqh, 17px); color: rgba(74, 35, 102, .16); }
.jpm-game[data-game="vestir-princesa"] .vp-lv-star.is-on { color: var(--vp-gold); }
.jpm-game[data-game="vestir-princesa"] .vp-lv-lock { width: clamp(10px, 3.4cqh, 18px); height: clamp(10px, 3.4cqh, 18px); color: rgba(74, 35, 102, .45); }
.jpm-game[data-game="vestir-princesa"] .vp-lv-lock svg { width: 100%; height: 100%; display: block; }
.jpm-game[data-game="vestir-princesa"] .vp-lv.is-locked { background: rgba(255, 255, 255, .55); cursor: default; }
.jpm-game[data-game="vestir-princesa"] .vp-lv.is-cur { box-shadow: 0 0 0 3px var(--vp-rose), inset 0 -3px 0 rgba(74, 35, 102, .12); animation: vestir-princesa-pulse 1.3s ease-in-out infinite; }

/* convite (antes da fase) */
.jpm-game[data-game="vestir-princesa"] .vp-ready { pointer-events: auto; background: rgba(74, 35, 102, .3); cursor: pointer; }
.jpm-game[data-game="vestir-princesa"] .vp-rdcard { position: relative; width: min(84cqw, 470px); max-height: 92cqh; overflow: hidden; padding: clamp(12px, 3.4cqh, 24px) clamp(14px, 3cqw, 28px) clamp(8px, 2.4cqh, 16px); background: var(--vp-parch); border: 3px solid #F2D58A; animation: vestir-princesa-in .45s ease-out; }
@keyframes vestir-princesa-in { from { transform: translateY(14px) scale(.94); opacity: 0; } to { transform: none; opacity: 1; } }
.jpm-game[data-game="vestir-princesa"] .vp-seal { position: absolute; top: clamp(6px, 2cqh, 12px); right: clamp(6px, 2cqh, 12px); width: clamp(30px, 11cqh, 60px); height: clamp(30px, 11cqh, 60px); padding: clamp(3px, 1.3cqh, 9px); border-radius: 50%; background: #fff; box-shadow: 0 0 0 3px #F2D58A; }
.jpm-game[data-game="vestir-princesa"] .vp-seal svg { width: 100%; height: 100%; display: block; }
.jpm-game[data-game="vestir-princesa"] .vp-rdcard .g-kicker { color: var(--rink); }
.jpm-game[data-game="vestir-princesa"] .vp-rdcard .g-title { font-size: clamp(16px, 5.6cqh, 32px); }
.jpm-game[data-game="vestir-princesa"] .vp-rdcard .g-text { margin-bottom: .5em; font-size: clamp(10px, 3.2cqh, 16px); }
.jpm-game[data-game="vestir-princesa"] .vp-rdreqs { list-style: none; margin: 0 auto; padding: 0; display: flex; flex-wrap: wrap; justify-content: center; gap: clamp(3px, 1cqh, 7px); }
.jpm-game[data-game="vestir-princesa"] .vp-rdreqs li { display: inline-flex; align-items: center; gap: .35em; padding: .2em .6em .2em .2em; border-radius: 99px; background: #fff; box-shadow: inset 0 0 0 2px var(--vp-line); font-weight: 800; font-size: clamp(9px, 2.8cqh, 14px); text-align: left; }
.jpm-game[data-game="vestir-princesa"] .vp-rdreqs li.is-pal, .jpm-game[data-game="vestir-princesa"] .vp-rdreqs li.is-extra { background: #FFF8E0; box-shadow: inset 0 0 0 2px #F2D58A; }
.jpm-game[data-game="vestir-princesa"] .vp-rdreqs b { color: #B5741A; }
.jpm-game[data-game="vestir-princesa"] .vp-rdico { position: relative; flex: none; width: clamp(20px, 7.2cqh, 38px); height: clamp(20px, 7.2cqh, 38px); display: grid; place-items: center; }
.jpm-game[data-game="vestir-princesa"] .vp-rdico svg, .jpm-game[data-game="vestir-princesa"] .vp-rdico .vp-thumb { width: 100%; height: 100%; object-fit: contain; }
.jpm-game[data-game="vestir-princesa"] .vp-rdtap { margin: .7em 0 0; font-weight: 900; font-size: clamp(10px, 3cqh, 15px); color: #B23A78; animation: vestir-princesa-pulse 1.1s ease-in-out infinite; }

/* resultado */
.jpm-game[data-game="vestir-princesa"] .vp-over { background: linear-gradient(270deg, rgba(74, 35, 102, .35), rgba(74, 35, 102, 0) 60%); justify-items: end; padding-right: 3cqw; }
.jpm-game[data-game="vestir-princesa"] .vp-ovcard { width: min(46cqw, 430px); max-height: 94cqh; overflow-y: auto; padding: clamp(10px, 3cqh, 22px) clamp(12px, 2.4cqw, 24px); background: var(--vp-parch); border: 3px solid #F2D58A; animation: vestir-princesa-in .45s ease-out; }
.jpm-game[data-game="vestir-princesa"] .vp-ovcard .g-kicker { color: var(--rink); }
.jpm-game[data-game="vestir-princesa"] .vp-ovcard .g-title { font-size: clamp(16px, 5.6cqh, 32px); }
.jpm-game[data-game="vestir-princesa"] .vp-ovcard .g-stars { font-size: clamp(22px, 9cqh, 46px); margin: 0 0 .2em; }
.jpm-game[data-game="vestir-princesa"] .g-star.is-pop { animation: vestir-princesa-pop .45s ease-out; }
.jpm-game[data-game="vestir-princesa"] .vp-ovlines { list-style: none; margin: 0 0 .4em; padding: 0; display: flex; flex-direction: column; gap: .2em; text-align: left; }
.jpm-game[data-game="vestir-princesa"] .vp-ovlines li { display: flex; align-items: center; gap: .45em; font-weight: 800; font-size: clamp(9px, 2.9cqh, 15px); color: #8B7FA0; }
.jpm-game[data-game="vestir-princesa"] .vp-ovlines li.is-ok { color: var(--vp-plum); }
.jpm-game[data-game="vestir-princesa"] .vp-ovlines svg { flex: none; width: 1.3em; height: 1.3em; }
.jpm-game[data-game="vestir-princesa"] .vp-ovscore { margin: 0 0 .5em; font-size: clamp(9px, 2.8cqh, 15px); font-weight: 700; color: #7A6A90; }
.jpm-game[data-game="vestir-princesa"] .vp-ovscore b { color: var(--vp-plum); }
.jpm-game[data-game="vestir-princesa"] .vp-ovnew { margin: 0 0 .6em; padding: .4em .5em; border-radius: 12px; background: #F3E8FF; }
.jpm-game[data-game="vestir-princesa"] .vp-ovnew-t { display: block; font-size: clamp(9px, 2.7cqh, 14px); font-weight: 800; }
.jpm-game[data-game="vestir-princesa"] .vp-ovnew-row { display: flex; justify-content: center; flex-wrap: wrap; gap: 2px; margin-top: .2em; }
.jpm-game[data-game="vestir-princesa"] .vp-newth { width: clamp(22px, 8cqh, 42px); height: clamp(22px, 8cqh, 42px); object-fit: contain; border-radius: 8px; background: #fff; }
.jpm-game[data-game="vestir-princesa"] .vp-ovcard .g-btn { min-height: clamp(34px, 11cqh, 52px); font-size: clamp(13px, 3.8cqh, 19px); }
.jpm-game[data-game="vestir-princesa"] .vp-ovrow { margin-top: .6em; }
.jpm-game[data-game="vestir-princesa"] .vp-mini { min-height: clamp(30px, 9cqh, 44px); padding: 0 1em; font-size: clamp(12px, 3.2cqh, 16px); }

/* avisos e peça arrastada */
.jpm-game[data-game="vestir-princesa"] .vp-toasts { position: absolute; inset: 0; z-index: 5; pointer-events: none; }
.jpm-game[data-game="vestir-princesa"] .vp-toast { left: 44%; top: 30%; font-size: clamp(13px, 4.4cqh, 24px); }
.jpm-game[data-game="vestir-princesa"] .vp-ghost { position: absolute; left: 0; top: 0; z-index: 6; width: clamp(54px, 18cqh, 104px); height: clamp(54px, 18cqh, 104px); margin: calc(clamp(54px, 18cqh, 104px) / -2) 0 0 calc(clamp(54px, 18cqh, 104px) / -2); border-radius: 50%; background: rgba(255, 255, 255, .85); box-shadow: 0 8px 20px rgba(74, 35, 102, .3); pointer-events: none; display: grid; place-items: center; transition: background .15s; }
.jpm-game[data-game="vestir-princesa"] .vp-ghost.is-over { background: rgba(255, 226, 122, .95); box-shadow: 0 0 0 4px #fff, 0 8px 20px rgba(74, 35, 102, .3); }
.jpm-game[data-game="vestir-princesa"] .vp-ghost-img { width: 86%; height: 86%; object-fit: contain; }

@media (prefers-reduced-motion: reduce) {
  .jpm-game[data-game="vestir-princesa"] .vp-present.is-ready, .jpm-game[data-game="vestir-princesa"] .vp-lv.is-cur, .jpm-game[data-game="vestir-princesa"] .vp-chest.is-hint::after, .jpm-game[data-game="vestir-princesa"] .vp-item.is-hint, .jpm-game[data-game="vestir-princesa"] .vp-rdtap { animation: none; }
}
@container (max-height: 330px) {
  .jpm-game[data-game="vestir-princesa"] .vp-ovcard { width: 54cqw; padding: 6px 10px; }
  .jpm-game[data-game="vestir-princesa"] .vp-ovcard .g-kicker, .jpm-game[data-game="vestir-princesa"] .vp-ovscore { display: none; }
  .jpm-game[data-game="vestir-princesa"] .vp-ovcard .g-title { margin: 0 0 2px; font-size: 15px; }
  .jpm-game[data-game="vestir-princesa"] .vp-ovcard .g-stars { font-size: 20px; margin: 0 0 2px; }
  .jpm-game[data-game="vestir-princesa"] .vp-ovlines { margin-bottom: 4px; gap: 1px; }
  .jpm-game[data-game="vestir-princesa"] .vp-ovlines li { font-size: 9px; }
  .jpm-game[data-game="vestir-princesa"] .vp-ovnew { margin-bottom: 4px; padding: 2px 4px; }
  .jpm-game[data-game="vestir-princesa"] .vp-ovcard .g-btn { min-height: 30px; padding: 0 12px; font-size: 13px; }
  .jpm-game[data-game="vestir-princesa"] .vp-ovrow { margin-top: 5px; }
  .jpm-game[data-game="vestir-princesa"] .vp-mini { min-height: 26px; font-size: 11px; padding: 0 10px; }
  .jpm-game[data-game="vestir-princesa"] .vp-rdcard .g-text { display: none; }
}
