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

:root {
  --primary: #2563EB;
  --primary-dark: #1D4ED8;
  --primary-light: #EFF6FF;
  --success: #059669;
  --warning: #D97706;
  --yellow: #FFFD82;
  --pink: #FF7EB9;
  --mint: #67F3DA;
  --sky: #67D7FF;
  --lavender: #CBA3FF;
  --orange: #FFB340;
  --bg: #F1F5F9;
  --card-bg: #ffffff;
  --text: #0F172A;
  --text-secondary: #334155;
  --muted: #526175;   /* secondary text — 5.8:1 on the page background (was 4.3:1, too faint on phones) */
  --border: #E2E8F0;
  --border-strong: #CBD5E1;
  --radius: 8px;
  --shadow: 0 1px 3px rgba(0,0,0,0.08), 0 1px 2px rgba(0,0,0,0.05);
  --shadow-lg: 0 4px 12px rgba(0,0,0,0.08), 0 2px 4px rgba(0,0,0,0.05);
  --shadow-xl: 0 10px 30px rgba(0,0,0,0.1), 0 4px 8px rgba(0,0,0,0.06);
}

body {
  font-family: 'Inter', sans-serif;
  background: var(--bg);
  min-height: 100vh;
  color: var(--text);
  font-size: 16px;
  line-height: 1.6;
}

/* ── Loading Overlay ─────────────────────────────────────────────────────── */
#loading-overlay {
  position: fixed; inset: 0; z-index: 1000;
  background: rgba(241,245,249,0.88);
  backdrop-filter: blur(6px);
  display: flex; align-items: center; justify-content: center;
  transition: opacity 0.2s;
}
#loading-overlay.hidden { display: none; }

.loading-box {
  background: white;
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 2.5rem 3rem;
  text-align: center;
  box-shadow: var(--shadow-xl);
  font-weight: 600;
  font-size: 1.1rem;
  color: var(--text-secondary);
}

.spinner {
  width: 40px; height: 40px;
  border: 3px solid var(--border);
  border-top-color: var(--primary);
  border-radius: 50%;
  animation: spin 0.75s linear infinite;
  margin: 0 auto 1rem;
}

@keyframes spin { to { transform: rotate(360deg); } }

.dots { animation: blink 1.2s steps(3, end) infinite; }
@keyframes blink {
  0%, 100% { content: '.'; }
  33% { content: '..'; }
  66% { content: '...'; }
}

/* ── Org bar (SVDT.club) ──────────────────────────────────────────────────── */
/* Light bar: the logo is red on white, which is unreadable on the old dark navy. */
.org-bar {
  background: #fff;
  border-bottom: 1px solid var(--border);
}

