:root {
  --navy: #1e1b4b;
  --blue: #4338ca;
  --indigo: #6366f1;
  --sky: #0ea5e9;
  --pale: #eef2ff;
  --green: #15803d;
  --red: #b91c1c;
  --amber: #b45309;
  --ink: #1f2937;
}
* { box-sizing: border-box; }
body {
  margin: 0;
  font-family: ui-rounded, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  background: radial-gradient(circle at 10% 10%, #fef3c7 0 4%, transparent 18%),
              radial-gradient(circle at 90% 15%, #bfdbfe 0 5%, transparent 20%),
              radial-gradient(circle at 50% 90%, #fce7f3 0 6%, transparent 24%),
              linear-gradient(135deg, #f5f3ff 0%, #ecfeff 50%, #fff7ed 100%);
  background-attachment: fixed;
  color: var(--ink);
  min-height: 100vh;
}
header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: linear-gradient(125deg, #312e81 0%, #4338ca 45%, #0284c7 100%);
  border-bottom: 4px solid #f59e0b;
  box-shadow: 0 10px 25px -5px rgba(49, 46, 129, 0.35);
  backdrop-filter: blur(8px);
}
.hero-pattern {
  position: relative;
  overflow: hidden;
}
.hero-pattern::before {
  content: "";
  position: absolute;
  width: 320px;
  height: 320px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255,255,255,0.18) 0%, transparent 70%);
  top: -120px;
  left: -60px;
  pointer-events: none;
}
.hero-pattern::after {
  content: "";
  position: absolute;
  width: 380px;
  height: 380px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(253, 224, 71, 0.16) 0%, transparent 70%);
  bottom: -160px;
  right: -80px;
  pointer-events: none;
}
.panel {
  background: rgba(255, 255, 255, 0.95);
  border: 2px solid #ffffff;
  border-radius: 24px;
  padding: clamp(16px, 3vw, 28px);
  box-shadow: 0 14px 34px rgba(49, 46, 129, 0.08);
  backdrop-filter: blur(10px);
  margin-bottom: 22px;
}
.card-hover {
  transition: transform 0.22s cubic-bezier(0.34, 1.56, 0.64, 1), box-shadow 0.22s ease, border-color 0.22s ease;
}
.card-hover:hover {
  transform: translateY(-5px);
  box-shadow: 0 18px 30px rgba(79, 70, 229, 0.16);
}
.btn-pop {
  transition: transform 0.15s ease, filter 0.15s ease, box-shadow 0.15s ease;
}
.btn-pop:hover:not(:disabled) {
  transform: translateY(-2px);
  filter: brightness(1.05);
}
.btn-pop:active:not(:disabled) {
  transform: translateY(1px) scale(0.98);
}
.option {
  width: 100%;
  text-align: left;
  background: #ffffff;
  border: 2px solid #e0e7ff;
  border-radius: 16px;
  padding: 14px 16px;
  margin: 9px 0;
  display: flex;
  align-items: center;
  gap: 14px;
  font-weight: 700;
  color: #1f2937;
  cursor: pointer;
  box-shadow: 0 4px 0 rgba(49, 46, 129, 0.04);
  transition: all 0.16s ease;
}
.option:hover:not(:disabled) {
  border-color: #6366f1;
  background: #f5f3ff;
  transform: translateY(-2px);
  box-shadow: 0 6px 14px rgba(99, 102, 241, 0.14);
}
.option:disabled {
  cursor: default;
}
.letter {
  display: inline-grid;
  place-items: center;
  min-width: 38px;
  height: 38px;
  border-radius: 12px;
  font-weight: 900;
  font-size: 16px;
  flex-shrink: 0;
}
.progress {
  height: 12px;
  background: #e0e7ff;
  border-radius: 999px;
  overflow: hidden;
  box-shadow: inset 0 2px 4px rgba(49, 46, 129, 0.08);
}
.progress div {
  height: 100%;
  background: linear-gradient(90deg, #38bdf8, #6366f1, #a855f7);
  border-radius: 999px;
  transition: width 0.35s ease;
}
.race-card {
  border: 2px solid #e0e7ff;
  border-radius: 20px;
  padding: 18px;
  background: linear-gradient(170deg, #ffffff, #f8faff);
  box-shadow: 0 8px 24px rgba(49, 46, 129, 0.06);
}
.score {
  font-size: clamp(32px, 6vw, 48px);
  font-weight: 1000;
  color: #4338ca;
  text-shadow: 0 3px 0 #e0e7ff;
}
.feedback {
  padding: 14px 18px;
  border-radius: 16px;
  margin-top: 14px;
  font-weight: 700;
}
.correct {
  background: #dcfce7;
  color: #166534;
  border: 1px solid #86efac;
}
.wrong {
  background: #fee2e2;
  color: #991b1b;
  border: 1px solid #fca5a5;
}
table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  overflow: hidden;
  border-radius: 14px;
  font-size: 13.5px;
}
th, td {
  padding: 10px 12px;
  border-bottom: 1px solid #e2e8f0;
}
th {
  background: #eef2ff;
  color: #312e81;
  font-weight: 800;
  text-align: left;
}
tbody tr:nth-child(even) { background: #fafaff; }
tbody tr:hover { background: #f5f3ff; }
.proof {
  display: inline-grid;
  place-items: center;
  width: 30px;
  height: 30px;
  border-radius: 9px;
  font-weight: 900;
  font-size: 12px;
}
.proof.good { background: #dcfce7; color: #166534; border: 1px solid #22c55e; }
.proof.bad { background: #fee2e2; color: #991b1b; border: 1px solid #ef4444; }
.proof.skip { background: #f1f5f9; color: #64748b; }

@keyframes floaty {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-8px); }
}
.animate-float {
  animation: floaty 3.5s ease-in-out infinite;
}

/* Adventure Art Hero Banner on Homepage */
.adventure-art {
  min-height: 250px;
  position: relative;
  overflow: hidden;
  border-radius: 28px;
  background: linear-gradient(135deg, #1e1b4b 0%, #312e81 35%, #4338ca 70%, #0284c7 100%);
  border: 3px solid rgba(251, 191, 36, 0.45);
  box-shadow: 0 20px 40px -15px rgba(49, 46, 129, 0.45), inset 0 2px 0 rgba(255, 255, 255, 0.2);
}
.adventure-art::before {
  content: "";
  position: absolute;
  width: 320px;
  height: 320px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 255, 255, 0.16) 0%, transparent 70%);
  top: -120px;
  right: 10%;
  pointer-events: none;
}
.adventure-art::after {
  content: "";
  position: absolute;
  width: 360px;
  height: 360px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(253, 224, 71, 0.18) 0%, transparent 70%);
  bottom: -150px;
  left: 20%;
  pointer-events: none;
}
.hero-kicker {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px;
  border-radius: 999px;
  background: #fef3c7;
  color: #92400e;
  font-size: 11px;
  font-weight: 900;
  letter-spacing: 1.5px;
  box-shadow: 0 4px 12px rgba(245, 158, 11, 0.25);
}

