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

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

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

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

/* jogo */
.jpm-game[data-game="motoboy"] { --g-accent: #FF5A5F; --g-fast: #2FBF71; --g-slow: #FF5A5F; --g-short: #FF9F1C; --g-gold: #FFC928; }

/* HUD */
.jpm-game[data-game="motoboy"] .mb-hud { gap: 6px; padding: 8px 10px; }
.jpm-game[data-game="motoboy"] .mb-hbtn { pointer-events: auto; width: clamp(36px, 6.2cqw, 46px); height: clamp(36px, 6.2cqw, 46px); padding: 0; border: 0; border-radius: 14px; background: var(--surface, #fff); color: var(--g-accent); display: grid; place-items: center; box-shadow: 0 4px 0 rgba(23, 27, 52, .18); }
.jpm-game[data-game="motoboy"] .mb-hbtn svg { width: 54%; height: 54%; }
.jpm-game[data-game="motoboy"] .mb-hbtn:active { transform: translateY(2px); box-shadow: 0 2px 0 rgba(23, 27, 52, .18); }
.jpm-game[data-game="motoboy"] .mb-hud .g-chip { padding: 5px 10px 5px 8px; font-size: clamp(12px, 2.2cqw, 19px); }
.jpm-game[data-game="motoboy"] .mb-time { min-width: 4.2em; }
.jpm-game[data-game="motoboy"] .mb-time.is-late { background: var(--coral, #FF6868); animation: motoboy-blink .8s ease-in-out infinite; }
.jpm-game[data-game="motoboy"] .mb-dest { background: #6c5cf5; transition: background-color .3s; }
.jpm-game[data-game="motoboy"] .mb-dir { width: 1.15em; height: 1.15em; margin-left: 2px; padding: 2px; border-radius: 50%; background: rgba(255, 255, 255, .28); transition: transform .35s cubic-bezier(.3, 1.4, .5, 1); }
.jpm-game[data-game="motoboy"] .mb-combo { background: var(--g-gold); color: #4a3200; }
.jpm-game[data-game="motoboy"] .mb-combo.is-pop, .jpm-game[data-game="motoboy"] .mb-dest.is-pop { animation: motoboy-pop .45s ease-out; }

/* dica curta acima dos botões */
.jpm-game[data-game="motoboy"] .mb-tip { position: absolute; left: 50%; bottom: clamp(10px, 3cqh, 28px); z-index: 3; transform: translateX(-50%); max-width: min(78%, 560px); margin: 0; padding: .45em 1.1em; border-radius: var(--r-pill, 999px); background: rgba(255, 255, 255, .95); color: var(--ink, #172033); font-weight: 900; font-size: clamp(12px, 2.4cqw, 20px); text-align: center; line-height: 1.25; box-shadow: var(--shadow2, 0 18px 44px rgba(23, 32, 51, .16)); pointer-events: none; animation: motoboy-in .3s ease-out; }
.jpm-game[data-game="motoboy"] .mb-tip.is-warn { background: var(--g-slow); color: #fff; }
.jpm-game[data-game="motoboy"] .mb-tip.is-good { background: var(--g-fast); color: #fff; }

/* abertura de fase */
.jpm-game[data-game="motoboy"] .mb-ready { background: none; align-content: start; gap: 6px; padding-top: clamp(44px, 9cqh, 90px); }
.jpm-game[data-game="motoboy"] .mb-bcard { max-width: min(90%, 500px); padding: clamp(7px, 1.6cqw, 14px) clamp(12px, 2.6cqw, 22px); border-radius: var(--r-card, 16px); background: rgba(255, 255, 255, .95); color: var(--ink, #172033); text-align: center; box-shadow: var(--shadow2, 0 18px 44px rgba(23, 32, 51, .16)); animation: motoboy-in .35s ease-out; }
.jpm-game[data-game="motoboy"] .mb-bnum { margin: 0; font-size: clamp(11px, 1.9cqw, 14px); font-weight: 900; letter-spacing: .1em; text-transform: uppercase; color: var(--g-accent); }
.jpm-game[data-game="motoboy"] .mb-bname { margin: 2px 0 0; font-size: clamp(17px, 3.4cqw, 26px); font-weight: 900; letter-spacing: -.03em; line-height: 1.1; }
.jpm-game[data-game="motoboy"] .mb-btip { margin: 6px 0 0; padding: 5px 12px; border-radius: 12px; background: #fff4cc; color: #6b4a00; font-weight: 800; font-size: clamp(12px, 2.2cqw, 17px); }
.jpm-game[data-game="motoboy"] .mb-legend { display: flex; flex-wrap: wrap; justify-content: center; gap: 5px; margin-top: 7px; }
.jpm-game[data-game="motoboy"] .mb-lg { padding: 3px 10px; border-radius: var(--r-pill, 999px); color: #fff; font-weight: 900; font-size: clamp(11px, 1.9cqw, 15px); }
.jpm-game[data-game="motoboy"] .mb-lg--fast { background: var(--g-fast); }
.jpm-game[data-game="motoboy"] .mb-lg--slow { background: var(--g-slow); }
.jpm-game[data-game="motoboy"] .mb-lg--short { background: var(--g-short); }
.jpm-game[data-game="motoboy"] .mb-keys { margin-top: 7px; }
.jpm-game[data-game="motoboy"] .mb-keys .g-howto-item { padding: 4px 10px 4px 4px; font-size: clamp(11px, 1.8cqw, 14px); }
.jpm-game[data-game="motoboy"] .mb-ready .g-count { font-size: clamp(40px, 11cqw, 100px); }

/* escolha de fase */
.jpm-game[data-game="motoboy"] .mb-levels { background: rgba(23, 27, 52, .4); padding: 8px; z-index: 5; }
.jpm-game[data-game="motoboy"] .mb-panel { display: flex; flex-direction: column; width: min(96%, 640px); max-height: calc(100cqh - 16px); padding: clamp(10px, 2.2cqw, 20px); border-radius: var(--r-card, 16px); background: var(--surface, #fff); box-shadow: var(--shadow2, 0 18px 44px rgba(23, 32, 51, .16)); }
.jpm-game[data-game="motoboy"] .mb-phead { display: flex; align-items: center; gap: 10px; margin-bottom: 8px; }
.jpm-game[data-game="motoboy"] .mb-ptitle { margin: 0; font-size: clamp(18px, 3.6cqw, 28px); font-weight: 900; letter-spacing: -.03em; }
.jpm-game[data-game="motoboy"] .mb-total { display: inline-flex; align-items: center; gap: 4px; padding: 4px 10px; border-radius: var(--r-pill, 999px); background: #fff4cc; color: #6b4a00; font-weight: 900; font-size: clamp(12px, 2.2cqw, 16px); }
.jpm-game[data-game="motoboy"] .mb-total svg { width: 1.1em; height: 1.1em; color: var(--g-gold); }
.jpm-game[data-game="motoboy"] .mb-x { margin-left: auto; width: 44px; height: 44px; border: 0; border-radius: 50%; background: var(--bg, #F3F6FA); display: grid; place-items: center; }
.jpm-game[data-game="motoboy"] .mb-x svg { width: 46%; height: 46%; }
.jpm-game[data-game="motoboy"] .mb-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(6px, 1.4cqw, 12px); overflow-y: auto; padding: 4px; min-height: 0; flex: 1 1 auto; overscroll-behavior: contain; }
.jpm-game[data-game="motoboy"] .mb-card { position: relative; min-height: clamp(64px, 17cqh, 120px); padding: 8px 6px; border: 0; border-radius: 16px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px; color: var(--ink, #172033); box-shadow: inset 0 -5px 0 rgba(23, 27, 52, .14); transition: transform .12s; }
.jpm-game[data-game="motoboy"] .mb-card:active { transform: scale(.96); }
.jpm-game[data-game="motoboy"] .mb-card.is-cur { outline: 3px solid var(--g-accent); outline-offset: 2px; }
.jpm-game[data-game="motoboy"] .mb-c1 { background: #a6e5be; }
.jpm-game[data-game="motoboy"] .mb-c2 { background: #b0dbf8; }
.jpm-game[data-game="motoboy"] .mb-c3 { background: #cbd5e6; }
.jpm-game[data-game="motoboy"] .mb-c4 { background: #ffcfad; }
.jpm-game[data-game="motoboy"] .mb-c5 { background: #f8c0d8; }
.jpm-game[data-game="motoboy"] .mb-c6 { background: #f6de9e; }
.jpm-game[data-game="motoboy"] .mb-card.is-locked { background: var(--bg, #F3F6FA); color: #b5bccb; box-shadow: inset 0 0 0 2px var(--line, #E3E8EF); cursor: default; }
.jpm-game[data-game="motoboy"] .mb-cnum { font-weight: 900; font-size: clamp(18px, 3.6cqw, 30px); line-height: 1; }
.jpm-game[data-game="motoboy"] .mb-cname { font-weight: 800; font-size: clamp(11px, 1.9cqw, 15px); line-height: 1.1; text-align: center; }
.jpm-game[data-game="motoboy"] .mb-cstars { display: flex; gap: 2px; }
.jpm-game[data-game="motoboy"] .mb-cstars svg { width: clamp(12px, 2.4cqw, 20px); height: clamp(12px, 2.4cqw, 20px); color: rgba(23, 27, 52, .2); }
.jpm-game[data-game="motoboy"] .mb-cstars svg.is-on { color: #f2a900; }
.jpm-game[data-game="motoboy"] .mb-lock { width: clamp(18px, 3.4cqw, 28px); height: clamp(18px, 3.4cqw, 28px); }

/* resultado */
.jpm-game[data-game="motoboy"] .mb-rcard { width: min(94%, 530px); }
.jpm-game[data-game="motoboy"] .g-star.is-pop { animation: motoboy-star .5s cubic-bezier(.3, 1.6, .5, 1) both; }
.jpm-game[data-game="motoboy"] .mb-crit { display: flex; justify-content: center; gap: 6px; margin: 4px 0 6px; }
.jpm-game[data-game="motoboy"] .mb-ci { flex: 1 1 0; display: flex; flex-direction: column; padding: 6px 4px; border-radius: 12px; background: var(--bg, #F3F6FA); box-shadow: inset 0 0 0 2px var(--line, #E3E8EF); }
.jpm-game[data-game="motoboy"] .mb-ci.is-ok { background: #e3f9ea; box-shadow: inset 0 0 0 2px #9fe2b6; }
.jpm-game[data-game="motoboy"] .mb-cv { font-weight: 900; font-size: clamp(14px, 2.6cqw, 20px); font-variant-numeric: tabular-nums; }
.jpm-game[data-game="motoboy"] .mb-cl { font-size: clamp(10px, 1.7cqw, 12px); font-weight: 700; color: var(--muted, #606B80); }
.jpm-game[data-game="motoboy"] .mb-ci.is-ok .mb-cl { color: #1f8a4c; }
.jpm-game[data-game="motoboy"] .mb-rscore { margin: 2px 0; font-weight: 900; font-size: clamp(15px, 2.8cqw, 22px); }
.jpm-game[data-game="motoboy"] .mb-rcard .g-best { margin-bottom: 10px; }
.jpm-game[data-game="motoboy"] .mb-rbtns .g-btn { padding: 0 16px; }

/* toque */
.jpm-game[data-game="motoboy"] .mb-tbtn-brake { width: clamp(58px, 15cqw, 92px); height: clamp(58px, 15cqw, 92px); background: rgba(255, 90, 95, .82); }
.jpm-game[data-game="motoboy"] .mb-tbtn-brake svg { width: 62%; height: 62%; }
.jpm-game[data-game="motoboy"] .mb-tbtn-brake.is-call { animation: motoboy-call .7s ease-in-out infinite; }
.jpm-game[data-game="motoboy"] .mb-tbtn-brake.is-on, .jpm-game[data-game="motoboy"] .mb-tbtn-brake:active { background: #e8454a; }
.jpm-game[data-game="motoboy"] .mb-tbtn-up { background: rgba(47, 191, 113, .7); }
.jpm-game[data-game="motoboy"] .mb-tbtn-up.is-on, .jpm-game[data-game="motoboy"] .mb-tbtn-up:active { background: #23a35f; }

@keyframes motoboy-pop { from { transform: scale(.6); } 60% { transform: scale(1.15); } to { transform: scale(1); } }
@keyframes motoboy-star { from { transform: scale(.2) rotate(-40deg); } to { transform: scale(1) rotate(0); } }
@keyframes motoboy-in { from { opacity: 0; transform: translate(var(--g-tx, 0), 10px) scale(.96); } to { opacity: 1; transform: translate(var(--g-tx, 0), 0); } }
@keyframes motoboy-blink { 50% { opacity: .7; } }
@keyframes motoboy-call { 50% { transform: scale(1.12); box-shadow: 0 0 0 8px rgba(255, 90, 95, .35); } }
.jpm-game[data-game="motoboy"] .mb-tip { --g-tx: -50%; }

@media (prefers-reduced-motion: reduce) {
  .jpm-game[data-game="motoboy"] .mb-bcard, .jpm-game[data-game="motoboy"] .mb-tip, .jpm-game[data-game="motoboy"] .g-star.is-pop, .jpm-game[data-game="motoboy"] .mb-tbtn-brake.is-call, .jpm-game[data-game="motoboy"] .mb-time.is-late { animation: none; }
}
@media (pointer: coarse) {
  .jpm-game[data-game="motoboy"] .mb-keys { display: none; }
}

/* área pequena (16:9 no celular) */
@container (max-height: 330px) {
  .jpm-game[data-game="motoboy"] .mb-hud { gap: 4px; padding: 5px 6px; }
  .jpm-game[data-game="motoboy"] .mb-hud .g-chip { padding: 3px 7px 3px 5px; gap: 3px; font-size: 11px; }
  .jpm-game[data-game="motoboy"] .mb-hbtn { width: 30px; height: 30px; border-radius: 10px; }
  .jpm-game[data-game="motoboy"] .mb-time { min-width: 0; }
  .jpm-game[data-game="motoboy"] .mb-tip { font-size: 10px; line-height: 1.15; padding: 4px 9px; max-width: 37%; bottom: 7px; border-radius: 10px; }
  .jpm-game[data-game="motoboy"] .mb-ready { padding-top: 36px; gap: 2px; }
  .jpm-game[data-game="motoboy"] .mb-bcard { padding: 5px 10px; }
  .jpm-game[data-game="motoboy"] .mb-bname { font-size: 15px; }
  .jpm-game[data-game="motoboy"] .mb-btip { margin-top: 3px; padding: 2px 8px; font-size: 11px; }
  .jpm-game[data-game="motoboy"] .mb-legend { margin-top: 4px; gap: 3px; }
  .jpm-game[data-game="motoboy"] .mb-lg { font-size: 10px; padding: 1px 7px; }
  .jpm-game[data-game="motoboy"] .mb-keys { display: none; }
  .jpm-game[data-game="motoboy"] .mb-ready .g-count { font-size: 34px; }
  .jpm-game[data-game="motoboy"] .g-card { padding: 9px 12px; }
  .jpm-game[data-game="motoboy"] .g-title { font-size: 18px; margin: 1px 0 2px; }
  .jpm-game[data-game="motoboy"] .g-text { font-size: 11px; margin-bottom: 8px; }
  .jpm-game[data-game="motoboy"] .g-stars { font-size: 20px; margin: 0 0 2px; }
  .jpm-game[data-game="motoboy"] .mb-crit { margin: 2px 0; }
  .jpm-game[data-game="motoboy"] .mb-ci { padding: 2px 3px; }
  .jpm-game[data-game="motoboy"] .mb-cv { font-size: 13px; }
  .jpm-game[data-game="motoboy"] .mb-cl { font-size: 9px; }
  .jpm-game[data-game="motoboy"] .mb-rscore { font-size: 13px; margin: 0; }
  .jpm-game[data-game="motoboy"] .mb-rcard .g-best { margin: 0 0 4px; min-height: 0; font-size: 11px; }
  .jpm-game[data-game="motoboy"] .g-btn { min-height: 36px; font-size: 13px; }
  .jpm-game[data-game="motoboy"] .mb-rbtns { gap: 4px; flex-wrap: nowrap; }
  .jpm-game[data-game="motoboy"] .mb-rbtns .g-btn { padding: 0 9px; }
  .jpm-game[data-game="motoboy"] .mb-panel { padding: 7px 9px; }
  .jpm-game[data-game="motoboy"] .mb-phead { margin-bottom: 3px; }
  .jpm-game[data-game="motoboy"] .mb-ptitle { font-size: 16px; }
  .jpm-game[data-game="motoboy"] .mb-x { width: 34px; height: 34px; }
  .jpm-game[data-game="motoboy"] .mb-grid { gap: 5px; padding: 2px; }
  .jpm-game[data-game="motoboy"] .mb-card { min-height: 52px; padding: 3px; border-radius: 12px; gap: 0; }
  .jpm-game[data-game="motoboy"] .mb-cnum { font-size: 15px; }
  .jpm-game[data-game="motoboy"] .mb-cname { font-size: 10px; }
  .jpm-game[data-game="motoboy"] .mb-cstars svg { width: 11px; height: 11px; }
  .jpm-game[data-game="motoboy"] .g-tbtn { width: 52px; height: 52px; }
  .jpm-game[data-game="motoboy"] .g-touch { padding: 6px; }
}
@container (max-width: 520px) {
  .jpm-game[data-game="motoboy"] .mb-score .g-ico { display: none; }
}
.jpm-game[data-game="motoboy"].jpm-game--pseudo-fs .mb-hud { padding-right: 84px; }
