/* ═══════════════════════════════════════════════════════
   BondQuiz — Futuristic Dark UI
   Palette: Deep Black × Purple × Cyan × Pink
   ═══════════════════════════════════════════════════════ */

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

/* ── Tokens ───────────────────────────────────────────── */
:root {
  --bg:          #05070f;
  --card-bg:     rgba(10, 14, 32, 0.85);
  --purple:      #a855f7;
  --purple-d:    #7c3aed;
  --cyan:        #22d3ee;
  --cyan-d:      #06b6d4;
  --pink:        #ec4899;
  --amber:       #f59e0b;
  --amber-d:     #d97706;
  --coral:       #f97316;
  --green:       #10b981;
  --rose:        #f43f5e;
  --text:        #e2e8f0;
  --muted:       #94a3b8;
  --border:      rgba(148,163,184,.1);
  --navy:        #0f172a;
  --ocean:       #1d4ed8;
  --r-sm: 10px;
  --r-md: 16px;
  --r-lg: 24px;
}

/* ── Base ─────────────────────────────────────────────── */
html, body {
  min-height: 100vh;
  font-family: 'Segoe UI', system-ui, -apple-system, sans-serif;
  font-size: 16px;
  color: var(--text);
  background: var(--bg);
  overflow-x: hidden;
}

/* ── Animated background orbs ─────────────────────────── */
body::before, body::after {
  content: '';
  position: fixed;
  border-radius: 50%;
  pointer-events: none;
  z-index: 0;
  filter: blur(90px);
}
body::before {
  width: 700px; height: 700px;
  background: radial-gradient(circle, rgba(139,92,246,.35) 0%, transparent 70%);
  top: -250px; left: -200px;
  animation: orb1 14s ease-in-out infinite alternate;
}
body::after {
  width: 600px; height: 600px;
  background: radial-gradient(circle, rgba(6,182,212,.25) 0%, transparent 70%);
  bottom: -200px; right: -150px;
  animation: orb2 18s ease-in-out infinite alternate;
}
@keyframes orb1 {
  from { transform: translate(0,0) scale(1); }
  to   { transform: translate(80px,70px) scale(1.2); }
}
@keyframes orb2 {
  from { transform: translate(0,0) scale(1); }
  to   { transform: translate(-60px,-50px) scale(1.15); }
}

/* ── Layout ───────────────────────────────────────────── */
.page-center {
  position: relative; z-index: 1;
  display: flex; justify-content: center; align-items: flex-start;
  min-height: 100vh;
  padding: 2.5rem 1rem 5rem;
}

/* ── Card – glassmorphism ─────────────────────────────── */
.card {
  background: var(--card-bg);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  border-radius: var(--r-lg);
  border: 1px solid rgba(139,92,246,.22);
  box-shadow:
    0 30px 70px rgba(0,0,0,.55),
    0 0 0 1px rgba(139,92,246,.08),
    inset 0 1px 0 rgba(255,255,255,.04);
  width: 100%; max-width: 520px;
}

/* Gradient accent top strip */
.card::before {
  content: '';
  display: block; height: 3px;
  background: linear-gradient(90deg, var(--purple) 0%, var(--cyan) 50%, var(--pink) 100%);
  border-radius: var(--r-lg) var(--r-lg) 0 0;
}

/* ── Home card ────────────────────────────────────────── */
.home-card { text-align: center; }
.home-inner { padding: 2.5rem 2rem 3rem; }

