/* ============================================================
   FOCUS STUDIO — Stylesheet
   ============================================================ */

/* --- Variables -------------------------------------------- */
:root {
  --bg: #fafaf9;
  --bg2: #f4f3f1;
  --surface: #ffffff;
  --surface2: #f7f6f4;
  --border: rgba(0,0,0,0.08);
  --text: #1a1917;
  --text2: #6b6860;
  --text3: #9a9890;
  --accent: #3d3aed;
  --accent2: #6c6af2;
  --stillness: #4a7fa5;
  --stillness2: #2c5f80;
  --sharpen: #e8e8ff;
  --sharpen-dot: #3d3aed;
  --ignite: #c8652a;
  --ignite2: #a04d1e;
  --gold: #c8953a;
  --gold2: #e8b860;
  --shadow: 0 2px 16px rgba(0,0,0,0.06), 0 1px 4px rgba(0,0,0,0.04);
  --shadow-hover: 0 8px 32px rgba(0,0,0,0.10), 0 2px 8px rgba(0,0,0,0.06);
  --radius: 20px;
  --radius-sm: 12px;
  --radius-xs: 8px;
  --font: -apple-system, BlinkMacSystemFont, 'SF Pro Display', 'Segoe UI', system-ui, sans-serif;
  --transition: 0.35s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-slow: 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

[data-theme="dark"] {
  --bg: #111110;
  --bg2: #1a1917;
  --surface: #1e1d1b;
  --surface2: #252421;
  --border: rgba(255,255,255,0.07);
  --text: #f0ede8;
  --text2: #9a9890;
  --text3: #6b6860;
  --accent: #6c6af2;
  --accent2: #8b89f5;
  --stillness: #5a9fc8;
  --stillness2: #7bbde0;
  --sharpen: #1a1a3a;
  --sharpen-dot: #e8e8ff;
  --shadow: 0 2px 16px rgba(0,0,0,0.3), 0 1px 4px rgba(0,0,0,0.2);
  --shadow-hover: 0 8px 32px rgba(0,0,0,0.4), 0 2px 8px rgba(0,0,0,0.3);
}

/* --- Reset ------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html {
  font-size: 16px;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  min-height: 100dvh;
  overflow-x: hidden;
  transition: background var(--transition), color var(--transition);
}

/* --- Screen System ----------------------------------------- */
.screen {
  display: none;
  min-height: 100dvh;
  position: relative;
}
.screen.active { display: block; }

.mode-screen {
  display: none;
  min-height: 100dvh;
  position: relative;
}
.mode-screen.active { display: flex; flex-direction: column; align-items: center; justify-content: center; }

.fullscreen-mode {
  position: fixed;
  inset: 0;
  z-index: 10;
  min-height: 100dvh;
}
.fullscreen-mode.active {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

/* --- Hub --------------------------------------------------- */
.hub-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--bg);
  border-bottom: 1px solid var(--border);
  transition: background var(--transition);
}

.hub-header-inner {
  max-width: 1100px;
  margin: 0 auto;
  padding: 18px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.hub-brand {
  display: flex;
  align-items: center;
  gap: 10px;
}

.hub-brand-icon {
  font-size: 20px;
  color: var(--accent);
  line-height: 1;
}

.hub-title {
  font-size: 17px;
  font-weight: 600;
  letter-spacing: -0.01em;
  color: var(--text);
}

.theme-toggle {
  background: var(--surface2);
  border: 1px solid var(--border);
  border-radius: 50%;
  width: 38px;
  height: 38px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background var(--transition), border-color var(--transition), transform 0.2s;
  color: var(--text2);
  font-size: 14px;
}
.theme-toggle:hover { background: var(--surface); transform: scale(1.05); }

.hub-main {
  max-width: 1100px;
  margin: 0 auto;
  padding: 64px 24px 80px;
}

.hub-subtitle {
  font-size: 15px;
  color: var(--text2);
  margin-bottom: 48px;
  letter-spacing: 0.01em;
}

/* --- Mode Cards -------------------------------------------- */
.mode-cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

@media (max-width: 768px) {
  .mode-cards { grid-template-columns: 1fr; gap: 14px; }
  .hub-main { padding: 40px 16px 60px; }
}

.mode-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  gap: 20px;
  transition: box-shadow var(--transition), transform var(--transition), border-color var(--transition), background var(--transition);
  box-shadow: var(--shadow);
  outline: none;
  position: relative;
  overflow: hidden;
}

