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

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

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

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

/* jogo */
.jpm-game[data-game="quebra-cabeca"] { --g-accent: #FF6868; --qc-navy: #26306B; --qc-glass: rgba(26, 30, 72, .66); }
.jpm-game[data-game="quebra-cabeca"] .g-chip { background: var(--qc-glass); }

/* HUD */
.jpm-game[data-game="quebra-cabeca"] .qc-hud { gap: 6px; padding: 8px 10px; align-items: flex-start; flex-wrap: nowrap; }
.jpm-game[data-game="quebra-cabeca"] .qc-lv { pointer-events: auto; border: 0; cursor: pointer; }
.jpm-game[data-game="quebra-cabeca"] .qc-lv-ico { display: inline-grid; width: 1.2em; height: 1.2em; color: #FFD43B; }
.jpm-game[data-game="quebra-cabeca"] .qc-lv-ico svg { width: 100%; height: 100%; }
.jpm-game[data-game="quebra-cabeca"] .qc-more { width: .9em; height: .9em; opacity: .8; }
.jpm-game[data-game="quebra-cabeca"] .qc-hstars { gap: 1px; padding: 6px 9px; }
.jpm-game[data-game="quebra-cabeca"] .qc-hstar { width: 1.05em; height: 1.05em; color: rgba(255, 255, 255, .28); transition: color .3s; }
.jpm-game[data-game="quebra-cabeca"] .qc-hstar.is-on { color: #FFD43B; }
.jpm-game[data-game="quebra-cabeca"] .qc-combo { background: #FF8A3D; gap: 4px; animation: quebra-cabeca-bump .35s ease-out; }
.jpm-game[data-game="quebra-cabeca"] .qc-tools { margin-left: auto; display: flex; gap: 6px; pointer-events: none; }
.jpm-game[data-game="quebra-cabeca"] .qc-tool { pointer-events: auto; position: relative; display: grid; place-items: center; width: clamp(44px, 8.4cqw, 60px); height: clamp(44px, 8.4cqw, 60px); padding: 0; border: 0; border-radius: 16px; background: var(--qc-glass); color: #fff; box-shadow: 0 4px 12px rgba(20, 20, 50, .25); transition: transform .12s, opacity .2s; touch-action: manipulation; }
.jpm-game[data-game="quebra-cabeca"] .qc-tool svg { width: 58%; height: 58%; }
.jpm-game[data-game="quebra-cabeca"] .qc-tool:active { transform: scale(.93); }
.jpm-game[data-game="quebra-cabeca"] .qc-tool--hint { background: #E8A400; }
.jpm-game[data-game="quebra-cabeca"] .qc-tool--hint.is-wait { opacity: .45; }
.jpm-game[data-game="quebra-cabeca"] .qc-tool--rot { background: #7B5CFF; }
.jpm-game[data-game="quebra-cabeca"] .qc-peek { width: clamp(58px, 11.2cqw, 80px); background: #fff; overflow: hidden; box-shadow: 0 0 0 3px #fff, 0 4px 12px rgba(20, 20, 50, .3); }
.jpm-game[data-game="quebra-cabeca"] .qc-thumb { position: absolute; inset: 0; width: 100%; height: 100%; border-radius: 14px; }
.jpm-game[data-game="quebra-cabeca"] .qc-eye { position: absolute; right: 3px; bottom: 3px; display: grid; place-items: center; width: 42%; height: 42%; border-radius: 50%; background: rgba(26, 30, 72, .72); }
.jpm-game[data-game="quebra-cabeca"] .qc-eye svg { width: 70%; height: 70%; }

/* abertura */
.jpm-game[data-game="quebra-cabeca"] .qc-intro .g-card { width: min(44%, 380px); }
.jpm-game[data-game="quebra-cabeca"] .qc-row { margin-top: 10px; }
.jpm-game[data-game="quebra-cabeca"] .qc-row .g-btn--ghost { min-height: 44px; padding: 0 18px; font-size: clamp(13px, 2.2cqw, 16px); }

/* preparação da fase: faixa em cima, a imagem pronta continua à vista */
.jpm-game[data-game="quebra-cabeca"] .qc-ready { align-content: space-between; justify-items: center; padding: 8px 10px clamp(6px, 2cqh, 14px); background: linear-gradient(rgba(26, 30, 72, .42), rgba(26, 30, 72, 0) 34%, rgba(26, 30, 72, 0) 80%, rgba(26, 30, 72, .3)); }
.jpm-game[data-game="quebra-cabeca"] .qc-banner { display: grid; justify-items: center; gap: 6px; }
.jpm-game[data-game="quebra-cabeca"] .qc-level { margin: 0; padding: .2em .9em; border-radius: 999px; background: #fff; color: var(--qc-navy); font-weight: 900; font-size: clamp(13px, 2.6cqw, 22px); box-shadow: 0 6px 16px rgba(20, 20, 50, .2); text-align: center; }
.jpm-game[data-game="quebra-cabeca"] .qc-level span:first-child { color: var(--g-accent); }
.jpm-game[data-game="quebra-cabeca"] .qc-step { padding: 5px 11px 5px 7px; background: var(--qc-glass); }
.jpm-game[data-game="quebra-cabeca"] .qc-step svg { width: 1.3em; height: 1.3em; flex: none; }
.jpm-game[data-game="quebra-cabeca"] .qc-step.is-warn { background: #FF6B6B; }
.jpm-game[data-game="quebra-cabeca"] .qc-step.is-new { background: #7B5CFF; box-shadow: 0 0 0 3px #fff; }
.jpm-game[data-game="quebra-cabeca"] .qc-ready-tip { margin: 0; padding: .3em 1em; border-radius: 999px; background: var(--qc-glass); color: #fff; font-weight: 800; font-size: clamp(12px, 2.3cqw, 18px); text-align: center; }

/* fim */
.jpm-game[data-game="quebra-cabeca"] .qc-over { background: linear-gradient(90deg, rgba(26, 30, 72, 0) 30%, rgba(26, 30, 72, .4)); justify-items: end; padding-right: 3cqw; }
.jpm-game[data-game="quebra-cabeca"] .qc-over-card { width: min(40%, 380px); max-height: calc(100cqh - 16px); overflow-y: auto; }
.jpm-game[data-game="quebra-cabeca"] .qc-link { margin-top: 8px; padding: 6px 10px; border: 0; background: none; color: var(--qc-navy); font-weight: 800; text-decoration: underline; text-underline-offset: 3px; }

/* fases */
.jpm-game[data-game="quebra-cabeca"] .qc-lv-card { width: min(96%, 860px); max-height: calc(100cqh - 20px); display: flex; flex-direction: column; padding: clamp(10px, 2.2cqw, 20px); }
.jpm-game[data-game="quebra-cabeca"] .qc-lv-head { display: flex; align-items: center; justify-content: center; gap: 12px; }
.jpm-game[data-game="quebra-cabeca"] .qc-lv-head .g-title { margin: 0; }
.jpm-game[data-game="quebra-cabeca"] .qc-lv-total { display: inline-flex; align-items: center; gap: 4px; padding: .2em .7em; border-radius: 999px; background: #FFF4E0; color: #B87800; font-weight: 900; }
.jpm-game[data-game="quebra-cabeca"] .qc-lv-total svg { width: 1.1em; height: 1.1em; color: #FFC928; }
.jpm-game[data-game="quebra-cabeca"] .qc-lv-grid { position: relative; flex: 1; min-height: 0; overflow-y: auto; display: grid; grid-template-columns: repeat(auto-fill, minmax(clamp(96px, 16cqw, 128px), 1fr)); gap: 8px; margin-top: 8px; padding: 4px; overscroll-behavior: contain; }
.jpm-game[data-game="quebra-cabeca"] .qc-lvb { --qc-c: #5BBF4A; display: grid; gap: 3px; justify-items: center; padding: 7px 6px 6px; border: 0; border-radius: 14px; background: var(--bg, #F3F6FA); box-shadow: inset 0 0 0 2px var(--line, #E3E8EF); }
.jpm-game[data-game="quebra-cabeca"] .qc-lvb.is-next { box-shadow: inset 0 0 0 3px var(--g-accent); background: #FFF1F1; }
.jpm-game[data-game="quebra-cabeca"] .qc-lvb.is-locked { opacity: .55; cursor: default; }
.jpm-game[data-game="quebra-cabeca"] .qc-lvtop { display: flex; align-items: center; gap: 4px; }
.jpm-game[data-game="quebra-cabeca"] .qc-lvn { display: grid; place-items: center; width: 1.9em; height: 1.9em; border-radius: 9px; background: var(--qc-c); color: #fff; font-weight: 900; }
.jpm-game[data-game="quebra-cabeca"] .qc-lvn svg { width: 1em; height: 1em; }
.jpm-game[data-game="quebra-cabeca"] .qc-lvb.is-locked .qc-lvn { background: #9AA3B5; }
.jpm-game[data-game="quebra-cabeca"] .qc-lvic { display: flex; gap: 1px; color: var(--qc-c); }
.jpm-game[data-game="quebra-cabeca"] .qc-lvic svg { width: clamp(13px, 2.3cqw, 18px); height: clamp(13px, 2.3cqw, 18px); }
.jpm-game[data-game="quebra-cabeca"] .qc-lvname { font-size: clamp(10px, 1.7cqw, 13px); font-weight: 800; line-height: 1.15; min-height: 2.3em; display: grid; place-items: center; text-align: center; }
.jpm-game[data-game="quebra-cabeca"] .qc-lvsz { font-size: clamp(9px, 1.5cqw, 11px); font-weight: 700; color: var(--muted, #606B80); }
.jpm-game[data-game="quebra-cabeca"] .qc-lvstars { display: flex; gap: 1px; }
.jpm-game[data-game="quebra-cabeca"] .qc-lvstar { width: clamp(12px, 2.2cqw, 17px); height: clamp(12px, 2.2cqw, 17px); color: #D5DBE5; }
.jpm-game[data-game="quebra-cabeca"] .qc-lvstar.is-on { color: #FFC928; }

@keyframes quebra-cabeca-bump { from { transform: scale(1.3); } to { transform: scale(1); } }

@container (max-width: 700px) {
  .jpm-game[data-game="quebra-cabeca"] .qc-over { justify-items: center; padding-right: 12px; background: rgba(26, 30, 72, .3); }
  .jpm-game[data-game="quebra-cabeca"] .qc-over-card { width: min(94%, 420px); }
}
@container (max-width: 560px) {
  .jpm-game[data-game="quebra-cabeca"] .qc-intro .g-card { width: min(92%, 400px); }
  .jpm-game[data-game="quebra-cabeca"] .qc-hstars { display: none; }
}
@container (max-width: 480px) {
  .jpm-game[data-game="quebra-cabeca"] .qc-combo { display: none; }
}
@container (max-height: 460px) {
  .jpm-game[data-game="quebra-cabeca"] .qc-hud { padding: 5px 6px; gap: 4px; }
  .jpm-game[data-game="quebra-cabeca"] .g-chip { padding: 3px 9px 3px 6px; font-size: clamp(11px, 2.2cqw, 15px); }
  .jpm-game[data-game="quebra-cabeca"] .qc-tool { width: 44px; height: 44px; border-radius: 13px; }
  .jpm-game[data-game="quebra-cabeca"] .qc-peek { width: 58px; }
  .jpm-game[data-game="quebra-cabeca"] .qc-tools { gap: 5px; }
  .jpm-game[data-game="quebra-cabeca"] .g-card { padding: 10px 14px; }
  .jpm-game[data-game="quebra-cabeca"] .g-title { font-size: clamp(17px, 4cqw, 26px); margin: 2px 0 4px; }
  .jpm-game[data-game="quebra-cabeca"] .g-text { margin-bottom: 8px; font-size: clamp(11px, 2cqw, 14px); }
  .jpm-game[data-game="quebra-cabeca"] .g-btn { min-height: 40px; padding: 0 18px; font-size: clamp(13px, 2.4cqw, 16px); }
  .jpm-game[data-game="quebra-cabeca"] .qc-row { margin-top: 6px; }
  .jpm-game[data-game="quebra-cabeca"] .qc-row .g-btn--ghost { min-height: 38px; }
  .jpm-game[data-game="quebra-cabeca"] .g-stars { margin: 0 0 2px; font-size: clamp(18px, 4.4cqw, 28px); }
  .jpm-game[data-game="quebra-cabeca"] .g-results { margin: 4px 0; }
  .jpm-game[data-game="quebra-cabeca"] .g-num { font-size: clamp(16px, 3.6cqw, 24px); }
  .jpm-game[data-game="quebra-cabeca"] .g-best { margin: 0 0 6px; font-size: clamp(11px, 2cqw, 14px); }
  .jpm-game[data-game="quebra-cabeca"] .qc-link { margin-top: 2px; padding: 4px; font-size: 12px; }
}
@container (max-height: 300px) {
  .jpm-game[data-game="quebra-cabeca"] .qc-hud .g-chip { padding: 2px 7px 2px 5px; font-size: 11px; gap: 3px; }
  .jpm-game[data-game="quebra-cabeca"] .qc-combo span:first-child { display: none; }
  .jpm-game[data-game="quebra-cabeca"] .g-screen { padding: 6px; }
  .jpm-game[data-game="quebra-cabeca"] .g-intro .g-text { display: none; }
  .jpm-game[data-game="quebra-cabeca"] .qc-intro .g-kicker { display: none; }
  .jpm-game[data-game="quebra-cabeca"] .qc-intro .g-btn { min-height: 36px; font-size: 13px; padding: 0 14px; }
  .jpm-game[data-game="quebra-cabeca"] .qc-intro .qc-row .g-btn--ghost { min-height: 34px; font-size: 12px; padding: 0 12px; }
  .jpm-game[data-game="quebra-cabeca"] .qc-over-card { width: min(96%, 460px); padding: 6px 10px; }
  .jpm-game[data-game="quebra-cabeca"] .qc-over-card .g-kicker { display: none; }
  .jpm-game[data-game="quebra-cabeca"] .qc-over-card .g-title { font-size: 16px; margin: 0; }
  .jpm-game[data-game="quebra-cabeca"] .g-stars { font-size: 18px; margin: 0; }
  .jpm-game[data-game="quebra-cabeca"] .g-results { margin: 0 0 2px; gap: 14px; }
  .jpm-game[data-game="quebra-cabeca"] .g-num { font-size: 15px; }
  .jpm-game[data-game="quebra-cabeca"] .g-lbl { font-size: 10px; }
  .jpm-game[data-game="quebra-cabeca"] .g-best { margin: 0 0 3px; font-size: 11px; min-height: 0; }
  .jpm-game[data-game="quebra-cabeca"] .qc-over .g-btn { min-height: 36px; font-size: 13px; padding: 0 14px; }
  .jpm-game[data-game="quebra-cabeca"] .qc-over .qc-row { margin-top: 2px; }
  .jpm-game[data-game="quebra-cabeca"] .qc-link { font-size: 11px; padding: 2px; margin-top: 0; }
  .jpm-game[data-game="quebra-cabeca"] .qc-lv-card { padding: 6px 8px; max-height: calc(100cqh - 10px); }
  .jpm-game[data-game="quebra-cabeca"] .qc-lv-head .g-title { font-size: 15px; }
  .jpm-game[data-game="quebra-cabeca"] .qc-lv-grid { grid-template-columns: repeat(auto-fill, minmax(70px, 1fr)); gap: 5px; margin-top: 4px; }
  .jpm-game[data-game="quebra-cabeca"] .qc-lvb { padding: 4px 3px; gap: 1px; }
  .jpm-game[data-game="quebra-cabeca"] .qc-lvname { min-height: 0; font-size: 10px; }
  .jpm-game[data-game="quebra-cabeca"] .qc-lvsz { display: none; }
  .jpm-game[data-game="quebra-cabeca"] .qc-lv-card .qc-row { margin-top: 4px; }
  .jpm-game[data-game="quebra-cabeca"] .qc-lv-card .g-btn { min-height: 32px; font-size: 12px; padding: 0 12px; }
  .jpm-game[data-game="quebra-cabeca"] .qc-level { font-size: 12px; }
  .jpm-game[data-game="quebra-cabeca"] .qc-step { font-size: 11px; padding: 2px 8px 2px 4px; }
  .jpm-game[data-game="quebra-cabeca"] .qc-banner { gap: 3px; }
  .jpm-game[data-game="quebra-cabeca"] .qc-ready-tip { font-size: 11px; }
  .jpm-game[data-game="quebra-cabeca"] .g-toast { font-size: 13px; top: 24%; }
}
@media (prefers-reduced-motion: reduce) {
  .jpm-game[data-game="quebra-cabeca"] .qc-combo { animation: none; }
}
