/* ====== CSS Variables - 都市夜感配色 ====== */
:root {
  --bg-main: #0F1220;
  --bg-panel: #171A2B;
  --bg-card: rgba(255, 255, 255, 0.04);
  --bg-card-hover: rgba(255, 255, 255, 0.07);
  --accent: #FF5C8A;
  --accent2: #B56CFF;
  --accent-gold: #F4C27A;
  --text-main: #F5F7FA;
  --text-sub: #A8B0C0;
  --text-dim: rgba(168, 176, 192, 0.5);
  --border: rgba(255, 255, 255, 0.08);
  --border-accent: rgba(255, 92, 138, 0.4);
  --gradient-accent: linear-gradient(135deg, #FF5C8A, #B56CFF);
  --gradient-accent-glow: linear-gradient(135deg, rgba(255,92,138,0.15), rgba(181,108,255,0.15));
  --font-title: 'Noto Serif SC', 'Songti SC', Georgia, serif;
  --font-body: -apple-system, 'PingFang SC', system-ui, sans-serif;
  --radius-xl: 24px;
  --radius-lg: 20px;
  --radius-md: 14px;
  --max-width: 420px;
}

/* ====== Reset ====== */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
html { font-size: 16px; -webkit-text-size-adjust: 100%; }
body {
  font-family: var(--font-body);
  background: var(--bg-main);
  color: var(--text-main);
  min-height: 100vh;
  min-height: 100dvh;
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

/* ====== App Container ====== */
#app {
  max-width: var(--max-width);
  margin: 0 auto;
  min-height: 100vh;
  min-height: 100dvh;
  position: relative;
}

/* ====== Page Sections ====== */
.page {
  display: none;
  padding: 0 24px;
  min-height: 100vh;
  min-height: 100dvh;
}
.page.active {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  animation: fadeIn 0.5s ease forwards;
  padding-top: 24px;
  padding-bottom: 24px;
}

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(16px); }
  to { opacity: 1; transform: translateY(0); }
}

/* ============================================
   LANDING PAGE
   ============================================ */
.landing-content {
  text-align: center;
  width: 100%;
}

.landing-tag {
  display: inline-block;
  padding: 6px 18px;
  border: 1px solid var(--border);
  border-radius: 50px;
  font-size: 0.72rem;
  color: var(--text-sub);
  letter-spacing: 2px;
  margin-bottom: 28px;
  background: rgba(255,255,255,0.03);
}

.landing-title {
  font-family: var(--font-title);
  font-size: 1.75rem;
  font-weight: 700;
  line-height: 1.35;
  margin-bottom: 14px;
  white-space: nowrap;
  color: var(--text-main);
}

.landing-subtitle {
  font-size: 0.92rem;
  color: var(--text-sub);
  margin-bottom: 32px;
  line-height: 1.7;
}

/* 主视觉区域 - Spine 角色群 */
.landing-visual {
  width: 100%;
  height: 280px;
  margin: 0 auto 24px;
  border-radius: var(--radius-xl);
  background: var(--bg-panel);
  border: 1px solid var(--border);
  position: relative;
  overflow: hidden;
}

#landing-spine-canvas {
  width: 100%;
  height: 100%;
  display: block;
}

.landing-visual-overlay {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    radial-gradient(ellipse at 50% 30%, rgba(181,108,255,0.06) 0%, transparent 60%),
    linear-gradient(to top, var(--bg-panel) 0%, transparent 25%),
    linear-gradient(to bottom, var(--bg-panel) 0%, transparent 15%);
}

/* Spine Loading Animation */
.spine-loader {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 16px;
  background: var(--bg-panel);
  z-index: 10;
  transition: opacity 0.5s ease, visibility 0.5s ease;
}
.spine-loader.hidden {
  opacity: 0;
  visibility: hidden;
}
.spine-loader-heart {
  width: 28px;
  height: 28px;
  position: relative;
}
.spine-loader-heart::before,
.spine-loader-heart::after {
  content: '';
  position: absolute;
  width: 14px;
  height: 22px;
  background: var(--accent);
  border-radius: 14px 14px 0 0;
}
.spine-loader-heart::before {
  left: 14px;
  transform: rotate(-45deg);
  transform-origin: 0 100%;
}
.spine-loader-heart::after {
  left: 0;
  transform: rotate(45deg);
  transform-origin: 100% 100%;
}
.spine-loader-heart {
  animation: heartbeat 1s ease-in-out infinite;
}
@keyframes heartbeat {
  0%, 100% { transform: scale(1); }
  30% { transform: scale(1.2); }
  50% { transform: scale(1); }
  70% { transform: scale(1.15); }
}
.spine-loader-text {
  font-size: 13px;
  color: var(--text-muted);
  letter-spacing: 1px;
}

