/* try-mission.css — private layout for /try/mission preview shell */

body.try-mission-page {
  background: var(--bg-base, #0a0a12);
  font-family: 'Outfit', system-ui, sans-serif;
  color: var(--fg, #f1f5f9);
}

.tm-shell {
  max-width: 880px;
  margin: 0 auto;
  padding: 56px 24px 80px;
}

/* ── Hero ────────────────────────────────────────────────────────────── */
.tm-hero {
  text-align: center;
  margin-bottom: 56px;
}

.tm-hero-badge {
  display: inline-block;
  background: rgba(245, 158, 11, 0.15);
  border: 1px solid rgba(245, 158, 11, 0.4);
  color: #f59e0b;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.16em;
  padding: 6px 14px;
  border-radius: 20px;
  margin-bottom: 24px;
  text-transform: uppercase;
}

.tm-hero-title {
  font-size: clamp(2rem, 5vw, 2.75rem);
  font-weight: 800;
  line-height: 1.15;
  margin: 0 0 16px;
  letter-spacing: -0.01em;
}

.tm-glow {
  background: linear-gradient(135deg, #f59e0b, #ef4444);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.tm-hero-sub {
  font-size: 1.15rem;
  color: var(--fg-muted, #94a3b8);
  margin-bottom: 24px;
}

.tm-hero-desc {
  font-size: 1rem;
  color: var(--fg-muted, #94a3b8);
  line-height: 1.65;
  max-width: 720px;
  margin: 0 auto 32px;
}

.tm-hero-btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: linear-gradient(135deg, #f59e0b 0%, #ef4444 100%);
  border: none;
  border-radius: 30px;
  padding: 16px 36px;
  font-family: inherit;
  font-size: 1.05rem;
  font-weight: 700;
  color: #fff;
  cursor: pointer;
  letter-spacing: 0.02em;
  box-shadow: 0 0 32px rgba(245, 158, 11, 0.35), 0 6px 18px rgba(0, 0, 0, 0.4);
  transition: opacity 0.2s, transform 0.2s;
}
.tm-hero-btn:hover { opacity: 0.92; transform: translateY(-2px); }

.tm-hero-meta {
  margin-top: 24px;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 16px;
  font-size: 0.92rem;
  color: var(--fg-muted, #94a3b8);
}

/* ── Progress bar ──────────────────────────────────────────────────── */
.tm-progress {
  margin-bottom: 24px;
  background: rgba(245, 158, 11, 0.15);
  border-radius: 4px;
  overflow: hidden;
}

.tm-progress-label {
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  color: var(--fg-muted, #94a3b8);
  text-transform: uppercase;
  margin-bottom: 10px;
}

.tm-progress-fill {
  display: block;
  height: 8px;
  background: linear-gradient(90deg, #f59e0b, #ef4444);
  border-radius: 4px;
  width: 25%;
  transition: width 0.3s ease;
}

/* ── Tap-card scene ─────────────────────────────────────────────────── */
.tm-mission {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 16px;
  padding: 32px;
  margin-bottom: 32px;
}

.tm-card {
  background: rgba(255, 255, 255, 0.04);
  border-radius: 14px;
  padding: 28px 24px;
  text-align: center;
}

.tm-card-num {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 800;
  letter-spacing: 0.14em;
  color: #f59e0b;
  text-transform: uppercase;
  background: rgba(245, 158, 11, 0.12);
  padding: 4px 10px;
  border-radius: 12px;
  margin-bottom: 16px;
}

.tm-card-question {
  font-size: 1.25rem;
  font-weight: 600;
  line-height: 1.5;
  margin: 0 0 24px;
  color: var(--fg, #f1f5f9);
}

.tm-card-options {
  display: grid;
  gap: 12px;
}

.tm-card-opt {
  display: flex;
  align-items: center;
  gap: 14px;
  background: rgba(255, 255, 255, 0.05);
  border: 2px solid rgba(255, 255, 255, 0.1);
  border-radius: 12px;
  padding: 16px 18px;
  font-family: inherit;
  font-size: 1rem;
  font-weight: 500;
  text-align: left;
  color: var(--fg, #f1f5f9);
  cursor: pointer;
  transition: all 0.18s ease;
  min-height: 64px;
}
.tm-card-opt:hover {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(245, 158, 11, 0.4);
  transform: translateY(-1px);
}
.tm-card-opt.selected {
  background: rgba(245, 158, 11, 0.15);
  border-color: #f59e0b;
}

.tm-card-opt-letter {
  flex-shrink: 0;
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, #f59e0b, #ef4444);
  color: #fff;
  border-radius: 50%;
  font-weight: 800;
  font-size: 0.95rem;
}

/* ── Card navigation ───────────────────────────────────────────────── */
.tm-card-nav {
  display: flex;
  justify-content: space-between;
  margin-top: 24px;
  gap: 12px;
}

.tm-btn-prev, .tm-btn-next, .tm-btn-finish {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: var(--fg, #f1f5f9);
  font-family: inherit;
  font-size: 0.95rem;
  font-weight: 600;
  padding: 12px 22px;
  border-radius: 10px;
  cursor: pointer;
  transition: opacity 0.2s;
}
.tm-btn-prev:hover, .tm-btn-next:hover, .tm-btn-finish:hover { opacity: 0.85; }
.tm-btn-prev:disabled, .tm-btn-next:disabled {
  opacity: 0.35;
  cursor: not-allowed;
}
.tm-btn-finish {
  background: linear-gradient(135deg, #f59e0b, #ef4444);
  border-color: transparent;
  color: #fff;
}

/* ── Already-completed gating ──────────────────────────────────────── */
.tm-already-card {
  background: rgba(34, 197, 94, 0.08);
  border: 1px solid rgba(34, 197, 94, 0.3);
  border-radius: 16px;
  padding: 40px 28px;
  text-align: center;
}

.tm-already-emoji { font-size: 3rem; margin-bottom: 12px; }

.tm-already-title {
  font-size: 1.5rem;
  font-weight: 800;
  margin: 0 0 12px;
}

.tm-already-desc {
  color: var(--fg-muted, #94a3b8);
  line-height: 1.6;
  margin-bottom: 24px;
  max-width: 540px;
  margin-left: auto;
  margin-right: auto;
}

.tm-already-link {
  display: inline-block;
  background: rgba(34, 197, 94, 0.18);
  border: 1px solid rgba(34, 197, 94, 0.5);
  color: #22c55e;
  font-weight: 700;
  text-decoration: none;
  padding: 12px 28px;
  border-radius: 30px;
  transition: background 0.2s;
}
.tm-already-link:hover { background: rgba(34, 197, 94, 0.28); }

/* ── Completion CTA ────────────────────────────────────────────────── */
.tm-complete {
  background: linear-gradient(135deg, rgba(245, 158, 11, 0.06), rgba(239, 68, 68, 0.04));
  border: 1px solid rgba(245, 158, 11, 0.25);
  border-radius: 20px;
  padding: 48px 28px;
  text-align: center;
}

.tm-complete-inner {
  max-width: 720px;
  margin: 0 auto;
}

.tm-complete-badge {
  display: inline-block;
  background: rgba(245, 158, 11, 0.15);
  border: 1px solid rgba(245, 158, 11, 0.4);
  color: #f59e0b;
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.16em;
  padding: 6px 16px;
  border-radius: 20px;
  margin-bottom: 20px;
  text-transform: uppercase;
}

.tm-complete-title {
  font-size: clamp(1.75rem, 4vw, 2.4rem);
  font-weight: 800;
  margin: 0 0 16px;
}

.tm-xp {
  background: linear-gradient(135deg, #f59e0b, #ef4444);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.tm-complete-value {
  font-size: 1.05rem;
  color: var(--fg-muted, #94a3b8);
  line-height: 1.65;
  margin: 0 0 32px;
}

.tm-complete-stats {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 24px;
  margin: 0 auto 36px;
  flex-wrap: wrap;
}

.tm-complete-stat { text-align: center; }
.tm-complete-stat-num {
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--fg, #f1f5f9);
}
.tm-complete-stat-lbl {
  font-size: 0.78rem;
  color: var(--fg-dim, #64748b);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-top: 4px;
}

.tm-complete-stat-divider {
  width: 1px;
  height: 32px;
  background: rgba(255, 255, 255, 0.12);
}

.tm-complete-cta-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
  margin: 0 auto 32px;
}

.tm-complete-cta {
  display: block;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 14px;
  padding: 24px 22px;
  text-align: left;
  text-decoration: none;
  color: inherit;
  transition: all 0.2s;
}
.tm-complete-cta:hover {
  transform: translateY(-3px);
  border-color: #f59e0b;
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.4);
}

.tm-complete-cta-tag {
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  color: #f59e0b;
  margin-bottom: 8px;
}

.tm-complete-cta-title {
  font-size: 1.15rem;
  font-weight: 800;
  margin-bottom: 8px;
}

.tm-complete-cta-desc {
  font-size: 0.88rem;
  color: var(--fg-muted, #94a3b8);
  line-height: 1.55;
  margin-bottom: 14px;
}

.tm-complete-cta-link {
  font-size: 0.95rem;
  font-weight: 700;
  color: #f59e0b;
}

.tm-complete-login {
  font-size: 0.92rem;
  color: var(--fg-dim, #64748b);
  margin: 0;
}
.tm-complete-login a { color: var(--fg, #f1f5f9); text-decoration: none; }
.tm-complete-login a:hover { text-decoration: underline; }

/* ── Mobile (<768px) ───────────────────────────────────────────────── */
@media (max-width: 768px) {
  .tm-shell { padding: 32px 16px 60px; }
  .tm-mission { padding: 24px 18px; }
  .tm-card { padding: 24px 18px; }
  .tm-card-question { font-size: 1.1rem; }
  .tm-card-opt { font-size: 0.95rem; min-height: 56px; padding: 14px 14px; }
  .tm-complete-cta-grid { grid-template-columns: 1fr; }
  .tm-complete-stats { gap: 16px; }
  .tm-complete-stat-divider { display: none; }
}
