:root {
  --bg: #f9f6f0;
  --card: #ffffff;
  --ink: #33281f;
  --ink-soft: #846f5c;
  --accent: #d45f11;
  --accent-ink: #fffaf4;
  --border: #e0d6cc;
  --border-soft: #c5c1b9;
  --good: #3a7d44;
  --danger: #b23b22;
  --radius: 26px;
  --pill: 999px;
  --font-display: "Bricolage Grotesque", Inter, sans-serif;
  --font-body: Inter, system-ui, sans-serif;
  --font-mono: "JetBrains Mono", ui-monospace, monospace;
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  height: 100%;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-body);
  overflow: hidden;
}

#app {
  height: 100vh;
  display: flex;
  flex-direction: column;
}

/* ---------- Top bar ---------- */

#topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 28px;
  color: var(--ink);
  flex: 0 0 auto;
  border-bottom: 1px solid var(--border);
  gap: 12px;
}

#topbar button {
  font-size: 1.8rem;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 18px;
  color: var(--ink);
  padding: 8px 16px;
  cursor: pointer;
}

#topbar button:hover, #topbar button:focus { background: var(--border); }

#topbar-left { display: flex; align-items: center; gap: 10px; }

#back-btn {
  font-size: 1.2rem !important;
  font-weight: 700;
  font-family: var(--font-body);
}

#brand-link {
  font-family: var(--font-display);
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--ink);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

#clock { font-size: 1.5rem; font-weight: 600; min-width: 110px; text-align: right; font-family: var(--font-mono); }

/* ---------- Screens ---------- */

#screen-root {
  flex: 1 1 auto;
  overflow-y: auto;
  padding: 10px 36px 20px;
  display: flex;
  flex-direction: column;
}

.screen { display: flex; flex-direction: column; align-items: center; flex: 1; }
.screen.hidden { display: none; }

.screen-title {
  font-family: var(--font-display);
  color: var(--ink);
  font-size: 2.4rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  margin: 4px 0 14px;
}

#home-greeting {
  font-family: var(--font-display);
  color: var(--ink);
  font-size: 3rem;
  font-weight: 700;
  letter-spacing: -0.03em;
  margin: 6px 0 4px;
  text-align: center;
}

#home-sub {
  color: var(--ink-soft);
  font-size: 1.5rem;
  margin: 0 0 6px;
  text-align: center;
}

.link-btn {
  background: none;
  border: none;
  color: var(--ink-soft);
  font-size: 1.1rem;
  text-decoration: underline;
  cursor: pointer;
  margin-bottom: 20px;
  padding: 6px;
}
.link-btn:hover { color: var(--accent); }

.tiles {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 22px;
  width: 100%;
  max-width: 820px;
}

.tiles.small { grid-template-columns: repeat(3, 1fr); max-width: 980px; }

#screen-home .tiles { grid-template-columns: repeat(3, 1fr); max-width: 980px; }

.tile {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 30px 16px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  cursor: pointer;
  box-shadow: 0 6px 18px rgba(51, 40, 31, 0.07);
  transition: transform 0.08s ease, box-shadow 0.08s ease;
  min-height: 130px;
}

.tile:hover, .tile:focus { transform: translateY(-3px); box-shadow: 0 10px 22px rgba(51, 40, 31, 0.12); }
.tile:active { transform: scale(0.97); }

.tile-icon { font-size: 3.2rem; }
.tile-label { font-family: var(--font-display); font-size: 1.6rem; font-weight: 700; color: var(--ink); text-align: center; }
.tile-desc { font-size: 1rem; color: var(--ink-soft); text-align: center; margin-top: -6px; }
.tile-thumb { width: 72px; height: 72px; border-radius: 16px; object-fit: cover; }
.tile-badge {
  background: var(--border);
  color: var(--ink-soft);
  font-size: 0.8rem;
  font-weight: 600;
  padding: 4px 12px;
  border-radius: var(--pill);
  margin-top: 2px;
}

.big-text {
  color: var(--ink);
  font-size: 1.9rem;
  text-align: center;
  max-width: 820px;
  line-height: 1.4;
  margin: 10px 0;
}

.say-text {
  color: var(--ink-soft);
  font-size: 1.4rem;
  text-align: center;
  max-width: 760px;
  line-height: 1.5;
  margin: 8px 0 18px;
}

.words-display {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 14px;
  margin: 16px 0;
}

.word-chip {
  background: var(--accent);
  color: var(--accent-ink);
  font-size: 1.7rem;
  font-weight: 700;
  padding: 12px 24px;
  border-radius: var(--pill);
}

