/* Rekindle — Calm Flame theme (from original Rekindle design.md) */
:root {
  --primary: #1e4d7b;
  --primary-light: #2a6298;
  --secondary: #a3bcd6;
  --secondary-soft: #d4e3f0;
  --bg: #faf7f2;
  --surface: #ffffff;
  --text: #2a3b4c;
  --muted: #7d8fa4;
  --accent: #5e7a99;
  --border: #e4e6ea;
  --flame: #e85d04;
  --flame-soft: #fde8d8;
  --ember: #adb5bd;
  --radius: 12px;
  --radius-lg: 16px;
  --shadow: 0 2px 12px rgba(30, 77, 123, 0.08);
  --shadow-lg: 0 4px 20px rgba(30, 77, 123, 0.12);
}

* { box-sizing: border-box; }

body {
  margin: 0;
  font-family: "DM Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.55;
  min-height: 100vh;
  min-height: 100dvh;
  -webkit-font-smoothing: antialiased;
  padding: env(safe-area-inset-top) env(safe-area-inset-right) env(safe-area-inset-bottom) env(safe-area-inset-left);
}

.shell {
  max-width: 480px;
  margin: 0 auto;
  padding: 0.5rem max(1rem, env(safe-area-inset-left)) max(2rem, env(safe-area-inset-bottom));
}

/* ── Header ── */
.site-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.75rem 0 1rem;
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.65rem;
}

.brand-mark {
  width: 28px;
  height: 34px;
  flex-shrink: 0;
}

.brand-text {
  display: flex;
  flex-direction: column;
  gap: 0;
}

.brand-name {
  font-family: "Playfair Display", Georgia, serif;
  font-size: 1.4rem;
  font-weight: 600;
  color: var(--primary);
  letter-spacing: -0.02em;
  line-height: 1.1;
}

.brand-tag {
  font-size: 0.7rem;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  font-weight: 500;
}

.nav-link {
  color: var(--accent);
  text-decoration: none;
  font-size: 0.85rem;
  font-weight: 500;
  padding: 0.35rem 0.6rem;
  border-radius: 8px;
  transition: background 0.15s;
}

.nav-link:hover {
  background: var(--secondary-soft);
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 0.35rem;
}

.btn-settings {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.25rem;
  height: 2.25rem;
  padding: 0;
  border: none;
  border-radius: 8px;
  background: transparent;
  color: var(--accent);
  cursor: pointer;
  transition: background 0.15s, color 0.15s;
  -webkit-tap-highlight-color: transparent;
  touch-action: manipulation;
}

.btn-settings:hover {
  background: var(--secondary-soft);
  color: var(--primary);
}

.btn-settings svg {
  width: 1.15rem;
  height: 1.15rem;
}

/* ── Cards ── */
.card {
  background: var(--surface);
  border-radius: var(--radius-lg);
  padding: 1.25rem;
  margin-bottom: 0.85rem;
  box-shadow: var(--shadow);
  border: 1px solid rgba(163, 188, 214, 0.25);
}

.card-hero {
  background: linear-gradient(165deg, var(--surface) 0%, #f5f9fc 55%, var(--secondary-soft) 100%);
  border-color: rgba(163, 188, 214, 0.45);
  padding-top: 1rem;
}

.card-boost {
  border-left: 3px solid var(--primary);
  background: linear-gradient(90deg, #f8fbfd 0%, var(--surface) 12%);
}

.card-boost.card-partner {
  border-left-color: var(--flame);
  background: linear-gradient(90deg, #fffaf7 0%, var(--surface) 12%);
}

.card-muted {
  background: rgba(255, 255, 255, 0.7);
  border-color: var(--border);
  box-shadow: none;
}

.section-title {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--text);
  margin: 0 0 0.5rem;
  letter-spacing: -0.01em;
}

.section-hint {
  font-size: 0.8rem;
  color: var(--muted);
  margin: 0 0 0.85rem;
  line-height: 1.45;
}

.subsection-title {
  font-size: 0.72rem;
  font-weight: 600;
  color: var(--accent);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin: 0 0 0.75rem;
}

/* ── Couple flames (hero) ── */
.couple-visual {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.75rem 0 0.5rem;
  transition: gap 0.35s ease;
}

.couple-visual.close { gap: 0.5rem; }
.couple-visual.near { gap: 1.25rem; }
.couple-visual.apart { gap: 2.75rem; }

.flame-person {
  text-align: center;
  flex: 1;
  background: rgba(255, 255, 255, 0.6);
  border-radius: var(--radius);
  padding: 0.75rem 0.5rem;
  border: 1px solid rgba(163, 188, 214, 0.3);
}

.flame-person .name {
  font-size: 0.72rem;
  font-weight: 600;
  color: var(--accent);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: 0.4rem;
}

.flame-display {
  font-size: 1.85rem;
  min-height: 2.1rem;
  letter-spacing: 0.08em;
  line-height: 1;
}

.flame-display.ember {
  color: var(--ember);
  font-size: 1.6rem;
  font-weight: 300;
}

.flame-label {
  font-size: 0.72rem;
  color: var(--muted);
  margin-top: 0.35rem;
  font-weight: 500;
}

.couple-bridge {
  font-size: 1.1rem;
  color: var(--secondary);
  flex-shrink: 0;
  opacity: 0.8;
}

.couple-note {
  text-align: center;
  font-size: 0.78rem;
  color: var(--muted);
  margin: 0 0 0.25rem;
  line-height: 1.45;
  padding: 0 0.5rem;
  font-style: italic;
}

.couple-visual.celebrate {
  animation: flame-celebrate 0.55s ease;
}

@keyframes flame-celebrate {
  0%, 100% { transform: scale(1); }
  35% { transform: scale(1.045); }
  65% { transform: scale(0.985); }
}

/* ── Intimacy interest meter ── */
.intimacy-check {
  border-top: 1px solid rgba(163, 188, 214, 0.35);
  margin-top: 0.85rem;
  padding-top: 1rem;
}

.intimacy-question {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--text);
  text-align: center;
  margin: 0 0 1rem;
  line-height: 1.4;
}

.intimacy-meter-labels {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.68rem;
  color: var(--muted);
  margin-bottom: 0.4rem;
}

.intimacy-score {
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--primary);
  letter-spacing: 0.04em;
}

.intimacy-meter-track {
  height: 0.5rem;
  background: var(--border);
  border-radius: 999px;
  overflow: hidden;
  margin-bottom: 0.35rem;
}

.intimacy-meter-fill {
  height: 100%;
  width: 50%;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--secondary) 0%, var(--flame) 100%);
  transition: width 0.2s ease;
}

.intimacy-slider {
  -webkit-appearance: none;
  appearance: none;
  width: 100%;
  height: 1.75rem;
  background: transparent;
  margin: 0;
  cursor: pointer;
}

.intimacy-slider::-webkit-slider-runnable-track {
  height: 0;
}

.intimacy-slider::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 1.5rem;
  height: 1.5rem;
  border-radius: 50%;
  background: var(--primary);
  border: 3px solid var(--surface);
  box-shadow: 0 2px 8px rgba(30, 77, 123, 0.35);
  margin-top: -0.75rem;
}

.intimacy-slider::-moz-range-track {
  height: 0;
  background: transparent;
  border: none;
}

.intimacy-slider::-moz-range-thumb {
  width: 1.5rem;
  height: 1.5rem;
  border-radius: 50%;
  background: var(--primary);
  border: 3px solid var(--surface);
  box-shadow: 0 2px 8px rgba(30, 77, 123, 0.35);
  cursor: pointer;
}

.intimacy-ticks {
  display: flex;
  justify-content: space-between;
  padding: 0 0.35rem;
  font-size: 0.65rem;
  color: var(--muted);
  margin-top: -0.15rem;
}

.intimacy-caption {
  text-align: center;
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--primary);
  margin: 0.5rem 0 0;
  min-height: 1.25rem;
}

