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

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

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

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

/* jogo */
/* jogo: Compras */
.jpm-game[data-game="compras"] { --g-accent: #FF6B5C; --cp-ink: #2A2340; --cp-chip: clamp(26px, 5.2cqw, 46px); --cp-btn: clamp(52px, 8.4cqw, 70px); outline: none; }
.jpm-game[data-game="compras"] .g-canvas { cursor: pointer; }

/* HUD */
.jpm-game[data-game="compras"] .cp-hud { inset: 0 0 auto 0; display: block; padding: 0; }
.jpm-game[data-game="compras"] .cp-bar { display: flex; gap: clamp(4px, 1cqw, 8px); align-items: flex-start; padding: clamp(5px, 1.3cqw, 12px); }
.jpm-game[data-game="compras"] .cp-menu { pointer-events: auto; width: clamp(30px, 6cqw, 46px); height: clamp(30px, 6cqw, 46px); border: 0; border-radius: 50%; background: var(--g-glass); display: grid; place-items: center; flex: none; padding: 0; }
.jpm-game[data-game="compras"] .cp-menu svg { width: 56%; height: 56%; }
.jpm-game[data-game="compras"] .cp-list { display: flex; flex-wrap: wrap; gap: clamp(3px, .8cqw, 7px); padding: clamp(3px, .7cqw, 6px); border-radius: clamp(10px, 2cqw, 18px); background: rgba(255, 252, 245, .94); box-shadow: 0 4px 0 rgba(42, 35, 64, .12), 0 6px 18px rgba(42, 35, 64, .14); max-width: 64cqw; }
.jpm-game[data-game="compras"] .cp-list:empty { display: none; }
.jpm-game[data-game="compras"] .cp-item { position: relative; display: grid; place-items: center; width: var(--cp-chip); height: var(--cp-chip); border-radius: clamp(7px, 1.4cqw, 12px); background: #FFF; box-shadow: inset 0 0 0 2px #F1E4D3; transition: background .2s; }
.jpm-game[data-game="compras"] .cp-ic { width: 84%; height: 84%; display: block; }
.jpm-game[data-game="compras"] .cp-n { position: absolute; right: -4px; bottom: -4px; min-width: 2.1em; padding: 0 .3em; border-radius: 99px; background: var(--cp-ink); color: #fff; font-size: clamp(8px, 1.45cqw, 12px); font-weight: 900; line-height: 1.55; text-align: center; font-variant-numeric: tabular-nums; }
.jpm-game[data-game="compras"] .cp-item.is-done { background: #DDF7E8; box-shadow: inset 0 0 0 2px #7FDCA6; }
.jpm-game[data-game="compras"] .cp-item.is-done .cp-ic { opacity: .45; }
.jpm-game[data-game="compras"] .cp-item.is-done .cp-n { background: #2FBF71; }
.jpm-game[data-game="compras"] .cp-ok { position: absolute; left: 50%; top: 50%; width: 62%; height: 62%; transform: translate(-50%, -50%); animation: compras-ok .35s ease-out; }
.jpm-game[data-game="compras"] .cp-item.is-bump { animation: compras-bump .45s ease-out; }
.jpm-game[data-game="compras"] .cp-item.is-miss { animation: compras-shake .5s ease-in-out; background: #FFE3E0; box-shadow: inset 0 0 0 2px #FF8A7A; }
.jpm-game[data-game="compras"] .cp-right { margin-left: auto; display: flex; flex-wrap: wrap; justify-content: flex-end; gap: clamp(4px, 1cqw, 8px); }
.jpm-game[data-game="compras"] .cp-right .g-chip { font-size: clamp(11px, 2.2cqw, 18px); padding: 4px 10px 4px 6px; }
.jpm-game[data-game="compras"] .cp-wallet small { font-size: .78em; opacity: .8; font-weight: 800; }
.jpm-game[data-game="compras"] .cp-wallet.is-over { background: var(--coral, #FF6868); animation: compras-shake .5s ease-in-out; }
.jpm-game[data-game="compras"] .cp-time.is-warn { background: var(--coral, #FF6868); }
.jpm-game[data-game="compras"] .cp-goal { position: absolute; left: 50%; top: calc(var(--cp-chip) + clamp(14px, 3.2cqw, 30px)); transform: translateX(-50%); max-width: calc(100% - 24px); margin: 0; padding: .3em .9em; border-radius: var(--r-pill, 999px); background: rgba(42, 35, 64, .72); color: #fff; font-weight: 800; font-size: clamp(10px, 1.9cqw, 16px); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.jpm-game[data-game="compras"] .cp-goal:empty { display: none; }
.jpm-game[data-game="compras"] .cp-goal.is-flash { animation: compras-flash .6s ease-out; }

/* barra de baixo */
.jpm-game[data-game="compras"] .cp-dock { align-items: flex-end; padding: clamp(6px, 1.4cqw, 12px); }
.jpm-game[data-game="compras"] .cp-lvl { padding: .25em .8em; border-radius: var(--r-pill, 999px); background: var(--g-glass); color: #fff; font-weight: 900; font-size: clamp(10px, 1.8cqw, 15px); }
.jpm-game[data-game="compras"] .cp-tb { position: relative; width: var(--cp-btn); height: var(--cp-btn); background: rgba(42, 35, 64, .62); box-shadow: 0 4px 0 rgba(0, 0, 0, .18); }
.jpm-game[data-game="compras"] .cp-cartbtn { background: rgba(255, 107, 92, .92); }
.jpm-game[data-game="compras"] .cp-cartbtn.is-empty { background: rgba(42, 35, 64, .5); }
.jpm-game[data-game="compras"] .cp-tb:active { background: rgba(255, 107, 92, 1); }
.jpm-game[data-game="compras"] .cp-badge { position: absolute; right: -3px; top: -3px; min-width: 1.6em; padding: 0 .3em; border-radius: 99px; background: #fff; color: var(--cp-ink); font-size: clamp(10px, 1.6cqw, 13px); line-height: 1.6; box-shadow: 0 2px 6px rgba(0, 0, 0, .2); }

/* painel do carrinho */
.jpm-game[data-game="compras"] .cp-cart { position: absolute; left: clamp(8px, 1.6cqw, 14px); bottom: calc(var(--cp-btn) + clamp(14px, 2.8cqw, 26px)); z-index: 4; width: min(62cqw, 360px); max-height: calc(100% - var(--cp-btn) - clamp(60px, 14cqw, 110px)); display: flex; flex-direction: column; padding: clamp(8px, 1.6cqw, 14px); border-radius: var(--r-card, 16px); background: #FFFCF6; color: var(--cp-ink); box-shadow: 0 14px 34px rgba(42, 35, 64, .28); animation: compras-rise .2s ease-out; }
.jpm-game[data-game="compras"] .cp-cart-head { display: flex; align-items: center; gap: 8px; }
.jpm-game[data-game="compras"] .cp-cart-t { margin: 0; font-weight: 900; font-size: clamp(13px, 2.4cqw, 19px); }
.jpm-game[data-game="compras"] .cp-cart-sum { display: inline-flex; align-items: center; gap: 4px; margin: 0 0 0 auto; padding: .1em .6em .1em .25em; border-radius: 99px; background: #FFF1C2; font-weight: 900; font-size: clamp(11px, 2cqw, 16px); }
.jpm-game[data-game="compras"] .cp-cart-sum svg { width: 1.2em; height: 1.2em; }
.jpm-game[data-game="compras"] .cp-cart-sum.is-over { background: var(--coral, #FF6868); color: #fff; }
.jpm-game[data-game="compras"] .cp-x { width: clamp(30px, 5cqw, 40px); height: clamp(30px, 5cqw, 40px); padding: 0; border: 0; border-radius: 50%; background: #F1E9DD; display: grid; place-items: center; flex: none; }
.jpm-game[data-game="compras"] .cp-x svg { width: 55%; height: 55%; }
.jpm-game[data-game="compras"] .cp-cart-tip { margin: 4px 0 6px; color: var(--muted, #606B80); font-weight: 700; font-size: clamp(10px, 1.7cqw, 13px); }
.jpm-game[data-game="compras"] .cp-cart-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(clamp(52px, 10cqw, 76px), 1fr)); gap: 6px; overflow-y: auto; overscroll-behavior: contain; min-height: 0; }
.jpm-game[data-game="compras"] .cp-ci { position: relative; display: flex; flex-direction: column; align-items: center; gap: 2px; min-height: 52px; padding: 4px 2px; border: 0; border-radius: 12px; background: #fff; box-shadow: inset 0 0 0 2px #F1E4D3; }
.jpm-game[data-game="compras"] .cp-ci .cp-ic { width: clamp(26px, 5cqw, 40px); height: clamp(26px, 5cqw, 40px); }
.jpm-game[data-game="compras"] .cp-ci-p { display: inline-flex; align-items: center; gap: 2px; font-weight: 900; font-size: clamp(10px, 1.7cqw, 14px); }
.jpm-game[data-game="compras"] .cp-ci-p svg { width: 1.1em; height: 1.1em; }
.jpm-game[data-game="compras"] .cp-ci-x { position: absolute; right: 2px; top: 2px; width: 1.3em; height: 1.3em; border-radius: 50%; background: #FFE3E0; color: #E5484D; display: grid; place-items: center; font-size: clamp(9px, 1.5cqw, 12px); }
.jpm-game[data-game="compras"] .cp-ci-x svg { width: 70%; height: 70%; }
.jpm-game[data-game="compras"] .cp-ci:active { transform: scale(.94); }
.jpm-game[data-game="compras"] .cp-empty { margin: 6px 0; color: var(--muted, #606B80); font-weight: 700; }

/* avisos */
.jpm-game[data-game="compras"] .cp-toast { display: inline-flex; align-items: center; gap: .3em; top: 30%; }
.jpm-game[data-game="compras"] .cp-tic { width: 1.4em; height: 1.4em; vertical-align: middle; }
.jpm-game[data-game="compras"] .cp-toast svg { width: 1.3em; height: 1.3em; }

/* abertura */
.jpm-game[data-game="compras"] .cp-intro-card .g-title { color: var(--cp-ink); }

/* fases */
.jpm-game[data-game="compras"] .cp-levels { background: rgba(42, 35, 64, .3); }
.jpm-game[data-game="compras"] .cp-lv-card { width: min(94%, 760px); max-height: calc(100% - 8px); display: flex; flex-direction: column; padding: clamp(10px, 2.2cqw, 22px); }
.jpm-game[data-game="compras"] .cp-lv-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: clamp(4px, 1cqw, 10px); }
.jpm-game[data-game="compras"] .cp-lv-head .g-title { margin: 0; }
.jpm-game[data-game="compras"] .cp-lv-total { display: inline-flex; align-items: center; gap: 4px; padding: .2em .7em .2em .3em; border-radius: 99px; background: #FFF4D1; font-weight: 900; font-size: clamp(12px, 2.2cqw, 17px); }
.jpm-game[data-game="compras"] .cp-lv-total svg { width: 1.3em; height: 1.3em; }
.jpm-game[data-game="compras"] .cp-lv-grid { display: grid; grid-template-columns: repeat(6, 1fr); gap: clamp(5px, 1.2cqw, 10px); overflow-y: auto; overscroll-behavior: contain; min-height: 0; padding: 4px; }
.jpm-game[data-game="compras"] .cp-lv { position: relative; display: flex; flex-direction: column; align-items: center; gap: 2px; min-height: 56px; padding: clamp(4px, 1cqw, 8px) 2px; border: 0; border-radius: clamp(10px, 1.8cqw, 16px); background: #FFF6EA; box-shadow: 0 3px 0 #F0DCC4; transition: transform .12s; }
.jpm-game[data-game="compras"] .cp-lv:active { transform: scale(.95); }
.jpm-game[data-game="compras"] .cp-lv-n { font-weight: 900; font-size: clamp(13px, 2.4cqw, 20px); color: var(--cp-ink); line-height: 1; }
.jpm-game[data-game="compras"] .cp-lv-ics { display: flex; gap: 1px; }
.jpm-game[data-game="compras"] .cp-lv-ic { width: clamp(13px, 2.6cqw, 24px); height: clamp(13px, 2.6cqw, 24px); }
.jpm-game[data-game="compras"] .cp-lv-stars { display: flex; gap: 1px; }
.jpm-game[data-game="compras"] .cp-lv-star { width: clamp(10px, 1.9cqw, 16px); height: clamp(10px, 1.9cqw, 16px); color: #E8DCCB; }
.jpm-game[data-game="compras"] .cp-lv-star.is-on { color: #FFC23C; }
.jpm-game[data-game="compras"] .cp-lv-b { position: absolute; right: 4px; top: 4px; width: clamp(13px, 2.4cqw, 20px); height: clamp(13px, 2.4cqw, 20px); border-radius: 50%; display: grid; place-items: center; }
.jpm-game[data-game="compras"] .cp-lv-b svg { width: 100%; height: 100%; }
.jpm-game[data-game="compras"] .cp-b-time { background: #4FA8FF; }
.jpm-game[data-game="compras"] .cp-lv.is-locked { background: #EEE9E2; box-shadow: 0 3px 0 #DDD5CA; }
.jpm-game[data-game="compras"] .cp-lv.is-locked > :not(.cp-lock) { opacity: .3; }
.jpm-game[data-game="compras"] .cp-lock { position: absolute; inset: 0; display: grid; place-items: center; color: #9A90A8; }
.jpm-game[data-game="compras"] .cp-lock svg { width: clamp(16px, 3.4cqw, 28px); height: clamp(16px, 3.4cqw, 28px); }

/* pronto */
.jpm-game[data-game="compras"] .cp-ready { pointer-events: auto; background: rgba(42, 35, 64, .25); }
.jpm-game[data-game="compras"] .cp-rd-card { display: flex; flex-direction: column; align-items: center; gap: clamp(4px, 1cqw, 10px); padding: clamp(10px, 2.4cqw, 24px) clamp(14px, 3.4cqw, 34px); border-radius: var(--r-card, 16px); background: #FFFCF6; box-shadow: 0 16px 40px rgba(42, 35, 64, .25); animation: compras-rise .3s ease-out; max-width: 92%; }
.jpm-game[data-game="compras"] .cp-rd-level { margin: 0; font-weight: 900; letter-spacing: .1em; text-transform: uppercase; font-size: clamp(10px, 1.8cqw, 14px); color: var(--g-accent); }
.jpm-game[data-game="compras"] .cp-rd-title { margin: 0; font-weight: 900; font-size: clamp(16px, 3.6cqw, 30px); letter-spacing: -.03em; color: var(--cp-ink); }
.jpm-game[data-game="compras"] .cp-rd-list { display: flex; flex-wrap: wrap; justify-content: center; gap: clamp(4px, 1.2cqw, 10px); }
.jpm-game[data-game="compras"] .cp-rd-it { position: relative; display: grid; place-items: center; width: clamp(36px, 8cqw, 68px); height: clamp(36px, 8cqw, 68px); border-radius: clamp(10px, 2cqw, 18px); background: #fff; box-shadow: inset 0 0 0 2px #F1E4D3; }
.jpm-game[data-game="compras"] .cp-rd-it b { position: absolute; right: -5px; bottom: -5px; min-width: 1.6em; padding: 0 .3em; border-radius: 99px; background: var(--cp-ink); color: #fff; font-size: clamp(10px, 1.9cqw, 15px); line-height: 1.5; text-align: center; }
.jpm-game[data-game="compras"] .cp-rd-extra { display: flex; gap: 8px; }
.jpm-game[data-game="compras"] .cp-rd-extra:empty { display: none; }
.jpm-game[data-game="compras"] .cp-rd-chip { display: inline-flex; align-items: center; gap: 4px; padding: .2em .7em .2em .3em; border-radius: 99px; background: var(--cp-ink); color: #fff; font-weight: 800; font-size: clamp(11px, 2cqw, 16px); }
.jpm-game[data-game="compras"] .cp-rd-chip svg { width: 1.3em; height: 1.3em; }
.jpm-game[data-game="compras"] .cp-rd-tip { margin: 0; color: var(--muted, #606B80); font-weight: 700; font-size: clamp(10px, 1.9cqw, 15px); text-align: center; }

/* fim */
.jpm-game[data-game="compras"] .cp-over-card { width: min(92%, 440px); }
.jpm-game[data-game="compras"] .cp-tip { margin: 0 0 6px; color: var(--muted, #606B80); font-weight: 700; font-size: clamp(11px, 2cqw, 15px); }

@container (max-height: 300px) {
  .jpm-game[data-game="compras"] .g-card { padding: 10px 14px; }
  .jpm-game[data-game="compras"] .g-title { font-size: 18px; margin: 2px 0; }
  .jpm-game[data-game="compras"] .g-text { margin-bottom: 8px; font-size: 11px; }
  .jpm-game[data-game="compras"] .g-results { margin: 4px 0; }
  .jpm-game[data-game="compras"] .g-num { font-size: 18px; }
  .jpm-game[data-game="compras"] .g-stars { font-size: 20px; margin: 0 0 2px; }
  .jpm-game[data-game="compras"] .g-best { margin-bottom: 6px; }
  .jpm-game[data-game="compras"] .g-btn { min-height: 36px; padding: 0 14px; font-size: 13px; }
  .jpm-game[data-game="compras"] .cp-tip { display: none; }
  .jpm-game[data-game="compras"] .cp-lv-grid { grid-template-columns: repeat(6, 1fr); gap: 4px; }
  .jpm-game[data-game="compras"] .cp-lv { min-height: 44px; }
  .jpm-game[data-game="compras"] .cp-lv-ics { display: none; }
}

@container (max-width: 520px) {
  .jpm-game[data-game="compras"] .cp-hud { --cp-chip: 23px; }
  .jpm-game[data-game="compras"] .cp-list { gap: 3px; padding: 3px; max-width: 58cqw; }
  .jpm-game[data-game="compras"] .cp-right { flex-wrap: nowrap; gap: 4px; }
  .jpm-game[data-game="compras"] .cp-right .g-chip { font-size: 11px; padding: 3px 7px 3px 4px; gap: 3px; }
  .jpm-game[data-game="compras"] .cp-n { font-size: 8px; right: -3px; bottom: -3px; }
  .jpm-game[data-game="compras"] .cp-goal { top: 38px; }
  .jpm-game[data-game="compras"] .cp-cart { max-height: calc(100% - var(--cp-btn) - 22px); bottom: calc(var(--cp-btn) + 12px); padding: 6px 8px; }
  .jpm-game[data-game="compras"] .cp-cart-tip { display: none; }
  .jpm-game[data-game="compras"] .cp-cart-list { margin-top: 4px; gap: 4px; }
  .jpm-game[data-game="compras"] .cp-ci { min-height: 44px; padding: 2px; }
@keyframes compras-ok { from { transform: translate(-50%, -50%) scale(0); } 70% { transform: translate(-50%, -50%) scale(1.2); } to { transform: translate(-50%, -50%) scale(1); } }
@keyframes compras-bump { 0% { transform: scale(1); } 40% { transform: scale(1.25); } 100% { transform: scale(1); } }
@keyframes compras-shake { 0%, 100% { transform: translateX(0); } 20% { transform: translateX(-4px); } 40% { transform: translateX(4px); } 60% { transform: translateX(-3px); } 80% { transform: translateX(3px); } }
@keyframes compras-flash { 0% { transform: translateX(-50%) scale(1.12); background: rgba(255, 107, 92, .95); } 100% { transform: translateX(-50%) scale(1); } }
@keyframes compras-rise { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) {
  .jpm-game[data-game="compras"] .cp-item, .jpm-game[data-game="compras"] .cp-ok, .jpm-game[data-game="compras"] .cp-goal, .jpm-game[data-game="compras"] .cp-cart, .jpm-game[data-game="compras"] .cp-rd-card, .jpm-game[data-game="compras"] .cp-wallet { animation: none; }
}
