.game-intro { margin-bottom: 18px; }
.game-frame { border: 4px ridge #a18bb8; background: #eee2fa; padding: 8px; box-shadow: 3px 4px #d2c3dd; }
.game-scoreboard { display: flex; justify-content: space-between; gap: 12px; padding: 4px 5px 12px; font: 15px 'Courier New', monospace; color: #573967; }
.game-scoreboard b { display: inline-block; min-width: 2ch; font-size: 20px; }
.game-stage { position: relative; border: 2px solid #63846a; background: #a8dfec; }
.game-stage canvas { width: 100%; height: auto; aspect-ratio: 3 / 2; display: block; image-rendering: pixelated; touch-action: manipulation; cursor: pointer; }
.game-overlay { position: absolute; inset: 15px 12px auto; padding: 13px 10px; background: #fffbedf2; border: 2px solid #a7b383; box-shadow: 2px 3px #4d6c5833; text-align: center; pointer-events: none; }
.game-overlay[hidden] { display: none; }
.game-overlay strong { display: block; color: #67427d; font: bold 21px 'Comic Sans MS', cursive; line-height: 1.25; }
.game-overlay span { display: block; font-size: 14px; margin-top: 5px; line-height: 1.4; }
.game-controls { display: grid; grid-template-columns: 1fr auto; gap: 10px; padding-top: 10px; }
.game-controls button { min-height: 50px; font-size: 17px; }
#game-jump { background: #fff1ad; border-color: #dec17c; font-weight: bold; touch-action: manipulation; }
#game-pause { min-width: 90px; }
.game-controls button:disabled { opacity: .6; cursor: default; }
.game-instructions { text-align: center; font-size: 14px; line-height: 1.6; margin: 14px 0; }
.game-instructions kbd { padding: 2px 5px; border: 1px solid #b9a9c6; box-shadow: 0 2px #d6c9dd; background: white; font-size: 13px; }
.game-status { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.game-promo { display: flex; align-items: center; gap: 15px; padding: 12px; border: 2px dashed #8aab78; background: #eef7dd; margin: 22px 0; text-decoration: none; }
.game-promo img { width: 80px; height: 65px; object-fit: contain; image-rendering: pixelated; }
.game-promo strong { display: block; text-decoration: underline; font-size: 19px; }
.game-promo small { display: block; font-size: 14px; color: #576349; margin-top: 4px; }
@media (max-width: 700px) {
 .game-frame { padding: 5px; margin-inline: -5px; }
 .game-overlay { inset: 10px 8px auto; padding: 9px 8px; }
 .game-overlay strong { font-size: 19px; }
 .game-overlay span { font-size: 14px; }
 .game-scoreboard { font-size: 14px; padding: 5px 5px 10px; }
 .game-controls button { min-height: 56px; }
 .game-instructions, .game-status { font-size: 15px; }
 .game-promo { gap: 10px; }
}
@media (prefers-reduced-motion: reduce) { .game-stage canvas { image-rendering: pixelated; } }
