/* Cast · 3D. A lit white model in a dark gallery: the room casts shadow, never light. By 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:#161514;--ink:#ecebe8;--text:#e7e5e1;--sub:#aaa7a1;--line:#3b3936;--scrim:rgba(22,21,20,.86);--mark:#141414;--ground-mark:#d8d5cf;--mono:"Plex Mono",monospace;--sans:"Plex Sans",sans-serif}
:root[data-ground=paper]{color-scheme:light;--bg:#e9e7e2;--ink:#111;--text:#161616;--sub:#5f5d59;--line:#cfccc5;--scrim:rgba(233,231,226,.86);--ground-mark:#111}
*{box-sizing:border-box;border-radius:0}html{background:var(--bg)}html,body{touch-action:manipulation}body{margin:0;height:100dvh;overflow:hidden;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:.35;cursor:default}button:focus-visible,select:focus-visible{outline:2px solid var(--ink);outline-offset:2px}.sr-only{position:absolute;width:1px;height:1px;overflow:hidden;clip-path:inset(50%);white-space:nowrap}
.readout{position:fixed;top:max(16px,env(safe-area-inset-top));left:50%;transform:translateX(-50%);font:500 13px/1 var(--mono);letter-spacing:.02em;color:var(--sub);font-variant-numeric:tabular-nums;white-space:nowrap}#restart-btn{position:fixed;top:max(0px,env(safe-area-inset-top));left:8px;z-index:2;color:var(--sub)}
#board-shell{position:absolute;inset:max(52px,env(safe-area-inset-top)) 8px max(60px,env(safe-area-inset-bottom));display:grid;place-items:center;touch-action:none}#stage{width:100%;height:100%;display:flex;flex-direction:column;align-items:stretch}
#board{position:relative;flex:1 1 auto;min-height:0;outline:none;touch-action:none;user-select:none;-webkit-user-select:none;-webkit-touch-callout:none;cursor:crosshair}#board[data-carrying=true]{cursor:grabbing}
#scene,#marks{position:fixed;inset:0;width:100%;height:100%;display:block;pointer-events:none}#scene{z-index:-1;visibility:hidden}#scene.ready{visibility:visible}#marks{overflow:visible}
#completion{height:48px;min-height:48px;display:flex;justify-content:center;align-items:center;width:100%;flex:none}
#fallback{max-width:22rem;margin:0;padding:0 16px;text-align:center;color:var(--sub)}#fallback a{color:var(--ink)}body[data-gl=none] #stage{display:none}
body[data-gl=none][data-control-frame] .control-toolbar,body[data-gl=none] .toolbar,body[data-gl=none] #restart-btn,body[data-gl=none] .readout{display:none!important}
#marks polygon,#marks path,#marks line{vector-effect:non-scaling-stroke;stroke-linejoin:miter;fill:none}.focus-ring,.hint-ring,.hover-ring,.landing-ring{stroke:var(--mark);stroke-width:2}.focus-ring{stroke-width:3}.hint-ring{stroke-dasharray:5 4;stroke-width:2.5}.hover-ring{stroke-opacity:.6}.hint-ghost{stroke:var(--mark);stroke-width:1.5;stroke-dasharray:4 3}.refused-ring{stroke:var(--mark);stroke-width:3;stroke-dasharray:3 3}.tray-slot{stroke:var(--ground-mark);stroke-width:1;stroke-opacity:.6}.tray-line{stroke:transparent;stroke-width:3}.tray.refused .tray-line{stroke:var(--ground-mark)}
.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}.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(--ink)}.ib svg{width:24px;height:24px;stroke:currentColor;fill:none;stroke-width:1.6;stroke-linecap:round;stroke-linejoin:round}.ib:active{transform:scale(.94)}.ib[hidden]{display:none}
.sheet{width:min(32rem,calc(100vw - 16px));max-height:calc(100dvh - 16px);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;flex:none;border-bottom:1px solid var(--line)}h2{font:500 16px/1.3 var(--mono);margin:0}.sheet-head form{margin:0}.sheet-x{width:44px;height:44px;min-width:44px;min-height:44px;padding:10px}.sheet-body{padding:20px 24px;overflow:auto;min-height:0;overscroll-behavior:contain}.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:52px;border-bottom:1px solid var(--line)}.row select{max-width:65%;min-height:44px;background:var(--bg);border:0;padding:4px 8px}.sheet-foot{padding:12px 24px;border-top:1px solid var(--line);flex:none;color:var(--sub);font-size:14px}.sheet-foot a{color:inherit;text-decoration:none}.sheet-foot a:focus-visible{outline:2px solid var(--ink)}
@media(orientation:landscape) and (max-height:500px){#board-shell{inset:38px 72px 6px 56px}.toolbar{left:auto;right:8px;top:8px;bottom:8px;flex-direction:column;width:48px}.toolbar>div{flex-direction:column}.readout{left:calc(50% - 8px)}#completion{height:44px;min-height:44px}}
@media(prefers-reduced-motion:reduce){*,*::before,*::after{animation:none!important;transition:none!important}}:root[data-motion=reduce] *{animation:none!important;transition:none!important}
@media(forced-colors:active){:root{--ink:CanvasText;--text:CanvasText;--sub:CanvasText;--line:GrayText}#marks polygon,#marks path,#marks line{stroke:Highlight}}
/* Settings campaign catalog. */
#catalog-title{font:500 16px/1.3 var(--mono);margin:20px 0 12px}
.campaign-catalog{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px;list-style:none;padding:0;margin:0}
.campaign-catalog button{width:100%;min-height:56px;padding:8px;border:1px solid var(--line);background:var(--bg);text-align:left;color:var(--text)}
.campaign-catalog button span{display:block}.catalog-state{font-size:12px;color:var(--sub)}
.campaign-catalog button[aria-current]{border:2px solid var(--ink);padding:7px}
.campaign-catalog button:disabled{opacity:1;color:var(--sub);border-style:dashed}