/* Buttons */
.btn-primary {
  display: block;
  width: 100%;
  max-width: 300px;
  margin: 0 auto;
  padding: 16px 32px;
  border: none;
  border-radius: 50px;
  font-size: 1.05rem;
  font-weight: 600;
  letter-spacing: 1px;
  cursor: pointer;
  transition: all 0.3s ease;
  background: var(--gradient-accent);
  color: #fff;
  box-shadow: 0 4px 24px rgba(255, 92, 138, 0.3);
}
.btn-primary:active { transform: scale(0.97); opacity: 0.9; }

/* 测试承诺信息条 */
.landing-info-strip {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0;
  margin: 0 auto 16px;
  padding: 14px 0;
  border-radius: var(--radius-md);
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border);
  width: 100%;
  max-width: 300px;
}

.landing-info-item {
  flex: 1;
  text-align: center;
}

.landing-info-num {
  font-family: var(--font-title);
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--accent);
  display: block;
  line-height: 1.2;
}

.landing-info-label {
  font-size: 0.68rem;
  color: var(--text-dim);
}

.landing-info-divider {
  width: 1px;
  height: 28px;
  background: var(--border);
}

.landing-desc {
  font-size: 0.76rem;
  color: var(--text-dim);
  text-align: center;
  line-height: 1.6;
  margin-bottom: 24px;
  padding: 0 12px;
}

.landing-tip {
  font-size: 0.72rem;
  color: var(--text-dim);
  margin-top: 16px;
}

/* ============================================
   BRANCH PAGE
   ============================================ */
.branch-content {
  text-align: center;
  width: 100%;
}

.branch-title {
  font-family: var(--font-title);
  font-size: 1.45rem;
  font-weight: 600;
  margin-bottom: 40px;
  color: var(--text-main);
}