/* ── Blocker chips ── */
.chip-row {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.chip {
  width: 100%;
  text-align: left;
  line-height: 1.4;
  padding: 0.55rem 0.85rem;
  border-radius: 10px;
  border: 1.5px solid var(--border);
  background: var(--surface);
  font-size: 0.82rem;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.18s ease;
  color: var(--text);
  white-space: normal;
}

.chip:hover {
  border-color: var(--secondary);
  background: var(--secondary-soft);
}

.chip.active {
  background: var(--flame-soft);
  border-color: var(--flame);
  color: #9a3412;
  box-shadow: 0 2px 6px rgba(232, 93, 4, 0.15);
}

.card-daily-on .chip.active {
  background: #ecfdf5;
  border-color: #059669;
  color: #065f46;
  box-shadow: 0 2px 6px rgba(5, 150, 105, 0.15);
}

.card-daily-neutral .chip-row {
  display: none;
}

.profile-step {
  margin-top: 1.25rem;
  padding-top: 1.25rem;
  border-top: 1px solid var(--border);
}

.profile-step:first-of-type {
  margin-top: 0.75rem;
  padding-top: 0;
  border-top: none;
}

.subsection-nested {
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--muted);
  margin: 0 0 0.5rem;
}

.chip-other {
  border-style: dashed;
}

.card-tonight {
  border-left: 3px solid var(--primary);
  background: linear-gradient(135deg, var(--surface) 0%, #f8fbfd 100%);
}

.tonight-because {
  font-size: 0.78rem;
  color: var(--muted);
  margin: 0 0 0.5rem;
  font-style: italic;
}

.tonight-line {
  font-size: 0.95rem;
  color: var(--text);
  margin: 0;
  line-height: 1.45;
}

.tonight-lines {
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
}

.tonight-for-you,
.tonight-for-partner {
  margin: 0;
}

.tonight-label {
  display: block;
  font-size: 0.68rem;
  font-weight: 600;
  color: var(--accent);
  text-transform: uppercase;
  letter-spacing: 0.07em;
  margin-bottom: 0.3rem;
}

.tonight-for-partner .tonight-label {
  color: var(--flame);
}

.tonight-for-you .tonight-line,
.tonight-for-partner .tonight-line {
  font-size: 0.92rem;
}

.blocker-other-wrap {
  margin-top: 0.65rem;
}

.blocker-other-input {
  width: 100%;
  padding: 0.65rem 0.75rem;
  border: 1.5px solid var(--border);
  border-radius: 8px;
  font-size: 0.88rem;
  background: var(--bg);
  color: var(--text);
}

.blocker-other-input:focus {
  outline: none;
  border-color: var(--primary);
  background: var(--surface);
}

/* ── Boost cards ── */
.boost-list {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}

.boost-item {
  background: var(--bg);
  border-radius: var(--radius);
  padding: 0.85rem 0.9rem;
  border: 1px solid var(--border);
  transition: opacity 0.2s, border-color 0.2s;
}

.boost-item.boost-done {
  opacity: 0.7;
  border-color: var(--secondary);
}

.boost-item.boost-done .boost-item-label {
  text-decoration: line-through;
  color: var(--muted);
}

.boost-header {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  cursor: pointer;
  margin-bottom: 0.4rem;
}

.boost-check {
  width: 1.05rem;
  height: 1.05rem;
  accent-color: var(--primary);
  flex-shrink: 0;
}

.boost-chevron {
  color: var(--primary);
  font-size: 0.7rem;
  flex-shrink: 0;
}

.card-partner .boost-chevron {
  color: var(--flame);
}

.boost-item-label {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--primary);
}

.boost-item-tips {
  margin: 0;
  padding-left: 1.15rem;
  font-size: 0.8rem;
  color: var(--text);
  line-height: 1.5;
}

.boost-item-tips li {
  margin-bottom: 0.3rem;
}

.boost-item-tips li:last-child {
  margin-bottom: 0;
}

/* ── Questionnaire ── */
.questionnaire-block {
  margin-bottom: 1.25rem;
  padding-bottom: 1.25rem;
  border-bottom: 1px solid var(--border);
}

.questionnaire-block:last-of-type {
  border-bottom: none;
  padding-bottom: 0;
}

.setup-label {
  display: block;
  font-size: 0.78rem;
  color: var(--accent);
  font-weight: 500;
  margin-bottom: 0.5rem;
}

.pick-count {
  font-weight: 400;
  color: var(--muted);
}

.profile-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.75rem;
}

.segment-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
}

.segment-btn {
  flex: 1;
  min-width: 4.5rem;
  min-height: 44px;
  padding: 0.5rem 0.65rem;
  border: 2px solid var(--border);
  border-radius: 10px;
  background: var(--surface);
  color: var(--primary);
  font-size: 0.88rem;
  font-weight: 600;
  font-family: inherit;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
  touch-action: manipulation;
  transition: background 0.15s, border-color 0.15s, color 0.15s;
}

.segment-btn:hover {
  border-color: var(--secondary);
  background: var(--secondary-soft);
}

.segment-btn.active {
  background: var(--primary);
  border-color: var(--primary);
  color: #fff;
}

.setup-group {
  margin-top: 0.9rem;
}

.setup-group:first-child {
  margin-top: 0;
}

.pick-grid {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.pick-chip {
  width: 100%;
  text-align: left;
  line-height: 1.45;
  padding: 0.75rem 0.9rem;
  border-radius: 10px;
  border: 2px solid var(--border);
  background: var(--bg);
  font-size: 0.82rem;
  font-weight: 500;
  font-family: inherit;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
  touch-action: manipulation;
  transition: all 0.15s;
  color: var(--text);
  white-space: normal;
  display: block;
  min-height: 44px;
}

.pick-chip-nudge {
  animation: pick-nudge 0.35s ease;
}

@keyframes pick-nudge {
  0%, 100% { transform: translateX(0); }
  25% { transform: translateX(-4px); }
  75% { transform: translateX(4px); }
}

.pick-chip-label {
  font-weight: 600;
  color: var(--text);
}

.pick-chip-sub {
  font-size: 0.76rem;
  font-weight: 400;
  color: var(--muted);
  line-height: 1.4;
}

.pick-chip:hover {
  border-color: var(--secondary);
}

.pick-chip.selected {
  background: var(--primary);
  border-color: var(--primary);
  color: white;
}

.pick-chip.selected .pick-chip-label,
.pick-chip.selected .pick-chip-sub {
  color: white;
}

.pick-chip.selected .pick-chip-sub {
  opacity: 0.9;
}

/* ── History ── */
.history-row {
  display: flex;
  gap: 0.45rem;
  justify-content: center;
  padding: 0.5rem 0;
}

.history-dot {
  width: 2.1rem;
  height: 2.1rem;
  border-radius: 50%;
  border: 2px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.62rem;
  font-weight: 600;
  color: var(--muted);
  background: var(--surface);
}

.history-dot.checked {
  background: var(--primary);
  border-color: var(--primary);
  color: white;
}

.history-dot.checked.high {
  background: linear-gradient(135deg, var(--flame) 0%, #f48c06 100%);
  border-color: var(--flame);
}

.history-labels {
  display: flex;
  justify-content: space-between;
  font-size: 0.65rem;
  color: var(--muted);
  padding: 0 0.25rem;
}

.history-collapsible {
  border-top: 1px solid var(--border);
  margin-top: 0.75rem;
  padding-top: 0.5rem;
}

.history-collapsible-toggle {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  padding: 0.55rem 0;
  border: none;
  background: transparent;
  font-family: inherit;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--accent);
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
  touch-action: manipulation;
}

.history-collapsible-toggle:hover {
  color: var(--primary);
}

.history-collapsible-chevron {
  font-size: 0.65rem;
  color: var(--muted);
  transition: transform 0.2s ease;
}

.history-collapsible.open .history-collapsible-chevron {
  transform: rotate(180deg);
}

.history-collapsible-content {
  display: none;
  padding: 0.35rem 0 0.5rem;
}

.history-collapsible.open .history-collapsible-content {
  display: block;
}

/* ── Tips & misc ── */
.tip-box {
  margin-top: 0.75rem;
  padding: 0.85rem;
  background: var(--secondary-soft);
  border-radius: var(--radius);
  font-size: 0.8rem;
  color: var(--text);
  border-left: 3px solid var(--secondary);
}

.tip-box ul {
  margin: 0.35rem 0 0;
  padding-left: 1.1rem;
}

.tip-box strong {
  color: var(--primary);
}

.empty-hint {
  font-size: 0.8rem;
  color: var(--muted);
  margin: 0;
  font-style: italic;
  text-align: center;
  padding: 0.5rem 0;
}

.pair-line {
  font-size: 0.88rem;
  margin: 0;
  color: var(--text);
}

.pair-line strong {
  color: var(--primary);
}

/* ── Buttons & inputs ── */
.btn {
  padding: 0.65rem 1.15rem;
  border: none;
  border-radius: var(--radius);
  background: var(--primary);
  color: white;
  font-size: 0.88rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.18s ease;
  box-shadow: 0 2px 8px rgba(30, 77, 123, 0.2);
  font-family: inherit;
}

.btn:hover {
  background: var(--primary-light);
  box-shadow: 0 4px 12px rgba(30, 77, 123, 0.28);
}

.btn:active {
  transform: translateY(1px);
}

.btn-ghost {
  background: transparent;
  color: var(--accent);
  box-shadow: none;
  border: 1.5px solid var(--border);
}

.btn-ghost:hover {
  background: var(--secondary-soft);
  border-color: var(--secondary);
  color: var(--primary);
  box-shadow: none;
}

#save-config-btn {
  margin-top: 1rem;
  width: 100%;
}

