/* =============================================================
   GAME: Sky Jump
   ============================================================= */
.board-skyjump { display: flex; flex-direction: column; align-items: center; gap: 10px; outline: none; }
.sj-stage { position: relative; touch-action: none; -webkit-user-select: none; user-select: none; }
.sj-canvas {
  display: block; border-radius: 16px; background: #160a3a; cursor: crosshair;
  box-shadow: 0 0 0 2px #7dff3d, 0 0 26px rgba(125, 255, 61, .3), inset 0 -5px 0 rgba(0, 0, 0, .3);
}
.board-skyjump:focus-visible .sj-canvas { box-shadow: 0 0 0 3px #c8ff9a, 0 0 30px rgba(125, 255, 61, .55); }
.sj-msg {
  position: absolute; left: 50%; top: 34%; transform: translate(-50%, -50%); width: max-content; max-width: 82%;
  padding: 10px 16px; border-radius: 12px; background: rgba(10, 6, 30, .82); color: #e6ffd8; font-weight: 700; text-align: center;
  box-shadow: 0 0 0 1px rgba(125, 255, 61, .5); pointer-events: none;
}
.sj-msg[hidden] { display: none; }
.sj-num { color: #b8ff8a; font-variant-numeric: tabular-nums; }

/* on-screen buttons: phones and tablets only */
.sj-pad { display: none; gap: 10px; align-items: center; touch-action: none; }
.sj-key {
  display: grid; place-items: center; width: 108px; height: 56px; border: 0; border-radius: 16px; cursor: pointer; color: #b8ff8a;
  background: var(--surface-2); box-shadow: inset 0 0 0 1px rgba(125, 255, 61, .45), 0 4px 0 rgba(0, 0, 0, .35);
  -webkit-tap-highlight-color: transparent; user-select: none; -webkit-user-select: none; -webkit-touch-callout: none;
}
.sj-key svg { width: 30px; height: 30px; fill: currentColor; }
.sj-key.sj-down, .sj-key:active { background: #1f4a14; transform: translateY(2px); box-shadow: inset 0 0 0 1px #7dff3d, 0 2px 0 rgba(0, 0, 0, .35); }
.sj-key-pause { width: 48px; height: 48px; border-radius: 50%; color: var(--ink); }
.sj-key-pause svg { width: 20px; height: 20px; }
@media (pointer: coarse) { .sj-pad { display: flex; } .sj-canvas { cursor: default; } }
@media (max-width: 360px) { .sj-key { width: 92px; } }

/* hit: short shake + red frame (off when motion is reduced) */
.sj-hurt { animation: sjShake .4s cubic-bezier(.36, .07, .19, .97); }
.sj-hurt .sj-canvas { box-shadow: 0 0 0 2px #ff3d5e, 0 0 30px rgba(255, 61, 94, .55); transition: box-shadow .3s; }
@keyframes sjShake { 15%, 55% { translate: -5px 0; } 35%, 75% { translate: 5px 0; } 90% { translate: -2px 0; } }