.mode-card::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
  opacity: 0;
  transition: opacity var(--transition);
}

#card-stillness::before { background: linear-gradient(135deg, rgba(74,127,165,0.06), transparent); }
#card-sharpen::before { background: linear-gradient(135deg, rgba(61,58,237,0.06), transparent); }
#card-ignite::before { background: linear-gradient(135deg, rgba(200,101,42,0.06), transparent); }

.mode-card:hover { box-shadow: var(--shadow-hover); transform: translateY(-2px); }
.mode-card:hover::before { opacity: 1; }
.mode-card:focus-visible { box-shadow: var(--shadow-hover), 0 0 0 3px var(--accent); }

.card-icon {
  width: 48px;
  height: 48px;
  flex-shrink: 0;
}

.stillness-icon { color: var(--stillness); }
.sharpen-icon { color: var(--accent); }
.ignite-icon { color: var(--ignite); }

.card-icon svg { width: 100%; height: 100%; }

.card-content { flex: 1; }

.card-header-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 8px;
}

.card-name {
  font-size: 22px;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--text);
}

.card-time-badge {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--text3);
  background: var(--bg2);
  padding: 4px 10px;
  border-radius: 100px;
  border: 1px solid var(--border);
}

.card-description {
  font-size: 14px;
  color: var(--text2);
  line-height: 1.55;
}

.card-last-session {
  font-size: 12px;
  color: var(--text3);
  margin-top: 12px;
  min-height: 16px;
}

.card-arrow {
  font-size: 18px;
  color: var(--text3);
  align-self: flex-end;
  transition: transform 0.2s, color 0.2s;
}

.mode-card:hover .card-arrow { transform: translateX(4px); color: var(--accent); }

/* --- Shared Entry Card ------------------------------------- */
.entry-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 48px 40px;
  max-width: 520px;
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 20px;
  box-shadow: var(--shadow);
  animation: fadeUp 0.5s cubic-bezier(0.4, 0, 0.2, 1) both;
}

@keyframes fadeUp {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}

@media (max-width: 480px) {
  .entry-card { padding: 36px 24px; }
}

.entry-title {
  font-size: 42px;
  font-weight: 700;
  letter-spacing: -0.03em;
  color: var(--text);
  line-height: 1;
}

.entry-subtitle {
  font-size: 16px;
  color: var(--text2);
  line-height: 1.6;
  max-width: 340px;
}

.entry-actions {
  display: flex;
  flex-direction: column;
  gap: 10px;
  width: 100%;
  max-width: 280px;
}

/* --- Buttons ---------------------------------------------- */
.btn-primary {
  background: var(--accent);
  color: #fff;
  border: none;
  border-radius: var(--radius-sm);
  padding: 14px 28px;
  font-size: 15px;
  font-weight: 600;
  font-family: var(--font);
  cursor: pointer;
  transition: opacity 0.2s, transform 0.15s, background var(--transition);
  letter-spacing: -0.01em;
}
.btn-primary:hover { opacity: 0.88; transform: translateY(-1px); }
.btn-primary:active { transform: translateY(0); opacity: 0.95; }

.btn-secondary {
  background: var(--surface2);
  color: var(--text2);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 13px 28px;
  font-size: 15px;
  font-weight: 500;
  font-family: var(--font);
  cursor: pointer;
  transition: background var(--transition), color var(--transition), border-color var(--transition);
}
.btn-secondary:hover { background: var(--surface); color: var(--text); }