.pair-row {
  display: flex;
  gap: 0.5rem;
  margin-top: 0.5rem;
}

.pair-row input {
  flex: 1;
  padding: 0.6rem 0.85rem;
  border: 1.5px solid var(--border);
  border-radius: var(--radius);
  font-size: 0.9rem;
  font-family: inherit;
  background: var(--surface);
  color: var(--text);
  transition: border-color 0.15s;
}

.pair-row input:focus {
  outline: none;
  border-color: var(--secondary);
  box-shadow: 0 0 0 3px rgba(163, 188, 214, 0.35);
}

.invite-code {
  font-family: "DM Sans", monospace;
  font-size: 1.35rem;
  letter-spacing: 0.25em;
  color: var(--primary);
  font-weight: 700;
  text-align: center;
  padding: 0.5rem 0;
}

input[type="text"].inline-name {
  border: none;
  border-bottom: 1.5px dashed var(--border);
  background: transparent;
  font-size: 0.9rem;
  color: var(--text);
  width: 100%;
  max-width: 14rem;
  padding: 0.25rem 0;
  font-family: inherit;
}

input[type="text"].inline-name:focus {
  outline: none;
  border-bottom-color: var(--primary);
}

/* ── Landing (sign-in) — phone hero type ── */
.landing {
  text-align: center;
  padding: 2rem 1.35rem 2.5rem;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.landing.shell {
  max-width: none;
  padding-left: max(1.35rem, env(safe-area-inset-left));
  padding-right: max(1.35rem, env(safe-area-inset-right));
}

.landing-flame {
  width: 80px;
  height: 97px;
  margin-bottom: 2rem;
  opacity: 0.95;
}

.landing h1 {
  font-family: "Playfair Display", Georgia, serif;
  font-size: clamp(3.25rem, 14vw, 4.5rem);
  font-weight: 600;
  color: var(--primary);
  margin: 0 0 0.85rem;
  letter-spacing: -0.02em;
  line-height: 1.05;
}

.landing-tagline {
  font-size: clamp(1.85rem, 7.5vw, 2.5rem);
  color: var(--accent);
  margin: 0 0 1rem;
  font-weight: 600;
  line-height: 1.2;
}

.landing p {
  color: var(--muted);
  margin: 0 0 2.25rem;
  font-size: clamp(1.4rem, 5vw, 1.75rem);
  line-height: 1.45;
  max-width: none;
  padding: 0 0.25rem;
}

.landing .btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.65rem;
  text-decoration: none;
  width: 100%;
  max-width: 360px;
  padding: 1.15rem 1.5rem;
  font-size: 1.3rem;
  min-height: 58px;
}

.landing .btn svg {
  width: 22px;
  height: 22px;
}

.landing-hint {
  margin-top: 1.25rem;
  font-size: 1.1rem;
  color: var(--muted);
  max-width: none;
  padding: 0 0.5rem;
  line-height: 1.45;
}

/* ── Daily app ── */
#daily-app {
  min-height: 100vh;
}

#daily-app .site-header {
  padding-bottom: 0.75rem;
}

#daily-app .card-hero {
  margin-top: 0;
}

#daily-app .card:last-of-type {
  margin-bottom: 0;
}

/* ── Wizard overlay ── */
#wizard {
  position: fixed;
  inset: 0;
  z-index: 100;
  background: var(--bg);
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
}

.wizard-inner {
  max-width: 480px;
  margin: 0 auto;
  width: 100%;
  min-height: 100dvh;
  padding: 0.35rem 1.35rem 1.5rem;
  display: flex;
  flex-direction: column;
}

.wizard-brand {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 1.25rem 0 0.5rem;
}

.wizard-brand .brand-mark {
  width: 24px;
  height: 29px;
}

.wizard-brand .brand-name {
  font-size: 1.2rem;
}

.wizard-progress {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.45rem;
  padding: 0.35rem 0 0.65rem;
  flex-shrink: 0;
}

.wizard-step-count {
  font-size: 0.95rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
}

.wizard-dots {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.35rem;
  max-width: 100%;
}

.wizard-dot {
  width: 0.4rem;
  height: 0.4rem;
  border-radius: 50%;
  background: var(--border);
  transition: background 0.2s ease, transform 0.2s ease;
}

.wizard-dot.active {
  background: var(--primary);
  transform: scale(1.35);
}

.wizard-dot.done {
  background: var(--secondary);
}

.wizard-hint-center {
  text-align: center;
}

.wizard-field-centered input {
  text-align: center;
  font-size: 1.65rem;
  padding: 1rem;
}

.check-row-large {
  justify-content: center;
  padding: 1.15rem;
  margin-top: 0.75rem;
  font-size: 1.35rem;
  line-height: 1.35;
}

.segment-row-stack {
  flex-direction: column;
  gap: 0.5rem;
}

.segment-row-stack .segment-btn {
  width: 100%;
  flex: none;
}

.framework-explainer {
  list-style: none;
  margin: 0.5rem 0 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 1.35rem;
}

.framework-explainer-item {
  display: flex;
  align-items: flex-start;
  gap: 0.85rem;
  padding: 0;
  border: none;
  background: none;
  cursor: default;
}

.framework-explainer-icon {
  flex-shrink: 0;
  font-size: 1.65rem;
  line-height: 1.2;
  margin-top: 0.1rem;
}

.framework-explainer-body {
  flex: 1;
  min-width: 0;
}

.framework-explainer-title {
  margin: 0 0 0.2rem;
  font-size: clamp(1.15rem, 4vw, 1.35rem);
  font-weight: 600;
  color: var(--text);
  line-height: 1.35;
}

.framework-explainer-desc {
  margin: 0;
  font-size: clamp(1.05rem, 3.6vw, 1.25rem);
  color: var(--muted);
  line-height: 1.45;
}

.wizard-step-sparse .framework-explainer {
  margin-top: 0.25rem;
}

.wizard-step-sparse .framework-explainer-icon {
  font-size: clamp(1.5rem, 5vw, 1.85rem);
}

.wizard-step-sparse .framework-explainer-title {
  font-size: clamp(1.25rem, 4.5vw, 1.5rem);
}

.wizard-step-sparse .framework-explainer-desc {
  font-size: clamp(1.15rem, 4vw, 1.35rem);
}

.wizard-info-list {
  margin-top: 0.5rem;
}

.wizard-info-item {
  gap: 0;
}

.wizard-info-item .framework-explainer-desc {
  margin: 0;
}

.custom-wish-freeform {
  width: 100%;
  margin-top: 0.75rem;
  min-height: 7.5rem;
  padding: 0.9rem 1rem;
  border-radius: var(--radius);
  border: 1.5px solid var(--border);
  background: var(--surface);
  color: var(--text);
  font: inherit;
  font-size: clamp(1.05rem, 3.6vw, 1.25rem);
  line-height: 1.45;
  resize: vertical;
}

.custom-wish-freeform:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 2px rgba(30, 77, 123, 0.15);
}

.custom-wish-freeform::placeholder {
  color: var(--muted);
}

#wizard-step-1 .wizard-kicker {
  text-align: center;
  font-size: 1.15rem;
  letter-spacing: 0.12em;
  margin-bottom: 1rem;
}

#wizard-step-1 .wizard-title {
  font-size: clamp(3rem, 12vw, 4.25rem);
  line-height: 1.08;
  text-align: center;
  margin-bottom: 1.35rem;
}

