:root {
  --blue-50: #eff8ff;
  --blue-100: #dbeeff;
  --blue-400: #4d9fff;
  --blue-500: #2f7ff2;
  --blue-600: #1b63d1;
  --amber-400: #ffb020;
  --amber-500: #f59300;
  --red-500: #e43f3f;
  --green-500: #1fa971;
  --ink: #10233d;
  --ink-soft: #4c6079;
  --card-bg: #ffffff;
  --border: #dce8fa;
  --shadow: 0 10px 30px rgba(27, 99, 209, 0.12);
  --radius: 18px;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: "Poppins", system-ui, sans-serif;
  color: var(--ink);
  background: linear-gradient(160deg, var(--blue-50), #fff 45%, #f3f8ff 100%);
  position: relative;
  overflow-x: hidden;
}

.bg-glow {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: -1;
  background-image:
    radial-gradient(circle at 10% 20%, rgba(47, 127, 242, 0.14) 0, transparent 40%),
    radial-gradient(circle at 90% 10%, rgba(245, 147, 0, 0.10) 0, transparent 40%),
    radial-gradient(circle at 80% 80%, rgba(47, 127, 242, 0.10) 0, transparent 40%);
}

.wrap {
  max-width: 760px;
  margin: 0 auto;
  padding: 40px 20px 60px;
}

.header {
  text-align: center;
  margin-bottom: 28px;
}

.header .badge {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--blue-600);
  background: var(--blue-100);
  border-radius: 999px;
  padding: 4px 12px;
  margin-bottom: 10px;
}

.header h1 {
  font-size: 2rem;
  margin: 0 0 8px;
  background: linear-gradient(90deg, var(--blue-600), var(--green-500));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.header p {
  color: var(--ink-soft);
  font-size: 1rem;
  max-width: 560px;
  margin: 0 auto;
}

nav.crumbs {
  text-align: center;
  margin-bottom: 24px;
  font-size: 0.9rem;
}

nav.crumbs a {
  color: var(--blue-600);
  text-decoration: none;
  font-weight: 600;
}

nav.crumbs a:hover {
  text-decoration: underline;
}

.card {
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 24px;
  margin-bottom: 20px;
}

.grid-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
}

@media (max-width: 640px) {
  .grid-2 {
    grid-template-columns: 1fr;
  }
}

.path-card {
  display: block;
  text-decoration: none;
  color: inherit;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.path-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 16px 34px rgba(27, 99, 209, 0.18);
}

.path-card .icon {
  font-size: 2.4rem;
  margin-bottom: 8px;
}

.path-card h2 {
  margin: 0 0 6px;
  font-size: 1.2rem;
}

.path-card p {
  margin: 0;
  color: var(--ink-soft);
  font-size: 0.92rem;
}

.btn {
  display: inline-block;
  border: none;
  border-radius: 12px;
  padding: 12px 22px;
  font-family: inherit;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  text-decoration: none;
  text-align: center;
  color: #fff;
  background: linear-gradient(90deg, var(--blue-600), var(--blue-500));
  box-shadow: 0 8px 20px rgba(27, 99, 209, 0.25);
}

.btn:hover {
  filter: brightness(1.05);
}

.btn.secondary {
  background: #fff;
  color: var(--blue-600);
  border: 1.5px solid var(--blue-400);
  box-shadow: none;
}

.btn.warn {
  background: linear-gradient(90deg, var(--red-500), var(--amber-500));
}

.btn-row {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 16px;
}

input[type="text"] {
  width: 100%;
  padding: 12px 14px;
  border-radius: 10px;
  border: 1.5px solid var(--border);
  font-family: inherit;
  font-size: 1rem;
  margin-top: 8px;
}

input[type="text"]:focus {
  outline: none;
  border-color: var(--blue-400);
}

.note {
  font-size: 0.85rem;
  color: var(--ink-soft);
  margin-top: 6px;
}

.reveal-box {
  border-left: 4px solid var(--amber-500);
  background: #fff8ec;
  border-radius: 12px;
  padding: 18px 20px;
  margin: 18px 0;
}

.reveal-box h3 {
  margin-top: 0;
  color: var(--amber-500);
}

.checklist {
  list-style: none;
  padding: 0;
  margin: 0;
}

.checklist li {
  padding: 10px 0 10px 30px;
  position: relative;
  border-bottom: 1px solid var(--border);
}

.checklist li:last-child {
  border-bottom: none;
}

.checklist li::before {
  content: "✅";
  position: absolute;
  left: 0;
}

.hidden {
  display: none !important;
}

.slot {
  font-size: 3.4rem;
  text-align: center;
  padding: 30px 0;
  background: var(--ink);
  border-radius: 14px;
  margin-bottom: 16px;
  color: #fff;
  min-height: 100px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.slot.spinning {
  animation: pulse 0.15s infinite alternate;
}

@keyframes pulse {
  from { opacity: 1; }
  to { opacity: 0.6; }
}

.chip-balance {
  text-align: center;
  font-weight: 600;
  color: var(--ink-soft);
  margin-bottom: 6px;
}

.quiz-q {
  margin-bottom: 22px;
}

.quiz-q p.question {
  font-weight: 600;
  margin-bottom: 10px;
}

.quiz-opt {
  display: block;
  width: 100%;
  text-align: left;
  padding: 10px 14px;
  margin-bottom: 8px;
  border-radius: 10px;
  border: 1.5px solid var(--border);
  background: #fff;
  cursor: pointer;
  font-family: inherit;
  font-size: 0.95rem;
}

.quiz-opt:hover {
  border-color: var(--blue-400);
}

.quiz-opt.correct {
  border-color: var(--green-500);
  background: #eafff3;
}

.quiz-opt.wrong {
  border-color: var(--red-500);
  background: #fff0f0;
}

.footer-note {
  text-align: center;
  font-size: 0.8rem;
  color: var(--ink-soft);
  margin-top: 30px;
}