.org-bar-inner {
  max-width: 960px;
  margin: 0 auto;
  padding: 0.5rem 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.org-logo { display: block; line-height: 0; }

.org-logo img { display: block; height: 35px; width: auto; }

.org-nav {
  display: flex;
  align-items: center;
  gap: 1.25rem;
  flex-wrap: wrap;
}

.org-nav a {
  color: var(--text-secondary);
  text-decoration: none;
  font-size: 0.85rem;
  font-weight: 600;
  transition: color 0.15s;
}

.org-nav a:hover { color: var(--primary); }

.org-nav-donate {
  background: var(--pink);
  color: var(--text) !important;
  padding: 0.35rem 0.9rem;
  border-radius: 999px;
  font-weight: 700 !important;
}

.org-nav-donate:hover { background: var(--yellow); }

.org-page-content {
  max-width: 640px;
  margin: 2rem auto 0;
}

.org-page-content h1 {
  font-size: 1.8rem;
  margin-bottom: 1rem;
}

.org-page-content p { margin-bottom: 1rem; color: var(--text-secondary); }

.org-page-content h2 {
  font-size: 1.15rem;
  margin: 1.75rem 0 0.75rem;
  color: var(--text);
}

.org-page-content ul {
  margin: 0 0 1rem 1.25rem;
  color: var(--text-secondary);
}

.org-page-content li { margin-bottom: 0.4rem; }

.org-page-content .placeholder-note {
  background: var(--primary-light);
  border: 1px solid #BFDBFE;
  border-radius: var(--radius);
  padding: 0.75rem 1rem;
  font-size: 0.85rem;
  color: var(--primary-dark);
  margin-bottom: 1.5rem;
}

.org-back-link {
  display: inline-block;
  margin-top: 1rem;
  color: var(--primary);
  font-weight: 600;
  text-decoration: none;
}

.org-back-link:hover { text-decoration: underline; }

.donate-form {
  margin: 1.5rem 0;
}

.donate-amounts {
  display: flex;
  gap: 0.75rem;
  flex-wrap: wrap;
  margin-bottom: 1.25rem;
}

.donate-amount-btn {
  flex: 1 1 100px;
  padding: 0.75rem 1rem;
  border: 2px solid var(--border-strong);
  border-radius: var(--radius);
  background: var(--card-bg);
  font-family: 'Inter', sans-serif;
  font-weight: 700;
  font-size: 1rem;
  color: var(--text);
  cursor: pointer;
  transition: border-color 0.15s, color 0.15s;
}

.donate-amount-btn:hover { border-color: var(--primary); }

.donate-amount-btn--active {
  border-color: var(--primary);
  background: var(--primary-light);
  color: var(--primary-dark);
}

.donate-amount-input { margin-bottom: 1.5rem; }

.donate-error {
  background: #FEF2F2;
  border: 1px solid #FECACA;
  color: #B91C1C;
  border-radius: var(--radius);
  padding: 0.75rem 1rem;
  font-size: 0.9rem;
  margin-bottom: 1.25rem;
}

/* ── Layout ───────────────────────────────────────────────────────────────── */
.page-wrap {
  max-width: 960px;
  margin: 0 auto;
  padding: 1rem 1.5rem 4rem;
  padding-right: calc(1.5rem + 110px); /* reserve space for v-progress */
  min-height: 100vh;
  position: relative;
}

.site-header {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1.25rem 0 2rem;
  border-bottom: 1px solid var(--border);
  margin-bottom: 2rem;
}

.logo {
  font-size: 1.1rem;
  font-weight: 800;
  color: var(--primary);
  letter-spacing: -0.02em;
}

.challenge-pill {
  background: var(--primary-light);
  border: 1px solid #BFDBFE;
  color: var(--primary-dark);
  border-radius: 6px;
  padding: 0.2rem 0.75rem;
  font-size: 0.78rem;
  font-weight: 600;
  max-width: 350px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.step-badge {
  display: inline-block;
  background: var(--primary-light);
  color: var(--primary);
  border: 1px solid #BFDBFE;
  border-radius: 6px;
  padding: 0.2rem 0.7rem;
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.07em;
  margin-bottom: 1rem;
}

/* ── Page content ─────────────────────────────────────────────────────────── */
.page-content {
  max-width: 760px;
  margin: 0 auto;
}

.page-content--wide { max-width: 100%; }

.page-title {
  font-size: clamp(1.75rem, 4vw, 2.5rem);
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: 0.4rem;
  color: var(--text);
}

.page-sub {
  font-size: 1rem;
  color: var(--muted);
  margin-bottom: 2rem;
}

.hint-text {
  color: var(--muted);
  font-size: 0.9rem;
  text-align: center;
  margin: 1.5rem 0;
}

/* ── Hero (Page 1) ────────────────────────────────────────────────────────── */
.hero {
  max-width: 680px;
  margin: 2.5rem auto 0;
  text-align: center;
  position: relative;
}

.hero-title {
  font-size: clamp(2rem, 5vw, 3.25rem);
  font-weight: 800;
  line-height: 1.1;
  margin-bottom: 0.8rem;
  letter-spacing: -0.02em;
}

.highlight {
  color: var(--primary);
}

.hero-sub {
  font-size: 1.05rem;
  color: var(--muted);
  margin-bottom: 2.5rem;
}

.challenge-form { display: flex; flex-direction: column; gap: 1.2rem; }

.challenge-step { display: flex; flex-direction: column; gap: 1.2rem; transition: opacity 0.3s; }
.step-done { pointer-events: none; }
/* A finished step is "locked", not faded: a 35% fade made the user's own answer and the Edit button look
   blurred on phones. Keep every bit of text fully legible; just tint the box and outline the Edit button. */
.step-done .challenge-input { background: #E9EEF5; color: var(--text-secondary); border-color: var(--border-strong); }
.step-done .outcome-label { color: var(--text-secondary); }
.step-done .btn-step-toggle {
  pointer-events: auto;
  background: #fff;
  color: var(--primary-dark);
  border: 2px solid var(--primary);
}
.step-done .btn-step-toggle:hover { background: var(--primary-light); }

.step-hidden { display: none; }

.step-visible {
  display: flex;
  flex-direction: column;
  gap: 1.2rem;
  animation: slideDown 0.3s ease;
}

@keyframes slideDown {
  from { opacity: 0; transform: translateY(-10px); }
  to   { opacity: 1; transform: translateY(0); }
}

.outcome-label {
  font-weight: 600;
  font-size: 0.95rem;
  color: var(--text-secondary);
  text-align: left;
}

.challenge-input {
  width: 100%;
  border: 1px solid var(--border-strong);
  border-radius: var(--radius);
  padding: 0.875rem 1rem;
  font-family: 'Inter', sans-serif;
  font-size: 1rem;
  resize: vertical;
  transition: border-color 0.15s, box-shadow 0.15s;
  background: white;
  color: var(--text);
}
.challenge-input:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(37,99,235,0.1);
}
.challenge-input:disabled {
  background: #F8FAFC;
  color: var(--muted);
  cursor: not-allowed;
  border-style: dashed;
}

.deco-stickers {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: -1;
}

.deco-sticker {
  position: absolute;
  font-family: 'Caveat', cursive;
  font-size: 1.25rem;
  font-weight: 700;
  line-height: 1.3;
  padding: 1.4rem 1.1rem 1rem;
  min-width: 110px;
  text-align: center;
  border-radius: 2px;
  box-shadow: 3px 4px 14px rgba(0,0,0,0.18), 0 1px 3px rgba(0,0,0,0.1);
  color: rgba(0,0,0,0.72);
}

.deco-sticker::before {
  content: '';
  position: absolute;
  top: -11px;
  left: 50%;
  transform: translateX(-50%);
  width: 46px;
  height: 20px;
  background: rgba(255,255,255,0.62);
  border-radius: 2px;
  box-shadow: 0 1px 4px rgba(0,0,0,0.12);
}

/* ── Buttons ─────────────────────────────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  border: 1px solid transparent;
  border-radius: var(--radius);
  padding: 0.6rem 1.5rem;
  font-family: 'Inter', sans-serif;
  font-weight: 700;
  font-size: 0.95rem;
  cursor: pointer;
  text-decoration: none;
  transition: background 0.15s, box-shadow 0.15s, transform 0.1s;
  box-shadow: var(--shadow);
}
.btn:hover { box-shadow: var(--shadow-lg); transform: translateY(-1px); }
.btn:active { transform: translateY(0); box-shadow: var(--shadow); }

.btn-primary {
  background: var(--primary);
  color: white;
  border-color: var(--primary-dark);
}
.btn-primary:hover { background: var(--primary-dark); }

.btn-secondary {
  background: white;
  color: var(--text);
  border-color: var(--border-strong);
}
.btn-secondary:hover { background: #F8FAFC; }

.btn-lg {
  padding: 0.8rem 2rem;
  font-size: 1rem;
}

.btn:disabled {
  cursor: not-allowed;
  transform: none;
  background: #E2E8F0;          /* clearly inactive, yet the label is still readable (6:1) */
  border-color: #CBD5E1;
  color: #475569;
  box-shadow: none;
}

.next-form { text-align: center; margin-top: 2rem; }

/* ── Expert cards (Page 2) ────────────────────────────────────────────────── */
.experts-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
  gap: 1.25rem;
  margin-bottom: 2rem;
}

