/* Direction: Hablo — bright playful language game: cream paper, warm coral orange, chunky rounded shapes */
/* Completed by the platform from the short form: both modes, every
   palette token, each text-on-ground pair at its floor. To restyle, write the
   short form again (the decisions in one :root) and it is completed again. */

:root {
  --canvas: #fdf7ef;
  --surface: #ffffff;
  --surface-2: #faeade;
  --border: #f0ddcc;
  --border-strong: #bbb1aa;
  --ink: #2b1a12;
  --muted: #6b5346;
  --accent: #e4663a;
  --accent-hover: #c25731;
  --accent-ink: #252525;
  --accent-text: #b14520;
  --accent-strong: #8a3312;
  --accent-soft: #fde2d4;
  --accent-border: #f2b69e;
  --success: #2f8f63;
  --success-ink: #2b1a12;
  --success-soft: #e4ebde;
  --success-strong: #256f4d;
  --warning: #a36c05;
  --warning-ink: #ffffff;
  --warning-soft: #f2e6d3;
  --warning-strong: #8a5b05;
  --danger: #b32654;
  --danger-ink: #ffffff;
  --danger-soft: #f4dedc;
  --danger-strong: #b32654;
  --chart-1: #e4663a;
  --chart-2: #a08d09;
  --chart-3: #0a905d;
  --chart-4: #1b9bb9;
  --chart-5: #6566d6;
  --chart-6: #d264b4;

  --font-display: "Baloo 2", "Trebuchet MS", sans-serif;
  --font-body: "Nunito", system-ui, sans-serif;
  --display-weight: 700;
  --display-tracking: -0.01em;
  --radius-card: 26px;
  --radius-btn: 999px;
  --radius-input: 18px;
  --card-pad: 1.5rem;
  --x-lock: #9a8577;
  --x-gold: #a3700a;
  --gradient-sky: linear-gradient(165deg, #faeade 0%, #fdf7ef 55%, #fff3e2 100%);
  --font-mono: "JetBrains Mono Variable", ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  --font-sans: "Nunito", system-ui, sans-serif;
  --eyebrow-tracking: 0.08em;
}

html[data-theme="dark"] {
  --canvas: #140905;
  --surface: #2c221e;
  --surface-2: #201512;
  --border: #352b28;
  --border-strong: #5b5350;
  --ink: #fdf7ef;
  --muted: #a09891;
  --accent: #e4663a;
  --accent-hover: #e87d58;
  --accent-ink: #200e08;
  --accent-text: #e4663a;
  --accent-strong: #e6724a;
  --accent-soft: #421d11;
  --accent-border: #72331d;
  --success: #2f8f63;
  --success-ink: #ffffff;
  --success-soft: #1a261a;
  --success-strong: #4fa07b;
  --warning: #a36c05;
  --warning-ink: #ffffff;
  --warning-soft: #331f05;
  --warning-strong: #b1832b;
  --danger: #b32654;
  --danger-ink: #ffffff;
  --danger-soft: #370f16;
  --danger-strong: #c96486;
  --chart-1: #e4663a;
  --chart-2: #c6ae05;
  --chart-3: #1a9763;
  --chart-4: #0bbadf;
  --chart-5: #6e70e1;
  --chart-6: #ed7ccd;
}

/* Hablo's own screens: the learning path nodes and the quiz options. */

.hablo-sky {
  background-image: var(--gradient-sky);
}

.hablo-dots {
  background-image: radial-gradient(var(--border) 1.5px, transparent 1.6px);
  background-size: 18px 18px;
}

.node {
  position: relative;
  display: grid;
  place-items: center;
  width: 4.5rem;
  height: 4.5rem;
  flex: none;
  border-radius: 999px;
  border: 2px solid var(--border);
  background: var(--surface);
  box-shadow: 0 6px 0 var(--border);
  color: var(--muted);
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}
.node-done {
  background: var(--accent-soft);
  border-color: var(--accent);
  box-shadow: 0 6px 0 var(--accent);
  color: var(--accent-strong);
}
.node-next {
  background: var(--accent);
  border-color: var(--accent-strong);
  box-shadow: 0 7px 0 var(--accent-strong);
  color: var(--accent-ink);
}
.node-locked {
  background: var(--surface-2);
  color: var(--x-lock);
}
a.node:hover {
  transform: translateY(-2px);
}
a.node:active {
  transform: translateY(4px);
  box-shadow: none;
}
a.node:focus-visible {
  outline: 3px solid var(--accent-text);
  outline-offset: 3px;
}

.node-ring::after {
  content: "";
  position: absolute;
  inset: -0.55rem;
  border-radius: 999px;
  border: 2px dashed var(--accent-text);
  opacity: 0.5;
  animation: hablo-spin 16s linear infinite;
}
@keyframes hablo-spin {
  to {
    transform: rotate(360deg);
  }
}

.mascot-bob {
  animation: hablo-bob 3.6s ease-in-out infinite;
}
@keyframes hablo-bob {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-6px);
  }
}

.hablo-pop {
  animation: hablo-pop 0.22s ease-out;
}
@keyframes hablo-pop {
  from {
    transform: translateY(10px);
  }
  to {
    transform: translateY(0);
  }
}

html.reduced-motion .node-ring::after,
html.reduced-motion .mascot-bob,
html.reduced-motion .hablo-pop {
  animation: none;
}

.opt {
  display: block;
  width: 100%;
  text-align: left;
  border-radius: var(--radius-input);
  border: 2px solid var(--border);
  background: var(--surface);
  color: var(--ink);
  padding: 0.95rem 1.1rem;
  font-family: var(--font-body);
  font-weight: 800;
  font-size: 1.05rem;
  box-shadow: 0 4px 0 var(--border);
  transition: transform 0.12s ease, border-color 0.12s ease;
}
.opt:hover {
  border-color: var(--accent);
  transform: translateY(-1px);
}
.opt:active {
  transform: translateY(3px);
  box-shadow: none;
}
.opt:focus-visible {
  outline: 3px solid var(--accent-text);
  outline-offset: 2px;
}

.bar {
  height: 0.9rem;
  border-radius: 999px;
  background: var(--surface-2);
  overflow: hidden;
  border: 1px solid var(--border);
}
.bar > span {
  display: block;
  height: 100%;
  border-radius: 999px;
  background: var(--accent);
  transition: width 0.3s ease;
}
