#activeTimers {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(100px, 1fr));
  gap: 15px;
  margin-bottom: 30px;
  padding: 5px 0;

  /* New: limit height and enable scrolling */
  max-height: 400px;
  /* adjust for ~4 rows */
  overflow-y: auto;
  padding-right: 10px;
  scroll-behavior: smooth;
}

#timerGrid {
  background: var(--card-bg);
  padding: 20px;
  border-radius: 12px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.timer{
  display: flex;
  flex-direction: column;
}

.active-timer-card {
  display: flex;
  flex-direction: column;
  background: var(--card-bg);
  border-radius: 12px;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
  text-align: center;
  cursor: pointer;
  padding: 6px;
  transition: transform 0.2s, box-shadow 0.2s, background 0.3s;
  position: relative;
  /* NEW: make it a positioned parent */
  height: 200px;
  /* NEW: force all cards same height */
  padding-bottom: 40px;
  /* NEW: make room for rarity at bottom */
}

.timer:hover {
  cursor: pointer;
}

.active-timer-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.timer img,
.active-timer-card img {
  max-width: 100%;
  object-fit: contain;
  margin-bottom: 8px;
  height: 82px;
}

.timer p,
.active-timer-card p {
  line-height: 20px;
  margin: auto;
  font-family: monospace;
  font-size: 1rem;
}