/* ═══════════════════════════════════════════
   HOME — Streak bar · Today card · Puzzle grid · Schedule strip
   ═══════════════════════════════════════════ */

/* ── Streak bar ── */
.streak-bar {
  display: flex;
  gap: 12px;
  margin-bottom: 24px;
}
.streak-chip {
  flex: 1;
  background: var(--paper2);
  border: 1px solid var(--paper3);
  border-radius: var(--radius);
  padding: 12px 16px;
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.streak-chip .val {
  font-family: 'Fraunces', serif;
  font-size: 24px;
  font-weight: 600;
  color: var(--ink);
  line-height: 1;
}
.streak-chip .lbl {
  font-size: 11px;
  color: var(--ink3);
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

/* ── Guest status pill ── */
.guest-pill {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  background: var(--paper2);
  border: 1px solid var(--paper3);
  border-radius: var(--radius);
  padding: 10px 14px;
  margin-bottom: 20px;
  cursor: pointer;
  text-align: left;
  font-family: inherit;
  transition: border-color 0.15s ease, background 0.15s ease;
}
.guest-pill:hover {
  border-color: var(--ink3);
  background: var(--paper3);
}
.guest-pill-text {
  font-size: 13px;
  color: var(--ink3);
}
.guest-pill-cta {
  font-size: 13px;
  font-weight: 600;
  color: var(--ink);
  white-space: nowrap;
}

/* ── Today's puzzle card ── */
.today-card {
  background: var(--ink);
  color: var(--paper);
  border-radius: 16px;
  padding: 28px;
  margin-bottom: 20px;
  position: relative;
  overflow: hidden;
}
/* Decorative circle */
.today-card::before {
  content: '';
  position: absolute;
  top: -40px; right: -40px;
  width: 160px; height: 160px;
  border-radius: 50%;
  background: var(--accent);
  opacity: 0.12;
}
.today-eyebrow {
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent2);
  font-weight: 500;
  margin-bottom: 10px;
}
.today-title {
  font-family: 'Fraunces', serif;
  font-size: 30px;
  font-weight: 700;
  line-height: 1.1;
  margin-bottom: 10px;
}
.today-desc {
  font-size: 14px;
  color: rgba(250,248,243,0.65);
  line-height: 1.55;
  margin-bottom: 24px;
  max-width: 420px;
}

/* Button row inside today card */
.today-btn-row {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
}
.play-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--accent);
  color: white;
  font-family: 'DM Sans', sans-serif;
  font-size: 15px;
  font-weight: 500;
  padding: 12px 24px;
  border-radius: 8px;
  border: none;
  cursor: pointer;
  transition: background var(--t-std), transform var(--t-fast);
}
.play-btn:hover  { background: var(--accent2); }
.play-btn:active { transform: scale(0.98); }
.play-btn svg    { width: 16px; height: 16px; }

/* Completed badge shown inside today card */
.today-completed-badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  background: var(--green);
  color: white;
  font-size: 13px;
  font-weight: 600;
  padding: 8px 14px;
  border-radius: 8px;
  letter-spacing: 0.02em;
  animation: popIn 0.25s cubic-bezier(0.34,1.6,0.64,1);
}

/* Freeplay banner (sits above modal content) */
.freeplay-banner {
  background: var(--blue);
  color: white;
  font-size: 12px;
  font-weight: 500;
  text-align: center;
  padding: 7px 16px;
  letter-spacing: 0.03em;
}

/* ── Puzzle type grid ── */
.puzzle-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin-bottom: 8px;
}
.puzzle-card {
  background: var(--paper2);
  border: 1px solid var(--paper3);
  border-radius: var(--radius);
  padding: 18px;
  cursor: pointer;
  position: relative;
  overflow: hidden;
  transition: box-shadow var(--t-std), border-color var(--t-std), transform var(--t-fast);
}
.puzzle-card:hover {
  box-shadow: var(--shadow);
  transform: translateY(-1px);
}
.puzzle-card.active {
  border-color: var(--accent);
  background: white;
  box-shadow: 0 0 0 1px var(--accent), var(--shadow);
}
.puzzle-card.completed { border-color: var(--green); }
.puzzle-card.completed::after {
  content: '✓';
  position: absolute;
  top: 10px; right: 12px;
  color: var(--green);
  font-size: 14px;
  font-weight: 600;
}

/* Coming-soon variant */
.coming-soon-card          { cursor: default; opacity: 0.82; }
.coming-soon-card:hover    { transform: none; box-shadow: none; }
.coming-soon-tag {
  display: inline-block;
  font-size: 10px;
  font-weight: 600;
  color: var(--accent);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 4px;
}

.card-emoji { font-size: 22px; margin-bottom: 8px; display: block; }
.card-title { font-family: 'Fraunces', serif; font-size: 15px; font-weight: 600; margin-bottom: 4px; }
.card-sub   { font-size: 12px; color: var(--ink3); line-height: 1.4; }

/* Difficulty badge */
.card-badge {
  display: inline-block;
  margin-top: 8px;
  font-size: 10px;
  padding: 2px 7px;
  border-radius: 20px;
  background: var(--paper3);
  color: var(--ink2);
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}
.card-badge.easy   { background: #d4edda; color: #1a5928; }
.card-badge.medium { background: #fff3cd; color: #7a5800; }
.card-badge.hard   { background: #fde8e4; color: #8a2010; }

/* ── Schedule strip ── */
.schedule-strip {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  padding-bottom: 4px;
  scrollbar-width: none;
}
.schedule-strip::-webkit-scrollbar { display: none; }

.schedule-day { flex-shrink: 0; text-align: center; width: 52px; }
.schedule-day .s-emoji {
  width: 40px; height: 40px;
  background: var(--paper2);
  border: 1px solid var(--paper3);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  margin: 0 auto 4px;
}
.schedule-day .s-day {
  font-size: 10px;
  color: var(--ink3);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}
.schedule-day.today .s-emoji { background: var(--ink); border-color: var(--ink); }
