/* =========================================================
   03. 星图寻踪 · Star Chart Quest —— 星座连线 × 人格星门小游戏
   ========================================================= */
.quest__head { display: flex; justify-content: space-between; align-items: flex-end; gap: 24px 48px; flex-wrap: wrap; margin-bottom: 5vh; }
.quest__intro { max-width: 460px; color: var(--muted); font-size: 15px; line-height: 1.85; }
.quest__intro b { color: var(--ink); font-weight: 400; }

.quest-stage {
  position: relative; overflow: hidden; border-radius: 26px;
  min-height: clamp(620px, 82vh, 820px);
  display: flex; flex-direction: column;
  background:
    radial-gradient(120% 90% at 88% 0%, rgba(124, 92, 255, 0.22), transparent 55%),
    radial-gradient(90% 80% at 0% 100%, rgba(255, 111, 216, 0.1), transparent 60%),
    rgba(12, 8, 28, 0.68);
  border: 1px solid var(--line);
  backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px);
  box-shadow: 0 40px 100px -40px rgba(0, 0, 0, 0.85), inset 0 1px 0 rgba(255, 255, 255, 0.08);
}

/* 顶栏 */
.qs-top { display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 16px clamp(18px, 2.4vw, 32px); border-bottom: 1px solid var(--line); }
.qs-progress { display: flex; gap: clamp(10px, 2.2vw, 30px); flex-wrap: wrap; list-style: none; }
.qs-progress li { display: flex; gap: 8px; align-items: center; color: var(--muted); opacity: 0.5; transition: opacity 0.4s, color 0.4s; }
.qs-progress li b { font-weight: 400; color: var(--accent); }
.qs-progress li.is-current { opacity: 1; color: var(--ink); }
.qs-progress li.is-current b { color: var(--pink); }
.qs-progress li.is-done { opacity: 0.85; }
.qs-progress li.is-done b::after { content: " ✓"; color: var(--cyan); }

.qs-chip {
  display: inline-flex; align-items: center; gap: 6px; padding: 7px 13px; border-radius: 99px;
  border: 1px solid var(--line); background: rgba(255, 255, 255, 0.03); color: var(--muted);
  font-family: var(--f-mono); font-size: 10.5px; letter-spacing: 0.1em; text-transform: uppercase;
  transition: color 0.3s, border-color 0.3s, background 0.3s;
}
.qs-chip:hover { color: var(--ink); border-color: rgba(166, 139, 255, 0.55); }
.qs-chip.is-on { color: var(--accent); border-color: rgba(166, 139, 255, 0.45); background: rgba(124, 92, 255, 0.14); }

.qs-view { flex: 1; position: relative; display: flex; }
.quest-stage [hidden] { display: none !important; }
.qs-screen { flex: 1; display: grid; gap: clamp(24px, 3.4vw, 56px); align-items: center; padding: clamp(22px, 3.2vw, 48px); }

