/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border: none;
  cursor: pointer;
  border-radius: 12px;
  font: inherit;
  font-weight: 600;
  padding: 12px 20px;
  color: var(--text);
  background: var(--surface);
  transition: transform 0.1s ease, box-shadow 0.15s ease, background 0.15s ease, border-color 0.15s ease;
}
.btn:hover { filter: brightness(0.97); }
.btn:active { transform: translateY(2px); }
.btn:focus-visible { outline: 3px solid var(--primary); outline-offset: 2px; }
.btn:disabled { opacity: 0.5; cursor: not-allowed; }

.btn-primary { background: var(--primary); color: #fff; }
.btn-primary:hover { background: var(--primary-dark); }

.btn-ghost { background: transparent; border: 2px solid var(--border); color: var(--text-muted); }
.btn-ghost:hover { background: var(--surface); }

.btn-big { font-size: 1.1rem; padding: 16px 24px; }

/* Activity cards */
.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 20px;
  margin-top: 20px;
}

.card {
  display: block;
  width: 100%;
  text-align: left;
  background: var(--surface);
  border: 2px solid transparent;
  border-radius: var(--radius);
  padding: 24px;
  box-shadow: var(--shadow);
  cursor: pointer;
  color: var(--text);
  font: inherit;
  transition: transform 0.15s ease, border-color 0.15s ease, box-shadow 0.15s ease;
}
.card:hover {
  transform: translateY(-4px);
  border-color: var(--primary);
  box-shadow: 0 18px 34px rgba(30, 41, 59, 0.14);
}
.card:focus-visible { outline: 3px solid var(--primary); outline-offset: 3px; }

.card-icon {
  width: 56px;
  height: 56px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 14px;
  margin-bottom: 14px;
}
.card-icon svg { width: 100%; height: 100%; }

.card-title { margin-bottom: 6px; }
.card-desc { color: var(--text-muted); line-height: 1.45; }

/* Chips / badges */
.chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 6px 12px;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-muted);
  white-space: nowrap;
}

/* Stars */
.stars { display: inline-flex; gap: 4px; font-size: 2.2rem; line-height: 1; }
.star { color: #e2e8f0; }
.star.filled { color: var(--accent); }
.stars.small .star { font-size: 1rem; }

/* Progress bar */
.progress-track {
  height: 12px;
  background: var(--border);
  border-radius: 999px;
  overflow: hidden;
}
.progress-fill {
  height: 100%;
  width: 0;
  background: linear-gradient(90deg, var(--primary), var(--accent));
  border-radius: 999px;
  transition: width 0.2s ease;
}

/* Confetti */
.confetti-layer { position: relative; overflow: hidden; }
.confetti-piece {
  position: absolute;
  top: -24px;
  width: 10px;
  height: 16px;
  border-radius: 2px;
  opacity: 0.95;
  animation: confetti-fall linear forwards;
}
@keyframes confetti-fall {
  to { transform: translateY(110vh) rotate(720deg); opacity: 0; }
}
