/* ============================================================
   GEO Quest — stylesheet
   Design tokens: Ink Navy / Signal Gold / Paper Cream + Pulse
   Signature motif: expanding "signal" rings, used in the brand
   mark, the correct-answer reveal, and the hero screens.
   ============================================================ */

:root {
  --ink: #23293D;
  --ink-soft: #545B70;
  --gold-100: #F5F1E4;
  --gold-200: #EBE3C9;
  --gold-300: #E1D5AD;
  --gold: #CEBA78;        /* main */
  --gold-dark: #B39841;
  --gold-darker: #77652B;
  --gold-light: #E1D5AD;  /* alias */
  --gold-tint: #EBE3C9;   /* alias */
  --accent: #495085;      /* used sparingly */
  --accent-tint: #EAEBF2;
  --cream: #F5F1E4;
  --white: #FFFFFF;
  --success: #2E9E64;
  --success-tint: #E3F6EC;
  --error: #C4523A;
  --error-tint: #FBE9E4;
  --shadow: rgba(35, 41, 61, 0.12);
  --font: 'Nunito Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --radius-box: 4px;      /* squarer, MC Services feel */
  --radius-chip: 3px;
  --radius-pill: 999px;
}

/* ---------------- reset ---------------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
html, body { margin: 0; padding: 0; }
body {
  font-family: var(--font);
  background: linear-gradient(180deg, #D6D6D6 0%, #F7F7F7 55%) no-repeat fixed;
  background-color: #F7F7F7;
  color: var(--ink);
  -webkit-tap-highlight-color: transparent;
  overscroll-behavior-y: none;
}
ul, ol { margin: 0; padding: 0; list-style: none; }
button { font-family: inherit; -webkit-appearance: none; appearance: none; }
blockquote { margin: 0; }
h1, h2, h3, p { margin: 0; }
:focus-visible { outline: 3px solid var(--gold-dark); outline-offset: 2px; }

/* ---------------- shell ---------------- */
.app-shell {
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  padding-top: env(safe-area-inset-top);
  padding-bottom: env(safe-area-inset-bottom);
}
.screen {
  max-width: 560px;
  width: 100%;
  margin: 0 auto;
  padding: 4px 18px 56px;
  flex: 1;
}

/* ---------------- topbar ---------------- */
.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: 560px;
  margin: 0 auto;
  width: 100%;
  padding: 14px 18px 8px;
}
.brand { display: flex; align-items: center; gap: 9px; }
.brand-mark { position: relative; width: 22px; height: 22px; flex-shrink: 0; }
.brand-mark .ring {
  position: absolute; inset: 0; margin: auto;
  width: 18px; height: 18px; border-radius: 50%;
  border: 1.5px solid var(--gold);
  opacity: 0.55;
}
.brand-mark .dot {
  position: absolute; inset: 0; margin: auto;
  width: 8px; height: 8px; border-radius: 50%;
  background: var(--gold-dark);
}
.brand-text { font-weight: 800; font-size: 0.72rem; letter-spacing: 0.07em; text-transform: uppercase; color: var(--ink-soft); }
.brand-game { color: var(--gold-dark); }

/* ---------------- progress ---------------- */
.progress-region { max-width: 560px; margin: 0 auto; width: 100%; padding: 0 18px 14px; }
.progress-row {
  display: flex; align-items: center; justify-content: space-between;
  margin-bottom: 8px; font-weight: 800; font-size: 0.82rem; color: var(--ink-soft);
}
.badge-counter { display: flex; align-items: center; gap: 6px; color: var(--gold-dark); }
.badge-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--gold); box-shadow: 0 0 0 3px var(--gold-tint); }
.progress-track { height: 8px; border-radius: 999px; background: rgba(20, 33, 61, 0.08); overflow: hidden; }
.progress-fill { height: 100%; border-radius: 999px; background: linear-gradient(90deg, var(--gold), var(--gold-dark)); transition: width 0.45s cubic-bezier(.3,.8,.4,1); }

/* ---------------- generic card / hero ---------------- */
@keyframes cardIn { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }
.card, .hero { animation: cardIn 0.4s cubic-bezier(.2,.8,.3,1) both; }