.brand { margin-bottom: 1.5rem; }
.brand-icon {
  font-size: 3.5rem; display: block; line-height: 1;
  filter: drop-shadow(0 0 16px rgba(168,85,247,.65));
  animation: float 3s ease-in-out infinite;
}
.brand-name {
  font-size: 2.2rem; font-weight: 900; letter-spacing: -.04em;
  background: linear-gradient(135deg, #e2e8f0 0%, var(--purple) 50%, var(--cyan) 100%);
  background-size: 200% 200%;
  -webkit-background-clip: text; background-clip: text; color: transparent;
  animation: shimmer 4s ease-in-out infinite;
}
@keyframes shimmer {
  0%,100% { background-position: 0% 50%; }
  50%      { background-position: 100% 50%; }
}
.brand-name span { -webkit-text-fill-color: unset; }

.tagline {
  color: var(--muted); line-height: 1.7;
  margin-bottom: 2rem; font-size: .95rem;
}

/* ── Feature pills ────────────────────────────────────── */
.features {
  display: flex; justify-content: center; gap: .65rem;
  margin-bottom: 2rem; flex-wrap: wrap;
}
.feature-pill {
  background: rgba(139,92,246,.1);
  border: 1px solid rgba(139,92,246,.25);
  border-radius: 20px; padding: .3rem .85rem;
  font-size: .78rem; font-weight: 600; color: var(--purple);
  display: flex; align-items: center; gap: .3rem;
}

/* ── Form ─────────────────────────────────────────────── */
.field { margin-bottom: 1.1rem; text-align: left; }
.field label {
  display: block; font-size: .75rem; font-weight: 700;
  text-transform: uppercase; letter-spacing: .09em;
  color: var(--muted); margin-bottom: .45rem;
}
.field input[type="text"] {
  width: 100%; padding: .88rem 1rem;
  border: 1.5px solid rgba(148,163,184,.12); border-radius: var(--r-sm);
  font-size: 1rem; font-family: inherit; outline: none;
  color: var(--text); background: rgba(255,255,255,.04);
  transition: border-color .2s, box-shadow .2s;
}
.field input[type="text"]::placeholder { color: rgba(148,163,184,.35); }
.field input[type="text"]:focus {
  border-color: var(--purple);
  box-shadow: 0 0 0 3px rgba(168,85,247,.15), 0 0 20px rgba(168,85,247,.2);
  background: rgba(168,85,247,.04);
}

/* ── Buttons ──────────────────────────────────────────── */
.btn {
  display: inline-block; padding: .9rem 1.5rem;
  border-radius: var(--r-sm); font-size: 1rem; font-weight: 700;
  text-decoration: none; border: none; cursor: pointer;
  font-family: inherit; text-align: center; letter-spacing: .02em;
  transition: transform .15s, box-shadow .2s;
  position: relative; overflow: hidden;
}
.btn::after {
  content: '';
  position: absolute; top: 0; left: -100%;
  width: 100%; height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,.15), transparent);
  transition: left .5s;
}
.btn:hover::after { left: 100%; }
.btn:active { transform: scale(.97); }
.btn-full   { display: block; width: 100%; }

.btn-primary {
  background: linear-gradient(135deg, var(--purple), var(--pink));
  color: #fff;
  box-shadow: 0 4px 22px rgba(168,85,247,.4);
}
.btn-primary:hover {
  box-shadow: 0 6px 30px rgba(168,85,247,.55);
  transform: translateY(-2px);
}

.hint {
  font-size: .8rem; color: var(--muted); margin-top: 1.2rem;
  display: flex; justify-content: center; gap: 1rem;
}
.hint span { display: flex; align-items: center; gap: .25rem; }

/* ── Challenge hero banner ────────────────────────────── */
.challenge-hero {
  background: linear-gradient(135deg, rgba(139,92,246,.15), rgba(6,182,212,.1));
  border-bottom: 1px solid rgba(139,92,246,.15);
  padding: 1.5rem 2rem; text-align: center;
}
.challenge-hero .ch-icon { font-size: 2.5rem; }
.challenge-hero h2 { font-size: 1.2rem; font-weight: 800; margin: .4rem 0 .2rem; }
.challenge-hero p  { font-size: .88rem; color: var(--muted); }

/* ── Quiz card ────────────────────────────────────────── */
.quiz-inner { padding: 1.4rem 1.5rem; }

.challenge-banner {
  background: linear-gradient(90deg, rgba(139,92,246,.15), rgba(6,182,212,.1));
  border: 1px solid rgba(139,92,246,.2);
  color: var(--text); text-align: center;
  font-size: .88rem; font-weight: 700;
  padding: .65rem 1rem; border-radius: var(--r-sm);
  margin-bottom: 1rem;
}

