/* ══════════════════════════════════════
   SBTI 人格测试 · 样式表
   主色：紫色 #8b5cf6  背景：#0c0a18
   ══════════════════════════════════════ */

* { margin: 0; padding: 0; box-sizing: border-box; }
html { font-size: 16px; }

body {
  min-height: 100vh; min-height: 100dvh;
  background: #0c0a18;
  color: #e0dce8;
  font-family: -apple-system, 'SF Pro Display', 'Helvetica Neue', 'PingFang SC', sans-serif;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

.app { min-height: 100vh; min-height: 100dvh; }

/* ── Screen 切换 ── */
.screen {
  display: none;
  min-height: 100vh; min-height: 100dvh;
  padding: 20px;
  padding-top: calc(env(safe-area-inset-top, 20px) + 20px);
  padding-bottom: calc(env(safe-area-inset-bottom, 20px) + 20px);
}
.screen.active {
  display: flex;
  flex-direction: column;
  animation: fadeIn 0.3s ease;
}
@keyframes fadeIn {
  from { opacity: 0; transform: translateY(8px); }
  to   { opacity: 1; transform: translateY(0); }
}
@keyframes pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.7; }
}

/* ── 全部测试按钮 ── */
.btn-all-tests {
  position: absolute; top: max(env(safe-area-inset-top,0px),16px); left: 16px;
  font-size: 11px; letter-spacing: 1px;
  color: rgba(180,200,220,.7); background: rgba(255,255,255,.08);
  border: 1px solid rgba(255,255,255,.12); border-radius: 20px;
  padding: 8px 14px; text-decoration: none; transition: all .25s; z-index: 10;
}
.btn-all-tests:hover { background: rgba(255,255,255,.15); color: #fff; }

/* ══════ 开始页 ══════ */
#start-screen {
  justify-content: center;
  align-items: center;
}
.start-content {
  max-width: 380px;
  width: 100%;
  text-align: center;
}
.logo {
  width: 88px; height: 88px;
  margin: 0 auto 20px;
  border-radius: 26px;
  background: linear-gradient(135deg, rgba(139,92,246,0.15), rgba(99,102,241,0.08));
  border: 1px solid rgba(139,92,246,0.25);
  display: flex; align-items: center; justify-content: center;
  font-size: 40px; color: #8b5cf6;
  font-weight: 700; font-family: monospace;
}
h1 {
  font-size: 24px; font-weight: 700;
  margin-bottom: 6px; letter-spacing: -0.3px;
}
.subtitle {
  font-size: 12px; color: rgba(180,200,220,0.4);
  font-family: 'Helvetica Neue', system-ui;
  letter-spacing: 2px; margin-bottom: 4px;
}
.sub-desc {
  font-size: 13px; color: rgba(180,200,220,0.35);
  margin-bottom: 22px; line-height: 1.6;
}

.intro-card {
  padding: 16px;
  background: rgba(139,92,246,0.06);
  border: 1px solid rgba(139,92,246,0.12);
  border-radius: 14px;
  margin-bottom: 20px;
  text-align: left;
  font-size: 12px; line-height: 1.8;
  color: rgba(180,200,220,0.5);
}