.card {
  background: var(--white);
  border-radius: var(--radius-box);
  padding: 22px 20px;
  box-shadow: 0 10px 30px var(--shadow);
  margin-bottom: 18px;
}

.hero { text-align: center; padding: 26px 12px 6px; }
.hero-pulse { position: relative; width: 96px; height: 96px; margin: 0 auto 16px; }
.hero-ring {
  position: absolute; inset: 0; margin: auto; border-radius: 50%;
  border: 2px solid var(--gold);
  width: 14px; height: 14px; opacity: 0;
  animation: heroPulse 3.6s ease-out infinite;
}
.hero-ring.d2 { animation-delay: 1.2s; }
.hero-ring.d3 { animation-delay: 2.4s; }
@keyframes heroPulse {
  0% { width: 14px; height: 14px; opacity: 0.9; }
  100% { width: 96px; height: 96px; opacity: 0; }
}
.hero-dot {
  position: absolute; inset: 0; margin: auto; width: 16px; height: 16px; border-radius: 50%;
  background: radial-gradient(circle at 35% 30%, var(--gold-light), var(--gold-dark));
  box-shadow: 0 0 26px rgba(169, 123, 46, 0.55);
}
.eyebrow { text-transform: uppercase; letter-spacing: 0.12em; font-weight: 800; font-size: 0.72rem; color: var(--gold-dark); margin: 0 0 8px; }
.hero-title { font-size: 2.5rem; font-weight: 900; letter-spacing: -0.01em; color: var(--ink); margin: 0 0 8px; }
.hero-tagline { color: var(--ink-soft); font-weight: 700; font-size: 1.05rem; }

/* ---------------- intro copy ---------------- */
.intro-copy p { color: var(--ink-soft); font-weight: 600; line-height: 1.55; font-size: 0.97rem; margin: 0 0 12px; }
.intro-copy .lead { font-weight: 800; color: var(--ink); }
.intro-questions { display: block; list-style: disc; padding-left: 22px; margin: 0 0 16px; }
.intro-questions li {
  display: list-item; margin: 0 0 7px; padding-left: 3px;
  font-weight: 700; color: var(--ink); font-size: 0.94rem; line-height: 1.45;
}
.intro-questions li::marker { color: var(--gold-dark); }
.value-chips { display: flex; flex-wrap: wrap; gap: 8px; margin: 2px 0 14px; }
.value-chips span {
  background: linear-gradient(135deg, var(--gold-dark), var(--gold-darker)); color: var(--white);
  font-weight: 800; font-size: 0.82rem; padding: 7px 14px; border-radius: var(--radius-chip);
  box-shadow: 0 3px 8px rgba(119, 101, 43, 0.28);
}
.meta-pills { display: flex; justify-content: center; flex-wrap: wrap; gap: 8px; margin: 4px 0 20px; }
.meta-pills span {
  background: var(--white); border: 1.5px solid rgba(20, 33, 61, 0.1); color: var(--ink-soft);
  font-weight: 700; font-size: 0.78rem; padding: 6px 12px; border-radius: var(--radius-chip);
}
.footer-credit { text-align: center; color: rgba(20, 33, 61, 0.45); font-size: 0.76rem; font-weight: 700; margin-top: 14px; }

/* ---------------- buttons ---------------- */
.btn-primary {
  display: block; width: 100%; border: none; border-radius: 999px; padding: 16px 20px;
  font-weight: 800; font-size: 1.02rem; color: var(--white);
  background: linear-gradient(135deg, var(--gold-dark), var(--gold-darker));
  box-shadow: 0 10px 24px rgba(119, 101, 43, 0.32); cursor: pointer;
  transition: transform 0.12s ease, box-shadow 0.12s ease, opacity 0.12s ease;
}
.btn-primary:active { transform: scale(0.97); box-shadow: 0 6px 14px rgba(169, 123, 46, 0.3); }
.btn-primary:disabled { opacity: 0.36; box-shadow: none; cursor: not-allowed; transform: none; }
.btn-large { font-size: 1.05rem; padding: 17px 20px; }
.cta-area { margin-top: 18px; }