.branch-options {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.branch-option {
  width: 100%;
  padding: 24px;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  background: var(--bg-panel);
  color: var(--text-main);
  font-size: 1.05rem;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.3s ease;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.branch-option::before {
  content: '';
  position: absolute;
  inset: 0;
  background: var(--gradient-accent-glow);
  opacity: 0;
  transition: opacity 0.3s;
}
.branch-option:active::before { opacity: 1; }
.branch-option:active {
  border-color: var(--accent);
  transform: scale(0.98);
}

/* ============================================
   QUESTION PAGE
   ============================================ */
.question-content {
  width: 100%;
  padding-top: 72px;
}

/* Progress */
.progress-bar-wrap {
  position: fixed;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 100%;
  max-width: var(--max-width);
  z-index: 100;
  padding: 16px 24px 12px;
  background: rgba(15, 18, 32, 0.95);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

.progress-status {
  display: inline-block;
  padding: 4px 12px;
  border: 1px solid var(--border);
  border-radius: 50px;
  font-size: 0.7rem;
  color: var(--text-sub);
  margin-bottom: 8px;
  background: rgba(255,255,255,0.03);
}

.progress-info {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 8px;
}

.progress-label {
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--text-sub);
}

.progress-track {
  height: 3px;
  background: rgba(255, 255, 255, 0.06);
  border-radius: 2px;
  overflow: hidden;
}

.progress-fill {
  height: 100%;
  background: var(--gradient-accent);
  border-radius: 2px;
  transition: width 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Question */
.question-title {
  font-family: var(--font-title);
  font-size: 1.4rem;
  font-weight: 700;
  line-height: 1.5;
  margin-bottom: 8px;
  color: var(--text-main);
}

.question-hint {
  font-size: 0.78rem;
  color: var(--text-dim);
  margin-bottom: 28px;
}

.question-options {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.question-option {
  width: 100%;
  padding: 18px 20px;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  background: var(--bg-panel);
  color: var(--text-main);
  font-size: 0.93rem;
  line-height: 1.5;
  cursor: pointer;
  transition: all 0.25s ease;
  text-align: left;
  display: flex;
  align-items: flex-start;
  gap: 12px;
  position: relative;
  overflow: hidden;
}
.question-option::before {
  content: '';
  position: absolute;
  inset: 0;
  background: var(--gradient-accent-glow);
  opacity: 0;
  transition: opacity 0.25s;
}

.option-key {
  flex-shrink: 0;
  width: 28px;
  height: 28px;
  border-radius: 8px;
  background: rgba(255,255,255,0.06);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--text-sub);
  position: relative;
  z-index: 1;
  transition: all 0.25s;
}

.option-text {
  position: relative;
  z-index: 1;
  padding-top: 3px;
}

.question-option.selected {
  border-color: var(--accent);
  box-shadow: 0 0 24px rgba(255, 92, 138, 0.12);
}
.question-option.selected::before { opacity: 1; }
.question-option.selected .option-key {
  background: var(--accent);
  color: #fff;
}

/* ============================================
   RESULT PAGE
   ============================================ */
.result-page {
  justify-content: flex-start !important;
  padding: 0 !important;
  min-height: auto !important;
}

/* Share Card - 截图核心区域 */
.share-card {
  width: 100%;
  background: linear-gradient(180deg, #0F1220 0%, #171A2B 50%, #0F1220 100%);
  padding: 36px 24px 28px;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.share-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 300px;
  background: radial-gradient(ellipse at 50% 0%, rgba(255,92,138,0.06) 0%, transparent 70%);
  pointer-events: none;
}

.result-label {
  display: inline-block;
  padding: 4px 14px;
  border: 1px solid var(--border);
  border-radius: 50px;
  font-size: 0.68rem;
  color: var(--text-dim);
  letter-spacing: 3px;
  margin-bottom: 18px;
  background: rgba(255,255,255,0.02);
  position: relative;
}

.result-title {
  font-family: var(--font-title);
  font-size: 1.55rem;
  font-weight: 700;
  line-height: 1.4;
  margin-bottom: 10px;
  color: var(--text-main);
  position: relative;
}

.result-subtitle {
  font-size: 0.85rem;
  color: var(--text-sub);
  line-height: 1.7;
  margin-bottom: 20px;
  position: relative;
  padding: 0 8px;
}

.result-tags {
  display: flex;
  justify-content: center;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 20px;
  position: relative;
}

.result-tag {
  padding: 4px 14px;
  border: 1px solid rgba(255, 92, 138, 0.25);
  border-radius: 50px;
  font-size: 0.7rem;
  color: var(--accent);
  background: rgba(255, 92, 138, 0.06);
}

/* Spine 角色容器 */
.character-container {
  width: 92%;
  max-width: 360px;
  height: 520px;
  cursor: pointer;
  margin: 0 auto 24px;
  border-radius: var(--radius-xl);
  background: var(--bg-panel);
  border: 1px solid var(--border);
  position: relative;
  overflow: hidden;
}

.character-container::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at 50% 60%, rgba(181,108,255,0.06) 0%, transparent 70%);
  pointer-events: none;
}

.character-container::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  right: 0;
  height: 80px;
  background: linear-gradient(to top, var(--bg-panel), transparent);
  pointer-events: none;
  z-index: 2;
}

#spine-canvas {
  width: 100%;
  height: 100%;
  display: block;
  position: relative;
  z-index: 1;
}

/* fallback 静态图 */
.character-fallback {
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center top;
  display: none;
  position: absolute;
  inset: 0;
  z-index: 1;
  padding: 20px;
}

.character-container.fallback-mode .character-fallback {
  display: block;
}
.character-container.fallback-mode #spine-canvas {
  display: none;
}

/* 角色名 */
.character-name {
  font-family: var(--font-title);
  font-size: 1.65rem;
  font-weight: 700;
  color: var(--text-main);
  margin-bottom: 6px;
  position: relative;
}

.character-style-note {
  font-size: 0.78rem;
  color: var(--text-dim);
  margin-bottom: 24px;
  position: relative;
}

/* 传播短句 */
.share-quote-wrap {
  max-width: 340px;
  margin: 0 auto;
  padding: 16px 20px;
  border-radius: var(--radius-md);
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border);
  position: relative;
}

.share-quote {
  font-family: var(--font-title);
  font-size: 0.92rem;
  font-style: italic;
  color: var(--text-main);
  line-height: 1.8;
}

.share-card-watermark {
  font-size: 0.6rem;
  color: var(--text-dim);
  margin-top: 20px;
  letter-spacing: 2px;
  position: relative;
}

/* 保存按钮区域 */
.share-action {
  width: 100%;
  padding: 24px 24px 8px;
  text-align: center;
}

.btn-save {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  max-width: 300px;
  padding: 14px 32px;
  border: 1px solid var(--accent);
  border-radius: 50px;
  background: rgba(255, 92, 138, 0.08);
  color: var(--accent);
  font-size: 0.95rem;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.3s ease;
}
.btn-save:active { background: rgba(255, 92, 138, 0.2); transform: scale(0.97); }
.btn-save:disabled { opacity: 0.5; cursor: not-allowed; }

