/* ═══════════════════════════════════════════════════════════════
   MiniMümin — Çıkartma Albümü + Günlük Görev + Seri (dalga 2)
   js/album.js ile birlikte çalışır.
   ═══════════════════════════════════════════════════════════════ */

/* ── Dashboard üst bar: seri + albüm sayaçları ── */
#streak-pill {
  display: flex;
  align-items: center;
  gap: 4px;
  background: #FFFFFF;
  border-radius: 999px;
  padding: 6px 12px;
  box-shadow: var(--shadow-sm);
  font: 900 15px/1 var(--font);
  color: var(--text-s);
  opacity: .55;
}
#streak-pill.streak-active { opacity: 1; color: #E8531A; }
.streak-flame { font-size: 16px; }

.btn-album, #album-count-pill {
  display: flex;
  align-items: center;
  gap: 4px;
  background: #FFFFFF;
  border-radius: 999px;
  padding: 6px 12px;
  box-shadow: var(--shadow-sm);
  font: 900 14px/1 var(--font);
  color: var(--text);
  border: none;
  cursor: pointer;
}
.btn-album:active { transform: scale(.95); }

/* ── Günlük görev şeridi ── */
#daily-quest-bar {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  background: linear-gradient(90deg, #FFF3D6, #FFE9B8);
  border: 2px solid #F4C860;
  border-radius: var(--r-md);
  padding: 9px 14px;
  margin-bottom: 12px;
  font: 800 13.5px/1.3 var(--font);
  color: var(--text);
}
.quest-title { font-weight: 900; }
.quest-cells { display: inline-flex; gap: 6px; }
.quest-cell {
  width: 26px;
  height: 26px;
  border-radius: 9px;
  background: #FFFFFF;
  border: 2px dashed #D9A93B;
  font: 900 13px/22px var(--font);
  text-align: center;
  color: #B98A1E;
}
.quest-cell-done {
  background: var(--green);
  border-style: solid;
  border-color: #0B9B6F;
  color: #FFFFFF;
}
.quest-goal { margin-left: auto; color: #8A6A1C; }
.quest-done-label { margin-left: auto; color: #0B7F58; font-weight: 900; }

/* ── Sonuç ekranı ödül rozetleri (B57) ──
   2-3 yaş okuyamaz: cümle yok, GÖRSEL rozet. Anlam title/aria-label'da;
   sayı gerekiyorsa rozetin köşesinde küçük bir sayaç durur. */
#result-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: center;
  align-items: center;
  margin: 2px auto 0;
  max-width: 460px;
}
#result-badges:empty { margin: 0; }
#result-reward {
  display: contents;   /* rozetler doğrudan #result-badges akışına girsin */
}
.reward-item {
  position: relative;
  width: 62px; height: 62px;
  display: grid;
  place-items: center;
  font-size: 30px;
  line-height: 1;
  background: #FFFFFF;
  border: 2.5px solid var(--yellow);
  border-radius: 50%;
  box-shadow: var(--shadow-sm);
  animation: reward-pop .5s cubic-bezier(.3, 1.5, .5, 1) both;
  cursor: default;
}
.reward-item:nth-child(2) { animation-delay: .12s; }
.reward-item:nth-child(3) { animation-delay: .24s; }
.reward-item:nth-child(4) { animation-delay: .36s; }
/* Sayı rozeti: köşede küçük yeşil sayaç (ör. +2⭐) */
.reward-count {
  position: absolute;
  right: -4px; bottom: -4px;
  background: #0BBF7A;
  color: #fff;
  border-radius: 999px;
  padding: 1px 7px;
  font: 900 12px/1.45 var(--font);
  border: 2px solid #fff;
}
/* Hikâye / belge / mola: yalnız kazanılınca görünen dokunulur rozet */
.result-badge {
  width: 62px; height: 62px;
  display: grid;
  place-items: center;
  font-size: 30px;
  line-height: 1;
  background: #FFF3D6;
  border: 2.5px solid #F4C860;
  border-radius: 50%;
  box-shadow: var(--shadow-sm);
  cursor: pointer;
  animation: reward-pop .5s cubic-bezier(.3, 1.5, .5, 1) both;
  transition: transform .15s;
}
.result-badge:active { transform: scale(.9); }
.result-badge[hidden] { display: none; }
/*
   ÖNEMLİ: genel `[hidden]` kuralı olmadığı için .result-badge[hidden] şart —
   yukarıdaki `display:grid` aksi hâlde hidden'ı ezip gizli rozetleri gösterir.
*/
@keyframes reward-pop {
  from { opacity: 0; transform: translateY(10px) scale(.9); }
  to   { opacity: 1; transform: translateY(0)   scale(1);  }
}

/* ── Albüm ekranı ── */
#screen-album {
  overflow-y: auto;
  justify-content: flex-start;
}
#screen-album .album-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(96px, 1fr));
  gap: 14px;
  padding: 18px;
  max-width: 560px;
  margin: 0 auto;
}
.album-card {
  background: #FFFFFF;
  border-radius: var(--r-md);
  padding: 14px 8px 10px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  box-shadow: var(--shadow-sm);
  position: relative;
}
.album-card .album-emoji { font-size: 42px; line-height: 1.15; }
.album-card .album-sticker-img { width: 54px; height: 54px; object-fit: contain; display: block; filter: drop-shadow(0 3px 6px rgba(0,0,0,.15)); user-select: none; }
.album-card .album-name { font: 800 12px/1.2 var(--font); color: var(--text); text-align: center; }
.album-card.owned { border: 2.5px solid var(--yellow); }
.album-card.missing { opacity: .55; background: #F2F0EA; }
.album-card.missing .album-emoji { filter: grayscale(1); }
.album-dup {
  position: absolute;
  top: 6px;
  right: 8px;
  background: var(--green);
  color: #fff;
  font: 900 11px/1 var(--font);
  padding: 3px 7px;
  border-radius: 999px;
}
