/* ================================================
   BreatheFirst — 1.4 feature styles
   features.css — loaded after style-glass.css
   Covers: 60-Second Reset CTA, progression level card and locked patterns,
   calm check chips + body result card, voice mic button, share preview,
   Breathing Garden.
   ================================================ */

/* ---------- Reset CTA (hero + breathing section) ---------- */
.reset-cta {
  display: inline-flex; align-items: center; gap: 8px;
  background: linear-gradient(135deg, rgba(77,238,234,0.22), rgba(245,200,66,0.18));
  border: 1px solid rgba(77,238,234,0.45);
  color: #fff; font-weight: 600;
  box-shadow: 0 4px 16px rgba(77,238,234,0.15);
}
.reset-cta:hover { border-color: rgba(77,238,234,0.85); box-shadow: 0 6px 22px rgba(77,238,234,0.30); transform: translateY(-2px); }
.reset-overlay .sos-content { background: radial-gradient(circle at 50% 30%, rgba(77,238,234,0.18), rgba(4,9,20,0.98) 65%); }
.reset-overlay::before { content: ""; position: absolute; inset: 0; background: #040914; z-index: -1; }
.reset-inline { margin: 0 auto 10px; display: flex; justify-content: center; }
.reset-inline .reset-cta { padding: 0.6rem 1.2rem; border-radius: 2rem; font-size: 0.9rem; cursor: pointer; }

/* ---------- Progression level card ---------- */
#levelCard { margin-top: 12px; }
.level-card {
  background: var(--glass-bg, rgba(8,20,38,0.65));
  border: 1px solid var(--glass-border, rgba(255,255,255,0.12));
  border-radius: 24px; padding: 18px 20px;
  box-shadow: var(--glass-shadow, 0 24px 60px rgba(0,0,0,0.55));
  font-family: var(--font-body, 'Inter', sans-serif);
}
.level-card-head { display: flex; align-items: center; gap: 12px; margin-bottom: 14px; }
.level-card-icon { font-size: 1.7rem; }
.level-card-title { color: #fff; font-weight: 700; font-size: 1rem; }
.level-card-sub { color: rgba(255,255,255,0.60); font-size: 0.78rem; margin-top: 2px; }
.level-card-sub strong { color: #4DEEEA; font-weight: 600; text-shadow: 0 0 8px rgba(77,238,234,0.35); }
.level-bar { height: 8px; border-radius: 8px; background: rgba(255,255,255,0.08); overflow: hidden; }
.level-bar-fill { height: 100%; border-radius: 8px; background: linear-gradient(90deg, #4DEEEA, #F5C842); box-shadow: 0 0 12px rgba(77,238,234,0.5); transition: width .6s ease; }
.level-steps { display: flex; justify-content: space-between; margin-top: 10px; }
.level-step { font-size: 1rem; opacity: 0.25; filter: grayscale(1); transition: opacity .3s, filter .3s; }
.level-step.done { opacity: 1; filter: none; }

.level-up-card {
  position: fixed; top: 84px; left: 50%; transform: translateX(-50%);
  background: linear-gradient(135deg, #071528, #030814);
  border: 1.5px solid rgba(77,238,234,0.6); border-radius: 20px;
  padding: 18px 24px; z-index: 9999; text-align: center; max-width: 320px; width: 88%;
  box-shadow: 0 14px 45px rgba(0,0,0,0.7), 0 0 30px rgba(77,238,234,0.25); font-family: var(--font-body, 'Inter', sans-serif);
  animation: slideDown .4s cubic-bezier(.175,.885,.32,1.275); transition: opacity .5s, transform .5s;
}
.level-up-card.hide { opacity: 0; transform: translateX(-50%) translateY(-12px); }
.level-up-icon { font-size: 2.6rem; }
.level-up-title { color: #fff; font-weight: 700; font-size: 1.05rem; margin-top: 4px; }
.level-up-sub { color: #4DEEEA; font-size: 0.82rem; margin-top: 4px; }

/* Locked advanced patterns */
.pattern-btn.pattern-unlock { position: relative; }
.pattern-btn .pattern-lock { display: none; position: absolute; top: 6px; right: 8px; font-size: 0.7rem; opacity: 0.8; }
.pattern-btn.locked { opacity: 0.55; }
.pattern-btn.locked .pattern-lock { display: inline; }

/* ---------- Calm check + body card ---------- */
.calm-check { max-width: 420px; margin: 0 auto 14px; text-align: center; }
.calm-check-label { color: rgba(255,255,255,0.75); font-size: 0.82rem; margin-bottom: 8px; }
.calm-check-label span { color: rgba(255,255,255,0.45); }
.calm-chips { display: flex; justify-content: center; gap: 6px; }
.calm-chip {
  flex: 1; max-width: 76px; background: rgba(255,255,255,0.06); border: 1px solid rgba(255,255,255,0.12);
  border-radius: 14px; padding: 8px 4px; color: #fff; cursor: pointer; display: flex; flex-direction: column; align-items: center; gap: 2px;
  transition: transform .15s, border-color .2s, background .2s;
}
.calm-chip span { font-size: 1.25rem; line-height: 1; }
.calm-chip small { font-size: 0.6rem; color: rgba(255,255,255,0.55); }
.calm-chip:hover { transform: translateY(-2px); border-color: rgba(77,238,234,0.4); }
.calm-chip.on { background: rgba(77,238,234,0.22); border-color: #4DEEEA; box-shadow: 0 0 14px rgba(77,238,234,0.25); }
.calm-chip.on small { color: #4DEEEA; }

.body-card {
  background: rgba(77,238,234,0.08); border: 1px solid rgba(77,238,234,0.25);
  border-radius: 16px; padding: 14px; margin-bottom: 16px; text-align: left;
  font-family: var(--font-body, 'Inter', sans-serif);
}
.body-title { color: #4DEEEA; font-size: 0.72rem; font-weight: 700; letter-spacing: 1.5px; text-transform: uppercase; margin-bottom: 10px; text-shadow: 0 0 8px rgba(77,238,234,0.3); }
.body-row { display: flex; justify-content: space-between; align-items: center; gap: 10px; color: #fff; font-size: 0.88rem; margin: 8px 0; }
.body-k { color: rgba(255,255,255,0.65); }
.body-v strong { color: #fff; }
.body-v em { font-style: normal; color: rgba(255,255,255,0.65); margin-left: 6px; font-size: 0.8rem; }
.body-v em.good { color: #4DEEEA; font-weight: 600; }
.body-card .calm-chips { margin: 4px 0 6px; }
.body-card .calm-chip { padding: 6px 2px; }

#sessionCompleteOverlay > div { max-height: 92vh; overflow-y: auto; -webkit-overflow-scrolling: touch; }

/* ---------- Voice check-in ---------- */
.ai-chat-mic {
  flex: 0 0 auto; width: 42px; height: 42px; border-radius: 50%; border: 1px solid rgba(255,255,255,0.18);
  background: rgba(255,255,255,0.08); color: #fff; font-size: 1.1rem; cursor: pointer; display: inline-flex; align-items: center; justify-content: center;
  transition: background .2s, box-shadow .2s;
}
.ai-chat-mic:hover { background: rgba(255,255,255,0.14); }
.ai-chat-mic.listening { background: rgba(255,117,151,0.25); border-color: #FF7597; box-shadow: 0 0 0 0 rgba(255,117,151,0.6); animation: micPulse 1.2s ease-out infinite; }
@keyframes micPulse { 0% { box-shadow: 0 0 0 0 rgba(255,117,151,0.55); } 100% { box-shadow: 0 0 0 14px rgba(255,117,151,0); } }
.voice-checkin-btn {
  margin-top: 10px; display: inline-flex; align-items: center; gap: 8px; padding: 0.55rem 1.1rem;
  border-radius: 2rem; border: 1px solid rgba(77,238,234,0.3); background: rgba(77,238,234,0.08); color: #fff; font-size: 0.88rem; cursor: pointer;
}
.voice-checkin-btn:hover { background: rgba(77,238,234,0.16); border-color: #4DEEEA; }

/* ---------- Share card preview (web fallback) ---------- */
.share-preview { position: fixed; inset: 0; z-index: 10001; background: rgba(0,0,0,0.85); display: flex; align-items: center; justify-content: center; padding: 20px; }
.share-preview-panel { background: #071528; border: 1px solid rgba(77,238,234,0.25); border-radius: 20px; padding: 16px; max-width: 360px; width: 100%; text-align: center; box-shadow: 0 20px 50px rgba(0,0,0,0.7), 0 0 30px rgba(77,238,234,0.15); }
.share-preview-panel img { width: 100%; max-height: 60vh; object-fit: contain; border-radius: 12px; display: block; }
.share-preview-actions { display: flex; gap: 8px; margin-top: 12px; }
.share-preview-btn { flex: 1; padding: 10px; border-radius: 100px; border: 1px solid rgba(255,255,255,0.18); background: rgba(255,255,255,0.08); color: #fff; font-size: 0.85rem; cursor: pointer; text-decoration: none; display: inline-flex; align-items: center; justify-content: center; }
.share-preview-btn.primary { background: linear-gradient(135deg, #4DEEEA, #27B39E); color: #030914; border: none; font-weight: 700; box-shadow: 0 6px 20px rgba(77,238,234,0.35); }
.share-preview-panel p { color: rgba(255,255,255,0.50); font-size: 0.72rem; margin: 10px 0 0; }

/* ---------- Breathing Garden ---------- */
#game-breathing-garden { background: #030814; }
#gardenCanvas { position: absolute; inset: 0; width: 100%; height: 100%; touch-action: manipulation; }
.garden-ui { position: absolute; inset: 0; pointer-events: none; display: flex; flex-direction: column; justify-content: space-between; padding: 18px; font-family: var(--font-body, 'Inter', sans-serif); }
.garden-top { display: flex; justify-content: space-between; align-items: center; color: #fff; font-weight: 600; font-size: 1rem; text-shadow: 0 2px 10px rgba(0,0,0,0.6); }
.garden-top #gardenTimer { color: #4DEEEA; font-variant-numeric: tabular-nums; text-shadow: 0 0 10px rgba(77,238,234,0.4); }
.garden-controls { pointer-events: auto; display: flex; flex-direction: column; align-items: center; gap: 10px; }
.garden-chips { display: flex; gap: 6px; flex-wrap: wrap; justify-content: center; transition: opacity .3s; }
.garden-controls.running .garden-chips { opacity: 0.35; pointer-events: none; }
.garden-chip { background: rgba(255,255,255,0.08); border: 1px solid rgba(255,255,255,0.16); color: #fff; border-radius: 100px; padding: 6px 12px; font-size: 0.78rem; cursor: pointer; transition: all 0.2s ease; }
.garden-chip:hover { border-color: rgba(77,238,234,0.4); }
.garden-chip.on { background: rgba(77,238,234,0.25); border-color: #4DEEEA; color: #fff; box-shadow: 0 0 14px rgba(77,238,234,0.3); }
.garden-start { background: linear-gradient(135deg, #4DEEEA, #27B39E); color: #030914; border: none; border-radius: 100px; padding: 12px 28px; font-weight: 700; font-size: 1rem; cursor: pointer; box-shadow: 0 8px 24px rgba(77,238,234,0.35); transition: transform 0.2s, box-shadow 0.2s; }
.garden-start:hover { transform: translateY(-2px); box-shadow: 0 12px 30px rgba(77,238,234,0.5); }
@media (max-width: 480px) {
  .calm-chip small { display: none; }
  .garden-top { font-size: 0.9rem; }
}

/* ================================================
   Interface polish (1.4.1)
   Tighter rhythm on phones, calmer floating buttons, glass game tabs,
   hidden empty ad placeholders, compact crisis banner.
   ================================================ */

/* The floating streak badge duplicated the progress card and hid behind the
   crisis banner on phones. The progress card is the single source now. */
#streakBadge { display: none !important; }

/* Crisis banner: one calm line, still the first thing on the page */
.crisis-banner { padding: 7px 0 !important; }
.crisis-banner p { font-size: 0.8rem !important; line-height: 1.4 !important; }
.crisis-banner .crisis-icon { font-size: 1.05rem !important; }
.crisis-banner a { text-underline-offset: 3px; }

/* Ad slots: show nothing until a real ad is placed (placeholder is the only child) */
.ad-slot:has(.ad-content > .ad-placeholder:only-child) { display: none; }

/* Find Your Calm tabs: glass tiles instead of flat grey */
.games-selector { padding: var(--space-lg) var(--space-sm) var(--space-md) !important; }
.game-tab {
  background: var(--glass-bg, rgba(255,255,255,0.06)) !important;
  border: 1px solid var(--glass-border, rgba(255,255,255,0.10)) !important;
  color: var(--text-secondary, rgba(255,255,255,0.72)) !important;
  border-radius: 18px !important;
  -webkit-backdrop-filter: blur(16px); backdrop-filter: blur(16px);
  box-shadow: none !important;
  transition: transform .2s ease, background .2s ease, border-color .2s ease !important;
}
.game-tab:hover { transform: translateY(-2px); background: var(--glass-bg-strong, rgba(12,28,52,0.80)) !important; border-color: rgba(77,238,234,0.3) !important; }
.game-tab.active {
  background: rgba(77,238,234,0.16) !important;
  border-color: rgba(77,238,234,0.60) !important;
  color: #fff !important;
  box-shadow: 0 10px 30px rgba(0,0,0,0.40), inset 0 0 0 1px rgba(77,238,234,0.20) !important;
}
.game-tab-label { font-weight: 600 !important; letter-spacing: 0.01em; }

/* Section rhythm: the dark glass theme reads better with less air between sections */
:root { --space-2xl: 5rem; }

@media (max-width: 640px) {
  :root { --space-2xl: 3.5rem; --space-xl: 2.75rem; --space-lg: 2rem; }

  /* Hero: primary action full width, the two secondary actions side by side */
  .hero-actions { display: grid !important; grid-template-columns: 1fr 1fr; gap: 10px !important; width: 100%; }
  .hero-actions .btn-primary { grid-column: 1 / -1; justify-content: center; width: 100%; }
  .hero-actions .btn-secondary { justify-content: center; width: 100%; padding-left: 10px !important; padding-right: 10px !important; font-size: 0.9rem !important; white-space: nowrap; }

  /* Floating buttons: one compact round chat button, one slim Calm Now pill */
  .ai-chat-btn {
    right: 16px !important; bottom: calc(84px + env(safe-area-inset-bottom, 0px)) !important;
    width: 50px !important; height: 50px !important; padding: 0 !important; border-radius: 50% !important;
    justify-content: center !important;
  }
  .ai-chat-btn .ai-chat-btn-text { display: none !important; }
  .ai-chat-btn .ai-chat-btn-icon { font-size: 1.35rem !important; }
  .sos-calm-btn {
    right: 16px !important; bottom: calc(22px + env(safe-area-inset-bottom, 0px)) !important;
    padding: 11px 18px !important; font-size: 0.85rem !important;
  }

  /* Breathing pattern selector: two tidy columns instead of ragged rows */
  .breathing-patterns { display: grid !important; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px !important; }
  .pattern-btn { width: 100%; min-width: 0 !important; padding: 12px 8px !important; }
  .pattern-btn .pattern-name { font-size: 0.95rem; }

  /* Mood check-in: three columns of compact tiles instead of six tall rows */
  .mood-grid { display: grid !important; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px !important; }
  .mood-btn { width: 100% !important; min-width: 0 !important; padding: 14px 6px !important; font-size: 0.82rem !important; }
  .mood-btn .mood-emoji { font-size: 1.9rem !important; }

  /* Progress + level cards sit closer together */
  #levelCard { margin-top: 10px; }
}

/* Scrolled navbar: solid enough that page text never ghosts through */
.navbar.scrolled { background: rgba(4, 9, 20, 0.94) !important; -webkit-backdrop-filter: blur(24px); backdrop-filter: blur(24px); border-bottom: 1px solid rgba(77,238,234,0.2) !important; }

/* Mood response card reserves no space until it has something to say */
.mood-response:not(.visible) { display: none; }

@media (max-width: 640px) {
  .crisis-detail { display: none; }
}

/* Mood response + weekly history were still light-theme white cards (white text on white) */
.mood-response, .mood-history {
  background: var(--glass-bg, rgba(8,20,38,0.65)) !important;
  border: 1px solid var(--glass-border, rgba(255,255,255,0.12)) !important;
  color: var(--text-primary, #fff) !important;
  box-shadow: var(--glass-shadow, 0 24px 60px rgba(0,0,0,0.55)) !important;
  -webkit-backdrop-filter: blur(24px); backdrop-filter: blur(24px);
}
.mood-response h3, .mood-history h3, .mood-history h4 { color: var(--text-primary, #fff) !important; }
.mood-response p, .mood-history p { color: var(--text-secondary, rgba(255,255,255,0.78)) !important; }
.mood-history button, .mood-history a { color: var(--mint, #4DEEEA) !important; }

@media (max-width: 640px) {
  /* One-line crisis banner on phones: drop the icon, tighten type and the close button */
  .crisis-banner .crisis-icon { display: none !important; }
  .crisis-banner p { font-size: 0.74rem !important; letter-spacing: -0.01em; }
  .crisis-banner .crisis-banner-inner { gap: 8px !important; }
  .crisis-banner .crisis-close { width: 28px !important; height: 28px !important; font-size: 0.85rem !important; flex: 0 0 auto; }
}

/* Toasts: compact, never wider than the screen, parked above the floating buttons */
.signup-toast {
  max-width: min(92vw, 420px) !important;
  padding: 11px 18px !important;
  font-size: 0.85rem !important;
  line-height: 1.35 !important;
  border-radius: 18px !important;
  text-align: left;
}
@media (max-width: 640px) {
  .signup-toast { bottom: calc(150px + env(safe-area-inset-bottom, 0px)) !important; }
}

/* Hero clears the fixed banner + navbar whatever their height (set by updateNavbarPosition) */
.hero { padding-top: calc(var(--chrome-top, 120px) + 24px) !important; }

/* Share nudge (3rd session and level-ups only) */
.share-nudge { background: rgba(126,207,179,0.14); border: 1px solid rgba(126,207,179,0.35); color: #fff; border-radius: 14px; padding: 10px 12px; font-size: 0.85rem; margin-bottom: 10px; text-align: center; }
.share-nudge-btn { animation: nudgePulse 1.6s ease-in-out 3; }
@keyframes nudgePulse { 0%,100% { box-shadow: 0 0 0 0 rgba(126,207,179,0.5); } 50% { box-shadow: 0 0 0 10px rgba(126,207,179,0); } }

/* ---------- 1.5 Trends (trends.js) ---------- */
.trends-card { margin-top: 14px; padding: 20px 18px; border-radius: 24px; background: rgba(255, 255, 255, 0.06); border: 1px solid rgba(255, 255, 255, 0.12); box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.12), 0 20px 40px rgba(0, 0, 0, 0.3); color: #fff; }
.tr-head { display: flex; align-items: baseline; justify-content: space-between; margin-bottom: 12px; }
.tr-title { margin: 0; font: 600 18px/1.2 var(--font-body); color: #fff; }
.tr-range { font-size: 12px; color: rgba(255, 255, 255, 0.62); }
.tr-empty { margin: 0; font-size: 14px; color: rgba(255, 255, 255, 0.72); }
.tr-block + .tr-block { margin-top: 18px; padding-top: 16px; border-top: 1px solid rgba(255, 255, 255, 0.1); }
.tr-sub { font-size: 12px; letter-spacing: 0.08em; text-transform: uppercase; color: rgba(255, 255, 255, 0.62); margin-bottom: 10px; font-weight: 600; }
.tr-bars { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; align-items: end; }
.tr-col { display: flex; flex-direction: column; align-items: center; gap: 6px; }
.tr-val { font: 600 14px/1 var(--font-body); color: rgba(255, 255, 255, 0.9); font-variant-numeric: tabular-nums; }
.tr-track { height: 64px; width: 100%; max-width: 44px; display: flex; align-items: flex-end; }
.tr-bar { width: 100%; border-radius: 8px; background: rgba(255, 255, 255, 0.22); transition: height 0.4s ease; }
.tr-bar.tr-now { background: linear-gradient(180deg, var(--mint, #5FF3EF), var(--mint-dark, #2BB5B0)); }
.tr-lbl { font-size: 12px; color: rgba(255, 255, 255, 0.62); }
.tr-unit, .tr-note, .tr-source { font-size: 12px; color: rgba(255, 255, 255, 0.62); margin-top: 8px; }
.tr-note { color: rgba(255, 255, 255, 0.78); font-size: 13px; }
.tr-metric + .tr-metric { margin-top: 14px; }
.tr-metric-name { font: 600 14px/1.3 var(--font-body); color: #fff; margin-bottom: 4px; }
.tr-line { width: 100%; height: 56px; display: block; }
.tr-line path { fill: none; stroke: var(--mint, #5FF3EF); stroke-width: 2.5; stroke-linecap: round; stroke-linejoin: round; }
.tr-line circle { fill: var(--mint, #5FF3EF); }
.tr-line-vals { display: grid; grid-template-columns: repeat(4, 1fr); text-align: center; font: 600 13px/1 var(--font-body); color: rgba(255, 255, 255, 0.72); font-variant-numeric: tabular-nums; }
.tr-line-vals .tr-now { color: #fff; }

/* ---------- 1.5 Suggested for right now (suggest.js) ---------- */
.suggest-card { margin-bottom: 14px; padding: 18px 18px 16px; border-radius: 24px; color: #fff;
  background: linear-gradient(135deg, rgba(95, 243, 239, 0.14), rgba(255, 255, 255, 0.05)); border: 1px solid rgba(95, 243, 239, 0.35);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.16), 0 20px 40px rgba(0, 0, 0, 0.28); }
.sg-eyebrow { font-size: 12px; letter-spacing: 0.1em; text-transform: uppercase; font-weight: 600; color: var(--mint, #5FF3EF); margin-bottom: 8px; }
.sg-row { display: flex; align-items: center; gap: 14px; }
.sg-text { flex: 1; min-width: 0; }
.sg-name { font: 600 19px/1.25 var(--font-body); color: #fff; }
.sg-line { font-size: 14px; color: rgba(255, 255, 255, 0.8); margin-top: 2px; }
.sg-why { font-size: 12.5px; color: rgba(255, 255, 255, 0.62); margin-top: 6px; }
.sg-start { flex: 0 0 auto; min-height: 48px; min-width: 88px; padding: 0 22px; border: 0; border-radius: 999px; cursor: pointer;
  font: 700 16px/1 var(--font-body); color: #06201C; background: linear-gradient(135deg, var(--mint, #5FF3EF), var(--mint-dark, #2BB5B0));
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.5), 0 8px 20px var(--mint-glow, rgba(95, 243, 239, 0.3)); }
.sg-start:focus-visible { outline: 2px solid #fff; outline-offset: 3px; }

/* ---------- 1.5 Accessibility (a11y.js) ---------- */
.bf-sr-only { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.bf-skip-link { position: fixed; left: 12px; top: -80px; z-index: 20000; padding: 12px 18px; border-radius: 12px; background: #fff; color: #03101C; font: 700 15px/1 var(--font-body); text-decoration: none; transition: top 0.15s ease; }
.bf-skip-link:focus { top: calc(12px + env(safe-area-inset-top, 0px)); outline: 3px solid var(--mint, #5FF3EF); }
/* More contrast when the system asks for it: muted text and hairlines get stronger, glass gets more solid. */
@media (prefers-contrast: more) {
  :root { --text-muted: rgba(255, 255, 255, 0.86); --text-secondary: rgba(255, 255, 255, 0.92); --text-soft: rgba(255, 255, 255, 0.9); }
  .tr-unit, .tr-note, .tr-source, .tr-lbl, .sg-why, .calm-scale-ends, .bf-display-label, .pattern-desc, .section-subtitle { color: rgba(255, 255, 255, 0.9) !important; }
  .btn-secondary, .petal-btn, .calm-toggle, .b-mode-btn, .mood-btn, .calm-chip, .pattern-btn, .game-tab { border-color: rgba(255, 255, 255, 0.7) !important; }
  .navbar, .nav-links, .ai-chat-panel, .trends-card, .suggest-card { background-color: rgba(6, 10, 20, 0.98) !important; }
}

/* ---------- 1.5 Calm library (calm-library.js) ---------- */
/* A quiet line under the lotus while a session runs; it fades between prompts and never shows at rest. */
.bf-breath-prompt { max-width: 30ch; min-height: 2.9em; margin: 4px auto 14px; padding: 0 16px; text-align: center;
  font: 400 16px/1.45 var(--font-body); color: rgba(255, 255, 255, 0.78); text-wrap: balance;
  opacity: 0; transform: translateY(4px); transition: opacity 0.6s ease, transform 0.6s ease; }
.bf-breath-prompt.is-in { opacity: 1; transform: none; }
html:not(.bf-session) .bf-breath-prompt { display: none; }
@media (prefers-reduced-motion: reduce) { .bf-breath-prompt { transition: opacity 0.3s linear; transform: none; } }
/* SOS grounding: "Hints for [Anywhere ▾]" under I've Got Them. */
.sos-where { display: flex; align-items: center; justify-content: center; gap: 8px; margin-top: 18px;
  font: 500 14px/1 var(--font-body); color: rgba(255, 255, 255, 0.62); }
.sos-where select { min-height: 44px; padding: 0 34px 0 16px; border-radius: 999px; cursor: pointer;
  font: 600 15px/1 var(--font-body); color: #fff; background-color: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.2); appearance: none; -webkit-appearance: none;
  background-image: linear-gradient(45deg, transparent 50%, rgba(255, 255, 255, 0.7) 50%), linear-gradient(135deg, rgba(255, 255, 255, 0.7) 50%, transparent 50%);
  background-position: calc(100% - 18px) 50%, calc(100% - 13px) 50%; background-size: 5px 5px; background-repeat: no-repeat; }
.sos-where select:focus-visible { outline: 2px solid var(--mint, #5FF3EF); outline-offset: 2px; }
.sos-where option { color: #03101C; }
@media (prefers-contrast: more) { .bf-breath-prompt, .sos-where { color: rgba(255, 255, 255, 0.92); } }