.expert-card {
  background: white;
  border: 1px solid var(--border);
  border-top: 3px solid var(--card-color, var(--primary));
  border-radius: var(--radius);
  padding: 1.5rem 1.25rem;
  text-align: center;
  box-shadow: var(--shadow);
  transition: box-shadow 0.2s, transform 0.2s;
}
.expert-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-lg); }

.expert-avatar {
  width: 90px;
  height: 90px;
  margin: 0 auto 1rem;
  border-radius: 50%;
  overflow: hidden;
  border: 2px solid var(--border);
  background: var(--bg);
}
.expert-avatar img { width: 100%; height: 100%; object-fit: cover; }

.expert-name {
  font-size: 1rem;
  font-weight: 700;
  margin-bottom: 0.35rem;
  color: var(--text);
}

.expert-expertise {
  font-size: 0.82rem;
  color: var(--muted);
  line-height: 1.4;
}

.gender-badge { display: none; }

/* ── Opinion cards (Page 3) ───────────────────────────────────────────────── */
.opinions-list { display: flex; flex-direction: column; gap: 1rem; margin-bottom: 2rem; }

.opinion-card {
  background: white;
  border: 1px solid var(--border);
  border-left: 4px solid var(--primary);
  border-radius: 0 var(--radius) var(--radius) 0;
  padding: 1.1rem 1.25rem;
  box-shadow: var(--shadow);
}

