.jump-screen {
  padding-top: 18px;
}

.jump-panel {
  margin-top: 10px;
  padding: 22px 18px 24px;
  border: 1px solid var(--line);
  border-radius: 24px;
  background: #fff;
  box-shadow: 0 16px 45px rgba(30, 42, 79, 0.07);
}

.jump-hud h1 {
  margin: 0;
  font-size: clamp(22px, 6vw, 28px);
  letter-spacing: -0.03em;
}

.jump-lead {
  margin: 8px 0 0;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.6;
}

.jump-score-row {
  display: flex;
  gap: 18px;
  margin-top: 14px;
  color: #555;
  font-size: 13px;
}

.jump-score-row strong {
  color: var(--primary);
  font-size: 18px;
}

.jump-stage {
  position: relative;
  margin-top: 16px;
  overflow: hidden;
  border-radius: 18px;
  background:
    linear-gradient(180deg, #eef3ff 0%, #f7f9fc 58%, #e8edf5 58%, #e8edf5 100%);
  touch-action: manipulation;
  user-select: none;
  -webkit-user-select: none;
}

#jump-canvas {
  display: block;
  width: 100%;
  height: auto;
  vertical-align: top;
}

.jump-overlay {
  position: absolute;
  inset: 0;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 20px;
  background: rgba(255, 255, 255, 0.82);
  text-align: center;
  backdrop-filter: blur(2px);
}

.jump-overlay[hidden] {
  display: none !important;
}

.jump-overlay-title {
  margin: 0;
  color: var(--ink);
  font-size: 22px;
  font-weight: 800;
}

.jump-overlay-text {
  margin: 8px 0 0;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.5;
}

.jump-overlay-score {
  display: block;
  margin-top: 4px;
  color: var(--primary);
  font-size: 40px;
  letter-spacing: -0.03em;
}

.jump-gameover {
  margin-top: 16px;
  padding: 20px 16px 18px;
  border: 1px solid rgba(49, 87, 255, 0.14);
  border-radius: 18px;
  background: #f7f9ff;
  text-align: center;
}

.jump-gameover[hidden] {
  display: none !important;
}

.jump-gameover-title {
  margin: 0;
  color: var(--ink);
  font-size: 20px;
  font-weight: 800;
}

.jump-share-preview {
  display: block;
  width: min(52vw, 200px);
  height: auto;
  margin: 14px auto 0;
  border-radius: 14px;
  box-shadow: 0 10px 28px rgba(30, 42, 79, 0.16);
  border: 1px solid rgba(49, 87, 255, 0.12);
}

.jump-share-preview[hidden] {
  display: none !important;
}

.jump-overlay-actions {
  display: grid !important;
  gap: 10px;
  width: min(100%, 320px);
  margin: 16px auto 0;
  visibility: visible !important;
  opacity: 1 !important;
}

.jump-overlay-actions .primary-button,
.jump-overlay-actions .secondary-button {
  display: inline-flex !important;
  width: 100%;
  min-height: 52px;
  visibility: visible !important;
  opacity: 1 !important;
}

#jump-share-image {
  box-shadow: 0 10px 22px rgba(49, 87, 255, 0.22);
}

.jump-hint {
  margin: 14px 0 0;
  color: #8a909b;
  font-size: 12px;
  text-align: center;
  line-height: 1.5;
}

.jump-control {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 10px;
  margin: 22px 0 8px;
  padding: 8px 0 20px;
}

.jump-pad-button {
  display: flex;
  align-items: center;
  justify-content: center;
  width: min(100%, 320px);
  min-height: 88px;
  border: 0;
  border-radius: 22px;
  color: #fff;
  background: linear-gradient(180deg, #4a6fff 0%, #3157ff 55%, #2746d8 100%);
  box-shadow:
    0 12px 28px rgba(49, 87, 255, 0.34),
    inset 0 1px 0 rgba(255, 255, 255, 0.28);
  font-size: 28px;
  font-weight: 900;
  letter-spacing: 0.12em;
  cursor: pointer;
  touch-action: manipulation;
  -webkit-tap-highlight-color: transparent;
  user-select: none;
}

.jump-pad-button:active {
  transform: translateY(2px) scale(0.98);
  box-shadow:
    0 6px 16px rgba(49, 87, 255, 0.28),
    inset 0 1px 0 rgba(255, 255, 255, 0.18);
}

.jump-pad-hint {
  margin: 0;
  color: #8a909b;
  font-size: 12px;
}

@media (max-width: 900px) {
  .jump-screen {
    padding-right: 16px;
    padding-left: 16px;
  }

  .jump-panel {
    border-radius: 20px;
  }

  .jump-control {
    margin-top: 28px;
    padding-bottom: 28px;
  }

  .jump-pad-button {
    width: 100%;
    min-height: 96px;
    font-size: 30px;
  }
}
