/* Stuck? Help & FAQ (js/help.mjs): the parent's troubleshooting guide. Adult green, warm and calm. */
.help { position: absolute; inset: 0; z-index: 470; overflow-y: auto; background: linear-gradient(180deg, #F2FAF0, #FFFBEF); color: #22314F; padding: 40px 110px 60px; }
.help .back-arrow { position: absolute; left: 26px; top: 26px; }
.hp-head { text-align: center; }
.hp-head h1 { margin: 6px 0 6px; font-size: 54px; color: var(--adult, #3E8044); }
.hp-head p { margin: 0 auto; max-width: 980px; font-size: 28px; line-height: 1.35; color: #4A5672; }
.hp-ask { position: relative; display: flex; gap: 14px; max-width: 1000px; margin: 26px auto 0; }
.hp-q { flex: 1; height: 84px; padding: 0 70px 0 30px; border-radius: 42px; border: 4px solid color-mix(in srgb, var(--adult, #3E8044) 35%, #FFFFFF); background: #FFFFFF;
  font: 600 30px/1 var(--font-ui); color: #22314F; outline: none; box-shadow: 0 6px 0 rgba(0, 0, 0, .06); }
.hp-q:focus { border-color: var(--adult, #3E8044); }
.hp-mic { flex: none; width: 84px; height: 84px; border-radius: 50%; border: 0; background: var(--adult, #3E8044); color: #FFFFFF; display: grid; place-items: center; cursor: pointer; box-shadow: 0 6px 0 rgba(0, 0, 0, .14); }
.hp-mic.on { background: #C62828; animation: hpPulse .9s ease-in-out infinite alternate; }
@keyframes hpPulse { to { scale: 1.1; } }
.hp-clear { position: absolute; right: 110px; top: 50%; transform: translateY(-50%); /* 2026-10-26 mobile review F-21: transform, not translate: (Chrome < 104) */ width: 48px; height: 48px; border-radius: 50%; border: 0; background: #E8ECE6; font-size: 34px; line-height: 1; color: #4A5672; cursor: pointer; }
.hp-found { text-align: center; font-size: 26px; font-weight: 700; color: #4A5672; margin: 22px 0 0; }
.hp-cats { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; margin: 24px 0 0; }
.hp-cat { padding: 10px 24px; border-radius: 999px; border: 3px solid color-mix(in srgb, var(--adult, #3E8044) 30%, #FFFFFF); background: #FFFFFF; font: 700 24px/1.1 var(--font-ui); color: #22314F; cursor: pointer; }
.hp-cat.on { background: var(--adult, #3E8044); border-color: var(--adult, #3E8044); color: #FFFFFF; }
.hp-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin-top: 28px; }
.hp-card { display: flex; align-items: center; gap: 18px; min-height: 120px; padding: 18px 24px; border: 0; border-radius: 26px; background: #FFFFFF; text-align: left; cursor: pointer;
  font: 700 26px/1.25 var(--font-ui); color: #22314F; box-shadow: 0 7px 0 rgba(0, 0, 0, .07); transition: transform .12s; }
@media (hover: hover) { .hp-card:hover { transform: translateY(-3px); } }
.hp-card:active { transform: scale(.98); }
.hp-emoji { flex: none; font-size: 50px; line-height: 1; }
.hp-topic h1 { display: flex; align-items: center; gap: 20px; margin: 4px 60px 24px; font-size: 42px; line-height: 1.2; color: #22314F; }
.hp-cols { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.hp-col { display: flex; flex-direction: column; gap: 20px; }
.hp-box { padding: 22px 28px; border-radius: 26px; background: #FFFFFF; box-shadow: 0 6px 0 rgba(0, 0, 0, .06); }
.hp-box h2 { margin: 0 0 8px; font-size: 26px; text-transform: uppercase; letter-spacing: .04em; }
.hp-box p, .hp-box li { margin: 0; font-size: 27px; line-height: 1.4; }
.hp-box ol { margin: 0; padding-left: 34px; display: flex; flex-direction: column; gap: 12px; }
.hp-box.see h2 { color: #8A5A00; } .hp-box.why h2 { color: #2F6FB5; } .hp-box.try h2 { color: var(--adult, #3E8044); } .hp-box.next h2 { color: #1F8F8A; }
.hp-box.try { border: 4px solid color-mix(in srgb, var(--adult, #3E8044) 30%, #FFFFFF); }
.hp-cheer { margin: 26px 0 0; padding: 18px 28px; border-radius: 22px; background: #FFF4D6; font-size: 28px; font-weight: 700; color: #6B4A00; text-align: center; }
.hp-related { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; margin-top: 22px; font-size: 24px; }
.hp-related button { padding: 10px 20px; border: 0; border-radius: 999px; background: #FFFFFF; font: 700 22px/1.2 var(--font-ui); color: #22314F; cursor: pointer; box-shadow: 0 4px 0 rgba(0, 0, 0, .07); }
/* live demos */
.hp-demo { padding: 20px 28px; border-radius: 26px; background: #EAF6E7; text-align: center; }
.hp-demo > b { display: block; font-size: 24px; color: var(--adult, #3E8044); text-transform: uppercase; letter-spacing: .04em; }
.hp-letters { display: flex; justify-content: center; gap: 18px; margin: 12px 0; transition: gap .4s ease; }
.hp-letters span, .hp-letters button { display: grid; place-items: center; width: 100px; height: 110px; border-radius: 22px; border: 0; background: #FFFFFF;
  font: 700 76px/1 var(--font-read); color: #C62828; box-shadow: 0 6px 0 rgba(0, 0, 0, .08); transition: background .2s, transform .2s; }
.hp-letters button { cursor: pointer; }
.hp-letters span.lit { background: #FFE9A8; transform: translateY(-8px); }
.hp-demo.joined .hp-letters { gap: 0; }
.hp-demo.joined .hp-letters span { border-radius: 0; box-shadow: none; background: #FFF6D8; }
.hp-play { display: inline-flex; align-items: center; gap: 10px; padding: 12px 28px 12px 16px; border: 0; border-radius: 999px; background: var(--adult, #3E8044); color: #FFFFFF; font: 700 26px/1 var(--font-ui); cursor: pointer; }
.hp-play svg { width: 40px; height: 40px; } .hp-play svg path { fill: #FFFFFF; }
.hp-small { margin: 6px 0 0; font-size: 22px; color: #4A5672; }
/* the way in: a big card at the front of the Adult Guides, and a link in each lesson's Adult Guide */
.guide-help { position: absolute; left: 50%; transform: translateX(-50%); /* F-21 */ top: 128px; display: flex; align-items: center; gap: 14px; padding: 12px 30px 12px 18px; border: 0; border-radius: 999px;
  background: var(--adult, #3E8044); color: #FFFFFF; font: 700 28px/1 var(--font-ui); cursor: pointer; box-shadow: 0 7px 0 rgba(0, 0, 0, .15); z-index: 2; }
.guide-help span { font-size: 36px; }
.ip-help { margin: 12px 0 0; padding: 10px 22px; border: 0; border-radius: 999px; background: var(--adult, #3E8044); color: #FFFFFF; font: 700 24px/1 var(--font-ui); cursor: pointer; }
/* Sight Word Flashcards (js/sightwords.mjs): a second button beside the sound flashcards, and the word deck */
/* Isaiah 2026-10-22 (2nd pass): the map's corner buttons are about the size of the Adult Guide button, so the map stays
   clear: the daily chest alone bottom left; sight words stacked right above sound flashcards, bottom right. Labels are
   set bigger before the shrink so they still read like the Adult Guide label. */
.home .chest-btn { scale: .55; transform-origin: 0 100%; }
.home .chest-btn .cb-tag { font-size: 38px; padding: 4px 22px; left: -6px; transform: none; } /* (the longer "Daily Treasure Chest" ran off the left edge centred) */
.home .flash-btn { scale: .55; transform-origin: 100% 100%; }
.home .flash-btn .flc-tag { font-size: 34px; width: 320px; padding: 6px 12px; }
.home .flash-btn.sight-btn { right: 30px; left: auto; bottom: 150px; }
html.edge-fill .home .flash-btn.sight-btn { right: calc(60px + var(--edge-r) - var(--room-r)); left: auto; bottom: calc(150px + var(--edge-b)); }
/* Isaiah 2026-10-30: phone parity: no right band (iPhone SE sideways): the computer's place (css/phone.css .flash-btn) */
html.edge-fill .home .flash-btn.sight-btn { right: calc(min(60px - var(--room-r), 30px) + var(--edge-r)); }
.sight-btn .flc-plate { border-color: #2F6FB5; background: radial-gradient(#FFFFFF 55%, #E6F0FB 100%); }
.sight-btn .sw-icon { position: relative; margin-top: -52px; display: flex; flex-direction: column; align-items: center; gap: 2px; animation: flcBob 2.6s ease-in-out infinite alternate; }
/* 2026-10-23: painted card stack (Codex art, assets/ui/sight-cards.webp) with a real word on the front card */
.sight-btn .sw-icon img { width: 138px; height: auto; display: block; filter: drop-shadow(0 6px 4px rgba(0,0,0,.15)); }
.sight-btn .sw-icon b { position: absolute; left: 61%; top: 56%; transform: translate(-50%, -50%) rotate(9deg); /* F-21 */ font: 700 36px/1 var(--font-read, Andika, sans-serif); color: #2F6FB5; }
.sight-btn .flc-tag { color: #2F6FB5; }
.sw-wrap { position: absolute; inset: 0; z-index: 460; background: linear-gradient(180deg, #EEF5FF, #FFF9EC); }
.sw-wrap .back-arrow { position: absolute; left: 26px; top: 26px; }
.sw-head { position: absolute; left: 0; right: 0; top: 36px; text-align: center; }
.sw-head h2 { margin: 0; font-size: 50px; color: #2F6FB5; }
.sw-count { display: inline-block; margin-top: 8px; padding: 6px 20px; border-radius: 999px; background: #FFFFFF; font-size: 24px; font-weight: 700; color: #4A5672; box-shadow: 0 4px 0 rgba(0,0,0,.06); }
.sw-card { position: absolute; left: 50%; top: 190px; transform: translateX(-50%); /* F-21 */ width: 720px; height: 380px; border: 0; border-radius: 40px; background: #FFFFFF; cursor: pointer;
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 18px; box-shadow: 0 12px 0 rgba(47, 111, 181, .18); }
.sw-word { font: 700 170px/1 var(--font-read, Andika, sans-serif); color: #22314F; }
.sw-hear { font-size: 26px; font-weight: 700; color: #2F6FB5; }
/* Isaiah 2026-11-04: every card sits on a soft picture of the world that teaches it, and a locked word shows itself
   (full colour, never greyed) with a lock and when it opens */
.sw-card { overflow: hidden; isolation: isolate; }
.sw-card::before { content: ''; position: absolute; inset: 0; z-index: -1; background: var(--sw-bg) center / cover no-repeat; opacity: .38; }
.sw-card::after { content: ''; position: absolute; inset: 0; z-index: -1; background: radial-gradient(ellipse at 50% 50%, rgba(255,255,255,.92) 0%, rgba(255,255,255,.7) 45%, rgba(255,255,255,.15) 100%); }
.sw-card.locked { cursor: default; }
.sw-card.locked .sw-hear { color: var(--adult, #3E8044); }
.sw-lock { position: absolute; right: 26px; top: 24px; display: grid; place-items: center; width: 74px; height: 74px; border-radius: 50%; background: var(--navy, #1E3A2C); box-shadow: 0 0 0 5px #FFFFFF; }
.sw-tip { position: absolute; left: 240px; right: 300px; top: 690px; margin: 0; text-align: center; font-size: 24px; color: var(--adult, #3E8044); }
.sw-prev, .sw-next { position: absolute; top: 330px; width: 120px; height: 120px; }
.sw-prev { left: 260px; background: #FFFFFF; } .sw-next { right: 260px; }
.sw-prev:disabled, .sw-next:disabled { opacity: .35; }
.sw-strip { position: absolute; left: 60px; right: 60px; bottom: 40px; display: flex; gap: 12px; overflow-x: auto; padding: 10px 6px 14px; scrollbar-width: thin; }
.sw-chip { flex: none; min-width: 84px; height: 64px; padding: 0 16px; border: 0; border-radius: 18px; background: #FFFFFF; font: 700 28px/1 var(--font-read, Andika, sans-serif); color: #22314F;
  display: grid; place-items: center; cursor: pointer; box-shadow: 0 4px 0 rgba(0,0,0,.08); }
.sw-chip.locked { position: relative; }
.sw-chip.locked i { position: absolute; right: -6px; top: -6px; display: grid; place-items: center; width: 28px; height: 28px; border-radius: 50%; background: var(--navy, #1E3A2C); }
.sw-chip.locked svg { width: 14px; height: 16px; }
.sw-strip { padding-top: 16px; }
.sw-chip.on { outline: 5px solid #2F6FB5; }

/* 2026-10-26 mobile review F-09: invisible hit areas on phones (look unchanged). Category chips (21 CSS px tall) grow
   only as far as the search box above and the cards below allow; the strip chips can only use the strip's own padding
   (it scrolls sideways, so it clips anything past it); the clear X stops short of the mic. */
html.phone :is(.hp-cat, .hp-mic, .sw-chip) { position: relative; }
html.phone .hp-cat::after { content: ''; position: absolute; inset: -12px -6px -22px; } /* (the 24 px gap above is split with the mic) */
html.phone .hp-mic::after { content: ''; position: absolute; inset: -19px -7px -12px; }
html.phone .hp-clear::after { content: ''; position: absolute; inset: -30px -12px; }
html.phone .sw-chip::after { content: ''; position: absolute; inset: -10px -6px; }

/* sight word sorting (Isaiah 2026-10-27): got it / not yet under the card, piles at the top */
.sw-wrap .sw-piles { position: absolute; right: 40px; bottom: 150px; display: flex; flex-direction: column; align-items: stretch; gap: 10px; } /* (Isaiah 2026-11-04: lower right, above the word strip) */
.sw-wrap .sw-piles button { padding: 8px 18px; border-radius: 999px; border: 3px solid #3E8044; background: #FFFFFF; color: #3E8044; font: 700 22px/1 var(--font-ui); cursor: pointer; white-space: nowrap; }
.sw-wrap .sw-piles button.on { background: #3E8044; color: #FFFFFF; }
.sw-wrap .sw-mark { position: absolute; left: 50%; top: 592px; translate: -50% 0; display: flex; gap: 22px; }
.sw-wrap .sw-mark button { min-width: 200px; height: 72px; border-radius: 999px; border: 4px solid #3E8044; background: #FFFFFF; color: #3E8044; font: 700 30px/1 var(--font-ui); cursor: pointer; box-shadow: 0 6px 0 rgba(0,0,0,.1); }
.sw-wrap .sw-mark .sw-yes { background: #22B46A; border-color: #22B46A; color: #FFFFFF; box-shadow: 0 6px 0 #12804A; }
.sw-wrap .sw-mark button.on { outline: 5px solid #FDD782; outline-offset: 3px; }
.sw-wrap .sw-empty { position: absolute; left: 0; right: 0; top: 320px; text-align: center; font: 700 44px/1.4 var(--font-ui); color: #3E8044; }
.sw-wrap .sw-again { margin-top: 24px; padding: 16px 40px; border-radius: 999px; border: 0; background: #22B46A; color: #FFFFFF; font: 700 32px/1 var(--font-ui); box-shadow: 0 6px 0 #12804A; cursor: pointer; }

/* "Need help?" (Isaiah 2026-11-04, js/needs-help.mjs): under the reader's name on the map, and the help centre it opens.
   Grown-up text and buttons in our greens (never purple). */
.needs-help-btn { display: flex; align-items: center; gap: 10px; padding: 8px 22px 8px 12px; border: 0; border-radius: 999px; background: #FFFFFF; color: var(--adult, #3E8044);
  font: 700 24px/1 var(--font-ui, Andika, sans-serif); cursor: pointer; box-shadow: 0 5px 0 rgba(20, 52, 36, .25); white-space: nowrap; }
.needs-help-btn span { font-size: 28px; }
.needs-help-btn:active { transform: translateY(3px); box-shadow: 0 2px 0 rgba(20, 52, 36, .25); }
.nh-wrap { position: absolute; inset: 0; z-index: 480; background: rgba(20, 52, 36, .55); display: grid; place-items: center; }
.nh-card { position: relative; width: 1340px; height: 800px; border-radius: 40px; background: linear-gradient(180deg, #F2FBF3, #FFFDF6); box-shadow: 0 16px 0 rgba(20, 52, 36, .25);
  display: flex; flex-direction: column; padding: 36px 48px 34px; box-sizing: border-box; }
.nh-x { position: absolute; right: 26px; top: 24px; width: 76px; height: 76px; border: 0; border-radius: 50%; background: #E2504A; display: grid; place-items: center; box-shadow: 0 5px 0 #A8312C; cursor: pointer; }
.nh-x svg { width: 34px; height: 34px; }
.nh-title { margin: 0 0 22px; font-size: 52px; color: var(--adult, #3E8044); }
.nh-tabs { display: flex; gap: 14px; margin-bottom: 26px; }
.nh-tabs button { flex: 1; display: flex; align-items: center; justify-content: center; gap: 10px; height: 76px; padding: 0 16px; border: 4px solid #CFE8D2; border-radius: 24px; background: #FFFFFF;
  color: var(--adult, #3E8044); font: 700 25px/1.1 var(--font-ui, Andika, sans-serif); cursor: pointer; }
.nh-tabs button span { font-size: 30px; }
.nh-tabs button.on { background: var(--adult, #3E8044); border-color: var(--adult, #3E8044); color: #FFFFFF; }
.nh-body { flex: 1; min-height: 0; overflow-y: auto; color: #24402B; }
.nh-body h3 { margin: 0 0 8px; font-size: 38px; color: var(--adult, #3E8044); }
.nh-lead { margin: 0 0 22px; font-size: 27px; line-height: 1.35; color: #3A5A41; }
.nh-big { display: grid; grid-template-columns: 1fr 1fr; gap: 22px; }
.nh-big button { display: grid; grid-template-columns: 84px 1fr; grid-template-rows: auto auto; column-gap: 18px; row-gap: 8px; align-items: center; text-align: left; padding: 26px 28px;
  border: 0; border-radius: 30px; background: #FFFFFF; box-shadow: 0 7px 0 rgba(62, 128, 68, .22); cursor: pointer; color: var(--adult, #3E8044); }
.nh-big button span { grid-row: 1 / 3; width: 84px; height: 84px; border-radius: 50%; background: #E9F6E6; display: grid; place-items: center; font-size: 46px; }
.nh-big button b { font-size: 31px; }
.nh-big button small { font-size: 22px; line-height: 1.35; color: #3A5A41; }
.nh-more { margin: 28px 0 0; font-size: 26px; color: #3A5A41; }
.nh-link { border: 0; background: none; padding: 0; color: var(--adult, #3E8044); font: 700 26px var(--font-ui, Andika, sans-serif); text-decoration: underline; cursor: pointer; }
.nh-text { display: block; width: 100%; box-sizing: border-box; min-height: 260px; padding: 20px 24px; border: 4px solid #CFE8D2; border-radius: 24px; background: #FFFFFF;
  font: 400 27px/1.4 var(--font-ui, Andika, sans-serif); color: #24402B; resize: vertical; }
.nh-text { min-height: 210px; }
.nh-text:focus { outline: none; border-color: var(--adult, #3E8044); }
.nh-row { display: flex; align-items: center; gap: 22px; margin-top: 18px; }
.nh-send { height: 74px; padding: 0 56px; border: 0; border-radius: 999px; background: #22B46A; color: #FFFFFF; font: 700 30px/1 var(--font-ui, Andika, sans-serif); box-shadow: 0 6px 0 #12804A; cursor: pointer; }
.nh-send:disabled { opacity: .6; cursor: default; }
.nh-status { font-size: 24px; font-weight: 700; color: #B03A2E; }
.nh-note { margin: 14px 0 0; font-size: 22px; color: #5B7A62; }
.nh-done { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 14px; padding-top: 60px; }
.nh-done > span { font-size: 90px; }
.nh-done p { margin: 0; font-size: 28px; max-width: 900px; color: #3A5A41; }
/* phones: the stage is about a third of its size, so the help centre fills it and its grown-up words grow */
html.phone .nh-card { width: 1560px; height: 870px; padding: 26px 34px; }
html.phone .nh-title { font-size: 60px; margin-bottom: 14px; }
html.phone .nh-tabs button { height: 96px; font-size: 32px; }
html.phone .nh-lead, html.phone .nh-more, html.phone .nh-note, html.phone .nh-done p { font-size: 38px; }
html.phone .nh-big button b { font-size: 40px; } html.phone .nh-big button small { font-size: 32px; }
html.phone .nh-text { font-size: 38px; min-height: 190px; }
html.phone .nh-body h3 { font-size: 46px; }
html.phone .needs-help-btn { font-size: 34px; padding: 10px 28px 10px 14px; }
