.cat-jump-shell {
  position: relative;
  z-index: 1;
  width: 100vw;
  max-width: none;
  margin: 22px calc(50% - 50vw) 0;
  color: #d7d7d7;
  text-align: left;
}

.cat-jump-game {
  position: relative;
  min-height: 360px;
  border: 0;
  border-radius: 0;
  background: transparent;
  overflow: hidden;
  box-shadow: none;
}

.cat-jump-canvas {
  display: block;
  width: 100%;
  height: 360px;
  filter: blur(3px);
  transition: filter 0.24s ease;
}

.cat-jump-game.is-running .cat-jump-canvas,
.cat-jump-game.is-over .cat-jump-canvas {
  filter: none;
}

.cat-jump-hud {
  position: absolute;
  inset: 18px clamp(18px, 4vw, 72px) auto clamp(18px, 4vw, 72px);
  display: flex;
  align-items: flex-start;
  justify-content: flex-end;
  gap: 24px;
  pointer-events: none;
}

.cat-jump-scoreboard {
  border: 1px solid rgba(245, 163, 0, 0.2);
  border-radius: 10px;
  background: rgba(10, 10, 10, 0.58);
  backdrop-filter: blur(12px);
  color: #d2d2d2;
  display: flex;
  align-items: flex-start;
  gap: 16px;
  width: min(480px, calc(100vw - 36px));
  padding: 14px 16px;
}

.cat-jump-leaderboard {
  flex: 1 1 210px;
  min-width: 190px;
  padding-left: 16px;
  border-left: 1px solid rgba(245, 163, 0, 0.16);
  text-align: left;
}

.cat-jump-leaderboard h2 {
  margin: 0 0 10px;
  color: #ffbf3f;
  font-size: 12px;
  line-height: 1.1;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.cat-jump-leaderboard ol {
  min-height: 116px;
  margin: 0;
  padding: 0;
  list-style: none;
  color: #bdbdbd;
  font-size: 12px;
  line-height: 1.3;
  counter-reset: cat-jump-rank;
}

.cat-jump-leaderboard li {
  display: grid;
  grid-template-columns: 22px minmax(54px, 1fr) auto auto;
  align-items: center;
  gap: 8px;
  min-height: 23px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  counter-increment: cat-jump-rank;
}

.cat-jump-leaderboard li::before {
  content: counter(cat-jump-rank);
  color: #ffbf3f;
  font-weight: 700;
}

.cat-jump-leaderboard li:first-child {
  border-top: 0;
}

.cat-jump-leaderboard-empty {
  grid-template-columns: 1fr;
}

.cat-jump-leaderboard-empty::before {
  content: "";
  display: none;
}

.cat-jump-leaderboard-time {
  color: #aeb6bf;
  font-size: 11px;
  text-align: right;
}

.cat-jump-leaderboard-points {
  color: #ffbf3f;
  font-size: 13px;
  font-weight: 800;
  text-align: right;
}

.cat-jump-leaderboard-country {
  color: #d6dce3;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-align: right;
}

.cat-jump-score {
  flex: 0 0 150px;
  text-align: right;
  font-size: 13px;
  line-height: 1.55;
}

.cat-jump-score strong {
  display: block;
  color: #ffbf3f;
  font-size: clamp(34px, 5vw, 58px);
  font-weight: 800;
  line-height: 1;
  text-shadow: 0 0 22px rgba(245, 163, 0, 0.22);
}

.cat-jump-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  background: transparent;
}

.cat-jump-game.is-running .cat-jump-overlay {
  opacity: 0;
  pointer-events: none;
}

.cat-jump-panel {
  width: min(360px, 100%);
  padding: 24px;
  border: 1px solid rgba(215, 215, 215, 0.18);
  border-radius: 18px;
  background: rgba(22, 22, 22, 0.78);
  backdrop-filter: blur(16px);
  text-align: center;
  box-shadow: 0 24px 54px rgba(0,0,0,0.34);
}

.cat-jump-title-wrap {
  display: grid;
  grid-template-columns: 82px auto 82px;
  align-items: center;
  justify-content: center;
  gap: 18px;
  margin: 0 0 8px;
}

.cat-jump-panel h2 {
  margin: 0 0 8px;
  color: #f2f2f2;
  font-size: 24px;
  line-height: 1.1;
}

.cat-jump-title-wrap h2 {
  margin: 0;
}