.opinion-header {
  display: flex;
  align-items: center;
  gap: 0.875rem;
  margin-bottom: 0.7rem;
}

.opinion-avatar {
  border-radius: 50%;
  border: 2px solid var(--border);
  background: var(--bg);
  flex-shrink: 0;
  object-fit: cover;          /* fill the circle without ever stretching the picture */
  object-position: center top; /* keep the head in frame */
}

.opinion-name {
  display: block;
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--text);
}

.opinion-role {
  display: block;
  font-size: 0.75rem;
  color: var(--muted);
}

.opinion-text {
  font-size: 0.92rem;
  line-height: 1.65;
  color: var(--text-secondary);
}

.form-label {
  display: block;
  font-weight: 700;
  font-size: 0.9rem;
  margin-bottom: 0.5rem;
  color: var(--text-secondary);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.user-opinion-form { display: flex; flex-direction: column; gap: 1rem; }

.user-perspective-card {
  background: var(--primary-light);
  border: 1px solid #BFDBFE;
  border-left: 4px solid var(--primary);
  border-radius: 0 var(--radius) var(--radius) 0;
  padding: 1rem 1.25rem;
  margin-bottom: 1.5rem;
}

.user-perspective-text {
  font-size: 0.95rem;
  line-height: 1.65;
  color: var(--text-secondary);
  margin-top: 0.4rem;
}

/* ── Stickers ─────────────────────────────────────────────────────────────── */
.sticker {
  background: var(--yellow);
  border-radius: 2px;
  padding: 1.2rem 1rem 1.6rem;
  box-shadow: var(--shadow-lg);
  position: relative;
  cursor: default;
}

.sticker-text {
  font-family: 'Caveat', cursive;
  font-size: 1.2rem;
  font-weight: 500;
  line-height: 1.45;
  color: #1a1a1a;
}

.sticker-tape {
  position: absolute;
  top: -10px;
  left: 50%;
  transform: translateX(-50%);
  width: 44px;
  height: 18px;
  background: rgba(255,255,255,0.55);
  border-radius: 2px;
  box-shadow: 0 1px 3px rgba(0,0,0,0.1);
}

/* ── Summary stickers (Page 4) ────────────────────────────────────────────── */
.summary-stickers-row {
  display: flex;
  gap: 2rem;
  justify-content: center;
  flex-wrap: wrap;
  margin: 2.5rem 0;
}

.big-sticker {
  background: var(--yellow);
  padding: 1.75rem 1.5rem 2.25rem;
  border-radius: 2px;
  box-shadow: var(--shadow-lg);
  position: relative;
  max-width: 240px;
  width: 100%;
}

.big-sticker .sticker-text {
  font-size: 1.3rem;
}

.sticker-number {
  position: absolute;
  bottom: 0.5rem;
  right: 0.75rem;
  font-family: 'Caveat', cursive;
  font-size: 1.4rem;
  font-weight: 700;
  opacity: 0.2;
}

/* ── Whiteboard (Page 5) ──────────────────────────────────────────────────── */
.whiteboard {
  background: white;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 2rem;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(175px, 1fr));
  gap: 1.75rem;
  min-height: 480px;
  box-shadow: inset 0 2px 6px rgba(0,0,0,0.03);
  background-image:
    linear-gradient(rgba(0,0,0,0.025) 1px, transparent 1px),
    linear-gradient(90deg, rgba(0,0,0,0.025) 1px, transparent 1px);
  background-size: 28px 28px;
  margin-bottom: 2rem;
}

.sticker-label { display: block; cursor: pointer; }

