
:root{
  --bg:#101113;
  --panel:#181a1f;
  --panel-soft:#1f2229;
  --line:#2c3038;
  --text:#f5f7fb;
  --muted:#aeb4c0;
  --accent:#f7d25f;
  --accent-soft:rgba(247,210,95,.12);
  --danger:#ff7c69;
  --success:#83d69d;
  --radius:22px;
  --radius-sm:14px;
  --shadow:0 18px 60px rgba(0,0,0,.28);
}

*{box-sizing:border-box}
html,body{
  margin:0;
  padding:0;
  background:
    radial-gradient(circle at top, rgba(247,210,95,.09), transparent 34%),
    linear-gradient(180deg,#101113 0%,#0d0e11 100%);
  color:var(--text);
  font-family:-apple-system,BlinkMacSystemFont,"PingFang SC","Hiragino Sans GB","Microsoft YaHei",sans-serif;
}
body{min-height:100vh}
button,input,textarea{font:inherit}

.app-shell{
  min-height:100vh;
  padding-bottom:32px;
}

.topbar{
  position:sticky;
  top:0;
  z-index:30;
  display:flex;
  align-items:center;
  justify-content:space-between;
  padding:14px 18px 10px;
  backdrop-filter: blur(16px);
  background:linear-gradient(180deg, rgba(10,11,13,.95), rgba(10,11,13,.68));
  border-bottom:1px solid rgba(255,255,255,.05);
}
.brand{
  font-size:14px;
  font-weight:800;
  letter-spacing:.24em;
  text-transform:uppercase;
  color:var(--accent);
}
.page-wrap{
  width:min(100%, 720px);
  margin:0 auto;
  padding:18px;
}
.view{display:none}
.view.active{display:block}

.hero-card,
.question-card,
.result-hero,
.result-section,
.info-card,
.mini-card,
.subtype-box{
  background:rgba(24,26,31,.92);
  border:1px solid rgba(255,255,255,.06);
  border-radius:var(--radius);
  box-shadow:var(--shadow);
}

.hero-card{
  padding:28px 20px 24px;
}
.eyebrow{
  margin:0 0 10px;
  color:var(--accent);
  letter-spacing:.08em;
  text-transform:uppercase;
  font-size:12px;
  font-weight:700;
}
.hero-title{
  margin:0;
  font-size:34px;
  line-height:1.06;
  letter-spacing:-.03em;
}
.hero-subtitle{
  margin:14px 0 10px;
  font-size:17px;
  line-height:1.5;
  color:#f8f9fb;
}
.hero-copy{
  margin:0 0 20px;
  font-size:15px;
  line-height:1.7;
  color:var(--muted);
}
.stack{
  display:flex;
  gap:10px;
  flex-wrap:wrap;
}
.note-list{margin:0 0 22px}
.note-chip,
.badge,
.chip{
  display:inline-flex;
  align-items:center;
  gap:8px;
  padding:9px 12px;
  border-radius:999px;
  background:rgba(255,255,255,.05);
  color:#eef2f8;
  font-size:12px;
  border:1px solid rgba(255,255,255,.07);
}
.chips{margin-top:18px}
.chip.soft{background:var(--accent-soft); color:#fff1c2; border-color:rgba(247,210,95,.2)}

.primary,
.ghost{
  appearance:none;
  border:none;
  border-radius:18px;
  cursor:pointer;
  transition:transform .16s ease, opacity .16s ease, background .16s ease;
}
.primary:hover,.ghost:hover,.option-item:hover,.dot:hover{transform:translateY(-1px)}
.primary:active,.ghost:active,.option-item:active,.dot:active{transform:translateY(0)}
.primary{
  width:100%;
  padding:16px 18px;
  background:var(--accent);
  color:#17181a;
  font-weight:800;
}
.ghost{
  padding:14px 16px;
  background:rgba(255,255,255,.06);
  color:var(--text);
  border:1px solid rgba(255,255,255,.08);
}
.compact{
  width:auto;
  padding:10px 12px;
  font-size:13px;
}
.cta{margin-top:4px}

.info-card{
  margin-top:18px;
  padding:16px 16px 18px;
}
.info-card.subtle{background:rgba(255,255,255,.035)}
.info-title{
  margin:0 0 10px;
  font-weight:700;
}
.instruction-list{
  margin:0;
  padding-left:18px;
  color:var(--muted);
  line-height:1.75;
}
.muted{color:var(--muted)}
.small{font-size:12px}

.progress-shell{
  position:sticky;
  top:58px;
  z-index:20;
  margin-bottom:16px;
  padding:14px 14px 12px;
  border-radius:18px;
  background:rgba(16,17,19,.9);
  backdrop-filter: blur(16px);
  border:1px solid rgba(255,255,255,.05);
}
.counter-row{
  display:flex;
  align-items:flex-start;
  justify-content:space-between;
  gap:10px;
}
.progress-text{
  margin:0;
  font-size:22px;
  font-weight:800;
}
.current-q{
  padding:8px 12px;
  border-radius:999px;
  background:rgba(255,255,255,.06);
  font-size:12px;
  color:var(--muted);
}
.progress-track,
.score-track{
  width:100%;
  overflow:hidden;
  border-radius:999px;
  background:rgba(255,255,255,.06);
}
.progress-track{
  height:8px;
  margin:12px 0 10px;
}
.progress-bar,
.score-fill{
  height:100%;
  border-radius:999px;
  background:linear-gradient(90deg,#f7d25f,#f8b765);
  width:0%;
  transition:width .28s ease;
}
.helper-text{
  margin:0;
  font-size:13px;
  line-height:1.6;
  color:var(--muted);
}
.dot-nav{
  display:grid;
  grid-template-columns:repeat(10, 1fr);
  gap:8px;
  margin-top:12px;
}
.dot{
  width:100%;
  min-height:28px;
  border-radius:10px;
  border:1px solid rgba(255,255,255,.08);
  background:rgba(255,255,255,.04);
  color:var(--muted);
  font-size:12px;
}
.dot.answered{
  background:rgba(247,210,95,.15);
  border-color:rgba(247,210,95,.35);
  color:#fff2c5;
}
.dot.active{
  outline:2px solid rgba(247,210,95,.7);
  outline-offset:0;
  color:#17181a;
  background:var(--accent);
}

.question-card{
  padding:22px 16px 18px;
}
.question-title{
  margin:0 0 18px;
  font-size:24px;
  line-height:1.45;
}
.option-list{
  display:flex;
  flex-direction:column;
  gap:12px;
}
.option-item{
  display:flex;
  gap:14px;
  width:100%;
  text-align:left;
  padding:16px 16px 16px 14px;
  color:var(--text);
  border:none;
  border-radius:18px;
  background:var(--panel-soft);
  border:1px solid rgba(255,255,255,.06);
  cursor:pointer;
  transition:background .16s ease, border-color .16s ease, transform .16s ease;
}
.option-item.selected{
  background:rgba(247,210,95,.13);
  border-color:rgba(247,210,95,.48);
}
.option-key{
  flex:0 0 auto;
  width:28px;
  height:28px;
  border-radius:999px;
  display:grid;
  place-items:center;
  background:rgba(255,255,255,.08);
  color:var(--accent);
  font-size:13px;
  font-weight:800;
}
.option-copy{
  font-size:15px;
  line-height:1.7;
  color:#eef2f8;
}

.action-bar{
  position:sticky;
  bottom:14px;
  display:grid;
  grid-template-columns:1fr 1fr;
  gap:12px;
  padding-top:14px;
}

.result-header{margin-bottom:14px}
.result-title{
  margin:0 0 10px;
  font-size:30px;
  line-height:1.15;
}
.result-note{
  margin:0;
  color:var(--muted);
  line-height:1.7;
}
.result-hero{
  padding:24px 20px;
  margin-bottom:16px;
}
.result-kicker{
  color:var(--muted);
  font-size:13px;
}
.identity-line{
  margin-top:8px;
}
.identity-alias{
  margin:0;
  font-size:34px;
  line-height:1.06;
}
.identity-formal{
  margin:6px 0 0;
  color:var(--muted);
  font-size:15px;
}
.score-pill{
  display:inline-flex;
  align-items:center;
  gap:10px;
  margin-top:18px;
  padding:10px 14px;
  border-radius:999px;
  background:var(--accent-soft);
  border:1px solid rgba(247,210,95,.24);
}
.score-pill strong{
  font-size:24px;
  color:#fff1c2;
}
.identity-definition{
  margin:18px 0 0;
  line-height:1.8;
  color:#f0f2f7;
}
.result-section{
  margin-bottom:16px;
  padding:18px 16px;
}
.section-head{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:10px;
  margin-bottom:14px;
}
.section-head h3{
  margin:0;
  font-size:18px;
}
.subtype-box{
  padding:16px;
}
.subtype-title{
  margin:0 0 10px;
  font-size:20px;
  font-weight:800;
}
.subtype-copy{
  margin:0;
  line-height:1.75;
  color:var(--muted);
}
.grid-two{
  display:grid;
  grid-template-columns:1fr;
  gap:12px;
}
.mini-card{
  padding:16px 14px;
}
.mini-label{
  margin:0 0 8px;
  color:var(--muted);
  font-size:12px;
  text-transform:uppercase;
  letter-spacing:.08em;
}
.mini-title{
  margin:0 0 8px;
  font-size:17px;
  font-weight:800;
}
.mini-copy{
  margin:0;
  color:var(--muted);
  line-height:1.75;
}
.scoreboard{
  display:flex;
  flex-direction:column;
  gap:12px;
}
.score-row{
  display:grid;
  grid-template-columns:minmax(0,1fr);
  gap:8px;
}
.score-meta{
  display:flex;
  align-items:flex-end;
  justify-content:space-between;
  gap:12px;
}
.score-title{
  margin:0;
  font-size:14px;
  font-weight:700;
}
.score-subtitle{
  margin:2px 0 0;
  color:var(--muted);
  font-size:12px;
}
.score-track{height:10px}
.score-value{
  font-size:13px;
  color:var(--muted);
}
.detail-stack{
  display:flex;
  flex-direction:column;
  gap:12px;
}
.detail-block{
  padding:14px;
  border-radius:16px;
  background:rgba(255,255,255,.035);
  border:1px solid rgba(255,255,255,.05);
}
.detail-label{
  margin:0 0 8px;
  font-size:13px;
  color:var(--accent);
  font-weight:700;
}
.detail-copy{
  margin:0;
  color:#eef2f8;
  line-height:1.78;
}
.footer-actions{
  display:grid;
  grid-template-columns:1fr 1fr;
  gap:12px;
  margin:4px 0 14px;
}
.footer-note{
  padding:0 4px 20px;
}
.footer-note p{
  margin:0;
  text-align:center;
  color:var(--muted);
  line-height:1.65;
  font-size:13px;
}

.hidden{display:none !important}
[hidden]{display:none !important}

@media (min-width:720px){
  .page-wrap{padding:28px}
  .hero-card,.question-card,.result-hero,.result-section{padding-left:24px;padding-right:24px}
  .grid-two{grid-template-columns:repeat(2,1fr)}
  .score-row{
    grid-template-columns:minmax(220px, 300px) minmax(0,1fr) 72px;
    align-items:center;
  }
  .score-meta{display:block}
}