#wizard-step-1 .wizard-hint {
  font-size: clamp(1.55rem, 5.5vw, 1.95rem);
  line-height: 1.45;
  max-width: none;
  margin-left: auto;
  margin-right: auto;
  padding: 0 0.15rem;
}

.wizard-step {
  display: none;
  flex: 1;
}

.wizard-step.active {
  display: block;
}

.wizard-step-sparse.active {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 0.75rem 0 1.25rem;
  flex: 1;
}

.wizard-step-sparse .wizard-title {
  font-size: clamp(2.15rem, 8vw, 3rem);
  margin-bottom: 0.85rem;
  line-height: 1.15;
}

.wizard-step-sparse .wizard-hint {
  font-size: clamp(1.4rem, 4.8vw, 1.75rem);
  line-height: 1.45;
  margin-bottom: 1.35rem;
}

.wizard-step-sparse .wizard-kicker {
  font-size: 1.1rem;
  margin-bottom: 0.65rem;
}

.wizard-step-sparse .wizard-footnote {
  font-size: clamp(1.15rem, 4vw, 1.35rem);
  line-height: 1.45;
}

.wizard-step-sparse .segment-btn {
  font-size: clamp(1.2rem, 4.2vw, 1.45rem);
  padding: 1rem 1.1rem;
  min-height: 58px;
}

.wizard-step-sparse .check-row-large {
  font-size: clamp(1.25rem, 4.5vw, 1.45rem);
}

.wizard-step-sparse .wizard-field-centered input {
  font-size: clamp(1.55rem, 5vw, 1.85rem);
  padding: 1rem 1.1rem;
}

.wizard-kicker {
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--flame);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin: 0 0 0.35rem;
  text-align: center;
}

.wizard-footnote {
  font-size: 1.15rem;
  color: var(--muted);
  margin: 0.85rem 0 0;
  line-height: 1.45;
  text-align: center;
}

.expectations-grid {
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
  margin-top: 0.85rem;
}

.expectations-block {
  padding: 0.85rem 0.95rem;
  border-radius: var(--radius);
  border: 1.5px solid var(--border);
  background: var(--bg);
}

.expectations-will {
  border-color: rgba(5, 150, 105, 0.35);
  background: #f0fdf8;
}

.expectations-wont {
  border-color: rgba(163, 188, 214, 0.45);
  background: #f8fafc;
}

.expectations-title {
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin: 0 0 0.5rem;
  color: var(--text);
}

.expectations-will .expectations-title {
  color: #047857;
}

.expectations-wont .expectations-title {
  color: var(--accent);
}

.expectations-list {
  margin: 0;
  padding-left: 1.1rem;
  font-size: 0.78rem;
  line-height: 1.45;
  color: var(--text);
}

.expectations-list li {
  margin-bottom: 0.35rem;
}

.expectations-list li:last-child {
  margin-bottom: 0;
}

.btn-checkin-early {
  width: 100%;
  margin-top: 0.85rem;
  font-size: 0.88rem;
}

#wizard .segment-row {
  margin-top: 0.35rem;
}

#wizard .segment-btn {
  font-size: 0.92rem;
  min-width: 0;
  flex: 1 1 30%;
}

#wizard .pick-chip {
  font-size: 0.9rem;
  padding: 0.85rem 1rem;
}

.wizard-title {
  font-family: "Playfair Display", Georgia, serif;
  font-size: clamp(2rem, 7.5vw, 2.75rem);
  font-weight: 600;
  color: var(--primary);
  margin: 0 0 0.45rem;
  letter-spacing: -0.02em;
  line-height: 1.2;
}

.wizard-hint {
  font-size: clamp(1.35rem, 4.5vw, 1.65rem);
  color: var(--muted);
  margin: 0 0 1.1rem;
  line-height: 1.45;
}

.wizard-field {
  margin-bottom: 1rem;
}

.wizard-field label {
  display: block;
  font-size: 0.78rem;
  color: var(--accent);
  font-weight: 500;
  margin-bottom: 0.45rem;
}

.wizard-field input[type="text"] {
  width: 100%;
  padding: 0.65rem 0.85rem;
  border: 1.5px solid var(--border);
  border-radius: var(--radius);
  font-size: 0.9rem;
  font-family: inherit;
  background: var(--surface);
  color: var(--text);
  transition: border-color 0.15s;
}

.wizard-field input[type="text"]:focus {
  outline: none;
  border-color: var(--secondary);
  box-shadow: 0 0 0 3px rgba(163, 188, 214, 0.35);
}

.check-row {
  display: flex;
  align-items: flex-start;
  gap: 0.55rem;
  font-size: 0.88rem;
  color: var(--text);
  cursor: pointer;
  margin: 0.5rem 0 0;
}

.check-row input[type="checkbox"] {
  width: 1.05rem;
  height: 1.05rem;
  margin-top: 0.15rem;
  accent-color: var(--primary);
  flex-shrink: 0;
}

.wizard-picks {
  margin-top: 0.25rem;
}

#wizard .pick-grid,
#settings-panel .pick-grid {
  gap: 0.45rem;
}

.wizard-actions {
  display: flex;
  gap: 0.6rem;
  margin-top: 1.5rem;
  padding-top: 0.5rem;
}

.wizard-actions .btn {
  flex: 1;
  font-size: 1.25rem;
  padding: 1rem 1.15rem;
  min-height: 56px;
}

.wizard-actions .btn-ghost {
  font-size: 1.15rem;
}

/* ── Flame duel (hot or not / not hot) ── */
.wizard-step-duel.active {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 0.35rem 0 0.75rem;
  flex: 1;
}

#wizard-step-8 .wizard-title,
#wizard-step-9 .wizard-title {
  font-size: clamp(2.35rem, 9.5vw, 3.35rem);
  text-align: center;
  margin-bottom: 0.75rem;
  line-height: 1.12;
  padding: 0 0.15rem;
}

.duel-kicker {
  font-size: clamp(1.2rem, 4.5vw, 1.5rem);
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  text-align: center;
  margin: 0 0 0.65rem;
}

.duel-kicker-cool {
  color: #334155;
}

.duel-kicker-spark {
  color: var(--flame);
}

.duel-round-badge {
  text-align: center;
  font-size: clamp(1.25rem, 4.5vw, 1.55rem);
  font-weight: 700;
  color: var(--accent);
  margin: 0 0 1.25rem;
}

.duel-arena {
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
  width: 100%;
}

.duel-vs {
  text-align: center;
  font-size: clamp(1.25rem, 4vw, 1.5rem);
  font-weight: 700;
  color: var(--muted);
  padding: 0.15rem 0;
}

.duel-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.85rem;
  width: 100%;
  min-height: 9.5rem;
  padding: 1.35rem 1.25rem;
  border-radius: var(--radius-lg);
  border: 2.5px solid var(--border);
  background: var(--surface);
  cursor: pointer;
  font-family: inherit;
  text-align: center;
  transition: transform 0.15s ease, border-color 0.15s ease, box-shadow 0.15s ease;
  -webkit-tap-highlight-color: transparent;
  touch-action: manipulation;
}