.features {
  display: flex; flex-direction: column;
  gap: 8px; margin-bottom: 20px;
}
.feature {
  display: flex; align-items: center; gap: 10px;
  padding: 10px 14px;
  background: rgba(255,255,255,0.025);
  border-radius: 10px;
  font-size: 13px; color: rgba(180,200,220,0.6);
}
.feature-icon { font-size: 15px; color: #8b5cf6; opacity: 0.7; }

.info-card {
  background: rgba(255,255,255,0.025);
  border-radius: 14px;
  padding: 12px 18px;
  margin-bottom: 20px;
}
.info-row {
  display: flex; justify-content: space-between;
  padding: 7px 0; font-size: 13px;
}
.info-row:not(:last-child) { border-bottom: 1px solid rgba(255,255,255,0.06); }
.info-label { color: rgba(180,200,220,0.4); }
.info-value { font-weight: 600; }

.btn-start {
  width: 100%; padding: 16px;
  font-size: 16px; font-weight: 600; color: #fff;
  background: linear-gradient(135deg, #8b5cf6, #6366f1);
  border: none; border-radius: 14px;
  cursor: pointer; transition: all 0.3s;
}
.btn-start:active { transform: scale(0.98); opacity: 0.9; }

.start-safe {
  font-size: 11px; color: rgba(180,200,220,0.18);
  margin-top: 12px;
}

/* ══════ 测试页 ══════ */
#test-screen {
  padding-top: calc(env(safe-area-inset-top, 0px) + 56px);
}

.progress-bar {
  position: fixed; top: 0; left: 0; right: 0;
  height: 3px;
  background: rgba(255,255,255,0.06);
  z-index: 100;
}
.progress-fill {
  height: 100%;
  background: linear-gradient(90deg, #8b5cf6, #a78bfa);
  transition: width 0.2s ease;
  width: 0%;
}

.test-top-bar {
  position: fixed;
  top: calc(env(safe-area-inset-top, 0px) + 8px);
  left: 20px; right: 20px;
  display: flex; justify-content: space-between; align-items: center;
  z-index: 100;
}
.dim-tag {
  font-size: 12px; font-weight: 500;
  letter-spacing: 1px;
}
.progress-text {
  font-size: 12px; color: rgba(180,200,220,0.4);
}
#current-q { color: #8b5cf6; font-weight: 600; }

.question-container {
  flex: 1;
  display: flex; flex-direction: column;
  padding-top: 12px;
  max-width: 480px;
  margin: 0 auto;
  width: 100%;
}
.question-text {
  font-size: 17px; font-weight: 600;
  line-height: 1.7; margin-bottom: 28px;
  padding: 0 2px;
}
.options {
  display: flex; flex-direction: column;
  gap: 10px;
}
.option {
  display: flex; align-items: center; gap: 12px;
  padding: 14px 16px;
  background: rgba(255,255,255,0.025);
  border: 1px solid rgba(255,255,255,0.06);
  border-radius: 12px;
  font-size: 14px; line-height: 1.5;
  cursor: pointer;
  transition: all 0.15s;
  -webkit-tap-highlight-color: transparent;
}
.option:active {
  transform: scale(0.98);
  background: rgba(255,255,255,0.05);
  border-color: rgba(139,92,246,0.3);
}
.option.selected {
  background: rgba(139,92,246,0.12);
  border-color: rgba(139,92,246,0.4);
  color: #fff;
}
.opt-dot {
  width: 18px; height: 18px;
  border-radius: 50%;
  border: 2px solid rgba(255,255,255,0.15);
  flex-shrink: 0;
  transition: all 0.15s;
}
.option.selected .opt-dot {
  border-color: #8b5cf6;
  background: #8b5cf6;
  box-shadow: inset 0 0 0 3px #0c0a18;
}

/* ══════ 结果页 ══════ */
#result-screen {
  padding-top: calc(env(safe-area-inset-top, 0px) + 20px);
}
.result-content {
  max-width: 480px;
  margin: 0 auto;
  width: 100%;
}

/* fade-up 动画 */
.fu { opacity: 0; transform: translateY(16px); transition: all 0.5s cubic-bezier(.25,.46,.45,.94); }
.fu.show { opacity: 1; transform: translateY(0); }

/* 类型头部 */
.result-header {
  text-align: center;
  margin-bottom: 32px;
  padding-top: 20px;
}
.type-code {
  font-size: 64px; font-weight: 800;
  color: #8b5cf6;
  letter-spacing: 4px;
  line-height: 1;
  margin-bottom: 8px;
  font-family: 'SF Mono', 'Menlo', monospace;
}
.type-cn {
  font-size: 28px; font-weight: 700;
  margin-bottom: 6px;
}
.type-tagline {
  font-size: 14px;
  color: rgba(180,200,220,0.5);
  margin-bottom: 8px;
}
.type-quote {
  font-size: 15px;
  font-style: italic;
  color: rgba(139,92,246,0.85);
  line-height: 1.6;
  padding: 12px 20px;
  margin: 8px 0 16px;
  background: rgba(139,92,246,0.06);
  border-left: 3px solid rgba(139,92,246,0.4);
  border-radius: 0 10px 10px 0;
}
.match-info {
  display: inline-flex; align-items: center; gap: 12px;
  padding: 8px 16px;
  background: rgba(139,92,246,0.08);
  border: 1px solid rgba(139,92,246,0.15);
  border-radius: 20px;
  font-size: 13px; color: rgba(180,200,220,0.6);
}
.match-score { color: #8b5cf6; font-weight: 600; }

/* 雷达图 */
.radar-section {
  margin-bottom: 28px;
  text-align: center;
}
#radar-canvas {
  display: block;
  margin: 0 auto;
}

/* 维度快照 */
.dim-snapshot {
  margin-bottom: 28px;
}
.dim-model-group {
  margin-bottom: 16px;
}
.dim-model-title {
  font-size: 13px; font-weight: 600;
  color: rgba(180,200,220,0.5);
  margin-bottom: 8px;
  letter-spacing: 1px;
}
.dim-row {
  margin-bottom: 8px;
}
.dim-label {
  display: flex; justify-content: space-between;
  font-size: 12px;
  margin-bottom: 4px;
}
.dim-name { color: rgba(180,200,220,0.6); }
.dim-level { font-weight: 600; font-size: 11px; }
.dim-bar-bg {
  height: 4px;
  background: rgba(255,255,255,0.06);
  border-radius: 2px;
  overflow: hidden;
}
.dim-bar-fill {
  height: 100%;
  border-radius: 2px;
  transition: width 0.6s cubic-bezier(.25,.46,.45,.94);
}

/* 免费分析 */
.free-analysis {
  margin-bottom: 28px;
}
.section-label {
  font-size: 12px; font-weight: 600;
  letter-spacing: 2px; text-transform: uppercase;
  color: rgba(139,92,246,0.6);
  margin-bottom: 10px;
}
.free-analysis p, .advice-box p {
  font-size: 14px; line-height: 1.8;
  color: rgba(180,200,220,0.7);
}

/* 建议 */
.advice-box {
  padding: 16px;
  background: rgba(16,185,129,0.06);
  border: 1px solid rgba(16,185,129,0.12);
  border-radius: 12px;
  margin-bottom: 28px;
}
.advice-box .section-label { color: rgba(16,185,129,0.6); }

/* ═══ 付费墙 ═══ */
.paywall-card {
  text-align: center;
  padding: 28px 20px;
  background: linear-gradient(135deg, rgba(139,92,246,0.06), rgba(99,102,241,0.03));
  border: 1px solid rgba(139,92,246,0.15);
  border-radius: 18px;
  margin-bottom: 28px;
}
.paywall-lock { font-size: 28px; margin-bottom: 12px; }
.paywall-title { font-size: 18px; font-weight: 700; margin-bottom: 14px; }
.paywall-list {
  text-align: left;
  margin-bottom: 18px;
}
.paywall-item {
  font-size: 13px; color: rgba(180,200,220,0.55);
  padding: 6px 0 6px 20px;
  position: relative;
  line-height: 1.5;
}
.paywall-item::before {
  content: '✦'; position: absolute; left: 0;
  color: rgba(139,92,246,0.5); font-size: 10px; top: 8px;
}
.paywall-price {
  font-size: 32px; font-weight: 800;
  color: #8b5cf6; margin-bottom: 4px;
}
.paywall-price-sub {
  font-size: 12px; color: rgba(180,200,220,0.3);
  text-decoration: line-through;
  margin-bottom: 16px;
}
.btn-pay {
  width: 100%; padding: 14px;
  font-size: 15px; font-weight: 600; color: #fff;
  background: linear-gradient(135deg, #8b5cf6, #6366f1);
  border: none; border-radius: 12px;
  cursor: pointer; transition: all 0.3s;
}
.btn-pay:active { transform: scale(0.98); }
.paywall-safe {
  font-size: 11px; color: rgba(180,200,220,0.25);
  margin-top: 10px;
}
.paywall-count {
  font-size: 12px; color: rgba(180,200,220,0.3);
  margin-top: 8px;
}

/* ═══ 付费内容 ═══ */
.paid-section {
  margin-bottom: 24px;
}
.section-label-paid {
  font-size: 14px; font-weight: 700;
  color: #8b5cf6;
  margin-bottom: 12px;
  padding-bottom: 8px;
  border-bottom: 1px solid rgba(139,92,246,0.12);
}
.paid-dim-group { margin-bottom: 16px; }
.paid-dim-model {
  font-size: 13px; font-weight: 600;
  color: rgba(180,200,220,0.5);
  margin-bottom: 8px;
}
.paid-dim-card {
  padding: 12px 14px;
  background: rgba(255,255,255,0.02);
  border: 1px solid rgba(255,255,255,0.05);
  border-radius: 10px;
  margin-bottom: 8px;
}
.paid-dim-header {
  display: flex; justify-content: space-between; align-items: center;
  margin-bottom: 6px;
}
.paid-dim-name { font-size: 13px; font-weight: 600; }
.paid-dim-badge {
  font-size: 11px; font-weight: 600;
  padding: 2px 8px; border-radius: 6px;
}
.paid-dim-text {
  font-size: 13px; line-height: 1.7;
  color: rgba(180,200,220,0.6);
}

.paid-report-block {
  padding: 14px;
  background: rgba(255,255,255,0.02);
  border: 1px solid rgba(255,255,255,0.05);
  border-radius: 10px;
  margin-bottom: 10px;
}
.paid-report-title {
  font-size: 14px; font-weight: 600;
  margin-bottom: 8px;
}
.paid-report-block p {
  font-size: 13px; line-height: 1.8;
  color: rgba(180,200,220,0.65);
}

.paid-model-card {
  padding: 12px 14px;
  background: rgba(255,255,255,0.02);
  border: 1px solid rgba(255,255,255,0.05);
  border-radius: 10px;
  margin-bottom: 8px;
}
.paid-model-header {
  font-size: 14px; font-weight: 600;
  margin-bottom: 4px;
}
.paid-model-pct {
  float: right; font-weight: 700;
}
.paid-model-dims {
  font-size: 12px; color: rgba(180,200,220,0.4);
  margin-bottom: 8px;
}
.paid-model-bar {
  height: 4px;
  background: rgba(255,255,255,0.06);
  border-radius: 2px;
  overflow: hidden;
}
.paid-model-bar-fill {
  height: 100%;
  border-radius: 2px;
}

/* ── 操作按钮 ── */
.r-actions {
  display: flex; gap: 10px;
  margin-bottom: 16px;
}
.r-actions--stack {
  margin-bottom: 10px;
}
.btn-share, .btn-retry {
  flex: 1; padding: 13px 10px;
  font-size: 14px; font-weight: 500;
  border-radius: 12px;
  cursor: pointer; transition: all 0.2s;
  -webkit-tap-highlight-color: transparent;
}
.btn-share {
  background: rgba(139,92,246,0.1);
  border: 1px solid rgba(139,92,246,0.2);
  color: #a78bfa;
}
.btn-share--accent {
  background: linear-gradient(135deg, rgba(16,185,129,0.18), rgba(6,182,212,0.12));
  border-color: rgba(45,212,191,0.2);
  color: #8ef3d9;
}
.btn-share--ghost {
  background: rgba(255,255,255,0.04);
  border-color: rgba(255,255,255,0.08);
  color: rgba(180,200,220,0.72);
}
.btn-retry {
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.08);
  color: rgba(180,200,220,0.6);
}
.btn-share:active, .btn-retry:active { transform: scale(0.98); }

.r-tip {
  text-align: center;
  font-size: 11px;
  color: rgba(180,200,220,0.2);
  margin-bottom: 16px;
}

.back-link {
  display: block;
  text-align: center;
  font-size: 12px;
  color: rgba(180,200,220,0.3);
  text-decoration: none;
  padding: 12px 0;
}
.back-link:hover { color: rgba(180,200,220,0.6); }

/* ══════ 支付弹窗 ══════ */
.pay-modal-overlay {
  position: fixed; inset: 0;
  background: rgba(0,0,0,0.8);
  display: none; align-items: center; justify-content: center;
  z-index: 1000; padding: 20px;
}
.pay-modal-overlay.show { display: flex; }
.pay-modal {
  width: 100%; max-width: 360px;
  background: #1a1625;
  border: 1px solid rgba(139,92,246,0.15);
  border-radius: 20px;
  padding: 28px 24px;
  text-align: center;
  position: relative;
}
.pay-modal-close {
  position: absolute; top: 14px; right: 16px;
  background: none; border: none;
  color: rgba(180,200,220,0.4);
  font-size: 18px; cursor: pointer;
}
.pay-modal-title {
  font-size: 18px; font-weight: 700; margin-bottom: 8px;
}
.pay-modal-amount {
  font-size: 32px; font-weight: 800;
  color: #8b5cf6; margin-bottom: 20px;
}
.pay-modal-hint {
  font-size: 13px; color: rgba(180,200,220,0.4);
  margin-bottom: 12px;
}
.pay-methods { margin-bottom: 12px; }
.btn-pay-method {
  width: 100%; padding: 14px;
  font-size: 15px; font-weight: 500;
  border-radius: 12px; cursor: pointer;
  display: flex; align-items: center; justify-content: center; gap: 8px;
  transition: all 0.2s;
}
.btn-alipay {
  background: rgba(0,130,255,0.1);
  border: 1px solid rgba(0,130,255,0.2);
  color: #4da6ff;
}
.pay-icon-img { width: 20px; height: 20px; }
.pay-state-icon { font-size: 36px; margin-bottom: 12px; }
.pay-state-text { font-size: 15px; font-weight: 600; margin-bottom: 6px; }
.pay-state-sub { font-size: 13px; color: rgba(180,200,220,0.4); margin-bottom: 16px; }
.btn-check-pay {
  width: 100%; padding: 13px;
  background: linear-gradient(135deg, #8b5cf6, #6366f1);
  border: none; border-radius: 12px;
  color: #fff; font-size: 14px; font-weight: 600;
  cursor: pointer; margin-bottom: 8px;
}
.btn-repay {
  width: 100%; padding: 11px;
  background: transparent;
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 12px;
  color: rgba(180,200,220,0.4);
  font-size: 13px; cursor: pointer;
}
.pay-qr-hint { font-size: 14px; color: rgba(180,200,220,0.5); margin-bottom: 12px; }
.pay-qr-wrap { margin: 0 auto 12px; }
.pay-qr-amount { font-size: 20px; font-weight: 700; color: #8b5cf6; margin-bottom: 8px; }
.pay-qr-status { font-size: 13px; color: rgba(180,200,220,0.4); margin-bottom: 16px; }

/* ══════ 海报弹窗 ══════ */
.poster-overlay {
  position: fixed; inset: 0;
  background: rgba(0,0,0,0.9);
  display: none; flex-direction: column;
  align-items: center; justify-content: center;
  z-index: 1000; padding: 20px;
}
.poster-overlay.show { display: flex; }
.poster-canvas-wrap {
  max-width: 340px; width: 100%;
}
.poster-canvas-wrap img {
  width: 100%; border-radius: 12px;
  box-shadow: 0 12px 40px rgba(0,0,0,0.5);
}
.poster-hint {
  font-size: 12px; color: rgba(180,200,220,0.4);
  margin-top: 16px;
}
.btn-poster-close {
  margin-top: 16px; padding: 10px 32px;
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: 10px;
  color: rgba(180,200,220,0.6);
  font-size: 14px; cursor: pointer;
}

/* ── 社交关系区 ── */
.relations-section {
  margin: 24px 0;
}
.relations-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin-top: 12px;
}
.rel-card {
  padding: 16px;
  border-radius: 14px;
  text-align: center;
}
.rel-bestie {
  background: rgba(16,185,129,0.06);
  border: 1px solid rgba(16,185,129,0.15);
}
.rel-rival {
  background: rgba(239,68,68,0.06);
  border: 1px solid rgba(239,68,68,0.15);
}
.rel-label {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 1px;
  margin-bottom: 8px;
}
.rel-bestie .rel-label { color: #10b981; }
.rel-rival .rel-label { color: #ef4444; }
.rel-type-code {
  font-size: 22px;
  font-weight: 800;
  letter-spacing: 1px;
  margin-bottom: 2px;
}
.rel-bestie .rel-type-code { color: #34d399; }
.rel-rival .rel-type-code { color: #f87171; }
.rel-type-cn {
  font-size: 13px;
  color: rgba(180,200,220,0.7);
  margin-bottom: 8px;
}
.rel-tip {
  font-size: 11px;
  line-height: 1.5;
  color: rgba(180,200,220,0.45);
}

/* ── 灵魂组合区 ── */
.combo-section {
  margin: 24px 0;
  padding: 20px;
  background: rgba(139,92,246,0.04);
  border: 1px solid rgba(139,92,246,0.1);
  border-radius: 16px;
}
.combo-hint {
  font-size: 13px;
  color: rgba(180,200,220,0.5);
  margin: 8px 0 16px;
  line-height: 1.5;
}
.combo-selectors {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin-bottom: 16px;
}
.combo-select-wrap {
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.combo-label {
  font-size: 12px;
  font-weight: 600;
  color: rgba(180,200,220,0.5);
  letter-spacing: 1px;
}
.combo-select {
  padding: 10px 12px;
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 10px;
  color: #e0dce8;
  font-size: 14px;
  outline: none;
  -webkit-appearance: none;
  appearance: none;
  cursor: pointer;
}
.combo-select:focus {
  border-color: rgba(139,92,246,0.4);
}
.combo-card {
  margin: 16px 0;
  padding: 24px;
  background: linear-gradient(135deg, rgba(139,92,246,0.08), rgba(139,92,246,0.02));
  border: 1px solid rgba(139,92,246,0.2);
  border-radius: 16px;
  text-align: center;
}
.combo-card-inner {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  flex-wrap: wrap;
}
.combo-sbti {
  font-size: 28px;
  font-weight: 800;
  color: #8b5cf6;
  letter-spacing: 2px;
}
.combo-plus {
  font-size: 18px;
  color: rgba(180,200,220,0.3);
}
.combo-mbti-val {
  font-size: 24px;
  font-weight: 700;
  color: #e0dce8;
  letter-spacing: 1px;
}
.combo-zodiac-val {
  font-size: 22px;
  font-weight: 600;
  color: #f59e0b;
}
.combo-tagline {
  margin-top: 12px;
  font-size: 14px;
  font-style: italic;
  color: rgba(139,92,246,0.7);
  line-height: 1.5;
}
.combo-share-btn {
  margin-top: 12px;
  width: 100%;
}

/* ── 分享解锁 / 好友对比 ── */
.share-unlock-section,
.compare-section {
  margin: 24px 0;
}

.share-unlock-card,
.compare-card {
  padding: 18px;
  border-radius: 16px;
  background: rgba(255,255,255,0.03);
  border: 1px solid rgba(255,255,255,0.08);
}

.share-unlock-card {
  background: linear-gradient(135deg, rgba(16,185,129,0.06), rgba(6,182,212,0.04));
  border-color: rgba(16,185,129,0.14);
}

.compare-card {
  background: linear-gradient(135deg, rgba(139,92,246,0.08), rgba(99,102,241,0.04));
  border-color: rgba(139,92,246,0.18);
}

.unlock-title,
.compare-title {
  font-size: 15px;
  font-weight: 700;
  margin-bottom: 8px;
}

.unlock-desc,
.compare-desc,
.compare-tip {
  font-size: 13px;
  line-height: 1.7;
  color: rgba(180,200,220,0.62);
}

.unlock-actions,
.compare-actions {
  display: flex;
  gap: 10px;
  margin-top: 14px;
}

.unlock-badge,
.compare-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 10px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.5px;
  margin-bottom: 10px;
}

.unlock-badge {
  background: rgba(16,185,129,0.14);
  color: #34d399;
}

.compare-badge {
  background: rgba(139,92,246,0.16);
  color: #c4b5fd;
}

.compare-grid {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  gap: 12px;
  align-items: center;
  margin: 14px 0;
}

.compare-person {
  padding: 14px 12px;
  border-radius: 14px;
  background: rgba(255,255,255,0.035);
  border: 1px solid rgba(255,255,255,0.06);
  text-align: center;
}

.compare-person--me {
  border-color: rgba(16,185,129,0.22);
}

.compare-person--friend {
  border-color: rgba(139,92,246,0.22);
}

.compare-role {
  font-size: 11px;
  color: rgba(180,200,220,0.45);
  letter-spacing: 1px;
  margin-bottom: 6px;
}

.compare-code {
  font-size: 22px;
  font-weight: 800;
  letter-spacing: 1px;
  margin-bottom: 2px;
}

.compare-person--me .compare-code {
  color: #34d399;
}

.compare-person--friend .compare-code {
  color: #a78bfa;
}

.compare-cn {
  font-size: 13px;
  color: rgba(180,200,220,0.72);
}

.compare-vs {
  font-size: 20px;
  font-weight: 700;
  color: rgba(180,200,220,0.25);
}

.compare-score {
  margin: 12px 0 10px;
  font-size: 14px;
  font-weight: 700;
  color: #e9d5ff;
}

.compare-link {
  margin-top: 10px;
  font-size: 12px;
  color: rgba(180,200,220,0.38);
  word-break: break-all;
}