/* Word Categories: every valid answer as a big check-marked chip, in the
   order it was said -- anything past the round's goal gets a small sparkle
   instead of just being left uncounted. */
.category-chips {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
  margin: 16px 0;
}

.category-chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--accent);
  color: var(--accent-ink);
  font-size: 1.4rem;
  font-weight: 700;
  padding: 10px 22px;
  border-radius: var(--pill);
}

.category-chip::before {
  content: "✓";
  font-weight: 900;
}

.category-chip.beyond-goal {
  background: var(--ink);
  color: var(--accent-ink);
}

.category-chip.beyond-goal::after {
  content: "✨";
}

/* ---------- Matching pairs ---------- */

.matching-board {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
  width: 100%;
  max-width: 560px;
  margin: 16px 0;
}

.match-card {
  aspect-ratio: 1;
  border-radius: 18px;
  border: 1px solid var(--border);
  background: var(--accent);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2.6rem;
  cursor: pointer;
  padding: 0;
  transition: transform 0.12s ease;
}

.match-card:active { transform: scale(0.94); }
.match-card.flipped { background: var(--card); }
.match-card.matched { background: var(--card); border-color: var(--good); opacity: 0.6; cursor: default; }

@media (max-width: 700px) {
  .matching-board { grid-template-columns: repeat(3, 1fr); max-width: 420px; }
}

.result-box {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px 30px;
  max-width: 760px;
  font-size: 1.5rem;
  text-align: center;
  color: var(--ink);
  margin: 10px 0;
}
.result-box.hidden { display: none; }

#stretch-display-banner, #meditation-display-banner {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px 30px;
  max-width: 500px;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
}

.action-row {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  justify-content: center;
  margin-top: 16px;
}

.primary-btn, .secondary-btn {
  font-family: var(--font-body);
  font-size: 1.4rem;
  font-weight: 600;
  border: none;
  border-radius: var(--pill);
  padding: 18px 30px;
  cursor: pointer;
  min-height: 68px;
}

.primary-btn { background: var(--ink); color: var(--accent-ink); }
.primary-btn:hover { background: #4a3c2d; }

.secondary-btn { background: var(--card); color: var(--ink); border: 1px solid var(--border); }
.secondary-btn:hover { background: var(--border); }

.hidden { display: none !important; }

/* ---------- Start screen (profile picker) ---------- */

#screen-start .tiles.small { margin-top: 6px; }

.profile-tile .tile-icon { font-size: 2.6rem; }

#add-profile-row {
  margin-top: 22px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
}

#add-profile-form {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  justify-content: center;
}

#add-profile-name {
  font-size: 1.3rem;
  padding: 14px 18px;
  border-radius: 18px;
  border: 1px solid var(--border-soft);
  min-width: 220px;
}

/* ---------- Log an activity ---------- */

#log-step-custom {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  justify-content: center;
  margin-top: 10px;
}

#log-custom-name {
  font-size: 1.3rem;
  padding: 14px 18px;
  border-radius: 18px;
  border: 1px solid var(--border-soft);
  min-width: 220px;
}

/* ---------- Chair stretch ---------- */

.video-box {
  width: 200px;
  height: 200px;
  border-radius: var(--radius);
  background: var(--card);
  border: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  margin-bottom: 18px;
}

.video-box video { width: 100%; height: 100%; object-fit: cover; }

.video-box.video-placeholder {
  flex-direction: column;
  gap: 6px;
  padding: 10px;
  text-align: center;
}

.video-placeholder-icon { font-size: 2.6rem; }
.video-placeholder-text { font-size: 0.95rem; font-weight: 600; color: var(--ink-soft); }

.progress-bar {
  width: 100%;
  max-width: 600px;
  height: 16px;
  background: var(--border);
  border-radius: 10px;
  overflow: hidden;
  margin-top: 6px;
}

.progress-fill {
  height: 100%;
  width: 0%;
  background: var(--accent);
  transition: width 0.3s linear;
}

/* ---------- Meditation / timed activity ---------- */

#meditation-circle, #timed-activity-circle {
  width: 240px;
  height: 240px;
  border-radius: 50%;
  background: var(--card);
  border: 6px solid var(--accent);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--ink);
  font-family: var(--font-display);
  font-size: 3.4rem;
  font-weight: 700;
  margin: 10px 0 20px;
}

#meditation-media-wrap:empty { display: none; }
#meditation-media-wrap audio,
#meditation-media-wrap video {
  width: 100%;
  max-width: 420px;
  margin: 10px 0 20px;
}
#meditation-media-wrap video { border-radius: var(--radius); }

