.mood-card {
  position: fixed;
  z-index: 3;
  left: 20px;
  bottom: calc(20px + env(safe-area-inset-bottom, 0px));
  width: clamp(225px, calc(25vw - 44px), 280px);
  padding: 10px 14px 12px;
  border-color: var(--card-border);
  border-radius: var(--card-radius);
  background: var(--card-surface);
  box-shadow: var(--card-shadow);
  transition: border-color .3s, box-shadow .3s;
}
.mood-card::after { display: none; animation: none; }
.mood-card:hover,
.mood-card:focus-within { border-color: var(--card-hover-border); box-shadow: var(--card-hover-shadow); }
.mood-card-heading { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
#quote-title { display: inline-flex; align-items: center; gap: 6px; color: #8fa6b7; font-size: 11px; font-weight: 500; letter-spacing: .15px; }
.mood-spark { color: #87aac2; font-size: 13px; line-height: 1; }
.quote-pause { width: 28px; height: 28px; color: #809aaf; }
.quote-pause svg { width: 15px; height: 15px; }
.quote-pause .play-symbol { display: none; }
.quote-pause[aria-pressed="true"] .pause-symbol { display: none; }
.quote-pause[aria-pressed="true"] .play-symbol { display: block; }
.quote-copy { min-height: 80px; padding-top: 4px; opacity: 1; transform: translate3d(0, 0, 0); filter: blur(0); transition: opacity .6s ease, transform .72s cubic-bezier(.22, .9, .28, 1), filter .52s ease; }
.mood-card.is-changing .quote-copy { opacity: 0; transform: translate3d(0, -5px, 0); filter: blur(2px); transition-duration: .28s; }
.quote-category { display: block; color: #80a4bc; font-size: 9px; font-weight: 500; letter-spacing: .8px; line-height: 1.5; text-transform: uppercase; }
.mood-card[data-mood="sad"] .quote-category { color: #9b9fb9; }
.mood-card[data-mood="happy"] .quote-category { color: #8fb4a0; }
.mood-card[data-mood="meme"] .quote-category { color: #b3a486; }
#quote-text { margin: 6px 0 0; color: #bfceda; font-size: 14px; font-weight: 400; line-height: 1.55; letter-spacing: .05px; white-space: pre-line; overflow-wrap: anywhere; }
.quote-footer { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-top: 8px; padding-top: 8px; border-top: 1px solid rgba(190, 218, 240, .075); }
.quote-mood { position: relative; flex: 1; max-width: 140px; min-width: 0; }
.quote-mood select { width: 100%; appearance: none; padding: 6px 18px 6px 0; border: 0; border-radius: 6px; background: transparent; color: #8da8bc; font-size: 11px; cursor: pointer; }
.quote-mood select option { color: #e2effa; background: #071923; }
.quote-mood::after { content: ''; position: absolute; top: 10px; right: 5px; width: 5px; height: 5px; border-right: 1px solid #8bacc3; border-bottom: 1px solid #8bacc3; transform: rotate(45deg); pointer-events: none; }
.quote-actions { display: flex; align-items: center; gap: 4px; flex: none; }
.quote-next,
.quote-back { display: inline-flex; align-items: center; justify-content: center; gap: 6px; flex: none; min-height: 28px; padding: 5px 7px; border: 1px solid rgba(179, 222, 250, .10); border-radius: 8px; background: rgba(179, 222, 250, .02); color: #a8c5d9; font-size: 12px; }
.quote-back { width: 28px; padding: 4px; font-size: 15px; }
.quote-next-arrow { font-size: 14px; line-height: 1; }
.quote-next:hover,
.quote-back:hover:not(:disabled) { background: rgba(179, 222, 250, .075); border-color: rgba(179, 222, 250, .23); }
.quote-back:disabled { opacity: .28; }

@media (max-width: 1100px) {
  .mood-card { position: relative; left: auto; bottom: auto; width: min(340px, 65vw); margin: 0 6vw 28px 29vw; padding: 12px 16px; }
  .quote-copy { min-height: 72px; }
}
@media (max-width: 1100px) and (min-width: 1051px) {
  .mood-card { width: min(340px, 55vw); margin-left: 35.5vw; margin-right: 9.5vw; }
}
@media (max-width: 750px) {
  .mood-card { width: auto; max-width: 340px; margin: 0 18px 24px; padding: 11px 15px 12px; }
  .quote-copy { min-height: 76px; }
  .quote-next,
  .quote-back { min-height: 32px; }
  .quote-back { width: 32px; }
  .quote-pause { width: 32px; height: 32px; }
}
@media (max-width: 390px) {
  .mood-card { margin-left: 12px; margin-right: 12px; padding-left: 16px; padding-right: 16px; }
}
@media (prefers-reduced-motion: reduce) {
  .quote-copy,
  .mood-card.is-changing .quote-copy { transition: none; transform: none; filter: none; }
}
