/* Koda: Apple-style light theme. White and studio-gray surfaces, near-black ink, one blue accent. */
:root {
  color-scheme: light;
  --bg: #FFFFFF;
  --surface: #FFFFFF;
  --sunken: #F5F5F7;
  --line: #E8E8ED;
  --line-strong: #D2D2D7;
  --ink: #1D1D1F;
  --muted: #6E6E73;
  --accent: #007AFF;
  --accent-hover: #0066D6;
  --accent-ink: #FFFFFF;
  --accent-soft: #EBF5FF;
  --sky: #38BDF8;
  --warn: #B25000;
  --warn-soft: #FFF4E5;
  --error: #D70015;
  --error-soft: #FFF0F1;
  --term: #1D1D1F;
  /* older names still used by some rules */
  --cyan: var(--accent);
  --blue: var(--accent);
  --green: #248A3D;
  --green-soft: #EAF7EE;
  --yellow: #FF9F0A;
  --radius: 14px;
  --radius-lg: 1.5rem; /* rounded-3xl */
  --lift: 0 1px 2px rgba(0, 0, 0, 0.04), 0 6px 20px rgba(0, 0, 0, 0.06);
  --lift-hover: 0 2px 6px rgba(0, 0, 0, 0.05), 0 16px 40px rgba(0, 0, 0, 0.09);
  --tap: 2.75rem; /* 44px minimum touch target */
  --font: "SF Pro Display", "SF Pro Text", -apple-system, BlinkMacSystemFont, Inter, "Segoe UI", Roboto, sans-serif;
  --mono: ui-monospace, "SF Mono", Menlo, Consolas, monospace;
  font: 16px/1.5 var(--font);
}
* { box-sizing: border-box; }

/* `hidden` must win over any display rule (e.g. #app's grid), so login and app never show together. */
[hidden] { display: none !important; }
html, body { margin: 0; height: 100%; background: var(--bg); color: var(--ink); }
body { -webkit-text-size-adjust: 100%; }
a { color: var(--ink); text-underline-offset: 0.2em; }
h1, h2, h3 { line-height: 1.2; letter-spacing: -0.02em; margin: 0; }
h1 { font-size: 1.75rem; font-weight: 750; }
h2 { font-size: 1.15rem; font-weight: 700; }
h3 { font-size: 1rem; font-weight: 650; letter-spacing: -0.01em; }
p { margin: 0.5rem 0; }
.muted { color: var(--muted); }
small { font-size: 0.85rem; }
.error { color: var(--error); }
.pre { white-space: pre-wrap; }
.label { font-size: 0.75rem; font-weight: 650; text-transform: uppercase; letter-spacing: 0.06em; color: var(--muted); }

/* ---------- controls ---------- */
button, .button, input, textarea, select { font: inherit; color: var(--ink); }
button, .button {
  min-height: var(--tap);
  padding: 0 0.9rem;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius);
  background: var(--surface);
  font-weight: 600;
  cursor: pointer;
  text-decoration: none;
  display: inline-flex; align-items: center; justify-content: center; gap: 0.4rem;
  touch-action: manipulation;
  white-space: nowrap;
}
button:hover, .button:hover { background: var(--sunken); }
button:disabled { opacity: 0.45; cursor: default; }
button.primary, .button.primary { background: var(--accent); border-color: var(--accent); color: var(--accent-ink); }
button.primary:hover { filter: brightness(1.08); }
button.ghost { background: transparent; border-color: transparent; }
button.ghost:hover { background: var(--sunken); }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }

/* 16px+ text stops iOS Safari zooming into inputs */
input, textarea, select {
  width: 100%;
  min-height: var(--tap);
  padding: 0.55rem 0.75rem;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius);
  background: var(--surface);
  font-size: max(16px, 1rem);
}
input:focus, textarea:focus, select:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft); }
textarea { resize: vertical; line-height: 1.45; }
input[type=checkbox], input[type=radio] { width: 1.25rem; min-height: 1.25rem; height: 1.25rem; accent-color: var(--accent); flex: none; margin: 0; box-shadow: none; }
label { display: grid; gap: 0.25rem; }

/* Segmented control: attached buttons, one selected */
.segs { display: inline-flex; border: 1px solid var(--line-strong); border-radius: var(--radius); overflow: hidden; flex-wrap: wrap; }
.seg { min-height: 2.75rem; padding: 0 0.85rem; border: 0; border-right: 1px solid var(--line-strong); border-radius: 0; background: var(--surface); font-weight: 600; display: inline-flex; align-items: center; text-decoration: none; color: var(--ink); }
.seg:last-child { border-right: 0; }
.seg[aria-pressed=true] { background: var(--ink); color: var(--bg); }
.panel { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 1rem; }
.section { border-top: 1px solid var(--line); padding-top: 1.1rem; margin-top: 1.6rem; }
.section > h2 { margin-bottom: 0.5rem; }
.note { border-left: 3px solid var(--accent); background: var(--accent-soft); padding: 0.55rem 0.8rem; margin: 0.6rem 0; }
.row { display: flex; flex-wrap: wrap; gap: 0.5rem; align-items: center; }
.status { font-size: 0.85rem; font-weight: 600; white-space: nowrap; }

/* ---------- login ---------- */
.login { max-width: 24rem; padding: max(3rem, env(safe-area-inset-top)) 1.25rem 2rem; margin: 0 auto; }
.login h1 { font-size: 2rem; }
.login p { color: var(--muted); margin: 0.4rem 0 1.5rem; }
.login form { display: grid; gap: 0.9rem; }

