/* =========================================================
   TOPlayer · 高阶玩家 — V1 玩家调研 / 投票
   Turborepo-style. Loads on top of home-v1/main.css.
   ========================================================= */

.survey { max-width: 660px; margin: 0 auto; }

.sv-card {
    position: relative; overflow: hidden;
    background: var(--panel); border: 1px solid var(--border);
    border-radius: var(--radius-lg); padding: 36px; min-height: 380px;
}

/* progress */
.sv-bar { display: flex; align-items: center; justify-content: space-between; margin-bottom: 6px; font-size: 12.5px; color: var(--muted); }
.sv-bar .n { font-family: var(--mono); background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.sv-track { height: 6px; border-radius: 999px; background: rgba(255,255,255,0.07); overflow: hidden; margin-bottom: 30px; }
.sv-fill { height: 100%; width: 0; border-radius: 999px; background: var(--grad); transition: width .4s cubic-bezier(.2,.7,.2,1); }

/* step transition */
.sv-step { animation: svIn .35s ease; }
@keyframes svIn { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }

/* intro */
.sv-intro { text-align: center; padding: 14px 0; }
.sv-intro .ic { width: 60px; height: 60px; margin: 0 auto 20px; display: grid; place-items: center; border-radius: 16px; background: var(--grad); color: #fff; font-size: 26px; }
.sv-intro h2 { font-size: 26px; font-weight: 800; letter-spacing: -0.02em; }
.sv-intro p { margin: 12px auto 0; max-width: 440px; color: var(--muted); font-size: 15px; }
.sv-intro .meta { margin-top: 16px; font-size: 13px; color: var(--dim); }
.sv-intro .btn { margin-top: 26px; }

/* question */
.sv-q-title { font-size: clamp(20px, 2.6vw, 26px); font-weight: 700; letter-spacing: -0.02em; line-height: 1.3; }
.sv-opts { margin-top: 24px; display: grid; gap: 10px; }
.sv-opt {
    display: flex; align-items: center; gap: 12px;
    padding: 15px 16px; border: 1px solid var(--border); border-radius: var(--radius);
    background: var(--bg-2); color: var(--text); font-size: 15px; cursor: pointer;
    transition: border-color .15s ease, background .15s ease; text-align: left;
}
.sv-opt:hover { border-color: var(--border-2); background: var(--panel-2); }
.sv-opt.sel { border-color: var(--violet); background: var(--grad-soft); }
.sv-opt .k { width: 26px; height: 26px; flex-shrink: 0; border-radius: 7px; display: grid; place-items: center; font-size: 12px; font-weight: 700; font-family: var(--mono); background: rgba(255,255,255,.06); color: var(--muted); }
.sv-opt.sel .k { background: var(--grad); color: #fff; }
.sv-opt .lb { flex: 1; }

.sv-back { margin-top: 20px; background: none; border: none; color: var(--dim); font-size: 13px; cursor: pointer; display: inline-flex; align-items: center; gap: 6px; }
.sv-back:hover { color: var(--text); }

/* results */
.sv-results .sv-total { text-align: center; margin-bottom: 28px; }
.sv-results .sv-total .num { font-size: 40px; font-weight: 800; letter-spacing: -0.02em; background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.sv-results .sv-total .lab { color: var(--muted); font-size: 13.5px; margin-top: 4px; }

.sv-profile { margin: 0 auto 26px; max-width: 520px; text-align: center; background: var(--bg-2); border: 1px solid var(--border); border-radius: var(--radius); padding: 18px; }
.sv-profile .t { font-size: 12px; color: var(--dim); letter-spacing: .04em; }
.sv-profile .v { margin-top: 6px; font-size: 18px; font-weight: 800; }
.sv-profile .v .g { background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }

.sv-section-h { font-size: 13px; font-weight: 700; color: var(--text); margin: 30px 0 16px; padding-top: 22px; border-top: 1px solid var(--border); display: flex; align-items: center; gap: 8px; }
.sv-section-h i { background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }

.sv-rq { margin-bottom: 22px; }
.sv-rq h4 { font-size: 14.5px; font-weight: 600; margin-bottom: 12px; }
.sv-res { margin-bottom: 9px; }
.sv-res .top { display: flex; justify-content: space-between; font-size: 13px; margin-bottom: 5px; color: var(--muted); }
.sv-res.you .top { color: var(--text); font-weight: 600; }
.sv-res .top .you-tag { font-size: 11px; margin-left: 6px; background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.sv-res .pct { font-family: var(--mono); }
.sv-rtrack { height: 9px; border-radius: 999px; background: rgba(255,255,255,0.06); overflow: hidden; }
.sv-rfill { height: 100%; width: 0; border-radius: 999px; background: rgba(255,255,255,0.16); transition: width .9s cubic-bezier(.2,.7,.2,1); }
.sv-res.you .sv-rfill { background: var(--grad); }

/* geo */
.sv-geo { display: grid; gap: 10px; }
.sv-geo-row { display: grid; grid-template-columns: 30px 110px 1fr 48px; gap: 12px; align-items: center; font-size: 13px; }
.sv-geo-row .fl { font-size: 18px; }
.sv-geo-row .nm { color: var(--muted); }
.sv-geo-row.you .nm { color: var(--text); font-weight: 600; }
.sv-geo-row .pct { font-family: var(--mono); text-align: right; color: var(--muted); }
.sv-geo-track { height: 9px; border-radius: 999px; background: rgba(255,255,255,.06); overflow: hidden; }
.sv-geo-fill { height: 100%; width: 0; border-radius: 999px; background: rgba(255,255,255,.16); transition: width .9s cubic-bezier(.2,.7,.2,1); }
.sv-geo-row.you .sv-geo-fill { background: var(--grad); }
.sv-you-where { text-align: center; font-size: 13px; color: var(--dim); margin-bottom: 16px; }
.sv-you-where b { color: var(--text); }

.sv-actions { margin-top: 28px; display: flex; gap: 10px; justify-content: center; flex-wrap: wrap; }
.sv-note { margin-top: 22px; text-align: center; font-size: 12px; color: var(--dim); line-height: 1.6; }
.sv-note i { background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; margin-right: 5px; }

.sv-toast { position: fixed; left: 50%; bottom: 30px; transform: translateX(-50%) translateY(20px); opacity: 0;
    background: #141417; border: 1px solid var(--border-2); color: var(--text); padding: 10px 18px; border-radius: 999px;
    font-size: 13px; transition: opacity .2s ease, transform .2s ease; z-index: 200; pointer-events: none; }
.sv-toast.show { opacity: 1; transform: translateX(-50%) translateY(0); }

@media (max-width: 560px) {
    .sv-card { padding: 24px; }
    .sv-geo-row { grid-template-columns: 24px 84px 1fr 40px; gap: 8px; }
}