.duel-card-cool {
  background: linear-gradient(165deg, #f8fafc 0%, #e2e8f0 100%);
  border-color: rgba(71, 85, 105, 0.45);
}

.duel-card-spark {
  background: linear-gradient(165deg, #fff7ed 0%, #fed7aa 100%);
  border-color: rgba(232, 93, 4, 0.5);
}

.duel-card-icon {
  font-size: 2.35rem;
  line-height: 1;
}

.duel-card-label {
  font-size: clamp(1.5rem, 5.8vw, 2rem);
  font-weight: 700;
  line-height: 1.3;
  color: var(--text);
  max-width: 22rem;
}

.duel-card:active {
  transform: scale(0.985);
}

.duel-card-chosen {
  border-color: var(--primary);
  border-width: 3px;
  box-shadow: var(--shadow-lg);
  transform: scale(1.01);
}

.duel-card-spark.duel-card-chosen {
  border-color: var(--accent-warm);
  box-shadow: 0 0 0 2px rgba(255, 160, 90, 0.35);
}

.duel-kicker-wish {
  color: var(--accent-gold, #c9a962);
}

.duel-card-wish {
  border-color: rgba(201, 169, 98, 0.35);
  background: linear-gradient(165deg, rgba(201, 169, 98, 0.12) 0%, rgba(30, 77, 123, 0.08) 100%);
}

.duel-card-wish.duel-card-chosen {
  border-color: var(--accent-gold, #c9a962);
  box-shadow: 0 0 0 2px rgba(201, 169, 98, 0.35);
}

.duel-kicker-spicy {
  color: #e85d4a;
}

.duel-card-spicy {
  border-color: rgba(232, 93, 74, 0.35);
  background: linear-gradient(165deg, rgba(232, 93, 74, 0.14) 0%, rgba(30, 77, 123, 0.08) 100%);
}

.duel-card-spicy.duel-card-chosen {
  border-color: #e85d4a;
  box-shadow: 0 0 0 2px rgba(232, 93, 74, 0.35);
}

.duel-card-spark.duel-card-chosen {
  border-color: var(--flame);
}

.duel-card-pop {
  animation: duel-pop 0.28s ease;
}

@keyframes duel-pop {
  0% { opacity: 0.65; transform: scale(0.97); }
  100% { opacity: 1; transform: scale(1); }
}

.duel-footnote {
  text-align: center;
  font-size: clamp(1.2rem, 4.2vw, 1.45rem);
  color: var(--muted);
  margin: 1.25rem 0 0;
  line-height: 1.45;
  padding: 0 0.25rem;
}

.card-question .daily-context-grid {
  margin-top: 0.65rem;
}

.card-question .daily-context-grid .pick-chip {
  font-size: clamp(1.05rem, 3.8vw, 1.25rem);
  padding: 0.85rem 1rem;
}

.daily-context-kicker {
  margin-bottom: 0.35rem;
}

.daily-context-footnote {
  margin-top: 0.85rem;
}

.card-question .daily-quiz-arena {
  margin-top: 0.5rem;
}

.card-question .daily-quiz-arena .duel-card {
  min-height: 7.5rem;
  padding: 1rem 1.1rem;
  gap: 0.65rem;
}

.card-question .daily-quiz-arena .duel-card-icon {
  font-size: 1.85rem;
}

.card-question .daily-quiz-arena .duel-card-label {
  font-size: clamp(1.15rem, 4.5vw, 1.45rem);
}

.card-question .daily-quiz-footnote {
  font-size: clamp(1rem, 3.6vw, 1.2rem);
  margin: 0.85rem 0 0;
}

.card-question .daily-quiz-skip {
  display: block;
  margin: 0.75rem auto 0;
  font-size: clamp(1rem, 3.5vw, 1.15rem);
}

.daily-context-other-wrap {
  margin-top: 0.35rem;
  text-align: center;
}

.daily-context-other-toggle {
  border: none;
  background: transparent;
  font-family: inherit;
  font-size: clamp(0.95rem, 3.4vw, 1.1rem);
  font-weight: 500;
  color: var(--accent);
  cursor: pointer;
  padding: 0.35rem 0.5rem;
  -webkit-tap-highlight-color: transparent;
  touch-action: manipulation;
}

.daily-context-other-toggle:hover {
  color: var(--primary);
}

.daily-context-other-panel {
  margin-top: 0.45rem;
  text-align: left;
}

.daily-context-other-input {
  width: 100%;
  min-height: auto;
  padding: 0.65rem 0.85rem;
  border-radius: var(--radius);
  border: 1.5px solid var(--border);
  background: var(--surface);
  color: var(--text);
  font: inherit;
  font-size: clamp(1rem, 3.5vw, 1.15rem);
  line-height: 1.4;
  resize: none;
}

.daily-context-other-input:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 2px rgba(30, 77, 123, 0.15);
}

.daily-context-other-input::placeholder {
  color: var(--muted);
}

.card-question .duel-kicker {
  margin-bottom: 0.35rem;
}

.duel-complete {
  margin-top: 1.25rem;
  padding: 1.25rem 1rem 1rem;
  border-radius: var(--radius-lg);
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border);
  text-align: center;
}

.duel-complete-title {
  margin: 0 0 0.35rem;
  font-size: clamp(1.35rem, 5vw, 1.65rem);
  font-weight: 600;
  letter-spacing: 0.02em;
  color: var(--primary);
}

.duel-complete-hint {
  margin: 0 0 0.85rem;
  font-size: clamp(1.05rem, 3.8vw, 1.2rem);
  line-height: 1.45;
  color: var(--muted);
}

.duel-complete .btn-sm {
  min-width: 8.5rem;
}

.duel-complete-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
  justify-content: center;
  align-items: center;
}

.settings-duel-block {
  margin-top: 1.25rem;
  padding-top: 1.15rem;
  border-top: 1px solid var(--border);
}

.settings-duel-block:first-of-type {
  margin-top: 0.75rem;
  padding-top: 0;
  border-top: none;
}

.settings-duel-title {
  font-family: "Playfair Display", Georgia, serif;
  font-size: clamp(1.85rem, 7vw, 2.35rem);
  font-weight: 600;
  margin: 0 0 0.5rem;
  color: var(--primary);
  line-height: 1.15;
  text-align: center;
}

/* ── Settings panel ── */
#settings-panel {
  position: fixed;
  inset: 0;
  z-index: 90;
  background: var(--bg);
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  transform: translateY(100%);
  transition: transform 0.28s ease;
  visibility: hidden;
}

#settings-panel.open {
  transform: translateY(0);
  visibility: visible;
}

.settings-panel-inner {
  max-width: 420px;
  margin: 0 auto;
  padding: 0.75rem 1rem 2.5rem;
}

.settings-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.75rem 0 1rem;
  border-bottom: 1px solid var(--border);
  margin-bottom: 0.85rem;
}

.settings-title {
  font-family: "Playfair Display", Georgia, serif;
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--primary);
  margin: 0;
}

.settings-section {
  margin-bottom: 0.85rem;
}

.settings-section .section-hint {
  margin-bottom: 0.65rem;
}

.settings-reminder {
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
}

.reminder-time-input {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.settings-reminder-btn {
  width: 100%;
  justify-content: center;
  font-size: 1rem;
  padding: 0.85rem 1rem;
}

.settings-reminder-btn.is-set {
  background: var(--surface);
  color: var(--primary);
  border: 1.5px solid var(--border);
  box-shadow: none;
}

.settings-reminder-btn.is-set:hover {
  border-color: var(--secondary);
  background: #f8fafc;
}

/* ── Save toast ── */
#save-toast {
  position: fixed;
  top: 42%;
  left: 50%;
  z-index: 200;
  transform: translate(-50%, -50%) scale(0.92);
  opacity: 0;
  pointer-events: none;
  padding: 0.55rem 1.15rem;
  border-radius: 999px;
  background: var(--primary);
  color: white;
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  box-shadow: var(--shadow-lg);
  transition: opacity 0.22s ease, transform 0.22s ease;
}

#save-toast.show {
  opacity: 1;
  transform: translate(-50%, -50%) scale(1);
}

/* ── Mobile daily flow ── */
.site-header-compact {
  padding: 0.35rem 0 0.5rem;
}

.brand-compact .brand-name {
  font-size: 1.15rem;
}

.brand-compact .brand-mark {
  width: 24px;
  height: 29px;
}

.flames-strip {
  display: flex;
  justify-content: space-between;
  gap: 0.75rem;
  padding: 0.65rem 0.85rem;
  margin-bottom: 0.65rem;
  background: var(--surface);
  border-radius: var(--radius-lg);
  border: 1px solid rgba(163, 188, 214, 0.3);
  box-shadow: var(--shadow);
  transition: transform 0.25s ease;
}

.flames-strip.celebrate {
  animation: flame-celebrate 0.45s ease;
}

.flames-strip-you,
.flames-strip-partner {
  flex: 1;
  text-align: center;
  min-width: 0;
}

.flames-strip-cell {
  position: relative;
  cursor: help;
  border-radius: var(--radius-md);
  outline: none;
}

.flames-strip-cell::after {
  content: attr(data-tip);
  position: absolute;
  left: 50%;
  bottom: calc(100% + 0.45rem);
  transform: translateX(-50%);
  width: min(16rem, 88vw);
  padding: 0.55rem 0.7rem;
  font-size: 0.78rem;
  line-height: 1.35;
  font-weight: 500;
  color: var(--ink);
  background: #fff;
  border: 1px solid rgba(163, 188, 214, 0.45);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.15s ease;
  z-index: 20;
  text-transform: none;
  letter-spacing: normal;
  white-space: normal;
}

