/* Mithu onboarding: welcome page, family sign-up, learner picker and parent corner.
   Uses the same crayon-paper tokens as the lessons (style.css), so it feels like one app. */

body.ob-on > .topbar, body.ob-on > #steps, body.ob-on > #stage { display: none !important; }
body.ob-on { overflow-x: hidden; }

.ob {
  --ob-shadow: 5px 6px 0 rgba(45, 58, 110, .18);
  --ob-lift: 7px 9px 0 rgba(45, 58, 110, .22);
  min-height: 100dvh;
  display: flex; flex-direction: column;
  color: var(--ink);
  font-family: "Patrick Hand", system-ui, sans-serif;
  /* a sheet of white drawing paper on a desk: soft window light from the top left, page edges a touch darker */
  background-color: var(--paper);
  background-image:
    radial-gradient(1100px 700px at 12% -8%, rgba(255, 255, 255, .9), transparent 62%),
    linear-gradient(90deg, rgba(60, 60, 72, .05), transparent 9%, transparent 91%, rgba(60, 60, 72, .05)),
    var(--paper-tex);
  background-size: 100% 100%, 100% 100%, var(--paper-tex-size);
  background-repeat: no-repeat, no-repeat, var(--paper-tex-repeat);
}
.ob h1, .ob h2, .ob h3 { font-family: "Gaegu", cursive; font-weight: 700; line-height: 1.08; margin: 0; letter-spacing: -.01em; }
.ob p { margin: 0; }
.ob .sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
:where(.ob) button { font: inherit; color: inherit; }
.ob :focus-visible { outline: 3px dashed var(--coral); outline-offset: 3px; }

/* ---------- nav ---------- */
.ob-nav {
  position: sticky; top: 0; z-index: 5;
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  padding: 10px max(16px, calc((100vw - 1160px) / 2));
  background: rgba(251, 250, 247, .85);
  backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
  border-bottom: 2px dashed rgba(45, 58, 110, .16);
}
.ob-logo { display: flex; align-items: center; gap: 6px; text-decoration: none; color: var(--ink); font-family: "Gaegu", cursive; font-weight: 700; font-size: 1.9rem; }
.ob-logo-bird { width: 40px; height: 48px; display: grid; }
.ob-logo-bird svg { width: 100%; height: 100%; }
.ob-logo-words { display: grid; line-height: 1; }
.ob-logo-tag { font-family: "Patrick Hand", cursive; font-weight: 400; font-size: .95rem; color: var(--ink-soft); margin-top: 2px; white-space: nowrap; }
.ob-nav-right { display: flex; align-items: center; gap: 14px; }
.ob-link {
  background: none; border: 0; cursor: pointer; padding: 6px 4px;
  font-family: "Patrick Hand", sans-serif; font-size: 1.15rem; color: var(--ink-soft);
  text-decoration: none; border-bottom: 2px solid transparent; transition: color .2s, border-color .2s;
}
.ob-link:hover { color: var(--ink); border-bottom-color: var(--mustard); }

/* ---------- buttons ---------- */
.ob-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 52px; padding: 10px 26px; cursor: pointer; text-decoration: none;
  font-family: "Gaegu", cursive !important; font-weight: 700; font-size: 1.5rem; line-height: 1;
  color: #fff !important; background: var(--teal);
  border: 3px solid var(--ink); border-radius: var(--hand);
  box-shadow: 3px 4px 0 var(--ink);
  transition: transform .15s ease, box-shadow .15s ease, background .2s;
}
.ob-btn:hover { transform: translate(-1px, -2px); box-shadow: 5px 6px 0 var(--ink); }
.ob-btn:active { transform: translate(2px, 3px); box-shadow: 1px 1px 0 var(--ink); }
.ob-btn-ghost { background: var(--paper-2); color: var(--ink) !important; }
.ob-btn-danger { background: var(--bad); }
.ob-btn-sm { min-height: 40px; padding: 6px 16px; font-size: 1.2rem; box-shadow: 2px 3px 0 var(--ink); }
.ob-btn-wide { width: 100%; margin-top: 8px; }