/* ---------------- question card ---------------- */
.tags-row { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 14px; }
.tag { font-weight: 800; font-size: 0.72rem; padding: 6px 11px; border-radius: var(--radius-chip); display: inline-flex; align-items: center; gap: 5px; }
.tag-icon { font-size: 0.9rem; }
.tag-signal { background: var(--ink); color: var(--white); }
.diff-1 { background: #EFD9AE; color: #5C3A16; }
.diff-2 { background: #E7C286; color: #5C3A16; }
.diff-3 { background: #D9A85B; color: #402505; }
.diff-4 { background: #C48A44; color: #fff; }
.diff-5 { background: #9C6530; color: #fff; }
.diff-6 { background: #5C3A1F; color: #fff; }
.tag-boss { background: var(--accent); color: #fff; }
.boss-card { border: 2px solid rgba(73, 80, 133, 0.30); }

.q-title { font-size: 1.26rem; font-weight: 900; color: var(--ink); line-height: 1.3; margin: 0 0 10px; }

.instruction {
  display: flex; align-items: center; gap: 6px; font-weight: 800; font-size: 0.86rem;
  color: var(--gold-darker); background: var(--gold-tint); padding: 9px 12px; border-radius: var(--radius-box); margin: 0 0 14px;
}

.scenario-text { color: var(--ink-soft); font-weight: 600; font-size: 0.95rem; line-height: 1.5; margin: 0 0 10px; }

.channel-list { display: flex; flex-direction: column; gap: 8px; margin: 0 0 12px; }
.channel-row { display: flex; justify-content: space-between; gap: 10px; background: var(--cream); padding: 10px 12px; border-radius: var(--radius-box); font-size: 0.87rem; }
.channel-label { font-weight: 800; color: var(--ink); flex-shrink: 0; }
.channel-value { color: var(--ink-soft); font-style: italic; text-align: right; font-weight: 600; }

.quote-spoken, .quote-excerpt {
  display: block; background: var(--accent-tint); border-left: 4px solid var(--accent); border-radius: var(--radius-box);
  padding: 14px 14px 14px 16px; margin: 0 0 14px; font-weight: 700; color: var(--ink); font-size: 0.95rem; font-style: italic;
}
.quote-tag { display: block; font-style: normal; font-weight: 800; font-size: 0.7rem; text-transform: uppercase; letter-spacing: 0.06em; color: var(--accent); margin-bottom: 6px; }

.prompt p { font-weight: 800; color: var(--ink); font-size: 1.02rem; line-height: 1.42; margin: 0 0 14px; }

/* ---------------- options: single / multi ---------------- */
.option-list { display: flex; flex-direction: column; gap: 10px; margin-bottom: 6px; }
.option-card {
  display: flex; align-items: flex-start; gap: 12px; padding: 14px; border-radius: var(--radius-box);
  border: 2px solid rgba(20, 33, 61, 0.08); background: var(--white); cursor: pointer;
  transition: border-color 0.15s ease, background 0.15s ease, transform 0.08s ease;
}
.option-card:active { transform: scale(0.98); }
.option-card.selected { border-color: var(--gold); background: var(--gold-tint); }
.option-key {
  flex-shrink: 0; width: 28px; height: 28px; border-radius: 50%;
  border: 2px solid rgba(20, 33, 61, 0.18); display: flex; align-items: center; justify-content: center;
  font-weight: 900; font-size: 0.85rem; color: var(--ink-soft);
}
.option-card.selected .option-key { border-color: var(--gold); background: var(--gold-dark); color: #fff; }
.option-text { flex: 1; font-weight: 700; color: var(--ink); font-size: 0.94rem; line-height: 1.42; padding-top: 3px; }

.ab-list .option-card { padding: 16px; }
.ab-list .option-key { background: rgba(20, 33, 61, 0.06); border: none; font-size: 0.78rem; }
.ab-list .option-card.selected .option-key { background: var(--gold-dark); }

.option-check {
  flex-shrink: 0; width: 24px; height: 24px; border-radius: var(--radius-chip); margin-top: 2px; position: relative;
  border: 2px solid rgba(20, 33, 61, 0.18);
}
.option-card.selected .option-check { border-color: var(--gold-dark); background: var(--gold-dark); }
.option-card.selected .option-check::after {
  content: ''; position: absolute; left: 7px; top: 3px; width: 6px; height: 11px;
  border: solid #fff; border-width: 0 2.5px 2.5px 0; transform: rotate(40deg);
}
.selection-counter { text-align: center; font-weight: 800; font-size: 0.82rem; color: var(--gold-dark); margin: 8px 0 2px; }

/* locked / reviewed states (shared) */
.option-card.locked, .plan-card.locked, .drag-item.locked { cursor: default; }
.option-card.locked { transform: none !important; }
.state-hit { border-color: var(--success) !important; background: var(--success-tint) !important; }
.state-missed { border-color: var(--success) !important; background: var(--white) !important; opacity: 0.92; }
.state-wrong { border-color: var(--error) !important; background: var(--error-tint) !important; }
.state-neutral { opacity: 0.5; }
.opt-mark { margin-left: auto; flex-shrink: 0; padding-top: 3px; font-weight: 900; font-size: 1rem; }
.mark-hit { color: var(--success); }
.mark-wrong { color: var(--error); }
.mark-missed { display: flex; flex-direction: column; align-items: flex-end; gap: 2px; color: var(--success); font-size: 0.95rem; }
.mark-missed i { font-style: normal; font-size: 0.6rem; font-weight: 800; text-transform: uppercase; letter-spacing: 0.03em; }

/* ---------------- options: plan (Q10) ---------------- */
.plan-list { display: flex; flex-direction: column; gap: 12px; margin-bottom: 6px; }
.plan-card {
  position: relative; background: var(--white); border: 2px solid rgba(20, 33, 61, 0.08);
  border-radius: var(--radius-box); padding: 16px 16px 14px; cursor: pointer;
  transition: border-color 0.15s ease, background 0.15s ease, transform 0.08s ease;
}
.plan-card:active { transform: scale(0.985); }
.plan-card.selected { border-color: var(--gold); background: var(--gold-tint); }
.plan-card.plan-winner { border-color: var(--success); background: var(--success-tint); }
.plan-card.plan-chosen-wrong { border-color: var(--error); background: var(--error-tint); }
.plan-head { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-bottom: 8px; flex-wrap: wrap; }
.plan-key {
  font-weight: 900; font-size: 0.68rem; text-transform: uppercase; letter-spacing: 0.06em;
  color: var(--gold-dark); background: var(--gold-tint); padding: 3px 9px; border-radius: 999px; flex-shrink: 0;
}
.plan-card.plan-winner .plan-key { background: rgba(46, 158, 100, 0.15); color: var(--success); }
.plan-head h3 { font-size: 1.02rem; font-weight: 900; color: var(--ink); flex: 1 1 auto; }
.plan-ribbon { font-size: 0.68rem; font-weight: 900; color: #fff; background: var(--success); padding: 4px 10px; border-radius: 999px; white-space: nowrap; }
.plan-bullets { display: flex; flex-direction: column; gap: 5px; padding-left: 18px; }
.plan-bullets li { font-size: 0.87rem; color: var(--ink-soft); font-weight: 600; line-height: 1.42; list-style: disc; }

/* ---------------- options: order (Q5 drag) ---------------- */
.drag-list { position: relative; display: flex; flex-direction: column; gap: 10px; }
.drag-item {
  position: relative; display: flex; align-items: center; gap: 10px; background: var(--white);
  border: 2px solid rgba(20, 33, 61, 0.08); border-radius: var(--radius-box); padding: 12px;
}
.drag-item.dragging { box-shadow: 0 16px 30px rgba(20, 33, 61, 0.24); border-color: var(--gold); z-index: 30; }
.drag-handle { flex-shrink: 0; font-size: 1.3rem; line-height: 1; color: var(--ink-soft); cursor: grab; padding: 6px 4px; touch-action: none; user-select: none; }
.drag-item.dragging .drag-handle { cursor: grabbing; }
.drag-text { flex: 1; font-weight: 700; font-size: 0.9rem; color: var(--ink); line-height: 1.4; }
.drag-steppers { display: flex; flex-direction: column; gap: 3px; flex-shrink: 0; }
.stepper { width: 26px; height: 21px; border: none; background: rgba(20, 33, 61, 0.06); border-radius: var(--radius-chip); font-size: 0.65rem; color: var(--ink-soft); cursor: pointer; }
.stepper:active { background: rgba(20, 33, 61, 0.16); }
.drag-item.locked .drag-handle, .drag-item.locked .stepper { opacity: 0.3; pointer-events: none; }
.drag-hint { text-align: center; color: rgba(20, 33, 61, 0.5); font-size: 0.78rem; font-weight: 700; margin: 10px 0 2px; }
.pos-badge {
  flex-shrink: 0; width: 22px; height: 22px; border-radius: 50%; background: rgba(20, 33, 61, 0.08);
  color: var(--ink); font-weight: 900; font-size: 0.72rem; display: flex; align-items: center; justify-content: center;
}
.drag-item.pos-correct { border-color: var(--success); background: var(--success-tint); }
.drag-item.pos-correct .pos-badge { background: var(--success); color: #fff; }
.drag-item.pos-wrong { border-color: var(--error); background: var(--error-tint); }
.drag-item.pos-wrong .pos-badge { background: var(--error); color: #fff; }

/* ---------------- feedback ---------------- */
.feedback-block { margin-top: 18px; padding-top: 18px; border-top: 2px dashed rgba(20, 33, 61, 0.12); }
@keyframes toastIn { from { opacity: 0; transform: translateY(-6px); } to { opacity: 1; transform: none; } }
.toast { display: flex; align-items: center; gap: 10px; padding: 12px 14px; border-radius: var(--radius-box); font-weight: 800; font-size: 0.9rem; margin-bottom: 16px; animation: toastIn 0.35s ease; }
.toast-correct { background: var(--success-tint); color: #1E7A4C; }
.toast-incorrect { background: var(--error-tint); color: #9C4230; }
.toast-icon { font-size: 1.1rem; }

.signal-reveal { display: flex; align-items: center; gap: 14px; padding: 14px; border-radius: var(--radius-box); margin-bottom: 16px; background: var(--cream); }
.signal-reveal.won { background: linear-gradient(135deg, var(--gold-tint), #fff); }
.signal-reveal.lost { opacity: 0.7; }
.signal-reveal-icon-wrap { position: relative; width: 52px; height: 52px; flex-shrink: 0; display: flex; align-items: center; justify-content: center; }
.signal-reveal-icon {
  font-size: 1.6rem; position: relative; z-index: 2; width: 52px; height: 52px; border-radius: 50%;
  background: #fff; display: flex; align-items: center; justify-content: center; box-shadow: 0 4px 12px rgba(20, 33, 61, 0.15);
}
.signal-mini-ring { position: absolute; inset: 0; border-radius: 50%; border: 2px solid var(--gold); opacity: 0; }
.signal-reveal.won .signal-mini-ring { animation: miniPulse 1.5s ease-out 2; }
@keyframes miniPulse { 0% { transform: scale(0.7); opacity: 0.9; } 100% { transform: scale(1.55); opacity: 0; } }
.signal-reveal-text { display: flex; flex-direction: column; gap: 2px; }
.signal-reveal-text strong { font-size: 0.95rem; color: var(--ink); }
.signal-reveal-text span { font-size: 0.82rem; color: var(--ink-soft); font-weight: 700; }

.feedback-header { font-size: 1.06rem; font-weight: 900; color: var(--ink); line-height: 1.35; margin: 0 0 10px; }
.feedback-body p { color: var(--ink-soft); font-weight: 600; font-size: 0.92rem; line-height: 1.5; margin: 0 0 10px; }
.feedback-list { margin: 0 0 12px; padding-left: 20px; display: flex; flex-direction: column; gap: 6px; }
.feedback-list li { color: var(--ink); font-weight: 700; font-size: 0.9rem; line-height: 1.4; list-style: disc; }
.feedback-list.ordered-list, ol.feedback-list li { list-style: decimal; }

.callout-label { font-weight: 800; color: var(--ink); font-size: 0.88rem; margin: 0 0 6px; }
.callout-box { background: var(--accent-tint); border-left: 4px solid var(--accent); border-radius: var(--radius-box); padding: 12px 14px; margin: 0 0 12px; font-weight: 700; font-style: italic; color: var(--ink); font-size: 0.9rem; line-height: 1.5; }

.takeaway-box { background: var(--ink); color: #fff; border-radius: var(--radius-box); padding: 16px; margin-top: 4px; }
.takeaway-label { font-weight: 900; font-size: 0.78rem; text-transform: uppercase; letter-spacing: 0.05em; color: var(--gold-light); margin: 0 0 8px; }
.takeaway-box p { color: rgba(255, 255, 255, 0.92); font-weight: 600; font-size: 0.9rem; line-height: 1.5; margin: 0 0 8px; }
.takeaway-box p:last-child { margin-bottom: 0; }

/* ---------------- results ---------------- */
.results-hero { padding-top: 18px; }
@keyframes popIn { from { transform: scale(0); opacity: 0; } to { transform: scale(1); opacity: 1; } }
.score-emoji { font-size: 2.8rem; margin-bottom: 4px; animation: popIn 0.5s cubic-bezier(.2,.9,.3,1.3); }
.results-title { font-size: 1.6rem; }
.score-display { font-size: 3.2rem; font-weight: 900; color: var(--ink); font-variant-numeric: tabular-nums; margin: 6px 0 8px; line-height: 1; }
.score-of { font-size: 1.5rem; color: var(--ink-soft); font-weight: 800; }
.badge-pill {
  display: inline-block; background: linear-gradient(135deg, var(--gold-dark), var(--gold-darker)); color: #fff;
  font-weight: 900; font-size: 0.85rem; padding: 8px 18px; border-radius: var(--radius-chip); box-shadow: 0 8px 18px rgba(119, 101, 43, 0.32);
}
.divider { height: 1px; background: rgba(20, 33, 61, 0.1); margin: 14px 0; }
.result-message { font-weight: 700 !important; color: var(--ink) !important; }

.mission-board { margin-bottom: 18px; }
.mission-title { font-size: 1rem; font-weight: 900; color: var(--ink); text-align: center; margin: 0 0 14px; }
.mission-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; }
.mission-tile {
  background: var(--white); border-radius: var(--radius-box); padding: 14px 10px; display: flex; flex-direction: column;
  align-items: center; gap: 6px; box-shadow: 0 4px 14px rgba(20, 33, 61, 0.08); text-align: center; border: 2px solid transparent;
}
.mission-tile.lit { border-color: var(--gold-light); }
.mission-tile.lit .mission-icon { animation: tileGlow 2.6s ease-in-out infinite; }
.mission-tile.dim { opacity: 0.42; filter: grayscale(0.7); }
.mission-icon { font-size: 1.55rem; }
.mission-label { font-size: 0.72rem; font-weight: 800; color: var(--ink-soft); line-height: 1.25; }
@keyframes tileGlow {
  0%, 100% { filter: drop-shadow(0 0 0 rgba(201, 151, 63, 0)); }
  50% { filter: drop-shadow(0 0 6px rgba(201, 151, 63, 0.65)); }
}

/* ---------------- confetti ---------------- */
.confetti-canvas { position: fixed; inset: 0; pointer-events: none; z-index: 200; }

/* ---------------- misc ---------------- */
@media (min-width: 620px) {
  .hero-title { font-size: 2.8rem; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
    scroll-behavior: auto !important;
  }
}

/* ---------------- language select + toggle ---------------- */
.lang-hero { padding-top: 40px; }
.lang-subtitle {
  margin: 12px 0 0; font-weight: 800; color: var(--ink); font-size: 1.02rem;
  display: flex; flex-direction: column; gap: 3px;
}
.lang-subtitle span { color: var(--ink-soft); font-weight: 600; font-size: 0.9rem; }
.lang-buttons { display: flex; flex-direction: column; gap: 14px; margin-top: 26px; }
.lang-btn { display: flex; align-items: center; justify-content: center; gap: 10px; }
.lang-flag { font-size: 1.3rem; line-height: 1; }

.lang-toggle-row { display: flex; justify-content: flex-end; margin: 2px 0 -8px; }
.lang-toggle {
  border: 1.5px solid rgba(206, 186, 120, 0.65);
  background: var(--white); color: var(--gold-darker);
  font-weight: 800; font-size: 0.8rem; padding: 7px 14px; border-radius: var(--radius-pill);
  cursor: pointer; box-shadow: 0 2px 8px var(--shadow);
}
.lang-toggle:active { transform: scale(0.95); }

/* ---------------- options: budget (Final question) ---------------- */
.budget-meter {
  position: sticky; top: 4px; z-index: 5;
  background: var(--white); border: 2px solid var(--gold-300); border-radius: var(--radius-box);
  padding: 10px 12px; margin: 0 0 12px; box-shadow: 0 4px 14px var(--shadow);
}
.budget-meter-row { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; margin-bottom: 8px; }
.budget-meter-label { font-weight: 800; font-size: 0.78rem; text-transform: uppercase; letter-spacing: 0.05em; color: var(--ink-soft); }
.budget-meter-value { color: var(--ink); font-weight: 700; font-variant-numeric: tabular-nums; }
.budget-meter-value strong { font-size: 1.3rem; font-weight: 900; }
.budget-bar { height: 8px; border-radius: var(--radius-chip); background: rgba(35, 41, 61, 0.08); overflow: hidden; }
.budget-bar-fill { height: 100%; width: 0; border-radius: var(--radius-chip); background: linear-gradient(90deg, var(--gold), var(--gold-dark)); transition: width 0.25s ease; }
.budget-meter.low .budget-meter-value { color: var(--accent); }
.budget-meter.low .budget-bar-fill { background: linear-gradient(90deg, var(--accent), #363c66); }
.budget-meter.full .budget-meter-value { color: var(--success); }
.budget-meter.full .budget-bar-fill { background: var(--success); }

.budget-list { display: flex; flex-direction: column; gap: 8px; margin-bottom: 6px; }
.budget-item {
  display: flex; align-items: center; gap: 11px; padding: 11px 12px; border-radius: var(--radius-box);
  border: 2px solid rgba(35, 41, 61, 0.08); background: var(--white); cursor: pointer;
  transition: border-color 0.12s ease, background 0.12s ease, opacity 0.12s ease, transform 0.08s ease;
}
.budget-item:active { transform: scale(0.99); }
.budget-check {
  flex-shrink: 0; width: 22px; height: 22px; border-radius: var(--radius-chip); position: relative;
  border: 2px solid rgba(35, 41, 61, 0.2);
}
.budget-item.selected { border-color: var(--gold-dark); background: var(--gold-tint); }
.budget-item.selected .budget-check { border-color: var(--gold-dark); background: var(--gold-dark); }
.budget-item.selected .budget-check::after {
  content: ''; position: absolute; left: 6px; top: 2px; width: 6px; height: 11px;
  border: solid #fff; border-width: 0 2.5px 2.5px 0; transform: rotate(40deg);
}
.budget-text { flex: 1; font-weight: 700; color: var(--ink); font-size: 0.9rem; line-height: 1.35; }
.budget-time {
  flex-shrink: 0; font-weight: 800; font-size: 0.82rem; color: var(--ink-soft);
  font-variant-numeric: tabular-nums; white-space: nowrap;
}
.budget-item.unaffordable { opacity: 0.4; cursor: not-allowed; }
.budget-item.unaffordable .budget-time { color: var(--error); }

/* locked review state */
.budget-list.locked .budget-item { cursor: default; }
.budget-item.locked { transform: none !important; }
.budget-item.faded { opacity: 0.5; }
.budget-val {
  flex-shrink: 0; margin-left: 2px; font-weight: 900; font-size: 0.68rem; letter-spacing: 0.02em;
  padding: 3px 8px; border-radius: var(--radius-chip); white-space: nowrap;
}
.budget-val.val-high { background: var(--success-tint); color: #1E7A4C; }
.budget-val.val-mid { background: var(--gold-tint); color: var(--gold-darker); }
.budget-val.val-low { background: rgba(35, 41, 61, 0.08); color: var(--ink-soft); }
