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

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

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

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

/* ==== construção ==== */
.jpm-game[data-game="construcao"] { --cs-accent: #FF8A3C; --cs-ink: #172033; --g-accent: #FF7A2F; }
.jpm-game[data-game="construcao"] .g-panel { position: absolute; z-index: 3; pointer-events: none; }

/* HUD */
.jpm-game[data-game="construcao"] .cs-hud { gap: 6px; padding: 8px 10px; }
.jpm-game[data-game="construcao"] .cs-lv { pointer-events: auto; border: 0; cursor: pointer; }
.jpm-game[data-game="construcao"] .cs-stage { gap: 6px; transition: transform .2s; }
.jpm-game[data-game="construcao"] .cs-stage.is-flash { animation: construcao-flash .9s ease-out; }
@keyframes construcao-flash { 0% { transform: scale(1); background: var(--g-glass); } 20% { transform: scale(1.12); background: #FF8A3C; } 100% { transform: scale(1); background: var(--g-glass); } }
.jpm-game[data-game="construcao"] .cs-stage-ico { display: inline-grid; width: 1.5em; height: 1.5em; place-items: center; }
.jpm-game[data-game="construcao"] .cs-stage-ico svg { width: 100%; height: 100%; }
.jpm-game[data-game="construcao"] .cs-bar { width: clamp(46px, 11cqw, 120px); }
.jpm-game[data-game="construcao"] .cs-fill { background: #8DFFA8; }
.jpm-game[data-game="construcao"] .cs-wbars { display: inline-flex; gap: 3px; align-items: flex-end; height: 1em; }
.jpm-game[data-game="construcao"] .cs-wbars i { display: block; width: 5px; border-radius: 3px; background: rgba(255, 255, 255, .28); }
.jpm-game[data-game="construcao"] .cs-wbars i:nth-child(1) { height: 40%; }
.jpm-game[data-game="construcao"] .cs-wbars i:nth-child(2) { height: 70%; }
.jpm-game[data-game="construcao"] .cs-wbars i:nth-child(3) { height: 100%; }
.jpm-game[data-game="construcao"] .cs-wbars i.is-on { background: #BFE6FF; }
.jpm-game[data-game="construcao"] .cs-time { margin-left: auto; }
.jpm-game[data-game="construcao"] .cs-wind:not([hidden]) + .cs-time { margin-left: 0; }

/* dica e setas da borda */
.jpm-game[data-game="construcao"] .cs-hint { left: 50%; top: 17%; transform: translateX(-50%); max-width: 80%; padding: .45em 1em; border-radius: 999px; background: rgba(255, 255, 255, .94); color: var(--cs-ink); font-weight: 800; font-size: clamp(11px, 2.1cqw, 17px); text-align: center; box-shadow: 0 6px 18px rgba(23, 32, 51, .16); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.jpm-game[data-game="construcao"] .cs-edge { top: 46%; display: flex; align-items: center; gap: 2px; padding: .35em .7em; border-radius: 999px; background: #FFD43B; color: var(--cs-ink); font-weight: 900; font-size: clamp(12px, 2.3cqw, 18px); box-shadow: 0 6px 16px rgba(23, 32, 51, .2); animation: construcao-nudge 1s ease-in-out infinite; }
.jpm-game[data-game="construcao"] .cs-edge svg { width: 1.4em; height: 1.4em; }
.jpm-game[data-game="construcao"] .cs-edge--l { left: 10px; }
.jpm-game[data-game="construcao"] .cs-edge--r { right: 10px; --dir: 1; }
@keyframes construcao-nudge { 0%, 100% { translate: 0 0; } 50% { translate: calc(var(--dir, -1) * 6px) 0; } }

/* anel de arrastar (mouse e dedo na tela) */
.jpm-game[data-game="construcao"] .cs-drag { width: 104px; height: 104px; margin: -52px 0 0 -52px; border-radius: 50%; border: 3px solid rgba(255, 255, 255, .8); background: rgba(23, 27, 52, .18); display: grid; place-items: center; }
.jpm-game[data-game="construcao"] .cs-drag-knob { width: 44px; height: 44px; border-radius: 50%; background: rgba(255, 255, 255, .92); box-shadow: 0 4px 10px rgba(23, 32, 51, .25); }

/* controles de toque */
.jpm-game[data-game="construcao"] .cs-touch { align-items: flex-end; }
.jpm-game[data-game="construcao"] .cs-joy { pointer-events: auto; position: relative; width: clamp(104px, 25cqw, 160px); height: clamp(104px, 25cqw, 160px); border-radius: 50%; background: rgba(23, 27, 52, .38); box-shadow: inset 0 0 0 3px rgba(255, 255, 255, .5); display: grid; place-items: center; touch-action: none; color: rgba(255, 255, 255, .85); }
.jpm-game[data-game="construcao"] .cs-joy.is-on { background: rgba(255, 122, 47, .45); }
.jpm-game[data-game="construcao"] .cs-joy-arrows { position: absolute; inset: 0; width: 100%; height: 100%; }
.jpm-game[data-game="construcao"] .cs-joy-knob { width: 44%; height: 44%; border-radius: 50%; background: #fff; box-shadow: 0 4px 10px rgba(23, 32, 51, .3); transition: transform .06s; }
.jpm-game[data-game="construcao"] .cs-hoist { flex-direction: column; gap: 8px; }
.jpm-game[data-game="construcao"] .cs-hoist .g-tbtn { display: flex; flex-direction: column; gap: 0; line-height: 1; }
.jpm-game[data-game="construcao"] .cs-hoist .g-tbtn svg { width: 46%; height: 46%; }
.jpm-game[data-game="construcao"] .cs-hoist .g-tbtn span { font-size: clamp(9px, 1.8cqw, 13px); }
.jpm-game[data-game="construcao"] .g-tbtn--action { background: rgba(255, 122, 47, .85); }
.jpm-game[data-game="construcao"] .g-tbtn.is-on, .jpm-game[data-game="construcao"] .g-tbtn:active { background: rgba(255, 122, 47, .95); }

/* telas */
.jpm-game[data-game="construcao"] .cs-row { margin-top: 10px; }
.jpm-game[data-game="construcao"] .cs-intro .g-title { color: #E8641E; }
.jpm-game[data-game="construcao"] .cs-ready { align-content: center; justify-items: center; gap: 10px; }
.jpm-game[data-game="construcao"] .cs-level { margin: 0; padding: .3em 1em; border-radius: 999px; background: rgba(23, 27, 52, .78); color: #fff; font-weight: 900; font-size: clamp(16px, 3.4cqw, 28px); }
.jpm-game[data-game="construcao"] .cs-plan { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 4px; max-width: 92%; }
.jpm-game[data-game="construcao"] .cs-step { display: inline-flex; align-items: center; gap: 4px; padding: 4px 10px 4px 6px; border-radius: 999px; background: #fff; color: var(--cs-ink); font-size: clamp(11px, 2cqw, 15px); box-shadow: 0 4px 12px rgba(23, 32, 51, .18); }
.jpm-game[data-game="construcao"] .cs-step svg { width: 1.6em; height: 1.6em; }
.jpm-game[data-game="construcao"] .cs-arrow { color: #fff; font-style: normal; font-weight: 900; font-size: 1.4em; text-shadow: 0 2px 4px rgba(23, 32, 51, .4); }
.jpm-game[data-game="construcao"] .cs-touchhow { display: none; }
.jpm-game[data-game="construcao"] .cs-tip { margin: 0 0 6px; font-weight: 700; color: var(--muted, #606B80); font-size: clamp(12px, 2cqw, 15px); }
.jpm-game[data-game="construcao"] .cs-end { margin: 0 0 8px; font-weight: 900; color: #22A35A; }
.jpm-game[data-game="construcao"] .cs-link { margin-top: 8px; border: 0; background: none; color: var(--muted, #606B80); font-weight: 800; text-decoration: underline; min-height: 32px; }
.jpm-game[data-game="construcao"] .cs-over-card { max-height: calc(100cqh - 20px); overflow-y: auto; }
.jpm-game[data-game="construcao"] .cs-gridbtn { padding: 0 14px; display: inline-grid; place-items: center; }
.jpm-game[data-game="construcao"] .cs-gridbtn svg { width: 1.2em; height: 1.2em; }

/* tela de fases */
.jpm-game[data-game="construcao"] .cs-levels { background: rgba(23, 27, 52, .4); }
.jpm-game[data-game="construcao"] .cs-lv-card { width: min(96%, 820px); max-height: calc(100cqh - 24px); display: flex; flex-direction: column; padding: clamp(10px, 2.2cqw, 20px); }
.jpm-game[data-game="construcao"] .cs-lv-head { display: flex; align-items: center; justify-content: center; gap: 12px; }
.jpm-game[data-game="construcao"] .cs-lv-head .g-title { margin: 0; }
.jpm-game[data-game="construcao"] .cs-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="construcao"] .cs-lv-total svg { width: 1.1em; height: 1.1em; color: #FFC928; }
.jpm-game[data-game="construcao"] .cs-lv-grid { flex: 1; min-height: 0; overflow-y: auto; display: grid; grid-template-columns: repeat(auto-fill, minmax(clamp(96px, 20cqw, 140px), 1fr)); gap: 8px; margin-top: 8px; padding: 4px; overscroll-behavior: contain; }
.jpm-game[data-game="construcao"] .cs-lvb { position: relative; display: grid; gap: 3px; justify-items: center; padding: 8px 6px 6px; border: 0; border-radius: 14px; background: var(--bg, #F3F6FA); box-shadow: inset 0 0 0 2px var(--line, #E3E8EF); border-top: 5px solid var(--ch, #FFC4A3); }
.jpm-game[data-game="construcao"] .cs-ch0 { --ch: #FFB48A; }
.jpm-game[data-game="construcao"] .cs-ch1 { --ch: #7FDDA0; }
.jpm-game[data-game="construcao"] .cs-ch2 { --ch: #B9A2FF; }
.jpm-game[data-game="construcao"] .cs-ch3 { --ch: #FFC94D; }
.jpm-game[data-game="construcao"] .cs-lvb.is-next { box-shadow: inset 0 0 0 3px var(--g-accent); background: #FFF1E6; }
.jpm-game[data-game="construcao"] .cs-lvb.is-locked { opacity: .5; }
.jpm-game[data-game="construcao"] .cs-lvn { display: grid; place-items: center; width: 1.9em; height: 1.9em; border-radius: 50%; background: var(--g-accent); color: #fff; font-weight: 900; }
.jpm-game[data-game="construcao"] .cs-lvb.is-locked .cs-lvn { background: #9AA3B5; }
.jpm-game[data-game="construcao"] .cs-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="construcao"] .cs-lvstars { display: flex; gap: 1px; }
.jpm-game[data-game="construcao"] .cs-lvstars .g-star { width: clamp(12px, 2.2cqw, 17px); height: clamp(12px, 2.2cqw, 17px); color: #D5DBE5; }
.jpm-game[data-game="construcao"] .cs-lvstars .g-star.is-on { color: #FFC928; }

@media (pointer: coarse) {
  .jpm-game[data-game="construcao"] .cs-keys { display: none; }
  .jpm-game[data-game="construcao"] .cs-touchhow { display: flex; }
  .jpm-game[data-game="construcao"] .cs-hint { top: 15%; }
}
@container (max-width: 520px) {
  .jpm-game[data-game="construcao"] .cs-hud { gap: 4px; padding: 5px 6px; }
  .jpm-game[data-game="construcao"] .cs-hud .g-chip { padding: 3px 8px 3px 5px; font-size: 11px; gap: 4px; }
  .jpm-game[data-game="construcao"] .cs-bar { width: 34px; }
  .jpm-game[data-game="construcao"] .cs-hint { top: 19%; font-size: 10px; padding: .35em .8em; max-width: 64%; }
  .jpm-game[data-game="construcao"] .cs-edge { font-size: 11px; top: 40%; }
  .jpm-game[data-game="construcao"] .cs-touch { padding: 6px; }
  .jpm-game[data-game="construcao"] .cs-joy { width: 84px; height: 84px; }
  .jpm-game[data-game="construcao"] .cs-hoist { gap: 4px; }
  .jpm-game[data-game="construcao"] .cs-hoist .g-tbtn { width: 52px; height: 52px; }
  .jpm-game[data-game="construcao"] .cs-hoist .g-tbtn span { font-size: 8px; }
  .jpm-game[data-game="construcao"] .g-card { padding: 10px 12px; }
  .jpm-game[data-game="construcao"] .g-title { font-size: 18px; margin: 2px 0 4px; }
  .jpm-game[data-game="construcao"] .g-text { font-size: 11px; margin-bottom: 8px; }
  .jpm-game[data-game="construcao"] .g-btn { min-height: 38px; padding: 0 16px; font-size: 13px; }
  .jpm-game[data-game="construcao"] .g-results { margin: 4px 0; }
  .jpm-game[data-game="construcao"] .g-num { font-size: 17px; }
  .jpm-game[data-game="construcao"] .g-stars { font-size: 20px; margin: 0 0 2px; }
  .jpm-game[data-game="construcao"] .cs-tip { font-size: 10px; margin-bottom: 2px; }
  .jpm-game[data-game="construcao"] .g-best { margin-bottom: 4px; font-size: 11px; }
  .jpm-game[data-game="construcao"] .cs-row { margin-top: 4px; }
  .jpm-game[data-game="construcao"] .cs-link { margin-top: 2px; min-height: 26px; font-size: 11px; }
  .jpm-game[data-game="construcao"] .cs-lv-card { max-height: calc(100cqh - 10px); padding: 8px; }
  .jpm-game[data-game="construcao"] .cs-lv-head .g-title { font-size: 15px; }
  .jpm-game[data-game="construcao"] .cs-lv-grid { grid-template-columns: repeat(auto-fill, minmax(78px, 1fr)); gap: 5px; margin-top: 4px; }
  .jpm-game[data-game="construcao"] .cs-lvb { padding: 4px; gap: 1px; }
  .jpm-game[data-game="construcao"] .cs-lvname { font-size: 9px; min-height: 2.2em; }
  .jpm-game[data-game="construcao"] .cs-level { font-size: 14px; }
  .jpm-game[data-game="construcao"] .cs-step { font-size: 10px; padding: 2px 7px 2px 4px; }
  .jpm-game[data-game="construcao"] .g-howto-item { font-size: 10px; }
}
@container (max-height: 480px) {
  .jpm-game[data-game="construcao"] .cs-over-card { padding: 10px 16px; }
  .jpm-game[data-game="construcao"] .cs-over-card .g-title { margin: 2px 0; font-size: clamp(18px, 4cqw, 26px); }
  .jpm-game[data-game="construcao"] .cs-over-card .g-stars { margin: 0; font-size: clamp(18px, 4.4cqw, 28px); }
  .jpm-game[data-game="construcao"] .cs-over-card .g-results { margin: 4px 0; }
  .jpm-game[data-game="construcao"] .cs-over-card .g-num { font-size: clamp(16px, 3.6cqw, 24px); }
  .jpm-game[data-game="construcao"] .cs-tip { margin-bottom: 2px; }
  .jpm-game[data-game="construcao"] .cs-over-card .g-best { margin: 0 0 6px; }
  .jpm-game[data-game="construcao"] .cs-over-card .cs-row { margin-top: 2px; }
  .jpm-game[data-game="construcao"] .cs-link { margin-top: 0; min-height: 28px; }
}
@media (prefers-reduced-motion: reduce) {
  .jpm-game[data-game="construcao"] .cs-edge, .jpm-game[data-game="construcao"] .cs-stage.is-flash { animation: none; }
}