/* ---------- Progress / calendar ---------- */

#progress-streak { font-family: var(--font-display); font-size: 2rem; font-weight: 700; }

.calendar-weekday-row {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 8px;
  width: 100%;
  max-width: 700px;
  margin: 0 0 6px;
}

.calendar-weekday-row span {
  text-align: center;
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--ink-soft);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.calendar-grid {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 8px;
  width: 100%;
  max-width: 700px;
  margin: 10px 0 20px;
}

.cal-cell {
  aspect-ratio: 1;
  border-radius: 10px;
  background: var(--card);
  border: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2px;
  font-size: 1rem;
  color: var(--ink-soft);
  font-weight: 600;
  cursor: pointer;
  position: relative;
}

.cal-cell:hover { border-color: var(--accent); }

.cal-cell.future { opacity: 0.4; cursor: default; }
.cal-cell.future:hover { border-color: var(--border); }

.cal-cell.today { border: 2px solid var(--accent); }

.cal-cell.active {
  background: var(--accent);
  border-color: var(--accent);
  color: var(--accent-ink);
}

.cal-cell .cal-check { font-size: 0.8rem; line-height: 1; }

.section-sub { font-family: var(--font-display); color: var(--ink); font-size: 1.5rem; font-weight: 700; margin: 6px 0 12px; }

.badge-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: center;
  max-width: 820px;
  margin-bottom: 20px;
}

#family-shelf { width: 100%; max-width: 980px; margin-top: 18px; }

.family-shelf-list {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
}

.family-shelf-card {
  flex: 1 1 220px;
  min-height: auto;
  padding: 18px 20px;
  font-size: 1.2rem;
  font-weight: 600;
  text-align: center;
}

.family-shelf-card.played { background: var(--bg); color: var(--ink-soft); }
.family-shelf-card.locked { cursor: default; color: var(--ink-soft); font-weight: 500; }
.family-shelf-card.locked:hover { transform: none; box-shadow: 0 6px 18px rgba(51, 40, 31, 0.07); }

.engagement-list {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
  max-width: 760px;
  margin-bottom: 20px;
}

/* ---------- Chat ---------- */

#screen-chat { width: 100%; align-items: center; }

.chat-transcript {
  width: 100%;
  max-width: 760px;
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 14px;
  overflow-y: auto;
  padding: 6px 4px 18px;
  margin-bottom: 8px;
}

.chat-msg {
  font-size: 1.4rem;
  line-height: 1.4;
  max-width: 85%;
  padding: 14px 20px;
  border-radius: 20px;
}

.chat-msg-user {
  align-self: flex-end;
  background: var(--accent);
  color: var(--accent-ink);
  border-bottom-right-radius: 6px;
}

.chat-msg-vera {
  align-self: flex-start;
  background: var(--card);
  color: var(--ink);
  border: 1px solid var(--border);
  border-bottom-left-radius: 6px;
}

/* Every Vera message/game-card sits in a row with her avatar for that
   turn -- only the newest one is ever "live" (see main.js); the rest are
   frozen on the idle frame once superseded. */
.chat-row {
  display: flex;
  align-items: flex-end;
  gap: 10px;
  max-width: 85%;
}

.chat-row-vera { align-self: flex-start; }
.chat-row-wide { max-width: 96%; width: 100%; }
.chat-row .chat-msg { max-width: none; align-self: auto; }

.chat-avatar {
  flex: none;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  overflow: hidden;
  background: var(--card);
  border: 1px solid var(--border);
}

.chat-avatar-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  opacity: 1;
  transition: opacity 0.18s ease;
}

.chat-avatar-img.avatar-fade-out { opacity: 0; }

@media (prefers-reduced-motion: reduce) {
  .chat-avatar-img { transition: none; }
}

/* "..." placeholder shown in Vera's row while her reply is in flight --
   swapped in place for the real text once it arrives. */
.chat-typing {
  display: flex;
  align-items: center;
  gap: 5px;
  padding: 18px 20px;
}

.chat-typing-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--border);
  opacity: 0.6;
}

@media (prefers-reduced-motion: no-preference) {
  .chat-typing-dot { animation: chat-typing-bounce 1.1s ease-in-out infinite; }
  .chat-typing-dot:nth-child(2) { animation-delay: 0.15s; }
  .chat-typing-dot:nth-child(3) { animation-delay: 0.3s; }
}

@keyframes chat-typing-bounce {
  0%, 60%, 100% { transform: translateY(0); opacity: 0.6; }
  30% { transform: translateY(-5px); opacity: 1; }
}