/* ── Progress ─────────────────────────────────────────── */
.progress-header {
  font-size: .72rem; font-weight: 700; text-transform: uppercase;
  letter-spacing: .1em; color: var(--muted);
  text-align: center; margin-bottom: .65rem;
}
.progress-dots {
  display: flex; flex-wrap: wrap; justify-content: center;
  gap: 6px; margin-bottom: 1.5rem;
}
.dot {
  width: 10px; height: 10px; border-radius: 50%;
  background: rgba(148,163,184,.12);
  border: 1px solid rgba(148,163,184,.18);
  flex-shrink: 0; transition: all .3s;
}
.dot-done {
  background: var(--purple);
  border-color: var(--purple);
  box-shadow: 0 0 8px rgba(168,85,247,.55);
}
.dot-current {
  background: var(--cyan); border-color: var(--cyan);
  transform: scale(1.45);
  animation: pulse-dot 1.3s infinite;
}
@keyframes pulse-dot {
  0%,100% { box-shadow: 0 0 0 3px rgba(34,211,238,.2), 0 0 10px rgba(34,211,238,.4); }
  50%      { box-shadow: 0 0 0 6px rgba(34,211,238,.06), 0 0 20px rgba(34,211,238,.25); }
}

/* ── Question card ────────────────────────────────────── */
.question-card { animation: slideUp .38s cubic-bezier(.22,.68,0,1.18); }
@keyframes slideUp {
  from { opacity:0; transform: translateY(22px) scale(.96); }
  to   { opacity:1; transform: translateY(0) scale(1); }
}