.back-btn {
  position: fixed;
  top: 20px;
  left: 20px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 10px 16px;
  font-size: 13px;
  font-weight: 500;
  color: var(--text2);
  cursor: pointer;
  font-family: var(--font);
  transition: background var(--transition), color 0.2s;
  z-index: 50;
}
.back-btn:hover { background: var(--surface2); color: var(--text); }

.exit-session-btn {
  position: fixed;
  top: 20px;
  right: 20px;
  background: rgba(128,128,128,0.15);
  backdrop-filter: blur(8px);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 50%;
  width: 40px;
  height: 40px;
  font-size: 18px;
  color: rgba(255,255,255,0.6);
  cursor: pointer;
  font-family: var(--font);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 100;
  transition: background 0.2s, color 0.2s;
}
.exit-session-btn:hover { background: rgba(128,128,128,0.3); color: rgba(255,255,255,0.9); }

/* --- Science Callout -------------------------------------- */
.science-callout {
  background: var(--bg2);
  border: 1px solid var(--border);
  border-radius: var(--radius-xs);
  padding: 14px 18px;
  display: flex;
  gap: 10px;
  align-items: flex-start;
  text-align: left;
  width: 100%;
  max-width: 380px;
}

.science-icon { font-size: 14px; color: var(--accent); flex-shrink: 0; margin-top: 1px; }
.science-callout p { font-size: 13px; color: var(--text2); line-height: 1.6; font-style: italic; }

.science-callout-end {
  max-width: 380px;
  margin: 0 auto;
}

/* --- STILLNESS: Entry Icon -------------------------------- */
.entry-icon { display: flex; align-items: center; justify-content: center; }
.stillness-bg-icon { color: var(--stillness); width: 80px; height: 80px; }
.stillness-bg-icon svg { animation: slowPulse 4s ease-in-out infinite; }

@keyframes slowPulse {
  0%, 100% { transform: scale(1); opacity: 0.8; }
  50% { transform: scale(1.06); opacity: 1; }
}

.orb-ring-2 { animation: rotateSlow 20s linear infinite; }
.orb-ring-3 { animation: rotateSlow 30s linear infinite reverse; }

@keyframes rotateSlow {
  from { transform-origin: 40px 40px; transform: rotate(0deg); }
  to { transform-origin: 40px 40px; transform: rotate(360deg); }
}

/* --- STILLNESS: Sound Picker ------------------------------ */
.sound-picker-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 40px;
  max-width: 480px;
  width: 100%;
  box-shadow: var(--shadow);
  animation: fadeUp 0.4s both;
}

.sound-picker-title {
  font-size: 28px;
  font-weight: 700;
  letter-spacing: -0.02em;
  margin-bottom: 6px;
}
.sound-picker-sub { font-size: 14px; color: var(--text2); margin-bottom: 28px; }

.sound-layers { display: flex; flex-direction: column; gap: 20px; margin-bottom: 28px; }

.sound-layer {
  background: var(--bg2);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 16px 18px;
}

.sound-layer-header {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 12px;
}

.sound-icon { font-size: 18px; }
.sound-name { font-size: 14px; font-weight: 500; flex: 1; }

.sound-preview-btn {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 4px 10px;
  font-size: 11px;
  cursor: pointer;
  color: var(--text2);
  font-family: var(--font);
  transition: background 0.2s;
}
.sound-preview-btn:hover { background: var(--accent); color: white; border-color: var(--accent); }
.sound-preview-btn.playing { background: var(--accent); color: white; border-color: var(--accent); }

.sound-slider {
  width: 100%;
  height: 4px;
  -webkit-appearance: none;
  appearance: none;
  background: var(--border);
  border-radius: 2px;
  outline: none;
  cursor: pointer;
}
.sound-slider::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: var(--accent);
  cursor: pointer;
  box-shadow: 0 1px 4px rgba(0,0,0,0.2);
  transition: transform 0.15s;
}
.sound-slider::-webkit-slider-thumb:hover { transform: scale(1.2); }