.flames-strip-cell:hover::after,
.flames-strip-cell:focus-visible::after,
.flames-strip-cell.show-tip::after {
  opacity: 1;
}

.invite-message-preview {
  margin: 0.5rem 0 0.75rem;
  padding: 0.75rem 0.85rem;
  font-family: inherit;
  font-size: 0.92rem;
  line-height: 1.45;
  white-space: pre-wrap;
  word-break: break-word;
  color: var(--ink);
  background: rgba(255, 255, 255, 0.7);
  border: 1px solid rgba(163, 188, 214, 0.35);
  border-radius: var(--radius-md);
}

.flames-strip-name {
  display: block;
  font-size: 0.65rem;
  font-weight: 600;
  color: var(--accent);
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.flames-strip-emoji {
  display: block;
  font-size: 1.5rem;
  line-height: 1.3;
  min-height: 1.75rem;
}

.flames-strip-emoji.ember {
  color: var(--ember);
}

.flames-strip-label {
  display: block;
  font-size: 0.68rem;
  color: var(--muted);
  font-weight: 500;
}

.flames-strip-bridge {
  flex-shrink: 0;
  align-self: center;
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--secondary);
  opacity: 0.7;
  padding: 0 0.15rem;
}

.flames-strip.solo .flames-strip-partner {
  opacity: 0.55;
}

.flames-caption {
  text-align: center;
  font-size: 0.72rem;
  color: var(--muted);
  margin: -0.35rem 0 0.55rem;
  line-height: 1.4;
  padding: 0 0.5rem;
}

.profile-nudge {
  text-align: center;
  font-size: 0.78rem;
  color: var(--primary);
  background: var(--secondary-soft);
  border-radius: var(--radius);
  padding: 0.55rem 0.75rem;
  margin: 0 0 0.65rem;
  line-height: 1.45;
}

.daily-checkin-flow {
  margin-bottom: 0.65rem;
}

.daily-checkin-progress {
  display: flex;
  justify-content: center;
  gap: 0.45rem;
  margin: 0.15rem 0 0.85rem;
}

.daily-checkin-dot {
  width: 0.45rem;
  height: 0.45rem;
  border-radius: 50%;
  background: var(--border);
  transition: background 0.2s ease, transform 0.2s ease;
}

.daily-checkin-dot.active {
  background: var(--primary);
  transform: scale(1.25);
}

.daily-checkin-dot.done {
  background: rgba(30, 77, 123, 0.45);
}

.daily-checkin-screen.hidden {
  display: none !important;
}

.daily-context-actions {
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
  margin-top: 0.85rem;
}

.daily-context-actions .btn-sm {
  width: 100%;
}

.card-question {
  padding: 1.1rem 1rem;
  margin-bottom: 0.65rem;
}

.question-badge {
  display: inline-block;
  font-size: 0.65rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--primary);
  background: var(--secondary-soft);
  padding: 0.25rem 0.55rem;
  border-radius: 6px;
  margin-bottom: 0.65rem;
}

.question-text {
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--text);
  margin: 0 0 0.35rem;
  line-height: 1.35;
}

.intimacy-caption {
  text-align: center;
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--primary);
  margin: 0.65rem 0 0;
  min-height: auto;
}

.desire-flame-picker {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 0.4rem;
  margin-top: 0.35rem;
}

.daily-pulse-callout {
  margin: 0.85rem 0 0.25rem;
  font-size: clamp(1.05rem, 4.2vw, 1.2rem);
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  text-align: center;
  color: var(--flame);
}

.daily-pulse-actions {
  margin-top: 1.1rem;
  display: flex;
  justify-content: center;
}

.daily-pulse-actions .btn {
  min-width: 9rem;
  padding: 0.65rem 1.35rem;
  font-size: 1rem;
}

.desire-flame-picker-horizontal {
  gap: 0.55rem;
  margin-top: 0.55rem;
}

.desire-flame-picker-horizontal .desire-flame-btn {
  min-height: 5.85rem;
  padding: 0.8rem 0.35rem;
  border-width: 2px;
}

.desire-flame-picker-horizontal .desire-flame-label {
  font-size: clamp(0.68rem, 2.9vw, 0.82rem);
}

.desire-flame-picker-horizontal .desire-flame-icon {
  font-size: clamp(0.88rem, 3.9vw, 1.08rem);
}

.desire-flame-picker-horizontal .desire-flame-btn[data-value="5"] .desire-flame-icon {
  font-size: clamp(0.72rem, 3.2vw, 0.88rem);
}

.desire-flame-picker-horizontal .desire-flame-ice {
  font-size: clamp(1.4rem, 5.8vw, 1.75rem);
}

#q1-card .question-text {
  font-size: clamp(1.35rem, 5vw, 1.55rem);
  line-height: 1.25;
}

#q1-card .section-hint {
  margin-top: 0.35rem;
}

.desire-flame-btn {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.3rem;
  min-height: 4.25rem;
  padding: 0.55rem 0.2rem;
  border: 1.5px solid var(--border);
  border-radius: var(--radius);
  background: var(--surface);
  cursor: pointer;
  font-family: inherit;
  transition: border-color 0.15s ease, background 0.15s ease, box-shadow 0.15s ease;
}

.desire-flame-btn:hover {
  border-color: rgba(232, 93, 4, 0.45);
}

.desire-flame-btn.active {
  border-color: var(--flame);
  background: linear-gradient(165deg, #fff7ed 0%, #ffedd5 100%);
  box-shadow: 0 0 0 2px rgba(232, 93, 4, 0.18);
}

.desire-flame-btn.active[data-value="1"] {
  border-color: #60a5fa;
  background: linear-gradient(165deg, #eff6ff 0%, #dbeafe 100%);
  box-shadow: 0 0 0 2px rgba(96, 165, 250, 0.22);
}

.desire-flame-icons {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.06rem;
  min-height: 1.4rem;
  flex-wrap: nowrap;
  width: 100%;
}

.desire-flame-icon {
  font-size: clamp(0.62rem, 2.8vw, 0.78rem);
  line-height: 1;
  flex-shrink: 0;
}

.desire-flame-btn[data-value="5"] .desire-flame-icon {
  font-size: clamp(0.5rem, 2.2vw, 0.62rem);
}

.desire-flame-ice {
  font-size: clamp(0.95rem, 4vw, 1.15rem);
  line-height: 1;
  flex-shrink: 0;
}

.desire-flame-label {
  font-size: 0.58rem;
  font-weight: 600;
  line-height: 1.15;
  text-align: center;
  color: var(--muted);
}

.desire-flame-btn.active .desire-flame-label {
  color: var(--primary);
}

.desire-reassurance {
  margin: 1rem 0 0;
  padding: 0.85rem 1rem;
  border-radius: var(--radius);
  background: rgba(30, 77, 123, 0.06);
  border-left: 3px solid var(--secondary);
  font-size: clamp(1.05rem, 3.8vw, 1.2rem);
  line-height: 1.45;
  color: var(--text);
  font-style: italic;
}

.intimacy-meter-mobile {
  margin-top: 0.25rem;
}

.intimacy-meter-mobile .intimacy-slider {
  height: 2.5rem;
  margin-bottom: 0.35rem;
}

.intimacy-meter-mobile .intimacy-slider::-webkit-slider-thumb {
  width: 2rem;
  height: 2rem;
}

.intimacy-meter-mobile .intimacy-slider::-moz-range-thumb {
  width: 2rem;
  height: 2rem;
}

.intimacy-meter-mobile .intimacy-meter-labels {
  font-size: 0.72rem;
}

.intimacy-score {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--primary);
}

.chip-row-mobile .chip {
  min-height: 52px;
  font-size: 0.92rem;
  padding: 0.75rem 1rem;
  border-radius: 12px;
}

.hints-section {
  margin-top: 0.5rem;
}

.hints-heading {
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--accent);
  margin: 0 0 0.35rem 0.35rem;
}

.hints-disclaimer {
  font-size: 0.72rem;
  color: var(--muted);
  margin: 0 0 0.65rem 0.35rem;
  line-height: 1.4;
  font-style: italic;
}