.q-header {
  display: flex; align-items: center; justify-content: space-between;
  margin-bottom: .9rem;
}
.q-counter {
  font-size: .92rem; font-weight: 800;
  background: linear-gradient(90deg, var(--purple), var(--cyan));
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.q-counter span {
  color: var(--muted); font-weight: 500;
  -webkit-text-fill-color: var(--muted);
}

.question-emoji {
  font-size: 3.2rem; text-align: center; margin-bottom: .6rem;
  filter: drop-shadow(0 0 14px rgba(168,85,247,.45));
  animation: float 3s ease-in-out infinite;
}
@keyframes float {
  0%,100% { transform: translateY(0); }
  50%      { transform: translateY(-6px); }
}
.question-text {
  font-size: 1.15rem; font-weight: 800; text-align: center;
  line-height: 1.45; color: var(--text); margin-bottom: 1.3rem;
}

/* ── Options ──────────────────────────────────────────── */
.options-list { display: flex; flex-direction: column; gap: .5rem; }

.option-list-btn {
  display: flex; align-items: center; gap: .75rem;
  width: 100%; padding: .82rem 1rem;
  border: 1px solid rgba(148,163,184,.1);
  border-radius: var(--r-sm);
  background: rgba(255,255,255,.025);
  cursor: pointer; font-family: inherit; text-align: left; color: var(--text);
  transition: all .22s cubic-bezier(.22,.68,0,1.2);
  position: relative; overflow: hidden;
}
.option-list-btn::before {
  content: '';
  position: absolute; inset: 0;
  background: linear-gradient(135deg, rgba(168,85,247,.07), rgba(34,211,238,.04));
  opacity: 0; transition: opacity .2s;
}
.option-list-btn:hover {
  border-color: rgba(168,85,247,.4);
  background: rgba(168,85,247,.07);
  transform: translateX(5px);
  box-shadow: 0 0 18px rgba(168,85,247,.12), -4px 0 0 var(--purple);
}
.option-list-btn:hover::before { opacity: 1; }
.option-list-btn.selected {
  border-color: var(--purple);
  background: rgba(168,85,247,.13);
  transform: translateX(5px);
  box-shadow: 0 0 24px rgba(168,85,247,.2), -4px 0 0 var(--purple);
}
.option-list-btn:disabled { opacity: .45; cursor: default; transform: none; box-shadow: none; }

.opt-num {
  min-width: 30px; height: 30px; border-radius: 50%;
  background: rgba(148,163,184,.08);
  border: 1px solid rgba(148,163,184,.18);
  color: var(--muted); font-size: .78rem; font-weight: 800;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0; transition: all .2s;
}
.option-list-btn:hover .opt-num,
.option-list-btn.selected .opt-num {
  background: var(--purple); color: #fff;
  border-color: var(--purple);
  box-shadow: 0 0 12px rgba(168,85,247,.45);
}
.opt-emoji { font-size: 1.4rem; flex-shrink: 0; }
.opt-text  { flex: 1; font-size: .9rem; font-weight: 600; color: var(--text); }
.opt-arrow {
  color: rgba(148,163,184,.25); font-size: 1.2rem;
  font-weight: 300; flex-shrink: 0; transition: all .2s;
}
.option-list-btn:hover .opt-arrow,
.option-list-btn.selected .opt-arrow { color: var(--purple); transform: translateX(3px); }

/* ── Skip sticker ─────────────────────────────────────── */
.btn-skip-sticker {
  display: inline-flex; align-items: center; gap: .3rem;
  padding: .28rem .75rem;
  background: rgba(34,211,238,.07);
  border: 1px dashed rgba(34,211,238,.35);
  border-radius: 50px;
  color: var(--cyan); font-size: .75rem; font-weight: 700;
  font-family: inherit; cursor: pointer;
  transform: rotate(-2deg);
  transition: all .2s;
}
.btn-skip-sticker:hover {
  background: rgba(34,211,238,.15);
  border-color: var(--cyan);
  transform: rotate(0deg) scale(1.07);
  box-shadow: 0 0 14px rgba(34,211,238,.28);
}
.btn-skip-sticker:disabled { opacity: .35; cursor: default; }

/* ── Share panel ──────────────────────────────────────── */
.share-created { animation: slideUp .35s ease; padding: .5rem 0; text-align: center; }
.share-ready-title {
  font-size: 1.5rem; font-weight: 900; letter-spacing: -.02em;
  background: linear-gradient(135deg, var(--purple), var(--cyan));
  -webkit-background-clip: text; background-clip: text; color: transparent;
  margin-bottom: .3rem;
}
.share-sub { color: var(--muted); font-size: .88rem; margin-bottom: 1rem; }

.url-row {
  display: flex; align-items: center; gap: .4rem;
  border: 1px solid rgba(168,85,247,.25); border-radius: var(--r-sm);
  padding: .35rem .35rem .35rem .85rem;
  background: rgba(168,85,247,.05); margin-bottom: 1rem;
}
.url-input {
  flex: 1; border: none; background: transparent;
  font-size: .8rem; color: var(--muted); outline: none;
  min-width: 0; overflow: hidden; text-overflow: ellipsis;
}
.copy-icon-btn {
  flex-shrink: 0; width: 36px; height: 36px; border: none; border-radius: 8px;
  background: linear-gradient(135deg, var(--purple), var(--cyan-d)); color: #fff;
  display: flex; align-items: center; justify-content: center;
  cursor: pointer; transition: all .2s;
  box-shadow: 0 0 14px rgba(168,85,247,.35);
}
.copy-icon-btn:hover { box-shadow: 0 0 20px rgba(168,85,247,.55); transform: scale(1.07); }
.copy-icon-btn.copied { background: var(--green); box-shadow: 0 0 14px rgba(16,185,129,.4); }

/* Share grid */
.share-grid {
  display: grid; grid-template-columns: 1fr 1fr;
  gap: .5rem; margin-bottom: 1rem;
}
.sg-btn {
  display: flex; align-items: center; justify-content: center;
  gap: .4rem; padding: .65rem .5rem;
  border-radius: var(--r-sm); font-size: .84rem; font-weight: 700;
  text-decoration: none; color: #fff; border: none;
  cursor: pointer; font-family: inherit;
  transition: all .2s; position: relative; overflow: hidden;
}
.sg-btn::after {
  content: ''; position: absolute; inset: 0;
  background: rgba(255,255,255,0); transition: background .15s;
}
.sg-btn:hover::after { background: rgba(255,255,255,.1); }
.sg-btn:active { transform: scale(.96); }
.sg-full { grid-column: 1 / -1; }

.sg-whatsapp  { background: #25d366; box-shadow: 0 4px 14px rgba(37,211,102,.25); }
.sg-instagram { background: linear-gradient(135deg,#f09433,#e6683c,#dc2743,#cc2366,#bc1888); }
.sg-snapchat  { background: #fffc00; color: #000; }
.sg-telegram  { background: #2aabee; }
.sg-facebook  { background: #1877f2; }
.sg-messenger { background: linear-gradient(135deg,#0084ff,#a033ff); }
.sg-twitter   { background: #111; border: 1px solid rgba(255,255,255,.12); }
.sg-more      { background: rgba(148,163,184,.08); border: 1px solid rgba(148,163,184,.18); }

/* VIEW RESULT */
.btn-view-result {
  display: block; width: 100%; padding: .92rem;
  background: linear-gradient(135deg, var(--purple), var(--pink));
  color: #fff; font-weight: 900; font-size: 1rem;
  letter-spacing: .05em; text-align: center; text-decoration: none;
  border-radius: var(--r-sm); border: none; cursor: pointer;
  margin-bottom: .85rem;
  box-shadow: 0 4px 22px rgba(168,85,247,.4);
  transition: all .2s; position: relative; overflow: hidden;
}
.btn-view-result::after {
  content: ''; position: absolute; top: 0; left: -100%;
  width: 100%; height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,.15), transparent);
  transition: left .5s;
}
.btn-view-result:hover::after { left: 100%; }
.btn-view-result:hover { box-shadow: 0 6px 30px rgba(168,85,247,.55); transform: translateY(-2px); }

.delete-quiz-link {
  display: block; text-align: center;
  color: rgba(244,63,94,.5); font-size: .82rem;
  cursor: pointer; transition: color .15s;
}
.delete-quiz-link:hover { color: var(--rose); }

/* ── Result page ──────────────────────────────────────── */
.rp-card { max-width: 540px; }

.rp-header { padding: 1.6rem 1.5rem 1.1rem; border-bottom: 1px solid var(--border); }
.rp-creator-row { display: flex; align-items: center; gap: .9rem; margin-bottom: 1rem; }
.rp-avatar {
  width: 52px; height: 52px; border-radius: 50%; flex-shrink: 0;
  background: linear-gradient(135deg, var(--purple), var(--pink));
  color: #fff; font-size: 1.4rem; font-weight: 900;
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 0 22px rgba(168,85,247,.45);
}
.rp-creator-name { font-size: 1.2rem; font-weight: 800; color: var(--text); }
.rp-sub { font-size: .82rem; color: var(--muted); margin-top: .1rem; }

.rp-stats {
  display: flex; align-items: center; gap: .8rem;
  background: rgba(168,85,247,.06); border: 1px solid rgba(168,85,247,.15);
  border-radius: var(--r-sm); padding: .85rem 1rem;
}
.rp-stat { flex: 1; text-align: center; }
.rp-stat-val {
  display: block; font-size: 1.4rem; font-weight: 900;
  background: linear-gradient(135deg, var(--purple), var(--cyan));
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.rp-stat-lbl {
  font-size: .68rem; color: var(--muted); font-weight: 700;
  text-transform: uppercase; letter-spacing: .07em;
}
.rp-stat-divider { width: 1px; height: 36px; background: var(--border); }

.rp-section { padding: 1.3rem 1.5rem; border-bottom: 1px solid var(--border); }
.rp-share-section { background: rgba(168,85,247,.03); }
.rp-section-title {
  font-size: .72rem; font-weight: 800; text-transform: uppercase;
  letter-spacing: .1em; color: var(--muted); margin-bottom: .85rem;
}

/* ── Podium ───────────────────────────────────────────── */
.podium-stage {
  background: linear-gradient(135deg, rgba(139,92,246,.12), rgba(6,182,212,.08));
  border: 1px solid rgba(139,92,246,.2);
  border-radius: var(--r-md); padding: 2.2rem .75rem .9rem;
  display: flex; align-items: flex-end; justify-content: center;
  gap: .5rem; margin-bottom: 1rem; position: relative;
}
.pod-card {
  flex: 1; max-width: 110px; border-radius: var(--r-sm);
  background: rgba(255,255,255,.03);
  border: 1px solid rgba(148,163,184,.12);
  display: flex; flex-direction: column; align-items: center;
  padding: .6rem .4rem .65rem; text-align: center;
  color: var(--text); position: relative;
  transition: transform .2s;
}
.pod-card:hover { transform: translateY(-4px); }
.pod-1 {
  min-height: 148px;
  background: rgba(168,85,247,.1);
  border-color: rgba(168,85,247,.3);
  box-shadow: 0 0 24px rgba(168,85,247,.18);
}
.pod-2, .pod-3 { min-height: 115px; }
.pod-crown {
  position: absolute; top: -1.7rem; font-size: 1.4rem; line-height: 1;
  filter: drop-shadow(0 0 10px rgba(245,158,11,.65));
  animation: float 2.2s ease-in-out infinite;
}
.pod-avatar {
  width: 42px; height: 42px; border-radius: 50%;
  font-size: 1.15rem; font-weight: 900; color: #fff;
  display: flex; align-items: center; justify-content: center;
  margin-bottom: .4rem; box-shadow: 0 0 14px rgba(0,0,0,.35);
}
.pod-avatar-empty { background: rgba(148,163,184,.1) !important; font-size: 1.2rem; }
.pod-name  { font-size: .72rem; font-weight: 700; word-break: break-word;
             margin-bottom: .2rem; line-height: 1.2; color: var(--text); }
.pod-score { font-size: .68rem; color: var(--muted); margin-bottom: .45rem; }
.pod-bar   { width: 100%; height: 4px; background: rgba(148,163,184,.1);
             border-radius: 2px; overflow: hidden; }
.pod-bar-fill { height: 100%; border-radius: 2px; opacity: .9; }

/* ── Results table ────────────────────────────────────── */
.rp-table { border: 1px solid var(--border); border-radius: var(--r-sm); overflow: hidden; }
.rp-table-head {
  display: grid; grid-template-columns: 28px 1fr 52px 70px;
  gap: .5rem; padding: .5rem .8rem;
  background: rgba(168,85,247,.1);
  font-size: .68rem; font-weight: 700;
  text-transform: uppercase; letter-spacing: .07em; color: var(--muted);
}
.rp-table-row {
  display: grid; grid-template-columns: 28px 1fr 52px 70px;
  gap: .5rem; padding: .55rem .8rem;
  font-size: .86rem; align-items: center;
  border-top: 1px solid var(--border);
  transition: background .15s;
}
.rp-table-row:hover { background: rgba(168,85,247,.05); }
.rp-rank   { font-weight: 800; color: var(--purple); }
.rp-tname  { font-weight: 600; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.rp-tscore { font-weight: 700; color: var(--cyan); font-size: .82rem; }
.rp-tbar   { height: 6px; background: rgba(148,163,184,.1); border-radius: 3px; overflow: hidden; }
.rp-tbar-fill {
  display: block; height: 100%;
  background: linear-gradient(90deg, var(--purple), var(--cyan));
  border-radius: 3px;
}
.rp-empty {
  text-align: center; color: var(--muted);
  padding: 2rem 0; font-size: .9rem; line-height: 1.6;
}

/* ── Footer ───────────────────────────────────────────── */
.rp-footer { padding: 1.2rem 1.5rem; display: flex; flex-direction: column; gap: .65rem; }
.rp-invite-btn {
  display: block; width: 100%; padding: .9rem;
  background: linear-gradient(135deg, var(--purple), var(--pink));
  color: #fff; font-weight: 800; font-size: .95rem;
  text-align: center; text-decoration: none; border-radius: var(--r-sm);
  box-shadow: 0 4px 22px rgba(168,85,247,.35); transition: all .2s;
}
.rp-invite-btn:hover { box-shadow: 0 6px 30px rgba(168,85,247,.5); transform: translateY(-2px); }
.rp-delete-btn {
  display: block; width: 100%; padding: .7rem;
  background: transparent; border: 1px solid rgba(148,163,184,.12);
  color: var(--muted); font-size: .85rem; font-weight: 600;
  border-radius: var(--r-sm); cursor: pointer; font-family: inherit;
  transition: all .15s;
}
.rp-delete-btn:hover { border-color: rgba(244,63,94,.35); color: var(--rose); }

.empty-board { text-align: center; color: var(--muted); padding: 2.5rem 0; }

/* ── Friend result ────────────────────────────────────── */
.result-inline { text-align: center; animation: slideUp .4s ease; padding: .5rem 0; }
.result-big-emoji {
  font-size: 4.5rem; margin-bottom: .5rem;
  filter: drop-shadow(0 0 22px rgba(168,85,247,.55));
  animation: float 2.5s ease-in-out infinite;
}
.result-inline h2 { font-size: 1.4rem; font-weight: 800; color: var(--text); margin-bottom: .5rem; }
.score-big {
  font-size: 4.2rem; font-weight: 900; line-height: 1; margin: .4rem 0;
  background: linear-gradient(135deg, var(--purple), var(--cyan));
  -webkit-background-clip: text; background-clip: text; color: transparent;
  filter: drop-shadow(0 0 18px rgba(168,85,247,.4));
}
.score-big span {
  font-size: 1.5rem; font-weight: 400;
  color: var(--muted); -webkit-text-fill-color: var(--muted);
}
.score-msg { color: var(--muted); margin: .75rem 0 1.5rem; font-size: .95rem; }

/* ── Loading ──────────────────────────────────────────── */
.loading-state {
  text-align: center; padding: 3.5rem 1rem; color: var(--muted);
}
.spin { font-size: 2.8rem; display: block; margin-bottom: .8rem; animation: spinFloat 2s ease-in-out infinite; }
@keyframes spinFloat {
  0%,100% { transform: translateY(0) rotate(0deg); }
  50%      { transform: translateY(-10px) rotate(180deg); }
}

/* ══════════════════════════════════════════════════════
   RESPONSIVE — Mobile First
   ══════════════════════════════════════════════════════ */

/* ── Fluid typography (applies at all sizes) ─────────── */
.brand-name    { font-size: clamp(1.6rem, 6vw, 2.2rem); }
.question-text { font-size: clamp(.95rem, 3.5vw, 1.15rem); }
.score-big     { font-size: clamp(2.8rem, 12vw, 4.2rem); }
.question-emoji{ font-size: clamp(2.4rem, 8vw, 3.2rem); }

/* ── Touch targets — all interactive ≥ 44px ─────────── */
.option-list-btn  { min-height: 48px; }
.btn              { min-height: 48px; }
.btn-view-result  { min-height: 48px; }
.rp-invite-btn    { min-height: 48px; }
.rp-delete-btn    { min-height: 44px; }
.sg-btn           { min-height: 44px; }
.copy-icon-btn    { width: 40px; height: 40px; }

/* ── ≤ 640px  (all phones + small tablets) ───────────── */
@media (max-width: 640px) {
  .page-center {
    padding: 1.2rem .75rem 4rem;
    align-items: flex-start;
  }
  .card { border-radius: var(--r-md); }

  /* Shrink background orbs so they don't overwhelm */
  body::before { width: 350px; height: 350px; filter: blur(60px); }
  body::after  { width: 300px; height: 300px; filter: blur(55px); }

  /* Result card full-width */
  .rp-card { max-width: 100%; }
}

/* ── ≤ 480px  (standard phones) ─────────────────────── */
@media (max-width: 480px) {

  /* Layout */
  .page-center { padding: .75rem .5rem 3.5rem; }
  .home-inner  { padding: 1.6rem 1.2rem 2rem; }
  .quiz-inner  { padding: 1.1rem .9rem; }

  /* Brand */
  .brand-icon { font-size: 2.8rem; }
  .tagline    { font-size: .88rem; margin-bottom: 1.5rem; }

  /* Features */
  .features        { gap: .45rem; margin-bottom: 1.5rem; }
  .feature-pill    { font-size: .72rem; padding: .28rem .65rem; }

  /* Form */
  .field input[type="text"] { padding: .78rem .85rem; font-size: .95rem; }

  /* Progress dots — tighter */
  .progress-dots   { gap: 5px; margin-bottom: 1.2rem; }
  .dot             { width: 9px; height: 9px; }
  .dot-current     { transform: scale(1.35); }

  /* Question */
  .q-header        { margin-bottom: .7rem; }
  .q-counter       { font-size: .82rem; }
  .btn-skip-sticker{ font-size: .7rem; padding: .22rem .6rem; }
  .question-text   { margin-bottom: 1rem; }

  /* Options */
  .options-list    { gap: .42rem; }
  .option-list-btn { padding: .72rem .85rem; gap: .6rem; }
  .opt-num         { min-width: 26px; height: 26px; font-size: .72rem; }
  .opt-emoji       { font-size: 1.2rem; }
  .opt-text        { font-size: .84rem; }
  .opt-arrow       { font-size: 1rem; }

  /* Share panel */
  .share-ready-title { font-size: 1.25rem; }
  .url-row           { padding: .28rem .28rem .28rem .7rem; }
  .url-input         { font-size: .75rem; }
  .share-grid        { gap: .4rem; }
  .sg-btn            { font-size: .76rem; padding: .55rem .35rem; gap: .3rem; }

  /* Result page header */
  .rp-header        { padding: 1.1rem 1rem .9rem; }
  .rp-creator-row   { gap: .7rem; margin-bottom: .8rem; }
  .rp-avatar        { width: 44px; height: 44px; font-size: 1.2rem; }
  .rp-creator-name  { font-size: 1rem; }
  .rp-stats         { padding: .65rem .75rem; gap: .5rem; }
  .rp-stat-val      { font-size: 1.15rem; }

  /* Section padding */
  .rp-section       { padding: 1rem 1rem; }
  .rp-footer        { padding: 1rem 1rem; }

  /* Podium — compact */
  .podium-stage {
    padding: 2rem .4rem .75rem;
    gap: .35rem;
  }
  .pod-card    { max-width: 95px; padding: .5rem .3rem .55rem; }
  .pod-1       { min-height: 128px; }
  .pod-2,.pod-3{ min-height: 100px; }
  .pod-avatar  { width: 34px; height: 34px; font-size: 1rem; }
  .pod-name    { font-size: .65rem; }
  .pod-score   { font-size: .62rem; }
  .pod-crown   { font-size: 1.2rem; top: -1.4rem; }

  /* Results table */
  .rp-table-head,
  .rp-table-row { grid-template-columns: 22px 1fr 46px 55px; gap: .35rem; padding: .45rem .65rem; }
  .rp-table-head{ font-size: .62rem; }
  .rp-table-row { font-size: .8rem; }

  /* Friend result */
  .result-big-emoji { font-size: 3.5rem; }
  .result-inline h2 { font-size: 1.2rem; }
  .score-msg        { font-size: .88rem; }
}

/* ── ≤ 360px  (very small phones — Galaxy A, iPhone SE) ─ */
@media (max-width: 360px) {
  .page-center { padding: .5rem .4rem 3rem; }
  .home-inner  { padding: 1.2rem .9rem 1.6rem; }
  .quiz-inner  { padding: .9rem .75rem; }

  .brand-name  { font-size: 1.5rem; }
  .brand-icon  { font-size: 2.4rem; }

  /* Hide option arrow on very small to save space */
  .opt-arrow   { display: none; }
  .option-list-btn { padding: .68rem .7rem; }

  /* Podium ultra compact */
  .pod-card    { max-width: 82px; padding: .4rem .2rem .45rem; }
  .pod-avatar  { width: 30px; height: 30px; font-size: .9rem; }
  .pod-name    { font-size: .6rem; }
  .pod-crown   { font-size: 1rem; }
  .pod-1       { min-height: 110px; }
  .pod-2,.pod-3{ min-height: 88px; }

  /* Table — hide match bar column, show score only */
  .rp-table-head,
  .rp-table-row { grid-template-columns: 20px 1fr 42px; }
  .rp-table-head span:last-child,
  .rp-tbar      { display: none; }

  /* Share buttons — icon only row on very small */
  .sg-btn       { font-size: .7rem; padding: .5rem .25rem; gap: .2rem; }

  .share-ready-title { font-size: 1.1rem; }

  .progress-header { font-size: .65rem; letter-spacing: .06em; }
}

/* ── Landscape phones ─────────────────────────────────── */
@media (max-height: 500px) and (orientation: landscape) {
  .page-center   { padding: .5rem 1rem 2rem; align-items: flex-start; }
  .home-inner    { padding: 1rem 1.5rem 1.5rem; }
  .quiz-inner    { padding: .8rem 1.2rem; }
  .question-emoji{ font-size: 2rem; margin-bottom: .35rem; animation: none; }
  .brand-icon    { font-size: 2rem; animation: none; }
  body::before, body::after { opacity: .25; }
}

/* ── Safe area (notched phones) ───────────────────────── */
@supports (padding: env(safe-area-inset-bottom)) {
  .page-center {
    padding-bottom: calc(3.5rem + env(safe-area-inset-bottom));
    padding-left:   max(.75rem, env(safe-area-inset-left));
    padding-right:  max(.75rem, env(safe-area-inset-right));
  }
}