.sticker--vote {
  transition: transform 0.15s, box-shadow 0.15s;
  position: relative;
}

.vote-check.hidden { display: none; }

.vote-tick {
  position: absolute;
  top: 0.4rem;
  right: 0.4rem;
  font-size: 1.1rem;
  display: none;
  font-weight: 900;
  color: var(--success);
}

.sticker-label.voted .sticker--vote {
  outline: 2px solid var(--success);
  box-shadow: 0 0 0 4px rgba(5,150,105,0.15), var(--shadow-lg);
}
.sticker-label.voted .vote-tick { display: block; }

.sticker--featured {
  outline: 2px solid var(--warning);
}

.star-badge {
  display: inline-block;
  font-size: 0.65rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  background: rgba(255,255,255,0.6);
  padding: 0.15em 0.5em;
  border-radius: 3px;
  margin-bottom: 0.4rem;
}

.vote-counter {
  font-weight: 700;
  font-size: 0.9rem;
  color: var(--muted);
  margin-bottom: 1rem;
  background: white;
  display: inline-block;
  padding: 0.35rem 1rem;
  border-radius: 6px;
  border: 1px solid var(--border);
  width: 100%;
  text-align: center;
  box-shadow: var(--shadow);
}

/* ── Results (Page 6) ─────────────────────────────────────────────────────── */
.whiteboard--results { grid-template-columns: repeat(auto-fill, minmax(195px, 1fr)); }

.sticker-result-wrap { display: flex; flex-direction: column; gap: 0.5rem; }

.sticker--winner {
  outline: 2px solid var(--warning);
  box-shadow: 0 0 0 4px rgba(217,119,6,0.12), var(--shadow-lg);
}

.score-bar {
  display: flex;
  gap: 0.35rem;
  flex-wrap: wrap;
  font-size: 0.74rem;
  font-weight: 700;
}

