.ime-moto-game{max-width:480px;margin:20px auto;background:#202020;color:#fff;border:1px solid #444;border-radius:10px;padding:14px;font-family:Arial,sans-serif;box-sizing:border-box}.ime-moto-game *{box-sizing:border-box}.ime-moto-heading{display:flex;justify-content:space-between;gap:8px;align-items:baseline;margin-bottom:10px}.ime-moto-heading strong{font-size:20px;color:white}.ime-moto-heading span{font-size:12px;color:#ccc}.ime-moto-stage{position:relative;width:100%;overflow:hidden;border-radius:6px;background:#333;touch-action:pan-y}.ime-moto-stage canvas{display:block;width:100%;height:auto;aspect-ratio:420/620}.ime-moto-overlay{position:absolute;inset:0;background:#000a;display:flex;align-items:center;justify-content:center;text-align:center;padding:18px}.ime-moto-overlay[hidden]{display:none}.ime-moto-overlay-inner{background:#202020ee;padding:22px;border:1px solid #666;border-radius:10px;max-width:320px}.ime-moto-overlay h3{color:white;margin:0 0 12px;font-size:23px}.ime-moto-overlay p{color:#ddd;margin:0 0 16px;font-size:15px}.ime-moto-start{background:#ff3030!important;color:#fff!important;border:0!important;padding:12px 22px!important;border-radius:6px!important;font-size:16px!important;font-weight:bold;cursor:pointer}.ime-moto-status{display:flex;justify-content:space-between;padding:12px 2px 8px;font-size:16px}.ime-moto-controls{display:flex;gap:12px}.ime-moto-controls button{flex:1;min-height:60px;border:1px solid #fff!important;border-radius:6px!important;background:#303030!important;color:white!important;font-size:18px!important;font-weight:bold!important;touch-action:none;user-select:none;-webkit-user-select:none}.ime-moto-controls button:active{background:#ff3030!important}.ime-moto-help{text-align:center;color:#bbb!important;font-size:12px;margin:10px 0 0!important}@media(min-width:800px){.ime-moto-controls{display:none}}

.ime-moto-leaderboard{background:#202020;color:#fff;padding:12px;border:1px solid #444;border-radius:6px;margin-top:12px}.ime-moto-leaderboard h3{color:#fff;font-size:17px;margin:0 0 8px}.ime-moto-board{margin:0;padding-left:26px}.ime-moto-board li{padding:3px 0}.ime-moto-name{box-sizing:border-box;display:block;width:100%;padding:10px;margin:8px 0;color:#222;background:#fff;border:1px solid #888;border-radius:4px}.ime-moto-save{background:#ff3030;color:#fff;border:0;padding:10px 14px;border-radius:4px;cursor:pointer;margin:5px}.ime-moto-save:disabled{opacity:.6}

.ime-moto-speedometer{position:absolute;top:12px;right:12px;z-index:2;display:flex;flex-direction:column;align-items:center;justify-content:center;min-width:83px;height:65px;border-radius:9px;background:rgba(8,12,16,.84);border:1px solid rgba(255,255,255,.38);box-shadow:0 3px 15px #0007;color:#fff;pointer-events:none}.ime-moto-speedometer strong{font:700 28px/1.1 Arial,sans-serif;color:#fff}.ime-moto-speedometer small{font:600 12px Arial,sans-serif;color:#ff4545;letter-spacing:1px}

/* Immersive mobile gameplay: only steer and exit controls are interactive. */
.ime-moto-exit{position:absolute;z-index:8;left:10px;top:10px;border:1px solid #fff8!important;background:#101010bd!important;color:white!important;border-radius:7px!important;padding:8px 11px!important;font-size:12px!important;cursor:pointer}
.ime-moto-exit[hidden]{display:none!important}
@media(max-width:799px){
 body.ime-moto-body-playing{overflow:hidden!important;overscroll-behavior:none}
 .ime-moto-game.ime-moto-playing{position:fixed!important;inset:0!important;width:100vw!important;max-width:none!important;height:100dvh!important;z-index:2147483647!important;margin:0!important;padding:0!important;border:0!important;border-radius:0!important;background:#111!important;display:flex!important;flex-direction:column!important;overflow:hidden!important;touch-action:none}
 .ime-moto-playing .ime-moto-heading,.ime-moto-playing .ime-moto-status,.ime-moto-playing .ime-moto-leaderboard,.ime-moto-playing .ime-moto-help{display:none!important}
 .ime-moto-playing .ime-moto-stage{touch-action:none!important;flex:1 1 auto!important;min-height:0!important;width:100%!important;border-radius:0!important}
 .ime-moto-playing canvas{width:100%!important;height:100%!important;aspect-ratio:auto!important}
 .ime-moto-playing .ime-moto-controls{display:flex!important;flex:0 0 auto!important;padding:8px 12px max(12px,env(safe-area-inset-bottom))!important;background:#151515!important;gap:10px!important}
 .ime-moto-playing .ime-moto-controls button{min-height:72px!important;font-size:21px!important}
 .ime-moto-playing .ime-moto-overlay{z-index:9}
}


/* v3.5.5: introductory message is part of the game card, not a separate Elementor section. */
.ime-moto-game .ime-moto-intro{display:block!important;text-align:center!important;margin:0 0 16px!important;padding:8px 6px 16px!important;border-bottom:1px solid #555!important;background:transparent!important;color:#fff!important}
.ime-moto-game .ime-moto-intro h2{color:#fff!important;font-family:Arial,sans-serif!important;font-size:clamp(21px,5vw,27px)!important;line-height:1.25!important;font-weight:700!important;margin:0 0 10px!important;padding:0!important;text-align:center!important;text-shadow:none!important}
.ime-moto-game .ime-moto-intro h2 span{color:#ff3030!important}
.ime-moto-game .ime-moto-intro p{color:#fff!important;font-family:Arial,sans-serif!important;font-size:15px!important;line-height:1.55!important;margin:0!important;padding:0!important;text-align:center!important;opacity:1!important}
@media(max-width:799px){.ime-moto-game.ime-moto-playing .ime-moto-intro{display:none!important}}

/* v3.5.6: two-row touch controls; pause left and brake right. */
.ime-moto-controls{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}
.ime-moto-controls button{width:100%;min-width:0}
.ime-moto-controls .ime-moto-pause{background:#424242!important}
.ime-moto-controls .ime-moto-brake{background:#8f2929!important}
@media(max-width:799px){
 .ime-moto-playing .ime-moto-controls{display:grid!important;grid-template-columns:repeat(2,minmax(0,1fr))!important;gap:7px!important;padding:6px 10px max(8px,env(safe-area-inset-bottom))!important}
 .ime-moto-playing .ime-moto-controls button{min-height:53px!important;font-size:17px!important;padding:5px!important}
}

/* Compact invulnerability switch for manual gameplay tests. */
.ime-moto-test{position:absolute;z-index:9;left:10px;top:51px;padding:5px 8px!important;border:1px solid #999!important;border-radius:5px!important;background:#292929dd!important;color:#fff!important;font:700 11px Arial,sans-serif!important;cursor:pointer!important;touch-action:manipulation!important}
.ime-moto-test-active{background:#207548e8!important;border-color:#74d59e!important}
.ime-moto-test[hidden]{display:none!important}

/* v3.6.25: manual accelerator and brake side by side, steering above. */
.ime-moto-controls{grid-template-columns:repeat(2,minmax(0,1fr))}
.ime-moto-controls .ime-moto-pause{grid-column:1 / -1;grid-row:3}
.ime-moto-controls .ime-moto-gas{background:#217a39!important;grid-column:2;grid-row:2}
.ime-moto-controls .ime-moto-brake{grid-column:1;grid-row:2}
@media(max-width:799px){.ime-moto-playing .ime-moto-controls{grid-template-columns:repeat(2,minmax(0,1fr))!important}.ime-moto-playing .ime-moto-controls button{min-height:48px!important}}

/* v3.6.44: mobile tilt steering, no on-screen steering arrows. */
@media (pointer:coarse){.ime-moto-controls .ime-moto-left,.ime-moto-controls .ime-moto-right{display:none!important}}
.ime-moto-controls .ime-moto-pause{grid-column:1 / -1!important;grid-row:2!important}
.ime-moto-controls .ime-moto-brake{grid-column:1!important;grid-row:1!important}
.ime-moto-controls .ime-moto-gas{grid-column:2!important;grid-row:1!important}

/* v3.7.4: desktop play mode fits entirely inside the viewport. */
@media(min-width:800px){
 body.ime-moto-body-playing{overflow:hidden!important}
 .ime-moto-game.ime-moto-playing{position:fixed!important;inset:0!important;z-index:2147483647!important;width:100vw!important;max-width:none!important;height:100dvh!important;margin:0!important;padding:0!important;border:0!important;border-radius:0!important;background:#111!important;display:flex!important;align-items:center!important;justify-content:center!important;overflow:hidden!important}
 .ime-moto-playing .ime-moto-intro,.ime-moto-playing .ime-moto-heading,.ime-moto-playing .ime-moto-status,.ime-moto-playing .ime-moto-leaderboard,.ime-moto-playing .ime-moto-help,.ime-moto-playing .ime-moto-controls{display:none!important}
 .ime-moto-playing .ime-moto-stage{width:min(100vw,calc(100dvh * 420 / 620))!important;height:100dvh!important;flex:none!important;min-height:0!important;overflow:hidden!important;border-radius:0!important;touch-action:none!important}
 .ime-moto-playing .ime-moto-stage canvas{display:block!important;width:100%!important;height:100%!important;aspect-ratio:auto!important}
 .ime-moto-playing .ime-moto-overlay{z-index:9}
}
