/* Նշաններ, հերթափոխություն, անիմացիաներ */

/* Հերթափոխություն */
.streak { text-align: center; }
.flame { font-size: 2.2rem; font-weight: 800; color: #ff7a45; }
.streak-text { margin: 2px 0 8px; font-weight: 600; }
.rewards { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px; }
.rw {
  padding: 4px 10px;
  border-radius: 999px;
  border: 1px solid var(--line);
  color: var(--muted);
  font-size: 0.9rem;
}
.rw.on { background: var(--ok-bg); border-color: var(--ok); color: var(--text); }

/* Նշաններ */
.badges { display: flex; flex-wrap: wrap; gap: 10px; margin: 8px 0; }
.badge {
  width: 56px;
  height: 56px;
  display: grid;
  place-items: center;
  font-size: 1.7rem;
  border-radius: 50%;
  background: radial-gradient(circle at 30% 30%, #fff3b0, #ffb703 70%);
  box-shadow: 0 3px 8px rgba(255, 183, 3, 0.45);
}

/* Ճիշտ պատասխանի փոքր անիմացիա */
@keyframes pop {
  0% { transform: scale(1); }
  40% { transform: scale(1.04); }
  100% { transform: scale(1); }
}
.opt.pop { animation: pop 0.35s ease-out; }

/* Ավարտի տոն (overlay) */
.overlay {
  position: fixed;
  inset: 0;
  z-index: 50;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 24px;
  text-align: center;
  background: rgba(30, 22, 60, 0.96);
  animation: fade 0.25s ease-out;
}
.overlay > * { max-width: 420px; }
.overlay .primary { width: auto; min-width: 180px; padding: 0 20px; }
.overlay h2 { color: #fff; }
.overlay p { color: #f0ecff; }
.medal {
  width: 120px;
  height: 120px;
  margin: 0 auto 12px;
  display: grid;
  place-items: center;
  font-size: 3.4rem;
  border-radius: 50%;
  background: radial-gradient(circle at 30% 30%, #fff3b0, #ffb703 70%);
  box-shadow: 0 8px 24px rgba(255, 183, 3, 0.6);
  animation: medal 0.7s cubic-bezier(.2, 1.4, .4, 1);
}
@keyframes medal {
  0% { transform: scale(0.2) rotate(-30deg); opacity: 0; }
  100% { transform: scale(1) rotate(0); opacity: 1; }
}
@keyframes fade { from { opacity: 0; } to { opacity: 1; } }

/* Կոնֆետի */
.confetti {
  position: fixed;
  inset: 0;
  pointer-events: none;
  overflow: hidden;
  z-index: 60;
}
.piece {
  position: absolute;
  top: -12px;
  width: 9px;
  height: 14px;
  border-radius: 2px;
  animation-name: fall;
  animation-timing-function: ease-in;
  animation-fill-mode: forwards;
}
@keyframes fall {
  0% { transform: translateY(0) rotate(0); opacity: 1; }
  100% { transform: translateY(105vh) rotate(720deg); opacity: 0.9; }
}

@media (prefers-reduced-motion: reduce) {
  .opt.pop, .medal, .overlay, .piece { animation: none; }
}
