:root{font-family:system-ui,-apple-system,sans-serif;color:#142742;background:#eaf0f8;font-synthesis:none;--blue:#0071ff;--ink:#142742;--green:#148354;--gold:#efc04b}*{box-sizing:border-box}body{margin:0}button,a{touch-action:manipulation}button{font:inherit;font-weight:700;cursor:pointer;border:0;border-radius:12px;min-width:44px;min-height:44px;background:#e9eff9;color:#274677}button:focus-visible,a:focus-visible{outline:3px solid var(--blue);outline-offset:3px}[hidden]{display:none!important}main{max-width:460px;min-height:100dvh;margin:auto;background:#f8faff;padding:max(14px,env(safe-area-inset-top)) 18px max(14px,env(safe-area-inset-bottom))}header{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-bottom:12px}header>button{flex-shrink:0;background:transparent}#menuButton svg{width:24px;height:24px;fill:none;stroke:currentColor;stroke-width:2.5;stroke-linecap:round}.wordmark{margin:0;display:flex;gap:2px;font-size:28px;line-height:1.2;letter-spacing:-1.3px;font-weight:850}.wordmark span:last-child{color:var(--blue);transform:translateY(3px);border-bottom:3px solid #9fb9ff;padding-bottom:2px}.run-status{display:flex;justify-content:space-between;align-items:center;gap:10px;flex-wrap:wrap;font-size:18px;font-weight:750;margin-bottom:12px}.run-status span{white-space:nowrap}#lives{color:#a52b49;background:#ffeaf0;border-radius:22px;padding:6px 11px}#stage{color:#526581}.journey{list-style:none;display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:4px;padding:0;margin:0 0 14px}.journey li{min-width:0;text-align:center;color:#60708b;font-size:12px}.journey .step{height:6px;border-radius:8px;background:#dce4f2;display:block;margin-bottom:5px}.journey li.current{color:#274fca;font-weight:750}.journey li.current .step{background:var(--blue)}.journey li.done .step{background:var(--green)}.journey li.done{color:#19764e}.stats{display:flex;justify-content:space-between;background:var(--ink);color:white;border-radius:19px;padding:13px 18px}.stats span{font-size:13px;letter-spacing:.5px;display:block;color:#c3d1e8}.stats strong{display:block;font-size:38px;line-height:1.15}.remaining{text-align:right}.target{margin:12px 0;height:100px;padding:10px 12px;background:#edf2fc;border:1px solid #dfe7f6;border-radius:14px;transition:background .2s}.target-heading{display:flex;justify-content:space-between;gap:8px;font-size:14px;margin-bottom:8px}.track{height:9px;border-radius:9px;background:#d7e1f0;overflow:hidden}#fill,#bonusFill{height:100%;border-radius:9px;transition:width .25s}#fill{background:var(--blue)}.target-status{display:flex;justify-content:space-between;gap:8px;font-size:13px;margin:8px 0 6px;line-height:1.2}.bonus-track{height:5px;background:#dee5f0;border-radius:9px;overflow:hidden;opacity:.35}#bonusFill{background:#b88004}.target.reached{background:#fff7dc;border-color:#e9d08a}.target.reached #fill{background:linear-gradient(90deg,#e9ad25,#f9d879)}.target.reached .bonus-track{background:#e9ddba;opacity:1}.target.reached #targetLabel{color:#74500b;font-weight:750}#bonusLabel{white-space:nowrap;color:#71541b}.board{display:grid;position:relative;grid-template-columns:44px repeat(4,minmax(0,1fr)) 44px;gap:5px}.tile{aspect-ratio:1;position:relative;display:flex;align-items:center;justify-content:center;background:white;border:1px solid #d5dfef;border-bottom:3px solid #c5d3e7;border-radius:12px;font-size:clamp(24px,7vw,36px);font-weight:750;color:var(--ink)}.tile small{position:absolute;bottom:6px;right:7px;font-size:16px;font-weight:750;line-height:1;color:#425773}.arrow{display:grid;place-items:center;padding:0;background:#edf2fb;color:#5975b5;border:1px solid #e2e9f7;min-height:44px;min-width:44px;width:100%}.arrow:hover,.arrow:focus-visible{background:#d9e5fd;color:var(--blue)}.arrow svg{width:26px;height:26px;fill:none;stroke:currentColor;stroke-width:2.5;stroke-linecap:round;stroke-linejoin:round}.arrow[data-direction=left] svg{transform:rotate(180deg)}.arrow[data-direction=down] svg{transform:rotate(90deg)}.arrow[data-direction=up] svg{transform:rotate(-90deg)}.arrow:disabled{opacity:.4;cursor:default}.tile.scored{background:#daf5e7;border-color:#58be8d;color:#0b6039;box-shadow:0 0 0 2px #b7ead0}.tile.already{background:#edf2f8}.tile.selected{border-color:#7b9eef;background:#eff4ff}.motion-layer{position:fixed;pointer-events:none;overflow:hidden;z-index:5}.motion-layer .tile{position:absolute;margin:0}.score-float{position:fixed;z-index:6;background:#116e46;color:white;padding:8px 12px;border-radius:10px;font-size:15px;font-weight:750;pointer-events:none;box-shadow:0 4px 16px #173a4a22;animation:scorepop .85s ease-out forwards}@keyframes scorepop{0%{opacity:0;transform:translate(-50%,8px)}15%,70%{opacity:1;transform:translate(-50%,-3px)}100%{opacity:0;transform:translate(-50%,-18px)}}#feedback{text-align:center;min-height:36px;font-size:14px;line-height:1.35;margin:10px 0 6px;color:#536783}.collection{border-top:1px solid #dfe7f2;padding-top:5px}.trayhead{display:flex;align-items:center;justify-content:space-between}h2{font-size:16px;margin:0}.trayhead h2 span{color:#677993;margin-left:4px}.trayhead button{font-size:14px;background:transparent}#tray{display:flex;gap:6px;flex-wrap:wrap;padding-top:6px;min-height:34px}.chip{display:inline-flex;align-items:center;white-space:nowrap;gap:6px;padding:7px 9px;background:#e7eefc;border-radius:9px;color:#254b83;font-size:14px}.empty{font-size:14px;color:#6e7e98}.primary{background:var(--blue);color:white;width:100%;min-height:48px;padding:12px;margin-top:12px}.secondary{width:100%;background:#edf2fa;min-height:46px;margin-top:10px;padding:10px}dialog{border:0;border-radius:24px;padding:22px;width:calc(100% - 32px);max-width:390px;max-height:88dvh;overflow-y:auto;color:var(--ink)}dialog::backdrop{background:#102347a3;backdrop-filter:blur(3px)}dialog h2{font-size:23px;line-height:1.3;padding-right:36px;margin:8px 0 18px}dialog p,dialog li{font-size:16px;line-height:1.5}dialog ul{padding-left:20px}.close{position:absolute;right:14px;top:14px;font-size:25px;background:#edf2fa}.menu-options{display:grid;gap:10px}.menu-options button{text-align:left;padding:12px 16px;font-size:16px}.word-list{display:grid;gap:9px;margin:14px 0}.word-row{display:grid;grid-template-columns:1fr auto auto;gap:10px;align-items:center;background:#edf2fc;padding:12px;border-radius:12px;font-size:16px}.word-row b{font-size:18px}.word-row>span{font-size:14px;color:#526783}.word-row>strong{color:#244fb0;font-size:17px}.word-row small{font-size:13px}.result-screen{text-align:center;padding-top:16px}.result-emoji{font-size:70px;line-height:1.15;margin:0 0 12px}.result-screen h2{padding:0;margin:0 0 16px;font-size:24px}.result-score{font-size:58px;font-weight:850;line-height:1;display:flex;align-items:baseline;justify-content:center;gap:8px;margin:14px 0 20px}.result-score span{font-size:17px;font-weight:650}.result-alert{padding:12px 14px;background:#fff0e6;color:#78451f;border-radius:13px;text-align:center;margin:0 0 14px}.result-details{margin:0 0 16px;text-align:left}.result-details>div{display:flex;justify-content:space-between;align-items:baseline;gap:10px;padding:11px 0;border-bottom:1px solid #e3e9f2;font-size:16px}.result-details dt{color:#536580}.result-details dd{margin:0;text-align:right;font-weight:750;overflow-wrap:anywhere}.life-change{font-size:14px;white-space:nowrap}.gained{color:#167347}.lost{color:#b52d49}.result-screen.victory{position:relative;isolation:isolate;overflow:hidden}.fireworks{position:absolute;inset:0;height:180px;pointer-events:none;z-index:-1}.burst{position:absolute;left:25%;top:60px}.burst-1{left:75%;top:40px}.burst-2{left:55%;top:100px}.burst-3{left:10%;top:130px}.burst i{position:absolute;width:4px;height:10px;background:#e5b329;border-radius:4px;transform:rotate(var(--angle)) translateY(-12px);animation:firework 1.8s ease-out 3;opacity:0}.burst-1 i{background:#ec559d;animation-delay:.3s}.burst-2 i{background:#3769ec;animation-delay:.6s}.burst-3 i{background:#25ac87;animation-delay:.9s}@keyframes firework{10%{opacity:1}80%,100%{opacity:0;transform:rotate(var(--angle)) translateY(-65px) scale(.4)}}.achievement{background:var(--ink);color:white;border-radius:20px;padding:20px 16px;margin:10px 0 16px}.achievement .wordmark{justify-content:center;font-size:24px}.achievement .wordmark span:last-child{color:#adc4ff}.achievement h3{font-size:18px;color:#f5d776;margin:20px 0 8px}.achievement .result-score{margin:12px 0 20px}.achievement-stages{display:flex;justify-content:space-between;gap:3px;font-size:12px;color:#c6f3dc}.achievement-stages span{display:grid;gap:4px}.share-preview{width:100%;border-radius:16px;display:block;margin:12px 0}.share-options{display:grid;gap:8px}.share-options button,.share-options a{display:block;padding:12px;text-align:center;text-decoration:none;border-radius:12px;min-height:46px;font-size:16px;font-weight:700;background:#edf2fa;color:#254477}.share-options a.facebook{background:#1877f2;color:white}.share-text{width:100%;min-height:120px;font:inherit;padding:10px}.share-status{font-size:14px!important;color:#536580}.tutorial-row{display:grid;grid-template-columns:44px repeat(4,minmax(0,1fr));gap:5px;margin:24px 0 16px}.tutorial-row .tile{font-size:28px}.tutorial-row button{background:#dce7ff;color:var(--blue);font-size:26px}.tutorial-done .tile{background:#d9f5e6;border-color:#55b886}.tutorial-caption{min-height:48px;color:#486080}.tutorial-help{text-align:center}.tutorial-help h2{padding:0}.tutorial-help .wordmark{justify-content:center;margin-bottom:20px}.rule-strip{background:#edf2fa;padding:12px;border-radius:12px;font-size:14px!important}.stage-tag{font-size:14px;color:#d3e0fa}.marketing{max-width:1300px;margin:auto;display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:24px;padding:30px}.marketing article{background:#142742;border-radius:24px;padding:24px 16px;color:white;text-align:center}.marketing h2{padding:0;font-size:28px;margin:10px 0 24px}.marketing .phone{color:var(--ink);background:#f8faff;border-radius:24px;padding:16px}.marketing .board{grid-template-columns:34px repeat(4,minmax(0,1fr)) 34px}.marketing .arrow{min-width:34px}.marketing .tile{font-size:28px}.marketing .tile small{font-size:14px}
@media(max-width:360px){main{padding-left:10px;padding-right:10px}.board{gap:3px}.wordmark{font-size:26px}.result-score{font-size:48px}.result-details>div{font-size:15px}.journey li{font-size:11px}.target{padding:10px}.target-status{font-size:12px}}@media(max-height:720px){main{padding-top:10px}header{margin-bottom:8px}.journey{margin-bottom:10px}.run-status{margin-bottom:8px}.stats{padding:10px 16px}.stats strong{font-size:32px}.target{margin:9px 0}#feedback{margin:6px 0;min-height:30px}}@media(max-width:900px){.marketing{grid-template-columns:1fr;max-width:420px;padding:16px}}@media(prefers-reduced-motion:reduce){*{animation:none!important;transition:none!important}.fireworks{display:none}}
.sr-only{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0}
.header-tools{display:flex;align-items:center;gap:0;flex-shrink:0}.header-tools button{background:transparent}.header-tools svg{width:23px;height:23px;fill:none;stroke:currentColor;stroke-width:1.8;stroke-linejoin:round}header{gap:5px}.dictionary-entry{display:flex;gap:8px;margin-top:8px}.dictionary-entry input{min-width:0;flex:1;font:inherit;font-size:20px;text-transform:uppercase;padding:12px;border:1px solid #9fb1cf;border-radius:12px}.dictionary-result{min-height:52px;padding:14px;border-radius:12px;background:#edf2fa}.dictionary-result.valid{color:#12613e;background:#def5e7}.dictionary-result.invalid{color:#8b3047;background:#ffeaf0}.solution-panel{padding:12px;border:1px solid #a9c3f8;background:#eaf1ff;border-radius:14px;margin-bottom:12px}.solution-panel strong{font-size:16px}.solution-panel p{margin:8px 0;font-size:14px;line-height:1.4}.solution-actions{display:flex;gap:8px;flex-wrap:wrap}.solution-actions button:first-child{background:var(--blue);color:white;padding:10px 12px}.solution-actions button{padding:10px 12px}.solution-note{font-size:14px!important;color:#526581}.arrow.suggested{background:#0071ff;color:white;outline:3px solid #f4c14b;outline-offset:0;box-shadow:0 0 0 5px #fff3cb;position:relative;z-index:1}.arrow.suggested:disabled{opacity:.7}@media(max-width:360px){header .wordmark{font-size:23px;letter-spacing:-1px}}
.achievement-card{display:block;width:100%;height:auto;border-radius:20px;margin:12px 0 14px}.daily-victory .result-emoji{font-size:42px;margin:0 0 5px}.daily-victory h2{font-size:24px;margin-bottom:8px}.daily-victory .primary{margin-top:0}.daily-note{text-align:center;color:#536580;font-size:14px!important;margin:10px 0 0;line-height:1.4}.daily-share h2{font-size:22px;margin-bottom:8px}.daily-share .share-status{margin:8px 0 0;line-height:1.4}.share-options button.facebook{background:#1877f2;color:white}.daily-share .share-status a{display:inline-block;margin-top:8px;font-weight:700}#modal:has(.daily-victory),#modal:has(.daily-share){padding:20px;max-width:420px}.daily-victory .achievement-card{margin-top:8px}#modal:has(.daily-victory) .close,#modal:has(.daily-share) .close{width:36px;height:36px;min-width:36px;min-height:36px;top:12px;right:12px}@media(max-height:650px){#modal:has(.daily-victory),#modal:has(.daily-share){max-width:340px;padding:14px}.daily-victory .result-emoji{font-size:30px}.daily-share .share-options{gap:5px}.daily-note{margin-top:5px}}
.intro-levels{list-style:none;padding:0;display:flex;flex-wrap:wrap;gap:7px;margin:16px 0}.intro-levels li{background:#edf2fa;border-radius:9px;padding:7px 10px;font-size:14px;font-weight:750;color:#274fca}

.theme-setting{border:0;margin:0;padding:0}.theme-setting legend{font-size:16px;font-weight:750;margin-bottom:8px}.theme-options{display:flex;gap:4px;background:#e9eff9;padding:4px;border-radius:13px}.menu-options .theme-options button{flex:1;min-width:0;text-align:center;padding:10px 6px;font-size:15px;background:transparent}.menu-options .theme-options button[aria-pressed=true]{background:#0071ff;color:#fff}
:root[data-theme=dark]{color:#f5f3ec;background:#0b1421;--ink:#f5f3ec;--blue:#8db9ff;--green:#69d5a1;--gold:#f9d46d}
[data-theme=dark] main{background:#101a2a}[data-theme=dark] button{background:#22354e;color:#cfdef6}[data-theme=dark] a{color:#a9caff}[data-theme=dark] header button{background:transparent}[data-theme=dark] .wordmark span:last-child{color:#9fb9ff}[data-theme=dark] #lives{background:#372538;color:#ffb6c9}[data-theme=dark] #stage,[data-theme=dark] .journey li,[data-theme=dark] .empty,[data-theme=dark] #feedback,[data-theme=dark] .trayhead h2 span,[data-theme=dark] .result-details dt,[data-theme=dark] .share-status,[data-theme=dark] .daily-note,[data-theme=dark] .tutorial-caption,[data-theme=dark] .solution-note{color:#bdcde4}
[data-theme=dark] .journey .step{background:#30445f}[data-theme=dark] .journey li.current{color:#a9caff}[data-theme=dark] .journey li.done{color:#84e0b2}[data-theme=dark] .stats{background:#19283d;border:1px solid #344c69}[data-theme=dark] .target{background:#19283d;border-color:#344c69}[data-theme=dark] .track,[data-theme=dark] .bonus-track{background:#354b66}[data-theme=dark] #fill{background:#5d9af5}[data-theme=dark] #bonusFill{background:#f9d46d}[data-theme=dark] #bonusLabel{color:#f9d46d}[data-theme=dark] .target.reached{background:#332d1b;border-color:#8b7538}[data-theme=dark] .target.reached #targetLabel{color:#f9d46d}[data-theme=dark] .target.reached .bonus-track{background:#655735}
[data-theme=dark] .tile{background:#263a52;border-color:#49617e;border-bottom-color:#18293e;color:#f5f3ec}[data-theme=dark] .tile small{color:#d1dff0}[data-theme=dark] .arrow{background:#203958;border-color:#395779;color:#a8ceff}[data-theme=dark] .arrow:hover,[data-theme=dark] .arrow:focus-visible{background:#315174;color:#fff}[data-theme=dark] .tile.scored,[data-theme=dark] .tutorial-done .tile{background:#214d3c;border-color:#69d5a1;color:#e5fff0;box-shadow:0 0 0 2px #386f55}[data-theme=dark] .tile.already{background:#1e3047}[data-theme=dark] .tile.selected{background:#304d73;border-color:#9fb9ff}
[data-theme=dark] .collection,[data-theme=dark] .result-details>div{border-color:#344c69}[data-theme=dark] .chip{background:#223958;color:#d4e5ff}[data-theme=dark] .trayhead button{background:transparent;color:#a9caff}[data-theme=dark] .primary,[data-theme=dark] .solution-actions button:first-child{background:#0071ff;color:#fff}[data-theme=dark] dialog{background:#19283d;color:#f5f3ec}[data-theme=dark] dialog::backdrop{background:#030a14bb}[data-theme=dark] .secondary,[data-theme=dark] .close,[data-theme=dark] .word-row,[data-theme=dark] .rule-strip,[data-theme=dark] .dictionary-result,[data-theme=dark] .intro-levels li,[data-theme=dark] .theme-options{background:#263a52;color:#d4e5ff}[data-theme=dark] .word-row>span{color:#bdcde4}[data-theme=dark] .word-row>strong{color:#a9caff}[data-theme=dark] .result-alert{background:#3d2e23;color:#ffd3aa}[data-theme=dark] .gained{color:#84e0b2}[data-theme=dark] .lost{color:#ffacbd}[data-theme=dark] .dictionary-entry input{background:#101a2a;border-color:#647e9f;color:#f5f3ec}[data-theme=dark] .dictionary-result.valid{background:#214d3c;color:#c6f8dd}[data-theme=dark] .dictionary-result.invalid{background:#492937;color:#ffc1d0}[data-theme=dark] .solution-panel{background:#203958;border-color:#648fc5}[data-theme=dark] .arrow.suggested{background:#0071ff;color:#fff;box-shadow:0 0 0 5px #594c27}[data-theme=dark] .tutorial-row button{background:#203958;color:#a8ceff}[data-theme=dark] .menu-options .theme-options button{background:transparent;color:#cfdef6}[data-theme=dark] .menu-options .theme-options button[aria-pressed=true]{background:#0071ff;color:#fff}

.tutorial-step{font-size:14px!important;font-weight:700;color:#526581;margin:0 0 14px}.tutorial-value-row{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:7px}.tutorial-total{font-weight:800;margin:8px 0 22px!important}.tutorial-double{display:grid;grid-template-columns:44px 1fr;gap:7px;margin:18px 0}.tutorial-double>button{align-self:start;aspect-ratio:1;background:#0071ff;color:white;font-size:28px}.tutorial-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:5px}.tutorial-grid .tile{font-size:28px}.tutorial-book{margin:0 auto 14px;background:#e9eff9;border-radius:14px;width:60px;height:60px;display:grid;place-items:center;color:#274677}.tutorial-book svg{width:34px;height:34px;fill:none;stroke:currentColor;stroke-width:1.8;stroke-linejoin:round}.tutorial-help label{display:block;text-align:left;font-size:15px}.primary:disabled{opacity:.55;cursor:default}[data-theme=dark] .tutorial-step{color:#bdcde4}[data-theme=dark] .tutorial-book{background:#263a52;color:#a9caff}

.brand-header{margin:0;flex:1;min-width:0;line-height:0}.brand-header img{width:100%;display:block}.header-tools{flex-shrink:0}header{gap:6px}.tutorial-brand{display:block;width:90%;margin:0 auto 14px}.welcome-screen{text-align:center;display:flex;flex-direction:column;justify-content:center;min-height:min(75dvh,650px);gap:18px}.welcome-screen>img{width:100%;height:auto}.welcome-screen p{margin:0;font-size:17px}.welcome-screen .primary{margin-top:10px}#modal:has(.welcome-screen){max-width:560px;width:calc(100% - 24px);max-height:96dvh;background:#fffdf6;color:#142742;padding:24px}#modal:has(.welcome-screen) .close{display:none}[data-theme=dark] .brand-header,[data-theme=dark] .tutorial-brand{background:#fffdf6;border-radius:10px;padding:3px}

/* A continuous light header keeps the brand and controls consistent in both themes. */
main>header{background:#fff;margin:calc(-1 * max(14px,env(safe-area-inset-top))) -18px 12px;padding:max(4px,env(safe-area-inset-top)) 18px 4px;color:#142742}
main>header button,[data-theme=dark] main>header button{background:transparent;color:#274677}
main>header .brand-header,[data-theme=dark] main>header .brand-header{background:transparent;border-radius:0;padding:0}

main>header .brand-header img{width:100%;height:54px;object-fit:contain}

/* Let the board use the remaining viewport, rather than pushing word history below it. */
main{height:100dvh;min-height:0;display:flex;flex-direction:column;gap:0}
main>header,main>.run-status,main>.journey,main>.stats,main>.target,main>#feedback,main>.word-history,main>#attemptAction{flex-shrink:0}
main>.board{flex:1;min-height:264px;max-height:420px;grid-template-rows:44px repeat(4,minmax(0,1fr)) 44px}
main>.board .tile{aspect-ratio:auto;min-height:0}
main>#feedback{font-size:18px;font-weight:650;line-height:1.25;min-height:45px;margin:8px 0 2px;display:flex;align-items:center;justify-content:center}
.word-history{min-height:44px;background:transparent;color:#274fca;font-size:15px;margin:0 auto;padding:8px 16px}
[data-theme=dark] .word-history{background:transparent;color:#a9caff}
@media(max-height:760px){main>.stats{padding:8px 16px}main>.stats strong{font-size:32px}main>.target{height:84px;margin:8px 0;padding:8px 12px}main>.journey{margin-bottom:8px}main>.run-status{margin-bottom:8px}main>header{margin-bottom:8px}main>.brand-header img{height:48px}}
@media(max-height:640px){main>.stats{padding:5px 12px}main>.stats strong{font-size:28px}main>.target{height:76px;margin:6px 0}main>.run-status{font-size:16px;margin-bottom:5px}main>.journey{margin-bottom:5px}main>header .brand-header img{height:44px}main>#feedback{min-height:38px;font-size:16px;margin-top:4px}}
/* Learning mode needs room for its extra guidance; text zoom remains scrollable. */
main:has(#solutionPanel:not([hidden])){height:auto;min-height:100dvh}
main:has(#solutionPanel:not([hidden]))>.board{flex:none;height:340px}
@media(max-height:850px){
 main{padding-bottom:max(6px,env(safe-area-inset-bottom))}
 main>header{padding-top:max(2px,env(safe-area-inset-top));padding-bottom:2px;margin-bottom:6px}
 main>header .brand-header img{height:48px}
 main>.run-status{margin-bottom:6px}
 main>#lives{padding-top:4px;padding-bottom:4px}
 main>.journey{margin-bottom:6px}
 main>.stats{padding:6px 14px}
 main>.stats strong{font-size:30px}
 main>.target{height:78px;margin:6px 0;padding:8px 12px}
 main>.target .target-heading{margin-bottom:6px}
 main>.target .target-status{margin:6px 0 4px}
 main>.board{min-height:0}
 main>.board .arrow{min-height:0}
 main>#feedback{min-height:45px;margin:6px 0 0}
}

.tutorial-progress{display:flex;gap:5px;margin:0 0 20px}
.tutorial-progress span{height:6px;flex:1;border-radius:8px;background:#dce4f2}
.tutorial-progress .done{background:var(--green)}
.tutorial-progress .current{background:var(--blue)}
[data-theme=dark] .tutorial-progress span{background:#30445f}
[data-theme=dark] .tutorial-progress .done{background:#69d5a1}
[data-theme=dark] .tutorial-progress .current{background:#8db9ff}
#modal:has(.tutorial-progress) .primary:disabled{background:#e0e4eb;color:#687384;opacity:1;cursor:default}
[data-theme=dark] #modal:has(.tutorial-progress) .primary:disabled{background:#354359;color:#a9b6c8}
.tutorial-caption:empty{display:none}

.intro-levels{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:4px}.intro-levels li{padding:8px 2px;text-align:center;font-size:14px;white-space:nowrap}

.install-invitation{margin-top:14px;padding-top:10px;border-top:1px solid #dce4f2}.install-invitation p{margin:0;font-size:15px}.install-dismiss{display:block;margin:4px auto 0;background:transparent;font-size:14px;color:#526581}[data-theme=dark] .install-dismiss{background:transparent;color:#bdcde4}

.measurement-choice{display:flex;gap:10px;align-items:center;text-align:left;font-size:14px;line-height:1.4;color:#526581}.measurement-choice input{width:22px;height:22px;flex-shrink:0}.admin-link{font-size:14px;color:#0071ff;padding:8px 16px}
.practice-controls{flex-shrink:0;display:flex;justify-content:space-between;align-items:center;gap:8px;min-height:42px;margin-bottom:8px;font-size:14px}.practice-controls label{font-weight:700}.practice-controls select{font:inherit;font-weight:700;padding:7px;border:1px solid #b9cbe5;border-radius:10px;background:#fff;color:#142742}.practice-controls strong{font-size:13px}.feature-ranking{text-align:center}.feature-ranking h2{padding:0}.feature-ranking .result-emoji{font-size:48px}.feature-ranking>p{font-size:16px;line-height:1.4}.ranking-columns{display:grid;grid-template-columns:1fr 1fr;gap:10px;text-align:left}.ranking-columns section{background:#edf2fa;border:2px dashed #b3c6e4;border-radius:14px;padding:8px;min-height:250px}.ranking-columns h3{font-size:14px;margin:4px 0 12px}.ranking-columns ol{list-style:none;margin:0;padding:0}.rank-card{margin-bottom:8px}.rank-drag{display:flex;align-items:center;justify-content:space-between;gap:4px;width:100%;text-align:left;font-size:14px;padding:10px 6px;touch-action:none;background:#dce7ff;border:1px solid #a6bfee;user-select:none}.rank-drag span{font-size:22px}.rank-reorder{display:flex;gap:4px}.rank-reorder button{min-height:26px;min-width:38px;padding:0}.rank-reorder button:disabled{opacity:.3}.ranking-columns .drag-over{border-color:#0071ff;background:#dce7ff}.ranking-ghost{position:fixed;z-index:9999;pointer-events:none;transform:translate(-50%,-50%);max-width:160px;background:#0071ff;color:white;padding:12px;box-shadow:0 4px 18px #14274255}#rankPlaceholder{font-size:14px;color:#536580}.ranking-note{font-size:13px!important}#rankContinue:disabled{background:#dce2e9;color:#6b7583;cursor:default}.feature-ranking .primary,.feature-ranking .secondary{width:100%;margin-top:8px}[data-theme=dark] .practice-controls select{background:#22354e;color:#e4edff}[data-theme=dark] .ranking-columns section{background:#19283d;border-color:#53749c}[data-theme=dark] .rank-drag{background:#223e64;color:#e4edff}[data-theme=dark] #rankPlaceholder{color:#bdcde4}

.tutorial-double{grid-template-rows:repeat(4,1fr);row-gap:5px}.tutorial-double>button{grid-column:1;grid-row:1;align-self:stretch;aspect-ratio:auto;height:auto}.tutorial-double>.tutorial-grid{grid-column:2;grid-row:1 / span 4}.daily-wait{text-align:center}.daily-wait h2{padding:0}.daily-wait .primary{width:100%}#dailyCountdown{display:block;font-size:clamp(32px,8vw,48px);font-variant-numeric:tabular-nums;margin:20px 0;color:var(--blue)}[data-theme=dark] #dailyCountdown{color:#a9caff}

.feature-ranking .result-emoji{font-size:36px;margin:0 0 6px}.feature-ranking h2{margin:8px 0 12px}.feature-ranking>p{margin:12px 0}.ranking-columns h3{margin:2px 0 8px}.rank-card{margin-bottom:6px}.rank-drag{padding:8px 5px;min-height:48px}.rank-reorder{justify-content:flex-end}.rank-reorder button{min-height:22px}.feature-ranking .ranking-note{margin:10px 0}.feature-ranking .secondary{min-height:36px;padding:6px}

#rankList .rank-card{display:grid;grid-template-columns:minmax(0,1fr) 22px;gap:3px;align-items:center}#rankList .rank-reorder{flex-direction:column}#rankList .rank-reorder button{min-width:22px;width:22px;font-size:12px}

#modalContent:focus{outline:none}

/* Larger board-side text, with the board sharing the remaining viewport. */
main>.run-status{font-size:20px}
main>.journey li{font-size:14px}
main>.stats span{font-size:16px;letter-spacing:0}
main>.stats strong{font-size:40px}
main>.target{height:96px}
main .target-heading{font-size:16px}
main .target-status{font-size:15px;line-height:1.25}
main>.practice-controls{font-size:16px}
main>.practice-controls strong{font-size:15px}
main>#feedback{font-size:20px}
main>.word-history{font-size:17px}
main:has(#solutionPanel:not([hidden])){height:100dvh;min-height:0}
main:has(#solutionPanel:not([hidden]))>.board{flex:1;height:auto;min-height:0}
main>.solution-panel{flex-shrink:0;padding:10px;margin-bottom:8px}
main>.solution-panel strong{font-size:18px}
main>.solution-panel p{font-size:16px;line-height:1.3;margin:6px 0}
main .solution-actions{flex-wrap:nowrap;gap:6px}
main .solution-actions button{font-size:15px;padding:8px;min-width:0}
main:has(#solutionPanel:not([hidden]))>#feedback{font-size:16px;min-height:40px;margin:4px 0}
@media(max-height:760px){main>.run-status{font-size:19px}main>.journey li{font-size:13px}main>.stats strong{font-size:34px}main>.target{height:88px}main .target-status{font-size:14px}main>.practice-controls{margin-bottom:5px;min-height:38px}main>#feedback{font-size:19px}}
@media(max-height:640px){main>.stats span{font-size:14px}main>.stats strong{font-size:30px}main>.target{height:82px}main .target-heading{font-size:15px}main>.run-status{font-size:17px}main>.journey li{font-size:12px}main>.solution-panel{padding:8px;margin-bottom:5px}main>.solution-panel strong{font-size:16px}main>.solution-panel p{font-size:14px}main .solution-actions button{font-size:14px}main>#feedback{font-size:17px;min-height:38px}main:has(#solutionPanel:not([hidden]))>#feedback{font-size:14px;min-height:34px}}

main>.run-status{font-size:23px}
main>.stats span{font-size:18px}
main>.stats strong{font-size:44px}
main .target-heading{font-size:18px}
main .target-status{font-size:17px}
main>.target{height:100px}
@media(max-height:760px){main>.run-status{font-size:22px}main>.stats strong{font-size:38px}main>.target{height:94px}main .target-status{font-size:16px}}
@media(max-height:640px){main>.run-status{font-size:19px}main>.stats span{font-size:16px}main>.stats strong{font-size:32px}main .target-heading{font-size:16px}main .target-status{font-size:14px}main>.target{height:84px}}

/* Shared readable popup typography. */
dialog{font-size:18px;padding:20px;max-width:420px;max-height:94dvh}
dialog h2{font-size:26px;line-height:1.2;margin-bottom:14px}
dialog p,dialog li{font-size:18px;line-height:1.4}
dialog button{font-size:18px}
dialog .daily-note,dialog .share-status,dialog .rule-strip{font-size:17px!important}
dialog .result-details>div{font-size:18px;padding:9px 0}
dialog .result-alert{font-size:18px;padding:10px 12px}
dialog .word-row{font-size:18px;padding:10px;gap:8px}
dialog .word-row b{font-size:21px}
dialog .word-row>span{font-size:16px}
dialog .word-row>strong{font-size:18px}
dialog .word-row small{font-size:15px}
dialog .dictionary-entry input{font-size:22px}
dialog .welcome-screen p{font-size:19px}
.menu-options{gap:8px}
.menu-options button,.menu-options .theme-options button{font-size:18px;padding:9px 12px}
.theme-setting legend{font-size:18px;margin-bottom:5px}
.admin-link{font-size:17px;padding:6px 12px}
dialog .intro-levels li{font-size:15px;padding:7px 1px}
dialog .feature-ranking>p{font-size:17px;margin:10px 0}
dialog .ranking-columns h3{font-size:16px}
dialog .rank-drag{font-size:16px;padding:7px 5px}
dialog .ranking-note{font-size:15px!important}
@media(max-height:700px){dialog{padding:16px}dialog h2{font-size:24px;margin:6px 0 12px}dialog p,dialog li{font-size:17px;line-height:1.35}dialog .result-details>div{font-size:17px;padding:7px 0}.menu-options{gap:6px}.menu-options button,.menu-options .theme-options button{padding:7px 10px}.tutorial-progress{margin-bottom:14px}dialog .feature-ranking>p{font-size:16px}dialog .ranking-note{font-size:14px!important}dialog .rank-drag{font-size:15px}dialog .ranking-columns section{padding:6px}}

/* Shiftly brand */
:root{--blue:#0071ff;--ink:#041c30}
.brand-header img{max-width:245px;margin:auto}.brand-header{padding:5px 0}
.welcome-screen{gap:16px;min-height:min(75dvh,620px)}.welcome-brand{display:flex;flex-direction:column;align-items:center;gap:4px}.welcome-brand>img{display:block;width:100%;max-width:440px;height:auto;margin:0 auto}
dialog .welcome-screen .welcome-subtitle{font-size:clamp(20px,5vw,26px);font-weight:650;color:#041c30}
dialog .welcome-screen .welcome-tagline{font-size:clamp(20px,5.2vw,25px);font-weight:500;color:#0870b0;margin-top:8px;margin-bottom:24px}
#modal:has(.welcome-screen){background:radial-gradient(ellipse at top right,#e2fff7,transparent 65%),linear-gradient(145deg,#fff,#f0f8ff);color:#041c30}
.welcome-screen .primary{background:#0071ff;color:white;box-shadow:0 6px 20px #007bd326}
[data-theme=dark] .brand-header,[data-theme=dark] .tutorial-brand{background:#f3fbff;border-radius:12px}

/* Equal control columns centre the brand on the whole game header. */
header{display:grid;grid-template-columns:88px minmax(0,1fr) 88px;gap:6px}header>#menuButton{justify-self:start}.header-tools{justify-self:end}.brand-header{width:100%}

.daily-victory #practiceTomorrow{display:block;width:100%;margin-top:10px}.fireworks .burst i{background:#15efb2}.fireworks .burst-1 i{background:#0dcdd5}.fireworks .burst-2 i{background:#0071ff}.fireworks .burst-3 i{background:#15efb2}

#dailyMenu:disabled{opacity:.45;cursor:default}
