.count-layout {
  display: grid;
  gap: 18px;
  grid-template-columns: minmax(0, 1.15fr) minmax(240px, 0.85fr);
  align-items: start;
}

.count-top {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  align-items: center;
  margin-bottom: 16px;
}

.count-side-card {
  display: grid;
  gap: 14px;
}
.count-stage {
  min-height: 340px;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(92px, 1fr));
  gap: 18px;
  align-items: center;
  justify-items: center;
  margin-bottom: 18px;
  padding: 18px;
  border-radius: 24px;
  background: rgba(9, 16, 30, 0.34);
  border: 1px solid rgba(255, 255, 255, 0.06);
}

.count-board-card {
  position: relative;
}

.count-checkmark {
  position: absolute;
  top: 50%;
  left: 50%;
  z-index: 3;
  display: grid;
  place-items: center;
  width: 124px;
  height: 124px;
  border-radius: 999px;
  background: rgba(73, 193, 88, 0.92);
  color: #ffffff;
  font-size: 4.6rem;
  font-weight: 900;
  box-shadow: 0 18px 34px rgba(0, 0, 0, 0.28);
  transform: translate(-50%, -50%) scale(0.7);
  opacity: 0;
  pointer-events: none;
}

.count-checkmark.show {
  opacity: 1;
  transform: translate(-50%, -50%) scale(1);
  transition: opacity 180ms ease, transform 180ms ease;
}

.count-item {
  display: grid;
  place-items: center;
  width: 88px;
  height: 88px;
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.08);
  font-size: 3rem;
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.14);
}

.count-choice-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 12px;
}

.count-choice-btn {
  min-height: 68px;
  border: 1px solid rgba(255, 214, 117, 0.24);
  border-radius: 20px;
  background: linear-gradient(180deg, rgba(19, 32, 55, 0.96), rgba(11, 20, 37, 0.96));
  color: #fff2c4;
  font-size: 1.7rem;
  font-weight: 900;
  cursor: pointer;
  transition: transform 140ms ease, border-color 140ms ease, box-shadow 140ms ease;
}

.count-choice-btn:hover,
.count-choice-btn:focus-visible {
  transform: translateY(-1px);
  border-color: rgba(255, 214, 117, 0.5);
  box-shadow: 0 14px 28px rgba(0, 0, 0, 0.26);
}

.count-choice-btn.correct {
  background: linear-gradient(180deg, #73d564 0%, #49c158 100%);
  color: #ffffff;
}

.count-choice-btn.wrong {
  background: linear-gradient(180deg, #ff8e8e 0%, #ea5a5a 100%);
  color: #ffffff;
}

@media (max-width: 560px) {
  .count-choice-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}