/* ---------- app shell ---------- */
#app {
  display: grid; height: 100dvh;
  grid-template: "top" auto "body" 1fr "nav" auto / minmax(0, 1fr);
}
.top {
  grid-area: top;
  display: flex; align-items: center; gap: 1rem;
  padding: calc(env(safe-area-inset-top) + 0.35rem) max(1rem, env(safe-area-inset-right)) 0.35rem max(1rem, env(safe-area-inset-left));
  border-bottom: 1px solid var(--line); background: var(--surface);
}
.top strong { flex: 1; font-size: 1rem; letter-spacing: -0.01em; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
@media (max-width: 600px) {
  .top { flex-wrap: wrap; gap: 0.25rem 0.45rem; padding: calc(env(safe-area-inset-top) + 0.35rem) 0.65rem 0.35rem; }
  .top strong { font-size: 0.92rem; flex: 1 1 auto; min-width: 6.5rem; }
  #mypoints { font-size: 0.78rem; padding: 0.2rem 0.5rem; }
  .top select { min-height: 2.1rem; padding: 0.2rem 0.35rem; font-size: 0.85rem; }
  .top #logout { min-height: 2.1rem; padding: 0 0.5rem; font-size: 0.85rem; }
}
#mypoints { font-size: 0.9rem; color: var(--muted); font-variant-numeric: tabular-nums; }
.body { grid-area: body; display: flex; min-height: 0; min-width: 0; }
#view { flex: 1; min-width: 0; overflow-y: auto; -webkit-overflow-scrolling: touch; padding: 1.25rem max(1rem, env(safe-area-inset-left)) 2rem; }
#view > * { max-width: 46rem; }
.tabs {
  grid-area: nav;
  display: flex; justify-content: space-around;
  border-top: 1px solid var(--line); background: var(--surface);
  padding: 0 max(0.25rem, env(safe-area-inset-right)) max(0.25rem, env(safe-area-inset-bottom)) max(0.25rem, env(safe-area-inset-left));
}
.tab {
  flex: 1; max-width: 7rem; min-height: 3.4rem;
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 0.15rem;
  color: var(--muted); text-decoration: none; font-size: 0.72rem; font-weight: 600;
  border-top: 2px solid transparent;
}
.tab svg { width: 1.3rem; height: 1.3rem; }
.tab-icon { position: relative; display: inline-flex; }
.tab[aria-current=page] { color: var(--ink); border-top-color: var(--accent); }
@media (min-width: 1000px) {
  #app { grid-template: "top top" auto "nav body" 1fr / 12rem minmax(0, 1fr); }
  .tabs { flex-direction: column; justify-content: flex-start; border-top: 0; border-right: 1px solid var(--line); padding: 0.75rem 0.5rem; gap: 0.1rem; }
  .tab { flex: none; max-width: none; min-height: 2.75rem; flex-direction: row; justify-content: flex-start; gap: 0.6rem; padding: 0 0.7rem; font-size: 0.95rem; border-top: 0; border-left: 2px solid transparent; border-radius: 0 var(--radius) var(--radius) 0; }
  .tab:hover { background: var(--sunken); }
  .tab[aria-current=page] { border-left-color: var(--accent); background: var(--sunken); }
  .tab svg { width: 1.15rem; height: 1.15rem; }
  #view { padding: 1.75rem 2.25rem 3rem; }
}

/* ---------- page headings ---------- */
.page-head { margin-bottom: 1.25rem; }
.page-head p { color: var(--muted); }

/* ---------- code ---------- */
.code { display: flex; flex-direction: column; gap: 0.6rem; height: calc(100dvh - 9.5rem); }
@media (min-width: 1000px) {
  .code { height: calc(100dvh - 7rem); }
}

/* ---------- tables (scores, admin, reports) ---------- */
.table-wrap { overflow-x: auto; margin: 0.4rem 0; }
.table { width: 100%; border-collapse: collapse; font-size: 0.95rem; }
.table th { text-align: left; font-size: 0.75rem; font-weight: 650; text-transform: uppercase; letter-spacing: 0.05em; color: var(--muted); border-bottom: 1px solid var(--line-strong); padding: 0.5rem 0.75rem 0.5rem 0; white-space: nowrap; }
.table td { border-bottom: 1px solid var(--line); padding: 0.6rem 0.75rem 0.6rem 0; vertical-align: middle; }
.table .right { text-align: right; padding-right: 0; }
.admin > .stack > * { min-width: 0; }
.admin .table pre { margin: 0 0 0.25rem; white-space: pre-wrap; overflow-wrap: anywhere; max-width: 22rem; font-size: 0.85rem; }
.table tr.me td { background: var(--accent-soft); }
.table tr.me td:first-child { box-shadow: inset 3px 0 0 var(--accent); padding-left: 0.5rem; }
.rank-num { font-family: var(--mono); color: var(--muted); width: 2.5rem; }
.points { font-weight: 750; font-size: 1.15rem; font-variant-numeric: tabular-nums; }
.badges { font-size: 1rem; letter-spacing: 0.1em; }

details summary { cursor: pointer; min-height: var(--tap); display: flex; align-items: center; color: var(--muted); font-weight: 600; }
details[open] summary { color: var(--ink); }

/* ---------- admin ---------- */
.stat { font-size: 2rem; font-weight: 800; letter-spacing: -0.03em; font-variant-numeric: tabular-nums; }
.toast {
  position: fixed; left: 50%; bottom: calc(4.5rem + env(safe-area-inset-bottom)); transform: translateX(-50%);
  background: var(--ink); color: var(--bg); padding: 0.6rem 1rem; border-radius: var(--radius); font-weight: 600; z-index: 30; max-width: 92vw;
}
@media (min-width: 1000px) {
  .toast { bottom: 1.5rem; }
}
@media (max-width: 600px) {
  h1 { font-size: 1.5rem; }
  .table .hide-sm { display: none; }
}
@keyframes fade { from { opacity: 0.4; } to { opacity: 1; } }
#view > .admin { max-width: 66rem; }
@keyframes pop { from { transform: scale(0.6); opacity: 0; } to { transform: scale(1); opacity: 1; } }

/* ================= Apple-style surfaces, type, and components ================= */
body { -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; }
h1 { font-size: 2.25rem; font-weight: 700; letter-spacing: -0.03em; line-height: 1.1; }
h2 { font-size: 1.5rem; font-weight: 700; letter-spacing: -0.025em; }
h3 { font-size: 1.125rem; font-weight: 600; letter-spacing: -0.015em; }
.eyebrow { margin: 0 0 0.5rem; font-size: 0.875rem; font-weight: 600; letter-spacing: 0.025em; color: var(--accent); }
.label { font-size: 0.875rem; font-weight: 600; letter-spacing: 0.025em; text-transform: none; color: var(--muted); }

/* Buttons: pills, filled gray by default, solid blue for the main action */
button, .button {
  border-radius: 980px; border-color: transparent; background: var(--sunken); padding: 0 1.1rem;
  transition: transform 0.12s ease, background-color 0.15s ease, box-shadow 0.15s ease;
}
button:hover, .button:hover { background: var(--line); }
button:active:not(:disabled), .button:active { transform: scale(0.97); }
button.primary, .button.primary { background: var(--accent); border-color: var(--accent); color: var(--accent-ink); }
button.primary:hover, .button.primary:hover { background: var(--accent-hover); filter: none; }
button.ghost { background: transparent; }
input, textarea, select { border-radius: 12px; border-color: var(--line-strong); }
input:focus, textarea:focus, select:focus { box-shadow: 0 0 0 4px var(--accent-soft); }

/* Segmented control, iOS style */
.segs { border: 0; padding: 2px; gap: 2px; border-radius: 10px; background: var(--sunken); }
.seg { border: 0; border-radius: 8px; background: transparent; color: var(--muted); }
.seg:last-child { border: 0; }
.seg[aria-pressed=true] { background: #fff; color: var(--ink); box-shadow: 0 1px 3px rgba(0, 0, 0, 0.12); }
.panel { background: var(--sunken); border: 0; border-radius: var(--radius-lg); padding: 1.5rem; }
.section { border-top: 1px solid var(--line); padding-top: 2rem; margin-top: 2.5rem; }
.note { border: 0; border-radius: var(--radius); background: var(--accent-soft); padding: 0.85rem 1.1rem; }

/* Header: translucent white bar */
.top {
  border-bottom: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.82); -webkit-backdrop-filter: saturate(180%) blur(20px); backdrop-filter: saturate(180%) blur(20px);
}
.brand, .brand-lockup { display: flex; align-items: center; gap: 0.55rem; font-weight: 600; letter-spacing: -0.01em; }
.brand-mark { flex: none; width: 1.6rem; height: 1.6rem; border-radius: 0.45rem; background: url(/icon.svg) center / cover; }
.top #logout { border-radius: 980px; }
#mypoints { background: var(--accent-soft); color: var(--accent); font-weight: 600; padding: 0.3rem 0.8rem; border-radius: 980px; white-space: nowrap; }
#mypoints.bump { animation: bump 0.5s ease-out; }
@keyframes bump { 40% { transform: scale(1.12); } }

/* Navigation */
.tabs { background: rgba(255, 255, 255, 0.9); -webkit-backdrop-filter: saturate(180%) blur(20px); backdrop-filter: saturate(180%) blur(20px); }
.tab { border-top: 0; }
.tab[aria-current=page] { color: var(--accent); }
@media (min-width: 1000px) {
  .tabs { background: var(--sunken); border-right: 0; padding: 1rem 0.75rem; gap: 0.2rem; }
  .tab { border-left: 0; border-radius: 10px; color: var(--ink); }
  .tab:hover { background: rgba(0, 0, 0, 0.04); }
  .tab[aria-current=page] { background: #fff; color: var(--accent); box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08); }
  #view { padding: 2rem 3rem 4rem; }
}

/* Login */
.login { max-width: 27rem; padding: max(clamp(4rem, 14vh, 8rem), env(safe-area-inset-top)) 1.5rem 3rem; }
.brand-lockup { margin-bottom: 2rem; font-size: 1.125rem; }
.login h1 { font-size: clamp(2.25rem, 7vw, 2.75rem); line-height: 1.08; letter-spacing: -0.035em; }
.login p { font-size: 1.0625rem; margin: 0.9rem 0 2.25rem; }
.login form small { margin-top: -0.6rem; }
.login .login-switch { margin: 1.5rem 0 0; text-align: center; font-weight: 800; }
.login-switch a { color: var(--accent-hover); }
.login form { gap: 1rem; margin-top: 1rem; }
.login form .primary { min-height: 3.1rem; font-size: 1.0625rem; }

/* ---------- the road ---------- */
#view > .learn { max-width: 64rem; margin: 0 auto; }

.login h1 { text-wrap: balance; }
.stat { margin: 0.25rem 0 0; font-size: 3rem; font-weight: 700; letter-spacing: -0.04em; line-height: 1; font-variant-numeric: tabular-nums; }
.dots { display: flex; flex-wrap: wrap; gap: 0.35rem; margin-top: 0.75rem; }
.dots i { width: 0.65rem; height: 0.65rem; border-radius: 50%; background: var(--line-strong); }
.dots i.on { background: var(--accent); }

.learn > .page-head { max-width: 46rem; margin-bottom: 1.5rem; }
.learn > .page-head p { margin-top: 0.5rem; font-size: 1.0625rem; }
.learn > .note { max-width: 46rem; margin-left: auto; margin-right: auto; }

/* Chips */
.chip { display: inline-flex; align-items: center; gap: 0.25rem; padding: 0.15rem 0.6rem; border-radius: 980px; font-size: 0.78rem; font-weight: 600; white-space: nowrap; background: var(--sunken); color: var(--muted); }

/* Progress bar */
.progress-bar { height: 0.5rem; border-radius: 980px; background: var(--line); overflow: hidden; }
.progress-bar span { display: block; height: 100%; min-width: 0.5rem; border-radius: inherit; background: var(--accent); transition: width 0.6s ease; }

@keyframes shake { 20%, 60% { transform: translateX(-6px); } 40%, 80% { transform: translateX(6px); } }

/* Toast and celebration */
#toast { border-radius: 980px; background: var(--ink); color: #fff; font-weight: 600; box-shadow: var(--lift-hover); animation: pop 0.3s ease-out; }

/* Scores */
.points { color: var(--accent); }
.table .rank-num { width: 3.6rem; white-space: nowrap; }
.table tr.rank:nth-child(-n+3) .rank-num { color: var(--accent); font-weight: 700; }
.table tr.me td:first-child { box-shadow: inset 3px 0 0 var(--accent); }

.badges { letter-spacing: 0; }
.badges .chip { margin: 0.15rem 0.3rem 0.15rem 0; }

/* Confetti */
.confetti { position: fixed; inset: 0; pointer-events: none; z-index: 50; overflow: hidden; }
.confetti i { position: absolute; top: -12px; width: 9px; height: 14px; border-radius: 2px; animation: fall linear forwards; }
@keyframes fall { to { top: 105%; transform: rotate(720deg) translateX(40px); opacity: 0.8; } }
@media (max-width: 600px) {
  /* one header row: hide the brand name, keep 40px+ tap targets */
  .top { flex-wrap: nowrap; }
  .top strong { min-width: 0; flex: 1 1 auto; }
  .top select { max-width: 6.5rem; min-height: 2.5rem; }
  .top #logout { padding: 0 0.75rem; min-height: 2.5rem; }
  #view > .learn { margin: 0; }
}
@media (max-width: 420px) {
  .brand > span:last-child { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  #mypoints.bump, #toast, button, .button { animation: none !important; transition: none !important; }
}

/* ================= Pages, answers, leaderboard, profile ================= */
.page { margin: 0 auto; width: 100%; }
#view > .page { max-width: 64rem; }
.page.player, .page.profile { max-width: 36rem !important; }
.page-head .button { margin-top: 0.25rem; }
.player { display: grid; gap: 1rem; align-content: start; }
.screen-text { font-size: 1.4rem; line-height: 1.35; }
.answers { display: grid; gap: 0.6rem; }
.answer { justify-content: flex-start; text-align: left; white-space: normal; height: auto; min-height: 3.25rem; padding: 0.75rem 1rem; border-width: 2px; }
.answer.right { border-color: var(--green); background: var(--green-soft); opacity: 1; }
.answer.wrong { border-color: var(--error); background: var(--error-soft); }
.answer.right:disabled { opacity: 1; }
.stack { display: grid; gap: 0.75rem; min-width: 0; align-content: start; }
.panel .row { margin-top: 0.6rem; }
.stats { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0.6rem; }
.stats .stat { font-size: 2rem; }
.board .segs { margin-bottom: 0.75rem; }

/* ================= The car mascot ================= */
.says { display: flex; align-items: flex-end; gap: 0.6rem; }
.mascot { display: inline-block; flex: none; width: 4.5rem; animation: idle 2.4s ease-in-out infinite; }
.mascot svg { display: block; width: 100%; height: auto; }
.mascot.cheer { animation: hop 0.6s ease 2; }
.mascot.oops { animation: shake 0.4s ease; }
.speech { position: relative; min-width: 0; padding: 0.7rem 0.95rem; border-radius: 18px; border-bottom-left-radius: 6px; background: var(--sunken); line-height: 1.45; overflow-wrap: anywhere; }
.speech .screen-text { font-size: 1.15rem; }
@keyframes idle { 50% { transform: translateY(-4px); } }
@keyframes hop { 40% { transform: translateY(-14px) rotate(-6deg); } 70% { transform: translateY(0) rotate(4deg); } }
@media (prefers-reduced-motion: reduce) {
  .mascot { animation: none !important; }
}

.lab-choices { display: flex; flex-wrap: wrap; gap: 0.5rem; }
.lab-choice { flex: 1 1 6rem; min-height: 3rem; white-space: normal; border-width: 2px; }
.lab-choice[aria-pressed=true] { background: var(--accent); border-color: var(--accent); color: var(--accent-ink); }
.code-line { font-family: var(--mono); font-size: 0.95rem; }
#sound { min-width: var(--tap); padding: 0 0.4rem; font-size: 1.15rem; }
.mascot { cursor: pointer; }

/* ================= Matching ================= */
.match { display: grid; grid-template-columns: 1fr 1fr; gap: 0.6rem; align-items: start; }
.match-col { display: grid; gap: 0.5rem; min-width: 0; }
.match-col button { display: grid; gap: 0.15rem; height: auto; min-height: 3.5rem; padding: 0.5rem 0.65rem; white-space: normal; overflow-wrap: anywhere; font-size: 0.92rem; justify-content: stretch; text-align: left; }
@media (max-width: 420px) {
  .tab { font-size: 0.66rem; }
}

/* ================= The ladder ================= */
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.page.learn { max-width: 36rem !important; }
.unit { margin-top: 1.75rem; }
.unit-banner { display: flex; align-items: center; justify-content: space-between; gap: 0.75rem; padding: 1rem 1.2rem; border-radius: 20px; background: var(--accent); color: #fff; box-shadow: 0 6px 0 var(--accent-hover); }
.unit-banner .label { color: rgba(255, 255, 255, 0.85); }
.unit-banner h2 { margin: 0.1rem 0; font-size: 1.25rem; }
.unit-banner p { margin: 0; font-size: 0.9rem; }
.unit-banner.locked { background: var(--sunken); color: var(--muted); box-shadow: 0 6px 0 var(--line-strong); }
.unit-banner.locked .label { color: var(--muted); }
.ladder { list-style: none; margin: 0; padding: 1.5rem 0 0.25rem; display: grid; gap: 1.1rem; justify-items: center; }
.rung { position: relative; transform: translateX(calc(var(--sway) * 3.2rem)); }
.node-link { display: grid; justify-items: center; gap: 0.45rem; width: 9.5rem; text-align: center; text-decoration: none; color: var(--ink); cursor: pointer; }
.node-circle { position: relative; display: grid; place-items: center; width: 4.5rem; height: 4.5rem; border-radius: 50%; background: var(--accent); color: #fff; font-size: 1.7rem; font-weight: 800; box-shadow: 0 6px 0 var(--accent-hover); transition: transform 0.1s ease, box-shadow 0.1s ease; }
a.node-link:active .node-circle { transform: translateY(5px); box-shadow: 0 2px 0 var(--accent-hover); }
.rung.done .node-circle { background: #34C759; box-shadow: 0 6px 0 var(--green); }
.rung.locked .node-circle { background: var(--line); color: var(--muted); box-shadow: 0 6px 0 var(--line-strong); font-size: 1.3rem; }
.rung.locked .node-name { color: var(--muted); }

/* The current step: a fixed ring drawn by box-shadow (it always follows the button's shape, so it can't drift),
   plus one soft wave that grows out of the button. Only transform and opacity animate, so it stays smooth. */
.rung.current .node-circle { margin: 0.9rem 0 1.2rem; box-shadow: 0 6px 0 var(--accent-hover), 0 0 0 7px #fff, 0 0 0 12px #C7E2FF; }
.rung.current a.node-link:active .node-circle { box-shadow: 0 2px 0 var(--accent-hover), 0 0 0 7px #fff, 0 0 0 12px #C7E2FF; }
.rung.current .node-circle::after { content: ''; position: absolute; inset: 0; border-radius: inherit; background: var(--accent); opacity: 0; animation: pulse 2s ease-out infinite; pointer-events: none; z-index: -1; }
.node-name { font-size: 0.85rem; font-weight: 650; line-height: 1.25; }
.start-flag { padding: 0.25rem 0.7rem; margin-bottom: 0.5rem; border: 2px solid var(--line); border-radius: 12px; background: #fff; color: var(--accent); font-size: 0.8rem; font-weight: 800; letter-spacing: 0.05em; }
.rung-car { position: absolute; top: 3rem; }
.rung-car .mascot { width: 4.2rem; }
.rung-car { right: calc(100% - 1.2rem); }
.rung[style*="--sway:-"] .rung-car { right: auto; left: calc(100% - 1.2rem); }
@keyframes pulse { 0% { transform: scale(1); opacity: 0.35; } 70%, 100% { transform: scale(1.55); opacity: 0; } }
@media (prefers-reduced-motion: reduce) {
  .rung.current .node-circle::after { animation: none; }
}

/* ================= Projects ================= */
.rung.project .node-circle { border-radius: 26%; }
.rung.project .node-name { color: var(--accent); }
.player > * { min-width: 0; }
.page.player { grid-template-columns: minmax(0, 1fr); }

/* Leading spaces matter in Python, so code answers keep them. */
.answer.code-line { white-space: pre-wrap; overflow-wrap: anywhere; }

.small { font-size: 0.82rem; margin: 0; }

/* a unit fades in */
.page.learn .unit { margin-top: 1rem; animation: fade 0.25s ease-out; }
@media (prefers-reduced-motion: reduce) {
  .page.learn .unit { animation: none; }
}

/* Python course */
.py-exercise { display: grid; gap: 0.9rem; min-width: 0; }
.py-code, .py-output { margin: 0; padding: 0.9rem 1rem; border-radius: var(--radius); background: var(--sunken); white-space: pre-wrap; overflow-wrap: anywhere; line-height: 1.8; }
.py-exercise .answer.code-line { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; white-space: pre-wrap; overflow-wrap: anywhere; }
.py-exercise .answer[aria-pressed=true] { border-color: var(--accent); background: var(--accent-soft); }
.py-exercise .answer[data-match]::after { content: attr(data-match); margin-left: auto; padding-left: 0.6rem; color: var(--muted); }
.py-exercise .match { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0.6rem; }
.py-exercise .match-col { display: grid; gap: 0.6rem; align-content: start; }
.py-ordered { display: grid; gap: 0.4rem; margin: 0; padding-left: 1.4rem; min-height: 3.5rem; }
.py-ordered .answer { width: 100%; }
.py-slot { display: inline-block; min-width: 4rem; min-height: 2.5rem; padding: 0 0.6rem; border: 2px solid var(--accent); background: #fff; font-family: inherit; vertical-align: middle; }
.py-slot.empty { border-style: dashed; border-color: var(--muted); color: var(--muted); }
.py-gap, .py-editor { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 1rem; }
.py-gap { display: inline-block; width: auto; max-width: 100%; min-height: 2.5rem; padding: 0.2rem 0.5rem; vertical-align: middle; }
.py-editor { width: 100%; box-sizing: border-box; min-height: 5rem; padding: 0.8rem 1rem; line-height: 1.6; resize: vertical; }
.py-run { display: grid; gap: 0.35rem; }
/* HTML course: the child's page, drawn. It cannot be clicked, so a link in it never leads away. */
.web-preview { display: grid; gap: 0.35rem; }
.web-preview iframe { width: 100%; box-sizing: border-box; height: 4rem; max-height: 18rem; border: 2px solid var(--line); border-radius: 16px; background: #fff; pointer-events: none; }
.py-result { display: grid; gap: 0.4rem; padding: 1rem; border: 2px solid var(--green); border-radius: var(--radius-lg); background: var(--green-soft); }
.py-result.wrong { border-color: var(--error); background: var(--error-soft); }
.py-result p { margin: 0; }
.py-replay { margin: 0; font-weight: 700; color: var(--accent); }
.py-summary { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0.6rem; }
.py-summary strong { font-size: 1.6rem; }

/* ================= Koda polish (2026-11-27): rounded type, chunky buttons, focused lessons, moving mascot ================= */
:root {
  --font: "Nunito", ui-rounded, "SF Pro Rounded", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --ink: #37415C; --muted: #737C96; --line: #E4E9F2; --line-strong: #CDD5E4; --sunken: #F4F6FB;
  --accent: #1A8CFF; --accent-hover: #0A6FE0; --accent-soft: #E3F1FF; --accent-line: #8CCBFF;
  --green: #3F8F12; --green-bright: #58CC02; --green-deep: #46A302; --green-soft: #E2F8D1;
  --error: #D63A45; --error-bright: #FF5A63; --error-soft: #FFE4E6;
  --radius: 16px;
}
body { font-weight: 600; }
h1 { font-weight: 900; letter-spacing: -0.01em; }
h2 { font-weight: 800; }
h3, strong { font-weight: 800; }
.label { font-weight: 800; text-transform: uppercase; letter-spacing: 0.06em; font-size: 0.78rem; }

/* pictures that replace emojis */
.ico { display: inline-block; width: 1.25em; height: 1.25em; vertical-align: -0.25em; flex: none; }
.ico svg { display: block; width: 100%; height: 100%; }

/* chunky buttons that press down */
button, .button {
  border: 2px solid var(--line); border-radius: 16px; background: #fff; color: var(--accent-hover);
  box-shadow: 0 4px 0 var(--line); font-weight: 800; text-transform: uppercase; letter-spacing: 0.04em; font-size: 0.95rem;
  transition: transform 0.08s ease, box-shadow 0.08s ease, background-color 0.15s ease, border-color 0.15s ease;
}
button:hover, .button:hover { background: var(--sunken); }
button:active:not(:disabled), .button:active { transform: translateY(4px); box-shadow: 0 0 0 var(--line); }
button.primary, .button.primary { background: var(--accent); border-color: var(--accent); color: #fff; box-shadow: 0 4px 0 var(--accent-hover); }
button.primary:hover, .button.primary:hover { background: #2E97FF; }
button.primary:active:not(:disabled), .button.primary:active { box-shadow: 0 0 0 var(--accent-hover); }
button:disabled, button.primary:disabled { opacity: 1; background: var(--line); border-color: var(--line); color: #A7B0C4; box-shadow: none; }
button.ghost, button.ghost:hover { border-color: transparent; background: transparent; box-shadow: none; }
button.ghost:hover { background: var(--sunken); }
.answer, .lab-choice, .seg, .py-slot, summary, .tab { text-transform: none; letter-spacing: normal; }
.seg { box-shadow: none; }
input, textarea, select { border: 2px solid var(--line); border-radius: 14px; font-weight: 700; background: var(--sunken); }
input:focus, textarea:focus, select:focus { border-color: var(--accent-line); background: #fff; }

/* answer cards */
.answer, .lab-choice { border: 2px solid var(--line); border-radius: 16px; background: #fff; color: var(--ink); box-shadow: 0 3px 0 var(--line); font-weight: 800; }
.answer:hover:not(:disabled), .lab-choice:hover:not(:disabled) { background: #F5FAFF; }
.answer:active:not(:disabled), .lab-choice:active:not(:disabled) { transform: translateY(3px); box-shadow: none; }
.answer:disabled, .lab-choice:disabled { background: #fff; color: #A7B0C4; border-color: var(--line); box-shadow: 0 3px 0 var(--line); }
.answer[aria-pressed=true], .lab-choice[aria-pressed=true], .py-exercise .answer[aria-pressed=true] { background: var(--accent-soft); border-color: var(--accent-line); color: var(--accent-hover); box-shadow: 0 3px 0 var(--accent-line); }
.answer.right, .answer.right:disabled { background: var(--green-soft); border-color: var(--green-bright); color: var(--green); box-shadow: 0 3px 0 var(--green-bright); }
.answer.wrong { background: var(--error-soft); border-color: var(--error-bright); color: var(--error); box-shadow: 0 3px 0 var(--error-bright); animation: shake 0.4s ease; }
.wrong-answer .answer[aria-pressed=true] { background: var(--error-soft); border-color: var(--error-bright); color: var(--error); box-shadow: 0 3px 0 var(--error-bright); animation: shake 0.45s ease; }
.right-answer .answer[aria-pressed=true], .right-answer .py-slot, .right-answer .py-gap, .right-answer .py-editor { background: var(--green-soft); border-color: var(--green-bright); color: var(--green); box-shadow: 0 3px 0 var(--green-bright); animation: pop-good 0.45s ease; }
.wrong-answer .py-slot, .wrong-answer .py-gap, .wrong-answer .py-editor { background: var(--error-soft); border-color: var(--error-bright); color: var(--error); animation: shake 0.45s ease; }
.py-slot { box-shadow: 0 3px 0 var(--accent-line); border-radius: 12px; border-color: var(--accent-line); color: var(--accent-hover); }
.py-slot.empty { box-shadow: none; }
.py-code, .py-output { border: 2px solid var(--line); border-radius: 16px; font-weight: 600; }
.py-exercise > * { animation: rise 0.35s ease both; }
.py-exercise .answers > .answer, .py-exercise .lab-choices > .lab-choice { animation: pop-in 0.35s cubic-bezier(.34, 1.56, .64, 1) both; }
.py-exercise .answers > :nth-child(2), .py-exercise .lab-choices > :nth-child(2) { animation-delay: 0.06s; }
.py-exercise .answers > :nth-child(3), .py-exercise .lab-choices > :nth-child(3) { animation-delay: 0.12s; }
.py-exercise .answers > :nth-child(n+4), .py-exercise .lab-choices > :nth-child(n+4) { animation-delay: 0.18s; }

/* top bar: streak and XP */
.top { justify-content: flex-end; background: #fff; border-bottom: 2px solid var(--line); -webkit-backdrop-filter: none; backdrop-filter: none; }
#mypoints { display: inline-flex; gap: 1rem; padding: 0; background: none; font-size: 1.05rem; font-weight: 900; }
#mypoints[hidden] { display: none; }
.stat-chip { display: inline-flex; align-items: center; gap: 0.3rem; }
.stat-chip .ico { width: 1.7rem; height: 1.7rem; }
.stat-chip.streak { color: #FF8A00; }
.stat-chip.streak.none { color: #A7B0C4; }
.stat-chip.streak.none .ico { filter: grayscale(1); opacity: 0.55; }
.stat-chip.streak:not(.none) .ico { animation: flicker 1.8s ease-in-out infinite; transform-origin: 50% 90%; }
.stat-chip.xp { color: #D99400; }
.top #sound, .top #logout { width: 2.75rem; padding: 0; min-height: 2.75rem; display: inline-grid; place-items: center; }
.top #sound .ico, .top #logout .ico { width: 1.6rem; height: 1.6rem; }
.top .brand { margin-right: auto; flex: 1; font-size: 1.4rem; font-weight: 900; color: var(--accent); }

/* navigation with colour pictures */
.tabs { background: #fff; border-top: 2px solid var(--line); -webkit-backdrop-filter: none; backdrop-filter: none; }
.tab { font-weight: 800; color: var(--muted); border: 2px solid transparent; border-radius: 14px; margin: 0.3rem 0.1rem; min-height: 3.1rem; transition: background-color 0.15s ease; }
.tab .ico { width: 2rem; height: 2rem; transition: transform 0.2s cubic-bezier(.34, 1.56, .64, 1); }
.tab:hover .ico { transform: scale(1.15) rotate(-6deg); }
.tab[aria-current=page] { background: var(--accent-soft); border-color: var(--accent-line); color: var(--accent-hover); }
.tab[aria-current=page] .ico { animation: pop-in 0.4s cubic-bezier(.34, 1.56, .64, 1); }
.nav-brand { display: none; }
@media (max-width: 999px) {
  .tab-name { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
  .tab { position: relative; }
}
@media (min-width: 1000px) {
  #app { grid-template: "nav top" auto "nav body" 1fr / 16rem minmax(0, 1fr); }
  .top { border-bottom: 0; padding: 1rem 2.5rem 0; }
  .top .brand { visibility: hidden; }
  .tabs { background: #fff; border-right: 2px solid var(--line); padding: 1.25rem 1rem; gap: 0.4rem; }
  .nav-brand { display: flex; align-items: center; gap: 0.6rem; margin: 0 0 1.25rem 0.5rem; font-size: 2rem; font-weight: 900; color: var(--accent); text-decoration: none; }
  .nav-brand .brand-mark { width: 2.4rem; height: 2.4rem; }
  .tab { margin: 0; min-height: 3.4rem; padding: 0 0.9rem; gap: 1rem; font-size: 0.95rem; text-transform: uppercase; letter-spacing: 0.05em; border-radius: 14px; border: 2px solid transparent; }
  .tab:hover { background: var(--sunken); }
  .tab[aria-current=page] { background: var(--accent-soft); border-color: var(--accent-line); color: var(--accent-hover); box-shadow: none; }
  .tab .ico { width: 2.1rem; height: 2.1rem; }
}

/* a lesson fills the screen */
body.focus .top, body.focus .tabs { display: none !important; }
body.focus #app { grid-template: "body" 100% / minmax(0, 1fr); }
body.focus #view { padding: 0; }
body.focus #view > .page.lesson-page { display: flex; flex-direction: column; min-height: 100%; max-width: none !important; gap: 0; }
body.focus #view > .page:not(.lesson-page) { padding: 1rem; }
.lesson-top { position: sticky; top: 0; z-index: 5; display: flex; align-items: center; gap: 0.9rem; width: 100%; max-width: 62rem; margin: 0 auto; padding: calc(env(safe-area-inset-top) + 1rem) 1rem 0.75rem; background: #fff; }
.lesson-close { display: inline-grid; place-items: center; width: 2.75rem; height: 2.75rem; color: #A7B0C4; border-radius: 12px; }
.lesson-close:hover { background: var(--sunken); color: var(--muted); }
.lesson-close .ico { width: 1.5rem; height: 1.5rem; }
.lesson-top .progress-bar { flex: 1; height: 1.1rem; border-radius: 99px; background: var(--line); }
.lesson-top .progress-bar span { position: relative; min-width: 1.1rem; border-radius: 99px; background: linear-gradient(90deg, #1A8CFF, #38BDF8); transition: width 0.7s cubic-bezier(.34, 1.4, .64, 1); }
.lesson-top .progress-bar span::after { content: ''; position: absolute; left: 0.5rem; right: 0.5rem; top: 0.22rem; height: 0.28rem; border-radius: 99px; background: rgba(255, 255, 255, 0.45); }
.lesson-top.hot .progress-bar span { background: linear-gradient(90deg, #FFB000, #FFD43B); }
.combo { min-width: 3.2rem; display: inline-flex; align-items: center; gap: 0.2rem; font-weight: 900; color: #FF8A00; }
.combo.on { animation: pop-in 0.4s cubic-bezier(.34, 1.56, .64, 1); }
.lesson-body { flex: 1; display: grid; gap: 1rem; align-content: center; width: 100%; max-width: 38rem; margin: 0 auto; padding: 0.75rem 1rem 2rem; }
.lesson-body .eyebrow { margin: 0; font-weight: 800; text-transform: uppercase; letter-spacing: 0.06em; font-size: 0.8rem; color: var(--accent); }
.lesson-body .screen-text { font-size: clamp(1.4rem, 4.5vw, 1.9rem); font-weight: 900; }
.lesson-footer { position: sticky; bottom: 0; z-index: 5; border-top: 2px solid var(--line); background: #fff; transition: background-color 0.25s ease; }
.footer-inner { display: flex; flex-wrap: wrap; align-items: center; justify-content: flex-end; gap: 0.75rem 1.25rem; width: 100%; max-width: 62rem; margin: 0 auto; padding: 1rem 1rem calc(env(safe-area-inset-bottom) + 1.1rem); }
.footer-inner .row { margin: 0; }
.footer-inner .row button, .footer-inner .row .button { min-width: 12rem; min-height: 3.2rem; font-size: 1rem; }
@media (max-width: 600px) {
  .footer-inner .row { width: 100%; }
  .footer-inner .row button, .footer-inner .row .button { width: 100%; }
}
.lesson-footer.right { background: var(--green-soft); border-color: var(--green-soft); }
.lesson-footer.wrong { background: var(--error-soft); border-color: var(--error-soft); }
.lesson-footer.right button.primary { background: var(--green-bright); border-color: var(--green-bright); box-shadow: 0 4px 0 var(--green-deep); }
.lesson-footer.wrong button.primary { background: var(--error-bright); border-color: var(--error-bright); box-shadow: 0 4px 0 var(--error); }
.lesson-footer button.primary:active { box-shadow: none !important; }
.footer-inner > [aria-live] { flex: 1 1 20rem; min-width: 0; }
.footer-inner > [aria-live]:empty { display: none; }
.py-result, .py-result.wrong { display: flex; align-items: flex-start; gap: 0.9rem; padding: 0; border: 0; background: none; color: var(--green); animation: slide-up 0.35s cubic-bezier(.34, 1.4, .64, 1); }
.py-result.wrong { color: var(--error); }
.py-result .words { display: grid; gap: 0.35rem; min-width: 0; flex: 1; }
.py-result .words > strong { font-size: 1.45rem; font-weight: 900; }
.py-result .label { color: inherit; }
.py-result .py-code { background: #fff; border-color: transparent; color: var(--ink); max-height: 9rem; overflow: auto; padding: 0.5rem 0.8rem; }
.py-result .muted { color: inherit; opacity: 0.85; }
.result-badge { display: grid; place-items: center; flex: none; width: 3.6rem; height: 3.6rem; border-radius: 50%; background: #fff; animation: pop-in 0.5s cubic-bezier(.34, 1.8, .64, 1) both; }
.result-badge .ico { width: 2.2rem; height: 2.2rem; }
.py-replay { display: inline-flex; align-items: center; gap: 0.4rem; color: #E07B00; text-transform: uppercase; font-size: 0.85rem; letter-spacing: 0.05em; }

/* end of a lesson */
.finish { display: grid; justify-items: center; gap: 1rem; text-align: center; }
.finish .mascot { width: 12rem; }
.finish > div[data-project-end] { width: 100%; }
.finish .py-code { width: 100%; text-align: left; }
.finish h1 { color: #E59E00; font-size: 2rem; animation: pop-in 0.5s 0.15s cubic-bezier(.34, 1.7, .64, 1) both; }
.py-summary { width: 100%; max-width: 24rem; }
.stat-card { overflow: hidden; border: 3px solid #FFC800; border-radius: 18px; background: #FFC800; animation: pop-in 0.5s 0.35s cubic-bezier(.34, 1.6, .64, 1) both; }
.stat-card + .stat-card { border-color: var(--green-bright); background: var(--green-bright); animation-delay: 0.5s; }
.stat-card .label { display: block; padding: 0.25rem; color: #fff; }
.stat-card strong { display: flex; align-items: center; justify-content: center; gap: 0.4rem; padding: 0.9rem; border-radius: 15px; background: #fff; font-size: 1.7rem; font-weight: 900; color: #D99400; }
.stat-card + .stat-card strong { color: var(--green); }

/* the road */
.unit-banner { border-radius: 20px; background: linear-gradient(135deg, #1A8CFF 0%, #38BDF8 100%); box-shadow: 0 5px 0 var(--accent-hover); animation: rise 0.4s ease both; }
.unit-banner h2 { font-size: 1.4rem; font-weight: 900; }
.unit-banner.locked { background: var(--sunken); box-shadow: 0 5px 0 var(--line-strong); }
.rung { animation: pop-in 0.45s cubic-bezier(.34, 1.56, .64, 1) both; }
.rung:nth-child(2) { animation-delay: 0.07s; }
.rung:nth-child(3) { animation-delay: 0.14s; }
.rung:nth-child(4) { animation-delay: 0.21s; }
.rung:nth-child(n+5) { animation-delay: 0.28s; }
.rung.open { z-index: 4; }
button.node-link { min-height: 0; padding: 0; border: 0; background: none; box-shadow: none; text-transform: none; letter-spacing: normal; font-size: inherit; color: var(--ink); }
button.node-link:hover { background: none; }
button.node-link:active:not(:disabled) { transform: none; box-shadow: none; }
.node-circle { width: 5rem; height: 4.5rem; font-size: 1.9rem; box-shadow: 0 8px 0 var(--accent-hover); background: linear-gradient(160deg, #3AA0FF, #1A8CFF 60%); }
.node-circle::before { content: ''; position: absolute; left: 18%; top: 12%; width: 38%; height: 22%; border-radius: 50%; background: rgba(255, 255, 255, 0.28); transform: rotate(-18deg); }
.node-circle .ico { width: 2.5rem; height: 2.5rem; color: #fff; }
a.node-link:hover .node-circle, button.node-link:hover .node-circle { filter: brightness(1.07); }
a.node-link:active .node-circle, button.node-link:active .node-circle { transform: translateY(6px); box-shadow: 0 2px 0 var(--accent-hover); }
.rung.done .node-circle { background: linear-gradient(160deg, #7BDD2B, #58CC02 60%); box-shadow: 0 8px 0 var(--green-deep); }
.rung.locked .node-circle { background: var(--line); box-shadow: 0 8px 0 var(--line-strong); }
.rung.locked .node-circle .ico { color: #A7B0C4; }
.rung.current .node-circle { box-shadow: 0 8px 0 var(--accent-hover), 0 0 0 8px #fff, 0 0 0 14px #CBE6FF; }
.rung.current a.node-link:active .node-circle, .rung.current button.node-link:active .node-circle { box-shadow: 0 2px 0 var(--accent-hover), 0 0 0 8px #fff, 0 0 0 14px #CBE6FF; }
.rung.project .node-circle .ico { width: 2.9rem; height: 2.9rem; }
.rung.project.current .node-circle { background: linear-gradient(160deg, #FFE066, #FFC800 60%); box-shadow: 0 8px 0 #D99400, 0 0 0 8px #fff, 0 0 0 14px #FFEFB0; }
.node-name { font-weight: 800; }
.start-flag { border-radius: 14px; font-weight: 900; text-transform: uppercase; animation: float 1.6s ease-in-out infinite; box-shadow: 0 3px 0 var(--line); }
.node-pop { position: absolute; left: 50%; top: calc(100% + 0.6rem); z-index: 6; width: 15.5rem; display: grid; gap: 0.5rem; padding: 1rem; border-radius: 18px; background: var(--accent); color: #fff; text-align: left; translate: calc(-50% - var(--sway, 0) * 2.4rem) 0; box-shadow: 0 6px 0 var(--accent-hover); animation: pop-down 0.28s cubic-bezier(.34, 1.56, .64, 1) both; }
.node-pop::before { content: ''; position: absolute; left: calc(50% + var(--sway, 0) * 2.4rem); top: -0.45rem; width: 1rem; height: 1rem; background: inherit; transform: translateX(-50%) rotate(45deg); border-radius: 3px; }
.node-pop p { margin: 0; font-size: 0.9rem; opacity: 0.92; }
.node-pop .button { justify-content: center; border-color: #fff; background: #fff; color: var(--accent-hover); box-shadow: 0 4px 0 #BFE0FF; }
.page-head h1 .ico { margin-right: 0.35rem; }

/* the car */
.mascot { width: 5.5rem; }
.mascot, .mascot.cheer, .mascot.oops { animation: none; }
.mascot svg { overflow: visible; }
.mascot .body-car { animation: car-breathe 2.2s ease-in-out infinite; transform-origin: 120px 180px; }
.mascot .antenna { animation: antenna 2.2s ease-in-out infinite; transform-origin: 120px 42px; }
.mascot .eye { animation: blink 4.4s infinite; transform-box: fill-box; transform-origin: center; }
.mascot .sparkles path { animation: twinkle 1s ease-in-out infinite alternate; transform-box: fill-box; transform-origin: center; }
.mascot .sparkles path:nth-child(2) { animation-delay: 0.3s; }
.mascot .sparkles path:nth-child(3) { animation-delay: 0.6s; }
.mascot .sweat { animation: drip 1.4s ease-in infinite; }
.mascot .dots circle { animation: twinkle 0.8s ease-in-out infinite alternate; transform-box: fill-box; transform-origin: center; }
.mascot .dots circle:nth-child(2) { animation-delay: 0.2s; }
.mascot .dots circle:nth-child(3) { animation-delay: 0.4s; }
.mascot.cheer .body-car { animation: car-jump 0.8s cubic-bezier(.3, 1.6, .6, 1) 3, car-breathe 2.2s 2.4s ease-in-out infinite; }
.mascot.oops .body-car { animation: shake 0.45s ease 2, car-breathe 2.2s 0.9s ease-in-out infinite; }
.mascot.think .body-car { animation: car-think 2.6s ease-in-out infinite; }
.mascot.poked .body-car { animation: car-poke 0.6s ease; }
.rung-car .mascot { width: 5.4rem; }
.speech { border: 2px solid var(--line); border-radius: 18px; font-weight: 700; animation: pop-in 0.35s cubic-bezier(.34, 1.56, .64, 1) both; }
.login-card > .mascot { width: 10rem; margin: 0 auto 0.5rem; display: block; }
@keyframes rise { from { opacity: 0; transform: translateY(12px); } }
@keyframes pop-in { from { opacity: 0; transform: scale(0.75); } }
@keyframes pop-down { from { opacity: 0; scale: 0.85; margin-top: -0.6rem; } }
@keyframes pop-good { 40% { transform: scale(1.04); } }
@keyframes slide-up { from { opacity: 0; transform: translateY(1.5rem); } }
@keyframes float { 50% { translate: 0 -7px; } }
@keyframes flicker { 50% { transform: scale(1.08, 1.14) rotate(-3deg); } }
@keyframes car-breathe { 50% { transform: translateY(-5px) scale(1.012, 0.99); } }
@keyframes antenna { 25% { transform: rotate(9deg); } 75% { transform: rotate(-9deg); } }
@keyframes blink { 0%, 93%, 100% { transform: scaleY(1); } 96% { transform: scaleY(0.08); } }
@keyframes twinkle { from { transform: scale(0.55) rotate(0); opacity: 0.45; } to { transform: scale(1.15) rotate(25deg); opacity: 1; } }
@keyframes drip { 0% { transform: translateY(-3px); opacity: 0; } 30% { opacity: 1; } 100% { transform: translateY(14px); opacity: 0; } }
@keyframes car-jump { 0%, 100% { transform: translateY(0) scale(1); } 15% { transform: translateY(0) scale(1.08, 0.9); } 45% { transform: translateY(-30px) scale(0.96, 1.06); } 70% { transform: translateY(0) scale(1.05, 0.94); } }
@keyframes car-think { 50% { transform: rotate(-5deg); } }
@keyframes car-poke { 20% { transform: rotate(-9deg) translateY(-10px); } 45% { transform: rotate(8deg) translateY(-5px); } 70% { transform: rotate(-4deg); } }
@media (prefers-reduced-motion: reduce) {
  .mascot *, .py-exercise > *, .py-exercise .answers > *, .py-exercise .lab-choices > *, .rung, .unit-banner, .start-flag, .node-pop, .py-result, .result-badge, .finish h1, .stat-card, .speech, .combo.on, .tab .ico, .stat-chip .ico, .answer.wrong, .right-answer *, .wrong-answer * { animation: none !important; }
  .lesson-top .progress-bar span { transition: none; }
}

/* Ayarlar: sound picker */
.sound-settings { display: grid; gap: 0.75rem; }
.sound-settings h3 { margin: 0 0 0.5rem; }
.sound-option { display: inline-flex; align-items: center; gap: 0.4rem; min-width: 4.2rem; min-height: var(--tap); }
.sound-option .ico { width: 1rem; height: 1rem; }
.sound-option[aria-pressed="true"] { border-color: var(--green); background: var(--green-soft); color: var(--green); }

/* course switcher: the button in the top bar and the list it opens */
.course-button { display: inline-flex; align-items: center; gap: 0.45rem; min-height: var(--tap); padding: 0 0.7rem; border: 2px solid var(--line); border-radius: 14px; background: #fff; }
.course-button .ico { width: 1.7rem; height: 1.7rem; }
.course-list { position: fixed; inset: calc(env(safe-area-inset-top) + 4.25rem) 0.75rem auto auto; width: min(20rem, calc(100vw - 1.5rem)); max-height: calc(100dvh - 6rem); overflow-y: auto; margin: 0; padding: 1rem; border: 2px solid var(--line); border-radius: 20px; background: #fff; color: var(--ink); font-size: 1rem; font-weight: 800; box-shadow: var(--lift-hover); }
.course-list h2 { margin: 0 0 0.6rem; font-size: 1.1rem; }
.course-list ul { display: grid; gap: 0.4rem; margin: 0; padding: 0; list-style: none; }
.course { display: flex; align-items: center; gap: 0.7rem; width: 100%; min-height: 3.25rem; padding: 0 0.75rem; border: 2px solid transparent; border-radius: 14px; text-align: left; }
button.course { text-transform: none; letter-spacing: normal; }
button.course[aria-current] { border-color: var(--accent); background: var(--accent-soft); }
.course.soon { color: var(--muted); }
.course.soon .course-mark { filter: grayscale(1); opacity: 0.6; }
.course-mark { display: grid; place-items: center; width: 2rem; }
.course-mark .ico { width: 1.7rem; height: 1.7rem; }
.course-name { flex: 1; }
@media (max-width: 480px) {
  #mypoints { gap: 0.5rem; font-size: 0.95rem; }
  .top .course-title { display: none; }
  .course-button { padding: 0 0.5rem; }
}
/* Browsers without popover (iPad before iOS 17) would show the list all the time. */
@supports not selector(:popover-open) { .course-list { display: none; } }

/* ================= Front page (signed out) ================= */
.login .back { display: inline-flex; align-items: center; min-height: var(--tap); margin-bottom: 0.5rem; color: var(--accent-hover); font-weight: 800; text-decoration: none; }
.login { padding-top: max(1.5rem, env(safe-area-inset-top)); }
.home { overflow-x: clip; }
.home-wrap { width: 100%; max-width: 68rem; margin: 0 auto; padding: 0 1.25rem; }
.home-top { position: sticky; top: 0; z-index: 10; display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding: calc(env(safe-area-inset-top) + 0.6rem) max(1.25rem, calc((100% - 65.5rem) / 2)) 0.8rem; background: rgba(255, 255, 255, 0.94); -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px); border-bottom: 2px solid var(--line); }
.home-top .brand { font-size: 1.5rem; font-weight: 900; color: var(--accent); }
.home-top .brand-mark { width: 2.2rem; height: 2.2rem; }
.home-top .brand > span:last-child { display: inline; } /* phones hide the name only in the app's header */
.home .button { display: inline-flex; align-items: center; justify-content: center; text-decoration: none; }

/* hero: gradient, the code window, the car on its road */
.hero { position: relative; overflow: hidden; padding: clamp(2.5rem, 7vw, 5rem) 0 0; color: #fff; background: linear-gradient(150deg, #0757BD 0%, #0A6FE0 45%, #1A8CFF 75%, #38BDF8 100%); }
.hero::before, .hero::after { content: ''; position: absolute; border-radius: 50%; background: rgba(255, 255, 255, 0.08); animation: drift 11s ease-in-out infinite alternate; }
.hero::before { width: 26rem; height: 26rem; left: -9rem; top: -10rem; }
.hero::after { width: 18rem; height: 18rem; right: -6rem; bottom: 2rem; animation-delay: -5s; }
.hero .home-wrap { position: relative; z-index: 1; display: grid; gap: 2.5rem; align-items: center; }
.hero-text > * { animation: rise 0.6s ease both; }
.hero-text > :nth-child(2) { animation-delay: 0.1s; }
.hero-text > :nth-child(3) { animation-delay: 0.2s; }
.hero-text > :nth-child(4) { animation-delay: 0.3s; }
.hero-tag { display: inline-block; margin: 0 0 1rem; padding: 0.35rem 0.9rem; border-radius: 99px; background: rgba(0, 30, 80, 0.28); font-size: 0.9rem; font-weight: 800; }
.hero h1 { font-size: clamp(2.4rem, 7vw, 4rem); line-height: 1.05; text-wrap: balance; }
.hero-lead { max-width: 30rem; margin: 1.1rem 0 1.75rem; font-size: 1.2rem; font-weight: 700; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 0.8rem; }
.hero-actions > * { min-height: 3.4rem; padding: 0 1.8rem; font-size: 1.05rem; }
.hero .button, .cta .button { border-color: #fff; background: #fff; color: var(--accent-hover); box-shadow: 0 5px 0 rgba(0, 30, 80, 0.3); }
.hero .button:active, .cta .button:active { box-shadow: 0 0 0 transparent; }
.hero button.outline { border-color: rgba(255, 255, 255, 0.7); background: transparent; color: #fff; box-shadow: 0 5px 0 rgba(0, 30, 80, 0.2); }
.hero button.outline:hover { background: rgba(255, 255, 255, 0.14); }
.hero :focus-visible, .cta :focus-visible { outline: 3px solid #FFD43B; outline-offset: 3px; }
.hero-art { position: relative; width: 100%; max-width: 28rem; margin: 0 auto; padding: 1.5rem 0 5.5rem; animation: rise 0.7s 0.25s ease both; }
.demo { overflow: hidden; border-radius: 20px; background: #17213C; box-shadow: 0 20px 45px rgba(0, 20, 60, 0.35); text-align: left; }
.demo-bar { display: flex; align-items: center; gap: 0.4rem; padding: 0.75rem 1rem; background: #22305A; color: #AFC0E8; font-size: 0.85rem; }
.demo-bar i { width: 0.7rem; height: 0.7rem; border-radius: 50%; background: #FF5A63; }
.demo-bar i:nth-child(2) { background: #FFC800; }
.demo-bar i:nth-child(3) { background: #58CC02; }
.demo-bar span { margin-left: auto; }
.demo pre { margin: 0; font-family: var(--mono); white-space: pre-wrap; overflow-wrap: anywhere; }
.demo .demo-code { height: 5.6rem; padding: 1.1rem 1.2rem; color: #fff; font-size: clamp(0.95rem, 3.6vw, 1.1rem); line-height: 1.6; }
.demo-code code { font: inherit; }
.caret { display: inline-block; width: 0.55ch; height: 1.15em; margin-left: 2px; vertical-align: text-bottom; background: #5CF2C8; animation: caret 0.9s steps(1) infinite; }
.demo-result { height: 5.4rem; padding: 0.7rem 1.2rem; border-top: 2px solid #2E3D6B; }
.demo-result span { color: #AFC0E8; font-size: 0.75rem; text-transform: uppercase; letter-spacing: 0.08em; }
.demo-result pre { color: #5CF2C8; line-height: 1.45; }
.demo-result.ran pre { animation: rise 0.35s ease both; }
.hero-chip { position: absolute; display: inline-flex; align-items: center; gap: 0.35rem; padding: 0.45rem 0.85rem; border-radius: 14px; background: #fff; color: var(--ink); box-shadow: 0 8px 20px rgba(0, 20, 60, 0.25); font-weight: 900; animation: float 3s ease-in-out infinite; }
.hero-chip .ico { width: 1.5rem; height: 1.5rem; }
.chip-xp { top: 0; right: 0.5rem; }
.chip-streak { left: 0; bottom: 2rem; animation-delay: -1s; }
.chip-cup { right: 0; bottom: 2.6rem; animation-delay: -2s; }
.hero-car { position: absolute; left: 50%; bottom: -0.55rem; translate: -50% 0; }
.hero-car .mascot { width: 9rem; animation: drive-in 1.2s 0.4s cubic-bezier(.2, .9, .3, 1.15) both; }
.hero-road { position: relative; z-index: 0; height: 3.2rem; background: linear-gradient(#17213C, #17213C) bottom / 100% 100% no-repeat; }
.hero-road::after { content: ''; position: absolute; left: 0; right: -6rem; top: 50%; height: 0.35rem; margin-top: -0.17rem; background: repeating-linear-gradient(90deg, #FFD43B 0 3rem, transparent 3rem 6rem); animation: road 1.1s linear infinite; }

/* sections */
.home-section { padding: clamp(3.5rem, 8vw, 5.5rem) 0; scroll-margin-top: 4rem; }
.home-section.tinted { background: var(--sunken); }
.home h2 { font-size: clamp(1.8rem, 4.5vw, 2.5rem); font-weight: 900; text-align: center; text-wrap: balance; }
.home h2:focus { outline: none; }
.section-lead { text-align: center; color: var(--muted); font-size: 1.1rem; }
.home ol, .home ul { margin: 0; padding: 0; list-style: none; }
.steps, .features, .home .units { display: grid; gap: 1.1rem; grid-template-columns: repeat(auto-fit, minmax(min(100%, 14rem), 1fr)); }
.home .steps, .home .features, .home .units { margin-top: 2.25rem; }
.card { padding: 1.4rem; border: 2px solid var(--line); border-radius: 22px; background: #fff; box-shadow: 0 5px 0 var(--line); }
.card h3, .unit-card h3 { margin-top: 0.7rem; }
.card p, .unit-card p { margin-bottom: 0; color: var(--muted); }
.step-number { display: inline-grid; place-items: center; width: 2.2rem; height: 2.2rem; margin-top: 1.1rem; border-radius: 50%; background: var(--accent); color: #fff; box-shadow: 0 3px 0 var(--accent-hover); font-weight: 900; }
.features .card { text-align: center; transition: translate 0.2s ease; }
.features .ico { width: 3.4rem; height: 3.4rem; }
.features .card:hover .ico { animation: car-poke 0.6s ease; }

/* the small moving picture on top of each step */
.mini { display: flex; align-items: center; justify-content: center; gap: 0.6rem; height: 7rem; border-radius: 16px; background: var(--accent-soft); }
.mini-example code { padding: 0.55rem 0.8rem; border-radius: 10px; background: linear-gradient(90deg, #3350A0, #3350A0) left / 0% 100% no-repeat #17213C; color: #fff; font-family: var(--mono); font-size: 0.95rem; animation: read 3.2s ease-in-out infinite; }
.mini-tiles { position: relative; align-items: flex-end; padding-bottom: 1.1rem; }
.mini-tiles b { padding: 0.35rem 0.7rem; border: 2px solid var(--accent-line); border-radius: 10px; background: #fff; box-shadow: 0 3px 0 var(--accent-line); color: var(--accent-hover); font-family: var(--mono); }
.mini-slot { position: absolute; top: 1.1rem; left: 50%; translate: -50% 0; width: 5.2rem; height: 2.5rem; border: 2px dashed var(--accent); border-radius: 10px; }
.mini-tiles .fly { position: relative; animation: fly 3s cubic-bezier(.34, 1.3, .64, 1) infinite; }
.mini-master [data-icon] { display: grid; place-items: center; width: 3rem; height: 3rem; border-radius: 50%; background: #fff; color: var(--green-bright); box-shadow: 0 3px 0 var(--accent-line); animation: tick 3.2s ease infinite both; }
.mini-master [data-icon]:nth-child(2) { animation-delay: 0.6s; }
.mini-master [data-icon]:nth-child(3) { color: var(--accent); animation-delay: 1.2s; }
.mini .ico { width: 1.8rem; height: 1.8rem; }
.mini-cup .ico { width: 4.4rem; height: 4.4rem; animation: cup 2.4s ease-in-out infinite; }

/* course units */
.unit-card { padding: 1.4rem; border-radius: 22px; background: linear-gradient(135deg, #0A6FE0, #1A8CFF); box-shadow: 0 5px 0 #0757BD; color: #fff; }
.unit-card .label, .unit-card p { color: #fff; }
.unit-card.soon { background: var(--sunken); box-shadow: 0 5px 0 var(--line-strong); color: var(--ink); }
.unit-card.soon .label, .unit-card.soon p { color: var(--muted); }

/* parents and prices */
.parents { display: grid; gap: 2rem; align-items: center; }
.parents h2 { text-align: left; }
.home .parents ul { display: grid; gap: 0.8rem; margin-top: 1.2rem; padding-left: 1.2rem; list-style: disc; color: var(--muted); }
.prices { display: grid; gap: 1rem; grid-template-columns: repeat(auto-fit, minmax(11rem, 1fr)); }
.prices .free-now { grid-column: 1 / -1; margin: 0; }
.prices .card.best { border-color: var(--accent); box-shadow: 0 5px 0 var(--accent-hover); }
.price { font-size: 2.4rem; font-weight: 900; color: var(--ink) !important; margin: 0.4rem 0 0 !important; }

.cta { padding: 3.5rem 0 4rem; background: linear-gradient(135deg, #0757BD, #0A6FE0 55%, #1A8CFF); color: #fff; text-align: center; }
.cta .mascot { width: 9rem; }
.cta h2 { margin: 0.5rem 0 1.5rem; }
.cta .button { min-height: 3.4rem; padding: 0 2.5rem; font-size: 1.05rem; }
.home-footer { padding: 1.5rem 1.25rem calc(1.5rem + env(safe-area-inset-bottom)); background: #17213C; color: #AFC0E8; text-align: center; font-size: 0.9rem; }

/* sections rise into view (the script adds .waiting) */
.home [data-reveal] { transition: opacity 0.6s ease, translate 0.6s cubic-bezier(.34, 1.4, .64, 1); transition-delay: calc(var(--i, 0) * 90ms); }
.home .features .card:not(.waiting):hover { translate: 0 -6px; transition-delay: 0s; }
.home [data-reveal].waiting { opacity: 0; translate: 0 2.5rem; }

@media (min-width: 860px) {
  .hero .home-wrap { grid-template-columns: 1.1fr 1fr; }
  .parents { grid-template-columns: 1.1fr 1fr; gap: 3.5rem; }
}
@media (max-width: 859px) {
  .hero { text-align: center; }
  .hero-lead { margin-left: auto; margin-right: auto; }
  .hero-actions { justify-content: center; }
}
@keyframes drift { to { translate: 3rem 2rem; scale: 1.15; } }
@keyframes caret { 50% { opacity: 0; } }
@keyframes road { to { translate: -6rem 0; } }
@keyframes drive-in { from { opacity: 0; transform: translateX(-60vw) rotate(-6deg); } }
@keyframes read { 55%, 85% { background-size: 100% 100%; } }
@keyframes fly { 0%, 15% { translate: 0 0; } 40%, 85% { translate: 1.7rem -3.05rem; } }
@keyframes tick { 0% { scale: 0.6; opacity: 0.35; } 18%, 100% { scale: 1; opacity: 1; } }
@keyframes cup { 15% { rotate: -10deg; scale: 1.1; } 30% { rotate: 9deg; } 45% { rotate: 0deg; scale: 1; } }
@media (prefers-reduced-motion: reduce) {
  .home *, .home *::before, .home *::after { animation: none !important; transition: none !important; }
}

.lang-mark { display: inline-grid; place-items: center; width: 1.5em; height: 1.5em; border-radius: 0.35em; background: #f7df1e; color: #222; font-size: 0.8em; font-weight: 900; line-height: 1; vertical-align: -0.15em; }
.lang-mark.java { background: #c05a00; color: #fff; }
.lang-mark.c { background: #1f5fa8; color: #fff; }
.lang-mark.web { background: #c63d16; color: #fff; font-size: 0.65em; }

/* The coach: help on a question, and its verdict */
.coach-help:empty { display: none; }
.coach-help p, .coach p { margin: 0.35rem 0; }
.coach { text-align: left; }
button.linklike { background: none; border: 0; box-shadow: none; padding: 0; min-height: 0; font: inherit; text-decoration: underline; color: inherit; text-transform: none; }

/* ---------- account settings and Google ---------- */
.account-settings { display: grid; gap: 0.75rem; margin-bottom: 2rem; }
.settings .panel h3 { margin: 0 0 0.5rem; }
.settings .panel p { margin: 0.25rem 0 0.75rem; overflow-wrap: anywhere; }
.settings form { display: grid; gap: 0.75rem; max-width: 24rem; }
.settings form p { margin: 0; }
.settings form p:empty { display: none; }
.settings .panel input { background: #fff; }
.settings .panel button:not(.sound-option) { justify-self: start; }
.settings button.danger { color: var(--error); border-color: var(--error-bright); box-shadow: 0 4px 0 var(--error-bright); }
.settings .sound-settings { margin-bottom: 2rem; }
.settings h2 { margin-bottom: 0.75rem; }
.login .or { margin: 1.25rem 0 0.75rem; text-align: center; font-weight: 800; }
button.google { display: flex; align-items: center; justify-content: center; gap: 0.6rem; width: 100%; min-height: 3.1rem; color: var(--ink); text-transform: none; letter-spacing: normal; }
button.google svg { width: 1.25rem; height: 1.25rem; flex: none; }
.login .error { margin: 0; color: var(--error); }

/* ---------- the apps' first screens (views/welcome.js) ---------- */
.welcome { position: fixed; inset: 0; z-index: 20; display: flex; flex-direction: column; background: var(--bg); }
.welcome > * { width: 100%; max-width: 30rem; margin-inline: auto; }
.welcome-top { display: flex; align-items: center; gap: 0.75rem; padding: calc(env(safe-area-inset-top) + 0.75rem) 1.25rem 0 0.6rem; }
.welcome-back { min-width: var(--tap); padding: 0; font-size: 1.6rem; color: var(--muted); }
.welcome-top .progress-bar { flex: 1; height: 1rem; }
.welcome-body { flex: 1; min-height: 0; overflow-y: auto; padding: 1.25rem; }
.welcome-body.middle { display: flex; flex-direction: column; align-items: center; justify-content: safe center; gap: 0.75rem; text-align: center; }
.welcome-body.middle .mascot { width: 11rem; }
.welcome-body.middle p { max-width: 20rem; margin: 0; font-size: 1.15rem; font-weight: 700; color: #59627A; }
.welcome .wordmark { font-size: 3.75rem; font-weight: 900; letter-spacing: -0.04em; color: var(--accent); }
.welcome .eyebrow { margin: 0; font-size: 1rem; text-transform: uppercase; letter-spacing: 0.1em; color: var(--accent-hover); }
.welcome-actions { display: flex; flex-direction: column; gap: 0.9rem; padding: 0.9rem 1.25rem calc(env(safe-area-inset-bottom) + 1.25rem); }
.welcome-actions button, .welcome-actions .button { width: 100%; min-height: 3.25rem; }
.ask { display: flex; align-items: center; gap: 1.1rem; margin-bottom: 1.25rem; }
.ask .mascot { flex: none; width: 5.5rem; }
.bubble { position: relative; padding: 0.8rem 1rem; border: 2px solid var(--line-strong); border-radius: 16px; font-size: 1.15rem; font-weight: 800; }
/* the bubble's tail points at the car: to the left, or down when it sits above */
.bubble::before { content: ""; position: absolute; top: calc(50% - 7px); left: -8px; width: 12px; height: 12px; border: solid var(--line-strong); border-width: 0 0 2px 2px; background: var(--bg); transform: rotate(45deg); }
.bubble.above { margin-bottom: 0.5rem; }
.bubble.above::before { top: auto; bottom: -8px; left: calc(50% - 6px); border-width: 0 2px 2px 0; }
.welcome h1:focus { outline: none; }
.options { display: flex; flex-direction: column; gap: 0.8rem; }
.options .option { justify-content: flex-start; gap: 0.9rem; width: 100%; min-height: 3.6rem; padding: 0.6rem 1rem; color: var(--ink); text-align: left; text-transform: none; letter-spacing: normal; font-size: 1.05rem; white-space: normal; }
.options .option[aria-pressed=true] { border-color: var(--accent); background: var(--accent-soft); box-shadow: 0 4px 0 var(--accent); color: var(--accent-hover); }
.option > .ico, .option-mark .ico { width: 1.9rem; height: 1.9rem; }
.option-mark { display: grid; place-items: center; width: 2.2rem; font-size: 1.25rem; }
.option-note { margin-left: auto; font-size: 0.9rem; font-weight: 700; color: #59627A; }
.tick { flex: none; display: grid; place-items: center; width: 1.6rem; height: 1.6rem; margin-left: auto; border: 2px solid var(--line-strong); border-radius: 8px; }
.option[aria-pressed=true] .tick { border-color: var(--accent); background: var(--accent); }
.option[aria-pressed=true] .tick::after { content: "✓"; color: #fff; font-size: 1rem; }
.bars { display: flex; align-items: flex-end; gap: 3px; height: 1.5rem; }
.bars i { width: 6px; border-radius: 3px; background: var(--line-strong); }
.bars i:nth-child(1) { height: 45%; } .bars i:nth-child(2) { height: 70%; } .bars i:nth-child(3) { height: 100%; }
.bars i.on { background: var(--accent); }
.promises { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 1.5rem; }
.promises li { display: flex; gap: 1rem; align-items: flex-start; }
.promises .ico { width: 2.5rem; height: 2.5rem; }
.promises p { margin: 0.25rem 0 0; color: #59627A; font-weight: 700; }