/* The Chat screen tells Vera's state through each message's own avatar
   instead -- the shared corner companion stays out of the way there. */
#screen-chat .vera-slot { display: none; }

.chat-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: center;
  width: 100%;
  max-width: 820px;
}

.chip-btn {
  font-family: var(--font-body);
  font-size: 1.2rem;
  font-weight: 600;
  background: var(--card);
  color: var(--ink);
  border: 1px solid var(--border-soft);
  border-radius: var(--pill);
  padding: 14px 22px;
  min-height: 56px;
  cursor: pointer;
}

.chip-btn:hover, .chip-btn:focus { background: var(--border); }
.chip-btn:active { transform: scale(0.97); }

/* An inline game (word recall, matching pairs, finish the saying, word
   categories) played right in the transcript instead of its own screen --
   same card look as a Vera message, just roomier for a board or choices. */
.chat-game-card { max-width: 96%; width: 100%; }

.chat-game-title {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.2rem;
  margin-bottom: 8px;
}

.chat-game-prompt { font-size: 1.3rem; margin-bottom: 10px; }

.chat-game-words {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 6px 0;
}

.chat-game-choices {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.chat-game-board {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 10px;
  max-width: 420px;
  margin: 6px 0;
}

.chat-game-board .match-card { font-size: 1.8rem; }

@media (max-width: 700px) {
  .chat-game-board { grid-template-columns: repeat(3, 1fr); max-width: 320px; }
}

.engagement-list .say-text { margin: 4px 0; }

.badge {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 18px;
  padding: 12px 18px;
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--ink);
  display: flex;
  align-items: center;
  gap: 8px;
}

/* ---------- Vera companion ---------- */

.vera-slot {
  width: 100%;
  display: flex;
  justify-content: center;
  min-height: 0;
}

#screen-start .vera-slot,
#screen-home .vera-slot {
  min-height: 190px;
}

.vera-companion {
  display: flex;
  align-items: center;
  gap: 12px;
  transition: transform 0.4s ease, opacity 0.4s ease;
}

.vera-companion[data-size="large"] {
  flex-direction: column;
  gap: 10px;
}

.vera-companion[data-size="corner"] {
  flex-direction: row;
  align-self: flex-start;
}

.vera-companion[data-size="celebrate"] {
  flex-direction: column;
  gap: 16px;
}

.vera-figure {
  display: flex;
  align-items: center;
  justify-content: center;
  flex: none;
  filter: drop-shadow(0 10px 18px rgba(51, 40, 31, 0.18));
}

.vera-companion[data-size="large"] .vera-figure { width: 170px; height: 170px; }
.vera-companion[data-size="corner"] .vera-figure { width: 76px; height: 76px; }
.vera-companion[data-size="celebrate"] .vera-figure {
  width: 220px;
  height: 220px;
  filter: drop-shadow(0 0 0 8px rgba(212, 95, 17, 0.15)) drop-shadow(0 16px 26px rgba(51, 40, 31, 0.25));
}

.vera-figure img { width: 100%; height: 100%; object-fit: contain; }

.vera-companion.video-mode {
  transform: scale(0.72);
  opacity: 0.55;
}

.vera-bubble {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 12px 18px;
  font-size: 1.15rem;
  color: var(--ink);
  max-width: 320px;
  text-align: center;
  box-shadow: 0 6px 16px rgba(51, 40, 31, 0.08);
}

.vera-companion[data-size="large"] .vera-bubble,
.vera-companion[data-size="celebrate"] .vera-bubble {
  max-width: 420px;
  font-size: 1.3rem;
}

.vera-companion[data-size="celebrate"] .vera-bubble {
  background: var(--ink);
  color: var(--accent-ink);
  border-color: var(--ink);
}

/* Gentle idle bob + talk/celebrate bounce -- only when motion is welcome. */
@media (prefers-reduced-motion: no-preference) {
  .vera-figure { animation: vera-bob 3.4s ease-in-out infinite; }
  .vera-companion.talking .vera-figure { animation: vera-bounce 0.44s ease-in-out infinite; }
  .vera-companion[data-size="celebrate"] .vera-figure { animation: vera-bounce 0.5s ease-in-out infinite; }
  .vera-companion.listening .vera-figure { animation: vera-listen-pulse 1.1s ease-in-out infinite; }
}

@keyframes vera-bob {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-6px); }
}

@keyframes vera-bounce {
  0%, 100% { transform: translateY(0) scale(1); }
  50% { transform: translateY(-4px) scale(1.03); }
}

