/* Tilt · Levels. Luke Steuber. */
@font-face{font-family:"Plex Mono";src:url("fonts/IBMPlexMono-500.woff2") format("woff2");font-weight:500;font-display:swap}
@font-face{font-family:"Plex Sans";src:url("fonts/IBMPlexSans-400.woff2") format("woff2");font-weight:400;font-display:swap}
:root{color-scheme:dark;--bg:#000;--ink:#fff;--text:#ededed;--sub:#aaa;--line:#333;--floor:#151515;--grid:#414141;--edge:#aaa;--block:#9b9b9b;--block-top:#d0d0d0;--block-side:#555;--well:#000;--guide:#777;--scrim:#000c;--mono:"Plex Mono",monospace;--sans:"Plex Sans",sans-serif}
:root[data-theme=light]{color-scheme:light;--bg:#fff;--ink:#000;--text:#121212;--sub:#606060;--line:#d5d5d5;--floor:#fafafa;--grid:#c0c0c0;--edge:#444;--block:#555;--block-top:#333;--block-side:#777;--well:#fff;--guide:#777;--scrim:#fffc}
@media(prefers-color-scheme:light){:root[data-theme=system]{color-scheme:light;--bg:#fff;--ink:#000;--text:#121212;--sub:#606060;--line:#d5d5d5;--floor:#fafafa;--grid:#c0c0c0;--edge:#444;--block:#555;--block-top:#333;--block-side:#777;--well:#fff;--guide:#777;--scrim:#fffc}}
*{box-sizing:border-box}html,body{margin:0;height:100%;touch-action:manipulation}body{height:100dvh;overflow:hidden;background:var(--bg);color:var(--text);font:16px/1.45 var(--sans);-webkit-text-size-adjust:100%;-webkit-tap-highlight-color:transparent}
button,select{font:inherit;color:inherit}button{cursor:pointer}button:disabled{opacity:.3;cursor:default}[hidden]{display:none!important}
:focus-visible{outline:2px solid var(--ink);outline-offset:3px}.sr-only{position:absolute;width:1px;height:1px;overflow:hidden;clip-path:inset(50%);white-space:nowrap}
.ib{display:inline-grid;place-items:center;width:48px;height:48px;min-width:48px;min-height:48px;border:0;background:none;padding:12px;color:var(--sub)}.ib:hover,.ib:focus-visible{color:var(--ink)}.ib svg{width:24px;height:24px;stroke:currentColor;fill:none;stroke-width:1.6;stroke-linecap:round;stroke-linejoin:round}
#restart-btn{position:fixed;left:8px;top:env(safe-area-inset-top,0px)}.readout{position:fixed;top:calc(18px + env(safe-area-inset-top,0px));left:50%;transform:translateX(-50%);font:500 13px/1 var(--mono);color:var(--sub);white-space:nowrap;letter-spacing:.02em}.readout span+span{margin-left:22px}
.toolbar{position:fixed;bottom:max(6px,env(safe-area-inset-bottom));left:8px;right:8px;display:flex;justify-content:space-between}.toolbar>div{display:flex}
#board-shell{position:absolute;inset:calc(62px + env(safe-area-inset-top,0px)) 16px calc(64px + env(safe-area-inset-bottom,0px));display:flex;align-items:center;justify-content:center}
#stage{display:flex;align-items:center;flex-direction:column;max-width:100%;max-height:100%;flex:none}#board{display:block;overflow:visible;touch-action:none;user-select:none;-webkit-user-select:none;cursor:grab;flex:none}#board:active{cursor:grabbing}#board:focus-visible{outline-offset:6px}
#completion{height:56px;flex:none;display:flex;justify-content:center;align-items:center;width:100%}#next-btn{color:var(--ink)}
.tray-face{fill:var(--floor);stroke:var(--edge);stroke-width:1}.tray-lip{fill:var(--floor);stroke:var(--edge);stroke-width:1}.grid-line{stroke:var(--grid);stroke-width:.7;fill:none}.block-top{fill:var(--block-top);stroke:var(--block);stroke-width:.7}.block-front{fill:var(--block);stroke:var(--block-side);stroke-width:.7}.block-side{fill:var(--block-side);stroke:var(--block);stroke-width:.7}
.hole{fill:var(--well);stroke:var(--ink);stroke-width:1.4}.goal-ring{fill:none;stroke:var(--ink);stroke-width:1}.drop-guide{fill:none;stroke:var(--guide);stroke-width:1;stroke-dasharray:2 5;opacity:.7}.landing{fill:none;stroke:var(--guide);stroke-width:1}.active-tray .tray-face{stroke:var(--ink);stroke-width:1.5}.marble{fill:var(--ink);stroke:var(--bg);stroke-width:1.2}.marble-seam{fill:none;stroke:var(--bg);stroke-width:.8;opacity:.3}.shadow{fill:var(--well);opacity:.7}.hint-line{fill:none;stroke:var(--ink);stroke-width:2;stroke-linecap:round;stroke-linejoin:round}.hint-recovery{outline:1px solid var(--ink);outline-offset:-7px}
.sheet{width:min(32rem,calc(100vw - 24px));max-height:calc(100dvh - 24px);border:1px solid var(--ink);padding:0;background:var(--bg);color:var(--text)}.sheet[open]{display:flex;flex-direction:column}.sheet::backdrop{background:var(--scrim)}.sheet-head{display:flex;justify-content:space-between;align-items:center;padding:8px 16px;gap:12px;border-bottom:1px solid var(--line);flex:none}.sheet-head h2{margin:0;font:500 16px/1.3 var(--mono)}.close{font:28px/1 var(--sans)}.sheet-body{padding:20px 24px;overflow:auto}.sheet-body p{margin:0 0 16px}.sheet-body p:last-child{margin-bottom:0}.row{display:flex;align-items:center;justify-content:space-between;gap:12px;min-height:56px;border-bottom:1px solid var(--line)}select{min-height:48px;max-width:65%;background:var(--bg);border:0;padding:8px}.sheet-foot{padding:12px 24px;border-top:1px solid var(--line);color:var(--sub);font-size:14px;flex:none}
@media(max-height:500px) and (orientation:landscape){#board-shell{inset:48px 70px 56px}.readout{top:18px}#completion{height:48px}}
@media(forced-colors:active){:root{--bg:Canvas;--ink:CanvasText;--text:CanvasText;--sub:CanvasText;--floor:Canvas;--grid:GrayText;--edge:CanvasText;--block:GrayText;--block-top:CanvasText;--block-side:GrayText;--well:Canvas;--guide:GrayText}#board{forced-color-adjust:none}}
