/* ---------- Home ---------- */
.home-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 18px 8px;
}
.app-title {
  font-size: 1.7rem;
  font-weight: 700;
  letter-spacing: .5px;
  background: linear-gradient(120deg, #ffe9b0, var(--accent));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.home-scroll {
  flex: 1;
  overflow-y: auto;
  padding: 8px 18px calc(24px + var(--safe-bottom));
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.daily-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  border: none;
  border-radius: var(--radius);
  padding: 16px 18px;
  background: linear-gradient(120deg, #275d4a, #16523f);
  border: 1px solid rgba(255, 255, 255, .1);
  color: var(--ink);
  cursor: pointer;
  box-shadow: var(--shadow);
  text-align: left;
}
.daily-card:active { transform: scale(.985); }
.daily-label { font-size: .78rem; text-transform: uppercase; letter-spacing: 1px; color: var(--accent); font-weight: 700; }
.daily-date { font-size: 1.2rem; font-weight: 600; margin-top: 2px; }
.daily-streak { font-size: .8rem; color: var(--ink-dim); margin-top: 2px; }
.daily-card-right {
  font-size: 1.4rem;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: rgba(255, 255, 255, .1);
}
.daily-card-right.done { background: var(--accent); color: #33240a; }

.collection-list { display: flex; flex-direction: column; gap: 16px; }

.collection-card {
  position: relative;
  border: none;
  border-radius: var(--radius);
  overflow: hidden;
  height: 130px;
  cursor: pointer;
  box-shadow: var(--shadow);
  color: var(--ink);
  padding: 0;
  background: var(--bg-2);
}
.collection-card:active { transform: scale(.985); }
.collection-card img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.collection-card .cc-shade {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(6, 20, 16, .85) 0%, rgba(6, 20, 16, .1) 60%);
}
.collection-card .cc-info {
  position: absolute;
  left: 16px;
  right: 16px;
  bottom: 12px;
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
}
.cc-name { font-size: 1.25rem; font-weight: 700; text-transform: capitalize; text-shadow: 0 1px 4px rgba(0,0,0,.6); }
.cc-progress { font-size: .85rem; color: #fff; background: rgba(0, 0, 0, .45); border-radius: 20px; padding: 4px 10px; }

.home-footer {
  text-align: center;
  font-size: .75rem;
  color: var(--ink-dim);
  padding-top: 8px;
}

/* ---------- Collection (level grid) ---------- */
.level-grid-scroll {
  flex: 1;
  overflow-y: auto;
  padding: 6px 16px calc(24px + var(--safe-bottom));
}
.level-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(105px, 1fr));
  gap: 12px;
}
.level-tile {
  position: relative;
  border: none;
  padding: 0;
  border-radius: 12px;
  overflow: hidden;
  aspect-ratio: 3 / 4;
  cursor: pointer;
  background: var(--bg-2);
  box-shadow: var(--shadow);
  color: var(--ink);
}
.level-tile img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.level-tile .lt-label {
  position: absolute;
  left: 6px;
  bottom: 6px;
  font-size: .72rem;
  font-weight: 700;
  background: rgba(0, 0, 0, .55);
  border-radius: 8px;
  padding: 3px 8px;
}
.level-tile .lt-mark {
  position: absolute;
  top: 6px;
  right: 6px;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-size: .85rem;
  background: rgba(0, 0, 0, .5);
}
.level-tile.done .lt-mark { background: var(--accent); color: #33240a; }
.level-tile.locked img { filter: grayscale(1) blur(3px) brightness(.55); }
.level-tile.locked { cursor: default; }
.level-tile.inprogress .lt-mark { background: var(--accent-2); color: #fff; }
