:root{--hud-surround:#ecedf1;--hud-panel:#fff;--hud-ink:#1b2340;--hud-ink-2:#545b73;--hud-line:#d5d8e0;--hud-accent:#1b2340;--hud-accent-ink:#fff;--hud-btn:#fff;--hud-btn-ink:#1b2340;--hud-font:"Space Grotesk", system-ui, sans-serif;--hud-font-math:"Latin Modern", "Latin Modern Roman", Georgia, serif;--hud-radius:2px;--hud-shadow:none}html,body{background:var(--hud-surround);-webkit-user-select:none;user-select:none;-webkit-tap-highlight-color:transparent;height:100%;margin:0;overflow:hidden}*,:before,:after{box-sizing:border-box}.stage,.stage *,.stage :before,.stage :after{cursor:none!important}#app{touch-action:none;position:fixed;inset:0}.stage{transform-origin:0 0;width:1440px;height:900px;font-family:var(--hud-font);color:var(--hud-ink);-webkit-font-smoothing:antialiased;font-size:13px;line-height:1.3;position:absolute;top:0;left:0}.stage>canvas{width:1440px;height:900px;display:block;position:absolute;top:0;left:0}.stage>canvas.over{pointer-events:none;z-index:3}.hud{z-index:2;pointer-events:none;position:absolute;inset:0}.hud [data-hud]{pointer-events:auto}.panel{background:var(--hud-panel);border:1px solid var(--hud-line);border-radius:var(--hud-radius);box-shadow:var(--hud-shadow);position:absolute}.controls{grid-template-rows:30px 30px;gap:6px;width:208px;height:66px;display:grid;position:absolute;top:24px;left:20px}.controls .row1{grid-template-columns:repeat(3,1fr);gap:6px;display:grid}.controls .row2{grid-template-columns:repeat(5,1fr);gap:6px;display:grid}.controls .btn{justify-content:center;width:100%;padding:0}.btn{appearance:none;font:inherit;height:30px;color:var(--hud-btn-ink);background:var(--hud-btn);border:1px solid var(--hud-line);border-radius:var(--hud-radius);box-shadow:var(--hud-shadow);white-space:nowrap;align-items:center;gap:6px;margin:0;padding:0 12px;font-size:12px;line-height:1;display:inline-flex;position:relative}.btn svg{flex:none;width:16px;height:16px;display:block;overflow:visible}.btn:hover{z-index:1;border-color:var(--hud-ink-2)}.btn:active{transform:translateY(1px)}.btn[disabled]{opacity:.42}.btn[disabled]:hover{border-color:var(--hud-line)}.btn[aria-expanded=true]{background:var(--hud-accent);color:var(--hud-accent-ink);border-color:var(--hud-accent);z-index:2}.btn:focus-visible,.row:focus-visible,.card:focus-visible{outline:2px solid var(--hud-accent);outline-offset:1px;z-index:3}.btn.primary{background:var(--hud-accent);color:var(--hud-accent-ink);border-color:var(--hud-accent);padding:0 10px 0 12px}.level{width:208px;height:400px;padding:12px 16px 0;top:100px;left:20px;overflow:hidden}.level .head{justify-content:space-between;align-items:center;height:16px;display:flex}.level .whybtn{appearance:none;height:18px;font:inherit;color:var(--hud-ink-2);border-radius:var(--hud-radius);text-decoration:underline;-webkit-text-decoration-color:color-mix(in srgb, var(--hud-ink-2) 45%, transparent);text-decoration-color:color-mix(in srgb, var(--hud-ink-2) 45%, transparent);text-underline-offset:3px;background:0 0;border:0;margin:0 -4px 0 0;padding:0 4px;font-size:12px;line-height:18px}.level .whybtn:hover,.level .whybtn[aria-expanded=true]{color:var(--hud-ink);text-decoration-color:currentColor}.level .whybtn:focus-visible{outline:2px solid var(--hud-accent);outline-offset:1px}.level .where{letter-spacing:.03em;color:var(--hud-ink-2);white-space:nowrap;font-variant-numeric:tabular-nums;font-size:12px;line-height:16px}.level .title{max-height:50px;font-family:var(--hud-font-math);font-size:21px;line-height:25px;font-weight:var(--hud-title-weight,400);-webkit-line-clamp:2;-webkit-box-orient:vertical;margin-top:6px;display:-webkit-box;overflow:hidden}.level .cite{height:17px;font-family:var(--hud-font-math);color:var(--hud-ink-2);white-space:nowrap;text-overflow:ellipsis;margin-top:1px;font-size:13px;font-style:italic;line-height:17px;overflow:hidden}.level .statement{max-height:84px;font-family:var(--hud-font-math);-webkit-line-clamp:4;-webkit-box-orient:vertical;margin-top:8px;font-size:15.5px;line-height:21px;display:-webkit-box;overflow:hidden}.level .statement .qed{display:none}.level .statement .qed .sq{background:currentColor;width:.48em;height:.48em;display:inline-block}.level .goal{width:176px;height:100px;box-shadow:0 0 0 1px var(--hud-line);border-radius:1px;margin-top:10px;display:block}.level .count{border-top:1px solid var(--hud-line);height:44px;color:var(--hud-ink-2);font-variant-numeric:tabular-nums;white-space:nowrap;justify-content:space-between;align-items:center;padding-top:1px;font-size:12px;display:flex;position:absolute;bottom:4px;left:16px;right:16px}.level .count b{color:var(--hud-ink);font-weight:500}.level .count .next{opacity:0;visibility:hidden;flex:none;gap:4px;height:28px;margin-left:6px;padding:0 7px 0 9px;font-size:12px;transition:opacity .26s ease-out}.level.is-solved .count .next{opacity:1;visibility:visible}.level.is-solved.why-open .count .next{opacity:0;visibility:hidden}html[data-theme=pure] .level.is-solved .statement .qed{display:inline}.shelf{--tile:72px;--pic:43px;width:208px;height:370px;padding:7px 5px;top:510px;left:20px;overflow:hidden}.shelf .empty{color:var(--hud-ink-2);padding:6px 11px;font-size:12px;line-height:16px}.shelf .cards{grid-template-columns:repeat(2,96px);grid-auto-rows:var(--tile);gap:4px;display:grid}.card{height:var(--tile);border-radius:var(--hud-radius);touch-action:none;border:1px solid #0000;flex-direction:column;align-items:stretch;padding:2px 2px 0;display:flex;position:relative}.card:hover{background:var(--hud-btn);border-color:var(--hud-line)}.card.is-held,.card.is-held:hover{background:var(--hud-btn);border-color:var(--hud-accent);box-shadow:inset 0 0 0 1px var(--hud-accent)}kbd{min-width:16px;height:16px;font-family:var(--hud-font);letter-spacing:0;color:var(--hud-ink-2);background:var(--hud-btn);border:1px solid var(--hud-line);border-radius:min(var(--hud-radius), 4px);border-bottom-width:2px;justify-content:center;align-items:center;padding:0 3px;font-size:10px;font-style:normal;font-weight:500;line-height:1;display:inline-flex}.card .key{position:absolute;top:2px;right:2px}.card.is-held .key{color:var(--hud-ink);border-color:var(--hud-accent)}.card canvas{width:90px;height:calc(var(--pic) + 8px);pointer-events:none;flex:none;margin:-4px 0;display:block}.card .name{text-align:center;overflow-wrap:normal;text-wrap:balance;justify-content:center;align-items:flex-start;height:25px;margin-top:1px;font-size:11px;line-height:12.5px;display:flex}.card.is-new{animation:.64s ease-out both card-arrive}@keyframes card-arrive{0%,70%{opacity:0}to{opacity:1}}.flyer{z-index:5;pointer-events:none;background:var(--hud-panel);border-color:var(--hud-line);box-shadow:var(--hud-shadow);margin:0;animation:.64s cubic-bezier(.2,.8,.2,1) both card-fly;position:absolute}@keyframes card-fly{0%{transform:translate(var(--fly-x), var(--fly-y)) scale(1.5);opacity:0}25%{opacity:1}80%{opacity:1}to{opacity:0;transform:none}}.sheet{z-index:4;opacity:0;visibility:hidden;padding:18px 20px 20px;transition:opacity .14s ease-out,transform .14s ease-out,visibility 0s linear .14s;position:absolute;transform:translate(-4px)}.sheet.is-open{opacity:1;visibility:visible;transition:opacity .14s ease-out,transform .14s ease-out;transform:none}.sheet h2{font-family:var(--hud-font-math);margin:0 0 12px;font-size:21px;font-weight:400;line-height:25px}.sheet .close{padding:0 7px;position:absolute;top:12px;right:12px}.sheet.levels{width:1010px;height:auto;max-height:724px;top:24px;left:240px}.levels .cols{grid-template-columns:repeat(3,1fr);gap:0 26px;display:grid}.levels h3{letter-spacing:.04em;height:18px;color:var(--hud-ink-2);border-bottom:1px solid var(--hud-line);margin:10px 0 4px;font-size:12px;font-weight:400}.levels h3:first-child{margin-top:0}.levels h3.blank{border-bottom-color:#0000}.row{appearance:none;font:inherit;color:inherit;text-align:left;border-radius:var(--hud-radius);background:0 0;border:0;grid-template-columns:22px 1fr auto 16px;align-items:center;gap:6px;width:100%;height:25px;margin:0;padding:0 6px;display:grid}.row .n{color:var(--hud-ink-2);font-variant-numeric:tabular-nums;font-size:12px}.row .t{font-family:var(--hud-font-math);white-space:nowrap;text-overflow:ellipsis;font-size:15px;overflow:hidden}.row .c{font-family:var(--hud-font-math);color:var(--hud-ink-2);white-space:nowrap;font-size:13px;font-style:italic}.row .m{width:16px;height:16px;color:var(--hud-ink);display:block}.row:hover:not([disabled]){background:var(--hud-btn);box-shadow:inset 0 0 0 1px var(--hud-line)}.row[disabled]{opacity:.38}.row.is-current{background:var(--hud-accent);color:var(--hud-accent-ink)}.row.is-current .n,.row.is-current .c,.row.is-current .m{color:var(--hud-accent-ink)}.sheet.themes{width:268px;height:330px;top:24px;left:240px}.themes .opt{appearance:none;font:inherit;color:inherit;text-align:left;border-radius:var(--hud-radius);background:0 0;border:1px solid #0000;grid-template-columns:minmax(0,1fr) 120px;align-items:center;gap:10px;width:100%;height:50px;margin:0 0 6px;padding:0 8px;display:grid}.themes .opt:hover{border-color:var(--hud-line);background:var(--hud-btn)}.themes .opt.is-current{border-color:var(--hud-accent);box-shadow:inset 0 0 0 1px var(--hud-accent)}.themes .opt .label{font-size:12px}.themes .opt canvas{width:120px;height:36px;box-shadow:0 0 0 1px var(--hud-line);border-radius:1px;display:block}.sheet.help{flex-direction:column;width:900px;height:auto;max-height:852px;padding-bottom:0;display:flex;top:24px;left:240px}.help h2{flex:none}.help .body{overscroll-behavior:contain;flex:0 auto;grid-template-columns:468px minmax(0,1fr);align-content:start;gap:0 30px;min-height:0;padding-bottom:18px;display:grid;overflow-y:auto}.help h3{letter-spacing:.04em;height:18px;color:var(--hud-ink-2);border-bottom:1px solid var(--hud-line);margin:0 0 2px;font-size:12px;font-weight:400}.help .post{grid-template-columns:150px 1fr;align-items:center;gap:16px;min-height:100px;padding:8px 0;display:grid}.help .post+.post{border-top:1px solid var(--hud-line)}.help canvas{width:150px;height:84px;box-shadow:0 0 0 1px var(--hud-line);border-radius:1px;display:block}.help .say{font-family:var(--hud-font-math);font-size:15.5px;line-height:20px}.help .say small{font-family:var(--hud-font);color:var(--hud-ink-2);margin-top:5px;font-size:12px;line-height:16px;display:block}.help .keys{grid-template-columns:max-content 1fr;align-items:center;gap:8px 14px;padding-top:10px;font-size:12px;line-height:16px;display:grid}.help .keys p{color:var(--hud-ink);grid-column:1/-1;margin:0 0 4px}.help .progress{grid-column:1/-1;margin-top:14px}.help .prow{align-items:center;gap:10px;height:44px;font-size:12px;display:flex}.help .prow .lab{color:var(--hud-ink-2)}.help .prow.ask .q{color:var(--hud-ink);margin-right:4px}.help .selwrap{display:inline-flex;position:relative}.help .select{appearance:none;width:280px;height:30px;font:inherit;color:var(--hud-btn-ink);background:var(--hud-btn);border:1px solid var(--hud-line);border-radius:var(--hud-radius);box-shadow:var(--hud-shadow);margin:0;padding:0 30px 0 10px;font-size:12px}.help .select:hover{border-color:var(--hud-ink-2)}.help .select:focus-visible{outline:2px solid var(--hud-accent);outline-offset:1px}.help .selwrap .chev{pointer-events:none;width:16px;height:16px;color:var(--hud-ink-2);position:absolute;top:7px;right:8px}.help .selwrap .chev svg{width:16px;height:16px;display:block}.help .note{color:var(--hud-ink-2);margin:0;font-size:12px;line-height:16px}.help .keys .k{color:var(--hud-ink-2);align-items:center;gap:3px;display:flex}.help .keys .k kbd{margin-right:1px}.help .keys .k .gap{width:8px}.help .say .k{font-family:var(--hud-font);letter-spacing:.04em;color:var(--hud-ink-2);margin-bottom:2px;font-size:12px;display:block}.controls .btn.ring[aria-expanded=true]{background:var(--hud-btn);color:var(--hud-btn-ink);border-color:var(--hud-accent);box-shadow:inset 0 0 0 1px var(--hud-accent)}.controls .btn.ring svg{width:18px;height:18px}.sheet.circle{width:238px;height:92px;padding:10px;top:60px;left:240px}.circle .inks{grid-template-columns:repeat(6,30px);gap:6px;display:grid}.circle .btn.ink{justify-content:center;width:30px;padding:0}.circle .btn.ink svg{width:18px;height:18px}.circle .btn.same{justify-content:center;width:100%;margin-top:6px}.circle .btn.is-current{border-color:var(--hud-accent);box-shadow:inset 0 0 0 1px var(--hud-accent)}.why{z-index:3;opacity:0;visibility:hidden;grid-template-columns:208px minmax(0,1fr) 132px;align-items:stretch;gap:22px;width:1168px;height:132px;padding:11px 12px 11px 11px;transition:opacity .22s ease-out,transform .22s ease-out,visibility 0s linear .22s;display:grid;top:758px;left:248px;transform:translateY(6px)}.why.is-open{opacity:1;visibility:visible;transition:opacity .22s ease-out,transform .22s ease-out;transform:none}.why.instant{transition:none}.why canvas{width:208px;height:108px;box-shadow:0 0 0 1px var(--hud-line);border-radius:1px;display:block}.why .words{flex-direction:column;min-width:0;max-width:720px;display:flex}.why .k{letter-spacing:.03em;color:var(--hud-ink-2);flex:none;margin-bottom:4px;font-size:12px;line-height:16px}.why .text{min-height:0;font-family:var(--hud-font-math);color:var(--hud-ink);flex:auto;margin:0;font-size:15.5px;line-height:20px;overflow:hidden}.why .side{flex-direction:column;justify-content:space-between;align-items:flex-end;display:flex}.why .close{padding:0 7px}.why .next{height:34px;padding:0 14px 0 16px;font-size:13px}.zoom{font-variant-numeric:tabular-nums;pointer-events:auto;opacity:0;visibility:hidden;height:26px;padding:0 9px;font-size:12px;transition:opacity .16s ease-out,visibility 0s linear .16s;position:absolute;bottom:164px;right:36px}.zoom.is-shown{opacity:1;visibility:visible;transition:opacity .16s ease-out}@media (prefers-reduced-motion:reduce){.sheet,.sheet.is-open,.why,.why.is-open,.zoom,.level .count .next{transition:none}.card.is-new,.flyer{animation:none}.flyer{display:none}}
