.button{border:1px solid transparent;border-radius:var(--r-md);padding:14px 22px;font-weight:800;cursor:pointer;display:inline-flex;align-items:center;justify-content:center;gap:10px;min-height:50px;line-height:1.4;text-decoration:none;transition:transform .16s,background .16s,box-shadow .16s}
.button--primary{background:var(--primary);color:white;box-shadow:0 4px 0 #16442f}.button--primary:hover{background:var(--primary-strong);transform:translateY(-1px)}.button--primary:active{transform:translateY(2px);box-shadow:0 1px 0 #16442f}
.button--secondary{background:var(--surface);border-color:#d8e1d2;color:var(--ink)}.button--secondary:hover{background:#f1f5e9}.button--large{min-height:58px;padding-inline:26px;font-size:1.05rem}
a{color:inherit}a:hover{text-decoration:none}.icon{width:22px;height:22px;display:inline-block;vertical-align:middle;flex-shrink:0}
:focus-visible{outline:3px solid #ba7b20;outline-offset:5px}.card{background:var(--surface);border:1px solid var(--border);border-radius:var(--r-lg);padding:28px;box-shadow:var(--shadow)}
.xp-pill,.tag{padding:8px 13px;border-radius:999px;background:#eff3e6;border:1px solid #dde5cf;font-size:.85rem;font-weight:800;display:inline-flex;gap:6px;align-items:center;line-height:1.3}
.progress-dots{display:flex;gap:8px;align-items:center}.progress-dots span{width:26px;height:7px;border-radius:8px;background:#dbe4d4}.progress-dots span.is-active{background:#69905a}
.notice{padding:17px 20px;border-radius:18px;background:#f2f4e9;border:1px solid #dfe6d2;line-height:1.65}.stat-value{font-size:2.4rem;font-weight:900;letter-spacing:-.04em}.stat-card .icon{width:34px;height:34px;color:var(--primary);margin-bottom:16px}.stat-card p:last-child{margin-bottom:0}.empty-state{text-align:center;padding:42px 28px}.empty-state .icon{width:56px;height:56px;color:var(--primary);margin-bottom:14px}
.badge-card{display:flex;align-items:center;gap:20px;background:#fff5d7;border:1px solid #e8d6a8;border-radius:22px;padding:22px}.badge-card .icon{width:46px;height:46px;color:#9c6c1d}.badge-card p{margin:5px 0 0;color:var(--muted)}.badge-label{font-size:1.15rem;font-weight:900}
select{font:inherit;font-size:.9rem;border:1px solid #d9e0d1;background:var(--surface);color:var(--ink);border-radius:12px;padding:10px 12px;min-height:44px;cursor:pointer}
.sr-only{position:absolute!important;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0}
.skip-link{position:absolute;left:16px;top:-80px;z-index:10;background:var(--primary);color:white;padding:12px 20px;border-radius:12px}.skip-link:focus{top:12px}
button:disabled{cursor:default;opacity:.62}.text-link{font-weight:800;color:var(--primary);text-underline-offset:4px}.section-label{font-size:.9rem;font-weight:800;letter-spacing:.02em;color:var(--muted);margin-bottom:14px}
.brand,.text-link{min-height:44px}.tag{font-size:.875rem}.source-links a{min-height:44px;display:flex;align-items:center}
/* Compact, consistent account controls. Native select keeps keyboard support. */
.language-control{position:relative;display:inline-flex;align-items:center;gap:8px;background:var(--surface);border:1px solid #cedbc4;border-radius:16px;padding:0 12px;min-height:46px;box-shadow:0 3px 0 #dbe4d533;color:var(--primary)}
.language-control .icon{width:19px;height:19px;flex-shrink:0}.language-control:focus-within{outline:3px solid #bc8a32;outline-offset:3px}
.language-control select{appearance:none;background:transparent;border:0;border-radius:0;padding:11px 22px 11px 0;margin:0;font:inherit;font-size:.9rem;font-weight:800;color:var(--ink);min-height:44px;cursor:pointer;outline:none;background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 24 24' fill='none' stroke='%2328664f' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");background-repeat:no-repeat;background-position:right center}
.profile-button{display:inline-flex;align-items:center;gap:9px;border:1px solid var(--border);background:var(--surface);padding:5px 12px 5px 5px;border-radius:24px;color:var(--ink);font:inherit;font-weight:800;cursor:pointer;min-height:46px;max-width:200px}
.profile-avatar{display:grid;place-items:center;width:34px;height:34px;flex-shrink:0;border-radius:50%;background:#e4eedb;color:var(--primary)}.profile-avatar .icon{width:20px;height:20px}.profile-name{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.profile-button:hover{background:#f0f5e9;border-color:#b9cbaa}
.profile-dialog{width:min(450px,calc(100% - 32px));max-height:calc(100dvh - 40px);overflow:auto;border:1px solid var(--border);border-radius:28px;background:var(--surface);color:var(--ink);padding:28px;box-shadow:0 24px 80px #253d3530}.profile-dialog::backdrop{background:#253d3566;backdrop-filter:blur(4px)}
.profile-dialog-heading{display:flex;align-items:center;gap:12px}.profile-dialog h2{font-size:1.5rem;margin:0;flex:1}.profile-close{background:transparent;border:0;min-width:44px;min-height:44px;font-size:1.7rem;color:var(--muted);cursor:pointer;border-radius:50%}.profile-close:hover{background:#edf2e6}
.profile-form>p{color:var(--muted);font-size:.95rem}.profile-form>label{display:block;font-weight:800;margin:20px 0 8px}.profile-form>input{display:block;box-sizing:border-box;width:100%;min-height:48px;border:1px solid #bfceb7;border-radius:13px;padding:12px 14px;background:white;color:var(--ink);font:inherit}.optional{font-size:.85rem;font-weight:600;color:var(--muted)}.profile-privacy{margin-top:20px}.profile-actions{display:flex;gap:12px;margin-top:24px}.profile-actions .button{flex:1}.profile-error{color:#8c3027!important}
.child-header--lesson nav{gap:12px}.child-header nav{gap:12px}.xp-pill{white-space:nowrap;text-decoration:none;min-height:44px;display:inline-flex;align-items:center;justify-content:center}
@media(max-width:650px){.child-header nav{gap:8px}.profile-button{max-width:150px;font-size:.88rem}.language-control{padding:0 9px}.language-control select{font-size:.85rem}.child-header--lesson .progress-dots{order:3;flex-basis:100%;justify-content:center}.profile-dialog{padding:22px}.profile-dialog h2{font-size:1.3rem}}
.language-trigger{display:inline-flex;align-items:center;gap:9px;min-height:46px;padding:9px 13px;border:1px solid #cedbc4;border-radius:16px;background:var(--surface);color:var(--ink);font:inherit;font-size:.9rem;font-weight:800;cursor:pointer;box-shadow:0 3px 0 #dbe4d533}.language-trigger:hover{background:#f0f5e9;border-color:#b9cbaa}.language-chevron{color:var(--primary);font-size:1.2rem;line-height:1;margin-left:3px}.language-flag{width:28px;height:19px;border-radius:4px;box-shadow:0 0 0 1px #253d3520;flex-shrink:0;overflow:hidden}
.language-dialog{width:min(440px,calc(100% - 32px));box-sizing:border-box;max-height:calc(100dvh - 40px);overflow:auto;padding:28px;border:1px solid #dbe4d0;border-radius:30px;background:var(--surface);color:var(--ink);box-shadow:0 25px 90px #253d3540}.language-dialog::backdrop{background:#253d3566;backdrop-filter:blur(5px)}.language-dialog-top{display:flex;align-items:center;justify-content:space-between;margin-bottom:18px}.language-globe{display:grid;place-items:center;width:54px;height:54px;border-radius:18px;background:#e4eedb;color:var(--primary)}.language-globe .icon{width:29px;height:29px}.language-dialog h2{font-size:1.8rem;margin-bottom:10px}.language-subtitle{color:var(--muted);font-size:.95rem;margin-bottom:24px}.language-options{display:grid;gap:12px}.language-option{display:flex;align-items:center;gap:16px;width:100%;min-height:82px;padding:16px;border:1px solid var(--border);border-radius:18px;background:white;color:var(--ink);font:inherit;text-align:left;cursor:pointer;transition:background .15s,border-color .15s}.language-option:hover{background:#f4f7ee;border-color:#afc49e}.language-option[aria-pressed=true]{background:#edf4e6;border:2px solid var(--primary);padding:15px}.language-option .language-flag{width:42px;height:28px;border-radius:6px}.language-option-copy{display:grid;gap:3px;flex:1}.language-option-copy strong{font-size:1.08rem}.language-option-copy>span{font-size:.84rem;color:var(--muted)}.language-selected{width:25px;height:25px;border:1px solid #d4dfca;border-radius:50%;display:grid;place-items:center;background:white}.language-selected .icon{display:none;width:16px;height:16px}.language-option[aria-pressed=true] .language-selected{background:var(--primary);color:white;border-color:var(--primary)}.language-option[aria-pressed=true] .language-selected .icon{display:block}.language-note{font-size:.78rem;line-height:1.6;color:var(--muted);margin:20px 0 0}
@media(max-width:650px){.language-trigger{font-size:.85rem;padding:9px 11px;gap:7px}.language-dialog{padding:23px}.language-dialog h2{font-size:1.6rem}}

/* A connected story with freely selectable chapters. */
.journey-overview{margin:0 0 2rem;padding:clamp(1.15rem,3vw,2rem);border:1px solid var(--color-border,#d8dfcf);border-radius:24px;background:linear-gradient(135deg,#eef3e5,#fff9ec);box-shadow:0 10px 28px #244d3510}
.journey-overview h2{margin-bottom:.45rem}.journey-overview>p{max-width:64ch}.journey-progress{font-weight:800;color:#25664e;margin-top:1rem}
.journey-chapters{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:.8rem;list-style:none;padding:0;margin:1rem 0}
.journey-chapters a{height:100%;display:flex;align-items:flex-start;gap:.7rem;padding:1rem;border-radius:16px;background:#fffdf8;border:1px solid #d5dece;color:#233e34;text-decoration:none;transition:transform .18s,border-color .18s}
.journey-chapters a:hover{transform:translateY(-3px);border-color:#367c60}.journey-chapters a:focus-visible{outline:3px solid #286c52;outline-offset:4px}
.chapter-number{display:grid;place-items:center;flex-shrink:0;width:2.15rem;height:2.15rem;border-radius:50%;background:#e9eddc;color:#285d45;font-weight:900}.is-complete .chapter-number{background:#286c52;color:white}
.journey-chapters small,.journey-chapters strong{display:block}.journey-chapters small{font-size:.8rem;color:#596c60}.journey-chapters strong{margin-top:.2rem;line-height:1.4}.journey-chapters .chapter-status{margin-top:.4rem;color:#286c52;font-weight:800}
.journey-note{font-size:.9rem;margin-bottom:0}.journey-intro{padding:.7rem 1rem;background:#eff3e5;border-radius:12px;font-weight:800;color:#285d45}
@media(max-width:700px){.journey-chapters{grid-template-columns:1fr}.journey-chapters a{padding:.85rem}.journey-overview{border-radius:20px}}
@media(prefers-reduced-motion:reduce){.journey-chapters a{transition:none}.journey-chapters a:hover{transform:none}}
.progress-share-controls{margin-top:22px;display:flex;flex-wrap:wrap;gap:12px;align-items:center}.progress-share-controls p{font-size:.85rem;max-width:420px;margin:0}.achievement-dialog{width:min(720px,calc(100% - 32px));max-height:calc(100dvh - 32px);overflow:auto;padding:28px;border:1px solid var(--border);border-radius:28px;background:var(--surface);color:var(--ink);box-shadow:0 24px 80px #253d3530}.achievement-dialog::backdrop{background:#253d3566;backdrop-filter:blur(4px)}.achievement-heading{display:flex;align-items:center;gap:12px}.achievement-heading h2{flex:1;margin:0}.achievement-dialog>.muted{font-size:.86rem;margin:14px 0}.achievement-preview img{width:100%;height:auto;border-radius:16px;border:1px solid var(--border)}.achievement-actions{display:flex;flex-wrap:wrap;gap:12px;margin-top:18px}.share-status{font-size:.9rem}.copyright{margin-top:12px}.app-footer{margin-top:40px}.achievement-actions .button{flex:1}@media(max-width:500px){.achievement-dialog{padding:20px}.achievement-heading h2{font-size:1.35rem}.achievement-actions{flex-direction:column}}

/* Noninteractive placeholders appear before JavaScript and respect reduced motion. */
.skeleton-block{display:block;position:relative;overflow:hidden;background:#e4e9dc;border-radius:9px;height:14px;width:100%;margin-bottom:14px}.skeleton-block::after{content:"";position:absolute;inset:0;background:linear-gradient(90deg,transparent,#ffffff70,transparent);transform:translateX(-100%);animation:skeleton-shimmer 1.8s ease-in-out infinite}.skeleton-intro{padding:18px 0 30px}.sk-label{width:160px;height:11px}.sk-title{width:min(390px,80%);height:48px;margin:20px 0}.sk-copy{width:min(560px,95%);height:17px}.sk-heading{width:75%;height:26px}.sk-short{width:60%}.sk-icon{width:52px;height:52px;border-radius:18px;margin-bottom:25px}.sk-card{min-height:230px}.sk-details{margin-top:24px}.sk-details .sk-card{min-height:150px}.sk-mission{display:grid;grid-template-columns:180px 1fr;gap:28px;min-height:210px;align-items:center}.sk-thumb{height:150px;margin:0;border-radius:18px}.sk-art{height:clamp(210px,30vw,340px);border-radius:22px;margin:0}.sk-lesson{max-width:820px;margin:auto}.sk-button{width:180px;height:52px;border-radius:16px;margin-bottom:0}@keyframes skeleton-shimmer{to{transform:translateX(100%)}}@media(prefers-reduced-motion:reduce){.skeleton-block::after{animation:none;background:none}}@media(max-width:650px){.sk-title{height:38px}.sk-mission{grid-template-columns:1fr;gap:20px}.sk-thumb{height:180px}.sk-card,.sk-lesson{padding:22px}.skeleton-intro{padding-top:12px}}

.footer-privacy{display:block;width:fit-content;margin:12px auto 0;color:var(--muted);font-size:.8rem;min-height:28px;text-underline-offset:3px}