/* ====== Profile Bars - 吸引力画像 ====== */
.profile-section {
  width: 100%;
  padding: 28px 24px 8px;
}

.section-header {
  font-family: var(--font-title);
  font-size: 1rem;
  font-weight: 600;
  color: var(--text-main);
  margin-bottom: 20px;
  padding-left: 12px;
  border-left: 2px solid var(--accent);
}

.profile-bars {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.profile-bar-item {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.profile-bar-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.profile-bar-title {
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--text-main);
}

.profile-bar-level {
  padding: 2px 10px;
  border-radius: 50px;
  font-size: 0.68rem;
  font-weight: 600;
  color: var(--accent);
  background: rgba(255, 92, 138, 0.08);
  border: 1px solid rgba(255, 92, 138, 0.15);
}

.profile-bar-track {
  height: 4px;
  background: rgba(255, 255, 255, 0.06);
  border-radius: 2px;
  overflow: hidden;
}

.profile-bar-fill {
  height: 100%;
  border-radius: 2px;
  background: var(--gradient-accent);
  transition: width 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

.profile-bar-desc {
  font-size: 0.76rem;
  color: var(--text-dim);
  line-height: 1.5;
}

/* ====== Summary Cards - 结构化卡片 ====== */
.summary-cards {
  width: 100%;
  padding: 20px 24px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.summary-card {
  padding: 18px;
  border-radius: var(--radius-md);
  background: var(--bg-panel);
  border: 1px solid var(--border);
}

.summary-card-title {
  font-size: 0.72rem;
  color: var(--text-dim);
  margin-bottom: 8px;
  letter-spacing: 1px;
}

.summary-card-value {
  font-family: var(--font-title);
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--accent);
  margin-bottom: 8px;
  line-height: 1.4;
}

.summary-card-desc {
  font-size: 0.8rem;
  color: var(--text-sub);
  line-height: 1.7;
}

/* ====== Secondary Result - 次高倾向 ====== */
.secondary-result {
  width: 100%;
  padding: 0 24px 8px;
}

.secondary-result-inner {
  padding: 18px;
  border-radius: var(--radius-md);
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid var(--border);
}

.secondary-result-label {
  font-size: 0.72rem;
  color: var(--text-dim);
  margin-bottom: 8px;
  letter-spacing: 1px;
}

.secondary-result-name {
  font-family: var(--font-title);
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--accent2);
  margin-bottom: 6px;
}

.secondary-result-desc {
  font-size: 0.8rem;
  color: var(--text-sub);
  line-height: 1.7;
}

/* Result Detail Sections */
.result-detail {
  width: 100%;
  padding: 8px 24px 0;
}

/* --- 形式1: 爽点高亮卡 --- */
.result-highlight-card {
  padding: 20px;
  margin-bottom: 20px;
  border-radius: var(--radius-md);
  background: linear-gradient(135deg, rgba(255,92,138,0.08), rgba(181,108,255,0.06));
  border: 1px solid rgba(255,92,138,0.15);
  position: relative;
}

.result-highlight-icon {
  font-size: 1.1rem;
  color: var(--accent);
  margin-bottom: 8px;
}

.result-highlight-title {
  font-family: var(--font-title);
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--accent);
  margin-bottom: 12px;
}

.result-highlight-text {
  font-size: 0.88rem;
  color: var(--text-main);
  line-height: 1.85;
}

/* --- 形式2: 常规段落 --- */
.result-section {
  padding: 20px 0;
  border-bottom: 1px solid var(--border);
}

.result-section-title {
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--accent);
  margin-bottom: 10px;
}

.result-section-text {
  font-size: 0.88rem;
  color: var(--text-sub);
  line-height: 1.8;
}

/* --- 形式3: 警示卡（低调区分） --- */
.result-warn-card {
  padding: 18px;
  margin-top: 20px;
  margin-bottom: 16px;
  border-radius: var(--radius-md);
  background: var(--bg-panel);
  border: 1px solid var(--border);
}

.result-warn-header {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 10px;
}

.result-warn-icon {
  font-size: 0.8rem;
  opacity: 0.6;
}

.result-warn-title {
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--text-main);
}

.result-warn-text {
  font-size: 0.88rem;
  color: var(--text-sub);
  line-height: 1.8;
}

/* --- 形式4: 总结建议卡（低调区分） --- */
.result-tip-card {
  padding: 18px;
  margin-bottom: 8px;
  border-radius: var(--radius-md);
  background: var(--bg-panel);
  border: 1px solid var(--border);
}

.result-tip-title {
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--text-main);
  margin-bottom: 10px;
}

