/* Pods feed, posts, song cards, the Me hub, alerts and daily letters. */

/* Pill tab strip ------------------------------------------------------------ */
.pod-tabs {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  scrollbar-width: none;
  padding: 2px 2px 4px;
  margin: 0 -2px;
  flex: none;
  -webkit-mask: linear-gradient(90deg, #000 calc(100% - 28px), transparent);
  mask: linear-gradient(90deg, #000 calc(100% - 28px), transparent);
}
.pod-tabs::-webkit-scrollbar { display: none; }
.pill-tab {
  --pc: var(--accent);
  position: relative;
  flex: none;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 7px 16px;
  border-radius: 999px;
  font-weight: 800;
  font-size: 0.92rem;
  white-space: nowrap;
  color: var(--ink);
  background: linear-gradient(180deg, rgba(var(--tint-rgb), calc(var(--glass-a) + 0.1)), rgba(var(--tint-rgb), var(--glass-a)));
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.7), inset 0 0 0 1px rgba(255, 255, 255, 0.28), 0 3px 10px -4px rgba(0, 30, 80, 0.35);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  transition: transform 0.3s var(--spring), background 0.2s;
}
.pill-tab:hover { transform: translateY(-1px); }
.pill-tab.on {
  color: #fff;
  text-shadow: 0 1px 1px rgba(0, 30, 80, 0.45);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.55), rgba(255, 255, 255, 0.08) 50%, rgba(255, 255, 255, 0) 51%),
    var(--pc);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.9), inset 0 -3px 6px rgba(0, 20, 60, 0.25), 0 4px 12px -4px var(--pc);
}
.pill-tab .badge { position: static; margin-left: 2px; }

