:root {
  --bg: #0f1226; --card: #1a1f3d; --accent: #7c6cff; --accent2: #4fd1c5;
  --text: #eef0ff; --muted: #a4a9c9; --border: #2a3057;
}
* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; overflow-x: hidden; }
body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  background: radial-gradient(1200px 600px at 50% -10%, #232a55 0%, var(--bg) 60%);
  color: var(--text); line-height: 1.55; min-height: 100vh;
}
.wrap { max-width: 720px; margin: 0 auto; padding: 24px 18px 64px; }
header.site { text-align: center; padding: 28px 0 8px; }
.brand { font-size: 13px; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); text-decoration: none; }
h1 { font-size: clamp(26px, 5vw, 40px); line-height: 1.15; margin: 12px 0 6px; }
.subtitle { color: var(--muted); font-size: 17px; margin: 0 auto; max-width: 560px; }
.card { background: var(--card); border: 1px solid var(--border); border-radius: 18px; padding: 22px; margin: 18px 0; box-shadow: 0 10px 40px rgba(0,0,0,.35); }
.intro { color: var(--muted); }
.btn { display: inline-block; background: linear-gradient(135deg, var(--accent), #9a6cff);
  color: #fff; border: none; border-radius: 12px; padding: 14px 26px; font-size: 17px;
  font-weight: 600; cursor: pointer; text-decoration: none; transition: transform .08s ease, filter .15s ease; }
.btn:hover { filter: brightness(1.08); } .btn:active { transform: translateY(1px); }
.btn.secondary { background: transparent; border: 1px solid var(--border); color: var(--text); }
.btn.home-btn { text-decoration: none; padding: 14px 28px; font-size: 16px; }
.btn:disabled { opacity: .4; cursor: not-allowed; }
.center { text-align: center; }
.progress-bar { height: 8px; background: var(--border); border-radius: 99px; overflow: hidden; margin-bottom: 4px; }
.progress-fill { height: 100%; background: linear-gradient(90deg, var(--accent2), var(--accent)); width: 0; transition: width .3s ease; }
.progress-label { font-size: 13px; color: var(--muted); margin-bottom: 18px; }
.q-text { font-size: 20px; font-weight: 600; margin: 6px 0 20px; }
.options { display: grid; gap: 10px; }
.opt { text-align: left; background: #141935; border: 1px solid var(--border); color: var(--text);
  border-radius: 12px; padding: 14px 16px; font-size: 16px; cursor: pointer; transition: all .12s ease; }
.opt:hover { border-color: var(--accent); background: #1b2247; }
.opt.selected { border-color: var(--accent); background: #26224d; }
.nav { display: flex; justify-content: space-between; margin-top: 20px; gap: 10px; }
.result-emoji { font-size: 64px; text-align: center; line-height: 1; }
.result-title { text-align: center; font-size: 30px; margin: 8px 0 2px; }
.result-tag { text-align: center; color: var(--accent2); font-weight: 600; letter-spacing: .08em; text-transform: uppercase; font-size: 12px; }
.result-summary { font-size: 18px; margin: 16px 0; }
.result-detail { color: var(--muted); }
.result-chart { display: block; width: 100%; max-width: 360px; height: 320px; margin: 4px auto 8px; }
#download-btn { }
.share-row { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; margin-top: 18px; }
.ad-slot { min-height: 90px; display: flex; align-items: center; justify-content: center; color: #4a4f75; border: 1px dashed var(--border); border-radius: 12px; font-size: 13px; margin: 18px 0; }
.faq h3 { margin: 22px 0 6px; font-size: 16px; }
.faq p { color: var(--muted); margin: 0 0 10px; }
footer.site { text-align: center; color: var(--muted); font-size: 13px; margin-top: 30px; }
footer.site a { color: var(--muted); }
.hidden { display: none !important; }
.disclaimer { font-size: 12px; color: #6a7099; margin-top: 8px; }

/* Hub grid */
.hub-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 16px; margin: 22px 0; }
.quiz-card { display: block; text-decoration: none; background: var(--card); border: 1px solid var(--border);
  border-radius: 16px; padding: 20px; transition: transform .1s ease, border-color .15s ease; }
.quiz-card:hover { transform: translateY(-3px); border-color: var(--accent); }
.quiz-card .qc-emoji { font-size: 38px; }
.quiz-card .qc-title { font-size: 19px; font-weight: 700; color: var(--text); margin: 10px 0 4px; }
.quiz-card .qc-sub { font-size: 14px; color: var(--muted); }
.quiz-card .qc-tag { display: inline-block; margin-top: 10px; font-size: 11px; letter-spacing: .06em;
  text-transform: uppercase; color: var(--accent2); border: 1px solid var(--border); border-radius: 99px; padding: 3px 10px; }