.result-tip-text {
  font-size: 0.88rem;
  color: var(--text-sub);
  line-height: 1.8;
}

/* Retest */
.retest-wrap {
  width: 100%;
  padding: 20px 24px 48px;
  text-align: center;
}

.btn-retest {
  padding: 10px 28px;
  border: 1px solid var(--border);
  border-radius: 50px;
  background: transparent;
  color: var(--text-dim);
  font-size: 0.8rem;
  cursor: pointer;
  transition: all 0.3s;
}
.btn-retest:active { border-color: var(--text-sub); color: var(--text-sub); }

.landing-redeem-hint {
  font-size: 0.68rem;
  color: var(--text-dim);
  margin-top: 10px;
  margin-bottom: 40px;
}
.landing-redeem-hint.clickable {
  cursor: pointer;
  text-decoration: underline;
  text-underline-offset: 3px;
}

/* ============================================
   REDEEM CODE MODAL
   ============================================ */
.redeem-modal {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 900;
  justify-content: center;
  align-items: center;
}
.redeem-modal.active { display: flex; }

.redeem-modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.75);
}

.redeem-modal-content {
  position: relative;
  width: calc(100% - 48px);
  max-width: 340px;
  padding: 32px 24px 24px;
  border-radius: var(--radius-xl);
  background: var(--bg-panel);
  border: 1px solid var(--border);
  text-align: center;
  animation: fadeIn 0.3s ease;
}

.redeem-modal-title {
  font-family: var(--font-title);
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--text-main);
  margin-bottom: 8px;
}

.redeem-modal-desc {
  font-size: 0.78rem;
  color: var(--text-dim);
  margin-bottom: 24px;
  line-height: 1.5;
}

.redeem-input {
  width: 100%;
  padding: 14px 16px;
  border-radius: var(--radius-md);
  border: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.04);
  color: var(--text-main);
  font-size: 1rem;
  text-align: center;
  letter-spacing: 2px;
  outline: none;
  transition: border-color 0.25s;
  font-family: var(--font-body);
}
.redeem-input::placeholder {
  color: var(--text-dim);
  letter-spacing: 1px;
}
.redeem-input:focus {
  border-color: var(--accent);
}

.redeem-error {
  font-size: 0.78rem;
  color: var(--accent);
  min-height: 20px;
  margin: 10px 0;
  opacity: 0;
  transition: opacity 0.25s;
}
.redeem-error.show { opacity: 1; }

.redeem-btn {
  width: 100%;
  padding: 14px;
  border: none;
  border-radius: 50px;
  background: var(--gradient-accent);
  color: #fff;
  font-size: 0.95rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s;
  margin-bottom: 12px;
}
.redeem-btn:active { transform: scale(0.97); opacity: 0.9; }
.redeem-btn:disabled { opacity: 0.5; cursor: not-allowed; }

.redeem-close {
  background: none;
  border: none;
  color: var(--text-dim);
  font-size: 0.82rem;
  cursor: pointer;
  padding: 4px 12px;
}

/* ============================================
   SHARE MODAL
   ============================================ */
.share-modal {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 1000;
  background: rgba(0, 0, 0, 0.92);
  justify-content: center;
  align-items: center;
  flex-direction: column;
  padding: 24px;
}
.share-modal.active { display: flex; }

.share-modal-img {
  max-width: 100%;
  max-height: 68vh;
  border-radius: var(--radius-md);
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.5);
}

.share-modal-tip {
  color: var(--text-sub);
  font-size: 0.82rem;
  margin-top: 18px;
}

.share-modal-close {
  margin-top: 16px;
  padding: 10px 28px;
  border: 1px solid var(--border);
  border-radius: 50px;
  background: transparent;
  color: var(--text-dim);
  font-size: 0.82rem;
  cursor: pointer;
}

/* ============================================
   LOADING
   ============================================ */
.loading-wrap {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 500;
  background: var(--bg-main);
  justify-content: center;
  align-items: center;
  flex-direction: column;
  gap: 20px;
}
.loading-wrap.active { display: flex; }

.loading-spinner {
  width: 32px;
  height: 32px;
  border: 2px solid rgba(255, 92, 138, 0.15);
  border-top-color: var(--accent);
  border-radius: 50%;
  animation: spin 0.7s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

.loading-text {
  font-size: 0.82rem;
  color: var(--text-dim);
}

/* ============================================
   RESPONSIVE
   ============================================ */
@media (max-width: 360px) {
  .landing-title { font-size: 1.5rem; }
  .result-title { font-size: 1.35rem; }
  .question-title { font-size: 1.25rem; }
  .character-container { height: 400px; }
}