.sound-confirm { width: 100%; }

/* --- STILLNESS: Meditation Canvas ------------------------- */
.meditation-bg {
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at center, #1a2a3a 0%, #0d1520 50%, #080d12 100%);
  z-index: 0;
}

[data-theme="dark"] .meditation-bg {
  background: radial-gradient(ellipse at center, #111820 0%, #080d12 50%, #040608 100%);
}

.meditation-orb-container {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 48px;
}

.meditation-orb {
  width: 140px;
  height: 140px;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  animation: breatheOrb 9s cubic-bezier(0.4, 0, 0.6, 1) infinite;
}

@keyframes breatheOrb {
  0%, 100% { transform: scale(1); }
  30% { transform: scale(1.45); }
  55% { transform: scale(1.45); }
  85% { transform: scale(1); }
}

.orb-glow {
  position: absolute;
  inset: -20px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(74,127,165,0.3) 0%, transparent 70%);
  animation: glowPulse 9s cubic-bezier(0.4, 0, 0.6, 1) infinite;
}

@keyframes glowPulse {
  0%, 100% { opacity: 0.5; transform: scale(1); }
  30% { opacity: 1; transform: scale(1.3); }
  55% { opacity: 1; transform: scale(1.3); }
  85% { opacity: 0.5; transform: scale(1); }
}

.orb-core {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  background: radial-gradient(circle at 35% 35%, rgba(140,190,230,0.9), rgba(74,127,165,0.7) 50%, rgba(44,95,128,0.5));
  box-shadow: 0 0 40px rgba(74,127,165,0.5), 0 0 80px rgba(74,127,165,0.2);
}

.meditation-phase-text {
  position: relative;
  z-index: 2;
  text-align: center;
  padding: 0 24px;
  max-width: 480px;
}

.phase-title {
  font-size: 28px;
  font-weight: 300;
  color: rgba(255,255,255,0.95);
  letter-spacing: -0.01em;
  margin-bottom: 12px;
}

.phase-body {
  font-size: 18px;
  color: rgba(255,255,255,0.6);
  line-height: 1.65;
  font-weight: 300;
}

.breath-count {
  font-size: 48px;
  font-weight: 200;
  color: rgba(255,255,255,0.5);
  margin-top: 20px;
  letter-spacing: -0.02em;
  transition: opacity 0.3s;
}

.meditation-progress {
  position: fixed;
  bottom: 40px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 10px;
  z-index: 10;
}

.progress-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: rgba(255,255,255,0.2);
  transition: background 0.6s, transform 0.3s;
}
.progress-dot.active {
  background: rgba(255,255,255,0.8);
  transform: scale(1.4);
}
.progress-dot.done { background: rgba(255,255,255,0.5); }

/* --- Stillness End Screen --------------------------------- */
.end-screen {
  background: var(--bg);
  padding: 40px 24px;
}

.end-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 20px;
  animation: fadeUp 0.8s cubic-bezier(0.4, 0, 0.2, 1) both;
}

.stillness-end-orb {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  background: radial-gradient(circle at 35% 35%, rgba(74,127,165,0.6), rgba(44,95,128,0.3));
  box-shadow: 0 0 40px rgba(74,127,165,0.3);
  animation: endOrbFade 2s ease-out both;
}

@keyframes endOrbFade {
  from { transform: scale(1.5); opacity: 0; }
  to { transform: scale(1); opacity: 1; }
}

.end-title {
  font-size: 38px;
  font-weight: 700;
  letter-spacing: -0.03em;
  color: var(--text);
}

.end-subtitle {
  font-size: 16px;
  color: var(--text2);
}

.end-actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  justify-content: center;
  margin-top: 8px;
}

/* --- SHARPEN: Entry --------------------------------------- */
.sharpen-entry-card {
  gap: 24px;
}

