:root {
  --bg: #07111f;
  --bg-2: #0c1c33;
  --card: rgba(10, 20, 36, 0.78);
  --card-2: rgba(255, 255, 255, 0.06);
  --border: rgba(255, 255, 255, 0.10);
  --text: #f4f7fb;
  --muted: #a7b4c8;
  --accent: #f7b500;
  --accent-2: #22c55e;
  --danger: #ef4444;
  --shadow: 0 24px 80px rgba(0, 0, 0, 0.35);
}

html, body {
  min-height: 100%;
}

body {
  margin: 0;
  font-family: "Inter", sans-serif;
  color: var(--text);
  background:
    radial-gradient(circle at top left, rgba(255, 196, 0, 0.18), transparent 28%),
    radial-gradient(circle at top right, rgba(34, 197, 94, 0.10), transparent 26%),
    linear-gradient(160deg, var(--bg), var(--bg-2));
}

.site-bg {
  position: fixed;
  inset: 0;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.035) 1px, transparent 1px);
  background-size: 36px 36px;
  mask-image: radial-gradient(circle at center, black, transparent 85%);
  opacity: 0.55;
}

.quiz-navbar {
  position: sticky;
  top: 0;
  z-index: 20;
  backdrop-filter: blur(18px);
  background: rgba(3, 10, 20, 0.75);
  border-bottom: 1px solid var(--border);
}

.brand-mark {
  font-family: "Space Grotesk", sans-serif;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.glass-card, .panel-card, .metric-card, .quiz-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 24px;
  box-shadow: var(--shadow);
}

.hero-card {
  position: relative;
  overflow: hidden;
  padding: 2rem;
}

.hero-card::after {
  content: "";
  position: absolute;
  inset: auto -10% -55% auto;
  width: 280px;
  height: 280px;
  background: radial-gradient(circle, rgba(247, 181, 0, 0.24), transparent 70%);
  filter: blur(8px);
}

.hero-title {
  font-family: "Space Grotesk", sans-serif;
  font-size: clamp(2.5rem, 6vw, 5.4rem);
  line-height: 0.95;
  letter-spacing: -0.04em;
}

.hero-subtitle, .text-muted-soft {
  color: var(--muted) !important;
}

.pill {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.45rem 0.85rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid var(--border);
  color: var(--text);
  font-size: 0.88rem;
}

.metric-card {
  padding: 1rem 1.1rem;
}

.metric-value {
  font-family: "Space Grotesk", sans-serif;
  font-size: 2rem;
  font-weight: 700;
}

.section-heading {
  font-family: "Space Grotesk", sans-serif;
  letter-spacing: -0.03em;
}

.btn-accent {
  background: linear-gradient(135deg, #f7b500, #ffda72);
  color: #111827;
  border: 0;
  font-weight: 700;
}

.btn-accent:hover {
  filter: brightness(0.95);
}

.btn-ghost {
  border: 1px solid var(--border);
  color: var(--text);
}

.quiz-grid {
  display: grid;
  gap: 1rem;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
}

.quiz-card {
  padding: 1rem;
  min-height: 100%;
}

.quiz-card .badge {
  font-weight: 600;
}

.form-control, .form-select, textarea {
  background: rgba(255, 255, 255, 0.05);
  border-color: rgba(255, 255, 255, 0.14);
  color: var(--text);
}

.form-control:focus, .form-select:focus, textarea:focus {
  background: rgba(255, 255, 255, 0.07);
  color: var(--text);
  border-color: rgba(247, 181, 0, 0.75);
  box-shadow: 0 0 0 0.2rem rgba(247, 181, 0, 0.15);
}

.form-label {
  color: #eef2ff;
}

.choice-list .form-check {
  padding: 0.85rem 1rem;
  margin-bottom: 0.7rem;
  border-radius: 18px;
  border: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.04);
}

.timer-badge {
  font-family: "Space Grotesk", sans-serif;
  font-size: 1.1rem;
  letter-spacing: 0.02em;
}

.table-darkish {
  color: var(--text);
}

.table-darkish > :not(caption) > * > * {
  background-color: rgba(255, 255, 255, 0.03);
  border-color: var(--border);
  color: var(--text);
}

.table-darkish thead th {
  color: #ffffff;
}

.live-stage {
  min-height: 280px;
  background: linear-gradient(135deg, rgba(247, 181, 0, 0.15), rgba(34, 197, 94, 0.10));
  border: 1px solid var(--border);
  border-radius: 24px;
}

.progress {
  background: rgba(255, 255, 255, 0.08);
}

.progress-bar {
  background: linear-gradient(90deg, #f7b500, #22c55e);
}

.small-muted {
  color: var(--muted);
  font-size: 0.92rem;
}

@media (max-width: 767px) {
  .hero-card {
    padding: 1.25rem;
  }

  .hero-title {
    font-size: clamp(2rem, 13vw, 3.5rem);
  }
}