@keyframes vera-listen-pulse {
  0%, 100% { box-shadow: 0 10px 24px rgba(51, 40, 31, 0.12); }
  50% { box-shadow: 0 0 0 10px rgba(212, 95, 17, 0.18), 0 10px 24px rgba(51, 40, 31, 0.12); }
}

/* ---------- Bottom bar ---------- */

#bottombar {
  flex: 0 0 auto;
  padding: 14px 28px 22px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  border-top: 1px solid var(--border);
}

#type-row {
  display: flex;
  gap: 12px;
  width: 100%;
  max-width: 640px;
}

#type-input {
  flex: 1;
  font-size: 1.4rem;
  padding: 16px 20px;
  border-radius: 18px;
  border: 1px solid var(--border-soft);
}

#listening-row {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  width: 100%;
  max-width: 640px;
}

#listening-indicator {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--danger);
}

.listening-dot {
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: var(--danger);
}

@media (prefers-reduced-motion: no-preference) {
  .listening-dot { animation: listening-dot-pulse 1s ease-in-out infinite; }
}

@keyframes listening-dot-pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.35; transform: scale(1.3); }
}

#listening-transcript {
  font-size: 1.5rem;
  color: var(--ink);
  text-align: center;
  min-height: 1.4em;
}

#controls-row {
  display: flex;
  align-items: center;
  gap: 24px;
}

#mic-hint { color: var(--ink-soft); font-size: 1.05rem; }

#mic-btn {
  width: 86px;
  height: 86px;
  border-radius: 50%;
  border: none;
  background: var(--accent);
  color: var(--accent-ink);
  font-size: 2.4rem;
  cursor: pointer;
  box-shadow: 0 8px 20px rgba(212, 95, 17, 0.35);
}

#mic-btn.listening {
  animation: pulse 1s infinite;
  background: var(--danger);
}

#mic-btn.speaking {
  animation: pulse-slow 1.4s infinite;
}

@keyframes pulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(178,59,34,0.5); }
  50% { box-shadow: 0 0 0 20px rgba(178,59,34,0); }
}

@keyframes pulse-slow {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.07); }
}

/* ---------- Celebration overlay ---------- */

#celebration {
  position: fixed;
  inset: 0;
  background: rgba(51, 40, 31, 0.82);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 18px;
  z-index: 50;
}

#celebrate-title {
  font-family: var(--font-display);
  color: var(--accent-ink);
  font-size: 2.4rem;
  font-weight: 700;
  text-align: center;
  margin: 0;
}

/* ---------- Family cheer playback ---------- */

#cheer-overlay, #day-detail-overlay {
  position: fixed;
  inset: 0;
  background: rgba(51, 40, 31, 0.9);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 55;
}

#day-detail-overlay .cheer-card-overlay { max-width: 560px; align-items: stretch; text-align: left; max-height: 80vh; overflow-y: auto; }
#day-detail-title { font-family: var(--font-display); color: var(--ink); font-size: 1.8rem; margin: 0 0 6px; text-align: center; }

.day-detail-list {
  list-style: none;
  margin: 0 0 12px;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.day-detail-list li {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 10px 14px;
  font-size: 1.1rem;
  color: var(--ink);
}

.cheer-card-overlay {
  max-width: 480px;
  width: 90%;
  background: var(--card);
  border-radius: var(--radius);
  padding: 32px 28px;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
}

#cheer-from {
  font-family: var(--font-display);
  color: var(--ink);
  font-size: 1.8rem;
  margin: 0 0 6px;
}

#cheer-photo {
  width: 100%;
  max-width: 400px;
  max-height: 320px;
  object-fit: cover;
  border-radius: var(--radius);
  margin-bottom: 14px;
}

#cheer-video {
  width: 100%;
  max-width: 400px;
  border-radius: var(--radius);
  background: #000;
  margin-bottom: 14px;
}

#cheer-audio {
  width: 100%;
  max-width: 400px;
  margin-bottom: 14px;
}

/* ---------- For Family link (Progress screen) ---------- */

#for-family-link {
  margin-top: 16px;
  color: var(--ink-soft);
  text-decoration: underline;
  font-size: 1.1rem;
}

@media (max-width: 700px) {
  .tiles, #screen-home .tiles { grid-template-columns: 1fr; max-width: 420px; }
  .tiles.small { grid-template-columns: 1fr; }
  #home-greeting { font-size: 2.2rem; }
  .screen-title { font-size: 2rem; }
  #brand-link { display: none; }
}