/* 通用排版 */
.qs-kicker { color: var(--accent); margin-bottom: 14px; }
.qs-title { font-size: clamp(48px, 6vw, 92px); font-weight: 200; letter-spacing: -0.03em; line-height: 1; margin-bottom: 22px; }
.qs-h { font-size: clamp(24px, 2.4vw, 34px); font-weight: 300; letter-spacing: -0.01em; line-height: 1.25; margin-bottom: 12px; }
.qs-lead { font-size: 16px; line-height: 1.9; color: rgba(238, 234, 255, 0.82); max-width: 520px; margin-bottom: 26px; }
.qs-p { font-size: 14.5px; line-height: 1.85; color: rgba(238, 234, 255, 0.72); }
.qs-p b { color: var(--ink); font-weight: 400; }
.qs-gold { color: #ffd76f; font-weight: 400; letter-spacing: 0.08em; }
.qs-tip { color: var(--cyan); font-size: 10.5px; margin-top: 12px; }
.qs-glyph { font-family: "Segoe UI Symbol", "Apple Symbols", "Noto Sans Symbols 2", "Noto Sans Symbols", var(--f-serif); font-variant-emoji: text; font-style: normal; }

.qs-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px; padding: 14px 26px; border-radius: 999px;
  border: 1px solid rgba(220, 205, 255, 0.32); font-size: 14.5px; letter-spacing: 0.06em; color: var(--ink);
  background: rgba(255, 255, 255, 0.03);
  transition: transform 0.35s var(--ease), box-shadow 0.35s, background 0.35s, opacity 0.3s, border-color 0.3s;
}
.qs-btn:hover { border-color: rgba(220, 205, 255, 0.6); background: rgba(255, 255, 255, 0.07); transform: translateY(-2px); }
.qs-btn--primary { border: 0; color: #0b0716; font-weight: 500; background: linear-gradient(120deg, var(--cyan), var(--accent) 50%, var(--pink)); box-shadow: 0 14px 40px -14px rgba(166, 139, 255, 0.8); }
.qs-btn--primary:hover { background: linear-gradient(120deg, var(--cyan), var(--accent) 50%, var(--pink)); box-shadow: 0 18px 50px -12px rgba(255, 111, 216, 0.7); }
.qs-btn:disabled { opacity: 0.35; pointer-events: none; box-shadow: none; }
.qs-btn span { transition: transform 0.35s var(--ease); }
.qs-btn:hover span { transform: translateX(3px); }
.qs-link { color: var(--muted); padding: 8px 0; transition: color 0.3s; text-align: left; }
.qs-link:hover { color: var(--ink); }

.qs-keys { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 14px; }
.qs-keys span { font-size: 12.5px; padding: 5px 12px; border-radius: 99px; color: #d9ccff; background: rgba(124, 92, 255, 0.12); border: 1px solid rgba(166, 139, 255, 0.24); }

.qs-toast {
  position: absolute; left: 50%; bottom: 22px; transform: translate(-50%, 16px); z-index: 5;
  padding: 10px 18px; border-radius: 99px; background: rgba(20, 12, 44, 0.92); border: 1px solid rgba(166, 139, 255, 0.4);
  color: var(--ink); white-space: nowrap; max-width: calc(100% - 32px); overflow: hidden; text-overflow: ellipsis;
  opacity: 0; pointer-events: none; transition: opacity 0.35s, transform 0.45s var(--ease);
}
.qs-toast.is-show { opacity: 1; transform: translate(-50%, 0); }

/* ---------- 0 · 开场 ---------- */
.qs-intro { grid-template-columns: 0.9fr 1.1fr; }
.qs-orb { position: relative; width: min(100%, 440px); aspect-ratio: 1; margin: auto; }
.qs-orb__ring { position: absolute; border-radius: 50%; border: 1px solid var(--line); }
.qs-orb__ring--a { inset: 4%; border-style: dashed; animation: qsSpin 60s linear infinite; }
.qs-orb__ring--b { inset: 22%; border-color: rgba(127, 230, 255, 0.18); }
.qs-orb__spin { position: absolute; inset: 0; animation: qsSpin 48s linear infinite; }
.qs-orb__g {
  position: absolute; transform: translate(-50%, -50%); font-family: "Segoe UI Symbol", "Apple Symbols", "Noto Sans Symbols 2", serif;
  font-size: clamp(18px, 2vw, 26px); color: var(--c); text-shadow: 0 0 14px var(--c); opacity: 0.85;
  animation: qsSpinG 48s linear infinite;
}
.qs-orb__core {
  position: absolute; inset: 33%; border-radius: 50%; display: grid; place-items: center;
  background: radial-gradient(circle at 35% 30%, #fff 0%, #d7c9ff 12%, #7c5cff 42%, #2a1260 72%, #0b0620 100%);
  box-shadow: 0 0 80px rgba(124, 92, 255, 0.55), 0 0 160px rgba(255, 111, 216, 0.25);
  animation: qsBreath 5s ease-in-out infinite;
}
.qs-orb__core span { color: #fff; font-size: 28px; text-shadow: 0 0 20px #fff; }
.qs-steps { list-style: none; display: grid; gap: 10px; margin-bottom: 30px; }
.qs-steps li { display: flex; gap: 14px; align-items: baseline; font-size: 14.5px; color: rgba(238, 234, 255, 0.8); padding-bottom: 10px; border-bottom: 1px solid var(--line); }
.qs-steps b { color: var(--accent); font-weight: 400; }

@keyframes qsSpin { to { transform: rotate(360deg); } }
@keyframes qsSpinG { from { transform: translate(-50%, -50%) rotate(0deg); } to { transform: translate(-50%, -50%) rotate(-360deg); } }
@keyframes qsBreath { 0%, 100% { transform: scale(1); } 50% { transform: scale(1.05); } }

/* ---------- 1 · 选择星座 ---------- */
.qs-pick { grid-template-columns: 1.1fr 0.9fr; }
.qs-wheel { position: relative; width: min(100%, 500px); aspect-ratio: 1; margin: auto; }
.qs-wheel__ring { position: absolute; inset: 9%; border-radius: 50%; border: 1px dashed var(--line); animation: qsSpin 90s linear infinite; }
.qs-wheel__ring--inner { inset: 27%; border-style: solid; border-color: rgba(127, 230, 255, 0.14); animation: none; }
.qs-wheel__sign {
  position: absolute; transform: translate(-50%, -50%); width: clamp(54px, 13.5%, 70px); aspect-ratio: 1; border-radius: 50%;
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 1px;
  background: rgba(14, 9, 32, 0.85); border: 1px solid var(--line); color: var(--ink);
  transition: transform 0.45s var(--ease), border-color 0.3s, box-shadow 0.3s, background 0.3s;
}
.qs-wheel__sign .qs-glyph { font-size: clamp(18px, 2vw, 24px); color: var(--c); line-height: 1; }
.qs-wheel__sign small { font-size: 11px; color: var(--muted); letter-spacing: 0.04em; }
.qs-wheel__sign:hover { border-color: var(--c); box-shadow: 0 0 22px -4px var(--c); transform: translate(-50%, -50%) scale(1.08); }
.qs-wheel__sign.is-selected { border-color: var(--c); background: radial-gradient(circle, rgba(255, 255, 255, 0.14), rgba(14, 9, 32, 0.9)); box-shadow: 0 0 34px -2px var(--c); transform: translate(-50%, -50%) scale(1.16); }
.qs-wheel__sign.is-selected small { color: var(--ink); }
.qs-wheel__center {
  position: absolute; inset: 29%; border-radius: 50%; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px; text-align: center;
  background: radial-gradient(circle, rgba(124, 92, 255, 0.2), rgba(4, 2, 10, 0.2) 70%);
}
.qs-wheel__big { font-size: clamp(36px, 4.4vw, 56px); line-height: 1.1; color: var(--accent); font-family: "Segoe UI Symbol", "Apple Symbols", "Noto Sans Symbols 2", serif; text-shadow: 0 0 24px currentColor; }
.qs-wheel__center strong { font-size: clamp(17px, 1.7vw, 22px); font-weight: 400; }
.qs-wheel__center small.mono { color: var(--muted); font-size: 10px; }
.qs-wheel__meta { font-size: 12px; color: #d9ccff; }

.qs-side { display: flex; flex-direction: column; align-items: flex-start; gap: 4px; }
.qs-field { width: 100%; margin-top: 18px; }
.qs-field label { display: block; color: var(--muted); margin-bottom: 8px; font-size: 10px; }
.qs-row { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.qs-input {
  width: 100%; padding: 12px 14px; border-radius: 12px; border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.04); color: var(--ink); font: inherit; font-size: 15px; color-scheme: dark; outline: none;
  transition: border-color 0.3s, background 0.3s;
}
.qs-input:focus { border-color: rgba(166, 139, 255, 0.6); background: rgba(124, 92, 255, 0.08); }
.qs-input::placeholder { color: rgba(226, 220, 255, 0.3); }
select.qs-input option { background: #120a2a; color: var(--ink); }
.qs-pick .qs-btn--primary { margin-top: 26px; }

/* ---------- 2 · 连线 ---------- */
.qs-connect { grid-template-columns: 1.45fr 1fr; align-items: stretch; }
.qs-boardwrap { display: flex; flex-direction: column; gap: 12px; min-width: 0; }
.qs-boardbar { display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; color: var(--muted); }
.qs-boardbar .qs-glyph { color: var(--accent); font-size: 14px; }
.qs-boardbar b { color: var(--cyan); font-weight: 400; }
.qs-board {
  position: relative; width: min(100%, calc(64vh * 112 / 92)); margin: 0 auto; aspect-ratio: 112 / 92;
  border-radius: 18px; border: 1px solid var(--line); overflow: hidden;
  background: radial-gradient(circle at 50% 45%, rgba(124, 92, 255, 0.16), rgba(4, 2, 10, 0.55) 72%);
  touch-action: none; user-select: none; -webkit-user-select: none;
}
.qs-board svg { display: block; width: 100%; height: 100%; }
.qs-tools { display: flex; gap: 8px; flex-wrap: wrap; justify-content: center; }

.qs-bgstar { fill: #fff; opacity: 0.35; animation: qsTwinkle 3s ease-in-out infinite; }
@keyframes qsTwinkle { 0%, 100% { opacity: 0.12; } 50% { opacity: 0.6; } }
.qs-bigglyph { font-size: 62px; fill: rgba(166, 139, 255, 0.13); opacity: 0; font-family: "Segoe UI Symbol", "Apple Symbols", "Noto Sans Symbols 2", serif; pointer-events: none; }
.qs-ghost line { stroke: rgba(200, 185, 255, 0.4); stroke-width: 0.32; stroke-dasharray: 1.1 1.3; opacity: 0; transition: opacity 0.5s; }
svg.is-guide .qs-ghost line { opacity: 1; }
svg.is-complete .qs-ghost line { opacity: 0; }
.qs-lines line { stroke: #ece4ff; stroke-width: 0.62; stroke-linecap: round; }
svg.is-complete .qs-lines line { stroke: #fff; animation: qsLinePulse 2.4s ease-in-out infinite; }
@keyframes qsLinePulse { 0%, 100% { stroke-width: 0.62; } 50% { stroke-width: 0.9; } }
.qs-fx line.qs-wrong { stroke: #ff5f7e; stroke-width: 0.5; stroke-linecap: round; stroke-dasharray: 1 0.8; }
.qs-spark { fill: #fff; }
.qs-rubber { stroke: rgba(127, 230, 255, 0.85); stroke-width: 0.4; stroke-dasharray: 1 0.9; stroke-linecap: round; opacity: 0; pointer-events: none; }
.qs-rubber.is-on { opacity: 1; }

.qs-star { cursor: pointer; }
.qs-star__halo { fill: url(#qsHalo); opacity: 0.32; transition: opacity 0.4s; }
.qs-star__core { fill: #cfc4ff; transition: fill 0.3s; }
.qs-star__ring { fill: none; stroke: var(--cyan); stroke-width: 0.28; opacity: 0; transform-box: fill-box; transform-origin: center; transition: opacity 0.3s; }
.qs-star.is-lit .qs-star__halo { opacity: 0.95; }
.qs-star.is-lit .qs-star__core { fill: #fff; }
.qs-star.is-hover .qs-star__ring { opacity: 0.55; }
.qs-star.is-active .qs-star__ring { opacity: 1; animation: qsRing 1.4s ease-in-out infinite; }
.qs-star.is-active .qs-star__halo { opacity: 1; }
@keyframes qsRing { 0%, 100% { transform: scale(1); } 50% { transform: scale(1.3); } }

.qs-connect .qs-side { justify-content: center; gap: 6px; }
.qs-lock {
  width: 100%; margin-top: 18px; padding: 22px; border-radius: 16px; border: 1px dashed rgba(166, 139, 255, 0.35);
  display: flex; gap: 14px; align-items: center; color: var(--muted); font-size: 14px; background: rgba(255, 255, 255, 0.02);
}
.qs-lock__icon { font-size: 22px; filter: grayscale(0.4); }
.qs-signcard {
  width: 100%; margin-top: 18px; padding: 20px 22px; border-radius: 16px; border: 1px solid rgba(166, 139, 255, 0.35);
  background: linear-gradient(160deg, rgba(124, 92, 255, 0.16), rgba(14, 9, 32, 0.4));
}
.qs-signcard__top { display: flex; align-items: center; gap: 14px; margin-bottom: 14px; }
.qs-signcard__top strong { display: block; font-size: 22px; font-weight: 400; }
.qs-signcard__top small { color: var(--muted); font-size: 10px; }
.qs-signcard__glyph { font-size: 40px; line-height: 1; text-shadow: 0 0 22px currentColor; font-family: "Segoe UI Symbol", "Apple Symbols", "Noto Sans Symbols 2", serif; }
.qs-rating { margin-left: auto; text-align: right; display: flex; flex-direction: column; gap: 2px; }
.qs-rating b { font-size: 20px; }
.qs-facts { list-style: none; display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin-bottom: 12px; }
.qs-facts li { display: flex; flex-direction: column; gap: 3px; padding: 9px 10px; border-radius: 10px; background: rgba(255, 255, 255, 0.04); color: var(--muted); font-size: 9.5px; }
.qs-facts b { font-family: var(--f-sans); font-size: 14px; color: var(--ink); font-weight: 400; letter-spacing: 0.02em; text-transform: none; }
.qs-side__actions { display: flex; flex-direction: column; align-items: flex-start; gap: 10px; margin-top: 20px; }

/* ---------- 3 · 人格星门 ---------- */
.qs-gate { grid-template-columns: 1fr; grid-template-rows: auto 1fr auto; justify-items: center; text-align: center; align-items: stretch; }
.qs-gate__head { display: flex; flex-direction: column; align-items: center; gap: 4px; }
.qs-track { position: relative; display: flex; gap: clamp(16px, 3vw, 34px); margin: 8px 0 10px; }
.qs-track::before { content: ""; position: absolute; left: 4px; right: 4px; top: 50%; height: 1px; background: var(--line); }
.qs-track i { position: relative; width: 9px; height: 9px; border-radius: 50%; background: #1a1236; border: 1px solid rgba(166, 139, 255, 0.4); transition: background 0.4s, box-shadow 0.4s, transform 0.4s; }
.qs-track i.is-done { background: var(--accent); border-color: var(--accent); }
.qs-track i.is-current { background: var(--pink); border-color: var(--pink); box-shadow: 0 0 14px var(--pink); transform: scale(1.35); }
.qs-gate__num { color: var(--muted); }
.qs-gate__body { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: clamp(26px, 4vh, 44px); width: 100%; }
.qs-question { font-size: clamp(22px, 2.6vw, 38px); font-weight: 300; line-height: 1.4; letter-spacing: -0.01em; max-width: 820px; }
.qs-options { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(14px, 2vw, 24px); width: min(100%, 900px); }
.qs-option {
  position: relative; display: flex; flex-direction: column; align-items: flex-start; gap: 14px; text-align: left;
  padding: clamp(20px, 2.4vw, 30px); border-radius: 20px; border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.03); color: var(--ink);
  transition: transform 0.45s var(--ease), border-color 0.35s, background 0.35s, box-shadow 0.35s;
}
.qs-option:hover { transform: translateY(-6px); border-color: rgba(166, 139, 255, 0.6); background: rgba(124, 92, 255, 0.1); box-shadow: 0 24px 60px -30px rgba(166, 139, 255, 0.8); }
.qs-option.is-picked { border-color: var(--pink); background: rgba(255, 111, 216, 0.1); }
.qs-option__tag { position: absolute; top: 18px; right: 20px; color: var(--muted); }
.qs-option__text { font-size: clamp(15px, 1.25vw, 18px); line-height: 1.7; }
.qs-planet { width: 46px; height: 46px; border-radius: 50%; flex: none; transition: transform 0.5s var(--ease); }
.qs-planet--a { background: radial-gradient(circle at 32% 30%, #fff, #ffb3e9 18%, #ff6fd8 45%, #5a1650 100%); box-shadow: 0 0 28px rgba(255, 111, 216, 0.55); }
.qs-planet--b { background: radial-gradient(circle at 32% 30%, #fff, #c4f4ff 18%, #7fe6ff 45%, #12405a 100%); box-shadow: 0 0 28px rgba(127, 230, 255, 0.5); }
.qs-option:hover .qs-planet { transform: scale(1.12) rotate(-12deg); }
.qs-gate__foot { width: 100%; display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; }
.qs-gate__foot .muted { font-size: 10.5px; }

/* ---------- 4 · 星格档案 ---------- */
.qs-result { grid-template-columns: 1.08fr 0.92fr; align-items: start; }
.qs-card {
  position: relative; padding: clamp(20px, 2.4vw, 32px); border-radius: 22px;
  background:
    linear-gradient(160deg, rgba(30, 18, 68, 0.95), rgba(10, 6, 26, 0.95)) padding-box,
    linear-gradient(135deg, var(--cyan), var(--accent) 45%, var(--pink)) border-box;
  border: 1px solid transparent;
  box-shadow: 0 40px 90px -40px rgba(166, 139, 255, 0.7);
}
.qs-card__top { display: flex; justify-content: space-between; gap: 10px; color: var(--accent); font-size: 10px; margin-bottom: 8px; flex-wrap: wrap; }
.qs-card__top span:last-child { color: var(--muted); }
.qs-card__hero { display: grid; grid-template-columns: 0.95fr 1fr; gap: 18px; align-items: center; }
.qs-mini { width: 100%; height: auto; }
.qs-mini__l line { stroke: rgba(236, 228, 255, 0.85); stroke-width: 0.7; stroke-linecap: round; }
.qs-mini__s circle { fill: #fff; filter: drop-shadow(0 0 2px var(--c)); }
.qs-card__nick { color: var(--cyan); font-size: 10.5px; margin-bottom: 6px; }
.qs-card__sign { font-size: 20px; display: flex; align-items: baseline; gap: 8px; flex-wrap: wrap; }
.qs-card__sign .qs-glyph { color: var(--c); }
.qs-card__sign small { color: var(--muted); font-size: 10px; }
.qs-card__code {
  font-size: clamp(54px, 6vw, 84px); font-weight: 200; letter-spacing: -0.04em; line-height: 1; margin: 6px 0 4px;
  background: linear-gradient(120deg, #fff 15%, var(--cyan) 45%, var(--accent) 75%, var(--pink) 100%);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.qs-card__type { font-size: 16px; color: #d9ccff; }
.qs-card__title { font-size: clamp(17px, 1.5vw, 21px); margin: 16px 0 14px; color: var(--ink); }
.qs-bars { display: grid; gap: 10px; margin-bottom: 14px; }
.qs-bar { display: grid; grid-template-columns: 64px 1fr 64px 62px; gap: 10px; align-items: center; }
.qs-bar__l, .qs-bar__r { font-size: 10px; color: var(--muted); letter-spacing: 0.06em; }
.qs-bar__r { text-align: right; }
.qs-bar__l.is-on, .qs-bar__r.is-on { color: var(--ink); }
.qs-bar__track { position: relative; height: 5px; border-radius: 9px; background: rgba(190, 170, 255, 0.16); }
.qs-bar__track i { position: absolute; left: 0; top: 0; bottom: 0; width: var(--p); border-radius: inherit; background: linear-gradient(90deg, var(--cyan), var(--pink)); }
.qs-bar__track i.is-right { left: auto; right: 0; background: linear-gradient(90deg, var(--pink), var(--cyan)); }
.qs-bar__track b { position: absolute; top: 50%; width: 11px; height: 11px; border-radius: 50%; background: #fff; transform: translate(-50%, -50%); box-shadow: 0 0 10px var(--pink); }
.qs-bar__pct { font-size: 10px; color: var(--cyan); text-align: right; }
.qs-card__desc { font-size: 14px; line-height: 1.85; color: rgba(238, 234, 255, 0.75); }

.qs-match { display: flex; flex-direction: column; align-items: flex-start; }
.qs-meter { position: relative; width: clamp(150px, 15vw, 190px); aspect-ratio: 1; margin: 10px 0 16px; }
.qs-meter svg { width: 100%; height: 100%; transform: rotate(-90deg); }
.qs-meter__bg { fill: none; stroke: rgba(190, 170, 255, 0.14); stroke-width: 7; }
.qs-meter__fg { fill: none; stroke: url(#qsMeterG); stroke-width: 7; stroke-linecap: round; filter: drop-shadow(0 0 6px rgba(255, 111, 216, 0.6)); }
.qs-meter__val { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; font-size: clamp(44px, 4.4vw, 58px); font-weight: 200; letter-spacing: -0.03em; font-variant-numeric: tabular-nums; }
.qs-meter__val b { font-weight: 200; }
.qs-meter__val sup { font-size: 0.32em; color: var(--accent); margin-left: 2px; align-self: flex-start; margin-top: 34%; }
.qs-pair { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; color: var(--muted); font-size: 10px; margin-bottom: 14px; }
.qs-pair > span { display: flex; flex-direction: column; gap: 2px; padding: 8px 12px; border-radius: 12px; background: rgba(255, 255, 255, 0.04); border: 1px solid var(--line); }
.qs-pair b { font-family: var(--f-sans); font-size: 18px; font-weight: 300; color: var(--ink); letter-spacing: 0.04em; }
.qs-pair i { font-style: normal; color: var(--pink); font-size: 16px; }
.qs-pair small { font-size: 10px; color: var(--muted); opacity: 0.85; }
.qs-pair small .qs-glyph { display: inline; }
.qs-elnote { font-size: 11px; color: #9fe3b0; letter-spacing: 0.04em; margin: -4px 0 12px; }
.qs-match__tier { font-size: clamp(20px, 1.8vw, 26px); font-weight: 300; margin-bottom: 8px; background: linear-gradient(90deg, #fff, #d9ccff); -webkit-background-clip: text; background-clip: text; color: transparent; }
.qs-collab { margin-top: 12px; padding: 14px 16px; border-radius: 14px; background: rgba(127, 230, 255, 0.06); border: 1px solid rgba(127, 230, 255, 0.18); }
.qs-actions { display: flex; flex-wrap: wrap; gap: 10px 12px; align-items: center; margin-top: 22px; }
.qs-actions .qs-link { flex-basis: 100%; }

/* ---------- 响应式 ---------- */
@media (max-width: 1100px) {
  .qs-result { grid-template-columns: 1fr; }
  .qs-connect { grid-template-columns: 1fr; }
  .qs-board { width: min(100%, 720px, calc(62vh * 112 / 92)); }
}
@media (max-width: 900px) {
  .quest-stage { min-height: 0; border-radius: 20px; }
  .qs-intro, .qs-pick { grid-template-columns: 1fr; }
  .qs-orb { width: min(72%, 300px); }
  .qs-wheel { width: min(100%, 420px); }
  .qs-options { grid-template-columns: 1fr; }
  .qs-option { flex-direction: row; align-items: center; }
  .qs-planet { width: 36px; height: 36px; }
  .qs-option__tag { top: 10px; right: 14px; }
  .qs-card__hero { grid-template-columns: 1fr; }
  .qs-mini { max-width: 280px; margin: 0 auto; }
}
@media (max-width: 560px) {
  .qs-progress li span { display: none; }
  .qs-wheel__sign small { display: none; }
  .qs-wheel__center { inset: 26%; }
  .qs-wheel__center small.mono { font-size: 8.5px; letter-spacing: 0.06em; }
  .qs-wheel__meta { display: none; }
  .qs-bar { grid-template-columns: 50px 1fr 50px; }
  .qs-bar__pct { display: none; }
  .qs-facts { grid-template-columns: 1fr 1fr 1fr; }
  .qs-signcard__top { flex-wrap: wrap; }
}
