/* rnum product shell. Existing artwork / hand-drawn borders remain the brand. */
:root{--surface:#fbf8ef;--muted:#685d50;--line:#c7bba6;--space:20px;color-scheme:light}
html{scroll-padding-top:100px}body{max-width:1600px;padding:0 clamp(14px,3vw,48px) 36px;min-height:100dvh;overflow-x:clip}
button,input,select,textarea{touch-action:manipulation}button:not(:disabled),[role=button]{cursor:pointer}
button:focus-visible,a:focus-visible,input:focus-visible,select:focus-visible,textarea:focus-visible,[role=button]:focus-visible{outline:3px solid #30679a;outline-offset:4px}
.skip-link{position:absolute;left:16px;top:-80px;z-index:110;background:var(--surface);padding:12px}.skip-link:focus{top:8px}
.product-header{display:flex;align-items:center;flex-wrap:wrap;gap:16px;padding:18px 0;border-bottom:2px solid var(--ink);margin-bottom:24px;position:relative;z-index:10}
.brand{color:var(--ink);text-decoration:none;line-height:1.3;min-width:0}.brand b{display:block;font-size:1.35rem;font-weight:400}.brand small{color:var(--muted);font-size:.82rem}
.product-header .tabs,.product-header .acbar{margin:0;gap:8px}.product-header .tabs{flex:1;justify-content:center}.product-header .tab{flex:none;min-height:44px;padding:8px 16px;white-space:nowrap;font-size:1rem}.product-header #setb{min-width:44px;flex:0 0 44px!important}
.shell-sync{flex-basis:100%;font-size:.85rem;color:var(--muted);margin:0;text-align:right}
.home-intro{display:grid;grid-template-columns:minmax(0,1.15fr) minmax(300px,.85fr);gap:40px;align-items:center;margin:12px 0 32px}
.home-copy h1{text-align:left;font-size:clamp(1.8rem,3vw,2.8rem);line-height:1.25;color:var(--ink);letter-spacing:0;margin:4px 0 12px;text-wrap:balance}
.home-copy .sub{text-align:left;max-width:40em;line-height:1.6;opacity:1;color:var(--muted);margin:0 0 18px}.eyebrow{font-size:.9rem;color:var(--red);margin:0 0 8px}
.hero-actions{display:flex;gap:12px;flex-wrap:wrap}.hero-actions .btn{flex:0 1 auto;min-width:150px;padding:12px 20px}.hero-art .scene{margin:0;height:240px;border:2.5px solid var(--ink);border-radius:18px 12px 30px 12px;isolation:isolate}.hero-art .scene .bear{left:40%;width:145px}.hero-art .scene .catb{width:100px;left:12%}.hero-art .scene .sheetd{top:24px;height:82px}.hero-art figcaption{font-size:.85rem;color:var(--muted);text-align:center;margin-top:8px}.hero-art{margin:0}
.home-workspace{display:grid;grid-template-columns:minmax(0,1fr) 270px;gap:32px;align-items:start}.learning-main{min-width:0}.learning-side{position:sticky;top:24px;background:var(--surface);padding:20px;border:2px solid var(--line);border-radius:10px}
.section-title{font-size:1.4rem;font-weight:400;margin:0 0 6px}.section-note{margin:0 0 16px;color:var(--muted);font-size:.9rem;line-height:1.5}.learning-side h2{font-size:1.12rem;font-weight:400;margin:0 0 14px}.stat-list{margin:0}.stat-list div{display:flex;justify-content:space-between;gap:12px;padding:9px 0;border-bottom:1px dashed var(--line)}.stat-list dt{font-size:.9rem;color:var(--muted)}.stat-list dd{margin:0;font-size:1.1rem;font-variant-numeric:tabular-nums}.learning-side .btn{width:100%;margin-top:14px}.learning-side p{font-size:.88rem;line-height:1.5;color:var(--muted)}
#lvs{grid-template-columns:repeat(3,minmax(0,1fr));gap:16px}#lvs .card{min-height:130px;padding:18px 16px;animation-delay:0s!important}#lvs .card small{font-size:.88rem;line-height:1.45;margin:6px 0}#lvs .card b{font-size:1.15rem}.level-status{display:block;color:var(--ink);font-size:.8rem;margin-top:6px}#lvs .recommended{outline:3px solid var(--ink);outline-offset:3px}
#practiceTools{display:flex;gap:12px;flex-wrap:wrap;justify-content:flex-start;margin:0 0 18px}#practiceTools button{margin:0;padding:8px 0}.site-help{margin-top:26px!important;line-height:1.6;text-align:left;font-size:.88rem;max-width:65em}
#whome>.lv{grid-template-columns:repeat(3,minmax(0,1fr));gap:14px}#whome .wcont{min-height:100px}#wsub .wrow{break-inside:avoid}.wrow{min-width:0}.wlf,.wmd{min-width:0}.wrx,.r,.big,.tile,.rv,.pmsg,.bub,.pcard p,#wtitle{overflow-wrap:anywhere}#wsearch2{max-width:560px}#wsub .sheet{max-width:none}
#word{display:grid;grid-template-columns:minmax(0,.85fr) minmax(0,1.15fr);gap:20px 32px;max-width:1220px;margin:auto}#word>.top{grid-column:1/-1}#wst{grid-column:1;grid-row:2/5;height:320px;position:sticky;top:24px}#word>.sheet{grid-column:2;margin:0}#wsh,#wsc{grid-column:2}#wsh{margin:0}#word>.dock{grid-column:1/-1;position:static;margin:10px 0 0;max-width:none;width:auto}#wordVoiceRate{flex:none}#wordReport{grid-column:2;justify-self:start}.dock>.btn{min-height:48px}
#game{display:grid;grid-template-columns:minmax(0,1fr) 280px;gap:0 36px;max-width:1240px;margin:0 auto;align-items:start}.game-main{min-width:0}.game-sidebar{min-width:0;background:var(--surface);padding:22px 18px;border:2px solid var(--line);border-radius:12px;position:sticky;top:24px}.game-sidebar h2{font-size:1.1rem;font-weight:400;margin:0 0 10px}.game-sidebar .mas{display:block;padding-top:16px}.game-sidebar .bear{width:110px;margin:0 auto 14px}.game-sidebar .bub{margin:0;min-height:80px;font-size:1rem}.game-sidebar .bub:before{left:35px;top:-11px;bottom:auto;transform:rotate(135deg)}.game-sidebar .lampg{right:0;top:4px;width:40px}.game-sidebar .gp{pointer-events:none}.game-sidebar .stage{margin:26px -18px -22px;height:100px;border-radius:0 0 10px 10px;overflow:hidden}#game>.top{grid-column:1/-1;gap:14px;margin:0 0 24px}#game .top .x{width:44px;height:44px}#game .keys{max-width:620px}#game .sheet{min-height:166px;display:flex;flex-direction:column;align-items:center;justify-content:center;padding:36px 32px 24px}#game .big{font-size:clamp(2rem,3.8vw,3.4rem);line-height:1.3;max-width:100%}#game .cn{font-size:1rem}#game .ans{min-height:88px;margin:24px 0 16px}#game .bank{min-height:110px;gap:14px;margin:16px 0}.tile{max-width:100%;line-height:1.4;padding:10px 16px;min-height:44px}#game .opt{width:calc(50% - 8px);font-size:1.2rem}#game .msg{line-height:1.55;min-height:64px}#game .row{gap:14px}#game .row .btn{min-height:48px}.keyboard-help{font-size:.85rem;line-height:1.6;color:var(--muted);margin:16px 0 8px}.keyboard-help kbd{font:inherit;font-size:.8rem;border:1px solid var(--line);padding:1px 5px;border-radius:4px;background:var(--surface)}#gameMeta{font-size:.88rem;color:var(--muted);line-height:1.6}#score{font-size:1.1rem;font-variant-numeric:tabular-nums;margin:18px 0!important}#questionReport{display:block;margin:14px auto 0}
#end,#ach{max-width:1000px;margin:auto}#endart{max-width:360px}#end .row{flex-wrap:wrap}#end .row .btn{flex:1 1 160px}#ag{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:14px}#ag .acard{margin:0}.ov{padding:20px;overflow-y:auto;overscroll-behavior:contain}.pcard{max-height:calc(100dvh - 40px);overflow-y:auto;overscroll-behavior:contain;max-width:480px;padding:28px 24px}.pcard .inp{font-size:1rem;min-height:44px}.pcard .acl{min-width:44px;min-height:44px}.field-label{display:block;font-size:.88rem;margin:10px 0 4px}#toast{max-width:min(600px,calc(100vw - 28px));overflow-wrap:anywhere;line-height:1.5}#wback{align-items:center}.btn.go{color:var(--ink);text-shadow:none}#wsc .chip,.wsp{min-width:44px;min-height:44px}.wrow .wpy{line-height:1.5}.bb{line-height:1.55}.product-header[aria-busy=true]{opacity:.8}
@media(min-width:1920px){body{max-width:1720px;padding-inline:56px}.home-workspace{grid-template-columns:minmax(0,1fr) 320px;gap:48px}#lvs{grid-template-columns:repeat(4,minmax(0,1fr))}.home-intro{gap:80px}.hero-art .scene{height:280px}}
@media(min-width:1440px) and (max-width:1919px){body{max-width:1480px}#lvs{grid-template-columns:repeat(3,minmax(0,1fr))}.home-workspace{grid-template-columns:minmax(0,1fr) 290px}}
@media(min-width:768px) and (max-width:1023px){body{padding-inline:24px}.home-intro{gap:24px;grid-template-columns:1fr 1fr}.home-workspace{grid-template-columns:minmax(0,1fr) 220px;gap:20px}#lvs{grid-template-columns:repeat(2,minmax(0,1fr))}#whome>.lv{grid-template-columns:repeat(2,minmax(0,1fr))}.product-header .tabs{order:3;flex-basis:100%;justify-content:flex-start}.product-header .acbar{margin-left:auto}.shell-sync{order:4}.hero-art .scene{height:220px}#game{grid-template-columns:minmax(0,1fr) 220px;gap:0 24px}.game-sidebar{padding:16px 12px}#game .opt{font-size:1.05rem}#word{gap:18px}#ag{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:767px){body{padding-inline:16px}.product-header{gap:10px;padding:12px 0;margin-bottom:18px}.brand{flex:1}.brand b{font-size:1.1rem}.brand small{font-size:.75rem}.product-header .tabs{order:3;flex-basis:100%;justify-content:flex-start}.product-header .tabs .tab{flex:1;padding:8px}.product-header .acbar{gap:6px;flex-wrap:wrap}.product-header #acctb{max-width:180px;white-space:normal;font-size:.84rem;padding:6px 10px}.product-header #achb{font-size:.84rem;padding:6px 10px}.shell-sync{order:4;text-align:left;font-size:.78rem}.home-intro{grid-template-columns:1fr;gap:20px;margin-bottom:24px}.home-copy h1{font-size:1.8rem}.hero-art .scene{height:180px}.hero-art .scene .bear{width:112px;left:40%}.hero-art .scene .catb{width:90px}.hero-art figcaption{display:none}.home-workspace{display:flex;flex-direction:column;gap:24px}.learning-main,.learning-side{width:100%}.learning-side{position:static;padding:18px}.stat-list{display:grid;grid-template-columns:1fr 1fr;gap:0 20px}.learning-side .btn{max-width:360px}.hero-actions .btn{flex:1;padding:10px;min-width:120px}#lvs{grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}#lvs .card{padding:12px;min-height:128px}#lvs .card b{font-size:1.05rem}#lvs .card small{font-size:.82rem}#whome>.lv{grid-template-columns:repeat(2,minmax(0,1fr))}#game{display:flex;flex-direction:column;gap:0}#game>.top{width:100%;margin-bottom:12px}.game-main,.game-sidebar{width:100%}.game-sidebar{position:static;padding:12px;margin-bottom:18px;order:-1}.game-sidebar .mas{display:flex;padding:0}.game-sidebar .bear{width:65px;margin:0 8px 0 0}.game-sidebar .bub{min-height:48px;margin-bottom:0}.game-sidebar .bub:before{top:auto;bottom:10px;left:-11px;transform:rotate(45deg)}.game-sidebar .stage{display:none}.game-sidebar .lampg{display:none}.game-sidebar h2{display:none}#gameMeta{margin:0 0 8px}#game>.top{order:-2}#game .sheet{padding:30px 8px 18px;min-height:125px}#game .big{font-size:2.2rem}#game .bank{gap:10px;min-height:90px}#game .ans{margin:16px 0 10px}#score{margin:8px 0!important;text-align:left!important}.keyboard-help{display:none}#game .row{gap:10px}#game .opt{font-size:1.1rem}#word{display:block}#wst{position:relative;top:auto;height:200px}#word>.sheet{margin:12px 0}#word>.dock{position:sticky;bottom:0;background:var(--paper);padding:10px 0;z-index:8;flex-wrap:wrap}#word>.dock .btn{padding:8px;min-width:40px}.wrow .wmd{max-width:43%}#ag{grid-template-columns:1fr}.ov{padding:12px}.pcard{max-height:calc(100dvh - 24px);padding:24px 16px}.site-help{font-size:.82rem}#game .top .keys{gap:2px}#hp{white-space:nowrap}.key{min-width:0}#end .row{gap:12px}}
@media(min-width:431px) and (max-width:767px){body{padding-inline:24px}.home-intro{grid-template-columns:1.1fr .9fr;gap:20px}.hero-art .scene{height:200px}.hero-art .scene .catb{left:2%;width:60px}.hero-art .scene .bear{left:32%;width:100px}.hero-art .scene .lamp{width:40px}.hero-art .scene .sheetd{right:40px}.home-copy h1{font-size:1.65rem}.hero-actions{flex-direction:column}.hero-actions .btn{min-width:0}#lvs{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(prefers-reduced-motion:no-preference){.btn,.tab,.card{transition:transform .16s ease-out,box-shadow .16s ease-out,background-color .16s ease-out}.btn:not(:disabled):hover,.tab:hover{transform:translateY(-2px)}#lvs .card:hover{transform:translateY(-3px);box-shadow:0 6px 0 rgba(74,63,53,.25)}.home-intro{animation:product-in .32s ease-out}.game-main{animation:product-in .2s ease-out}@keyframes product-in{from{opacity:0;transform:translateY(8px)}to{opacity:1;transform:none}}}
@media(prefers-reduced-motion:reduce){*,*::before,*::after{scroll-behavior:auto!important;transition:none!important}.lt{animation:none!important}body:before{opacity:.35}}

@media(min-width:768px) and (pointer:fine){#bank .tile[data-key]:not([data-key='']):before{content:attr(data-key);display:inline-block;border:1px solid var(--line);border-radius:3px;font-size:.7rem;line-height:1.2;padding:1px 4px;margin-right:8px;vertical-align:middle}}

/* Text contrast on the existing crayon surfaces. */
.btn.go,.product-header .tab.on{color:#211810;text-shadow:none}.eyebrow,.plink{color:#994435;opacity:1}.mu{color:var(--muted);opacity:1}.card small{color:var(--ink);opacity:1}

