/* Counting Critters — tap-to-count game for the youngest players */

.cc-setup {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.cc-setup h3 {
  margin: 0 0 8px;
  font-size: 1.05rem;
}

.cc-pick-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.cc-pick {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 4px;
  padding: 10px 14px;
  border-radius: 12px;
  border: 2px solid var(--color-border);
  background: var(--color-bg-alt);
  color: var(--color-text);
  cursor: pointer;
  font: inherit;
  min-width: 150px;
  text-align: left;
}

.cc-pick strong {
  font-size: 1rem;
}

.cc-pick small {
  color: var(--color-text-soft);
}

.cc-pick[aria-pressed="true"] {
  border-color: var(--color-primary);
  background: rgba(79, 216, 224, 0.12);
}

.cc-pick:disabled {
  opacity: 0.45;
  cursor: not-allowed;
}

.cc-start-btn {
  align-self: flex-start;
  margin-top: 4px;
}

.cc-rewards {
  font-size: 0.85rem;
  color: var(--color-text-soft);
}

.cc-rewards strong {
  color: var(--color-text);
}

.cc-play {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.cc-banner {
  padding: 12px 16px;
  border-radius: 14px;
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  font-size: 1.25rem;
  font-weight: 700;
}

.cc-banner--good {
  background: rgba(74, 222, 128, 0.15);
  color: var(--color-success);
  font-size: 1.1rem;
}

.cc-target-dots {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 8px;
}

.cc-dot {
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: var(--color-primary);
  display: inline-block;
}

.cc-progress {
  color: var(--color-text-soft);
  font-size: 0.95rem;
}

.cc-progress strong {
  color: var(--color-text);
  font-size: 1.1rem;
}

.cc-field {
  position: relative;
  width: 100%;
  height: 360px;
  border-radius: 18px;
  background: linear-gradient(180deg, rgba(79, 216, 224, 0.14), rgba(102, 187, 106, 0.12));
  border: 1px solid var(--color-border);
  overflow: hidden;
}

.cc-field.cc-habitat-pond { background: linear-gradient(180deg, rgba(41, 182, 246, 0.18), rgba(2, 119, 189, 0.14)); }
.cc-field.cc-habitat-forest { background: linear-gradient(180deg, rgba(102, 187, 106, 0.2), rgba(27, 94, 32, 0.16)); }
.cc-field.cc-habitat-beach { background: linear-gradient(180deg, rgba(255, 213, 79, 0.18), rgba(3, 169, 244, 0.14)); }
.cc-field.cc-habitat-arctic { background: linear-gradient(180deg, rgba(179, 229, 252, 0.22), rgba(96, 125, 139, 0.14)); }

.cc-cell {
  position: absolute;
  transform: translate(-50%, -50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-width: 52px;
  min-height: 52px;
  padding: 4px;
  border-radius: 16px;
  border: 3px solid transparent;
  background: var(--color-bg-alt);
  cursor: pointer;
  font-size: 1.6rem;
  line-height: 1;
}

.cc-cell:hover {
  background: var(--color-surface-hover);
}

.cc-cell--selected {
  border-color: var(--color-success);
  background: rgba(74, 222, 128, 0.18);
}

.cc-cell-icons {
  white-space: nowrap;
}

.cc-cell-badge {
  font-size: 0.7rem;
  font-weight: 700;
  color: var(--color-text-soft);
}

.cc-cell-check {
  position: absolute;
  top: -6px;
  right: -6px;
  background: var(--color-success);
  color: var(--color-bg);
  border-radius: 50%;
  width: 20px;
  height: 20px;
  font-size: 0.8rem;
  display: flex;
  align-items: center;
  justify-content: center;
}

.cc-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}
