/* Jump King — climbing game tool */

.jk-body {
  flex: 1;
  display: flex;
  flex-direction: column;
  min-height: 0;
  padding: 16px 20px calc(var(--safe-bottom) + 16px);
  align-items: center;
  gap: 10px;
}

.jk-score-row {
  display: flex;
  justify-content: space-between;
  width: 100%;
  max-width: 300px;
  font-size: 13px;
  color: var(--sub);
}

.jk-score-row b {
  color: var(--text);
  font-size: 16px;
}

.jk-power-track {
  width: 100%;
  max-width: 300px;
  height: 8px;
  border-radius: var(--radius-pill);
  background: var(--card);
  overflow: hidden;
}

.jk-power-fill {
  height: 100%;
  width: 0%;
  background: var(--accent);
  border-radius: var(--radius-pill);
}

.jk-board-wrap {
  position: relative;
  width: 100%;
  max-width: 300px;
  aspect-ratio: 300 / 440;
}

.jk-canvas {
  width: 100%;
  height: 100%;
  display: block;
  border-radius: var(--radius-lg);
  background: var(--card);
  box-shadow: var(--shadow-md);
}

.jk-wind-badge {
  position: absolute;
  top: 8px;
  left: 50%;
  transform: translateX(-50%);
  background: rgba(0, 0, 0, 0.5);
  color: #fff;
  font-size: 11px;
  font-weight: 700;
  padding: 4px 12px;
  border-radius: var(--radius-pill);
  opacity: 0;
  pointer-events: none;
  transition: opacity var(--duration-base) ease;
}

.jk-wind-badge.show {
  opacity: 1;
}

.jk-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 10px;
  background: rgba(0, 0, 0, 0.55);
  border-radius: var(--radius-lg);
  text-align: center;
  padding: 20px;
}

.jk-overlay-title {
  font-size: 18px;
  font-weight: 800;
  color: var(--text);
}

.jk-overlay-sub {
  font-size: 13px;
  color: var(--sub);
  line-height: 1.5;
}

.jk-start-btn {
  background: var(--green);
  color: #06210f;
  border: none;
  font-size: 14.5px;
  font-weight: 700;
  padding: 12px 28px;
  border-radius: var(--radius-pill);
  cursor: pointer;
  margin-top: 4px;
}

.jk-controls {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  margin-top: auto;
  width: 100%;
  max-width: 300px;
}

.jk-ctrl-btn {
  flex: 1;
  background: var(--card);
  border: none;
  color: var(--text);
  height: 64px;
  border-radius: var(--radius-md);
  font-size: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: var(--shadow-sm);
  touch-action: none;
  -webkit-touch-callout: none;
  -webkit-user-select: none;
  user-select: none;
}

.jk-ctrl-btn.active,
.jk-ctrl-btn:active {
  background: var(--accent);
  color: #fff;
}
