/* Language choices stay compact: one illustration and one name. */
.language-screen{width:min(100%,640px);margin:0 auto;padding:12px 24px calc(24px + env(safe-area-inset-bottom));flex:1;min-height:0;height:0;display:flex;flex-direction:column;gap:20px}
.language-content{display:flex;flex:1;flex-direction:column;align-items:center;justify-content:center;min-height:0}
.language-screen h1{flex:none;font-size:clamp(25px,4.5vw,34px);line-height:1.15;margin:8px 0 24px;text-align:center;letter-spacing:-.7px}
.language-guide{display:block;width:180px;height:126px;flex:none;margin:0 auto 4px}
.language-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px;width:100%;min-height:0;overflow-y:auto;overscroll-behavior:contain;padding:3px 2px 6px;scrollbar-width:thin}
.language-choice{position:relative;display:flex;align-items:center;gap:13px;min-height:70px;padding:11px 15px;border:2px solid #e9e8e3;border-radius:18px;background:#fff;color:#263b31;font:inherit;font-weight:750;text-align:left;cursor:pointer;transition:border-color .15s,background .15s,transform .15s}
.language-choice:hover{border-color:#c1cfc4;transform:translateY(-1px)}
.language-choice.selected{border-color:#d3a91c;background:#fff9df;box-shadow:0 2px 0 #e0c762}
.language-choice:focus-visible,.course-badge:focus-visible{outline:3px solid #308c70;outline-offset:4px}
.language-symbol{display:block;width:42px;height:42px;flex:none;overflow:visible}
.language-check{display:none;position:absolute;right:5px;top:5px;color:#806510;width:13px}
.language-choice.selected .language-check{display:block}
.language-check .icon{width:13px;height:13px}
.language-actions{display:flex;gap:12px;width:100%;margin-top:0}
.language-actions .primary{flex:1}
.language-actions .secondary{width:auto;min-width:100px}
.course-badge{display:flex;align-items:center;justify-content:center;gap:7px;border:1px solid #eeeee8;background:#fff;border-radius:14px;padding:5px 8px;cursor:pointer;color:#778075;font-size:15px}
.course-badge .language-symbol{width:28px;height:28px}
.site-header{grid-template-columns:auto 1fr;gap:12px}
.site-header .header-right{justify-self:end;gap:8px}
.app-menu-bubble .lesson-menu .language-symbol{width:25px;height:25px}
.preview-guide{display:block;width:min(100%,320px);height:260px;margin:0 auto 20px}
.course-preview h1{margin-bottom:10px}
.course-preview p{font-size:17px;color:#6b766d;text-align:center;margin:0}
.course-preview .screen-actions{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1.4fr);gap:12px;width:100%}
.character-naming{flex:none;width:min(100%,380px);margin:0 auto;padding:12px 2px 0}
.companion-name-label{display:block;font-size:13px;font-weight:850;color:var(--muted);margin:0 0 7px}
.companion-name-input{text-align:center;width:100%;min-height:46px;font-size:17px}
.onboarding-screen .character-roster-item{min-height:54px;padding:4px}
.onboarding-screen .character-roster-photo{width:48px}
/* Portraits are the choices; the tick belongs to the portrait edge. */
.onboarding-screen .character-roster-item{justify-self:center;justify-content:center;flex-direction:column;gap:0;width:min(100%,56px);height:56px;min-height:56px;padding:4px;border:0;border-radius:50%;background:transparent;box-shadow:none;outline:none}
.onboarding-screen .character-roster-item:is(:hover,.selected){background:transparent;box-shadow:none}
.onboarding-screen .character-roster-photo{width:min(100%,48px)}
.onboarding-screen .character-roster-item.selected .character-roster-photo{background:#f2f4f3;box-shadow:none}
.onboarding-screen .character-roster-item:focus-visible .character-roster-photo{outline:3px solid var(--ink);outline-offset:3px}
.onboarding-screen .character-roster-item .companion-check{top:auto;right:0;bottom:0;width:20px;height:20px;background:#ffcf32;color:var(--ink);box-shadow:0 0 0 2px white;pointer-events:none}
.onboarding-screen .character-roster-item.selected .companion-check{background:#ffcf32}
@media(min-width:800px) and (min-height:600px){.character-roster{grid-template-columns:repeat(2,56px);justify-content:center;gap:11px 24px}}
/* Sections share the shell while keeping their own curriculum. */
.section-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:24px;max-width:440px;padding:8px;overflow:visible}
.section-choice{flex-direction:column;justify-content:flex-start;justify-self:center;gap:12px;width:100%;max-width:180px;min-height:160px;padding:8px 4px;border:0;border-radius:20px;background:transparent;box-shadow:none;text-align:center;color:var(--ink)}
.section-choice .language-symbol{width:96px;height:96px;object-fit:contain}
.section-choice small{display:block;margin-top:6px;max-width:150px;color:var(--muted);font-size:11px;line-height:1.3;font-weight:650}
.section-choice:is(:hover,.selected){background:transparent;border-color:transparent;box-shadow:none;transform:none}
.section-choice:hover .language-symbol{transform:translateY(-3px)}
.section-choice .language-check{top:81px;right:calc(50% - 51px);width:20px;height:20px;place-items:center;border-radius:50%;background:#ffcf32;color:var(--ink);box-shadow:0 0 0 2px white}
.section-choice.selected .language-check{display:grid}
.section-choice .language-check .icon{width:13px;height:13px}
.section-choice:focus-visible{outline:2px solid var(--ink);outline-offset:3px}
/* Animate the artwork without moving the progress cards or counters. */
.coin-stat .progress-art>.game-coin{transform-origin:center;animation:coin-idle 6s ease-in-out infinite}
.xp-stat .progress-art>.icon{transform-origin:center;animation:xp-idle 4s ease-in-out infinite}
@keyframes coin-idle{0%,42%,78%,100%{transform:rotate(0)}52%{transform:rotate(-6deg)}64%{transform:rotate(6deg)}}
@keyframes xp-idle{0%,100%{opacity:.82;transform:translateY(0)}50%{opacity:1;transform:translateY(-1px)}}
@media(max-width:390px){.section-grid{gap:12px}.section-choice{font-size:16px;min-height:145px}.section-choice .language-symbol{width:84px;height:84px}.section-choice .language-check{top:69px;right:calc(50% - 45px)}}
@media(max-height:650px){.section-screen .language-guide{height:70px;width:105px}.section-screen h1{font-size:22px;margin-bottom:12px}.section-choice{min-height:135px;gap:8px}.section-choice .language-symbol{width:72px;height:72px}.section-choice .language-check{top:57px;right:calc(50% - 39px)}}
.profile-companion-name{margin-bottom:20px}
.profile-companion-name .companion-name-input{text-align:left}
.course-preview .language-content{overflow:auto;min-height:0}
@media(max-height:720px){.character-naming{padding-top:7px}.companion-name-label{margin-bottom:4px}.companion-name-input{min-height:43px}.onboarding-screen .screen-actions{padding-top:10px}}
@media(max-width:390px){.language-screen{padding:8px 18px 18px;gap:12px}.language-choice{gap:9px;padding:9px 10px;min-height:62px;font-size:15px}.language-symbol{width:36px;height:36px}.language-screen h1{margin-bottom:18px}.language-guide{height:108px;width:160px}.course-badge{gap:4px;padding:4px 6px}.course-badge .language-symbol{width:24px;height:24px}}
@media(max-height:720px){.language-guide{height:90px;width:140px}.language-screen h1{margin-bottom:16px}.language-choice{min-height:60px;padding-top:6px;padding-bottom:6px}.language-screen{gap:14px}}
@media(max-height:520px){.language-guide{height:60px;width:95px;margin:0}.language-screen{padding-top:0;padding-bottom:12px;gap:8px}.language-screen h1{font-size:24px;margin:3px 0 8px}.language-choice{min-height:55px}.language-content{justify-content:flex-start}.preview-guide{height:130px;width:190px;margin-bottom:6px}}
@media(max-width:440px){.site-header .brand-name{font-size:16px}.site-header .brand{gap:6px}.site-header{padding-left:18px;padding-right:18px}.course-badge{gap:4px;padding:4px}.course-badge .language-symbol{width:23px;height:23px}.site-header .header-right{gap:2px}}
@media(prefers-reduced-motion:reduce){.language-choice{transition:none}}


/* One directional icon family, with readable weight and consistent touch targets. */
.icon-arrow,.icon-chevron{display:inline-block;flex:0 0 auto;width:22px;height:22px;stroke-width:2.4;stroke-linecap:round;stroke-linejoin:round;vertical-align:middle}
.button>.icon-arrow{width:21px;height:21px}.course-badge>.icon-arrow{width:17px;height:17px;color:#68776b;stroke-width:2.2}
.lesson-back,.character-stage-arrow{color:#33483a!important;background:#f3f5ef!important;border-radius:50%;transition:background .15s,transform .15s;box-shadow:none!important}
.lesson-back:hover,.character-stage-arrow:hover{background:#e6ecdf!important}.lesson-back .icon-arrow,.character-stage-arrow .icon-arrow{width:23px!important;height:23px!important;color:inherit!important;opacity:1}
.world-back{color:#33483a}.world-back>.icon-arrow{width:20px;height:20px}.review-card>.icon-arrow,.profile-character .icon-arrow,.origin-select .icon-chevron{color:#566c5b;opacity:1}
.igbo-keyboard{flex-wrap:wrap}
@media(prefers-reduced-motion:reduce){.lesson-back,.character-stage-arrow{transition:none}}

/* Subjects share one image-led chooser. */
.section-screen .section-grid{grid-template-columns:repeat(2,minmax(0,1fr));max-width:720px;gap:24px;width:100%;padding:14px 4px;align-items:start}
.section-screen .section-choice{min-width:0;max-width:220px;min-height:180px;padding:6px 0;gap:12px;font-size:20px;line-height:1.2}
.section-screen .section-choice .section-symbol{width:128px;height:128px;animation:section-tiko-breathe 4s ease-in-out infinite;transform-origin:50% 85%}
.section-screen .section-choice:nth-child(2) .section-symbol{animation-delay:-1.35s}
.section-screen .section-choice:nth-child(3) .section-symbol{animation-delay:-2.7s}
.section-screen .section-choice .language-check{top:105px;right:calc(50% - 63px)}
.section-screen .section-choice:focus-visible{outline:0}.section-screen .section-choice:focus-visible>span:not(.language-check){text-decoration:underline;text-underline-offset:5px}
@keyframes section-tiko-breathe{0%,100%{transform:translateY(0) rotate(-.5deg)}50%{transform:translateY(-4px) rotate(.5deg)}}
@media(max-width:600px){.section-screen .section-grid{gap:8px;max-width:430px}.section-screen .section-choice{font-size:15px;min-height:146px;gap:9px}.section-screen .section-choice .section-symbol{width:88px;height:88px}.section-screen .section-choice .language-check{top:69px;right:calc(50% - 44px)}.section-screen .section-choice small{font-size:9px;margin-top:5px}}
@media(max-width:370px){.section-screen .section-choice{font-size:13px}.section-screen .section-choice .section-symbol{width:76px;height:76px}.section-screen .section-choice .language-check{top:58px;right:calc(50% - 38px)}}
@media(prefers-reduced-motion:reduce){.section-screen .section-choice .section-symbol{animation:none}}
body.reduced-motion .section-screen .section-choice .section-symbol{animation:none}
