/* rewards.css
   Phase 2, Theme 8: rewards / recognition. Styles for the flag-gated "Trophy room"
   hub and its ten screens (badges, daily streak, collection album, celebrations,
   titles, daily chest, avatar accessories, rewards journey map, surprise moments,
   family trophies). Child-first (large tap targets, one primary action), and every
   decorative animation is pinned under reduce-motion so nothing essential moves for
   a motion-sensitive player; the celebration confetti is fired by effects.burst,
   which itself no-ops under reduce-motion, so this file carries only calm static
   styling. Colours reuse the existing CSS variables; nothing here is themed pack
   content. */

/* ---- Trophy room hub ---------------------------------------------------- */
.rewards-hub-tiles {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(9rem, 1fr));
  gap: 0.7rem;
  margin-top: 0.8rem;
}
.rewards-hub-tile {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.2rem;
  padding: 0.9rem 0.85rem;
  border: 1px solid var(--gold, #c9a84c);
  border-radius: 0.7rem;
  background: rgba(0, 0, 0, 0.28);
  color: var(--parchment, #f3e6c4);
  text-align: left;
  cursor: pointer;
}
.rewards-hub-tile:hover,
.rewards-hub-tile:focus-visible { background: rgba(0, 0, 0, 0.42); }
.rewards-hub-tile-label {
  font-weight: 700;
  color: var(--gold-bright, #ffe08a);
  font-size: 1.05rem;
}
.rewards-hub-tile-sub { font-size: 0.85rem; opacity: 0.85; }

/* ---- shared big tap target --------------------------------------------- */
.big-tap { min-height: 3rem; font-size: 1.05rem; }

/* ---- badges + accessories (shared badge tile) -------------------------- */
.reward-badge-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(6.5rem, 1fr));
  gap: 0.6rem;
  margin: 0.5rem 0 1rem;
}
.reward-badge {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.35rem;
  padding: 0.6rem 0.4rem;
  border-radius: 0.6rem;
  background: rgba(0, 0, 0, 0.3);
  text-align: center;
}
.reward-badge.locked { opacity: 0.45; filter: grayscale(1); }
.reward-badge-art { width: 3rem; height: 3rem; object-fit: contain; }
.reward-badge-label { font-size: 0.82rem; color: var(--parchment, #f3e6c4); }

/* ---- daily streak ------------------------------------------------------ */
.rewards-streak-big { text-align: center; margin: 1rem 0 0.3rem; }
.rewards-streak-count {
  font-size: 3.2rem;
  font-weight: 800;
  color: var(--gold-bright, #ffe08a);
}
.rewards-streak-unit { font-size: 1.3rem; color: var(--parchment, #f3e6c4); }
.rewards-streak-flames {
  text-align: center;
  font-size: 1.6rem;
  letter-spacing: 0.3rem;
  color: var(--amber, #f5a623);
  min-height: 1.8rem;
}

/* ---- collection album + progress bars (also used by the rewards map) --- */
.rewards-album-progress {
  text-align: center;
  color: var(--gold, #c9a84c);
  font-size: 0.95rem;
  margin-top: 0.4rem;
}
.rewards-album-bar {
  height: 0.7rem;
  border-radius: 0.5rem;
  background: rgba(0, 0, 0, 0.4);
  overflow: hidden;
  margin: 0.4rem 0 0.9rem;
}
.rewards-album-fill {
  display: block;
  height: 100%;
  background: var(--gold, #c9a84c);
}
.rewards-album-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(5.5rem, 1fr));
  gap: 0.55rem;
}
.rewards-album-cell {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.3rem;
  padding: 0.5rem 0.3rem;
  border-radius: 0.5rem;
  background: rgba(0, 0, 0, 0.3);
}
.rewards-album-cell.empty { opacity: 0.5; }
.rewards-album-art { width: 2.8rem; height: 2.8rem; object-fit: contain; }
.rewards-album-placeholder { font-size: 2rem; color: var(--gold, #c9a84c); }
.rewards-album-name { font-size: 0.78rem; text-align: center; }

/* ---- celebrations ------------------------------------------------------ */
.rewards-celebrate-banner {
  margin: 0.8rem 0;
  padding: 0.8rem 1rem;
  border-radius: 0.6rem;
  text-align: center;
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--gold-bright, #ffe08a);
  background: rgba(0, 0, 0, 0.32);
  min-height: 1.6rem;
}
.rewards-celebrate-stage { text-align: center; }

/* ---- titles ------------------------------------------------------------ */
.rewards-title-display {
  text-align: center;
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--gold-bright, #ffe08a);
  margin: 0.8rem 0;
}
.rewards-title-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.5rem 0.6rem;
  border-radius: 0.45rem;
  background: rgba(0, 0, 0, 0.25);
  margin-bottom: 0.4rem;
}
.rewards-title-row.chosen { border: 1px solid var(--gold, #c9a84c); }
.rewards-title-chosen { font-size: 0.78rem; color: var(--gold, #c9a84c); }

/* ---- daily chest ------------------------------------------------------- */
.rewards-chest-stage { text-align: center; margin-top: 0.8rem; }
.rewards-chest-open {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
}
.rewards-chest-art { width: 5rem; height: 5rem; object-fit: contain; }
.rewards-chest-label {
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--gold-bright, #ffe08a);
}

/* ---- rewards journey map ----------------------------------------------- */
.rewards-path { margin-top: 0.6rem; }
.rewards-path-node {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  padding: 0.4rem 0.5rem;
  border-left: 2px solid rgba(255, 255, 255, 0.15);
  margin-left: 0.6rem;
}
.rewards-path-node.earned { border-left-color: var(--gold, #c9a84c); }
.rewards-path-dot {
  width: 1.4rem;
  text-align: center;
  color: var(--gold-bright, #ffe08a);
}
.rewards-path-node.locked .rewards-path-dot { color: rgba(255, 255, 255, 0.4); }
.rewards-path-node.locked .rewards-path-label { opacity: 0.55; }

/* ---- surprise moments -------------------------------------------------- */
.rewards-surprise-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  padding: 1rem;
  border-radius: 0.7rem;
  background: rgba(0, 0, 0, 0.32);
  text-align: center;
}
.rewards-surprise-art { width: 4rem; height: 4rem; object-fit: contain; }
.rewards-surprise-text { font-size: 1.1rem; color: var(--parchment, #f3e6c4); }
.rewards-surprise-cosmetic { font-size: 0.9rem; color: var(--gold, #c9a84c); }

/* ---- family trophies --------------------------------------------------- */
.rewards-family-trophy {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.6rem 0.7rem;
  border-radius: 0.5rem;
  background: rgba(0, 0, 0, 0.28);
  margin-bottom: 0.45rem;
}
.rewards-family-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2rem;
  height: 2rem;
  border-radius: 50%;
  background: var(--gold, #c9a84c);
  color: #1a1208;
  font-weight: 800;
}
.rewards-family-label { color: var(--parchment, #f3e6c4); }

/* ---- reduce motion: pin every decorative transition -------------------- */
@media (prefers-reduced-motion: reduce) {
  .rewards-hub-tile,
  .rewards-album-fill { transition: none !important; animation: none !important; }
}