.cat-jump-title-cactus {
  display: block;
  width: 28px;
  height: 44px;
  flex: 0 0 auto;
  fill: none;
  stroke: #bdbdbd;
  stroke-width: 3;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.cat-jump-title-cactus-large {
  width: 30px;
  height: 48px;
}

.cat-jump-title-cactus-group {
  display: inline-flex;
  align-items: flex-end;
  gap: 12px;
}

.cat-jump-title-cactus-group-left {
  justify-content: flex-end;
}

.cat-jump-title-cactus-group-right {
  justify-content: flex-start;
}

.cat-jump-title-cactus-small {
  width: 23px;
  height: 37px;
}

.cat-jump-panel p {
  margin: 0 0 18px;
  color: #bfbfbf;
  font-size: 14px;
  line-height: 1.5;
}

.cat-jump-rank-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 28px;
  margin: 0 auto 12px;
  padding: 7px 13px;
  border-radius: 999px;
  color: #111;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.cat-jump-rank-pill[hidden],
.cat-jump-result[hidden] {
  display: none;
}

.cat-jump-rank-pill[data-rank-tone="gold"] {
  background: linear-gradient(180deg, #ffe28a, #f5a300);
  box-shadow: 0 0 22px rgba(245, 163, 0, 0.28);
}

.cat-jump-rank-pill[data-rank-tone="silver"] {
  background: linear-gradient(180deg, #f2f5f8, #aeb6bf);
  box-shadow: 0 0 20px rgba(210, 218, 225, 0.18);
}

.cat-jump-rank-pill[data-rank-tone="bronze"] {
  background: linear-gradient(180deg, #e8ad75, #a85f28);
  color: #160c05;
  box-shadow: 0 0 20px rgba(200, 114, 48, 0.2);
}

.cat-jump-rank-pill[data-rank-tone="orange"] {
  background: linear-gradient(180deg, #ffbf3f, #f5a300);
  box-shadow: 0 0 20px rgba(245, 163, 0, 0.22);
}

.cat-jump-result {
  margin: 4px 0 20px;
  color: #bfc7d0;
}

.cat-jump-result-score {
  color: #f2f2f2;
  font-size: 16px;
  font-weight: 700;
  line-height: 1.2;
}

.cat-jump-result-score strong {
  color: #ffbf3f;
  font-size: 28px;
  line-height: 1;
}

.cat-jump-result-time {
  margin-top: 8px;
  color: #b6bec8;
  font-size: 13px;
}

.cat-jump-result-status {
  min-height: 18px;
  margin-top: 8px;
  color: #8f99a5;
  font-size: 12px;
}

.cat-jump-result-status[data-tone="success"] {
  color: #ffbf3f;
}

.cat-jump-result-status[data-tone="muted"] {
  color: #8f99a5;
}

.cat-jump-result-status[data-tone="error"] {
  color: #ffb0a6;
}

.cat-jump-start {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 160px;
  min-height: 46px;
  border: 0;
  border-radius: 999px;
  background: linear-gradient(180deg, #ffbf3f, #f5a300);
  color: #111;
  font: 700 15px/1 Arial, sans-serif;
  cursor: pointer;
  box-shadow:
    0 10px 26px rgba(245, 163, 0, 0.28),
    inset 0 1px 0 rgba(255,255,255,0.36);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.cat-jump-start:hover,
.cat-jump-start:focus-visible {
  transform: translateY(-1px);
  box-shadow:
    0 14px 32px rgba(245, 163, 0, 0.34),
    inset 0 1px 0 rgba(255,255,255,0.36);
  outline: none;
}

@media (max-width: 640px) {
  .cat-jump-game {
    min-height: 0;
    overflow: visible;
  }

  .cat-jump-canvas {
    height: 320px;
  }

  .cat-jump-hud {
    position: static;
    justify-content: center;
    padding: 12px;
    margin-top: -4px;
  }

  .cat-jump-scoreboard {
    width: min(360px, calc(100vw - 24px));
    padding: 10px 12px;
    gap: 12px;
  }

  .cat-jump-score {
    flex-basis: 92px;
  }

  .cat-jump-score strong {
    font-size: 30px;
  }

  .cat-jump-leaderboard {
    min-width: 0;
    padding-left: 12px;
  }

  .cat-jump-leaderboard h2 {
    font-size: 10px;
  }

  .cat-jump-leaderboard ol {
    font-size: 11px;
  }

  .cat-jump-leaderboard li {
    grid-template-columns: 16px minmax(42px, 1fr) auto auto;
    gap: 6px;
  }
}
