.game-root { min-height: 28rem; }

.catch-num {
  display: inline-block;
  min-width: 2ch;
  font-variant-numeric: tabular-nums;
  text-align: right;
}

.catch-lives.is-low { color: var(--danger); }

.catch-status.lose { color: var(--danger); }

.catch-main { min-width: 8.5rem; }

.catch-stage {
  width: min(100%, 22rem, max(15rem, calc(100dvh - 13.5rem)));
  margin-inline: auto;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.catch-board {
  position: relative;
  width: 100%;
  aspect-ratio: 1 / 1.5;
  border-radius: 12px;
  overflow: hidden;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.05), transparent 28%),
    #163028;
  border: 1px solid rgba(232, 217, 168, 0.35);
  box-shadow:
    inset 0 0 0 1px rgba(0, 0, 0, 0.35),
    inset 0 14px 28px rgba(0, 0, 0, 0.28);
  touch-action: none;
  user-select: none;
  outline: none;
}

.catch-board:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: -2px;
}

.catch-items {
  position: absolute;
  z-index: 2;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
}

.catch-item {
  position: absolute;
  left: 0;
  top: 0;
  pointer-events: none;
}

.catch-item.disc {
  border-radius: 50%;
  background: radial-gradient(circle at 35% 32%, #f6e7b8, #e4c56e 42%, #a6843a 78%);
  box-shadow: inset 0 -2px 0 rgba(0, 0, 0, 0.22), inset 0 0 0 2px rgba(138, 98, 48, 0.4);
}

.catch-item.gem {
  background: linear-gradient(160deg, #e7b2a8, #8f2f2c 68%);
  clip-path: polygon(50% 4%, 96% 50%, 50% 96%, 4% 50%);
}

.catch-item.tile {
  border-radius: 18%;
  background: linear-gradient(165deg, #fffdf7, #e4dccd 72%);
  box-shadow: inset 0 0 0 2px rgba(138, 98, 48, 0.55);
}

.catch-item.missed { opacity: 0.4; }

.catch-basket {
  position: absolute;
  pointer-events: none;
}

.catch-basket-back { z-index: 1; }

.catch-basket-front {
  z-index: 3;
  filter: drop-shadow(0 2px 2px rgba(0, 0, 0, 0.4));
}

.catch-basket-svg {
  display: block;
  width: 100%;
  height: 100%;
}

.catch-basket.is-miss .rim-band { stroke: #e7b2a8; }

.catch-pad {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.5rem;
  width: 100%;
  margin: 0.85rem auto 0.15rem;
}

.catch-pad .btn {
  min-height: 3.1rem;
  touch-action: none;
  user-select: none;
}

@media (max-width: 640px) {
  .catch-pad .btn { min-height: 3.4rem; }
}
