:root{
  --bg0:#06070b;
  --bg1:#0b0f18;
  --card:rgba(255,255,255,.06);
  --line:rgba(255,255,255,.10);
  --fg:rgba(255,255,255,.92);
  --muted:rgba(255,255,255,.62);
  --gold:#d7b36a;
  --gold2:#f0d7a4;
  --shadow: 0 20px 80px rgba(0,0,0,.55);
}

*{box-sizing:border-box}
html,body{height:100%}
body{
  margin:0;
  color:var(--fg);
  font-family: ui-sans-serif, system-ui, -apple-system, Segoe UI, Roboto, Arial, "Noto Sans", "Helvetica Neue", sans-serif;
  background:
    radial-gradient(1200px 700px at 30% 15%, rgba(215,179,106,.14), transparent 55%),
    radial-gradient(900px 600px at 80% 0%, rgba(130,170,255,.10), transparent 50%),
    linear-gradient(180deg, var(--bg0), var(--bg1));
}

.wrap{
  max-width: 860px;
  margin: 0 auto;
  padding: 56px 18px 72px;
}

.hero{
  text-align:center;
  margin-bottom: 34px;
}
h1{
  font-family: ui-serif, Georgia, "Times New Roman", Times, serif;
  font-weight: 600;
  letter-spacing: .5px;
  margin: 0 0 10px;
  font-size: 44px;
}
.sub{
  margin: 0 auto 12px;
  max-width: 52ch;
  color: var(--muted);
  line-height: 1.45;
}
.muted{color:var(--muted)}
.hint{
  margin: 0 auto;
  max-width: 60ch;
  color: rgba(215,179,106,.90);
  font-size: 15px;
}

.quiz{display:flex; flex-direction:column; gap:14px}

.card{
  border: 1px solid var(--line);
  background: var(--card);
  border-radius: 16px;
  padding: 18px 18px 16px;
  box-shadow: var(--shadow);
  backdrop-filter: blur(6px);
}

h3{
  margin: 0 0 14px;
  font-size: 18px;
  font-weight: 650;
  line-height: 1.35;
}
.n{
  display:inline-block;
  min-width: 28px;
  color: rgba(215,179,106,.95);
}

.options{display:flex; flex-direction:column; gap:10px}

.opt{
  display:flex;
  gap:12px;
  align-items:flex-start;
  padding: 12px 12px;
  border-radius: 12px;
  border: 1px solid rgba(255,255,255,.08);
  background: rgba(0,0,0,.22);
  cursor:pointer;
  transition: transform .08s ease, border-color .15s ease, background .15s ease;
}
.opt:hover{
  border-color: rgba(215,179,106,.35);
  background: rgba(215,179,106,.08);
  transform: translateY(-1px);
}
.opt input{margin-top: 3px; accent-color: var(--gold)}
.opt span{line-height:1.35; color:rgba(255,255,255,.88)}

.bar{
  margin-top: 18px;
  display:flex;
  justify-content:space-between;
  align-items:center;
  gap:12px;
  padding: 14px 16px;
  border-radius: 14px;
  border: 1px solid var(--line);
  background: rgba(0,0,0,.28);
  box-shadow: var(--shadow);
}

.progress{color:var(--muted); font-size:14px}

.actions{display:flex; gap:10px; align-items:center}

.btn{
  appearance:none;
  border: 1px solid rgba(255,255,255,.14);
  background: rgba(255,255,255,.06);
  color: var(--fg);
  padding: 10px 14px;
  border-radius: 12px;
  font-weight: 650;
  cursor:pointer;
  text-decoration:none;
}
.btn:hover{border-color: rgba(255,255,255,.22)}
.btn.primary{
  background: linear-gradient(180deg, rgba(240,215,164,.92), rgba(215,179,106,.92));
  color: #1c1406;
  border-color: rgba(215,179,106,.75);
}
.btn.primary:hover{filter: brightness(1.03)}
.btn.ghost{
  background: transparent;
}

.results{
  margin-top: 22px;
  border-radius: 18px;
  border: 1px solid rgba(215,179,106,.22);
  background:
    radial-gradient(700px 400px at 20% 0%, rgba(215,179,106,.18), transparent 55%),
    rgba(0,0,0,.30);
  box-shadow: var(--shadow);
  padding: 18px 18px 16px;
}
.hidden{display:none}

.result-header{display:flex; flex-direction:column; gap:10px}
.badge{
  display:inline-flex;
  align-items:center;
  gap:10px;
  padding: 7px 10px;
  border-radius: 999px;
  border: 1px solid rgba(215,179,106,.28);
  background: rgba(215,179,106,.10);
  width: fit-content;
  margin: 0 auto;
  color: rgba(240,215,164,.95);
  font-size: 13px;
}
.dot{
  width:10px; height:10px; border-radius:999px;
  background: var(--gold);
  box-shadow: 0 0 0 4px rgba(215,179,106,.18);
}
.result-title{
  font-family: ui-serif, Georgia, "Times New Roman", Times, serif;
  font-size: 34px;
  text-align:center;
  margin: 0;
  letter-spacing:.4px;
}
.result-body{
  margin: 12px auto 10px;
  max-width: 62ch;
  color: rgba(255,255,255,.84);
  line-height: 1.55;
  text-align:center;
}

.result-lines{
  list-style:none;
  padding:0;
  margin: 12px auto 0;
  max-width: 520px;
  display:flex;
  flex-direction:column;
  gap:10px;
}
.result-lines li{
  border: 1px solid rgba(255,255,255,.10);
  background: rgba(0,0,0,.22);
  border-radius: 12px;
  padding: 12px 12px;
  color: rgba(255,255,255,.86);
}

.result-cta{
  margin-top: 14px;
  padding-top: 14px;
  border-top: 1px solid rgba(255,255,255,.10);
  display:flex;
  flex-direction:column;
  gap:10px;
  align-items:center;
  text-align:center;
}
.small{color: var(--muted); font-size: 13px; max-width: 64ch}

.foot{margin-top: 18px; text-align:center}
.back{
  color: var(--muted);
  text-decoration:none;
  border-bottom: 1px solid rgba(255,255,255,.14);
}
.back:hover{color: rgba(255,255,255,.85); border-bottom-color: rgba(255,255,255,.30)}

@media (max-width: 600px){
  h1{font-size: 34px}
  .bar{flex-direction:column; align-items:stretch}
  .actions{justify-content:center; flex-wrap:wrap}
}
