/* 👋 Welcome for a new family (js/onboard.js): practice paper, chunky ink cards, Pao Pao and the
   kids' ink buddies, like Home. Laid out for a tablet; on a narrow screen the columns stack and it scrolls. */
.ob {
  --ink: #1d2233; --muted: #4a4560; --pink: #ff3d7f; --yellow: #ffc22e; --cyan: #19b6d6; --violet: #7a5cff; --green: #2ec27e;
  --f-display: "Lilita One", "Arial Rounded MT Bold", "Trebuchet MS", sans-serif;
  --f-body: "Nunito", -apple-system, "PingFang SC", "Segoe UI", system-ui, sans-serif;
  --f-hz: "Kaiti SC", "STKaiti", "KaiTi", "PingFang SC", serif;
  position: fixed; inset: 0; z-index: 40;
  color: var(--ink); font-family: var(--f-body);
  background-color: #fdfbf7;
  background-image:
    linear-gradient(rgba(220, 70, 70, .10) 2px, transparent 2px), linear-gradient(90deg, rgba(220, 70, 70, .10) 2px, transparent 2px),
    linear-gradient(rgba(220, 70, 70, .06) 1px, transparent 1px), linear-gradient(90deg, rgba(220, 70, 70, .06) 1px, transparent 1px);
  background-size: 120px 120px, 120px 120px, 60px 60px, 60px 60px;
  -webkit-user-select: none; user-select: none;
}
.ob[hidden] { display: none; }
.ob input, .ob textarea { -webkit-user-select: text; user-select: text; }
.ob-screen {
  position: relative; height: 100%; overflow-y: auto; overflow-x: hidden;
  display: flex; flex-direction: column;
  padding: max(20px, env(safe-area-inset-top)) max(28px, env(safe-area-inset-right)) max(20px, env(safe-area-inset-bottom)) max(28px, env(safe-area-inset-left));
  max-width: 1240px; margin: 0 auto; box-sizing: border-box;
}
.ob h1 { font-family: var(--f-display); font-weight: 400; font-size: clamp(34px, 4.6vw, 54px); line-height: 1; margin: 0; }
.ob-lead { font-weight: 700; font-size: 19px; color: var(--muted); line-height: 1.4; margin: 8px 0 0; }
.ob-muted { font-weight: 700; font-size: 15px; color: #6b6578; line-height: 1.4; }
.ob-muted.center { display: block; text-align: center; }
.ob-ic { width: 1em; height: 1em; display: inline-block; vertical-align: -0.12em; }
.ob-pao { width: 40px; height: 44px; flex: none; animation: ink-bob 2.6s ease-in-out infinite; }
@keyframes ob-pop { 0% { transform: scale(.6) rotate(-8deg); opacity: 0; } 70% { transform: scale(1.06) rotate(2deg); opacity: 1; } 100% { transform: none; } }
@keyframes ob-in { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
@keyframes ob-spin { to { transform: rotate(360deg); } }
@keyframes ob-pulse { 0%, 100% { transform: scale(1); } 50% { transform: scale(1.05); } }

/* cards, buttons, fields */
.ob-card { background: #fff; border: 4px solid var(--ink); border-radius: 30px; box-shadow: 0 9px 0 var(--ink); padding: 26px 28px; box-sizing: border-box; }
.ob-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  border: 4px solid var(--ink); border-radius: 999px; box-shadow: 0 6px 0 var(--ink);
  font-family: var(--f-display); font-size: 28px; padding: 12px 34px; background: #fff; color: var(--ink);
  transition: transform .1s, box-shadow .1s;
}
.ob-btn:active:not(:disabled) { transform: translateY(4px); box-shadow: 0 2px 0 var(--ink); }
.ob-btn.go { background: var(--yellow); }
.ob-btn.small { font-size: 21px; padding: 8px 22px; border-width: 3px; box-shadow: 0 4px 0 var(--ink); }
.ob-btn.huge { font-size: 40px; padding: 16px 48px; animation: ob-pulse 1.6s ease-in-out infinite; }
.ob-btn:disabled { opacity: .45; }
.ob-link { background: none; border: 0; padding: 10px 6px; font: 800 18px var(--f-body); color: var(--muted); text-decoration: underline; text-underline-offset: 4px; }
.ob-link.inline { padding: 0; font-size: inherit; }
.ob-field { display: flex; flex-direction: column; gap: 6px; font-weight: 900; font-size: 17px; }
.ob-field input {
  font: 800 22px var(--f-body); color: var(--ink); border: 4px solid var(--ink); border-radius: 16px;
  padding: 10px 16px; background: #fff8ee; outline: none; min-width: 0;
}
.ob-field input:focus { border-color: var(--violet); }
.ob-field.inline { flex-direction: row; align-items: center; gap: 10px; font-size: 15px; }
.ob-field.inline input { font-size: 17px; padding: 6px 12px; border-width: 3px; flex: 1; }
.ob-msg { margin: 0; min-height: 1.2em; font-weight: 800; font-size: 16px; color: #1a7f52; }
.ob-msg:empty { min-height: 0; }
.ob-msg.bad { color: #b33a22; }
.ob-row { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; }
.ob-row > b { font-weight: 900; font-size: 17px; }
.ob-row > span { font-weight: 800; font-size: 15px; color: var(--muted); }

/* the top bar: Pao Pao, the four steps, who's holding the tablet */
.ob-top { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; margin-bottom: 18px; }
.ob-brand { display: flex; align-items: center; gap: 8px; font-family: var(--f-display); font-size: 30px; }
.ob-brand b { font-weight: 400; }
.ob-brand span, .ob-logo span { color: var(--pink); }
.ob-steps { list-style: none; margin: 0; padding: 0; display: flex; gap: 8px; flex-wrap: wrap; }
.ob-steps li { display: flex; align-items: center; gap: 8px; font-weight: 900; font-size: 15px; color: #6b6578; background: #fff; border: 3px solid #ddd5c8; border-radius: 999px; padding: 4px 13px 4px 4px; }
.ob-steps i { width: 26px; height: 26px; border-radius: 50%; display: grid; place-items: center; font-style: normal; background: #efe9df; font-size: 14px; }
.ob-steps li.on { border-color: var(--ink); color: var(--ink); }
.ob-steps li.on i { background: var(--pink); color: #fff; }
.ob-steps li.done i { background: var(--green); color: #fff; }
.ob-who { font-weight: 900; font-size: 15px; border: 3px solid var(--ink); border-radius: 999px; padding: 6px 14px; background: #fff; white-space: nowrap; }
.ob-who.kid { background: var(--pink); color: #fff; }
.ob-who.solo { position: absolute; top: max(22px, env(safe-area-inset-top)); right: max(28px, env(safe-area-inset-right)); z-index: 2; }

.ob-body { flex: 1; }
.ob-cols { display: flex; gap: 40px; align-items: flex-start; flex-wrap: wrap; margin-top: 26px; }
.ob-cols > * { flex: 1 1 420px; min-width: 0; }
.ob-cols.wide > :first-child { flex: 2 1 520px; }
.ob-nav { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin-top: 26px; }
.ob-nav > span { display: flex; align-items: center; gap: 18px; flex-wrap: wrap; }
.ob-nav.center { justify-content: center; }
.ob-foot-note { margin: 18px 0 0; font-weight: 800; font-size: 15px; color: var(--muted); }
.ob-foot-note.light { color: #fff; text-align: center; position: relative; }

/* 1 · welcome */
.ob-welcome { flex: 1; display: flex; align-items: center; justify-content: space-between; gap: 32px; flex-wrap: wrap; }
.ob-hero { position: relative; flex: 1 1 380px; min-height: 420px; display: flex; flex-direction: column; align-items: center; justify-content: center; }
.ob-splat { position: absolute; width: min(460px, 92%); top: 50%; left: 50%; transform: translate(-50%, -50%); }
.ob-pao.big { position: relative; width: 170px; height: 187px; }
.ob-logo { position: relative; font-family: var(--f-display); font-size: clamp(70px, 9vw, 104px); line-height: .9; text-shadow: 0 5px 0 #fff; }
.ob-logo span { color: var(--yellow); -webkit-text-stroke: 5px var(--ink); paint-order: stroke fill; text-shadow: 0 5px 0 var(--ink); }
.ob-hi { position: relative; margin-top: 12px; font-family: var(--f-hz); font-weight: 700; font-size: 26px; background: var(--yellow); border: 3px solid var(--ink); border-radius: 999px; box-shadow: 0 4px 0 var(--ink); padding: 2px 20px 4px; }
.ob-welcome .ob-card { flex: 0 1 560px; display: flex; flex-direction: column; gap: 18px; padding: 34px 38px 26px; }
.ob-kicker { font-weight: 900; font-size: 15px; letter-spacing: .08em; text-transform: uppercase; color: #c2185b; }
.ob-welcome h1 { font-size: clamp(32px, 3.4vw, 44px); margin-top: -8px; }
.ob-promises { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 14px; }
.ob-promises li { display: flex; gap: 16px; align-items: center; }
.ob-promises i { flex: none; width: 50px; height: 50px; border-radius: 16px; border: 3px solid var(--ink); display: grid; place-items: center; font-style: normal; font-size: 24px; }
.ob-promises b { display: block; font-size: 20px; font-weight: 900; line-height: 1.2; }
.ob-promises span { display: block; font-size: 16px; font-weight: 700; color: var(--muted); line-height: 1.35; margin-top: 2px; }
.ob-note { margin: 0; background: #fff4d6; border: 3px dashed #e0a800; border-radius: 18px; padding: 12px 16px; font-weight: 800; font-size: 17px; line-height: 1.35; }

/* 2 · kids */
.ob-kidform { display: flex; flex-direction: column; gap: 14px; }
.ob-buddies { display: grid; grid-template-columns: repeat(8, minmax(0, 1fr)); gap: 8px; }
.ob-bud { aspect-ratio: 1; border-radius: 18px; border: 3px solid #e6dfd2; background: #fff8ee; display: grid; place-items: center; padding: 0; transition: transform .12s; }
.ob-bud svg { width: 80%; height: 80%; }
.ob-bud.on { border: 4px solid var(--ink); background: #ffeaf2; box-shadow: 0 4px 0 var(--ink); transform: translateY(-3px); }
.ob-colors { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
.ob-colors b { font-weight: 900; font-size: 16px; margin-right: 2px; }
.ob-col { width: 34px; height: 34px; border-radius: 50%; border: 3px solid var(--ink); padding: 0; }
.ob-col.on { outline: 3px solid var(--ink); outline-offset: 3px; }
.ob-kidform .ob-btn { align-self: flex-start; }
.ob-roster { display: flex; flex-direction: column; gap: 20px; }
.ob-kidtile { display: flex; align-items: center; gap: 16px; color: #fff; border: 4px solid var(--ink); border-radius: 28px; box-shadow: 0 8px 0 var(--ink); padding: 14px 18px; animation: ob-pop .5s ease-out both; }
.ob-kidtile:nth-child(odd) { transform: rotate(-1.5deg); }
.ob-kidtile:nth-child(even) { transform: rotate(1.2deg); }
.ob-kidtile > div { flex: 1; min-width: 0; text-shadow: 0 2px 0 rgba(0, 0, 0, .25); }
.ob-kidtile b { display: block; font-family: var(--f-display); font-weight: 400; font-size: 36px; line-height: 1; overflow: hidden; text-overflow: ellipsis; }
.ob-kidtile small { font-weight: 800; font-size: 15px; }
.ob-face { width: 80px; height: 80px; border-radius: 50%; background: #fff; border: 3px solid var(--ink); display: grid; place-items: center; flex: none; }
.ob-face.sm { width: 48px; height: 48px; }
.ob-x { width: 44px; height: 44px; border-radius: 50%; border: 3px solid var(--ink); background: #fff; color: var(--ink); font-weight: 900; font-size: 18px; flex: none; }
.ob-room { border: 4px dashed #b9b0a2; border-radius: 28px; padding: 20px; text-align: center; font-weight: 900; font-size: 18px; color: #6b6578; }

/* 3 · words */
.ob-wordcard { display: flex; flex-direction: column; gap: 14px; }
.ob-tabs { display: flex; gap: 10px; flex-wrap: wrap; }
.ob-tab { font: 900 18px var(--f-body); border: 3px solid var(--ink); border-radius: 999px; padding: 8px 18px; background: #fff; color: var(--ink); }
.ob-tab.on { background: var(--ink); color: #fff; }
.ob-drop { display: flex; align-items: center; gap: 18px; text-align: left; border: 4px dashed var(--ink); border-radius: 20px; padding: 18px 20px; background: #fff8ee; color: var(--ink); font-family: var(--f-body); }
.ob-drop b { display: block; font-size: 20px; font-weight: 900; }
.ob-drop small { display: block; font-size: 15px; font-weight: 700; color: var(--muted); margin-top: 2px; }
.ob-cam { font-size: 40px; }
.ob-spin { width: 40px; height: 40px; border-radius: 50%; border: 5px solid #ddd5c8; border-top-color: var(--ink); animation: ob-spin 1s linear infinite; flex: none; }
.ob-paste { font: 30px var(--f-hz); color: var(--ink); border: 4px solid var(--ink); border-radius: 18px; padding: 10px 16px; background: #fff8ee; min-height: 90px; resize: vertical; outline: none; }
.ob-wordcard > .ob-btn { align-self: flex-start; }
.ob-filled { font-weight: 900; font-size: 16px; color: #1a7f52; line-height: 1.35; }
.ob-words { display: grid; grid-template-columns: repeat(auto-fill, minmax(92px, 1fr)); gap: 10px; max-height: 330px; overflow-y: auto; padding: 2px; }
.ob-w { border: 3px solid var(--ink); border-radius: 18px; background: #fff8ee; padding: 8px 6px 10px; display: flex; flex-direction: column; align-items: center; text-align: center; animation: ob-in .45s ease-out both; }
.ob-w b { font-family: var(--f-hz); font-size: 34px; line-height: 1.1; font-weight: 700; }
.ob-w .py { font-weight: 900; font-size: 15px; color: #c2185b; }
.ob-w .en { font-weight: 700; font-size: 13px; color: var(--muted); line-height: 1.2; }
.ob-w.more { justify-content: center; font-weight: 900; font-size: 20px; }
.ob-spk { width: 32px; height: 32px; border-radius: 50%; border: 2px solid var(--ink); background: #fff; display: grid; place-items: center; padding: 0; margin-top: 6px; font-size: 15px; color: var(--ink); }
.ob-spk.big { width: 56px; height: 56px; border-width: 3px; box-shadow: 0 4px 0 var(--ink); background: var(--cyan); color: #fff; font-size: 26px; margin: 0 0 0 auto; }
.ob-side { display: flex; flex-direction: column; gap: 14px; }
.ob-sticky { background: var(--yellow); border: 4px solid var(--ink); border-radius: 26px; box-shadow: 0 8px 0 var(--ink); padding: 18px 22px; transform: rotate(1.5deg); }
.ob-sticky b { font-family: var(--f-display); font-weight: 400; font-size: 27px; line-height: 1.05; display: block; }
.ob-sticky p { margin: 8px 0 0; font-weight: 800; font-size: 16px; line-height: 1.4; }
.ob-levels { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.ob-level { display: flex; flex-direction: column; gap: 1px; text-align: left; border: 3px solid #ddd5c8; border-radius: 16px; padding: 9px 12px; background: #fff; color: var(--ink); font-family: var(--f-body); }
.ob-level b { font-size: 17px; font-weight: 900; }
.ob-level small { font-size: 12px; font-weight: 700; color: var(--muted); }
.ob-level.on { border-color: var(--ink); background: #fff4d6; }

/* 4 · your turn */
.ob.step-handoff { background-color: var(--violet); background-image: radial-gradient(rgba(255, 255, 255, .16) 2px, transparent 2.5px); background-size: 34px 34px; }

.ob-rays { position: fixed;   /* fixed, so the spinning rays never make the screen scroll */
   left: 50%; top: 34%; width: 1100px; height: 1100px; margin: -550px 0 0 -550px; pointer-events: none; opacity: .22;
  background: repeating-conic-gradient(#fff 0 6deg, transparent 6deg 30deg); border-radius: 50%; animation: ob-spin 60s linear infinite; }
.ob-turn { position: relative; flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; color: #fff; gap: 10px; }
.ob-bigface { position: relative; width: 220px; height: 220px; border-radius: 50%; background: #fff; border: 6px solid var(--ink); box-shadow: 0 10px 0 var(--ink); display: grid; place-items: center; }
.ob-pao.peek { position: absolute; right: -70px; bottom: -4px; width: 90px; height: 99px; }
.ob-turn h1 { font-size: clamp(46px, 7vw, 78px); text-shadow: 0 6px 0 var(--ink); margin-top: 24px; }
.ob-turn p { margin: 0; font-weight: 900; font-size: 26px; }

/* 5 · writing */

.ob-coach { flex: 0 1 400px; display: flex; flex-direction: column; gap: 18px; }
.ob-bars { display: flex; gap: 8px; align-items: center; }
.ob-bars i { flex: 1; height: 18px; border-radius: 999px; background: #fff; border: 3px solid var(--ink); }
.ob-bars i.on { background: var(--green); }
.ob-bars b { font-weight: 900; font-size: 17px; margin-left: 4px; white-space: nowrap; }

.ob-btn.ghost { font-family: var(--f-body); font-weight: 900; font-size: 18px; margin-bottom: 14px; }

/* 6 · pop */

@keyframes ob-jump { 0%, 100% { transform: translateY(0) rotate(-6deg); } 50% { transform: translateY(-26px) rotate(6deg); } }

.ob-confetti i { position: absolute; left: var(--x); top: -20px; width: 16px; height: 16px; border-radius: 4px; border: 3px solid var(--ink); background: var(--c); animation: ob-fall 3.2s linear var(--d) infinite; }
.ob-confetti i:nth-child(3n) { border-radius: 50%; }
@keyframes ob-fall { from { transform: translateY(-20px) rotate(0); } to { transform: translateY(110vh) rotate(540deg); } }

/* 7 · save, and signing in */
.ob-why h1 { font-size: clamp(36px, 4.4vw, 52px); }
.ob-devices { position: relative; display: flex; align-items: flex-end; gap: 40px; margin-top: 30px; }
.ob-dev { background: var(--ink); border-radius: 26px; padding: 14px; min-width: 220px; min-height: 150px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 8px; box-sizing: border-box; outline: 12px solid var(--ink); outline-offset: -12px; }
.ob-dev { background: #fdfbf7; border: 12px solid var(--ink); outline: 0; }
.ob-dev.phone { min-width: 110px; min-height: 190px; border-radius: 26px; }
.ob-mini { display: flex; align-items: center; gap: 6px; background: #fff; border: 2px solid var(--ink); border-radius: 999px; padding: 2px 12px 2px 3px; font-weight: 900; font-size: 15px; }
.ob-cloud { position: absolute; left: 50%; top: -34px; transform: translateX(-60%); font-size: 54px; animation: ink-bob 3s ease-in-out infinite; }
.ob-acct { display: flex; flex-direction: column; gap: 14px; }
.ob-gbtn { display: flex; align-items: center; justify-content: center; gap: 12px; background: #fff; color: var(--ink); border: 4px solid var(--ink); border-radius: 18px; padding: 12px 18px; font: 900 21px var(--f-body); box-shadow: 0 5px 0 var(--ink); cursor: pointer; }
.ob-gbtn svg { width: 28px; height: 28px; flex: none; }
.ob-gbtn:active:not(:disabled) { transform: translateY(4px); box-shadow: 0 1px 0 var(--ink); }
.ob-gbtn:disabled { opacity: .5; }
.ob-gbtn[hidden], .ob-or[hidden] { display: none; }
.ob-gsi { display: flex; justify-content: center; }
.ob-gsi:empty { display: none; }
.ob-or { display: flex; align-items: center; gap: 12px; font-weight: 800; font-size: 15px; color: var(--muted); }
.ob-or::before, .ob-or::after { content: ""; flex: 1; height: 2px; background: #d9d4e6; }
.ob-key { display: flex; gap: 10px; background: #f1ecff; border-radius: 18px; padding: 12px 14px; font-weight: 800; font-size: 15px; line-height: 1.4; color: #3b2a8f; }
.ob-arrive { display: flex; flex-direction: column; gap: 12px; align-self: center; }
.ob-arrhead { display: flex; align-items: center; gap: 14px; }
.ob-arrhead .ob-pao { width: 70px; height: 77px; }
.ob-arrhead b { font-family: var(--f-display); font-weight: 400; font-size: 30px; line-height: 1; }
.ob-progress { margin-top: 10px; width: min(330px, 60vw); height: 16px; border: 3px solid var(--ink); border-radius: 999px; background: #fff; overflow: hidden; }
.ob-progress i { display: block; height: 100%; background: var(--cyan); transition: width .6s; }
.ob-arrkid { display: flex; align-items: center; gap: 14px; border: 3px solid var(--ink); border-radius: 20px; padding: 10px 14px; background: #fff; animation: ob-in .5s ease-out both; }
.ob-arrkid b { font-family: var(--f-display); font-weight: 400; font-size: 26px; display: block; line-height: 1; }
.ob-arrkid small { font-weight: 800; font-size: 15px; color: var(--muted); }
.ob-ok { margin-left: auto; width: 36px; height: 36px; border-radius: 50%; background: var(--green); border: 3px solid var(--ink); display: grid; place-items: center; color: #fff; font-weight: 900; }
.ob-wifi { display: flex; align-items: center; gap: 14px; background: #fff3f0; border: 3px solid #d9472b; border-radius: 20px; padding: 12px 14px; font-weight: 800; font-size: 16px; line-height: 1.35; color: #7a2615; }
.ob-wifi .ob-btn { flex: none; }

/* 8 · the routine */
.ob-readyhead { align-items: flex-end; flex-wrap: wrap; }
.ob-saved { background: #e3f7ec; border: 3px solid #1a7f52; border-radius: 999px; padding: 6px 16px; font-weight: 900; font-size: 16px; color: #14613f; }
.ob-routine { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 26px; margin-top: 30px; }
.ob-rt { position: relative; overflow: hidden; color: #fff; border: 4px solid var(--ink); border-radius: 30px; box-shadow: 0 9px 0 var(--ink); padding: 24px; min-height: 300px; display: flex; flex-direction: column; gap: 10px; box-sizing: border-box; }
.ob-rt:nth-child(1) { transform: rotate(-1.5deg); }
.ob-rt:nth-child(3) { transform: rotate(1.5deg); }
.ob-rt .hz { position: absolute; right: 14px; top: 4px; font-family: "Ma Shan Zheng", var(--f-hz); font-size: 110px; line-height: 1; opacity: .22; }
.ob-rt .when { align-self: flex-start; background: #fff; color: var(--ink); font-weight: 900; font-size: 15px; border: 3px solid var(--ink); border-radius: 999px; padding: 4px 12px; }
.ob-rt b { margin-top: auto; font-family: var(--f-display); font-weight: 400; font-size: 36px; line-height: 1; text-shadow: 0 3px 0 rgba(0, 0, 0, .2); }
.ob-rt p { margin: 0; font-weight: 800; font-size: 17px; line-height: 1.35; }
.ob.step-ready .ob-nav .ob-muted { max-width: 460px; }

/* 9 · Home's first time: a pointer at Write it! */
.ob-coachmark { position: fixed; inset: 0; z-index: 45; }
.ob-hole { position: absolute; border-radius: 34px; box-shadow: 0 0 0 9999px rgba(29, 34, 51, .66); outline: 6px solid #ffc22e; animation: ob-ring 1.6s ease-out infinite; pointer-events: none; }
@keyframes ob-ring { 0%, 100% { outline-offset: 0; } 50% { outline-offset: 8px; } }
.ob-tipcard { position: absolute; width: min(360px, 80vw); background: #fff; border: 4px solid #1d2233; border-radius: 26px; box-shadow: 0 6px 0 #1d2233; padding: 18px 22px; color: #1d2233; font-family: "Nunito", sans-serif; }
.ob-tipcard b { font-family: "Lilita One", sans-serif; font-weight: 400; font-size: 30px; line-height: 1.05; }
.ob-tipcard p { font-weight: 800; font-size: 18px; line-height: 1.4; margin: 8px 0 12px; }
.ob-tipcard .ob-btn, .ob-remind .ob-btn { font-family: "Lilita One", sans-serif; border: 3px solid #1d2233; border-radius: 999px; box-shadow: 0 4px 0 #1d2233; font-size: 21px; padding: 8px 22px; background: #ffc22e; color: #1d2233; }
.ob-tipcard .ob-btn { float: right; }

/* later: the gentle save reminder */
.ob-remind { position: fixed; inset: 0; z-index: 44; background: rgba(29, 34, 51, .45); display: flex; align-items: flex-end; justify-content: center; padding: 24px 24px max(40px, env(safe-area-inset-bottom)); }
.ob-remcard { display: flex; gap: 20px; align-items: center; flex-wrap: wrap; max-width: 820px; background: #fff; border: 4px solid #1d2233; border-radius: 30px; box-shadow: 0 9px 0 #1d2233; padding: 22px 26px; color: #1d2233; font-family: "Nunito", sans-serif; animation: ob-in .4s ease-out both; }
.ob-remcard .ob-pao { width: 64px; height: 70px; }
.ob-remcard > div:nth-child(2) { flex: 1 1 320px; }
.ob-remcard small { font-weight: 900; font-size: 13px; letter-spacing: .08em; text-transform: uppercase; color: #6b6578; }
.ob-remcard b { display: block; font-family: "Lilita One", sans-serif; font-weight: 400; font-size: 28px; line-height: 1.05; margin-top: 2px; }
.ob-remcard p { margin: 6px 0 0; font-weight: 700; font-size: 16px; line-height: 1.4; color: #4a4560; }
.ob-remact { display: flex; flex-direction: column; align-items: stretch; gap: 4px; }
.ob-remind .ob-link { background: none; border: 0; font: 800 16px "Nunito", sans-serif; color: #4a4560; text-decoration: underline; padding: 6px; }

/* narrow screens: one column, smaller type */
@media (max-width: 760px) {
  .ob-screen { padding-left: 16px; padding-right: 16px; }
  .ob-steps { display: none; }
  .ob-hero { min-height: 300px; }
  .ob-pao.big { width: 120px; height: 132px; }
  .ob-welcome .ob-card { padding: 24px 20px; }
  .ob-buddies { grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 6px; }
  .ob-levels { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .ob-btn { font-size: 24px; padding: 10px 24px; }
  .ob-btn.huge { font-size: 30px; }
  .ob-bigface { width: 160px; height: 160px; }

  .ob-devices { display: none; }
}

/* short screens (a phone held sideways): no step bar, the writing box and its coach side by side */
@media (max-height: 520px) {
  .ob-screen { padding-top: max(10px, env(safe-area-inset-top)); padding-bottom: max(10px, env(safe-area-inset-bottom)); }
  .ob-steps { display: none; }
  .ob-top { margin-bottom: 8px; }

  .ob-coach { gap: 10px; }

  .ob-bigface { width: 130px; height: 130px; }
  .ob-welcome { flex-wrap: nowrap; align-items: flex-start; gap: 20px; }
  .ob-hero { flex: 0 1 300px; min-height: 0; margin-top: 30px; }
  .ob-splat { width: 260px; }
  .ob-pao.big { width: 90px; height: 99px; }
  .ob-logo { font-size: 56px; }
  .ob-hi { font-size: 18px; }

}

/* 简 / 繁 / EN for the grown-up screens (js/i18n.js): on the welcome card, the top bar and the ☁️ sheet */
.lang-switch { display: inline-flex; border: 3px solid var(--ink); border-radius: 999px; background: #fff; overflow: hidden; flex: none; }
.lang-switch button { border: 0; background: none; font: 900 15px/1 var(--f-body); color: var(--muted); padding: 7px 11px; min-width: 40px; min-height: 34px; }
.lang-switch button + button { border-left: 2px solid #e7e1d8; }
.lang-switch button[aria-checked="true"] { background: var(--ink); color: #fff; }
.ob-cardtop { display: flex; align-items: center; justify-content: space-between; gap: 10px; flex-wrap: wrap; margin-top: -8px; }
.ob-tr { display: flex; align-items: center; gap: 10px; }
.acct-lang { display: flex; align-items: center; justify-content: center; gap: 10px; margin: 0 0 14px; font-weight: 800; font-size: 15px; color: var(--lp-ink2, #6b6578); }
.acct-lang .lang-switch { border-width: 2px; }
/* Chinese reads better a touch looser than the English display type */
html:lang(zh) .ob h1 { line-height: 1.2; text-wrap: balance; }

/* the step's Back / Next stay on screen while the page scrolls (a phone has to scroll the kids and words steps) */
.ob.step-kids .ob-nav, .ob.step-words .ob-nav {
  position: sticky; bottom: calc(-1 * max(20px, env(safe-area-inset-bottom))); z-index: 5;
  margin: 18px -8px calc(-1 * max(20px, env(safe-area-inset-bottom))); padding: 12px 8px max(16px, env(safe-area-inset-bottom));
  background: linear-gradient(rgba(253, 251, 247, 0), #fdfbf7 26%);
}
.ob-nolist { margin: 4px 0 0; }
/* narrow screens: the kids already added sit above the form, so adding one visibly works */
@media (max-width: 760px), (max-height: 520px) {
  .ob-roster { order: -1; gap: 12px; }
  .ob-roster:not(.has) { display: none; }
  .ob-roster .ob-room { display: none; }
  .ob-kidtile { padding: 8px 12px; border-radius: 22px; box-shadow: 0 5px 0 var(--ink); }
  .ob-kidtile .ob-face svg { width: 46px; height: 46px; }
  .ob-cols { gap: 18px; margin-top: 16px; }
}
body:has(#onboard:not([hidden])) .rotate-me { display: none !important; }   /* the welcome works with an iPad upright */
@media (max-width: 760px) {
  /* Back and Skip as one small row, Next full width under them */
  .ob.step-kids .ob-nav, .ob.step-words .ob-nav { display: grid; grid-template-columns: auto 1fr; gap: 4px 12px; padding-top: 8px; }
  .ob.step-words .ob-nav > span { display: contents; }
  .ob.step-kids .ob-nav .ob-link, .ob.step-words .ob-nav .ob-link { padding: 6px 2px; font-size: 16px; }
  .ob.step-words #ob-skip { justify-self: end; }
  .ob.step-kids #ob-next, .ob.step-words #ob-next { grid-column: 1 / -1; width: 100%; }
}
@media (max-width: 760px) {
  /* the welcome: a smaller hero, and "Set up our family" stays in reach while the promises scroll */
  .ob-welcome { gap: 8px; }
  .ob-hero { min-height: 0; flex-basis: auto; padding: 4px 0 8px; }
  .ob-splat { width: 210px; }
  .ob-pao.big { width: 76px; height: 84px; }
  .ob-logo { font-size: 58px; }
  .ob-hi { font-size: 17px; margin-top: 6px; }
  .ob.step-welcome #ob-new { position: sticky; bottom: max(12px, env(safe-area-inset-bottom)); z-index: 3; }
}

/* 🌱 Home: still on the starter words, a small card for grown-ups (Onboard.wordsNudge) */
.ob-wnudge { position: fixed; right: max(18px, env(safe-area-inset-right)); bottom: max(18px, env(safe-area-inset-bottom)); z-index: 30;
  width: min(380px, calc(100vw - 36px)); display: flex; gap: 12px; align-items: flex-start; box-sizing: border-box;
  background: #fff8d6; border: 4px solid #1d2233; border-radius: 24px; box-shadow: 0 7px 0 #1d2233; padding: 14px 16px; color: #1d2233;
  font-family: "Nunito", sans-serif; transform: rotate(-1deg); animation: ob-in .4s ease-out both; }
.ob-wnudge .ob-pao { width: 44px; height: 48px; flex: none; }
.ob-wnudge small { font-weight: 900; font-size: 12px; letter-spacing: .08em; text-transform: uppercase; color: #6b6578; }
.ob-wnudge b { display: block; font-family: "Lilita One", sans-serif; font-weight: 400; font-size: 22px; line-height: 1.05; margin-top: 2px; }
.ob-wnudge p { margin: 4px 0 8px; font-weight: 700; font-size: 14px; line-height: 1.35; color: #4a4560; }
.ob-wnudge span { display: flex; align-items: center; gap: 10px; }
.ob-wnudge .ob-btn { font-family: "Lilita One", sans-serif; border: 3px solid #1d2233; border-radius: 999px; box-shadow: 0 4px 0 #1d2233; font-size: 18px; padding: 6px 16px; background: #ffc22e; color: #1d2233; }
.ob-wnudge .ob-link { background: none; border: 0; font: 800 15px "Nunito", sans-serif; color: #4a4560; text-decoration: underline; padding: 6px; }
@media (max-width: 760px) {
  .ob.step-kids .ob-nav > span { display: contents; }
  .ob.step-kids #ob-tolist { justify-self: end; text-align: right; white-space: nowrap; }
}
@media (max-height: 500px) {
  .ob-wnudge p { display: none; }
  .ob-wnudge { max-width: 340px; }
  .ob-wnudge b { margin-bottom: 8px; }
}

/* 🫧 onboarding v2: how much Chinese, the 听写 day, whose class, kids who'll start later */
.ob-know { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; margin-top: 12px; }
.ob-know b { font-weight: 900; font-size: 16px; margin-right: 2px; }
.ob-kn { border: 3px solid #e6dfd2; background: #fff8ee; border-radius: 999px; padding: 6px 14px; font: 800 15px var(--f-body); color: var(--ink); }
.ob-kn.on { border-color: var(--ink); background: #ffeaf2; box-shadow: 0 3px 0 var(--ink); }
.ob-knowtag { display: inline-block; margin-top: 4px; border: 0; border-radius: 999px; padding: 3px 10px; background: rgba(255, 255, 255, .25); color: #fff; font: 800 14px var(--f-body); text-shadow: 0 1px 0 rgba(0, 0, 0, .25); }
.ob-testday { flex-wrap: wrap; margin-bottom: 12px; }
.ob-testday input { flex: 0 1 200px; }
.ob-testday small { flex-basis: 100%; font-weight: 700; color: var(--muted); font-size: 13px; }
.ob-whose { display: flex; flex-direction: column; gap: 8px; margin-bottom: 12px; }
.ob-whose b { font-weight: 900; font-size: 16px; }
.ob-whose span { display: flex; gap: 8px; flex-wrap: wrap; }
.ob-whose .chip { display: inline-flex; align-items: center; gap: 6px; border: 3px solid #e6dfd2; background: #fff8ee; border-radius: 999px; padding: 4px 14px 4px 6px; font: 800 16px var(--f-body); }
.ob-whose .chip.on { border-color: var(--ink); background: #ffeaf2; }
.ob.step-handoff .ob-foot-note { display: flex; flex-direction: column; align-items: center; gap: 2px; }
.ob.step-handoff .ob-foot-note .ob-link { color: #fff; font-size: 16px; padding: 6px; }

.ob-knowtag { white-space: nowrap; font-size: 13px; }
/* a phone held sideways: the whole turn screen, with the grown-up's "not here" link, fits without scrolling */
@media (max-height: 520px) {
  .ob.step-handoff .ob-bigface { width: 92px; height: 92px; border-width: 4px; box-shadow: 0 5px 0 var(--ink); }
  .ob.step-handoff .ob-bigface svg.buddy { width: 76px; height: 76px; }
  .ob.step-handoff .ob-pao.peek { width: 44px; height: 48px; }
  .ob.step-handoff .ob-turn { gap: 6px; }
  .ob.step-handoff .ob-turn h1 { font-size: 40px; margin-top: 6px; }
  .ob.step-handoff .ob-turn p { font-size: 17px; }

  .ob.step-handoff .ob-btn.huge { font-size: 26px; padding: 8px 28px; }
  .ob.step-handoff .ob-foot-note { margin-top: 6px; font-size: 13px; }
  .ob.step-handoff .ob-foot-note .ob-link { font-size: 14px; padding: 2px 6px; }
}

/* design review (2026-10-13): Brand new · Some · A lot as a segmented control, 44pt targets and 15pt text */
.ob-know { gap: 6px 10px; }
.ob-seg { display: inline-flex; border: 3px solid var(--ink); border-radius: 999px; background: #fff8ee; overflow: hidden; max-width: 100%; }
.ob-seg button { min-height: 44px; min-width: 44px; padding: 0 14px; border: 0; background: none; font: 800 15px var(--f-body); color: var(--ink); white-space: nowrap; }
.ob-seg button + button { border-left: 2px solid #e6dfd2; }
.ob-seg button.on { background: var(--ink); color: #fff; }
/* on a kid's card the control takes its own full-width line (inline on a short sideways screen) */
.ob-kidtile { flex-wrap: wrap; }
.ob-kidtile .ob-seg { order: 5; flex: 1 1 100%; }
.ob-kidtile .ob-seg button { flex: 1; padding: 0 8px; }
.ob-seg.light { border-color: #fff; background: rgba(255, 255, 255, .18); text-shadow: none; }
.ob-seg.light button { color: #fff; }
.ob-seg.light button + button { border-left-color: rgba(255, 255, 255, .5); }
.ob-seg.light button.on { background: #fff; color: var(--ink); }
/* the pinned Back / Next row sits on solid paper, with a fade above it */
.ob.step-kids .ob-nav, .ob.step-words .ob-nav { background: #fdfbf7; }
.ob.step-kids .ob-nav::before, .ob.step-words .ob-nav::before { content: ""; position: absolute; left: 0; right: 0; top: -28px; height: 28px; pointer-events: none; background: linear-gradient(rgba(253, 251, 247, 0), #fdfbf7); }
/* nothing grown-ups read under 15pt */
.ob-testday small, .ob-level small { font-size: 15px; }
/* the ready screen: saving the family is its own step with a button */

@media (max-height: 520px) {
  .ob.step-handoff .ob-foot-note, .ob.step-handoff .ob-foot-note .ob-link { font-size: 15px; }
  /* a sideways phone: each kid is a compact row, so the add-kid form stays in view */
  .ob-kidtile { padding: 4px 10px; gap: 10px; min-height: 64px; box-sizing: border-box; border-width: 3px; box-shadow: 0 4px 0 var(--ink); }
  .ob-kidtile:nth-child(n) { transform: none; }
  .ob-kidtile .ob-face svg { width: 40px; height: 40px; }
  .ob-kidtile { flex-wrap: nowrap; }
  .ob-kidtile b { font-size: 24px; }
  .ob-kidtile .ob-seg { order: 0; flex: 0 0 auto; }
  .ob-kidtile .ob-seg button { flex: none; padding: 0 12px; }
  .ob.step-kids .ob-lead { display: none; }
  .ob-roster { gap: 8px; }
}
/* Justin's review: "No list, just practice" and "isn't here?" are real buttons, not small links */
.ob-btn.alt { font: 900 18px var(--f-body); min-height: 52px; padding: 8px 22px; border-width: 3px; box-shadow: 0 4px 0 var(--ink); background: #fff; }
.ob-btn.alt.light { background: rgba(255, 255, 255, .14); color: #fff; border-color: #fff; box-shadow: 0 4px 0 rgba(29, 34, 51, .55); margin-top: 8px; text-shadow: 0 1px 0 rgba(0, 0, 0, .25); }
.ob.step-handoff .ob-foot-note .ob-btn.alt.light { font-size: 18px; padding: 8px 22px; }
@media (max-width: 760px) {
  .ob.step-kids .ob-nav .ob-btn.alt, .ob.step-words .ob-nav .ob-btn.alt { justify-self: end; font-size: 16px; padding: 6px 16px; min-height: 46px; }
}
@media (max-height: 520px) {
  .ob.step-handoff .ob-foot-note .ob-btn.alt.light { font-size: 16px; padding: 4px 18px; min-height: 44px; margin-top: 4px; }
}
@media (max-width: 760px) { .ob.step-words #ob-skip.go { grid-column: 1 / -1; width: 100%; justify-self: stretch; } }
/* 🎟️ the founding offer, on the save step and "You're all set" (until Nov 1) */
.ob-offer { margin: 12px 0 0; padding: 10px 14px; border: 3px dashed #e0a100; border-radius: 16px; background: #fff8d6; font-weight: 900; font-size: 16px; line-height: 1.35; color: var(--ink); }
.ob-offerbar { display: flex; align-items: center; gap: 12px 16px; flex-wrap: wrap; margin: 16px 0 4px; }
.ob-offerbar .ob-offer { margin: 0; flex: 1 1 320px; }
.ob-offerbar .ob-btn { flex: 0 0 auto; min-height: 52px; }
/* leadership review: pale cards get ink text; 44pt targets for buddies, the language switch and the Back links */
.ob-kidtile.lite { color: var(--ink); }
.ob-kidtile.lite > div { text-shadow: none; }
.ob-kidtile.lite .ob-seg.light { border-color: var(--ink); background: rgba(255, 255, 255, .45); }
.ob-kidtile.lite .ob-seg.light button { color: var(--ink); }
.ob-kidtile.lite .ob-seg.light button + button { border-left-color: rgba(29, 34, 51, .3); }
.ob-kidtile.lite .ob-seg.light button.on { background: var(--ink); color: #fff; }
.ob-bud { min-width: 44px; min-height: 44px; }
.lang-switch button { min-height: 44px; min-width: 44px; }
.ob-nav .ob-link { min-height: 44px; }

/* 📱 leadership review (2026-10-13): every step's main button is on screen without scrolling, at every size.
   The welcome keeps the phone's real size (PhoneFit.native in js/phonefit.js), so these rules see a real phone. */
.ob-namerow { display: flex; align-items: flex-end; gap: 10px; }
.ob-namerow .ob-field { flex: 1; min-width: 0; }
.ob-namerow .ob-btn { flex: none; min-height: 52px; }
.ob-acct .ob-btn.alt { width: 100%; }
/* "You're all set": Done stays pinned at the bottom, like the kids and words steps */
.ob.step-ready .ob-nav {
  position: sticky; bottom: calc(-1 * max(20px, env(safe-area-inset-bottom))); z-index: 5;
  margin: 18px -8px calc(-1 * max(20px, env(safe-area-inset-bottom))); padding: 12px 8px max(16px, env(safe-area-inset-bottom));
  background: #fdfbf7;
}
.ob.step-ready .ob-nav::before { content: ""; position: absolute; left: 0; right: 0; top: -28px; height: 28px; pointer-events: none; background: linear-gradient(rgba(253, 251, 247, 0), #fdfbf7); }
@media (max-width: 760px) {
  .ob.step-ready .ob-nav .ob-muted { display: none; }
  .ob.step-ready .ob-nav .ob-btn { width: 100%; }
  .ob.step-ready .ob-routine { gap: 14px; margin-top: 18px; }
  .ob.step-ready .ob-rt { min-height: 0; padding: 16px 18px; }
  .ob.step-ready .ob-rt .hz { font-size: 72px; }
  .ob.step-ready .ob-rt b { margin-top: 8px; font-size: 28px; }
  /* the save step: the form first, the why after it */
  .ob.step-save .ob-why .ob-lead { font-size: 16px; }
  .ob.step-save .ob-why h1 { font-size: 30px; }
}
@media (max-height: 520px) {
  .ob-top { margin-bottom: 8px; }
  .ob-top .ob-steps { display: none; }
  .ob-brand { font-size: 24px; }
  .ob h1 { font-size: 30px; }
  .ob-lead { font-size: 15px; }
  /* the welcome: no big logo; the promises on the left, the button on the right */
  .ob-welcome .ob-hero { display: none; }
  .ob-welcome .ob-card { flex: 1 1 100%; display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); grid-template-areas: "top top" "h1 note" "ul btn" "ul have"; gap: 8px 24px; padding: 14px 22px 12px; align-items: start; }
  .ob-welcome .ob-cardtop { grid-area: top; margin: 0; }
  .ob-welcome h1 { grid-area: h1; font-size: 28px; margin: 0; }
  .ob-welcome .ob-promises { grid-area: ul; gap: 8px; }
  .ob-welcome .ob-promises span { display: none; }
  .ob-welcome .ob-promises i { width: 36px; height: 36px; font-size: 18px; border-radius: 12px; }
  .ob-welcome .ob-promises b { font-size: 16px; }
  .ob-welcome .ob-note { grid-area: note; font-size: 15px; padding: 8px 12px; }
  .ob-welcome #ob-new { grid-area: btn; font-size: 24px; padding: 8px 20px; }
  .ob-welcome #ob-have { grid-area: have; font-size: 15px; padding: 6px; min-height: 44px; }
  /* the kids step: the form shows just the name, buddies and level; the cards sit beside it */
  .ob.step-kids .ob-cols { flex-wrap: nowrap; align-items: flex-start; gap: 14px; margin-top: 6px; }
  .ob.step-kids .ob-kidform { flex: 1 1 50%; min-width: 0; padding: 12px 16px; }
  .ob.step-kids .ob-roster { order: 0; flex: 1 1 50%; min-width: 0; }
  .ob.step-kids .ob-kidtile b { flex: none; }
  .ob.step-ready .ob-nav .ob-muted { display: none; }
  .ob.step-kids .ob-roster:not(.has) { display: none; }
  .ob.step-kids h1 { font-size: 26px; }
  .ob.step-kids .ob-kidtile { gap: 8px; padding: 4px 8px 4px 14px; }
  .ob.step-kids .ob-kidtile .ob-face { display: none; }
  .ob.step-kids .ob-kidtile > div { flex: 1 1 auto; min-width: 40px; }
  .ob.step-kids .ob-kidtile .ob-seg button { font-size: 15px; padding: 0 7px; min-width: 44px; }
  /* the kid's turn and the pop: everything fits, down to the grown-up's button */
  .ob.step-handoff .ob-turn h1 { font-size: 32px; margin-top: 2px; }
  .ob.step-handoff .ob-bigface { width: 76px; height: 76px; }
  .ob.step-handoff .ob-bigface svg.buddy { width: 62px; height: 62px; }
  .ob.step-handoff .ob-foot-note { margin-top: 2px; gap: 0; }

  /* the save step: the why on the left, the form on the right, no pictures */
  .ob.step-save .ob-cols { flex-wrap: nowrap; gap: 18px; margin-top: 4px; }
  .ob.step-save .ob-why { flex: 1 1 45%; }
  .ob.step-save .ob-acct { flex: 1 1 55%; padding: 12px 16px; gap: 8px; }
  .ob.step-save .ob-devices, .ob.step-save .ob-acct small, .ob.step-save .ob-key { display: none; }
  .ob.step-save .ob-field input { padding-top: 8px; padding-bottom: 8px; }
  .ob.step-save .ob-acct .ob-btn.go { font-size: 22px; padding: 8px 20px; }
  .ob-offer { font-size: 15px; padding: 8px 12px; }
}
@media (max-height: 520px) { .ob-namerow input { font-size: 19px; } }

/* 🎟️ the save step (Justin, 2026-10-13: "this does not wow me", "where is the google login?"): the founding
   offer is a gold ticket with the kids on it, and Continue with Google leads the form */
.ob-ticket {
  position: relative; overflow: hidden; display: flex; flex-direction: column; align-items: flex-start; gap: 4px;
  margin-top: 22px; padding: 22px 28px 24px; max-width: 520px; box-sizing: border-box;
  background: var(--yellow); border: 4px solid var(--ink); border-radius: 26px; box-shadow: 0 8px 0 var(--ink);
  transform: rotate(-1.5deg); animation: ob-pop .5s ease-out both;
}
/* the punched notches of a ticket, in the page's paper color */
.ob-ticket::before, .ob-ticket::after { content: ""; position: absolute; top: 50%; width: 34px; height: 34px; margin-top: -17px; border-radius: 50%; background: #fdfbf7; border: 4px solid var(--ink); }
.ob-ticket::before { left: -21px; }
.ob-ticket::after { right: -21px; }
.ob-tkfaces { display: flex; margin-bottom: 6px; }
.ob-tkfaces > * + * { margin-left: -10px; }
.ob-tkkick { font-weight: 900; font-size: 15px; letter-spacing: .08em; text-transform: uppercase; color: #8a4b00; }
.ob-ticket b { font-family: var(--f-display); font-weight: 400; font-size: clamp(32px, 3.6vw, 46px); line-height: 1.02; }
.ob-tkby { margin-top: 6px; padding: 4px 12px; border: 3px dashed var(--ink); border-radius: 999px; font-weight: 900; font-size: 16px; background: #fff3c4; }
.ob-acct .ob-gbtn { min-height: 60px; font-size: 22px; background: #fff; }
.ob-acct .ob-or { margin: 2px 0; }
@media (max-width: 760px) {
  .ob-ticket { margin: 14px 8px 4px; padding: 18px 24px 20px; }
  .ob-ticket b { font-size: 34px; }
}
@media (max-height: 520px) {
  .ob.step-save .ob-ticket { margin-top: 8px; padding: 12px 20px 14px; }
  .ob.step-save .ob-ticket b { font-size: 28px; }
  .ob.step-save .ob-tkfaces { display: none; }
  .ob.step-save .ob-acct .ob-gbtn { min-height: 48px; font-size: 18px; padding: 6px 14px; }
  .ob.step-save .ob-acct .ob-or { font-size: 13px; }
  .ob.step-save .ob-acct small { display: none; }
}
.ob-mail { display: flex; flex-direction: column; gap: 14px; }
.ob.step-save .ob-acct .ob-msg:empty { display: none; }
@media (max-width: 760px) { .ob-acct .ob-gbtn { font-size: 19px; padding: 10px 14px; } }
@media (max-height: 520px) { .ob.step-save .ob-mail { gap: 8px; } }
/* an upright phone: the ticket gets small so Google, email and Save all fit above the fold */
@media (max-width: 760px) and (max-height: 1000px) {
  .ob.step-save .ob-why h1 { font-size: 26px; }
  .ob.step-save .ob-ticket { margin: 8px 6px 0; padding: 10px 22px 12px; gap: 2px; }
  .ob.step-save .ob-tkfaces { display: none; }
  .ob.step-save .ob-ticket b { font-size: 26px; }
  .ob.step-save .ob-tkby { margin-top: 4px; font-size: 14px; }
  .ob.step-save .ob-cols { gap: 14px; }
  .ob.step-save .ob-acct { gap: 10px; padding: 16px; }
  .ob.step-save .ob-mail { gap: 10px; }
  .ob.step-save .ob-acct .ob-gbtn { min-height: 52px; }
}
/* a sideways phone: email and password side by side, so Save and Not now stay on screen */
@media (max-height: 520px) {
  .ob.step-save .ob-mail { display: grid; grid-template-columns: 1fr 1fr; gap: 6px 10px; }
  .ob.step-save .ob-mail .ob-btn { grid-column: 1 / -1; }
  .ob.step-save .ob-mail .ob-field { font-size: 13px; gap: 2px; }
  .ob.step-save .ob-mail .ob-field { min-width: 0; }
  .ob.step-save .ob-mail .ob-field input { font-size: 16px; padding: 6px 10px; min-width: 0; width: 100%; box-sizing: border-box; }
  .ob.step-save .ob-mail .ob-btn { min-width: 0; width: 100%; box-sizing: border-box; }
  .ob.step-save .ob-acct .ob-btn.alt { min-height: 44px; padding-top: 4px; padding-bottom: 4px; }
}
/* the buddy stays inside its circle when the circle shrinks on smaller screens */
.ob-bigface svg.buddy { width: 78%; height: 78%; }

/* design review of v407 (2026-10-14) */
/* "泡泡 says 你好!": only the Chinese in the brush font */
.ob-hi { font-family: var(--f-body); font-weight: 900; }
.ob-hi .hz { font-family: var(--f-hz); font-weight: 700; }
.ob-testday input { min-height: 44px; box-sizing: border-box; }
/* an upright phone: the test day's label above a full-width date, and the add-kid form before the kids added */
@media (max-width: 760px) {
  .ob-field.ob-testday { flex-direction: column; align-items: stretch; gap: 6px; }
  .ob-field.ob-testday input { flex: none; width: 100%; box-sizing: border-box; min-width: 0; }
  .ob.step-kids .ob-roster { order: 1; }
}
@media (max-height: 520px) {
  /* words: the iPad's two columns, a 2-line paste box with Add pinyin beside it, the lists scroll on the right */
  .ob.step-words .ob-cols.wide { flex-wrap: nowrap; gap: 16px; margin-top: 6px; align-items: stretch; }
  .ob.step-words .ob-cols.wide > :first-child { flex: 1 1 58%; }
  .ob.step-words .ob-side { flex: 1 1 42%; min-width: 0; gap: 8px; max-height: calc(100dvh - 190px); overflow-y: auto; scrollbar-width: none; padding: 2px 4px 8px; }
  .ob.step-words .ob-side::-webkit-scrollbar { display: none; }
  .ob.step-words .ob-sticky { display: none; }
  .ob.step-words .ob-levels { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 6px; }
  .ob.step-words .ob-wordcard { padding: 12px 16px; gap: 10px; }
  .ob.step-words .ob-testday { margin-bottom: 0; }
  .ob.step-words .ob-wordcard:has(.ob-paste) { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; }
  .ob.step-words .ob-wordcard:has(.ob-paste) > :not(.ob-paste):not(#ob-read) { grid-column: 1 / -1; }
  .ob.step-words .ob-paste { min-height: 0; height: calc(2.5em + 12px); line-height: 1.25; font-size: 20px; padding: 4px 12px; resize: none; }
  .ob.step-words #ob-read { align-self: center; min-height: 48px; }
  .ob.step-words .ob-drop { padding: 10px 14px; }
  /* ready: the offer and its button on one row, then the routine as three short cards */
  .ob.step-ready .ob-offerbar { flex-wrap: nowrap; margin: 6px 0 0; gap: 12px; }
  .ob.step-ready .ob-offerbar .ob-offer { flex: 1 1 auto; font-size: 15px; padding: 6px 12px; }
  .ob.step-ready .ob-offerbar .ob-btn { min-height: 48px; font-size: 16px; padding: 6px 16px; white-space: nowrap; }
  .ob.step-ready .ob-readyhead h1 { margin: 0; }
  .ob.step-ready .ob-readyhead .ob-lead { margin: 2px 0 0; }
  .ob.step-ready .ob-routine { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; margin-top: 12px; }
  .ob.step-ready .ob-rt { min-height: 0; padding: 10px 14px 12px; gap: 6px; border-width: 3px; border-radius: 22px; box-shadow: 0 5px 0 var(--ink); }
  .ob.step-ready .ob-rt .hz { font-size: 60px; right: 8px; top: 2px; }
  .ob.step-ready .ob-rt .when { font-size: 13px; padding: 2px 10px; }
  .ob.step-ready .ob-rt b { margin-top: 4px; font-size: 22px; }
  .ob.step-ready .ob-rt p { display: none; }
  /* kids: one swipeable row of buddies, the colors and "Chinese so far" fit in the card without scrolling
     (the name's label is the placeholder here, and the buddy's ring shows the pick) */
  .ob.step-kids .ob-kidform { gap: 6px; padding-top: 10px; padding-bottom: 10px; }
  .ob.step-kids .ob-namerow .ob-btn { min-height: 48px; }
  .ob.step-kids .ob-namerow input { padding-top: 6px; padding-bottom: 6px; min-height: 46px; box-sizing: border-box; }
  .ob.step-kids .ob-namerow .ob-field { font-size: 0; gap: 0; }
  .ob.step-kids .ob-kidform > .ob-row { display: none; }
  .ob.step-kids .ob-buddies { grid-auto-flow: column; grid-template-columns: none; grid-auto-columns: calc((100% - 7 * 6px) / 8); gap: 6px; overflow-x: auto; scrollbar-width: none; padding: 1px 0 2px; }
  .ob.step-kids .ob-buddies::-webkit-scrollbar { display: none; }
  .ob.step-kids .ob-colors { flex-wrap: nowrap; gap: 8px; }
  .ob.step-kids .ob-colors b { display: none; }
  .ob.step-kids .ob-col { width: 28px; height: 28px; flex: none; position: relative; }
  .ob.step-kids .ob-col::after { content: ""; position: absolute; inset: -8px -4px; }   /* a bigger target to tap */
  .ob.step-kids .ob-know { margin: 0; flex-wrap: nowrap; }
  .ob.step-kids .ob-know b { font-size: 15px; white-space: nowrap; }
  .ob.step-kids .ob-know .ob-seg button { padding: 0 9px; }
  .ob.step-kids .ob-kidform > .ob-msg:empty { display: none; }
  /* the Hi card: Pao Pao tucked onto the face's rim, a little air above the name */
  .ob.step-handoff .ob-pao.peek { right: -26px; bottom: -8px; }
  .ob.step-handoff .ob-turn h1 { margin-top: 14px; }
}

/* the welcome video (one per language, js/onboard.js VSL): it takes the place of the headline, the promises and the note.
   It's square, sized so the button and sign-in link stay on screen */
.ob-vsl { position: relative; align-self: center; width: min(100%, calc(100dvh - 330px)); aspect-ratio: 1; border-radius: 22px; overflow: hidden; background: #fbf6ea; border: 3px solid var(--ink); }
.ob-vsl video { width: 100%; height: 100%; display: block; object-fit: cover; cursor: pointer; }
.ob-sound { position: absolute; right: 8px; top: 8px;   /* a small round button in the top corner: the captions run along the bottom */ width: 48px; height: 48px; display: grid; place-items: center; font-size: 22px; line-height: 1; background: var(--ink); color: #fff; border: 3px solid #fff; border-radius: 50%; padding: 0; cursor: pointer; box-shadow: 0 4px 10px rgba(0, 0, 0, .25); animation: ob-sound-pulse 2.4s ease-in-out infinite; }
@keyframes ob-sound-pulse { 50% { transform: scale(1.1); } }
.ob-sound.on { animation: none; }
@media (prefers-reduced-motion: reduce) { .ob-sound { animation: none; } }
.ob-sound.on { background: rgba(29, 34, 51, .55); }
.ob-welcome.has-vsl h1, .ob-welcome.has-vsl .ob-promises, .ob-welcome.has-vsl .ob-note { display: none; }
.ob-welcome.has-vsl .ob-card { gap: 14px; padding-top: 24px; padding-bottom: 20px; }
@media (max-width: 760px) {
  /* phone upright: the video has its own logo and Pao Pao, so the big hero steps aside */
  .ob-welcome.has-vsl .ob-hero { display: none; }
  .ob-welcome.has-vsl .ob-card { padding: 16px 16px 12px; gap: 12px; }
  .ob-welcome.has-vsl .ob-vsl { width: min(100%, calc(100dvh - 260px)); }
  .ob-welcome.has-vsl .ob-alts .ob-kidin { display: inline-flex; }   /* the hero (and its "I'm a kid") steps aside, so it moves into the card */
  .ob-welcome.has-vsl ~ .ob-foot-note { display: none; }
}
@media (max-height: 520px) {
  /* phone sideways: the video on the left, one line of text and the button beside it */
  .ob-welcome.has-vsl .ob-card { grid-template-columns: auto minmax(0, 1fr); grid-template-areas: "vid top" "vid h1" "vid btn" "vid have"; grid-template-rows: auto 1fr auto auto; padding: 12px 18px; gap: 6px 22px; }
  .ob-welcome.has-vsl .ob-vsl { grid-area: vid; align-self: stretch; width: auto; height: calc(100dvh - 64px - env(safe-area-inset-top, 0px) - env(safe-area-inset-bottom, 0px)); }
  .ob-welcome.has-vsl h1 { display: block; align-self: center; }
  .ob-welcome.has-vsl ~ .ob-foot-note { display: none; }
}

/* 🧒 "I'm a kid" (2026-10-15): one screen, the name and a buddy, then play */
.ob-alts .ob-link { min-height: 44px; }
.ob-alts { display: flex; align-items: center; justify-content: center; gap: 8px 16px; flex-wrap: wrap; }
.ob-btn.alt.kid { background: #ffeaf2; }
/* the kid's way in sits up by Pao Pao, away from the grown-ups' card; a sideways phone has no hero, so it's in the card */
.ob-kidtop { margin-top: 14px; position: relative; z-index: 2; }
.ob-alts .ob-kidin { display: none; }
.ob.step-kidme { background-color: var(--violet); background-image: radial-gradient(rgba(255, 255, 255, .16) 2px, transparent 2.5px); background-size: 34px 34px; }
.ob-who.ob-back { font: 900 16px var(--f-body); min-height: 44px; left: max(20px, env(safe-area-inset-left)); right: auto; background: #fff; color: var(--ink); }
.ob-kidme { position: relative; flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; color: #fff; gap: 12px; width: min(720px, 100%); margin: 0 auto; }
.ob-kidme .ob-bigface { width: 150px; height: 150px; }
.ob-kidme .ob-bigface .ob-pao { width: 70%; height: 70%; }
.ob-kidme h1 { font-size: clamp(38px, 6vw, 60px); text-shadow: 0 5px 0 var(--ink); margin: 8px 0 0; }
.ob-kidname { width: min(440px, 100%); box-sizing: border-box; font: 900 28px var(--f-body); text-align: center; color: var(--ink); background: #fff; border: 4px solid var(--ink); border-radius: 22px; box-shadow: 0 6px 0 var(--ink); padding: 10px 16px; outline: none; }
.ob-kidpick { font-weight: 900; font-size: 18px; margin-top: 6px; }
.ob-buddies.kid { width: 100%; grid-template-columns: repeat(8, minmax(0, 1fr)); }
.ob-buddies.kid .ob-bud { border-color: rgba(255, 255, 255, .6); }
.ob-buddies.kid .ob-bud.on { border-color: var(--ink); }   /* the picked buddy keeps its ink ring over the violet */
.ob-kidme .ob-btn.huge { margin-top: 10px; }
@media (max-width: 760px) {
  .ob-kidme .ob-bigface { width: 110px; height: 110px; }
  .ob-kidme .ob-btn.huge { font-size: 30px; padding: 12px 36px; }
}
/* a sideways phone: face and name on the left, buddies and Let's go on the right */
@media (max-height: 520px) {
  .ob-alts .ob-kidin { display: inline-flex; }
  .ob-welcome .ob-alts { grid-area: have; justify-content: flex-start; gap: 4px 10px; }
  .ob-welcome .ob-alts .ob-btn.alt { min-height: 44px; font-size: 16px; padding: 4px 14px; }
  .ob-welcome .ob-alts #ob-have { grid-area: auto; }
}
/* (landscape only: an upright phone with its keyboard up is short too, and keeps the stacked layout) */
@media (max-height: 520px) and (orientation: landscape) {
  .ob-kidme { display: grid; grid-template-columns: auto minmax(0, 1fr); grid-template-areas: "face h1" "face name" "pick pick" "bud bud" "go go"; column-gap: 18px; row-gap: 6px; width: min(760px, 100%); align-content: center; text-align: left; }
  .ob-kidme .ob-bigface { grid-area: face; width: 92px; height: 92px; border-width: 4px; box-shadow: 0 5px 0 var(--ink); }
  .ob-kidme h1 { grid-area: h1; font-size: 32px; margin: 0; }
  .ob-kidname { grid-area: name; font-size: 22px; padding: 6px 14px; width: 100%; }
  .ob-kidpick { grid-area: pick; display: none; }
  .ob-buddies.kid { grid-area: bud; grid-auto-flow: column; grid-template-columns: none; grid-auto-columns: calc((100% - 15 * 6px) / 16); gap: 6px; }
  .ob-kidme .ob-btn.huge { grid-area: go; justify-self: center; font-size: 26px; padding: 6px 32px; margin-top: 4px; }
}
