/* Shared by the daily pages of Word Search, Fill-Ins, Codewords and Anagrams:
   no new-puzzle or difficulty buttons, today's date in the header, and the
   completion card with its close button, stat tiles and link to the other
   daily puzzles. */
[data-page="daily"] .btn-restart,
[data-page="daily"] .diff-select { display: none; }

.daily-label {
  font-family: 'Nunito', sans-serif;
  font-weight: 800;
  font-size: 0.68rem;
  line-height: 1;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: #f6ad55;
  white-space: nowrap;
}

[data-page="daily"] .overlay-card { position: relative; }
.overlay-close {
  position: absolute;
  top: 14px;
  right: 14px;
  width: 36px;
  height: 36px;
  display: grid;
  place-items: center;
  border: 0;
  border-radius: 50%;
  background: rgba(255,255,255,0.08);
  color: rgba(255,255,255,0.92);
  font-size: 1rem;
  cursor: pointer;
  transition: background 0.2s;
}
.overlay-close:hover { background: rgba(255,255,255,0.16); }

/* Two stats a row, each with its icon; the current streak is highlighted. */
.daily-stats {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin: 6px 0 24px;
}
.daily-stat {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  padding: 14px 8px 12px;
  border-radius: 14px;
  background: rgba(255,255,255,0.06);
}
.daily-stat.streak {
  background: linear-gradient(135deg, rgba(246,173,85,0.24), rgba(237,137,54,0.12));
  box-shadow: inset 0 0 0 1px rgba(246,173,85,0.3);
}
.daily-stat-value {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-family: 'Nunito', sans-serif;
  font-weight: 900;
  font-size: 1.6rem;
  line-height: 1.1;
  font-variant-numeric: tabular-nums;
}
.daily-stat.streak .daily-stat-value { color: #f9e2b4; }
.daily-stat-icon { font-size: 1.2rem; line-height: 1; }
.daily-stat-label {
  font-size: 0.64rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  opacity: 0.6;
  font-weight: 700;
}
.overlay-card a.btn-primary {
  display: inline-block;
  margin-bottom: 18px;
  text-decoration: none;
}
.overlay-card .daily-next {
  margin: 0;
  font-size: 0.85rem;
  opacity: 0.6;
}

/* Narrow phones: more room for the card's tiles and link. */
@media (max-width: 420px) {
  [data-page="daily"] .overlay-card { padding: 30px 20px; }
  .overlay-card a.btn-primary { padding: 14px 24px; }
}