.sharpen-entry-dot-container {
  position: relative;
  width: 80px;
  height: 80px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.sharpen-entry-dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--sharpen-dot);
  box-shadow: 0 0 0 0 rgba(61,58,237,0.4);
  animation: dotPulseEntry 2.5s ease-in-out infinite;
}

@keyframes dotPulseEntry {
  0%, 100% { box-shadow: 0 0 0 0 rgba(61,58,237,0.4); }
  50% { box-shadow: 0 0 0 20px rgba(61,58,237,0); }
}

.sharpen-entry-ring {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  border: 1px solid rgba(61,58,237,0.2);
  animation: ringExpand 2.5s ease-in-out infinite;
}

@keyframes ringExpand {
  0% { transform: scale(0.6); opacity: 0; }
  50% { transform: scale(1); opacity: 1; }
  100% { transform: scale(1.4); opacity: 0; }
}

/* --- SHARPEN: Focus Canvas -------------------------------- */
.sharpen-bg {
  background: #0a0a0c;
}

[data-theme="dark"] .sharpen-bg { background: #060608; }

.focus-dot-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 40px;
  z-index: 2;
}

.focus-ring-wrapper {
  position: relative;
  width: 120px;
  height: 120px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.countdown-ring {
  position: absolute;
  inset: 0;
  transform: rotate(-90deg);
}

.ring-bg {
  fill: none;
  stroke: rgba(255,255,255,0.06);
  stroke-width: 2;
}

.ring-progress {
  fill: none;
  stroke: rgba(255,255,255,0.6);
  stroke-width: 2;
  stroke-linecap: round;
  stroke-dasharray: 339.3;
  stroke-dashoffset: 0;
  transition: stroke 0.5s;
}

.ring-progress.ring-pulse { stroke: rgba(180,180,255,0.9); }
.ring-progress.ring-glow { stroke: rgba(220,220,255,1); filter: drop-shadow(0 0 8px rgba(180,180,255,0.8)); }

.focus-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 0 12px rgba(255,255,255,0.6);
  position: relative;
  z-index: 2;
  transition: box-shadow 0.5s;
}

[data-theme="light"] .focus-dot { background: #3d3aed; box-shadow: 0 0 12px rgba(61,58,237,0.6); }

.sharpen-prompt {
  font-size: 15px;
  color: rgba(255,255,255,0.35);
  text-align: center;
  max-width: 300px;
  line-height: 1.65;
  font-weight: 300;
  min-height: 48px;
  transition: opacity 0.8s;
}

/* --- SHARPEN: End ----------------------------------------- */
.sharpen-end-bg {
  background: #0a0a0c;
}

.sharpen-end-glow {
  width: 120px;
  height: 120px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(120,118,255,0.4) 0%, transparent 70%);
  animation: endGlowPulse 2s ease-out both;
}

@keyframes endGlowPulse {
  from { transform: scale(0.3); opacity: 0; }
  to { transform: scale(1); opacity: 1; }
}

.sharpen-end-bg .end-title { color: rgba(255,255,255,0.92); }
.sharpen-end-bg .science-callout { background: rgba(255,255,255,0.05); border-color: rgba(255,255,255,0.08); }
.sharpen-end-bg .science-callout p { color: rgba(255,255,255,0.5); }
.sharpen-end-bg .btn-secondary {
  background: rgba(255,255,255,0.08);
  border-color: rgba(255,255,255,0.1);
  color: rgba(255,255,255,0.7);
}
.sharpen-end-bg .btn-secondary:hover { background: rgba(255,255,255,0.14); }