.pairing-note {
  margin-top: 0.65rem;
  font-size: 0.75rem;
  line-height: 1.45;
}

.hint-card {
  background: var(--surface);
  border-radius: var(--radius-lg);
  padding: 1rem 1.05rem;
  margin-bottom: 0.65rem;
  box-shadow: var(--shadow);
  border: 1px solid rgba(163, 188, 214, 0.25);
}

.hint-card-self {
  border-left: 4px solid var(--primary);
}

.hint-card-partner {
  border-left: 4px solid var(--flame);
}

.hint-card-label {
  display: block;
  font-size: 0.68rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--accent);
  margin-bottom: 0.45rem;
}

.hint-card-partner .hint-card-label {
  color: var(--flame);
}

.hint-card-text {
  margin: 0;
  font-size: 0.95rem;
  line-height: 1.45;
  color: var(--text);
}

.nav-link-block {
  display: block;
  text-align: center;
  padding: 0.75rem;
}

#daily-app {
  padding-bottom: 1rem;
}

@media (min-width: 480px) {
  .question-text {
    font-size: 1.12rem;
  }
}

/* ── Errors ── */
.error-banner {
  background: #fef2f2;
  color: #991b1b;
  padding: 0.75rem 0.9rem;
  border-radius: var(--radius);
  margin-bottom: 0.85rem;
  font-size: 0.85rem;
  border: 1px solid #fecaca;
}

.hint-card-example {
  margin: 0.5rem 0 0;
  font-size: 0.92rem;
  line-height: 1.45;
  color: var(--muted);
  font-style: italic;
}

.pair-nudge {
  background: linear-gradient(165deg, #f5f9fc 0%, var(--secondary-soft) 100%);
  border: 1.5px solid rgba(163, 188, 214, 0.45);
  border-radius: var(--radius-lg);
  padding: 1.15rem 1.2rem;
  margin-top: 1rem;
  margin-bottom: 0.85rem;
  box-shadow: var(--shadow);
}

.pair-nudge-title {
  font-family: "Playfair Display", Georgia, serif;
  font-size: 1.35rem;
  font-weight: 600;
  color: var(--primary);
  margin: 0 0 0.65rem;
}

.pair-nudge-steps {
  margin: 0 0 1rem;
  padding-left: 1.2rem;
  font-size: 0.95rem;
  line-height: 1.5;
  color: var(--text);
}

.pair-nudge-steps li {
  margin-bottom: 0.35rem;
}

.pair-nudge-link-label {
  font-size: 0.8rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--accent);
  margin: 0 0 0.35rem;
  text-align: center;
}

.invite-message-preview,
.settings-invite-message {
  margin: 0 0 0.85rem;
  padding: 0.85rem 1rem;
  border-radius: 0.65rem;
  background: var(--surface-muted, rgba(0, 0, 0, 0.04));
  font-family: inherit;
  font-size: clamp(0.95rem, 3.4vw, 1.05rem);
  line-height: 1.45;
  white-space: pre-wrap;
  word-break: break-word;
  color: var(--text, inherit);
}

.invite-link {
  display: block;
  font-size: clamp(0.95rem, 3.4vw, 1.05rem);
  line-height: 1.45;
  color: var(--primary);
  font-weight: 600;
  text-align: center;
  word-break: break-all;
  padding: 0.35rem 0 0.65rem;
  text-decoration: underline;
  text-underline-offset: 0.15em;
}

.invite-link:hover {
  color: var(--secondary);
}

.invite-code-daily {
  margin-bottom: 0.65rem;
}

.btn-copy-invite {
  width: 100%;
  margin-bottom: 0.5rem;
}

.pair-nudge-foot {
  text-align: center;
  font-size: 0.88rem;
  color: var(--muted);
  margin: 0;
}

.link-btn {
  background: none;
  border: none;
  padding: 0;
  font: inherit;
  color: var(--primary);
  font-weight: 600;
  cursor: pointer;
  text-decoration: underline;
}

.btn-save-partner {
  width: 100%;
  margin-top: 0.65rem;
}

#settings-partner-name {
  width: 100%;
  padding: 0.75rem 0.9rem;
  border: 1.5px solid var(--border);
  border-radius: var(--radius);
  font-size: 1.1rem;
  font-family: inherit;
  background: var(--surface);
  color: var(--text);
}

/* ── Bid ladder (daily + wizard) ── */
.bid-section {
  margin: 0.65rem 0 0.85rem;
}

.bid-heading {
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--accent);
  margin: 0 0 0.35rem 0.35rem;
}

.bid-disclaimer {
  font-size: 0.72rem;
  color: var(--muted);
  margin: 0 0 0.65rem 0.35rem;
  line-height: 1.4;
  font-style: italic;
}

.bid-countdown {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 600;
  color: var(--primary);
  margin: -0.35rem 0 0.65rem 0.35rem;
  padding: 0.35rem 0.65rem;
  border-radius: 999px;
  background: rgba(30, 77, 123, 0.08);
  border: 1px solid rgba(30, 77, 123, 0.14);
  letter-spacing: 0.01em;
}

.bid-countdown-expired {
  color: var(--muted);
  background: rgba(94, 122, 153, 0.1);
  border-color: rgba(94, 122, 153, 0.2);
  font-weight: 500;
  font-style: italic;
}

.daily-pulse-kicker {
  color: var(--primary);
}

.daily-checkin-summary {
  margin: 0.5rem 0 0.85rem;
  padding: 0.65rem 0.15rem 0;
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 0.75rem;
}

.daily-checkin-summary-text {
  margin: 0;
  font-size: 0.92rem;
  color: var(--text);
  line-height: 1.4;
}

.daily-done-section {
  margin-top: 0.75rem;
}

.card-daily-done {
  text-align: center;
  padding: 1.35rem 1.15rem;
}

.daily-done-kicker {
  margin: 0 0 0.35rem;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #047857;
}

.daily-done-headline {
  margin: 0 0 0.65rem;
  font-family: "Playfair Display", Georgia, serif;
  font-size: 1.35rem;
  color: var(--primary);
}

.daily-done-message {
  margin: 0 0 0.75rem;
  font-size: 0.92rem;
  line-height: 1.5;
  color: var(--text);
}

.daily-done-foot {
  margin: 0;
  font-size: 0.82rem;
  color: var(--muted);
}

.bid-card {
  background: linear-gradient(165deg, #fffaf7 0%, var(--surface) 45%, #f8fbfd 100%);
  border-radius: var(--radius-lg);
  padding: 1.05rem 1.1rem;
  margin-bottom: 0.65rem;
  box-shadow: var(--shadow);
  border: 1px solid rgba(232, 93, 4, 0.22);
  border-left: 4px solid var(--flame);
}

.bid-card-label {
  display: block;
  font-size: 0.68rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--flame);
  margin-bottom: 0.45rem;
}

.bid-card-title {
  margin: 0 0 0.45rem;
  font-family: "Playfair Display", Georgia, serif;
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--primary);
  line-height: 1.35;
}

.bid-card-challenge {
  margin: 0;
  font-size: 0.92rem;
  line-height: 1.45;
  color: var(--text);
}

.bid-from-you {
  font-size: 0.78rem;
  color: var(--muted);
  margin: -0.25rem 0 0.65rem 0.35rem;
  line-height: 1.4;
  font-style: italic;
}

