/* The onboarding: Doodle (the mascot), a few questions, "all set", the account step. Markup is built by onb.js inside #onb.
   It follows the app's colours (night blue, pink, gold) and sits above everything like the intro does. */
.onb { position: fixed; inset: 0; z-index: 60; display: flex; flex-direction: column; align-items: center; overflow: hidden;
  background: radial-gradient(120% 80% at 50% 0%, #232a5c 0%, #14173a 46%, #0c0e22 100%); color: var(--text);
  padding: max(14px, env(safe-area-inset-top, 0px)) 18px max(16px, env(safe-area-inset-bottom, 0px)); }
.onb[hidden] { display: none; }
.onb-in { position: relative; width: 100%; max-width: 420px; height: 100%; min-height: 0; display: flex; flex-direction: column; gap: 14px; }
.onb-top { flex: none; height: 36px; display: flex; align-items: center; gap: 12px; }
.onb-back { flex: none; width: 36px; height: 36px; margin-left: -8px; border: 0; border-radius: 50%; background: none; color: var(--text); cursor: pointer; display: flex; align-items: center; justify-content: center; }
.onb-back svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; }
.onb-back[hidden] { display: block; visibility: hidden; }
.onb-bar { flex: 1; height: 8px; border-radius: 4px; background: rgba(255, 255, 255, 0.12); overflow: hidden; }
.onb-bar i { display: block; height: 100%; width: 100%; border-radius: 4px; background: linear-gradient(90deg, #ff86a9, #ff5c8a); transform: translateX(-100%); transition: transform .45s cubic-bezier(.16, 1, .3, 1); } /* the fill slides in from the left (no layout work); onb.js sets how far */
.onb-bar[hidden] { display: block; visibility: hidden; }
.onb-body { flex: 1; min-height: 0; display: flex; flex-direction: column; gap: 14px; animation: onbIn .42s cubic-bezier(.16, 1, .3, 1); }
@keyframes onbIn { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
.onb-foot { flex: none; display: flex; flex-direction: column; gap: 8px; }
.onb-foot .chip.big { width: 100%; height: 54px; font-size: 17px; }
.onb-foot .chip.big:disabled { opacity: 0.4; }
.onb-link { align-self: center; padding: 8px 12px; border: 0; background: none; color: var(--muted); font: inherit; font-size: 14.5px; font-weight: 600; cursor: pointer; }

/* a line said by Doodle, big, with the mascot under it */
.onb-say { flex: 1; min-height: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px; text-align: center; }
.onb-say h2 { margin: 0; max-width: 340px; font-size: clamp(27px, 7.6vw, 34px); line-height: 1.14; font-weight: 800; letter-spacing: -0.02em; text-wrap: balance; }
.onb-say h2 b, .onb-q h2 b, .onb-ready h2 b, .onb-acct h2 b { color: inherit; font-weight: inherit; } /* a marked word is not set apart any more (it was pink, then underlined) */
.onb-say p { margin: 8px 0 0; max-width: 320px; font-size: 16px; line-height: 1.4; color: var(--muted); text-wrap: balance; }
.onb-say .mas { width: min(62vw, 250px, 34vh); margin-top: 18px; }

/* a question: Doodle's face, the question in a speech bubble, the answers */
.onb-q { flex: none; display: flex; align-items: center; gap: 12px; }
.onb-q .mas { flex: none; width: 64px; margin-bottom: -4px; }
.onb-q h2 { margin: 0; font-size: 22px; line-height: 1.2; font-weight: 700; text-wrap: balance; } /* the question, plain beside Doodle (it was a speech bubble) */
.onb-hint { flex: none; margin: -4px 0 0 74px; font-size: 13.5px; font-weight: 600; color: var(--muted); }
.onb-opts { flex: 1; min-height: 0; overflow-y: auto; overscroll-behavior: contain; display: flex; flex-direction: column; gap: 9px; padding: 2px 0 4px; }
/* A question and its answers sit in the middle of the screen, where the thumb is (the owner, 2026-11-18: "put the multiple choice answers center of screen not on top for easier access"). A list too long for the screen still scrolls. */
.onb-body:has(> .onb-q) { justify-content: center; }
.onb-body:has(> .onb-q) .onb-opts { flex: 0 1 auto; }
.onb-opt { flex: none; display: flex; align-items: center; gap: 12px; min-height: 56px; padding: 8px 14px; border: 1.5px solid rgba(255, 255, 255, 0.1); border-radius: 16px; background: rgba(255, 255, 255, 0.05);
  color: var(--text); font: inherit; font-size: 16.5px; font-weight: 600; text-align: left; cursor: pointer; transition: border-color .15s, background-color .15s, transform .12s; animation: onbOpt .4s cubic-bezier(.16, 1, .3, 1) backwards; }
.onb-opt:nth-child(2) { animation-delay: .05s; } .onb-opt:nth-child(3) { animation-delay: .1s; } .onb-opt:nth-child(4) { animation-delay: .15s; } .onb-opt:nth-child(5) { animation-delay: .2s; }
@keyframes onbOpt { from { opacity: 0; transform: translateY(10px); } }
.onb-opt:active { transform: scale(0.98); }
.onb-opt .tx { flex: 1; min-width: 0; }
.onb-opt .rd { flex: none; width: 24px; height: 24px; border-radius: 50%; border: 2px solid rgba(255, 255, 255, 0.3); display: flex; align-items: center; justify-content: center; transition: background-color .15s, border-color .15s; }
.onb-opt[role="checkbox"] .rd { border-radius: 8px; }
.onb-opt .rd svg { width: 14px; height: 14px; fill: none; stroke: #1b1530; stroke-width: 3.2; stroke-linecap: round; stroke-linejoin: round; opacity: 0; }
.onb-opt[aria-checked="true"] { border-color: #ff5c8a; background: rgba(255, 92, 138, 0.14); }
.onb-opt[aria-checked="true"] .rd { background: #ff5c8a; border-color: #ff5c8a; }
.onb-opt[aria-checked="true"] .rd svg { opacity: 1; }
.onb-opt[aria-checked="true"] .ic { background: rgba(255, 92, 138, 0.26); }

/* setting up: a bar that fills and a list that gets ticked */
.onb-load { flex: 1; min-height: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 14px; text-align: center; }
.onb-load .mas { width: min(40vw, 150px); }
.onb-load h2 { margin: 0; font-size: 23px; font-weight: 800; letter-spacing: -0.01em; text-wrap: balance; }
.onb-pct { font-size: 17px; font-weight: 700; color: var(--muted); font-variant-numeric: tabular-nums; }
.onb-load .onb-bar { flex: none; width: 100%; height: 12px; border-radius: 6px; }
.onb-load .onb-bar i { transition: none; }
.onb-steps { width: 100%; margin: 4px 0 0; padding: 12px 14px; list-style: none; border-radius: 16px; background: rgba(255, 255, 255, 0.06); display: flex; flex-direction: column; gap: 10px; text-align: left; }
.onb-steps li { display: flex; align-items: center; gap: 10px; font-size: 14.5px; font-weight: 600; color: var(--muted); transition: color .3s; }
.onb-steps li i { flex: none; width: 20px; height: 20px; border-radius: 50%; border: 2px solid rgba(255, 255, 255, 0.28); display: flex; align-items: center; justify-content: center; transition: background-color .3s, border-color .3s; }
.onb-steps li i svg { width: 12px; height: 12px; fill: none; stroke: #10261a; stroke-width: 3.4; stroke-linecap: round; stroke-linejoin: round; opacity: 0; }
.onb-steps li.on { color: var(--text); }
.onb-steps li.on i { background: #7be0a5; border-color: #7be0a5; } .onb-steps li.on i svg { opacity: 1; }

/* all set: what you get */
.onb-ready { flex: 1; min-height: 0; display: flex; flex-direction: column; gap: 10px; }
.onb-ready .head { flex: none; display: flex; align-items: center; gap: 12px; }
.onb-ready .mas { flex: none; width: 92px; }
.onb-ready h2 { margin: 0; font-size: 27px; line-height: 1.12; font-weight: 800; letter-spacing: -0.02em; }
.onb-ready .head p { margin: 4px 0 0; font-size: 14.5px; font-weight: 600; color: var(--muted); }
.onb-cards { flex: 1; min-height: 0; overflow-y: auto; overscroll-behavior: contain; display: flex; flex-direction: column; gap: 8px; margin: 0; padding: 0; list-style: none; }
.onb-cards li { flex: none; display: flex; align-items: center; gap: 13px; padding: 9px 2px; border-top: 1px solid rgba(255, 255, 255, 0.1); animation: onbOpt .5s cubic-bezier(.16, 1, .3, 1) backwards; }
.onb-cards li:nth-child(2) { animation-delay: .1s; } .onb-cards li:nth-child(3) { animation-delay: .2s; } .onb-cards li:nth-child(4) { animation-delay: .3s; } .onb-cards li:nth-child(5) { animation-delay: .4s; } .onb-cards li:nth-child(6) { animation-delay: .5s; }
.onb-cards b { display: block; font-size: 15.5px; font-weight: 700; line-height: 1.2; }
.onb-cards small { display: block; margin-top: 2px; font-size: 13px; line-height: 1.3; color: var(--muted); }

/* the account step */
.onb-acct { flex: 1; min-height: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 6px; text-align: center; }
.onb-acct .mas { width: min(46vw, 170px, 24vh); }
.onb-acct h2 { margin: 8px 0 0; font-size: 28px; line-height: 1.14; font-weight: 800; letter-spacing: -0.02em; text-wrap: balance; }
.onb-acct p { margin: 4px 0 0; max-width: 320px; font-size: 15px; line-height: 1.4; color: var(--muted); text-wrap: balance; }
.onb-form { display: flex; flex-direction: column; gap: 8px; }
.onb-form[hidden] { display: none; }
.onb-form input { height: 50px; padding: 0 14px; border-radius: 14px; border: 1.5px solid rgba(255, 255, 255, 0.14); background: rgba(255, 255, 255, 0.06); color: var(--text); font: inherit; font-size: 16px; }
.onb-form input:focus { outline: none; border-color: #ff5c8a; }
.onb-btn { width: 100%; height: 52px; display: flex; align-items: center; justify-content: center; gap: 10px; border: 0; border-radius: 26px; background: rgba(255, 255, 255, 0.1); color: var(--text); font: inherit; font-size: 16px; font-weight: 700; cursor: pointer; }
.onb-btn.white { background: #fff; color: #1b1530; }
.onb-btn svg { width: 20px; height: 20px; flex: none; }
.onb-btn:disabled { opacity: 0.5; }
.onb-msg { margin: 0; min-height: 18px; text-align: center; font-size: 13.5px; font-weight: 600; color: #ff8a7a; }
.onb-msg.ok { color: #7be0a5; }
.onb-legal { margin: 0; text-align: center; font-size: 12px; line-height: 1.4; color: var(--muted); }
.onb-legal a { color: inherit; text-decoration: underline; }

/* ---- Doodle, the mascot: a round pink fellow with a pencil. One drawing, a few moods (classes on .mas). ---- */
.mas { display: block; aspect-ratio: 1; overflow: visible; }
.mas .m-all { transform-origin: 100px 180px; animation: masBob 3.2s ease-in-out infinite; }
.mas .m-shadow { transform-origin: 100px 186px; animation: masShadow 3.2s ease-in-out infinite; }
.mas .m-eyes { transform-origin: 100px 98px; animation: masBlink 4.6s infinite; }
.mas .m-arm { transform-origin: 152px 122px; animation: masArm 3.2s ease-in-out infinite; }
.mas .m-mouth-o { display: none; }
@keyframes masBob { 0%, 100% { transform: translateY(0) scale(1, 1); } 50% { transform: translateY(-5px) scale(1.012, 0.99); } }
@keyframes masShadow { 0%, 100% { transform: scaleX(1); opacity: .34; } 50% { transform: scaleX(.9); opacity: .24; } }
@keyframes masBlink { 0%, 44%, 48%, 100% { transform: scaleY(1); } 46% { transform: scaleY(0.08); } }
@keyframes masArm { 0%, 100% { transform: rotate(0deg); } 50% { transform: rotate(-4deg); } }
.mas.wave .m-arm { animation: masWave 1.1s ease-in-out infinite; }
@keyframes masWave { 0%, 100% { transform: rotate(-8deg); } 50% { transform: rotate(-34deg); } }
.mas.draw .m-arm { animation: masDraw .5s ease-in-out infinite; }
@keyframes masDraw { 0%, 100% { transform: rotate(6deg) translate(0, 0); } 50% { transform: rotate(-2deg) translate(-5px, 3px); } }
.mas.cheer .m-all { animation: masJump .7s cubic-bezier(.3, 0, .4, 1) infinite; }
.mas.cheer .m-shadow { animation: masJumpShadow .7s cubic-bezier(.3, 0, .4, 1) infinite; }
.mas.cheer .m-arm { animation: masWave .35s ease-in-out infinite; }
.mas.cheer .m-mouth { display: none; } .mas.cheer .m-mouth-o { display: block; }
@keyframes masJump { 0%, 100% { transform: translateY(0) scale(1.04, 0.95); } 45% { transform: translateY(-22px) scale(0.97, 1.04); } }
@keyframes masJumpShadow { 0%, 100% { transform: scaleX(1); opacity: .34; } 45% { transform: scaleX(.7); opacity: .16; } }
.mas.think .m-pupils { transform: translate(3px, -4px); }
.mas .m-pupils { transition: transform .3s; }
.mas.peek { animation: masPeek .9s cubic-bezier(.16, 1, .3, 1) backwards; }
@keyframes masPeek { from { transform: translateY(70%) rotate(-6deg); opacity: 0; } }
@media (prefers-reduced-motion: reduce) {
  .mas .m-all, .mas .m-shadow, .mas .m-arm, .mas .m-eyes, .mas.peek, .onb-body, .onb-opt, .onb-cards li { animation: none !important; }
}
@media (max-height: 620px) {
  .onb-in { gap: 10px; } .onb-body { gap: 10px; }
  .onb-opt { min-height: 48px; font-size: 15.5px; } .onb-opts { gap: 7px; }
  .onb-foot .chip.big { height: 48px; }
  .onb-q .mas { width: 52px; } .onb-q h2 { font-size: 19px; } .onb-hint { margin-left: 62px; }
  .onb-ready .mas { width: 70px; } .onb-ready h2 { font-size: 23px; }
  .onb-cards li { padding: 7px 2px; }
}
/* the intro's money slide: Doodle with a partner link, and what a sale pays floating up */
#introPay { position: relative; width: min(100%, 320px); height: 100%; max-height: 380px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 10px; }
#introPay[hidden] { display: none; }
#introPay .mas { width: min(52%, 170px); }
#introPay .ip-link { display: flex; align-items: center; gap: 7px; padding: 10px 16px; border-radius: 999px; background: rgba(255, 255, 255, 0.09); border: 1px solid rgba(255, 255, 255, 0.14); font-size: 15.5px; font-weight: 600; color: var(--muted); }
#introPay .ip-link svg { width: 17px; height: 17px; fill: none; stroke: #ffd166; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }
#introPay .ip-link b { color: var(--text); font-weight: 700; }
#introPay .ip-pct { position: absolute; right: 6%; top: 8%; width: 74px; height: 74px; border-radius: 50%; display: flex; align-items: center; justify-content: center; background: #ffd166; color: #2b1d00; font-size: 23px; font-weight: 800; transform: rotate(10deg); box-shadow: 0 10px 24px rgba(0, 0, 0, 0.4); }
#introPay .ip-coins { position: absolute; inset: 0; pointer-events: none; }
#introPay .ip-coins i { position: absolute; left: 10%; top: 46%; padding: 5px 11px; border-radius: 999px; background: rgba(123, 224, 165, 0.16); border: 1px solid rgba(123, 224, 165, 0.5); color: #7be0a5; font-style: normal; font-size: 14.5px; font-weight: 800; font-variant-numeric: tabular-nums; opacity: 0; animation: ipCoin 3.2s ease-out infinite; }
#introPay .ip-coins i:nth-child(2) { left: 64%; top: 52%; animation-delay: 1.05s; }
#introPay .ip-coins i:nth-child(3) { left: 30%; top: 30%; animation-delay: 2.1s; }
@keyframes ipCoin { 0% { opacity: 0; transform: translateY(14px) scale(0.9); } 14% { opacity: 1; transform: translateY(0) scale(1); } 70% { opacity: 1; } 100% { opacity: 0; transform: translateY(-46px) scale(1); } }
@media (prefers-reduced-motion: reduce) { #introPay .ip-coins i { animation: none; opacity: 1; } }

/* the intro's game slide: a real round of Note Dodge as a short loop, shaped like the video you post */

/* ---- the paywall: full screen like the onboarding, Doodle with the headline, then the choices as a price shelf:
   Weekly | 7-day free trial (taller, with a "Most popular" header) | Monthly. One line under the cards gives the price
   of the chosen plan; a small disclaimer with the legal links is the last thing. Styles only: texts and what the
   choices do come from index.html. ---- */
#paywall { left: 0; top: 0; transform: none; width: 100%; height: 100%; max-height: none; border: 0; border-radius: 0; box-shadow: none; align-items: center; gap: 12px; z-index: 55;
  background: radial-gradient(120% 80% at 50% 0%, #232a5c 0%, #14173a 46%, #0c0e22 100%);
  padding: max(16px, env(safe-area-inset-top, 0px)) 18px max(10px, env(safe-area-inset-bottom, 0px)); }
#paywall > * { flex: none; width: 100%; max-width: 420px; }
#paywall > p.fit { width: auto; }
#paywall .pw-head { display: flex; align-items: center; gap: 12px; }
#paywall .pw-head .mas { flex: none; width: 78px; margin: -4px 0 -2px -4px; }
#paywall .pw-head p.pitch { flex: 1; min-width: 0; margin: 0; text-align: left; font-size: clamp(22px, 6.4vw, 27px); line-height: 1.12; }
#paywall .perks { gap: 6px; font-size: 15px; }
#paywall .plans { flex-direction: row; align-items: center; gap: 9px; border-top: 0; padding-top: 2px; }
#paywall .plans .plan[data-plan] { position: relative; flex: 1 1 0; min-width: 0; min-height: 96px; flex-direction: column; justify-content: center; align-items: center; gap: 0; padding: 12px 4px; text-align: center; overflow: hidden;
  border: 2px solid transparent; border-radius: 16px; background: rgba(255, 255, 255, 0.08); transition: border-color .15s, background-color .15s, transform .12s; }
#paywall .plans .plan[data-plan]:active { transform: scale(0.98); }
#paywall .plans .plan[data-plan="week"] { order: 1; } #paywall .plans .plan[data-plan="trial"] { order: 2; } #paywall .plans .plan[data-plan="month"], #paywall .plans .plan[data-plan="year"] { order: 3; }
#paywall .plans .plan[data-plan="trial"] { flex: 1.32 1 0; min-height: 128px; padding: 36px 6px 14px; border-color: rgba(255, 209, 102, 0.6); background: rgba(255, 255, 255, 0.06); }
#paywall .plans .plan[hidden] { display: none; }
#paywall .plans .plan[aria-checked="true"] { border-color: #ff5c8a; background: rgba(255, 92, 138, 0.15); }
#paywall .plan .pl { align-items: center; gap: 8px; width: 100%; }
#paywall .plan .pl > b { display: block; font-size: clamp(11.5px, 3.2vw, 13.5px); font-weight: 700; line-height: 1.2; color: var(--text); opacity: 0.92; }
#paywall .plan[data-plan="trial"] .pl > b { font-size: clamp(13.5px, 4.1vw, 17.5px); letter-spacing: 0.01em; line-height: 1.15; opacity: 1; text-wrap: balance; }
#paywall .plan .ppill { display: none; }
#paywall .plan[data-plan="trial"] .ppill { display: block; position: absolute; top: 0; left: 0; right: 0; padding: 5px 4px; border: 0; border-radius: 0; background: #ffd166; color: #2b1d00;
  font-size: clamp(11px, 3vw, 12.5px); font-weight: 700; line-height: 1.25; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
#paywall .plan[data-plan="trial"][aria-checked="true"] .ppill { background: #ff5c8a; color: #1b1530; }
#paywall .plan .pc { display: flex; flex-direction: column; align-items: center; }
#paywall .plan[data-plan="trial"] .pc { display: none; } /* its price is the line under the cards */
#paywall .plan .pc-price { display: block; font-size: clamp(17px, 5vw, 21px); font-weight: 800; line-height: 1.1; letter-spacing: -0.01em; font-variant-numeric: tabular-nums; white-space: nowrap; }
#paywall .plan .pc-per, #paywall .plan small.price, #paywall .plan .rd { display: none; }
#paywall p.pw-under { margin: -2px 0 0; text-align: center; font-size: 16.5px; font-weight: 600; color: var(--muted); font-variant-numeric: tabular-nums; }
#paywall p.pw-under b { color: var(--text); font-weight: 800; }
#paywall .pw-foot { position: sticky; bottom: 0; margin: auto 0 0; padding: 10px 0 2px; border-top: 0; box-shadow: none; background: linear-gradient(rgba(12, 14, 34, 0), #0d0f25 16px); }
#paywall .pw-foot .chip.big { height: 54px; font-size: 17px; }
#paywall .pw-small { margin: 0; text-align: left; font-size: 11.5px; line-height: 1.4; color: #8d90b8; }
#paywall .pw-small a { color: #ffd166; text-decoration: underline; }
@media (min-height: 800px) {
  #paywall { gap: 14px; }
  #paywall .pw-head { flex-direction: column; gap: 4px; text-align: center; }
  #paywall .pw-head .mas { width: 104px; margin: 0; }
  #paywall .pw-head p.pitch { text-align: center; }
}
@media (max-height: 640px) {
  #paywall { gap: 8px; }
  #paywall .pw-head .mas { width: 56px; }
  #paywall #pwText { display: none; } /* a short screen: the headline and the list say it; the choices must stay in view */
  #paywall .perks { gap: 3px; font-size: 14px; }
  #paywall .plans .plan[data-plan] { min-height: 78px; padding: 8px 3px; }
  #paywall .plans .plan[data-plan="trial"] { min-height: 104px; padding: 30px 5px 10px; }
  #paywall p.pw-under { font-size: 15px; }
  #paywall .pw-foot .chip.big { height: 46px; }
  #paywall .pw-small { font-size: 10.5px; line-height: 1.35; }
}

/* the ready screen: each line with a small real picture of what it is about (owner, 2026-11-15: "like a text wall") */
.onb-cards .th { flex: none; width: 42px; aspect-ratio: 9 / 16; border-radius: 9px; object-fit: cover; background: #000; box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.12); }
.onb-cards i.th { display: grid; place-items: center; background: rgba(255, 255, 255, 0.08); font-style: normal; font-size: 13.5px; font-weight: 700; letter-spacing: -0.02em; }
.onb-cards .th4 { display: grid; grid-template-columns: 1fr 1fr; grid-template-rows: 1fr 1fr; gap: 1px; overflow: hidden; }
.onb-cards .th4 img { display: block; width: 100%; height: 100%; min-height: 0; object-fit: cover; }
.onb-cards li > span:not(.th) { flex: 1; min-width: 0; }
@media (max-height: 700px) { .onb-cards .th { width: 34px; } .onb-cards li { padding: 6px 2px; } }
