/* Little word explorers: a quiet learning canvas with cheerful companions. */
:root{color:#29384e;background:#fafbfE;font-family:ui-rounded,"Arial Rounded MT Bold",-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif}body{background-image:radial-gradient(#ccd5e5 0.7px,transparent .7px);background-size:14px 14px}header{padding-top:22px;padding-bottom:20px}.brand b{color:#29384e}.brand b span{color:#449ff5}.brand small{color:#718099}nav{border:2px solid #e7ecf4;border-radius:22px;box-shadow:0 4px 0 #e8edf5}button{border-radius:16px;background:#edf2fa;color:#31455f;transition:transform .12s,box-shadow .12s}button:hover{filter:brightness(.99);transform:translateY(-2px)}button:active{transform:translateY(2px)}button:disabled{transform:none}nav button.active,.primary,.admin-tabs button.primary,.resume-box button.primary{background:#337ecc;color:#fff;box-shadow:0 4px 0 #2160a0}button:focus-visible,a:focus-visible,select:focus-visible{outline-color:#855bcb}.account-bar{border:0;background:#ffffffb8;border-radius:14px;padding:10px 16px;color:#607087}.account-bar button{background:#eaf1fc}.account-bar #syncStatus,.muted{color:#63758a}.garden-welcome{display:flex;align-items:center;justify-content:space-between;gap:24px;padding:30px 38px 28px;margin-bottom:36px;border-radius:30px;background:#edf5ff;border:2px solid #d9e9fb;overflow:hidden}.welcome-tag{display:inline-block;font-size:12px;color:#546984;background:#fff;padding:7px 12px;border-radius:20px;font-weight:700}.garden-welcome h1{font-size:clamp(32px,4.4vw,49px);line-height:1.25;letter-spacing:-1.5px;margin:16px 0 12px}.garden-welcome h1 span{color:#318ee1}.garden-welcome p{font-size:14px;color:#62758b;margin:0}.garden-friends{width:48%;max-width:460px}.eyebrow{color:#697f9e;letter-spacing:2px;font-size:11px}.heading h1{font-size:30px}.stat{background:#fff2c7;border:2px solid #f5df98;border-radius:21px;color:#62512b}.stat strong{color:#473b26}.bookshelf{gap:20px}.library-book{border:2px solid #e1e8f2;border-radius:23px;box-shadow:0 6px 0 #e6ebf3}.cover-wrap{background:#e2efff;padding:22px 30px}.library-book:nth-child(2n) .cover-wrap{background:#fff1c1}.library-book:nth-child(3n) .cover-wrap{background:#eee4ff}.library-book:nth-child(4n) .cover-wrap{background:#d8f5ec}.library-book:nth-child(5n) .cover-wrap{background:#ffe4df}.book-title,.book-progress-label strong{color:#314961}.book-meta{padding:18px}.mini-progress{background:#eaf0f7!important;height:8px}.mini-progress i,.progress i{background:#43bbaa;border-radius:10px}.book-complete{border-color:#e8bd42}.book-complete .mini-progress i{background:#e4af28}.unit{border:2px solid #e1e8f2;box-shadow:0 5px 0 #e6ebf3;border-radius:22px}.unit h2{color:#314961}.unit:nth-child(4n+1){border-top:7px solid #79b7f7}.unit:nth-child(4n+2){border-top:7px solid #f7d260}.unit:nth-child(4n+3){border-top:7px solid #b494eb}.unit:nth-child(4n){border-top:7px solid #6bd2bb}.unit-status{background:#d8f4e9}.card,.bookword,.empty{border:2px solid #e0e7f1;box-shadow:0 6px 0 #e9edf5;border-radius:26px}.practice-card{position:relative;border-top:7px solid #8abff5}.practice-pal{float:right;display:grid;place-items:center;color:#8b6814;background:#ffe18a;width:44px;height:44px;border-radius:15px;transform:rotate(9deg);font-size:30px}.definition{color:#293b54}.answer{border-color:#cddded;background:#f8fbff;color:#293b54}.answer:focus,.slot:focus{border-color:#449ff5;outline:3px solid #cfe7ff;outline-offset:2px}.slot{border:2px solid #a9ccec;background:#fff;color:#264561;border-radius:13px;height:60px;caret-color:#337ecc}.slot.fixed{background:#edf1f7;color:#758398;border:2px dashed #cad4e1}.tip{background:#fff0b9;color:#715411;box-shadow:0 4px 0 #ead58b}.tipsteps span{background:#edf2f8;color:#64758d}.tipsteps .used{background:#fff0b9}.progress{background:#e2eaf4;height:11px}.feedback{color:#a6492e}.filter.active{box-shadow:0 0 0 3px #3d82c9}.bookword h3{color:#314961}.bookword{box-shadow:0 4px 0 #e9edf5}.auth-card:before{content:"";display:block;height:120px;background:url('data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%22520%22%20height%3D%22235%22%20viewBox%3D%220%200%20520%20235%22%3E%3Cg%20stroke-linejoin%3D%22round%22%3E%3Cellipse%20cx%3D%22260%22%20cy%3D%22209%22%20rx%3D%22221%22%20ry%3D%2212%22%20fill%3D%22%23273957%22%20opacity%3D%22.07%22%2F%3E%3Cpath%20d%3D%22m86%2047%2026%2049%2056%209-39%2040%206%2057-49-25-49%2025%207-57-40-40%2056-9z%22%20fill%3D%22%23ffce28%22%2F%3E%3Cpath%20d%3D%22M211%20185Q181%20183%20196%20151L253%2040Q269%2013%20285%2043L339%20158Q350%20187%20320%20188Z%22%20fill%3D%22%23449ff5%22%2F%3E%3Crect%20x%3D%22366%22%20y%3D%2276%22%20width%3D%22126%22%20height%3D%22124%22%20rx%3D%2247%22%20fill%3D%22%23a478ed%22%20transform%3D%22rotate%287%20429%20138%29%22%2F%3E%3Cg%20fill%3D%22white%22%3E%3Cellipse%20cx%3D%2269%22%20cy%3D%22126%22%20rx%3D%2214%22%20ry%3D%2220%22%2F%3E%3Cellipse%20cx%3D%22103%22%20cy%3D%22126%22%20rx%3D%2214%22%20ry%3D%2220%22%2F%3E%3Cellipse%20cx%3D%22248%22%20cy%3D%22123%22%20rx%3D%2217%22%20ry%3D%2224%22%2F%3E%3Cellipse%20cx%3D%22288%22%20cy%3D%22123%22%20rx%3D%2217%22%20ry%3D%2224%22%2F%3E%3Cellipse%20cx%3D%22404%22%20cy%3D%22132%22%20rx%3D%2215%22%20ry%3D%2221%22%2F%3E%3Cellipse%20cx%3D%22443%22%20cy%3D%22134%22%20rx%3D%2215%22%20ry%3D%2221%22%2F%3E%3C%2Fg%3E%3Cg%20fill%3D%22%2324334a%22%3E%3Cellipse%20cx%3D%2273%22%20cy%3D%22130%22%20rx%3D%227%22%20ry%3D%2211%22%2F%3E%3Cellipse%20cx%3D%22107%22%20cy%3D%22130%22%20rx%3D%227%22%20ry%3D%2211%22%2F%3E%3Cellipse%20cx%3D%22252%22%20cy%3D%22128%22%20rx%3D%229%22%20ry%3D%2213%22%2F%3E%3Cellipse%20cx%3D%22292%22%20cy%3D%22128%22%20rx%3D%229%22%20ry%3D%2213%22%2F%3E%3Cellipse%20cx%3D%22408%22%20cy%3D%22136%22%20rx%3D%228%22%20ry%3D%2211%22%2F%3E%3Cellipse%20cx%3D%22447%22%20cy%3D%22138%22%20rx%3D%228%22%20ry%3D%2211%22%2F%3E%3C%2Fg%3E%3Cg%20fill%3D%22none%22%20stroke%3D%22%2324334a%22%20stroke-width%3D%227%22%20stroke-linecap%3D%22round%22%3E%3Cpath%20d%3D%22M76%20155q11%2012%2023%200M258%20160q12%2014%2024-1M416%20166q11%2011%2022-1%22%2F%3E%3C%2Fg%3E%3Cg%20fill%3D%22%23ffacb4%22%3E%3Cellipse%20cx%3D%2249%22%20cy%3D%22149%22%20rx%3D%229%22%20ry%3D%225%22%2F%3E%3Cellipse%20cx%3D%22122%22%20cy%3D%22149%22%20rx%3D%229%22%20ry%3D%225%22%2F%3E%3C%2Fg%3E%3Cg%20fill%3D%22%2300c9b0%22%3E%3Cpath%20d%3D%22m358%2027%205%2011%2012%203-11%206-2%2012-6-11-12-2%2011-7z%22%2F%3E%3Ccircle%20cx%3D%22163%22%20cy%3D%2248%22%20r%3D%227%22%2F%3E%3C%2Fg%3E%3Cpath%20d%3D%22m465%2028%204%208%209%202-8%204-2%209-4-8-9-2%208-4z%22%20fill%3D%22%23ff877a%22%2F%3E%3C%2Fg%3E%3C%2Fsvg%3E') center/280px auto no-repeat}.auth-card{margin-top:22px}.auth-card h1{text-align:center}.auth-card .eyebrow{text-align:center}.auth-card input{background:#f7faff;border:2px solid #d6e2ef;color:#293b54}.auth-card input:focus{outline-color:#71aff0}.task-status.finished,.success{color:#227861}.task-card{border-left:6px solid #91c7fb}.admin-tabs button{background:#e8eef7}.admin-area .card{box-shadow:0 3px 0 #e9edf5}.table-scroll{border-color:#dfe6f0}th{background:#edf3fb;color:#48617d}.selection-grid label{background:#f0f5fc}.selection-grid label:has(input:checked){outline-color:#3d82c9}input[type=checkbox]{accent-color:#337ecc}.metric-grid .stat:nth-child(2){background:#e2f2ff;border-color:#beddf5}.metric-grid .stat:nth-child(3){background:#efe5ff;border-color:#dbc7f4}.metric-grid .stat:nth-child(4){background:#dcf4eb;border-color:#b8e5d5}footer{color:#75839a;border-color:#dde5ef}.resume-box{background:#e7f2ff}.level1{background:#fff0b3;color:#79590a}.level2{background:#ffe0bc;color:#92500b}.level3{background:#ffd9d7;color:#a13435}.danger-button{background:#aa3e49;color:white}#toast{background:#304e73}.speech-note{color:#776124}
@media(max-width:700px){.garden-welcome{padding:24px;gap:10px}.garden-welcome h1{font-size:32px}.garden-friends{width:42%}.garden-welcome p{max-width:240px}.heading h1{font-size:27px}.cover-wrap{padding:18px 26px}}@media(max-width:480px){.garden-welcome{flex-direction:column;align-items:flex-start;padding:24px;margin-bottom:26px}.garden-welcome h1 br{display:none}.garden-welcome h1{font-size:30px}.garden-friends{width:85%;align-self:center;height:125px}.garden-welcome p{max-width:none}.welcome-tag{font-size:11px}.cover-wrap{padding:14px 18px}.slot{height:52px}.practice-pal{width:34px;height:34px;font-size:23px}}@media(prefers-reduced-motion:reduce){button,.library-book,.progress i{transition:none}button:hover{transform:none}}
.friends-play{position:relative;width:48%;max-width:460px;flex-shrink:0}.friends-play svg{width:100%;height:auto;display:block}.friend-touch{position:absolute;top:15%;width:33%;height:80%;background:transparent!important;box-shadow:none!important;padding:0;border-radius:50%}.friend-touch:focus-visible{outline:3px dashed #647baf}.star-game{border:2px solid #d2e2f5;border-radius:30px;padding:32px;width:min(94vw,510px);max-height:90dvh;overflow:auto;color:#293b54;text-align:center;background:#f6faff;box-shadow:0 20px 100px #1b36594d}.star-game::backdrop{background:#26395499}.game-close{position:absolute;right:10px;top:10px;min-height:40px;padding:8px 14px}.game-spark{font-size:54px;color:#e2ac18}.star-game h1{font-size:27px}.game-hud{display:flex;justify-content:space-between;padding:12px;font-size:22px}.star-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:12px;margin:16px 0}.star-grid button{height:88px;font-size:42px;background:#e6eef9;color:#8195b1;border:2px solid #d5e2f4;transform:none;touch-action:manipulation}.star-grid .lit{background:#ffe38d;color:#735400;border-color:#edc24c}.game-result{font-size:60px;font-weight:800;color:#337ecc}.game-result small{font-size:20px}.game-leaders{padding:0;list-style:none;text-align:left}.game-leaders li{display:flex;justify-content:space-between;padding:10px;border-bottom:1px solid #dce5f1}.game-leaders .mine{background:#fff0b8;border-radius:10px}#gameFinishActions{display:flex;justify-content:center;gap:12px;flex-wrap:wrap}.game-message{color:#a43d32}@media(max-width:700px){.friends-play{width:42%}}@media(max-width:480px){.friends-play{width:85%;align-self:center}.star-game{padding:28px 18px}.star-grid button{height:75px}}
.runner-game{width:min(95vw,860px)}.runner-roles{display:flex;justify-content:center;gap:16px;margin:24px 0}.runner-roles button{min-width:90px;background:white;border:2px solid #d5e1f0}.runner-roles button[aria-pressed=true]{border-color:#337ecc;background:#e6f2ff;box-shadow:0 4px 0 #b2d4f4}.role-face{position:relative;display:flex;justify-content:center;gap:8px;align-items:center;width:56px;height:56px;margin:0 auto 10px;background:#449ff5;border-radius:22px}.role-face.star{background:#ffd046;clip-path:polygon(50% 0,65% 30%,100% 38%,76% 64%,80% 100%,50% 81%,20% 100%,24% 64%,0 38%,35% 30%);border-radius:0}.role-face.purple{background:#a478ed}.role-face i{width:13px;height:21px;border:4px solid white;background:#29384e;border-radius:50%}.runner-controls{display:flex;gap:14px;justify-content:center;margin-top:16px}#runCanvas{display:block;width:100%;height:auto;background:#edf6ff;border-radius:20px;border:2px solid #d4e6f6;touch-action:none}#runCanvas:focus-visible{outline:3px solid #855bcb}.runner-game .game-hud{font-size:18px}@media(max-width:480px){.runner-roles{gap:8px}.runner-roles button{min-width:0;padding:12px 18px}.runner-game .game-hud{font-size:15px}.runner-controls button{padding:12px}}
.word-pos{display:block;width:fit-content;font:600 14px/1.6 -apple-system,BlinkMacSystemFont,sans-serif;letter-spacing:0;background:#eaf2fc;color:#46678b;border-radius:10px;padding:5px 10px;margin-bottom:12px}
.definition-cell{white-space:normal;min-width:180px;max-width:360px}#editSearch{padding:12px;border:1px solid #c9d6e8;border-radius:12px}#wordEditor:empty{display:none}#wordEditor{background:#edf5ff;border-radius:18px;padding:18px;margin:18px 0}#wordEditor input{width:100%}#sysStatus,#editNotice{color:#276647}
/* Study charts: readable on iPad, with visible values and accessible data. */
.study-chart{margin:24px 0;padding:24px}.chart-heading{display:flex;align-items:center;justify-content:space-between;gap:16px;flex-wrap:wrap}.chart-heading h2{margin:0}.chart-heading label{display:flex;align-items:center;gap:10px}.chart-heading select{min-width:130px}.chart-total strong{font-size:30px;color:#477ac1}.daily-chart-scroll{overflow-x:auto;padding:12px 0}.daily-bars{display:flex;gap:12px;min-width:100%;border-bottom:2px solid #dce4f1;padding:0 8px 10px}.daily-column{flex:1 0 46px;display:flex;flex-direction:column;align-items:center;gap:8px}.daily-value{font-weight:750;color:#345b91}.daily-track{height:150px;width:30px;display:flex;align-items:flex-end;background:#edf3fa;border-radius:10px}.daily-track i{display:block;width:100%;background:linear-gradient(#79c9e3,#527cc9);border-radius:10px}.daily-label{font-size:12px;white-space:nowrap}.study-chart details{margin-top:18px}.student-bars{display:grid;gap:18px;margin:24px 0}.student-bar-row{display:grid;grid-template-columns:minmax(90px,150px) minmax(60px,1fr) 50px;gap:12px;align-items:center}.student-bar-name{overflow-wrap:anywhere}.student-bar-name small{display:block;color:#6f7c90;font-size:12px}.student-bar-track{height:24px;background:#edf3fa;border-radius:9px;overflow:hidden}.student-bar-track i{height:100%;display:block;background:linear-gradient(90deg,#76cabe,#668fd7);border-radius:9px}.student-bar-row strong{text-align:right}@media(max-width:600px){.study-chart{padding:18px}.student-bar-row{grid-template-columns:95px minmax(50px,1fr) 35px}}
/* Keep Enter navigation while removing the purple focus ring requested for Next. */
#next:focus,#next:focus-visible{outline:none;box-shadow:0 4px 0 #3466a4}#next:focus-visible{text-decoration:underline;text-underline-offset:5px}
.gift-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(220px,1fr));gap:18px;margin:24px 0}.gift-card{display:flex;flex-direction:column;align-items:flex-start;gap:12px;padding:24px;border-radius:22px;background:#f7f4ff;border:1px solid #e1d9f4}.gift-card h3,.gift-card p{margin:0;overflow-wrap:anywhere}.gift-card button{margin-top:auto}.gift-icon{font-size:40px}.reward-balance small{display:block}.reward-records{margin:24px 0}.redemption-row{display:flex;justify-content:space-between;align-items:center;gap:16px;padding:20px 0;border-bottom:1px solid #e4e9f3}.redemption-row p{margin:8px 0}.redemption-row small{color:#71809a}.reward-actions{display:flex;flex-wrap:wrap;gap:10px}.credit-row{display:flex;justify-content:space-between;gap:20px}.credit-row small{display:block;color:#71809a}.credit-row strong{color:#358675}#giftForm{margin-top:20px}.admin-tabs,header nav{flex-wrap:wrap}@media(max-width:600px){.redemption-row{align-items:flex-start;flex-direction:column}.gift-grid{grid-template-columns:1fr}.admin-tabs button{padding:10px 12px}}