/* ---------- welcome: hero ---------- */
.ob-main { width: 100%; max-width: 1160px; margin: 0 auto; padding: 0 16px; }
.ob-hero {
  display: grid; grid-template-columns: 1.1fr .9fr; align-items: center; gap: 40px;
  padding: 56px 0 40px; min-height: min(640px, calc(100dvh - 70px));
}
.ob-eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 6px 14px; margin-bottom: 18px !important;
  background: var(--paper-2); border: 2px solid var(--ink); border-radius: 999px;
  font-size: 1.05rem; color: var(--ink-soft);
}
.ob-eyebrow .dot { width: 9px; height: 9px; border-radius: 50%; background: var(--good); box-shadow: 0 0 0 4px rgba(63, 154, 74, .2); animation: ob-pulse 2s infinite; }
.ob-hero h1 { font-size: clamp(2.9rem, 6.4vw, 5rem); }
.ob-hl { position: relative; color: var(--coral); white-space: nowrap; }
.ob-hl::after {
  content: ""; position: absolute; left: -2%; right: -2%; bottom: .02em; height: .26em; z-index: -1;
  background: var(--mustard); opacity: .55; border-radius: 40% 60% 50% 50% / 60% 40% 60% 40%; transform: rotate(-1deg);
}
.ob-lead { font-size: 1.35rem; line-height: 1.5; color: var(--ink-soft); max-width: 34ch; margin-top: 18px !important; }
.ob-cta { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 28px; }
.ob-cta-center { justify-content: center; }
.ob-trust { list-style: none; padding: 0; margin: 22px 0 0; display: flex; flex-wrap: wrap; gap: 8px 22px; color: var(--ink-soft); font-size: 1.1rem; }

