/* Mobile-first UI that inherits the site's theme (so the app matches your website layout). */
:root{
  --csa-muted: rgba(0,0,0,0.6);
  --csa-border: rgba(0,0,0,0.12);
  --csa-card: rgba(255,255,255,0.92);
  --csa-accent: currentColor;
  --csa-danger: #b91c1c;
}

.csa-shell{
  /* Let the WordPress theme handle page background, fonts, header/footer, etc. */
  color: inherit;
}

/* We keep the app's internal heading simple (theme already has header). */
.csa-topbar{ margin: 0 0 10px; }

.csa-title{
  font-size: 16px;
  font-weight: 800;
  letter-spacing: .2px;
}

.csa-subtitle{ font-size: 13px; color: var(--csa-muted); margin-top: 2px; }

.csa-main{
  padding: 14px;
  padding-bottom: 92px; /* room for bottom nav */
}

.csa-card{
  background: var(--csa-card);
  border: 1px solid var(--csa-border);
  border-radius: 16px;
  padding: 14px;
  box-shadow: 0 8px 18px rgba(0,0,0,0.08);
}

.csa-row{ display:flex; gap:10px; }
.csa-col{ flex:1; }

.csa-stat{
  padding: 12px;
  border-radius: 14px;
  background: rgba(0,0,0,0.03);
  border: 1px solid var(--csa-border);
}
.csa-stat .k{ font-size:12px; color:var(--csa-muted); }
.csa-stat .v{ font-size:20px; font-weight:800; margin-top:4px; }

.csa-btn{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  gap:8px;
  height: 44px;
  padding: 0 14px;
  border-radius: 14px;
  border: 1px solid var(--csa-border);
  background: rgba(0,0,0,0.04);
  color: inherit;
  font-weight: 800;
  text-decoration:none;
  cursor:pointer;
}
.csa-btn:active{ transform: translateY(1px); }

.csa-btn.secondary{
  background: rgba(0,0,0,0.03);
}
.csa-btn.danger{
  background: rgba(185,28,28,0.08);
  border-color: rgba(185,28,28,0.25);
  color: var(--csa-danger);
}

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

.csa-item{
  border-radius: 16px;
  padding: 12px;
  background: rgba(0,0,0,0.03);
  border: 1px solid var(--csa-border);
}

.csa-item .t{ font-weight:800; }
.csa-item .s{ font-size:12px; color:var(--csa-muted); margin-top:2px; }

.csa-pill{
  display:inline-flex;
  align-items:center;
  padding: 6px 10px;
  border-radius: 999px;
  font-size: 12px;
  border: 1px solid var(--csa-border);
  background: rgba(0,0,0,0.03);
  color: inherit;
}

.csa-question{
  font-size: 16px;
  line-height: 1.35;
  font-weight: 800;
}

.csa-choices{ display:flex; flex-direction:column; gap:10px; margin-top:12px; }

.csa-choice{
  text-align:left;
  width:100%;
  min-height: 48px;
  padding: 12px;
  border-radius: 14px;
  border: 1px solid var(--csa-border);
  background: rgba(0,0,0,0.02);
  color: inherit;
  font-weight: 700;
  cursor:pointer;
}
.csa-choice.correct{ border-color: rgba(22,163,74,0.5); background: rgba(22,163,74,0.08); }
.csa-choice.wrong{ border-color: rgba(185,28,28,0.5); background: rgba(185,28,28,0.06); }
.csa-choice:disabled{ opacity: .78; cursor: default; }

.csa-feedback{
  margin-top: 12px;
  color: var(--csa-muted);
  font-size: 13px;
}

.csa-bottomnav{
  position: fixed;
  left: 50%; bottom: 0;
  transform: translateX(-50%);
  width: min(1100px, 100%);
  height: 72px;
  background: rgba(255,255,255,0.92);
  backdrop-filter: blur(10px);
  border-top: 1px solid var(--csa-border);
  display:flex;
  align-items:center;
  justify-content:space-around;
  z-index: 80;
}

.csa-tab{
  width: 25%;
  height: 100%;
  display:flex;
  flex-direction:column;
  align-items:center;
  justify-content:center;
  gap:4px;
  color: var(--csa-muted);
  font-size: 12px;
  text-decoration:none;
  cursor:pointer;
}
.csa-tab.active{ color: inherit; }

.csa-dot{
  width: 6px; height: 6px;
  border-radius: 50%;
  background: currentColor;
  opacity: 0;
}
.csa-tab.active .csa-dot{ opacity: 1; }

.csa-small{ font-size: 12px; color: var(--csa-muted); }

/* Leaderboard table (mobile-friendly) */
.csa-table{ width:100%; border-collapse: collapse; }
.csa-table th, .csa-table td{ padding:8px 6px; border-bottom:1px solid var(--csa-border); font-size: 13px; }
.csa-table th{ text-align:left; font-weight:800; font-size: 12px; opacity: .85; }