.score-item {
  background: white;
  border-radius: 4px;
  padding: 0.15rem 0.5rem;
  border: 1px solid var(--border);
  white-space: nowrap;
  color: var(--text-secondary);
}
.score-vote { background: #D1FAE5; border-color: #6EE7B7; color: #065F46; }
.score-total { background: var(--primary-light); border-color: #BFDBFE; color: var(--primary-dark); }

/* ── Final (Page 7) ───────────────────────────────────────────────────────── */
.winning-stickers {
  display: flex;
  gap: 1.75rem;
  justify-content: center;
  flex-wrap: nowrap;
  margin: 1.75rem 0 2.25rem;
}

.big-sticker--winner {
  background: var(--yellow);
  outline: 2px solid var(--warning);
  box-shadow: 0 0 0 4px rgba(217,119,6,0.1), var(--shadow-lg);
}

.medal {
  display: block;
  font-size: 1.6rem;
  margin-bottom: 0.4rem;
  text-align: center;
}

.action-plan {
  list-style: none;
  padding: 0;
  max-width: 680px;
  margin: 0 auto 2.5rem;
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}

.action-plan li {
  background: white;
  border: 1px solid var(--border);
  border-left: 3px solid var(--primary);
  border-radius: 0 var(--radius) var(--radius) 0;
  padding: 0.875rem 1.1rem 0.875rem 2.75rem;
  box-shadow: var(--shadow);
  font-size: 0.98rem;
  line-height: 1.55;
  color: var(--text-secondary);
  position: relative;
}

.action-plan li::before {
  content: "→";
  position: absolute;
  left: 0.9rem;
  top: 0.875rem;
  font-weight: 700;
  color: var(--primary);
}

.section-title {
  font-size: 1.35rem;
  font-weight: 700;
  color: var(--text);
  text-align: center;
  max-width: 680px;
  margin: 0 auto 1.25rem;
}

.swot-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
  max-width: 680px;
  margin: 0 auto 2.5rem;
}

.swot-card {
  background: white;
  border: 1px solid var(--border);
  border-top: 4px solid var(--border-strong);
  border-radius: var(--radius);
  padding: 1.1rem 1.25rem;
  box-shadow: var(--shadow);
}

.swot-card h3 {
  font-size: 0.95rem;
  font-weight: 700;
  margin-bottom: 0.6rem;
  color: var(--text);
}

.swot-card ul {
  list-style: none;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

.swot-card li {
  font-size: 0.9rem;
  line-height: 1.45;
  color: var(--text-secondary);
}

.swot-card--strengths { border-top-color: var(--mint); }
.swot-card--weaknesses { border-top-color: var(--orange); }
.swot-card--opportunities { border-top-color: var(--sky); }
.swot-card--threats { border-top-color: #FF6B6B; }

@media (max-width: 640px) {
  .swot-grid { grid-template-columns: 1fr; }
}

.char-hint { font-size: 0.8rem; color: var(--muted); margin-top: 0.35rem; min-height: 1.1em; }

/* ── Vertical progress bar (right gutter, absolutely positioned) ─────────── */
.v-progress {
  position: fixed;
  right: max(0.75rem, calc((100vw - 960px) / 2 + 0.75rem));
  top: 50%;
  transform: translateY(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.4rem;
  z-index: 1001;
  width: 90px;
}

[hidden].v-progress { display: none; }

.v-progress-label {
  font-size: 0.65rem;
  font-weight: 600;
  color: var(--text-secondary);
  text-align: center;
  line-height: 1.3;
}

.v-progress-pct {
  font-size: 0.88rem;
  font-weight: 700;
  color: var(--primary);
  min-width: 3ch;
  text-align: center;
}

.v-progress-track {
  width: 10px;
  height: 180px;
  background: var(--border);
  border-radius: 99px;
  position: relative;
  overflow: hidden;
}

.v-progress-fill {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 0%;
  background: linear-gradient(0deg, var(--primary), #7C3AED);
  border-radius: 99px;
  transition: height 0.4s ease;
}

/* ── Voting overlay ───────────────────────────────────────────────────────── */
.vote-overlay {
  position: fixed; inset: 0; z-index: 1000;
  background: rgba(15,23,42,0.72); backdrop-filter: blur(4px);
  display: flex; align-items: center; justify-content: center;
}
.vote-overlay.hidden { display: none; }
.vote-overlay-box {
  background: var(--card-bg); border-radius: 16px;
  padding: 2.5rem 3rem; text-align: center;
  box-shadow: 0 24px 64px rgba(0,0,0,0.3);
  max-width: 340px; width: 90%;
}
.vote-overlay-title {
  font-size: 1.35rem; font-weight: 700; color: var(--text);
  margin: 1rem 0 1.25rem;
}
.vote-overlay-sub { font-size: 0.85rem; color: var(--muted); margin-top: 0.75rem; }
.vote-progress-wrap { display: flex; align-items: center; gap: 0.75rem; }
.vote-progress-track {
  flex: 1; height: 10px; background: var(--bg);
  border-radius: 99px; overflow: hidden;
}
.vote-progress-fill {
  height: 100%; width: 0%; border-radius: 99px;
  background: linear-gradient(90deg, var(--primary), #7C3AED);
  transition: width 0.6s ease;
}
.vote-pct { font-size: 0.9rem; font-weight: 600; color: var(--primary); min-width: 3ch; }

/* Ballot drop animation */
@keyframes ballot-drop {
  0%   { transform: translateY(0) rotate(-4deg); opacity: 1; }
  80%  { transform: translateY(52px) rotate(2deg); opacity: 1; }
  100% { transform: translateY(60px) rotate(2deg); opacity: 0; }
}
.ballot-1 { animation: ballot-drop 1.4s ease-in infinite; }
.ballot-2 { animation: ballot-drop 1.4s ease-in infinite 0.7s; }
.disclaimer { font-size: 0.78rem; color: var(--muted); text-align: center; margin: 2rem auto 1.5rem; max-width: 480px; line-height: 1.5; }
.restart-wrap { text-align: center; }

.assembly-indicator { font-size: 0.82rem; color: var(--muted); font-family: "Inter", sans-serif; }
.discussion-status { font-size: 0.88rem; color: var(--muted); font-family: "Inter", sans-serif; margin-bottom: 0.4rem; }

/* ── Meeting room (Page 2) ───────────────────────────────────────────────── */
.meeting-room {
  background: linear-gradient(135deg, #1e2a3a 0%, #1a2744 60%, #0f2057 100%);
  border-radius: var(--radius);
  padding: 1.5rem;
  margin: 2rem 0 1.5rem;
  box-shadow: var(--shadow-lg);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.25rem;
}

.meeting-scene {
  position: relative;
  width: 100%;
  border-radius: 6px;
  overflow: hidden;
  line-height: 0;
}

.meeting-room-svg {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 6px;
}

.meeting-avatars {
  position: absolute;
  top: 33%;
  left: 0;
  width: 100%;
  display: flex;
  justify-content: space-around;
  z-index: 2;
}

.meeting-person {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.25rem;
}

.meeting-avatar-img {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid rgba(255,255,255,0.4);
  box-shadow: 0 4px 14px rgba(0,0,0,0.4);
}

.speech-bubble {
  width: 8px;
  height: 8px;
  background: rgba(255,255,255,0.5);
  border-radius: 50%;
  animation: pulse-bubble 1.4s ease-in-out infinite;
}

@keyframes pulse-bubble {
  0%, 100% { transform: scale(0.6); opacity: 0.3; }
  50%       { transform: scale(1);   opacity: 0.9; }
}

.meeting-status {
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
}

.discussion-label {
  color: rgba(255,255,255,0.85);
  font-weight: 600;
  font-size: 0.92rem;
  text-align: center;
}

.discussion-progress-wrap {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  width: 100%;
  max-width: 340px;
}

.discussion-progress-bar {
  flex: 1;
  height: 6px;
  background: rgba(255,255,255,0.12);
  border-radius: 99px;
  overflow: hidden;
}

.discussion-progress-fill {
  height: 100%;
  background: linear-gradient(90deg, #38BDF8, #818CF8);
  border-radius: 99px;
  transition: width 0.4s ease;
}

.discussion-pct-label {
  color: rgba(255,255,255,0.6);
  font-size: 0.8rem;
  font-weight: 700;
  min-width: 2.5rem;
  text-align: right;
}

/* ── Avatar spinner placeholder ─────────────────────────────────────────── */
.avatar-spinner {
  width: 90px; height: 90px;
  border-radius: 50%;
  background: linear-gradient(135deg, #e2e8f0, #f8fafc);
  background-size: 200% 200%;
  animation: shimmer 1.5s ease-in-out infinite;
}
.avatar-spinner--sm { width: 64px; height: 64px; }

@keyframes shimmer {
  0%   { background-position: 0% 50%; }
  50%  { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}

/* ── Mobile ───────────────────────────────────────────────────────────────── */
@media (max-width: 640px) {

  /* Layout: shrink right gutter to match the smaller mobile progress bar */
  .page-wrap {
    padding: 0.75rem 1rem 6rem;
    padding-right: 4.75rem;
  }

  /* Site header: let challenge pill wrap to its own line */
  .site-header {
    flex-wrap: wrap;
    padding: 0.875rem 0 1.25rem;
    gap: 0.4rem;
  }
  .challenge-pill {
    max-width: 100%;
    width: 100%;
  }

  /* Hero page */
  .hero { margin: 1rem auto 0; }
  .hero-sub { margin-bottom: 1.5rem; font-size: 0.95rem; }

  /* Decorative stickers: too distracting on small screens */
  .deco-stickers { display: none; }

  /* Primary action buttons: full width for easy tapping */
  .next-form .btn-lg,
  .restart-wrap .btn-lg { width: 100%; }
  .next-form { margin-top: 1.25rem; }

  /* Expert cards: two columns on phone */
  .experts-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 0.75rem;
  }
  .expert-card { padding: 1rem 0.75rem; }
  .expert-avatar { width: 72px; height: 72px; }

  /* Meeting room: smaller avatars so they don't crowd the SVG */
  .meeting-avatar-img { width: 48px; height: 48px; }
  .avatar-spinner--sm { width: 48px; height: 48px; }
  .meeting-room { padding: 1rem; }

  /* Opinion cards */
  .opinion-header { gap: 0.5rem; }

  /* Summary stickers: stack vertically */
  .summary-stickers-row {
    flex-direction: column;
    align-items: center;
    gap: 1.25rem;
    margin: 1.5rem 0;
  }
  .big-sticker { max-width: 100%; }

  /* Whiteboard: 2 compact columns */
  .whiteboard {
    grid-template-columns: repeat(2, 1fr);
    padding: 1rem;
    gap: 1rem;
    min-height: unset;
  }
  .whiteboard--results {
    grid-template-columns: repeat(2, 1fr);
  }

  /* Winning stickers: stack on final page */
  .winning-stickers {
    flex-direction: column;
    align-items: center;
    gap: 1.25rem;
    margin: 1.25rem 0 1.75rem;
  }

  /* Action plan: reduce indent */
  .action-plan li {
    padding: 0.75rem 0.875rem 0.75rem 2.25rem;
    font-size: 0.93rem;
  }

  /* Progress bar: shrink and keep clear of the content column */
  .v-progress {
    right: 0.5rem;
    width: 56px;
    gap: 0.3rem;
  }
  .v-progress-label {
    font-size: 0.58rem;
  }
  .v-progress-pct {
    font-size: 0.78rem;
  }
  .v-progress-track {
    height: 130px;
  }

  /* Voting overlay */
  .vote-overlay-box { padding: 2rem 1.5rem; }

  /* Score bars on results page: wrap naturally */
  .score-bar { gap: 0.25rem; }
}

/* ── Cookie consent banner + footer ───────────────────────────────────────── */
.consent-banner {
  position: fixed;
  left: 1rem;
  right: 1rem;
  bottom: 1rem;
  max-width: 600px;
  margin: 0 auto;
  z-index: 900; /* below the loading overlays (1000) */
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 0.75rem 1.25rem;
  padding: 1rem 1.25rem;
  background: var(--card-bg);
  border: 1px solid var(--border-strong);
  border-radius: 12px;
  box-shadow: var(--shadow-xl);
}

.consent-banner[hidden] { display: none; }

.consent-text {
  flex: 1 1 260px;
  margin: 0;
  font-size: 0.85rem;
  line-height: 1.5;
  color: var(--text-secondary);
}

.consent-text a { color: var(--primary); font-weight: 600; }

.consent-actions { display: flex; gap: 0.5rem; }

/* Decline and Accept are deliberately styled identically — refusing should be
   exactly as easy and prominent as agreeing. */
.consent-btn {
  padding: 0.5rem 1.1rem;
  border: 2px solid var(--primary);
  border-radius: var(--radius);
  background: var(--card-bg);
  color: var(--primary-dark);
  font-family: 'Inter', sans-serif;
  font-size: 0.85rem;
  font-weight: 700;
  cursor: pointer;
}

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

.site-footer {
  margin-top: 3rem;
  padding-top: 1rem;
  border-top: 1px solid var(--border);
  font-size: 0.8rem;
  color: var(--muted);
  text-align: center;
}

.site-footer a,
.footer-link-button {
  color: var(--muted);
  text-decoration: none;
  font: inherit;
  background: none;
  border: none;
  padding: 0;
  cursor: pointer;
}

.site-footer a:hover,
.footer-link-button:hover { color: var(--primary); text-decoration: underline; }

.org-page-content .footer-link-button { color: var(--primary); font-weight: 600; text-decoration: none; }
.org-page-content .footer-link-button:hover { text-decoration: underline; }

.footer-copyright { margin-top: 0.35rem; }

.char-hint--error { color: #B91C1C; font-weight: 600; }

/* ── AI capacity / failure notice ─────────────────────────────────────────── */
.ai-banner {
  background: #FFFBEB;
  border: 1px solid #FDE68A;
  color: #92400E;
  border-radius: var(--radius);
  padding: 0.75rem 1rem;
  font-size: 0.9rem;
  margin-bottom: 1.25rem;
  text-align: center;
}
.ai-banner a { color: inherit; font-weight: 700; text-decoration: underline; }

/* ── Fallback avatars (initials) — used when no generated image is available ── */
.avatar-initials {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
  border-radius: 50%;
  color: #fff;
  font-weight: 800;
  font-size: 2rem;
  letter-spacing: 0.02em;
}
.avatar-initials--sm {
  width: 64px; height: 64px;
  font-size: 1.4rem;
  border: 2px solid rgba(255,255,255,0.4);
  box-shadow: 0 4px 14px rgba(0,0,0,0.4);
}
.avatar-initials--opinion { width: 48px; height: 48px; font-size: 1rem; }
@media (max-width: 640px) { .avatar-initials--sm { width: 48px; height: 48px; font-size: 1.1rem; } }

/* Contact-form honeypot: invisible to people, tempting to bots */
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
