:root{
  --bg:#0b1220;
  --card:#0f172a;
  --line:rgba(255,255,255,.10);
  --text:#e5e7eb;
  --muted:rgba(229,231,235,.70);
  --accent:#16a34a; /* green-ish for charity feel */
  --accent2:#2563eb; /* blue for education */
}

*{box-sizing:border-box}
html,body{height:100%}
body{
  margin:0;
  font-family:system-ui,-apple-system,Segoe UI,Roboto,Inter,Arial,sans-serif;
  background: radial-gradient(1200px 600px at 20% 0%, rgba(37,99,235,.25), transparent 60%),
              radial-gradient(900px 500px at 80% 10%, rgba(22,163,74,.22), transparent 60%),
              var(--bg);
  color:var(--text);
}

.app{max-width:980px;margin:0 auto;padding:20px 14px 28px}

.top{
  display:flex; gap:16px; align-items:flex-end; justify-content:space-between;
  padding:10px 2px 18px;
}
.brand{font-weight:800; letter-spacing:.2px; opacity:.95}
.title{margin:4px 0 6px; font-size:28px}
.subtitle{margin:0; color:var(--muted)}

.stats{display:flex; gap:10px; flex-wrap:wrap}
.stat{
  border:1px solid var(--line);
  background:rgba(255,255,255,.03);
  border-radius:14px;
  padding:10px 12px;
  min-width:120px;
}
.statLabel{font-size:12px;color:var(--muted)}
.statValue{font-size:18px;font-weight:800;margin-top:2px}

.card{
  border:1px solid var(--line);
  background:linear-gradient(180deg, rgba(255,255,255,.04), rgba(255,255,255,.02));
  border-radius:18px;
  padding:16px;
}

.h2{margin:0 0 6px}
.muted{color:var(--muted);margin:0 0 12px}

.grid{
  display:grid;
  grid-template-columns:repeat(3, minmax(0, 1fr));
  gap:12px;
}
@media (max-width: 860px){
  .top{flex-direction:column; align-items:flex-start}
  .grid{grid-template-columns:1fr}
}

.sdg{
  text-align:left;
  border:1px solid var(--line);
  background:rgba(255,255,255,.03);
  border-radius:16px;
  padding:14px;
  cursor:pointer;
  color:var(--text);
  transition:transform .12s ease, border-color .12s ease, background .12s ease;
}
.sdg:hover{transform:translateY(-1px); border-color:rgba(255,255,255,.20); background:rgba(255,255,255,.05)}
.sdgNum{display:block;font-weight:900}
.sdgName{display:block;color:var(--muted); margin-top:4px}
.sdgDisabled{opacity:.45; cursor:not-allowed}
.sdgDisabled:hover{transform:none}

.row{display:flex; gap:10px; align-items:center; margin-top:14px}
.label{color:var(--muted); font-size:13px}
.select{
  margin-left:auto;
  border:1px solid var(--line);
  background:rgba(255,255,255,.04);
  color:var(--text);
  border-radius:12px;
  padding:10px 10px;
}

.hidden{display:none !important}

.quizTop{display:flex; justify-content:space-between; gap:10px; margin-bottom:12px}
.pill{
  border:1px solid var(--line);
  background:rgba(255,255,255,.03);
  padding:8px 10px;
  border-radius:999px;
  font-size:13px;
  color:var(--muted);
}

.question{margin:0 0 12px; font-size:20px; line-height:1.35}

.answers{display:grid; gap:10px}
.answerBtn{
  text-align:left;
  border:1px solid var(--line);
  background:rgba(255,255,255,.03);
  border-radius:14px;
  padding:12px 12px;
  cursor:pointer;
  color:var(--text);
}
.answerBtn:hover{border-color:rgba(255,255,255,.20); background:rgba(255,255,255,.05)}
.answerBtn:disabled{cursor:not-allowed; opacity:.9}

.answerCorrect{border-color:rgba(22,163,74,.7); background:rgba(22,163,74,.12)}
.answerWrong{border-color:rgba(239,68,68,.7); background:rgba(239,68,68,.12)}

.quizBottom{
  display:flex; align-items:center; justify-content:space-between;
  margin-top:14px; gap:10px;
}
.scoreBox{color:var(--muted)}
.btn, .btnGhost{
  border-radius:14px;
  padding:12px 14px;
  border:1px solid var(--line);
  cursor:pointer;
  font-weight:800;
}
.btn{
  background:linear-gradient(90deg, rgba(22,163,74,.85), rgba(37,99,235,.85));
  color:#081019;
  border-color:transparent;
}
.btnGhost{
  background:rgba(255,255,255,.03);
  color:var(--text);
}
.btnGhost:hover{background:rgba(255,255,255,.05)}

.resultGrid{
  display:grid; grid-template-columns:repeat(3, minmax(0,1fr));
  gap:12px; margin:14px 0;
}
.resultCard{
  border:1px solid var(--line);
  background:rgba(255,255,255,.03);
  border-radius:16px;
  padding:12px;
}
.resultLabel{color:var(--muted); font-size:12px}
.resultValue{font-weight:900; font-size:22px; margin-top:4px}

.rowButtons{display:flex; gap:10px; flex-wrap:wrap}

.foot{margin-top:16px;color:var(--muted);opacity:.9}
