/* =========================================================================
   DAILY CHALLENGE VIEW
   ========================================================================= */
.hidden { display: none !important; }

.daily-wrap {
  max-width: 640px;
  margin: 0 auto;
  padding: 34px 24px 60px;
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.daily-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.daily-header h2 { font-size: 24px; }

.daily-panel {
  background: var(--bg-card);
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 30px 28px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
  text-align: center;
}

.daily-number {
  font-size: 26px;
  font-weight: 800;
  letter-spacing: -.4px;
  background: linear-gradient(92deg, var(--accent-green-hover), var(--neon-cyan));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.daily-date { font-size: 14px; font-weight: 700; color: var(--text-muted); }

.daily-copy { max-width: 44ch; color: var(--text-muted); }

.daily-note { font-size: 12.5px; color: #8f8b86; }

/* The run — progress dots left, ticking timer right */
.daily-run-bar {
  width: min(40vh, 400px);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.daily-dots { display: flex; gap: 8px; }

.daily-dot {
  width: 16px;
  height: 16px;
  border-radius: 5px;
  background: var(--bg-inset);
  border: 1px solid var(--line);
}

.daily-dot.current { border-color: var(--accent-blue); box-shadow: 0 0 8px rgba(59, 130, 246, .55); }
.daily-dot.win     { background: var(--accent-emerald); border-color: var(--accent-emerald); }
.daily-dot.miss    { background: #eab308; border-color: #eab308; }

.daily-desc { max-width: 46ch; color: var(--text-muted); min-height: 3em; }

/* Results panel */
.daily-squares { font-size: 34px; letter-spacing: 6px; }

.daily-time { font-size: 20px; font-weight: 800; color: var(--text-main); }

.daily-done-stats { display: flex; gap: 10px; }

/* Streak calendar — one month, played days light up */
.daily-calendar-card {
  width: 100%;
  background: var(--bg-inset);
  border: 1px solid rgba(255, 255, 255, .05);
  border-radius: 12px;
  padding: 16px;
  margin-top: 6px;
}

.daily-calendar-card h3 {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: .8px;
  color: var(--text-muted);
  margin-bottom: 10px;
}

.daily-calendar {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 5px;
}

.cal-head {
  font-size: 10px;
  font-weight: 700;
  color: #6f6c67;
  text-transform: uppercase;
  padding: 2px 0;
}

.cal-day {
  aspect-ratio: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 7px;
  font-size: 12px;
  font-weight: 600;
  color: #8f8b86;
  background: rgba(255, 255, 255, .025);
}

.cal-day.cal-empty { background: none; }

.cal-day.cal-played {
  background: rgba(129, 182, 76, .28);
  color: #d9f0c0;
}

.cal-day.cal-perfect {
  background: var(--accent-green);
  color: #fff;
  box-shadow: 0 0 10px rgba(129, 182, 76, .45);
}

.cal-day.cal-today { outline: 2px solid var(--accent-blue); outline-offset: -2px; }