/* --- IGNITE: Backgrounds ---------------------------------- */
.ignite-bg {
  background: linear-gradient(160deg, #1a1008 0%, #120c06 50%, #0e0a05 100%);
}

.ignite-prime-bg {
  background: radial-gradient(ellipse at center bottom, #1f1006 0%, #120c06 50%, #080604 100%);
}

/* --- IGNITE: Entry ---------------------------------------- */
.ignite-entry-card {
  border-color: rgba(200,101,42,0.15);
}

.ignite-badge-strip {
  display: flex;
  align-items: center;
  gap: 10px;
}

.protocol-badge {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 3px;
  background: var(--bg2);
  border: 1px solid var(--border);
  border-radius: var(--radius-xs);
  padding: 10px 14px;
}

.badge-num {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.05em;
  color: var(--ignite);
}

.badge-label {
  font-size: 12px;
  font-weight: 600;
  color: var(--text2);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.badge-arrow { font-size: 14px; color: var(--text3); }

.ignite-btn-primary { background: var(--ignite); }
.ignite-btn-primary:hover { background: var(--ignite2); }

/* --- IGNITE: Steps ---------------------------------------- */
.ignite-step-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 28px;
  max-width: 480px;
  width: 100%;
  padding: 80px 24px;
  z-index: 2;
}

.step-header { text-align: center; }

.step-pill {
  display: inline-block;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(200,101,42,0.8);
  background: rgba(200,101,42,0.12);
  padding: 4px 12px;
  border-radius: 100px;
  margin-bottom: 12px;
}

.step-pill-warm { color: rgba(200,149,58,0.9); background: rgba(200,149,58,0.12); }

.step-title {
  font-size: 32px;
  font-weight: 700;
  letter-spacing: -0.025em;
  color: rgba(255,255,255,0.92);
}

/* --- Lung Graphic ----------------------------------------- */
.lung-graphic {
  position: relative;
  width: 100px;
  height: 90px;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  gap: 8px;
}

.lung-left, .lung-right {
  width: 36px;
  background: linear-gradient(to top, rgba(200,101,42,0.7), rgba(200,101,42,0.3));
  border-radius: 20px 20px 14px 14px;
  transition: height 0.8s cubic-bezier(0.4, 0, 0.2, 1);
  height: 40px;
}

.lung-center {
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 12px;
  height: 30px;
  background: rgba(200,101,42,0.5);
  border-radius: 6px 6px 0 0;
}

.lung-graphic.inhale1 .lung-left,
.lung-graphic.inhale1 .lung-right { height: 55px; }
.lung-graphic.inhale2 .lung-left,
.lung-graphic.inhale2 .lung-right { height: 70px; }
.lung-graphic.exhale .lung-left,
.lung-graphic.exhale .lung-right { height: 30px; }
.lung-graphic.rest .lung-left,
.lung-graphic.rest .lung-right { height: 40px; }

.breath-instruction {
  text-align: center;
  min-height: 60px;
}
.breath-main {
  font-size: 20px;
  font-weight: 400;
  color: rgba(255,255,255,0.85);
  margin-bottom: 4px;
}
.breath-sub {
  font-size: 15px;
  color: rgba(255,255,255,0.4);
  font-style: italic;
}

.breath-counter-display {
  font-size: 28px;
  font-weight: 300;
  color: rgba(255,255,255,0.5);
  letter-spacing: -0.01em;
}

.breath-counter-num {
  color: rgba(200,101,42,0.9);
  font-weight: 600;
}

.breath-phase-label {
  font-size: 13px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.3);
  min-height: 20px;
}

/* --- Science Details -------------------------------------- */
.science-details {
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.07);
  border-radius: var(--radius-xs);
  padding: 12px 16px;
  width: 100%;
  font-size: 13px;
  color: rgba(255,255,255,0.45);
  cursor: pointer;
}

.science-details summary {
  color: rgba(255,255,255,0.35);
  font-weight: 500;
  letter-spacing: 0.02em;
  list-style: none;
  cursor: pointer;
}
.science-details summary::-webkit-details-marker { display: none; }
.science-details[open] summary { margin-bottom: 10px; }
.science-details p { line-height: 1.65; }

/* --- IGNITE: Step 2 --------------------------------------- */
.ignite-step2-screen {
  overflow-y: auto;
  min-height: 100dvh;
}

.ignite-step2-screen.active {
  display: flex !important;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  padding: 60px 24px 80px;
}

.commitment-content {
  padding-top: 40px;
}