.ob-hero-art { position: relative; aspect-ratio: 1 / 1; max-width: 480px; width: 100%; justify-self: center; }
.ob-blob {
  position: absolute; inset: 8%;
  background: radial-gradient(circle at 35% 30%, #fff8e6, var(--mustard) 70%);
  border: 3px solid var(--ink); border-radius: 46% 54% 42% 58% / 55% 45% 55% 45%;
  box-shadow: var(--ob-shadow); animation: ob-morph 12s ease-in-out infinite;
}
.ob-hero-bird { position: absolute; inset: 14% 22% 10%; display: grid; animation: ob-bob 4s ease-in-out infinite; }
.ob-hero-bird svg { width: 100%; height: 100%; overflow: visible; }
.ob-sticker {
  position: absolute; padding: 6px 14px; white-space: nowrap;
  font-family: "Gaegu", cursive; font-weight: 700; font-size: 1.35rem;
  background: var(--bg); border: 2.5px solid var(--ink); border-radius: var(--hand-2, var(--hand));
  box-shadow: 3px 4px 0 rgba(45, 58, 110, .25);
  animation: ob-float 6s ease-in-out infinite;
}
.ob-sticker.s1 { top: 4%; left: 2%; transform: rotate(-8deg); }
.ob-sticker.s2 { top: 2%; right: 8%; transform: rotate(6deg); animation-delay: -1s; }
.ob-sticker.s3 { top: 42%; left: -8%; transform: rotate(-4deg); animation-delay: -2s; }
.ob-sticker.s4 { top: 36%; right: -6%; transform: rotate(7deg); animation-delay: -3s; }
.ob-sticker.s5 { bottom: 20%; right: -2%; transform: rotate(-5deg); animation-delay: -4s; font-family: ui-monospace, Menlo, monospace; font-size: 1rem; }
.ob-sticker.s6 { bottom: 6%; left: 6%; transform: rotate(5deg); animation-delay: -5s; color: #fff; }
.ob-mini-card {
  position: absolute; left: 50%; bottom: -4%; translate: -50% 0;
  display: grid; gap: 2px; min-width: 210px; padding: 12px 16px;
  background: var(--paper-2); border: 3px solid var(--ink); border-radius: var(--hand); box-shadow: var(--ob-shadow);
}
.ob-mini-card b { font-family: "Gaegu", cursive; font-size: 1.4rem; }
.ob-mini-card small { color: var(--ink-soft); font-size: 1rem; }
.ob-mini-steps { display: flex; gap: 4px; margin-bottom: 4px; }
.ob-mini-steps i { flex: 1; height: 8px; border-radius: 4px; background: var(--c); border: 1.5px solid var(--ink); }
.ob-mini-steps i:nth-child(n+4) { opacity: .3; }

/* ---------- welcome: sections ---------- */
.ob-section { padding: 64px 0 8px; scroll-margin-top: 72px; }
.ob-kicker { font-family: "Gaegu", cursive; font-weight: 700; font-size: 1.3rem; color: var(--coral); text-transform: uppercase; letter-spacing: .06em; }
.ob-section h2 { font-size: clamp(2.1rem, 4.4vw, 3.1rem); margin-top: 4px; max-width: 22ch; }
.ob-sub { font-size: 1.25rem; color: var(--ink-soft); margin-top: 10px !important; max-width: 52ch; }

.ob-day { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; margin-top: 28px; }
.ob-day-card {
  position: relative; padding: 18px 20px 20px;
  background: var(--paper-2); border: 3px solid var(--ink); border-radius: var(--hand); box-shadow: var(--ob-shadow);
  transition: transform .2s ease, box-shadow .2s ease;
}
.ob-day-card::before { content: ""; position: absolute; left: 14px; right: 14px; top: -3px; height: 9px; background: var(--c); border: 3px solid var(--ink); border-radius: 0 0 10px 10px; border-top: 0; }
.ob-day-card:hover { transform: translateY(-4px) rotate(-.4deg); box-shadow: var(--ob-lift); }
.ob-day-top { display: flex; justify-content: space-between; align-items: center; margin: 6px 0 8px; }
.ob-day-n { display: grid; place-items: center; width: 36px; height: 36px; border-radius: 50%; background: var(--c); border: 2.5px solid var(--ink); font-family: "Gaegu", cursive; font-weight: 700; font-size: 1.3rem; }
.ob-day-min { font-size: 1rem; color: var(--ink-soft); background: var(--paper); padding: 2px 10px; border-radius: 999px; border: 1.5px dashed var(--ink-soft); }
.ob-day-card h3 { font-size: 1.7rem; }
.ob-day-card p { color: var(--ink-soft); font-size: 1.12rem; line-height: 1.4; margin-top: 4px; }

.ob-how { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; margin-top: 28px; counter-reset: how; }
.ob-how article { position: relative; padding: 22px 20px; background: var(--paper-2); border: 3px solid var(--ink); border-radius: var(--hand); box-shadow: var(--ob-shadow); }
.ob-how-n { display: inline-grid; place-items: center; width: 44px; height: 44px; margin-bottom: 10px; border-radius: 50%; background: var(--mustard); border: 3px solid var(--ink); font-family: "Gaegu", cursive; font-weight: 700; font-size: 1.6rem; }
.ob-how article:nth-child(2) .ob-how-n { background: var(--sky); }
.ob-how article:nth-child(3) .ob-how-n { background: var(--grass); }
.ob-how h3 { font-size: 1.65rem; }
.ob-how p { color: var(--ink-soft); font-size: 1.12rem; line-height: 1.4; margin-top: 4px; }

.ob-boards { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; margin-top: 28px; }
.ob-board {
  display: flex; align-items: center; gap: 16px; padding: 18px 20px;
  border: 3px solid var(--ink); border-radius: var(--hand); box-shadow: var(--ob-shadow);
}
.ob-board h3 { font-size: 1.9rem; }
.ob-board p, .ob-board small { font-size: 1.1rem; }
.ob-board-art { flex: none; width: 72px; height: 88px; display: grid; }
.ob-board-art svg { width: 100%; height: 100%; }
.ob-board-cbse { background: var(--paper-2); }
.ob-board-cbse p, .ob-board-cbse small { color: var(--ink-soft); }
.ob-board-icse {
  color: #e8f1ff; border-color: #0b1530;
  background:
    linear-gradient(rgba(120, 170, 255, .1) 1px, transparent 1px) 0 0 / 22px 22px,
    linear-gradient(90deg, rgba(120, 170, 255, .1) 1px, transparent 1px) 0 0 / 22px 22px,
    radial-gradient(circle at 80% 20%, #2a4a8a, #13234a 70%);
  box-shadow: 5px 6px 0 rgba(11, 21, 48, .35), inset 0 0 30px rgba(80, 200, 255, .15);
}
.ob-board-icse p, .ob-board-icse small { color: #a9c3ea; }
.ob-board-icse .ob-board-art { filter: drop-shadow(0 0 10px rgba(110, 220, 255, .45)); }

.ob-road { list-style: none; padding: 0; margin: 28px 0 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 0; position: relative; }
.ob-road::before { content: ""; position: absolute; left: 12%; right: 12%; top: 25px; border-top: 3px dashed var(--ink-soft); opacity: .5; }
.ob-road li { position: relative; display: grid; justify-items: center; gap: 4px; text-align: center; }
.ob-road li::before {
  content: ""; width: 44px; height: 44px; border-radius: 50%; background: var(--paper-2);
  border: 3px solid var(--ink-soft); margin-bottom: 6px; z-index: 1;
}
.ob-road li.live::before { background: var(--grass); border-color: var(--ink); box-shadow: 0 0 0 7px rgba(140, 193, 82, .3); content: "✓"; display: grid; place-items: center; font-weight: 700; font-size: 1.4rem; }
.ob-road b { font-family: "Gaegu", cursive; font-size: 1.6rem; }
.ob-road span { font-size: 1rem; color: var(--ink-soft); }
.ob-road li.live span { color: var(--good); font-weight: 700; }

.ob-final {
  position: relative;
  display: flex; align-items: center; gap: 22px; margin: 72px 0 24px; padding: 24px 32px;
  background: var(--paper-2);
  border: 3px solid var(--ink); border-radius: var(--hand); box-shadow: var(--ob-shadow);
}
.ob-final > div:nth-child(2) { flex: 1; }
/* two strips of paper tape holding the card down */
.ob-final::before, .ob-final::after {
  content: ""; position: absolute; top: -14px; width: 92px; height: 26px; pointer-events: none;
  background: rgba(242, 177, 52, .5); border-left: 2px dotted rgba(255, 255, 255, .6); border-right: 2px dotted rgba(255, 255, 255, .6);
  box-shadow: 0 1px 2px rgba(45, 58, 110, .12);
}
.ob-final::before { left: 34px; transform: rotate(-5deg); }
.ob-final::after { right: 34px; transform: rotate(4deg); background: rgba(159, 211, 239, .6); }
.ob-final h2 { font-size: clamp(1.9rem, 3.6vw, 2.6rem); }
.ob-final p { color: var(--ink-soft); font-size: 1.2rem; }
.ob-final-bird { width: 86px; height: 104px; flex: none; display: grid; }
.ob-final-bird svg { width: 100%; height: 100%; }
.ob-foot { text-align: center; padding: 22px 16px 32px; color: var(--ink-soft); font-size: 1.05rem; }
.ob-foot a { color: inherit; text-underline-offset: 3px; }

/* ---------- wizard cards ---------- */
.ob-wiz { flex: 1; width: 100%; max-width: 560px; margin: 0 auto; padding: 22px 16px 48px; }
.ob-card {
  position: relative; padding: 26px 26px 24px;
  background: var(--paper-2); border: 3px solid var(--ink); border-radius: var(--hand); box-shadow: var(--ob-shadow);
  animation: ob-in .35s ease both;
}
.ob-card h2 { font-size: 2.1rem; }
.ob-card > p { color: var(--ink-soft); font-size: 1.15rem; margin-top: 6px; }
.ob-card-head { display: flex; gap: 14px; align-items: center; margin-bottom: 18px; }
.ob-card-head p { color: var(--ink-soft); font-size: 1.12rem; margin-top: 4px; }
.ob-head-bird { flex: none; width: 64px; height: 78px; display: grid; }
.ob-head-bird svg { width: 100%; height: 100%; }

.ob-stepper { list-style: none; display: flex; gap: 8px; padding: 0; margin: 4px 0 18px; }
.ob-stepper li { flex: 1; display: flex; align-items: center; gap: 8px; font-size: 1.05rem; color: var(--ink-soft); padding-top: 10px; border-top: 5px solid rgba(45, 58, 110, .15); border-radius: 3px; }
.ob-stepper li span { display: grid; place-items: center; flex: none; width: 26px; height: 26px; border-radius: 50%; border: 2px solid currentColor; font-size: .95rem; }
.ob-stepper li.now { color: var(--ink); border-top-color: var(--teal); }
.ob-stepper li.now span { background: var(--teal); border-color: var(--ink); color: #fff; }
.ob-stepper li.done { color: var(--good); border-top-color: var(--good); }

.ob-field { display: grid; gap: 6px; margin: 16px 0 0; padding: 0; border: 0; min-width: 0; }
.ob-field > span, .ob-field > legend { font-family: "Gaegu", cursive; font-weight: 700; font-size: 1.35rem; padding: 0; margin-bottom: 4px; }
.ob-field small { color: var(--ink-soft); font-size: 1rem; }
.ob-field input:not([type=radio]):not([type=checkbox]) {
  width: 100%; min-height: 52px; padding: 10px 14px;
  font: 1.3rem "Patrick Hand", sans-serif; color: var(--ink);
  background: #fff; border: 2.5px solid var(--ink); border-radius: 14px 18px 14px 18px / 18px 14px 18px 14px;
  box-shadow: inset 2px 3px 0 rgba(45, 58, 110, .08); transition: border-color .15s, box-shadow .15s;
}
.ob-field input::placeholder { color: #9aa1bf; }
.ob-field input:focus { outline: none; border-color: var(--teal); box-shadow: 0 0 0 4px rgba(42, 157, 143, .2); }
.ob-check { display: flex; gap: 12px; align-items: flex-start; margin-top: 18px; font-size: 1.1rem; line-height: 1.35; cursor: pointer; }
.ob-check input { flex: none; appearance: none; width: 26px; height: 26px; margin-top: 1px; border: 2.5px solid var(--ink); border-radius: 7px; background: #fff; cursor: pointer; display: grid; place-items: center; }
.ob-check input:checked { background: var(--teal); }
.ob-check input:checked::after { content: "✓"; color: #fff; font-weight: 700; font-size: 1.1rem; }
.ob-error { margin-top: 12px !important; padding: 8px 12px; background: #fde7e3; border: 2px solid var(--bad); border-radius: 12px; color: #a3261a; font-size: 1.1rem; }
.ob-note { margin: 12px 0 0 !important; padding: 8px 14px; background: #e5f4e3; border: 2px solid var(--good); border-radius: 12px; color: #276b30; font-size: 1.1rem; }

.ob-avatars { display: grid; grid-template-columns: repeat(6, 1fr); gap: 10px; }
.ob-av { position: relative; cursor: pointer; }
.ob-av input { position: absolute; opacity: 0; }
.ob-av span[aria-hidden] {
  display: grid; place-items: center; aspect-ratio: 1; font-size: clamp(1.6rem, 6vw, 2.1rem);
  background: color-mix(in srgb, var(--bg) 45%, #fff); border: 2.5px solid transparent; border-radius: 50%;
  transition: transform .15s, border-color .15s, background .15s;
}
.ob-av:hover span[aria-hidden] { transform: scale(1.08); }
.ob-av input:checked + span { background: var(--bg); border-color: var(--ink); transform: scale(1.1); box-shadow: 2px 3px 0 var(--ink); }
.ob-av input:focus-visible + span { outline: 3px dashed var(--coral); outline-offset: 2px; }

.ob-seg { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; }
.ob-seg label { position: relative; cursor: pointer; }
.ob-seg input { position: absolute; opacity: 0; }
.ob-seg span { display: grid; place-items: center; min-height: 52px; padding: 4px; text-align: center; line-height: 1; font-size: 1.15rem; background: #fff; border: 2.5px solid var(--ink); border-radius: 12px; transition: background .15s; }
.ob-seg small { display: block; font-size: .85rem; color: var(--ink-soft); margin-top: 3px; }
.ob-seg input:checked + span { background: var(--teal); color: #fff; box-shadow: 2px 3px 0 var(--ink); }
.ob-seg .soon { cursor: not-allowed; }
.ob-seg .soon span { opacity: .55; border-style: dashed; }
.ob-seg input:focus-visible + span { outline: 3px dashed var(--coral); outline-offset: 2px; }

.ob-board-pick { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.ob-board-pick .ob-board { position: relative; cursor: pointer; padding: 12px; gap: 10px; box-shadow: 3px 4px 0 rgba(45, 58, 110, .15); transition: transform .15s, box-shadow .15s; }
.ob-board-pick .ob-board input { position: absolute; opacity: 0; }
.ob-board-pick .ob-board-art { width: 46px; height: 56px; }
.ob-board-pick b { display: block; font-family: "Gaegu", cursive; font-size: 1.6rem; line-height: 1; }
.ob-board-pick small { display: block; font-size: .95rem; margin-top: 3px; }
.ob-board-pick .ob-board:has(input:checked) { transform: translateY(-2px); box-shadow: 0 0 0 4px var(--mustard), 4px 6px 0 var(--ink); }
.ob-board-pick .ob-board:has(input:checked)::after {
  content: "✓"; position: absolute; top: -10px; right: -10px; width: 30px; height: 30px; display: grid; place-items: center;
  background: var(--mustard); color: var(--ink); border: 2.5px solid var(--ink); border-radius: 50%; font-weight: 700;
}
.ob-board-pick .ob-board:has(input:focus-visible) { outline: 3px dashed var(--coral); outline-offset: 4px; }

/* ---------- PIN ---------- */
.ob-pin-card { text-align: center; }
.ob-big-av {
  display: inline-grid; place-items: center; width: 92px; height: 92px; font-size: 3rem;
  background: var(--bg, var(--paper)); border: 3px solid var(--ink); border-radius: 50%; box-shadow: 3px 4px 0 var(--ink);
  margin-bottom: 10px;
}
.ob-pin { margin: 18px auto 0; max-width: 300px; }
.ob-dots { display: flex; justify-content: center; gap: 18px; margin-bottom: 22px; }
.ob-dots i { width: 22px; height: 22px; border-radius: 50%; border: 3px solid var(--ink); background: #fff; transition: background .15s, transform .15s; }
.ob-dots i.on { background: var(--coral); transform: scale(1.15); }
.ob-keys { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.ob-key {
  min-height: 62px; cursor: pointer; font-family: "Gaegu", cursive !important; font-weight: 700; font-size: 2rem;
  background: #fff; border: 2.5px solid var(--ink); border-radius: 18px 22px 18px 22px / 22px 18px 22px 18px;
  box-shadow: 2px 3px 0 var(--ink); transition: transform .1s, box-shadow .1s, background .15s;
  touch-action: manipulation;
}
.ob-key:hover { background: #fff8e6; }
.ob-key:active { transform: translate(2px, 3px); box-shadow: 0 0 0 var(--ink); background: var(--mustard); }
.ob-key.del { background: var(--paper); font-size: 1.6rem; }
.ob-pin.shake { animation: ob-shake .4s; }
.ob-pin.shake .ob-dots i { border-color: var(--bad); }
.ob-pin.locked { opacity: .45; pointer-events: none; }
.ob-forgot { margin-top: 14px; font-size: 1.05rem; }

/* ---------- done ---------- */
.ob-done { text-align: center; overflow: hidden; padding-top: 34px; }
.ob-done p { max-width: 38ch; margin-inline: auto !important; }
.ob-confetti { position: absolute; inset: 0; pointer-events: none; }
.ob-confetti i {
  position: absolute; top: -12px; left: calc(var(--i) * 5.6%); width: 10px; height: 16px; border-radius: 3px;
  background: hsl(calc(var(--i) * 47) 75% 62%); opacity: 0;
  animation: ob-fall 2.4s calc(var(--i) * .07s) ease-in forwards;
}

/* ---------- picker ---------- */
.ob-pick { flex: 1; width: 100%; max-width: 900px; margin: 0 auto; padding: 32px 16px 56px; text-align: center; }
.ob-pick-bird { width: 90px; height: 110px; margin: 0 auto 4px; display: grid; animation: ob-bob 4s ease-in-out infinite; }
.ob-pick-bird svg { width: 100%; height: 100%; }
.ob-pick h1 { font-size: clamp(2.4rem, 6vw, 3.4rem); }
.ob-kids { display: flex; flex-wrap: wrap; justify-content: center; gap: 18px; margin-top: 28px; }
.ob-kid {
  display: grid; justify-items: center; gap: 4px; width: 172px; padding: 20px 12px 16px; cursor: pointer;
  background: var(--paper-2); border: 3px solid var(--ink); border-radius: var(--hand); box-shadow: var(--ob-shadow);
  transition: transform .2s ease, box-shadow .2s ease; animation: ob-in .4s ease both;
}
.ob-kid:nth-child(2) { animation-delay: .06s; } .ob-kid:nth-child(3) { animation-delay: .12s; } .ob-kid:nth-child(4) { animation-delay: .18s; }
.ob-kid:hover { transform: translateY(-5px) rotate(-1deg); box-shadow: var(--ob-lift); }
.ob-kid b { font-family: "Gaegu", cursive; font-size: 1.7rem; line-height: 1.1; }
.ob-kid small { font-size: .98rem; color: var(--ink-soft); }
.ob-kid-add { background: transparent; border-style: dashed; box-shadow: none; }
.ob-kid-add .ob-big-av { background: var(--paper); box-shadow: none; border-style: dashed; color: var(--ink-soft); }

/* ---------- parent corner ---------- */
.ob-parent { flex: 1; width: 100%; max-width: 960px; margin: 0 auto; padding: 28px 16px 56px; }
.ob-parent h1 { font-size: clamp(2.4rem, 5vw, 3.2rem); }
.ob-progress { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 18px; margin-top: 22px; }
.ob-pcard { padding: 18px; background: var(--paper-2); border: 3px solid var(--ink); border-radius: var(--hand); box-shadow: var(--ob-shadow); }
.ob-pcard-head { display: flex; align-items: center; gap: 12px; }
.ob-pcard-head .ob-big-av { width: 60px; height: 60px; font-size: 2rem; margin: 0; box-shadow: 2px 3px 0 var(--ink); }
.ob-pcard h3 { font-size: 1.8rem; }
.ob-pcard-head small { color: var(--ink-soft); font-size: 1rem; }
.ob-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin: 16px 0 14px; }
.ob-stats div { padding: 8px 6px; text-align: center; background: var(--paper); border-radius: 12px; border: 2px dashed rgba(45, 58, 110, .25); }
.ob-stats dt { font-size: .92rem; color: var(--ink-soft); }
.ob-stats dd { margin: 0; font-family: "Gaegu", cursive; font-weight: 700; font-size: 1.9rem; line-height: 1.1; }
.ob-stats dd small { font-size: 1rem; }
.ob-stats dd.sm { font-size: 1.35rem; padding-top: 4px; }
.ob-pcard-actions { display: flex; flex-wrap: wrap; gap: 8px; }
.ob-pcard-actions .ob-btn-danger { margin-left: auto; }
.ob-empty { padding: 24px; text-align: center; color: var(--ink-soft); font-size: 1.2rem; border: 3px dashed rgba(45, 58, 110, .3); border-radius: var(--hand); }
.ob-account { margin-top: 30px; }
.ob-account h3 { font-size: 1.6rem; }
.ob-account p { font-size: 1.15rem; margin-top: 4px; }
.ob-account .ob-btn { margin-top: 14px; }
.ob-small { color: var(--ink-soft); font-size: 1rem !important; }
.ob-gate { text-align: center; }
.ob-gate-q > span { font-size: 1.8rem !important; }
.ob-gate-q input { max-width: 160px; margin: 0 auto; text-align: center; font-size: 1.8rem !important; }

/* ---------- learner chip in the lesson top bar ---------- */
.learner-chip { padding: 0; border: 0; background: none; cursor: pointer; display: grid; }
.learner-chip .av {
  display: grid; place-items: center; width: 40px; height: 40px; font-size: 1.35rem;
  background: var(--bg); border: 2.5px solid var(--ink); border-radius: 50%; box-shadow: 2px 2px 0 var(--ink);
  transition: transform .15s;
}
.learner-chip:hover .av { transform: rotate(-8deg) scale(1.06); }

/* ---------- motion ---------- */
@keyframes ob-in { from { opacity: 0; transform: translateY(10px); } }
@keyframes ob-bob { 50% { transform: translateY(-8px) rotate(-1.5deg); } }
@keyframes ob-float { 50% { translate: 0 -10px; } }
@keyframes ob-morph { 50% { border-radius: 58% 42% 55% 45% / 45% 58% 42% 55%; } }
@keyframes ob-pulse { 50% { box-shadow: 0 0 0 8px rgba(63, 154, 74, 0); } }
@keyframes ob-shake { 20%, 60% { transform: translateX(-10px); } 40%, 80% { transform: translateX(10px); } }
@keyframes ob-fall { 10% { opacity: 1; } to { opacity: 0; transform: translateY(420px) rotate(540deg); } }
@media (prefers-reduced-motion: reduce) {
  .ob *, .ob *::before, .ob *::after { animation: none !important; transition: none !important; }
}

/* ---------- tablets and phones ---------- */
@media (max-width: 900px) {
  .ob-hero { grid-template-columns: 1fr; text-align: center; padding-top: 28px; gap: 28px; min-height: 0; }
  .ob-lead { margin-inline: auto !important; }
  .ob-cta, .ob-trust { justify-content: center; }
  .ob-hero-art { max-width: 380px; }
  .ob-day { grid-template-columns: 1fr 1fr; }
  .ob-how { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
  .ob-nav .ob-link[href="#how"] { display: none; }
  .ob-logo { font-size: 1.6rem; }
  .ob-logo-tag { font-size: .85rem; }
  .ob-hero h1 { font-size: 2.75rem; }
  .ob-hl { white-space: normal; }
  .ob-lead { font-size: 1.2rem; }
  .ob-cta .ob-btn { flex: 1 1 100%; }
  .ob-hero-art { max-width: 300px; }
  .ob-sticker { font-size: 1.05rem; padding: 4px 10px; }
  .ob-sticker.s3 { left: -2%; } .ob-sticker.s4 { right: -2%; }
  .ob-section { padding-top: 48px; }
  .ob-day { gap: 12px; }
  .ob-day-card { padding: 14px 14px 16px; }
  .ob-day-card h3 { font-size: 1.45rem; }
  .ob-day-card p { font-size: 1rem; }
  .ob-how article { padding: 18px 18px; }
  .ob-boards { grid-template-columns: 1fr; }
  .ob-road { grid-template-columns: 1fr 1fr; row-gap: 22px; }
  .ob-road::before { display: none; }
  .ob-final { flex-direction: column; text-align: center; padding: 22px 18px; }
  .ob-final .ob-btn { width: 100%; }
  .ob-card { padding: 22px 18px 20px; }
  .ob-card h2 { font-size: 1.85rem; }
  .ob-stepper li { font-size: .95rem; gap: 5px; }
  .ob-avatars { grid-template-columns: repeat(4, 1fr); }
  .ob-seg { grid-template-columns: repeat(2, 1fr); }
  .ob-board-pick { grid-template-columns: 1fr; }
  .ob-kid { width: calc(50% - 9px); }
}

/* ---------- keeping progress safe ---------- */
.ob-restore { margin-top: 14px !important; font-size: 1.1rem; color: var(--ink-soft); }
.ob-restore .ob-link { color: var(--teal); border-bottom: 2px dashed var(--teal); padding: 2px 0; font-size: 1.1rem; }
.ob-note-c { display: inline-block; margin-top: 14px !important; }
.ob-tip {
  display: flex; align-items: center; gap: 14px; max-width: 620px; margin: 28px auto 0; padding: 14px 18px; text-align: left;
  background: #fff8e6; border: 3px dashed var(--mustard); border-radius: var(--hand); animation: ob-in .4s .2s ease both;
}
.ob-tip-ic { flex: none; display: grid; place-items: center; width: 52px; height: 52px; font-size: 1.8rem; background: var(--paper-2); border: 2.5px solid var(--ink); border-radius: 14px; overflow: hidden; }
.ob-tip-ic img { width: 100%; height: 100%; }
.ob-tip-txt { flex: 1; }
.ob-tip b { font-family: "Gaegu", cursive; font-size: 1.4rem; }
.ob-tip p { color: var(--ink-soft); font-size: 1.05rem; line-height: 1.3; }
.ob-tip-act { display: flex; flex-direction: column; align-items: center; gap: 4px; }
.ob-safe-act { margin-top: 14px; }
.ob-ok { color: var(--good) !important; align-self: center; }
.ob-ios { list-style: none; padding: 0; margin: 18px 0 6px; display: grid; gap: 12px; }
.ob-ios li { display: flex; align-items: center; gap: 12px; font-size: 1.2rem; line-height: 1.35; }
.ob-ios-n { flex: none; display: grid; place-items: center; width: 34px; height: 34px; border-radius: 50%; background: var(--sky); border: 2.5px solid var(--ink); font-family: "Gaegu", cursive; font-weight: 700; font-size: 1.2rem; }
.ob-ios-ic { display: inline-grid; place-items: center; min-width: 26px; height: 26px; padding: 0 4px; border: 2px solid var(--ink-soft); border-radius: 7px; font-size: .95rem; vertical-align: middle; }
@media (max-width: 640px) {
  .ob-tip { flex-wrap: wrap; }
  .ob-tip-act { flex-direction: row; width: 100%; justify-content: flex-end; gap: 14px; }
}
.ob-plan { list-style: none; padding: 0; margin: 16px auto 4px; max-width: 360px; display: grid; gap: 10px; text-align: left; }
.ob-plan li { display: flex; align-items: center; gap: 12px; padding: 8px 12px; background: var(--paper); border: 2px dashed rgba(45, 58, 110, .25); border-radius: 14px; }
.ob-plan .ob-big-av { width: 44px; height: 44px; font-size: 1.5rem; margin: 0; box-shadow: none; border-width: 2px; }
.ob-plan b { display: block; font-family: "Gaegu", cursive; font-size: 1.35rem; line-height: 1.1; }
.ob-plan small { color: var(--ink-soft); font-size: 1rem; }
/* long names wrap inside their cards instead of spilling out */
.ob-kid b, .ob-kid small, .ob-pcard h3, .ob-card h2, .ob-plan b, .ob-note, .ob-sub { overflow-wrap: anywhere; min-width: 0; }
.ob-pcard-head > div { min-width: 0; }
.toast.ob-full { background: #fde7e3; color: #a3261a; border-color: var(--bad); max-width: min(92vw, 520px); text-align: center; z-index: 50; }
/* the smallest phones: keep the tagline and the top button on one line each */
@media (max-width: 380px) {
  .ob-nav { gap: 8px; }
  .ob-logo-tag { font-size: .78rem; }
  .ob-nav .ob-btn-sm { white-space: nowrap; padding-inline: 12px; }
}
