@import"https://fonts.googleapis.com/css2?family=Atkinson+Hyperlegible+Next:wght@400;500;600&family=Sour+Gummy:wght@400;500;600&display=swap";:root{color-scheme:light;--bg: #f4f3f8;--panel: #ffffff;--raised: #eee9f7;--border: #dad6e5;--text: #292538;--muted: #706980;--accent: #7041d6;--blue: #7041d6;--green: #147862;--purple: #9675d2;--topbar: 56px;--play-font: "Sour Gummy", system-ui, sans-serif;font:14px/1.5 Atkinson Hyperlegible Next,system-ui,sans-serif;color:var(--text);background:var(--bg)}*{box-sizing:border-box}body{margin:0}button,input,select{font:inherit}button{display:inline-flex;align-items:center;justify-content:center;gap:7px;min-height:36px;padding:7px 11px;border:1px solid var(--border);border-radius:8px;background:var(--panel);color:var(--text);cursor:pointer;transition:background .15s,border-color .15s}button:hover:enabled{background:var(--raised);border-color:#b09bce}button:disabled{opacity:.42;cursor:not-allowed}button.selected,button[aria-pressed=true]{background:#eee6fd;color:var(--accent);border-color:#bda5ed}button.primary{background:var(--accent);border-color:var(--accent);color:#fff;font-weight:600;min-height:44px}button.primary:hover:enabled{background:#6034be;border-color:#6034be}button.text-button{border-color:transparent;background:transparent;color:var(--muted);font-size:12px}:focus-visible{outline:2px solid var(--accent);outline-offset:3px}.ui-icon{width:18px;height:18px;flex-shrink:0}.icon-button{width:36px;padding:6px}input,select{min-width:0;border:1px solid var(--border);border-radius:7px;background:var(--panel);color:var(--text);padding:9px 10px}input[type=text]{width:100%}input[type=range]{width:100%;accent-color:var(--accent);height:24px;padding:0;cursor:pointer}input[type=checkbox]{width:16px;height:16px;accent-color:var(--accent)}label{color:var(--muted);font-size:13px}p{margin:0 0 12px}h1,h2{font-family:var(--play-font);letter-spacing:-.04em;line-height:1.2}h2{font-size:24px;font-weight:550;margin:8px 0 14px}[hidden]{display:none!important}.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}.skip-link{position:fixed;top:-100px;left:12px;z-index:100;padding:10px;background:var(--panel);color:var(--accent)}.skip-link:focus{top:8px}.eyebrow{font-size:10px;letter-spacing:.13em;font-weight:600;color:var(--muted)}#app{min-height:100dvh}.topbar{height:var(--topbar);padding:0 18px;display:flex;align-items:center;gap:14px;background:var(--panel);border-bottom:1px solid var(--border)}.brand{display:inline-flex;align-items:center;flex-shrink:0;min-height:36px;text-decoration:none}.brand img{display:block;width:66px;height:30px}.back-games{border:0;background:transparent;font-size:12px;color:var(--muted)}.current-game{display:flex;align-items:baseline;gap:9px;min-width:0;white-space:nowrap}.current-game b{font-size:13px;font-weight:600}.current-game #nowPlaying{font-size:11px;color:var(--muted)}.header-status{font-size:12px;min-width:0;overflow:hidden;white-space:nowrap;text-overflow:ellipsis;color:var(--muted);margin-left:auto}.header-status.over{color:var(--accent);font-weight:600}.topactions{display:flex;align-items:center;gap:4px;flex-shrink:0}.topactions button{font-size:12px;border-color:transparent;background:transparent}.topactions #hint{color:var(--accent)}.brand-note,#friendsOpen{display:none}.badge{background:var(--raised);color:var(--accent);border-radius:20px;padding:2px 7px;font-size:11px}.badge:empty{display:none}.is-library{background:#eeeaf4}.is-library .topbar{padding-inline:max(24px,calc((100vw - 1160px)/2));height:58px;background:#eeeaf4;border:0}.is-library .back-games,.is-library .current-game,.is-library .header-status,.is-library .topactions button:not(#friendsOpen){display:none!important}.is-library .brand-note{display:block;font-size:12px;color:var(--muted)}.is-library .topactions{margin-left:auto}.is-library #friendsOpen{display:inline-flex}#gameLibrary{max-width:1208px;margin:auto;padding:8px 24px 24px}.library-heading{display:flex;justify-content:space-between;align-items:end;gap:20px;margin-bottom:10px}.library-heading h1{display:inline;font-size:28px;font-weight:600;margin:0 10px 0 0}.library-heading h1 span{color:var(--accent)}.library-heading p{display:inline;margin:0;color:var(--muted);font-size:13px}#resumeGame{white-space:nowrap;font-size:12px}.library-label{display:flex;align-items:center;justify-content:space-between;margin-bottom:7px}.library-label h2{margin:0;font-size:15px;letter-spacing:0}.library-label>span{font-size:12px;color:var(--muted)}.games{display:grid;grid-template-columns:repeat(12,minmax(0,1fr));grid-auto-rows:154px;grid-auto-flow:dense;gap:10px}.games>button{grid-column:span 3;position:relative;display:block;min-height:0;padding:0;overflow:hidden;border:0;border-radius:16px;background:#dcd0f1;box-shadow:none;text-align:left;transition:transform .18s,filter .18s}.games>button:nth-child(1){grid-column:span 6;grid-row:span 2}.games>button:nth-child(10){grid-column:span 6}.games>button:hover:enabled,.games>button:focus-visible{background:#dcd0f1;transform:scale(1.018);filter:saturate(1.08);z-index:2}.games>button.active{color:var(--text);background:#dcd0f1}.library-art{position:absolute;top:0;right:0;bottom:0;left:0;display:flex;align-items:center;justify-content:center;margin:0;background:radial-gradient(circle at 30% 20%,#f9f5ff 0 7%,transparent 8%),linear-gradient(145deg,#d9c9f2,#a989dc)}.games>button:nth-child(3n+2) .library-art{background:radial-gradient(circle at 75% 25%,#f7f2ff 0 6%,transparent 7%),linear-gradient(145deg,#c5b1e8,#7a4dc8)}.games>button:nth-child(3n) .library-art{background:radial-gradient(circle at 20% 78%,#faf7ff 0 6%,transparent 7%),linear-gradient(145deg,#e8dff5,#b59bda)}.library-art:after{content:"";position:absolute;width:43%;height:43%;border:2px solid #fff5;border-radius:12px;transform:translate(18px,16px) rotate(7deg);transition:transform .35s}.library-art .game-preview{position:relative;z-index:1;width:96px;height:96px;gap:4px;transform:rotate(-5deg);filter:drop-shadow(7px 9px 2px #50308324);transition:transform .35s}.games>button:nth-child(1) .game-preview{width:160px;height:160px;gap:7px}.games>button:nth-child(2n) .game-preview{transform:rotate(5deg)}.games>button:hover .game-preview,.games>button:focus-visible .game-preview{transform:translate(-7px,-5px) rotate(0) scale(1.08)}.games>button:hover .library-art:after,.games>button:focus-visible .library-art:after{transform:translate(35px,28px) rotate(12deg)}.library-art .game-preview i{font-family:var(--play-font);font-size:27px;font-weight:600;background:#fff;border:0;border-radius:7px;color:#7041d6}.games>button:nth-child(1) .game-preview i{font-size:42px}.dimension-tag,.lab-label{position:absolute;z-index:3;top:10px;right:10px;color:#49365f;font-size:10px;font-weight:600;background:#fffdea;padding:3px 7px;border-radius:5px}.lab-label{left:10px;right:auto;color:#fff;background:#49365fcc;letter-spacing:.08em}.game-card-heading{position:absolute;z-index:3;inset:auto 0 0;display:flex;justify-content:space-between;align-items:end;padding:30px 13px 11px;color:#fff;background:linear-gradient(transparent,#30243dbd)}.game-card-heading b{font:600 20px var(--play-font);letter-spacing:-.02em;text-shadow:0 1px 8px #24153255}.game-card-heading>span{color:#fff;font:600 20px var(--play-font)}.game-concept .library-art{filter:saturate(.78)}.game-concept:hover .game-preview i.filled,.game-concept:focus-visible .game-preview i.filled{animation:concept-cell .65s ease-in-out alternate infinite}@keyframes concept-cell{to{transform:translateY(-5px) rotate(4deg);background:#fff7c7}}.game-preview{display:grid;grid-template-columns:repeat(3,1fr);grid-template-rows:repeat(3,1fr);width:48px;height:48px;gap:3px;flex-shrink:0}.game-preview i{display:grid;place-items:center;min-width:0;min-height:0;font:600 16px/1 Segoe UI,sans-serif;font-style:normal;border:1px solid var(--border);border-radius:3px;background:#eee9f7;color:var(--accent)}.preview-tictactoe i:nth-child(3n){color:#315e82}.library-footer{display:flex;justify-content:space-between;gap:12px;margin-top:13px;color:var(--muted);font-size:11px}main{display:flex;flex-direction:column;height:calc(100dvh - var(--topbar));min-height:300px;padding:8px 12px 0;min-width:0;overflow:auto}.stage{flex:1;min-height:220px;display:flex;position:relative;border:1px solid var(--border);background:var(--bg);border-radius:10px;overflow:hidden}.board{flex:1;min-width:0;min-height:0;position:relative}.board>canvas{position:absolute;top:0;right:0;bottom:0;left:0;display:block;touch-action:none}canvas#canvas:focus-visible{outline:2px solid var(--accent);outline-offset:-4px}.board-corner{position:absolute;left:16px;top:12px;display:flex;align-items:center;gap:7px;pointer-events:none;color:var(--muted);font-size:9px;letter-spacing:.08em}.board-corner .ui-icon{width:12px;height:12px}.minimap-wrap{position:absolute;right:12px;bottom:12px;background:#ffffffed;border:1px solid var(--border);border-radius:8px;padding:8px}.minimap-wrap>span{display:block;font-size:8px;color:var(--muted);margin-bottom:6px}.minimap-wrap canvas{display:block;width:132px;height:84px;touch-action:none;cursor:pointer}.cube{flex:0 0 35%;min-width:0;display:flex;flex-direction:column;border-left:1px solid var(--border);background:var(--panel)}.cube canvas{flex:1;min-height:0;min-width:0;cursor:grab;touch-action:none}.cubelbl{font-size:11px;color:var(--muted);text-align:center;height:22px}.location-bar{display:flex;justify-content:space-between;align-items:center;gap:12px;padding:7px 2px}#focusDescription{font-size:11px;color:var(--muted)}.layer-nav{display:flex;flex-wrap:wrap;gap:9px}.axis-step{display:flex;align-items:center;gap:5px;font-size:11px;color:var(--accent)}.axis-step button{min-width:28px;min-height:28px;padding:1px 5px;border-radius:5px}.scrim{display:none}dialog{color:var(--text);background:var(--panel);border:1px solid var(--border);border-radius:16px;padding:24px;width:min(520px,calc(100vw - 28px));max-height:calc(100dvh - 40px);box-shadow:0 18px 80px #29253826;scrollbar-width:thin;scrollbar-color:var(--border) transparent}dialog::backdrop{background:#29253840;-webkit-backdrop-filter:blur(4px);backdrop-filter:blur(4px)}#aside{width:min(380px,calc(100vw - 28px))}#aside:not([open]){display:none}#conceptDialog{width:min(390px,calc(100vw - 28px));text-align:center}#conceptDialog .dialog-heading{justify-content:space-between}#conceptDialog .lab-label{position:static}#conceptDialog h2{font-size:32px;margin:16px 0 5px}#conceptDialog>p{color:var(--muted)}#conceptDialog .primary{width:100%}.concept-preview{display:grid;place-items:center;min-height:190px;margin:0 -8px;border-radius:13px;background:linear-gradient(145deg,#d9c9f2,#8e68cf);overflow:hidden}.concept-preview .game-preview{width:132px;height:132px;gap:6px;transform:rotate(-5deg);filter:drop-shadow(8px 10px 2px #50308324)}.concept-preview .game-preview i{display:grid;place-items:center;font:600 34px/1 var(--play-font);font-style:normal;color:var(--accent);background:#fff;border:0;border-radius:8px}.panel-heading,.dialog-heading{display:flex;justify-content:space-between;align-items:center;gap:12px;margin-bottom:14px}.dialog-heading h2{margin:0;font-size:23px}.panel-tabs{display:flex;gap:4px;border-bottom:1px solid var(--border);margin-bottom:20px}.panel-tabs button{flex:1;border:0;border-radius:0;padding:8px 5px 12px;background:transparent;color:var(--muted);font-size:12px}.panel-tabs button.selected{border-bottom:2px solid var(--accent);color:var(--accent)}.section-intro{margin-bottom:20px}.section-intro h2{font-size:22px}.section-intro p{font-size:12px;color:var(--muted)}.game-choice{width:100%;justify-content:flex-start;gap:12px;text-align:left;padding:12px;background:var(--bg)}.game-choice>span:first-child{display:flex}.game-choice>span:nth-child(2){flex:1}.game-choice small{display:block;font-size:9px;letter-spacing:.06em;color:var(--muted)}.game-choice b{font-size:15px;font-weight:550}.field-heading{display:flex;align-items:center;justify-content:space-between;margin:18px 0 7px}.field-heading output{font-size:12px;color:var(--accent)}.segments{display:flex;gap:3px;border:1px solid var(--border);border-radius:9px;padding:3px;background:var(--bg)}.segments button{background:transparent;border-color:transparent;font-size:12px;min-height:32px}.segments button.selected{color:var(--accent);background:var(--panel);border-color:#c9b7e9}.dimensions button{flex:1;padding:5px}.dimlabel{font-size:12px;line-height:1.6;color:var(--muted);margin:7px 0 0}.field{display:flex;flex-direction:column;gap:6px;margin-top:16px}.field select{width:100%}.advanced{margin:16px 0 10px}.advanced summary{font-size:12px;color:var(--muted);cursor:pointer;padding:5px 0}.advanced input{margin-top:6px}.setup-note{font-size:11px;color:var(--muted);margin:16px 0 10px}#new,#resetSetup{width:100%}#new .ui-icon{margin-left:auto}.dimension-note{display:none}.panel-footer{display:flex;justify-content:space-between;align-items:center;gap:10px;padding-top:18px;margin-top:16px;border-top:1px solid var(--border)}.panel-footer button{border:0;font-size:12px;color:var(--muted)}.check{display:flex;align-items:center;gap:7px}.view-toolbar{display:flex;flex-direction:column;align-items:flex-start;gap:18px;margin:18px 0}.view-options{display:flex;flex-wrap:wrap;align-items:center;gap:8px}.view-options select{max-width:155px;font-size:12px}.view-options button{font-size:12px}.view-extra{display:flex;flex-wrap:wrap;gap:8px;padding-top:18px;margin-top:18px;border-top:1px solid var(--border)}.view-extra button{font-size:12px}.learn-button{color:var(--accent)}.selection-key{display:flex;gap:12px;flex-wrap:wrap;font-size:11px;color:var(--muted)}.selection-key span{display:flex;align-items:center;gap:5px}.selection-key i{width:9px;height:9px;border:1px solid var(--accent)}.selection-key span:nth-child(2) i{background:#dcd0f5;border:0}.selection-key span:nth-child(3) i{border:1px dashed var(--green)}#helpDialog p,#helpDialog li{color:var(--muted);font-size:13px}#helpDialog li{margin-bottom:12px}#helpDialog ul{padding-left:18px}kbd{font:11px Segoe UI,sans-serif;color:var(--text);border:1px solid var(--border);border-bottom-width:2px;border-radius:4px;padding:2px 4px;background:var(--bg)}.lesson{display:flex;justify-content:space-between;gap:20px;padding:14px 18px;border:1px solid #cdb9ed;border-radius:10px;background:#eee6fd;margin-bottom:8px}.lesson h2{font-size:19px;margin:5px 0}.lesson p{font-size:12px;max-width:630px;margin:0;color:#625372}.lesson-actions{display:flex;flex-direction:column;gap:4px;min-width:120px;justify-content:center}.lesson-actions button{font-size:12px}.hint-message{display:flex;gap:12px;align-items:flex-start;background:#edf7f2;color:var(--green);border:1px solid #b3d6c6;border-radius:9px;padding:12px 15px;margin-bottom:8px;font-size:12px}.hint-message>div{flex:1}.hint-message p{color:#3c6657;margin:4px 0}.hint-message>button{min-height:28px;padding:1px 8px;border:0;background:transparent}.end-actions{display:flex;justify-content:center;gap:8px;padding:8px 0;flex-wrap:wrap}.end-actions button{font-size:12px}.review-nav{display:flex;gap:4px;align-items:center}.review-nav button{padding:4px 8px}.review-nav input{min-width:20px}.accuracy{font-size:22px;margin:14px 0}.accuracy .p0{color:var(--accent)}.accuracy .p1{color:#315e82}.accuracy .sep{padding:0 8px;color:var(--muted)}#evalGraph{width:100%;height:72px;background:var(--bg);border-radius:6px;margin:14px 0}.revtext{font-size:12px;line-height:1.7;padding:14px 0}.keymoments{font-size:11px;margin-bottom:12px}.km{font-size:11px;min-height:30px;padding:4px 7px;margin:3px}.movelist{padding:0;list-style:none;max-height:230px;overflow:auto}.movelist li>button{width:100%;border:0;justify-content:flex-start;gap:6px;padding:6px;min-height:34px;font-size:11px}.movelist .ev{margin-left:auto}.movelist .n{color:var(--muted)}.movelist .g{font-size:10px}.movelist .current{outline:1px solid var(--accent);outline-offset:-1px;border-radius:5px}.movelist .current button{background:var(--raised)}.blunder .g,.mistake .g{color:#b83553}.best .g,.excellent .g{color:var(--green)}.inaccuracy .g{color:#91641b}.review-dock{display:flex;justify-content:center;align-items:center;gap:12px;margin:6px 0;font-size:12px}.review-dock button{font-size:12px}.friends .primary{width:100%;margin-top:12px}.friends input{margin-top:6px}.friends .row{display:flex;gap:8px}.friends .row button{white-space:nowrap;font-size:12px}.codeinput{text-transform:uppercase;letter-spacing:.15em}.divider{display:flex;align-items:center;gap:12px;color:var(--muted);font-size:11px;margin:24px 0 16px}.divider:before,.divider:after{content:"";flex:1;height:1px;background:var(--border)}.code{font-size:36px;letter-spacing:.18em;color:var(--accent);padding:14px 0}.players{list-style:none;padding:0}.players li{padding:12px;background:var(--bg);border-radius:6px;font-size:12px;margin-bottom:8px}.players li.me{border-left:2px solid var(--accent)}.err{font-size:12px;color:#b12e4b;margin-top:12px}.padbar{padding:8px 0;border-top:1px solid var(--border)}.padbody{display:flex;justify-content:center;align-items:center;gap:12px}.levels{display:flex;flex-direction:column;gap:3px}.levels button{font-size:11px;min-height:32px}.levels button.on{color:#fff!important;background:var(--accent)!important}.keys{display:grid;grid-template-columns:repeat(3,44px);grid-template-rows:repeat(3,36px);gap:3px}.keys button{padding:0;min-height:36px;font-size:19px;touch-action:manipulation}.keys [data-d=up]{grid-column:2}.keys [data-d=left]{grid-row:2;grid-column:1}.keys [data-d=act]{grid-row:2;grid-column:2;font-size:11px}.keys [data-d=right]{grid-row:2;grid-column:3}.keys [data-d=down]{grid-row:3;grid-column:2}#flagAction,#arrowControls{font-size:11px}.cursor-pad:not(.expanded) .levels,.cursor-pad:not(.expanded) .keys button:not([data-d=act]){display:none}.cursor-pad:not(.expanded) .keys{display:flex}.cursor-pad .keys [data-d=act]{min-width:72px;min-height:42px;font-size:12px;color:#fff;background:var(--accent);border-color:var(--accent)}.cursor-pad.expanded .padbody{flex-wrap:wrap}#textBoard{padding:16px;border:1px solid var(--border);border-radius:10px;margin:8px 0;background:var(--panel)}#textBoard h2{font-size:20px}#textBoard p{color:var(--muted);font-size:12px}#textCells{display:grid;gap:4px}#textCells button{min-width:0;padding:6px 2px;font-size:11px}@media(max-width:1100px){.topbar{gap:8px;padding-inline:12px}.current-game{flex-direction:column;gap:0}.topactions button{padding:6px 8px}.header-status{max-width:220px}}@media(max-width:820px){:root{--topbar: 86px}.topbar{display:grid;grid-template-columns:auto auto 1fr auto;grid-template-rows:48px 30px;height:var(--topbar);gap:0 8px;padding:0 10px 8px}.brand{grid-column:1;grid-row:1}.brand img{width:48px;height:24px}.is-library .brand img{width:66px;height:30px}.back-games{grid-column:2;grid-row:1;padding:5px}.back-games .ui-icon{display:none}.current-game{grid-column:3;grid-row:1;overflow:hidden}.current-game b{font-size:12px}.current-game #nowPlaying{font-size:10px}.topactions{grid-column:4;grid-row:1;gap:1px}.topactions button{padding:7px;min-width:34px}.topactions button span{display:none}.topactions .ui-icon{width:16px;height:16px}.header-status{grid-column:1 / -1;grid-row:2;margin:0;max-width:none;font-size:11px}.is-library .topbar{display:flex;padding:0 18px;height:60px;gap:12px}.is-library .brand-note{font-size:11px}.is-library .topactions button span{display:inline}#gameLibrary{padding:8px 12px 20px}.library-heading{align-items:flex-start;gap:12px;margin-bottom:10px}.games{grid-template-columns:repeat(6,minmax(0,1fr));grid-auto-rows:142px;gap:8px}.games>button{grid-column:span 3}.games>button:nth-child(1){grid-column:span 6;grid-row:span 2}.games>button:nth-child(10){grid-column:span 6}main{padding:6px 8px 0;height:calc(100dvh - var(--topbar))}.location-bar{flex-direction:column;align-items:flex-start;gap:5px;padding:6px 0}.axis-step button{min-height:32px;min-width:32px}.axis-step{font-size:10px;gap:3px}.layer-nav{gap:6px}#focusDescription{font-size:10px}.minimap-wrap canvas{width:100px;height:64px}.minimap-wrap{padding:5px;right:8px;bottom:8px}.minimap-wrap>span{font-size:7px}.padbar{padding-bottom:max(8px,env(safe-area-inset-bottom))}.cursor-pad .padbody{justify-content:space-between}.lesson{flex-direction:column;gap:10px;padding:12px}.lesson-actions{flex-direction:row;justify-content:flex-start}.lesson h2{font-size:17px}.review-dock{gap:6px;font-size:11px}.review-dock button{font-size:11px;padding:6px}}@media(max-width:480px){.is-library .brand-note{display:none}.current-game b{max-width:110px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.back-games{font-size:11px}.topactions button{min-width:30px;padding:5px}.topactions #pause{font-size:10px}.library-heading h1{font-size:24px}.library-heading p{display:block;font-size:12px}.library-art .game-preview{width:80px;height:80px;gap:3px}.library-art .game-preview i{font-size:22px}.games>button:nth-child(1) .game-preview{width:132px;height:132px}.games>button:nth-child(1) .game-preview i{font-size:36px}.game-card-heading b{font-size:17px}.dimension-tag,.lab-label{font-size:8px;top:7px;right:7px}.lab-label{left:7px;right:auto}.library-label>span{font-size:10px}.library-footer{flex-direction:column}.cube{position:absolute;top:0;right:0;bottom:0;left:0;background:var(--panel);z-index:2;border:0}.board-corner{left:10px;top:9px;font-size:8px}dialog{padding:18px}}@media(prefers-reduced-motion:reduce){*,*:before,*:after{transition:none!important;animation:none!important;scroll-behavior:auto!important}}
