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

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

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

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

/* jogo */
.jpm-game[data-game="terra-em-movimento"] { --tm-panel: rgba(18, 22, 56, .8); --tm-hud: clamp(36px, 6.2cqw, 50px); --tm-gap: clamp(6px, 1.3cqw, 12px); background: #0E1433; }
.jpm-game[data-game="terra-em-movimento"] .g-canvas { cursor: grab; }
.jpm-game[data-game="terra-em-movimento"] .g-canvas:active { cursor: grabbing; }

/* HUD: menu, objetivo da missão, grade */
.jpm-game[data-game="terra-em-movimento"] .tm-hud { flex-wrap: nowrap; align-items: flex-start; gap: var(--tm-gap); padding: var(--tm-gap); }
.jpm-game[data-game="terra-em-movimento"] .tm-hbtn { pointer-events: auto; flex: none; width: var(--tm-hud); height: var(--tm-hud); border: 0; border-radius: 14px; background: var(--g-glass); color: var(--surface, #fff); display: grid; place-items: center; }
.jpm-game[data-game="terra-em-movimento"] .tm-hbtn svg { width: 56%; height: 56%; }
.jpm-game[data-game="terra-em-movimento"] .tm-hbtn.is-off { opacity: .5; }
.jpm-game[data-game="terra-em-movimento"] .tm-hbtn:disabled { opacity: .3; cursor: default; }
.jpm-game[data-game="terra-em-movimento"] .tm-goalbox { flex: 1; min-width: 0; min-height: var(--tm-hud); display: flex; align-items: center; gap: .6em; padding: .3em .8em .3em .35em; border-radius: 16px; background: var(--g-glass); color: var(--surface, #fff); }
.jpm-game[data-game="terra-em-movimento"] .tm-mnum { flex: none; min-width: 2.1em; height: 2.1em; padding: 0 .3em; border-radius: var(--r-pill, 999px); background: var(--g-accent); display: grid; place-items: center; font-weight: 900; font-size: clamp(11px, 1.9cqw, 16px); }
.jpm-game[data-game="terra-em-movimento"] .tm-goal { margin: 0; font-weight: 800; font-size: clamp(11px, 2.05cqw, 18px); line-height: 1.2; }
.jpm-game[data-game="terra-em-movimento"] .tm-steps { flex: none; margin-left: auto; padding: .15em .6em; border-radius: var(--r-pill, 999px); background: rgba(255, 255, 255, .16); font-weight: 900; font-size: clamp(10px, 1.7cqw, 14px); }

/* chips de informação (relógio, data, distância, ponto) */
.jpm-game[data-game="terra-em-movimento"] .tm-info { position: absolute; left: var(--tm-gap); top: calc(var(--tm-hud) + var(--tm-gap) * 2); z-index: 2; display: flex; flex-direction: column; align-items: flex-start; gap: 5px; pointer-events: none; }
.jpm-game[data-game="terra-em-movimento"] .tm-chip { font-size: clamp(11px, 1.85cqw, 16px); padding: 4px 10px 4px 6px; }
.jpm-game[data-game="terra-em-movimento"] .tm-chip .g-ico { width: 1.35em; height: 1.35em; }

/* painel das estações */
.jpm-game[data-game="terra-em-movimento"] .tm-season { position: absolute; right: var(--tm-gap); top: calc(var(--tm-hud) + var(--tm-gap) * 2); z-index: 2; width: clamp(128px, 26cqw, 250px); padding: .5em .55em .55em; border-radius: 16px; background: var(--tm-panel); color: var(--surface, #fff); font-size: clamp(9.5px, 1.65cqw, 14px); pointer-events: none; }
.jpm-game[data-game="terra-em-movimento"] .tm-shead { margin: 0 0 .2em; font-weight: 800; opacity: .75; font-size: .92em; }
.jpm-game[data-game="terra-em-movimento"] .tm-hemi { margin-top: .35em; padding: .3em .45em .4em; border-radius: 10px; background: rgba(255, 255, 255, .07); border-left: 4px solid var(--tm-sc, #fff); }
.jpm-game[data-game="terra-em-movimento"] .tm-hname { display: flex; align-items: center; gap: .35em; font-weight: 800; }
.jpm-game[data-game="terra-em-movimento"] .tm-sico { display: inline-grid; width: 1.5em; height: 1.5em; }
.jpm-game[data-game="terra-em-movimento"] .tm-sico svg { width: 100%; height: 100%; }
.jpm-game[data-game="terra-em-movimento"] .tm-sname { margin-left: auto; font-weight: 900; color: var(--tm-sc, #fff); }
.jpm-game[data-game="terra-em-movimento"] .tm-hrow { display: flex; align-items: center; gap: .4em; margin: .15em 0; }
.jpm-game[data-game="terra-em-movimento"] .tm-rays { flex: none; width: 3.4em; height: 1.95em; }
.jpm-game[data-game="terra-em-movimento"] .tm-rlbl { font-weight: 700; line-height: 1.1; }
.jpm-game[data-game="terra-em-movimento"] .tm-day { display: flex; align-items: center; gap: .4em; }
.jpm-game[data-game="terra-em-movimento"] .tm-dbar { position: relative; flex: 1; height: .65em; border-radius: var(--r-pill, 999px); background: #2B3166; overflow: hidden; }
.jpm-game[data-game="terra-em-movimento"] .tm-dbar::after { content: ""; position: absolute; left: 50%; top: 0; bottom: 0; width: 2px; background: rgba(255, 255, 255, .7); }
.jpm-game[data-game="terra-em-movimento"] .tm-dfill { position: absolute; inset: 0 auto 0 0; width: 50%; border-radius: inherit; background: var(--yellow, #FFD43B); transition: width .15s linear; }
.jpm-game[data-game="terra-em-movimento"] .tm-dlbl { flex: none; font-weight: 800; font-variant-numeric: tabular-nums; }

/* pergunta de apoio e escolha de hemisférios */
.jpm-game[data-game="terra-em-movimento"] .tm-ask { position: absolute; left: 50%; bottom: var(--tm-gap); z-index: 3; transform: translateX(-50%); width: min(76%, 660px); padding: .7em .8em .8em; border-radius: 18px; background: var(--surface, #fff); color: var(--ink, #172033); text-align: center; box-shadow: var(--shadow2, 0 18px 44px rgba(23, 32, 51, .16)); animation: terra-em-movimento-rise .3s ease-out; }
.jpm-game[data-game="terra-em-movimento"] .tm-q { margin: 0 0 .55em; font-weight: 900; font-size: clamp(12px, 2.2cqw, 19px); line-height: 1.2; }
.jpm-game[data-game="terra-em-movimento"] .tm-opts { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; }
.jpm-game[data-game="terra-em-movimento"] .tm-opt { min-height: clamp(40px, 7.6cqw, 52px); padding: 0 1em; border: 0; border-radius: var(--r-pill, 999px); background: var(--bg, #F3F6FA); box-shadow: inset 0 0 0 2px var(--line, #E3E8EF); font-weight: 800; font-size: clamp(12px, 2.05cqw, 17px); transition: transform .12s; }
.jpm-game[data-game="terra-em-movimento"] .tm-opt:active { transform: scale(.96); }
.jpm-game[data-game="terra-em-movimento"] .tm-opt.is-ok { background: var(--green, #46D68C); color: var(--surface, #fff); box-shadow: none; }
.jpm-game[data-game="terra-em-movimento"] .tm-opt.is-bad { background: var(--coral, #FF6868); color: var(--surface, #fff); box-shadow: none; opacity: .7; }
.jpm-game[data-game="terra-em-movimento"] .tm-pick { position: absolute; left: 50%; bottom: var(--tm-gap); z-index: 3; transform: translateX(-50%); display: flex; gap: clamp(10px, 3cqw, 26px); padding: 6px; border-radius: 20px; background: var(--tm-panel); }
.jpm-game[data-game="terra-em-movimento"] .tm-pgroup { display: flex; gap: 6px; }
.jpm-game[data-game="terra-em-movimento"] .tm-tog { width: clamp(52px, 10cqw, 78px); height: clamp(52px, 10cqw, 70px); border: 0; border-radius: 14px; background: rgba(255, 255, 255, .12); color: var(--surface, #fff); display: grid; place-content: center; font-weight: 900; font-size: clamp(17px, 3.2cqw, 26px); line-height: 1; }
.jpm-game[data-game="terra-em-movimento"] .tm-tog small { display: block; margin-top: 2px; font-size: .44em; font-weight: 800; opacity: .85; }
.jpm-game[data-game="terra-em-movimento"] .tm-tog[aria-pressed="true"] { background: var(--g-accent); box-shadow: inset 0 0 0 3px var(--surface, #fff); }

/* balão de explicação (erro em 1 frase / dica) */
.jpm-game[data-game="terra-em-movimento"] .tm-bubble { position: absolute; left: 50%; bottom: calc(var(--tm-gap) + 6px); z-index: 3; transform: translateX(-50%); width: max-content; max-width: min(62%, 560px); padding: .55em 1em; border-radius: 16px; color: var(--surface, #fff); font-weight: 800; font-size: clamp(11.5px, 2cqw, 17px); line-height: 1.25; text-align: center; pointer-events: none; box-shadow: 0 10px 24px rgba(10, 12, 30, .35); animation: terra-em-movimento-rise .25s ease-out; }
.jpm-game[data-game="terra-em-movimento"] .tm-bubble.is-bad { background: #E5536B; }
.jpm-game[data-game="terra-em-movimento"] .tm-bubble.is-good { background: #23A866; }
.jpm-game[data-game="terra-em-movimento"] .tm-bubble.is-info { background: var(--g-accent); }

/* conferir */
.jpm-game[data-game="terra-em-movimento"] .tm-check { position: absolute; right: var(--tm-gap); bottom: var(--tm-gap); z-index: 3; display: inline-flex; align-items: center; gap: .4em; min-height: clamp(48px, 9cqw, 64px); padding: 0 1.1em 0 .9em; border: 0; border-radius: var(--r-pill, 999px); background: var(--g-accent); color: var(--surface, #fff); font-weight: 900; font-size: clamp(14px, 2.5cqw, 21px); box-shadow: 0 8px 20px rgba(10, 12, 30, .4); transition: transform .12s; }
.jpm-game[data-game="terra-em-movimento"] .tm-check svg { width: 1.3em; height: 1.3em; }
.jpm-game[data-game="terra-em-movimento"] .tm-check:active { transform: scale(.95); }

/* mãozinha do gesto */
.jpm-game[data-game="terra-em-movimento"] .tm-hand { position: absolute; z-index: 3; width: clamp(34px, 6.5cqw, 56px); height: clamp(34px, 6.5cqw, 56px); margin: -8% 0 0 -24%; pointer-events: none; filter: drop-shadow(0 4px 6px rgba(0, 0, 0, .35)); animation: terra-em-movimento-swipe 1.7s ease-in-out infinite; }
.jpm-game[data-game="terra-em-movimento"] .tm-hand svg { width: 100%; height: 100%; }
.jpm-game[data-game="terra-em-movimento"] .tm-hand.is-tap { animation-name: terra-em-movimento-tap; }
@keyframes terra-em-movimento-swipe { 0% { transform: translate(0, 0); opacity: 0; } 15% { opacity: 1; transform: translate(0, 0); } 70% { opacity: 1; transform: translate(var(--tm-mx, 60px), var(--tm-my, 0)); } 100% { opacity: 0; transform: translate(var(--tm-mx, 60px), var(--tm-my, 0)); } }
@keyframes terra-em-movimento-tap { 0%, 100% { transform: scale(1); opacity: .9; } 45% { transform: scale(.82) translateY(6px); opacity: 1; } }
@keyframes terra-em-movimento-rise { from { opacity: 0; transform: translate(-50%, 8px); } to { opacity: 1; transform: translate(-50%, 0); } }
@keyframes terra-em-movimento-in { from { opacity: 0; transform: scale(.92); } to { opacity: 1; transform: scale(1); } }

/* abertura */
.jpm-game[data-game="terra-em-movimento"] .tm-intro { background: linear-gradient(90deg, rgba(10, 14, 40, .62), rgba(10, 14, 40, .05) 70%); justify-items: end; padding-right: 5cqw; padding-left: 12px; }
.jpm-game[data-game="terra-em-movimento"] .tm-intro .g-card { width: min(46%, 400px); }
.jpm-game[data-game="terra-em-movimento"] .tm-note { margin: .9em 0 0; color: var(--muted, #606B80); font-weight: 600; font-size: clamp(10px, 1.6cqw, 12.5px); }

/* faixa da missão */
.jpm-game[data-game="terra-em-movimento"] .tm-banner { background: rgba(10, 14, 40, .3); }
.jpm-game[data-game="terra-em-movimento"] .tm-bcard { width: min(86%, 470px); padding: clamp(12px, 3cqw, 24px) clamp(14px, 3.4cqw, 28px); border-radius: var(--r-card, 18px); background: var(--surface, #fff); color: var(--ink, #172033); text-align: center; box-shadow: var(--shadow2, 0 18px 44px rgba(23, 32, 51, .16)); animation: terra-em-movimento-in .3s ease-out; }
.jpm-game[data-game="terra-em-movimento"] .tm-bmod { margin: 0; color: var(--g-accent); font-weight: 900; font-size: clamp(10px, 1.8cqw, 14px); letter-spacing: .08em; text-transform: uppercase; }
.jpm-game[data-game="terra-em-movimento"] .tm-btitle { margin: .2em 0 .3em; font-weight: 900; font-size: clamp(18px, 4cqw, 32px); letter-spacing: -.03em; line-height: 1.05; }
.jpm-game[data-game="terra-em-movimento"] .tm-bgoal { margin: 0; color: var(--muted, #606B80); font-weight: 700; font-size: clamp(12px, 2.2cqw, 18px); line-height: 1.25; }
.jpm-game[data-game="terra-em-movimento"] .tm-btap { margin: .7em 0 0; font-weight: 800; color: var(--g-accent); font-size: clamp(10px, 1.7cqw, 13px); opacity: .8; }

/* mapa de missões */
.jpm-game[data-game="terra-em-movimento"] .tm-map { background: rgba(10, 14, 40, .55); padding: 2cqh 2cqw; }
.jpm-game[data-game="terra-em-movimento"] .tm-panel { display: flex; flex-direction: column; gap: clamp(5px, 1.2cqh, 10px); width: min(98%, 880px); max-height: 96cqh; padding: clamp(8px, 2cqw, 18px); border-radius: var(--r-card, 18px); background: var(--surface, #fff); color: var(--ink, #172033); box-shadow: var(--shadow2, 0 18px 44px rgba(23, 32, 51, .16)); overflow: hidden; }
.jpm-game[data-game="terra-em-movimento"] .tm-phead { display: flex; align-items: center; gap: 10px; }
.jpm-game[data-game="terra-em-movimento"] .tm-ptitle { margin: 0; font-weight: 900; font-size: clamp(15px, 3.2cqw, 26px); letter-spacing: -.03em; }
.jpm-game[data-game="terra-em-movimento"] .tm-total { margin-left: auto; display: inline-flex; align-items: center; gap: 0; font-weight: 900; font-size: clamp(12px, 2.2cqw, 18px); color: #B57B00; }
.jpm-game[data-game="terra-em-movimento"] .tm-total svg { width: 1.2em; height: 1.2em; margin-right: 4px; color: var(--yellow, #FFD43B); }
.jpm-game[data-game="terra-em-movimento"] .tm-x { flex: none; width: clamp(34px, 6cqw, 44px); height: clamp(34px, 6cqw, 44px); border: 0; border-radius: 50%; background: var(--bg, #F3F6FA); display: grid; place-items: center; }
.jpm-game[data-game="terra-em-movimento"] .tm-x svg { width: 55%; height: 55%; }
.jpm-game[data-game="terra-em-movimento"] .tm-mods { display: grid; grid-template-columns: repeat(5, 1fr); gap: 6px; }
.jpm-game[data-game="terra-em-movimento"] .tm-mod { display: flex; flex-direction: column; align-items: center; gap: 1px; min-height: 44px; padding: .35em .2em; border: 0; border-radius: 12px; background: var(--bg, #F3F6FA); box-shadow: inset 0 0 0 2px var(--line, #E3E8EF); font-weight: 900; font-size: clamp(10px, 1.75cqw, 15px); }
.jpm-game[data-game="terra-em-movimento"] .tm-mod.is-on { background: var(--g-accent); color: var(--surface, #fff); box-shadow: none; }
.jpm-game[data-game="terra-em-movimento"] .tm-mod.is-locked { opacity: .55; }
.jpm-game[data-game="terra-em-movimento"] .tm-modname { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 100%; }
.jpm-game[data-game="terra-em-movimento"] .tm-modstars { display: inline-flex; align-items: center; gap: 2px; font-size: .88em; font-variant-numeric: tabular-nums; }
.jpm-game[data-game="terra-em-movimento"] .tm-modstars svg { width: 1em; height: 1em; color: var(--yellow, #FFD43B); }
.jpm-game[data-game="terra-em-movimento"] .tm-modinfo { margin: 0; color: var(--muted, #606B80); font-weight: 700; font-size: clamp(10.5px, 1.8cqw, 15px); }
.jpm-game[data-game="terra-em-movimento"] .tm-grid { flex: 1; min-height: 0; overflow-y: auto; overscroll-behavior: contain; display: grid; grid-template-columns: repeat(5, 1fr); gap: 7px; padding: 2px; }
.jpm-game[data-game="terra-em-movimento"] .tm-lv { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 1px; min-width: 0; min-height: 52px; padding: .35em .25em; border: 0; border-radius: 14px; background: var(--bg, #F3F6FA); box-shadow: inset 0 0 0 2px var(--line, #E3E8EF); }
.jpm-game[data-game="terra-em-movimento"] .tm-lv.is-done { background: #F0EDFF; box-shadow: inset 0 0 0 2px #CFC6FF; }
.jpm-game[data-game="terra-em-movimento"] .tm-lv.is-locked { opacity: .45; cursor: default; }
.jpm-game[data-game="terra-em-movimento"] .tm-lvn { font-weight: 900; font-size: clamp(14px, 2.8cqw, 24px); line-height: 1; }
.jpm-game[data-game="terra-em-movimento"] .tm-lvt { max-width: 100%; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; color: var(--muted, #606B80); font-weight: 700; font-size: clamp(9px, 1.45cqw, 12.5px); }
.jpm-game[data-game="terra-em-movimento"] .tm-lvs { display: inline-flex; gap: 1px; color: var(--line, #D5DCE6); }
.jpm-game[data-game="terra-em-movimento"] .tm-lvs svg { width: clamp(10px, 1.8cqw, 15px); height: clamp(10px, 1.8cqw, 15px); }
.jpm-game[data-game="terra-em-movimento"] .tm-lvs svg.is-on { color: var(--yellow, #FFD43B); }

/* fim da missão */
.jpm-game[data-game="terra-em-movimento"] .tm-over { background: rgba(10, 14, 40, .42); }
.jpm-game[data-game="terra-em-movimento"] .tm-rcard { width: min(92%, 470px); max-height: 96cqh; overflow-y: auto; padding: clamp(10px, 2.6cqw, 24px); animation: terra-em-movimento-in .3s ease-out; }
.jpm-game[data-game="terra-em-movimento"] .tm-rcard .g-title { margin: 2px 0 2px; }
.jpm-game[data-game="terra-em-movimento"] .tm-rcard .g-stars { margin: 2px 0 6px; }
.jpm-game[data-game="terra-em-movimento"] .tm-learn { margin: 0 0 8px; padding: .55em .8em; border-radius: 12px; background: #F0EDFF; color: var(--ink, #172033); font-weight: 650; font-size: clamp(11.5px, 2.05cqw, 16px); line-height: 1.35; text-align: left; }
.jpm-game[data-game="terra-em-movimento"] .tm-rcard .g-best { margin: 0 0 10px; font-size: clamp(11px, 1.9cqw, 15px); }
.jpm-game[data-game="terra-em-movimento"] .tm-ibtn { width: 46px; padding: 0; display: inline-grid; place-items: center; }
.jpm-game[data-game="terra-em-movimento"] .tm-ibtn svg { width: 22px; height: 22px; }

@container (max-width: 560px) {
  .jpm-game[data-game="terra-em-movimento"] .tm-intro { justify-items: center; padding-right: 12px; background: rgba(10, 14, 40, .45); }
  .jpm-game[data-game="terra-em-movimento"] .tm-intro .g-card { width: min(84%, 400px); padding: 12px 16px; }
  .jpm-game[data-game="terra-em-movimento"] .tm-intro .g-text { margin-bottom: 8px; }
  .jpm-game[data-game="terra-em-movimento"] .tm-note { display: none; }
  .jpm-game[data-game="terra-em-movimento"] .tm-ask { width: 90%; padding: .45em .5em .55em; }
  .jpm-game[data-game="terra-em-movimento"] .tm-bubble { max-width: 70%; }
  .jpm-game[data-game="terra-em-movimento"] .g-btn { min-height: 40px; padding: 0 18px; }
}
@container (max-width: 560px) {
  .jpm-game[data-game="terra-em-movimento"] .tm-check { width: 50px; min-height: 50px; height: 50px; padding: 0; justify-content: center; }
  .jpm-game[data-game="terra-em-movimento"] .tm-check svg { width: 26px; height: 26px; }
  .jpm-game[data-game="terra-em-movimento"] .tm-cklbl { display: none; }
  .jpm-game[data-game="terra-em-movimento"] .tm-pick { left: var(--tm-gap); transform: none; padding: 4px; gap: 8px; }
  .jpm-game[data-game="terra-em-movimento"] .tm-tog { width: 50px; height: 50px; }
  .jpm-game[data-game="terra-em-movimento"] .tm-chip { font-size: 10px; padding: 3px 8px 3px 5px; }
  .jpm-game[data-game="terra-em-movimento"] .tm-opts { gap: 5px; }
  .jpm-game[data-game="terra-em-movimento"] .tm-opt { min-height: 36px; padding: 0 .8em; font-size: 11.5px; }
  .jpm-game[data-game="terra-em-movimento"] .tm-q { margin-bottom: .4em; font-size: 12px; }
}
@container (max-height: 330px) {
  .jpm-game[data-game="terra-em-movimento"] .tm-season { width: 31cqw; padding: 3px 5px 4px; font-size: 9.5px; top: calc(var(--tm-hud) + var(--tm-gap) * 1.5); }
  .jpm-game[data-game="terra-em-movimento"] .tm-rword, .jpm-game[data-game="terra-em-movimento"] .tm-dword { display: none; }
  .jpm-game[data-game="terra-em-movimento"] .tm-rays { width: 2.8em; height: 1.5em; }
  .jpm-game[data-game="terra-em-movimento"] .tm-hrow { margin: 0; }
  .jpm-game[data-game="terra-em-movimento"] .tm-lvt, .jpm-game[data-game="terra-em-movimento"] .tm-modinfo, .jpm-game[data-game="terra-em-movimento"] .tm-shead { display: none; }
  .jpm-game[data-game="terra-em-movimento"] .tm-lv { min-height: 44px; }
  .jpm-game[data-game="terra-em-movimento"] .tm-mod { min-height: 38px; }
  .jpm-game[data-game="terra-em-movimento"] .tm-hemi { margin-top: .2em; padding: .2em .35em .25em; }
  .jpm-game[data-game="terra-em-movimento"] .tm-rcard .g-kicker { display: none; }
  .jpm-game[data-game="terra-em-movimento"] .tm-rcard .g-btn { min-height: 38px; }
  .jpm-game[data-game="terra-em-movimento"] .tm-btap { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  .jpm-game[data-game="terra-em-movimento"] .tm-hand, .jpm-game[data-game="terra-em-movimento"] .tm-ask, .jpm-game[data-game="terra-em-movimento"] .tm-bubble, .jpm-game[data-game="terra-em-movimento"] .tm-bcard, .jpm-game[data-game="terra-em-movimento"] .tm-rcard { animation: none; }
}