/* Feed controls, composer prompt, floating + ---------------------------------- */
.feed-controls { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.feed-ctl {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 12px;
  border: 0;
  border-radius: 999px;
  font: inherit;
  font-weight: 800;
  font-size: 0.9rem;
  color: var(--ink);
  cursor: pointer;
}
.feed-ctl.on { box-shadow: inset 0 0 0 2px var(--accent); }
.feed-ctl .ic { opacity: 0.7; }
.compose-prompt {
  display: flex;
  align-items: center;
  gap: 12px;
  width: 100%;
  padding: 10px 14px 10px 10px;
  border: 0;
  border-radius: 999px;
  font: inherit;
  text-align: left;
  color: var(--ink-3);
  cursor: text;
}
.compose-fake { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.compose-icons { display: flex; gap: 10px; color: var(--ink-2); }
.compose-modal { width: min(640px, calc(100vw - 24px)); }
.compose-modal .composer { padding: 0; background: none; box-shadow: none; }
.compose-modal .composer::before, .compose-modal .composer::after { display: none; }
.fab {
  position: fixed;
  right: 26px;
  bottom: 26px;
  z-index: 25;
  width: 62px;
  height: 62px;
  border-radius: 50%;
  border: 0;
  display: grid;
  place-items: center;
  color: #fff;
  cursor: pointer;
  background:
    radial-gradient(circle at 50% 118%, rgba(200, 250, 255, 0.9), transparent 55%),
    radial-gradient(circle at 50% 30%, #7fd6ff, #1e9bff 55%, #0a4fa8);
  box-shadow: inset 0 -5px 10px rgba(0, 40, 110, 0.45), inset 0 0 0 1px rgba(0, 50, 120, 0.5), 0 10px 24px -6px rgba(0, 70, 170, 0.7);
  transition: transform 0.35s var(--spring);
}
.fab::before { content: ''; position: absolute; top: 5px; left: 18%; right: 18%; height: 44%; border-radius: 50%; background: linear-gradient(180deg, rgba(255, 255, 255, 0.95), rgba(255, 255, 255, 0.05)); }
.fab .ic { position: relative; filter: drop-shadow(0 2px 2px rgba(0, 40, 100, 0.5)); }
.fab:hover { transform: scale(1.08) rotate(90deg); }
.fab-letter { background: radial-gradient(circle at 50% 118%, rgba(255, 220, 240, 0.9), transparent 55%), radial-gradient(circle at 50% 30%, #ffb3da, #ff4f9a 55%, #b0206a); box-shadow: inset 0 -5px 10px rgba(110, 0, 60, 0.4), inset 0 0 0 1px rgba(120, 0, 60, 0.45), 0 10px 24px -6px rgba(200, 30, 120, 0.7); }
@media (min-width: 821px) {
  .fab { display: none; }
  .fab-letter { display: grid; }
}

.pod-strip { display: flex; gap: 12px; overflow-x: auto; padding: 4px 2px 10px; scroll-snap-type: x mandatory; }
.pod-strip .pod-card { flex: 0 0 250px; scroll-snap-align: start; }
.section-title { display: flex; align-items: center; gap: 10px; }

/* Posts ------------------------------------------------------------------------ */
.post-who-top { align-items: center; }
.post-meta a { color: inherit; }
.post-meta a:hover { text-decoration: underline; }
.pod-link { font-weight: 800; color: var(--ink-2) !important; }
.lv-pill {
  display: inline-block;
  padding: 0 7px;
  border-radius: 999px;
  font-size: 0.72rem;
  font-weight: 800;
  line-height: 1.6;
  color: #fff;
  text-shadow: 0 1px 1px rgba(0, 40, 90, 0.4);
  background: linear-gradient(180deg, #8fdcff, #2b8fe8);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.7), 0 1px 3px rgba(0, 50, 120, 0.3);
}
.tag-chip {
  flex: none;
  padding: 3px 11px;
  border-radius: 999px;
  font-weight: 800;
  font-size: 0.85rem;
  color: #fff;
  text-shadow: 0 1px 1px rgba(0, 30, 80, 0.4);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.45), rgba(255, 255, 255, 0.05) 50%, transparent 51%), rgba(var(--accent-rgb), 0.85);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.7), 0 2px 6px -2px rgba(0, 40, 100, 0.4);
}
.tag-chip:hover { filter: brightness(1.08); }
.post .post-art canvas { border-radius: 14px; }
.post-foot { gap: 8px; }
.post.open { --glass-a: calc(var(--glass-a-base, 0.34) + 0.08); }

.vote-box {
  display: inline-flex;
  align-items: center;
  gap: 2px;
  padding: 2px;
  border-radius: 999px;
  background: rgba(var(--ink-rgb), 0.08);
  box-shadow: inset 0 1px 3px rgba(0, 20, 50, 0.18), 0 1px 0 rgba(255, 255, 255, 0.4);
}
.vote {
  display: grid;
  place-items: center;
  width: 32px;
  height: 30px;
  border: 0;
  border-radius: 999px;
  background: none;
  color: var(--ink-2);
  cursor: pointer;
  transition: transform 0.25s var(--spring), background 0.2s, color 0.2s;
}
.vote:hover { background: rgba(255, 255, 255, 0.35); transform: scale(1.1); }
.vote:active { transform: scale(0.9); }
.vote-score { min-width: 2.2ch; text-align: center; font-weight: 800; font-variant-numeric: tabular-nums; }
.vote-box[data-vote='1'] .up { color: #fff; background: linear-gradient(180deg, #ffc56b, #ff7a1a); box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.7); }
.vote-box[data-vote='1'] .vote-score { color: #ff8a1a; }
[data-ink='light'] .vote-box[data-vote='1'] .vote-score { color: #ffd08a; }
.vote-box[data-vote='-1'] .dn { color: #fff; background: linear-gradient(180deg, #9ec8ff, #3a6fe0); box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.7); }
.vote-box.small .vote { width: 24px; height: 22px; }
.vote-box.small .vote-score { font-size: 0.8rem; }
.reply { align-items: flex-start; }
.reply .vote-box { flex: none; align-self: center; }
.reply-btn span { font-variant-numeric: tabular-nums; }
.gift-btn { gap: 4px; padding-left: 6px; }
.gift-btn .aero-ic { filter: drop-shadow(0 1px 1px rgba(100, 0, 40, 0.35)); }
.gift-pop { padding: 4px; }
.gift-pop .btn { gap: 6px; }
.share-btn { color: var(--ink-2); }

.tag-row { display: flex; gap: 6px; flex-wrap: wrap; }
.tag-pick { font-size: 0.82rem; padding: 3px 10px; }
.tag-pick.on { color: #fff; background: rgba(var(--accent-rgb), 0.9); box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.6); text-shadow: 0 1px 1px rgba(0, 30, 80, 0.4); }
.pod-select { width: auto; max-width: 200px; padding: 6px 10px; font-size: 0.88rem; border-radius: 999px; }
.attach-song { flex: 1 1 260px; }

/* Polls ------------------------------------------------------------------------- */
.poll { display: flex; flex-direction: column; gap: 6px; max-width: 460px; }
.poll-opt {
  position: relative;
  display: flex;
  align-items: center;
  gap: 8px;
  min-height: 38px;
  padding: 8px 12px;
  border: 1px solid rgba(var(--accent-rgb), 0.45);
  border-radius: 12px;
  background: linear-gradient(rgba(255, 255, 255, 0.35), rgba(255, 255, 255, 0.08));
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.55);
  color: inherit;
  font: inherit;
  text-align: left;
  cursor: pointer;
  overflow: hidden;
  transition: transform 0.25s var(--spring), border-color 0.2s;
}
.poll-opt:hover { transform: translateX(3px); border-color: var(--accent); }
.poll-fill {
  position: absolute;
  inset: 0 auto 0 0;
  background: linear-gradient(rgba(255, 255, 255, 0.5), rgba(255, 255, 255, 0) 55%), rgba(var(--accent-rgb), 0.28);
  transition: width 0.6s var(--spring);
}
.poll-opt.mine .poll-fill { background: linear-gradient(rgba(255, 255, 255, 0.55), rgba(255, 255, 255, 0) 55%), rgba(var(--accent-rgb), 0.6); }
.poll-label, .poll-pct { position: relative; }
.poll-label { flex: 1; display: inline-flex; align-items: center; gap: 6px; font-weight: 700; }
.poll-pct { font-weight: 800; font-variant-numeric: tabular-nums; }
.poll-opt.lead .poll-pct::before { content: '★ '; color: #ffb000; }
.poll-foot { padding-left: 4px; }
.attach-poll { flex: 1 1 280px; display: flex; flex-direction: column; gap: 6px; padding: 10px 34px 10px 10px; }
.attach-poll .btn { align-self: flex-start; }
.poll-edit-row { gap: 4px; }
.poll-edit-row .field { flex: 1; padding: 6px 10px; }

/* Song cards --------------------------------------------------------------------- */
.song-card { display: flex; align-items: center; gap: 12px; padding: 10px; max-width: 460px; }
.song-cover { flex: none; border-radius: 10px; box-shadow: 0 3px 10px -3px rgba(0, 20, 50, 0.5), inset 0 0 0 1px rgba(255, 255, 255, 0.4); }
.song-meta { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.song-title { font-weight: 800; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.song-artist { font-size: 0.86rem; color: var(--ink-2); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.song-links { display: flex; align-items: center; gap: 10px; }
.song-eq { display: inline-flex; align-items: flex-end; gap: 2px; height: 12px; }
.song-eq i { width: 3px; height: 3px; border-radius: 1px; background: var(--accent); }
.song-card.playing .song-eq i { animation: eq 0.6s ease-in-out infinite alternate; }
.song-card.playing .song-eq i:nth-child(2) { animation-delay: -0.2s; }
.song-card.playing .song-eq i:nth-child(3) { animation-delay: -0.4s; }
.song-card.playing .song-eq i:nth-child(4) { animation-delay: -0.1s; }
@keyframes eq { to { height: 12px; } }
.song-play {
  flex: none;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 0;
  display: grid;
  place-items: center;
  color: #fff;
  cursor: pointer;
  background: radial-gradient(circle at 50% 120%, rgba(210, 255, 200, 0.8), transparent 55%), radial-gradient(circle at 50% 30%, #9ef07a, #3fb62f 55%, #1d6b12);
  box-shadow: inset 0 -4px 8px rgba(0, 60, 0, 0.4), inset 0 0 0 1px rgba(0, 70, 0, 0.45), 0 4px 10px -3px rgba(40, 140, 20, 0.6);
  transition: transform 0.3s var(--spring);
}
.song-play:hover { transform: scale(1.08); }
.song-card.playing .song-play { background: radial-gradient(circle at 50% 30%, #ffc56b, #ff7a1a 55%, #a84400); }

/* Me hub ------------------------------------------------------------------------ */
.me-page { gap: 14px; }
.me-head { display: flex; align-items: center; gap: 20px; padding: 20px; border-radius: var(--r-xl); }
.me-avatar { position: relative; flex: none; display: flex; flex-direction: column; align-items: center; }
.me-avatar-btn { border: 0; background: none; padding: 0; cursor: pointer; border-radius: 50%; transition: transform 0.3s var(--spring); }
.me-avatar-btn:hover { transform: scale(1.04) rotate(-3deg); }
.level-badge {
  margin-top: -12px;
  position: relative;
  z-index: 3;
  padding: 2px 10px;
  border-radius: 999px;
  font-weight: 800;
  font-size: 0.8rem;
  color: #fff;
  text-shadow: 0 1px 1px rgba(0, 30, 80, 0.5);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.5), rgba(255, 255, 255, 0.05) 50%, transparent 51%), linear-gradient(90deg, #3aa8ff, #7a5bff);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.8), 0 3px 8px -2px rgba(40, 60, 200, 0.5);
}
.me-info { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 6px; }
.me-info h2 { font-size: 1.5rem; }
.xp-line { display: flex; flex-direction: column; gap: 3px; max-width: 360px; }
.meter.xp { height: 12px; }
.meter.xp > span {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.7), rgba(255, 255, 255, 0.1) 50%, transparent 51%), linear-gradient(90deg, #6fdc4f, #3aa8ff);
  box-shadow: 0 0 8px rgba(80, 200, 255, 0.6);
  transition: width 0.6s var(--ease);
}
.level-row { display: flex; align-items: center; gap: 12px; color: var(--ink); }
.level-row .meter { margin-top: 4px; }

.invite-card, .shop-row, .me-link {
  display: flex;
  align-items: center;
  gap: 14px;
  width: 100%;
  padding: 14px 16px;
  border: 0;
  border-radius: var(--r-lg);
  font: inherit;
  text-align: left;
  color: var(--ink);
  cursor: pointer;
  transition: transform 0.3s var(--spring);
}
.invite-card:hover, .shop-row:hover, .me-link:hover { transform: translateY(-2px); }
.invite-card { background: linear-gradient(100deg, rgba(255, 143, 200, 0.35), rgba(255, 210, 63, 0.3)); }
.invite-hero { display: flex; align-items: center; gap: 16px; }
.me-rows { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.bubbles-chip.static { pointer-events: none; }
.aurora-row { background: linear-gradient(100deg, rgba(185, 140, 255, 0.35), rgba(120, 220, 255, 0.28)); }
.section-label { font-size: 0.8rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--ink-2); }

.mood-week { display: grid; grid-template-columns: repeat(7, 1fr); gap: 6px; margin-top: 10px; }
.mood-day { display: flex; flex-direction: column; align-items: center; gap: 6px; padding: 8px 0; border: 0; border-radius: 16px; background: none; font: inherit; color: var(--ink-2); }
button.mood-day { cursor: pointer; }
.mood-day.today { background: rgba(255, 255, 255, 0.22); box-shadow: inset 0 0 0 1.5px rgba(255, 255, 255, 0.55); color: var(--ink); }
.mood-dow { font-size: 0.78rem; font-weight: 800; }
.mood-dot {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  font-size: 1.35rem;
  color: var(--ink-3);
  background: rgba(var(--ink-rgb), 0.06);
  box-shadow: inset 0 2px 4px rgba(0, 20, 50, 0.14);
}
.mood-dot.has { background: radial-gradient(circle at 50% 30%, rgba(255, 255, 255, 0.9), rgba(255, 245, 190, 0.6)); box-shadow: inset 0 -2px 4px rgba(200, 150, 0, 0.25), 0 2px 6px -2px rgba(0, 30, 70, 0.3); }
button.mood-day:hover .mood-dot { transform: scale(1.1); }
.mood-picker { display: grid; grid-template-columns: repeat(5, 1fr); gap: 4px; }
.mood-pick { font-size: 1.6rem; border: 0; background: none; border-radius: 12px; cursor: pointer; padding: 4px; transition: transform 0.25s var(--spring); }
.mood-pick:hover { transform: scale(1.25); background: rgba(255, 255, 255, 0.4); }
.cal-grid { display: grid; grid-template-columns: repeat(7, 1fr); gap: 6px; }
.cal-head { text-align: center; font-size: 0.78rem; font-weight: 800; color: var(--ink-2); }
.cal-cell { position: relative; aspect-ratio: 1; border-radius: 12px; display: grid; place-items: center; background: rgba(var(--ink-rgb), 0.05); }
.cal-cell.blank { background: none; }
.cal-cell.has { background: rgba(255, 245, 190, 0.45); }
.cal-cell.today { box-shadow: inset 0 0 0 2px var(--accent); }
.cal-date { position: absolute; top: 3px; left: 6px; font-size: 0.66rem; color: var(--ink-3); }
.cal-emoji { font-size: 1.4rem; }

.theme-tiles { display: grid; grid-template-columns: repeat(auto-fill, minmax(110px, 1fr)); gap: 10px; margin-top: 10px; }
.theme-tile { position: relative; display: flex; flex-direction: column; gap: 6px; padding: 5px 5px 8px; border: 0; border-radius: 18px; background: rgba(255, 255, 255, 0.18); font: inherit; font-weight: 800; font-size: 0.85rem; color: var(--ink); cursor: pointer; transition: transform 0.3s var(--spring); }
.theme-tile:hover { transform: translateY(-2px); }
.theme-tile.on { box-shadow: inset 0 0 0 2.5px var(--accent), 0 4px 12px -4px var(--accent); }
.theme-tile.locked { opacity: 0.7; }
.theme-thumb { width: 100%; height: auto; aspect-ratio: 3 / 2; border-radius: 13px; display: block; }
.theme-name { display: inline-flex; gap: 4px; align-items: center; justify-content: center; }
.me-badges { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 10px; }
.me-badge { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; font-size: 1.3rem; background: rgba(var(--ink-rgb), 0.06); filter: grayscale(1); opacity: 0.4; }
.me-badge.got { filter: none; opacity: 1; background: radial-gradient(circle at 50% 30%, #fff, #ffe9a8 80%); box-shadow: 0 3px 8px -3px rgba(160, 110, 0, 0.5); }
.me-links { display: grid; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: 10px; }
.me-link { position: relative; flex-direction: column; gap: 6px; padding: 14px 8px; font-weight: 800; text-align: center; justify-content: center; }
.me-link .badge { position: absolute; top: 8px; right: 12px; }
.avatar-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(76px, 1fr)); gap: 10px; }
.avatar-choice { display: grid; place-items: center; padding: 6px; border: 0; border-radius: 18px; background: rgba(255, 255, 255, 0.15); cursor: pointer; transition: transform 0.3s var(--spring); }
.avatar-choice:hover { transform: scale(1.08) rotate(-3deg); }
.avatar-choice.on { box-shadow: inset 0 0 0 2.5px var(--accent); }
.center-row { justify-content: center; }

/* Alerts ------------------------------------------------------------------------- */
.notif-head { align-items: center; }
.notif-head h2 { font-size: 1.5rem; }
.notif-list.full { display: flex; flex-direction: column; gap: 8px; }
.notif-row.glass { padding: 12px 14px; border-radius: var(--r-lg); }
.notif-row.glass.unread { box-shadow: inset 4px 0 0 var(--accent); }
.face-stack { display: flex; flex: none; }
.face-stack .avatar + .avatar { margin-left: -14px; }
.face-stack .avatar { box-shadow: 0 0 0 2px rgba(255, 255, 255, 0.7); border-radius: 50%; }
.notif-ico, .notif-kind { flex: none; display: grid; place-items: center; }
.notif-text { overflow-wrap: anywhere; }
.announce { display: flex; flex-direction: column; gap: 8px; padding: 16px 18px; border-radius: var(--r-lg); }
.announce h3 { font-size: 1.15rem; }
.announce .btn { align-self: flex-start; }

/* Letters: tabs and the Daily pane -------------------------------------------------- */
.letter-main { display: flex; flex-direction: column; gap: 10px; min-height: 0; min-width: 0; }
.letter-main .letter-pane { flex: 1; }
.letter-tabs { display: none; }
.daily { display: flex; flex-direction: column; gap: 14px; height: 100%; overflow-y: auto; padding: 2px 2px 90px; }
.daily-head { display: flex; align-items: center; gap: 16px; padding: 16px 18px; border-radius: var(--r-lg); }
.daily-head h2 { font-size: 1.4rem; }
.daily-count { font-weight: 800; color: var(--ink-2); }
.daily-actions { align-items: flex-end; }
.daily-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 14px; }
.daily-card {
  --tc: #6aa6e8;
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 10px;
  min-height: 190px;
  padding: 14px;
  border: 0;
  border-radius: var(--r-lg);
  font: inherit;
  text-align: left;
  color: var(--ink);
  cursor: pointer;
  transition: transform 0.35s var(--spring);
}
.daily-card:hover { transform: translateY(-3px) rotate(-0.6deg); }
.daily-card.sealed { background: linear-gradient(180deg, rgba(255, 255, 255, 0.3), rgba(255, 255, 255, 0.1)), color-mix(in srgb, var(--tc) 22%, transparent); }
.daily-card.sealed::after { content: ''; position: absolute; inset: 0; border-radius: inherit; box-shadow: inset 0 0 0 2px color-mix(in srgb, var(--tc) 55%, transparent); pointer-events: none; }
.scribbles { display: flex; flex-direction: column; gap: 10px; padding: 6px 4px; flex: 1; }
.scribbles i { display: block; height: 5px; border-radius: 3px; background: rgba(var(--ink-rgb), 0.18); }
.scribbles i:nth-child(odd) { transform: rotate(-0.4deg); }
.daily-seal { position: absolute; left: 50%; top: 56%; transform: translate(-50%, -50%); }
.daily-tap { text-align: center; font-weight: 800; font-size: 0.9rem; color: var(--ink-2); }
.daily-card.opening { animation: unseal 0.65s var(--ease) forwards; }
@keyframes unseal {
  30% { transform: scale(1.04) rotate(2deg); }
  60% { transform: scale(0.98) rotate(-2deg); }
  100% { transform: scale(1.02); opacity: 0.4; }
}
.daily-card.pop-in { animation: pop-in 0.5s var(--spring); }
@keyframes pop-in { from { transform: scale(0.85); opacity: 0; } }
.daily-preview { margin: 0; flex: 1; font-family: 'Patrick Hand', var(--font); font-size: 1.05rem; line-height: 1.35; overflow-wrap: anywhere; }
.daily-foot { color: var(--ink-2); }
.daily-letter { display: flex; flex-direction: column; gap: 10px; }
.daily-letter .paper-sign { text-align: right; }
.topic-chip {
  --tc: #6aa6e8;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 2px 10px;
  border-radius: 999px;
  font-size: 0.8rem;
  font-weight: 800;
  color: #fff;
  text-shadow: 0 1px 1px rgba(0, 0, 0, 0.3);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.45), rgba(255, 255, 255, 0) 55%), var(--tc);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.6), 0 2px 5px -2px rgba(0, 0, 0, 0.3);
}
.topic-pick.on { color: #fff; background: var(--tc); text-shadow: 0 1px 1px rgba(0, 0, 0, 0.3); }
.new-chip { color: #fff; background: linear-gradient(180deg, #ff9ad0, #ff4f9a); box-shadow: none; }
.letter-react { display: flex; align-items: center; justify-content: center; flex-wrap: wrap; gap: 4px; margin: 14px auto 6px; padding: 8px 14px; border-radius: 999px; width: fit-content; max-width: 100%; }
.letter-react .react-pick.on { background: rgba(255, 255, 255, 0.55); box-shadow: inset 0 0 0 2px var(--accent); }
.letter-react-big { font-size: 2rem; }

/* Sign-up extras --------------------------------------------------------------------- */
.starter { padding: 5px 12px 5px 5px; }
.starter-thumb { width: 48px; height: 30px; border-radius: 999px; display: block; box-shadow: 0 0 0 2px #fff; }
.ref-note { display: flex; align-items: center; gap: 10px; padding: 10px 12px; border-radius: 16px; background: rgba(255, 210, 63, 0.25); box-shadow: inset 0 0 0 1px rgba(255, 190, 0, 0.5); }
.feature-list .aero-ic { flex: none; filter: drop-shadow(0 3px 2px rgba(0, 40, 100, 0.35)); }

@media (max-width: 820px) {
  .fab { right: 16px; bottom: calc(96px + env(safe-area-inset-bottom)); width: 56px; height: 56px; }
  .fab-letter { display: grid; }
  .letter-tabs { display: flex; }
  .letters-layout.daily-mode .letter-pane { overflow: visible; }
  .me-head { flex-direction: column; text-align: center; }
  .me-info { align-items: center; }
  .me-info .row { justify-content: center; }
  .xp-line { width: 100%; }
  .me-rows { grid-template-columns: 1fr; }
  .post-foot { gap: 6px; }
  .post-foot .reactions { order: 5; width: 100%; }
  .daily-grid { grid-template-columns: 1fr 1fr; gap: 10px; }
  .daily-card { min-height: 170px; padding: 12px; }
  .daily-head { flex-wrap: wrap; }
  .daily-actions { flex-direction: row; align-items: center; width: 100%; }
}
@media (max-width: 340px) {
  .daily-grid { grid-template-columns: 1fr; }
}

/* Small fixes that keep the new pieces tidy */
button.link { border: 0; background: none; padding: 0; font: inherit; cursor: pointer; }
.composer-actions { flex-wrap: wrap; row-gap: 8px; }
.notif-head { padding: 14px 16px; border-radius: var(--r-lg); }
.dock-item { padding: 4px 0 3px; gap: 1px; }
.dock-item .aero-slot { width: 40px; height: 40px; }
.dock-item .aero-ic { width: 36px; height: 36px; }
.dock-logo { margin-bottom: 2px; }
@media (min-width: 821px) and (max-height: 860px) {
  .dock-logo .logo-orb { width: 44px; height: 44px; }
  .dock-label { font-size: 0.64rem; }
  .dock-item .aero-slot { width: 34px; height: 34px; }
  .dock-item .aero-ic { width: 30px; height: 30px; }
}
@media (min-width: 821px) and (max-height: 700px) {
  .dock-label { display: none; }
}

/* Profiles show the week's moods and a level */
.hero-moods { border: 0; background: none; padding: 0; cursor: pointer; font: inherit; color: inherit; max-width: 360px; }
.hero-moods .mood-week { margin-top: 4px; gap: 4px; }
.hero-moods .mood-dot { width: 30px; height: 30px; font-size: 1.05rem; }
.hero-moods .mood-day { padding: 2px 0; }
.hero-name { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }

/* Readability over busy wallpapers */
[data-ink='light'] .hint { color: var(--ink-2); }
[data-ink='light'] .section-title h2, [data-ink='light'] .notif-head h2 { text-shadow: 0 1px 3px rgba(0, 40, 100, 0.55); }
.shop-info > .btn { align-self: flex-start; }

/* Splash over busy wallpapers */
.auth .feature-list { padding: 16px 18px; border-radius: var(--r-lg); }
.auth .wordmark { filter: drop-shadow(0 2px 0 rgba(0, 50, 130, 0.85)) drop-shadow(0 0 2px rgba(0, 50, 130, 0.9)) drop-shadow(0 8px 18px rgba(0, 60, 150, 0.55)); }
.auth .tagline { text-shadow: 0 1px 0 rgba(0, 40, 110, 0.8), 0 0 8px rgba(0, 60, 150, 0.6); }