.notepad-card {
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: var(--radius);
  padding: 24px;
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.notepad-privacy {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  color: rgba(255,255,255,0.3);
  padding-bottom: 14px;
  border-bottom: 1px solid rgba(255,255,255,0.06);
}
.lock-icon { font-size: 14px; }

.notepad-field { display: flex; flex-direction: column; gap: 8px; }

.notepad-label {
  font-size: 13px;
  color: rgba(255,255,255,0.55);
  font-weight: 500;
  line-height: 1.5;
}

.notepad-input {
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: var(--radius-xs);
  padding: 12px 14px;
  font-size: 15px;
  color: rgba(255,255,255,0.85);
  font-family: var(--font);
  resize: none;
  transition: border-color 0.2s, background 0.2s;
  line-height: 1.5;
}
.notepad-input::placeholder { color: rgba(255,255,255,0.2); }
.notepad-input:focus {
  outline: none;
  border-color: rgba(200,101,42,0.5);
  background: rgba(255,255,255,0.07);
}

/* --- IGNITE: Step 3 / Prime ------------------------------- */
.prime-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 40px;
  max-width: 520px;
  width: 100%;
  padding: 80px 24px;
  text-align: center;
  z-index: 2;
}

.prime-glow {
  width: 200px;
  height: 200px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(200,149,58,0.35) 0%, rgba(200,101,42,0.15) 40%, transparent 70%);
  animation: primeExpand 3s ease-out both;
  flex-shrink: 0;
}

@keyframes primeExpand {
  from { transform: scale(0.2); opacity: 0; }
  to { transform: scale(1); opacity: 1; }
}

.prime-prompts { display: flex; flex-direction: column; gap: 20px; }

.prime-prompt {
  font-size: 20px;
  font-weight: 300;
  color: rgba(255,255,255,0.82);
  line-height: 1.6;
  letter-spacing: -0.01em;
  opacity: 0;
  transition: opacity 1.5s ease;
}
.prime-prompt.visible { opacity: 1; }
.prime-finale {
  font-size: 16px;
  font-style: italic;
  color: rgba(200,149,58,0.85);
  opacity: 0;
  transition: opacity 1.5s ease;
}
.prime-finale.visible { opacity: 1; }

/* --- IGNITE: End ------------------------------------------ */
.ignite-end-screen {
  background: var(--bg);
  min-height: 100dvh;
}

.ignite-end-screen.active {
  display: flex;
  align-items: center;
  justify-content: center;
}

.ignite-end-content {
  gap: 24px;
}

.ignite-complete-badges {
  display: flex;
  gap: 16px;
}

.complete-badge {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--text2);
}

.complete-badge-check {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--ignite);
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  font-weight: 600;
  animation: badgePop 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275) both;
}

.complete-badge:nth-child(1) .complete-badge-check { animation-delay: 0.1s; }
.complete-badge:nth-child(2) .complete-badge-check { animation-delay: 0.25s; }
.complete-badge:nth-child(3) .complete-badge-check { animation-delay: 0.4s; }

@keyframes badgePop {
  from { transform: scale(0); opacity: 0; }
  to { transform: scale(1); opacity: 1; }
}

.ignite-end-title { color: var(--text); }
.ignite-end-sub { font-size: 14px; color: var(--text2); }

/* --- Transitions ------------------------------------------ */
.screen-fade-enter { animation: fadeIn 0.4s cubic-bezier(0.4, 0, 0.2, 1) both; }
.screen-fade-exit { animation: fadeOut 0.3s cubic-bezier(0.4, 0, 0.2, 1) both; }

@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }
@keyframes fadeOut { from { opacity: 1; } to { opacity: 0; } }

/* --- Utilities -------------------------------------------- */
.fade-transition { transition: opacity 1s; }
.opacity-0 { opacity: 0; }

/* phase text transitions */
.phase-title, .phase-body { transition: opacity 0.8s; }
.phase-hidden { opacity: 0; }