.bid-mode-solo .bid-card {
  border-left-color: var(--primary);
  border-color: rgba(30, 77, 123, 0.22);
  background: linear-gradient(165deg, #f5f9fc 0%, var(--surface) 45%, #faf7f2 100%);
}

.bid-mode-solo .bid-card-label {
  color: var(--primary);
}

.bid-mode-common .bid-card {
  border-left-color: var(--accent);
  border-color: rgba(94, 122, 153, 0.28);
  background: linear-gradient(165deg, #f8fafc 0%, var(--surface) 50%, #f5f9fc 100%);
}

.bid-mode-common .bid-card-label {
  color: var(--accent);
}

.bid-mode-partner .bid-card {
  border-left-color: var(--flame);
}

.bid-feedback-pending {
  margin-top: 0.15rem;
}

.bid-feedback-actions {
  display: flex;
  gap: 0.55rem;
  margin-bottom: 0.55rem;
}

.bid-feedback-actions .btn {
  flex: 1;
  min-height: 48px;
}

.btn-bid-well {
  background: var(--primary);
}

.btn-bid-well:hover {
  background: var(--primary-light);
}

.btn-bid-miss {
  color: var(--muted);
}

.bid-skip-row {
  margin-top: 0;
}

.bid-skip-row .btn-skip-bid {
  width: 100%;
  font-size: 0.82rem;
}

.bid-actions {
  display: flex;
  gap: 0.55rem;
}

.bid-actions .btn {
  flex: 1;
}

.bid-response-wrap {
  margin: 0 0 0.75rem;
}

.bid-response-label {
  display: block;
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--accent);
  margin: 0 0 0.4rem 0.15rem;
}

.bid-response-input {
  width: 100%;
  padding: 0.75rem 0.85rem;
  border: 1.5px solid var(--border);
  border-radius: var(--radius);
  font-size: 0.92rem;
  font-family: inherit;
  line-height: 1.45;
  resize: vertical;
  min-height: 4.5rem;
  background: var(--surface);
  color: var(--text);
}

.bid-response-input:focus {
  outline: none;
  border-color: var(--secondary);
}

.bid-completed {
  padding: 0.75rem 0.85rem;
  border-radius: var(--radius);
  background: rgba(30, 77, 123, 0.06);
  border: 1px solid rgba(30, 77, 123, 0.12);
}

.bid-completed-label {
  margin: 0 0 0.35rem;
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--accent);
}

.bid-completed-result {
  margin: 0 0 0.35rem;
  font-size: 0.88rem;
  line-height: 1.45;
  color: var(--text);
}

.bid-mode-solo .bid-completed {
  background: rgba(30, 77, 123, 0.06);
  border-color: rgba(30, 77, 123, 0.14);
}

.bid-mode-common .bid-completed {
  background: rgba(94, 122, 153, 0.08);
  border-color: rgba(94, 122, 153, 0.16);
}

.bid-completed-response {
  margin: 0;
  font-size: 0.88rem;
  line-height: 1.45;
  color: var(--text);
  font-style: italic;
}

.onboarding-checklist {
  list-style: none;
  padding: 0;
  margin: 1.1rem 0 0;
  text-align: left;
}

.onboarding-checklist li {
  position: relative;
  padding: 0.7rem 0.85rem 0.7rem 2.15rem;
  margin-bottom: 0.45rem;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  font-size: 0.92rem;
  line-height: 1.45;
  color: var(--text);
}

.onboarding-checklist li::before {
  content: "✓";
  position: absolute;
  left: 0.75rem;
  top: 0.72rem;
  font-size: 0.82rem;
  font-weight: 700;
  color: #047857;
}

.wizard-step-sparse .onboarding-checklist li {
  background: none;
  border: none;
  border-radius: 0;
  padding-left: 1.65rem;
  margin-bottom: 0.65rem;
}

.wizard-step-sparse .onboarding-checklist li::before {
  left: 0;
  top: 0.55rem;
}

.onboarding-checklist-compact li {
  padding-top: 0.55rem;
  padding-bottom: 0.55rem;
  font-size: 0.88rem;
}

.calibration-group-label {
  margin-top: 0.85rem;
}

.calibration-group-label:first-of-type {
  margin-top: 0.25rem;
}

.calibration-row {
  margin-bottom: 0.35rem;
}

.wish-groups {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  margin-bottom: 0.75rem;
  max-height: min(52vh, 420px);
  overflow-y: auto;
  padding-right: 0.15rem;
}

.wish-group-label {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin: 0 0 0.45rem;
}

.wish-picker-row {
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
}

.wizard-step-wishes {
  text-align: left;
}

.wizard-step-wishes .wizard-hint-center {
  text-align: center;
}

.calibration-chip,
.wish-chip {
  width: 100%;
  text-align: left;
  line-height: 1.4;
  padding: 0.7rem 0.9rem;
  border-radius: 12px;
  border: 1.5px solid var(--border);
  background: var(--surface);
  font-size: 0.88rem;
  font-weight: 500;
  font-family: inherit;
  cursor: pointer;
  transition: all 0.18s ease;
  color: var(--text);
  white-space: normal;
  -webkit-tap-highlight-color: transparent;
  touch-action: manipulation;
}

.calibration-chip:hover,
.wish-chip:hover {
  border-color: var(--secondary);
  background: var(--secondary-soft);
}

.calibration-chip.active {
  background: var(--primary);
  border-color: var(--primary);
  color: #fff;
  box-shadow: 0 2px 8px rgba(30, 77, 123, 0.22);
}

.wish-chip.active {
  background: var(--flame-soft);
  border-color: var(--flame);
  color: #9a3412;
  box-shadow: 0 2px 6px rgba(232, 93, 4, 0.15);
}

.wish-picker-row {
  margin-top: 0.5rem;
}

.wizard-custom-wish {
  margin-top: 0.85rem;
}

.wizard-custom-wish input {
  width: 100%;
  padding: 0.75rem 0.9rem;
  border: 1.5px dashed var(--border);
  border-radius: var(--radius);
  font-size: 0.92rem;
  font-family: inherit;
  background: var(--bg);
  color: var(--text);
}

.wizard-custom-wish input:focus {
  outline: none;
  border-color: var(--secondary);
  background: var(--surface);
}

.settings-calibration {
  margin-bottom: 0.75rem;
}

.settings-calibration-line {
  margin: 0 0 0.35rem;
  font-size: 0.85rem;
  color: var(--text);
  line-height: 1.45;
}

.settings-calibration-line strong {
  color: var(--accent);
  font-weight: 600;
}

.settings-wishes {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  margin-bottom: 0.75rem;
}

.settings-wish-chip {
  display: inline-block;
  padding: 0.45rem 0.7rem;
  border-radius: 999px;
  background: var(--flame-soft);
  border: 1px solid rgba(232, 93, 4, 0.28);
  font-size: 0.78rem;
  font-weight: 500;
  color: #9a3412;
  line-height: 1.35;
}

.settings-wishes-empty {
  margin-bottom: 0.75rem !important;
}

#regenerate-ladder-btn {
  width: 100%;
  margin-top: 0.65rem;
}

.custom-wishes-block,
.wizard-custom-wishes-panel {
  margin: 0.75rem 0 0;
  padding: 0.85rem 0.9rem;
  border-radius: var(--radius);
  border: 1.5px dashed var(--border);
  background: var(--bg);
}

.wizard-custom-wishes-panel {
  margin-bottom: 0.5rem;
}

.custom-wishes-label {
  margin: 0 0 0.25rem;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--accent);
}

.custom-wishes-hint {
  margin: 0 0 0.65rem;
  font-size: 0.85rem;
  line-height: 1.45;
  color: var(--muted);
}

.custom-wishes-list {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  margin-bottom: 0.55rem;
}

.custom-wishes-empty {
  margin: 0;
  font-size: 0.85rem;
  color: var(--muted);
  font-style: italic;
}

.custom-wish-row {
  display: flex;
  gap: 0.45rem;
  align-items: center;
}

.custom-wish-input {
  flex: 1;
  padding: 0.7rem 0.85rem;
  border: 1.5px solid var(--border);
  border-radius: var(--radius);
  font-size: 0.92rem;
  font-family: inherit;
  background: var(--surface);
  color: var(--text);
}

.custom-wish-input:focus {
  outline: none;
  border-color: var(--secondary);
}

.custom-wish-remove {
  flex-shrink: 0;
  width: 2.25rem;
  height: 2.25rem;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--surface);
  color: var(--muted);
  font-size: 1.2rem;
  line-height: 1;
  cursor: pointer;
}

.custom-wishes-add {
  width: 100%;
}

.settings-wish-chip-custom {
  border-style: dashed;
}

.bid-from-you-repair {
  color: var(--accent);
  font-style: italic;
}

.profile-nudge {
  margin: 0.5rem 0 0.75rem;
  padding: 0.75rem 0.9rem;
  border-radius: var(--radius);
  background: linear-gradient(135deg, rgba(30, 77, 123, 0.08), rgba(232, 93, 4, 0.06));
  border: 1px solid rgba(30, 77, 123, 0.15);
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
}

.profile-nudge-text {
  margin: 0;
  font-size: 0.88rem;
  line-height: 1.45;
  color: var(--text);
}

.hidden { display: none !important; }
