@font-face{font-family:Pixelify Sans;src:url(../fonts/PixelifySans.woff2) format("woff2");font-weight:400 700;font-style:normal;font-display:swap}:root{--ink: #2b2238;--night: #15101f;--cream: #f6edd8;--gold: #d9a441;--purple: #4b2468;--candle: #f2a03d;--ghost-cyan: #6fd6e0;--blood: #c0392b;--violet: #8e5cc4;--leaf: #5fae4e;--font-display: "Pixelify Sans", monospace;--panel-slice: 120;--button-slice: 100;--ribbon-slice: 190;--bubble-slice-top: 60;--bubble-slice-side: 60;--bubble-slice-bottom: 90;--panel-scale: .3;--button-scale: .3;--ribbon-scale: .35;--bubble-scale: .45;--press: 4px}img,canvas{image-rendering:crisp-edges;image-rendering:pixelated}body{margin:0;background:var(--night);color:var(--ink);font-family:var(--font-display)}.panel{box-sizing:border-box;border-style:solid;border-width:calc(var(--panel-slice) * var(--panel-scale) * 1px);border-image-source:url(../ui-panel.webp);border-image-slice:var(--panel-slice) fill;border-image-repeat:stretch;background:none;image-rendering:pixelated;color:var(--ink)}.button{box-sizing:border-box;display:inline-flex;align-items:center;justify-content:center;gap:.4em;min-width:4em;padding:0 .5em;border-style:solid;border-width:calc(var(--button-slice) * var(--button-scale) * 1px);border-image-source:url(../ui-button.webp);border-image-slice:var(--button-slice) fill;border-image-repeat:stretch;background:none;font:700 1.25rem var(--font-display);color:var(--ink);cursor:pointer;-webkit-user-select:none;user-select:none;touch-action:manipulation;filter:drop-shadow(0 var(--press) 0 var(--ink));transform:translateY(0);image-rendering:pixelated}.button:active,.button.is-pressed{transform:translateY(var(--press));filter:none}.button:disabled{opacity:.5;cursor:default}.ribbon{box-sizing:border-box;display:flex;align-items:center;justify-content:center;border-style:solid;border-width:0 calc(var(--ribbon-slice) * var(--ribbon-scale) * 1px);border-image-source:url(../ui-ribbon.webp);border-image-slice:0 var(--ribbon-slice) fill;border-image-repeat:stretch;background:none;font:700 1.75rem var(--font-display);color:var(--cream);text-align:center;image-rendering:pixelated}.bubble{box-sizing:border-box;border-style:solid;border-width:calc(var(--bubble-slice-top) * var(--bubble-scale) * 1px) calc(var(--bubble-slice-side) * var(--bubble-scale) * 1px) calc(var(--bubble-slice-bottom) * var(--bubble-scale) * 1px);border-image-source:url(../ui-bubble.webp);border-image-slice:var(--bubble-slice-top) var(--bubble-slice-side) var(--bubble-slice-bottom) fill;border-image-repeat:stretch;background:none;font:400 1.1rem var(--font-display);color:var(--ink);image-rendering:pixelated}.tool-slot{box-sizing:border-box;display:flex;align-items:center;justify-content:center;width:4.5rem;height:4.5rem;padding:.25rem;background:var(--cream);border:3px solid var(--ink);border-radius:0;box-shadow:0 var(--press) 0 var(--ink);cursor:pointer;touch-action:manipulation}.tool-slot img{width:100%;height:100%;object-fit:contain;pointer-events:none}.tool-slot:active{transform:translateY(var(--press));box-shadow:none}.tool-slot.is-active{background:var(--candle);border-color:var(--gold);box-shadow:0 0 0 3px var(--ink),0 var(--press) 0 3px var(--ink)}.tool-slot.is-active:active{box-shadow:0 0 0 3px var(--ink)}.is-highlighted{outline:4px solid var(--ghost-cyan);outline-offset:4px;animation:highlight-pulse .9s steps(2,jump-none) infinite}@keyframes highlight-pulse{0%{outline-color:var(--ghost-cyan)}to{outline-color:var(--cream)}}.screen{position:fixed;top:0;right:0;bottom:0;left:0;display:flex;align-items:center;justify-content:center;background:var(--night)}.stage{position:relative;width:min(100vw,calc(100vh * 16 / 9));aspect-ratio:16 / 9;overflow:hidden;background-size:100% 100%;background-repeat:no-repeat;image-rendering:pixelated;font-size:min(1.6vw,2.8vh)}.title-ribbon{position:absolute;top:8%;left:50%;transform:translate(-50%);margin:0;width:62%;height:16%;font-size:2.4em;white-space:nowrap}.title-ghost{position:absolute;left:50%;top:28%;height:42%;transform:translate(-50%)}.title-enter{position:absolute;left:50%;bottom:9%;transform:translate(-50%);font-size:2.2em;height:14%;min-width:14em}.title-enter:active{transform:translate(-50%) translateY(var(--press))}.title-wall{position:absolute;right:3%;bottom:3%}.leaderboard-nav{position:absolute;left:3%;bottom:3%}.leaderboard-nav,.map-wall,.title-wall{--button-scale: .1;min-height:40px;font-size:clamp(.8rem,1.4vw,1rem)}.night-node{position:absolute;transform:translate(-50%,-50%);width:11%;padding:0;cursor:pointer;font:700 1em var(--font-display);display:flex;flex-direction:column;align-items:center}.night-node.is-locked{cursor:default}.night-thumb{width:100%;aspect-ratio:4 / 3}.night-label{padding:.1em 0}.night-lock{position:absolute;left:50%;top:40%;width:40%;transform:translate(-50%,-50%);pointer-events:none}.served-counter{position:absolute;left:3%;top:3%;padding:.3em .9em;font-size:1.6em;font-weight:700}.map-player{position:absolute;right:3%;top:3%;height:22%;pointer-events:none}.map-wall{position:absolute;right:3%;bottom:3%}.wall-canvas{position:absolute;top:0;right:0;bottom:0;left:0;width:100%;height:100%}.wall-ribbon{position:absolute;top:3%;left:50%;transform:translate(-50%);margin:0;width:56%;height:11%;font-size:2em}.wall-back{position:absolute;right:3%;bottom:3%;--button-scale: .12;min-height:36px;font-size:clamp(.8rem,1.4vw,1rem)}.wall-status{position:absolute;left:3%;bottom:4%;max-width:64%;margin:0;color:var(--cream);font-size:clamp(.65rem,1.2vw,.95rem)}.wall-ghost-hit{position:absolute;padding:0;border:1px solid transparent;border-radius:12px;background:transparent;color:var(--cream);font:700 clamp(.62rem,1.2vw,1rem) var(--font-display);cursor:pointer;touch-action:manipulation}.wall-ghost-hit:hover,.wall-ghost-hit:focus-visible{z-index:1;outline:2px solid var(--ghost-cyan)}.wall-ghost-hit span{position:absolute;bottom:.2em;left:50%;translate:-50% 0;padding:.15em .4em;border-radius:4px;background:var(--night);overflow-wrap:anywhere;width:max-content;max-width:95%;opacity:0;pointer-events:none}.wall-ghost-hit:hover span,.wall-ghost-hit:focus-visible span,.wall-ghost-self span{opacity:1}.wall-ghost-self span{color:var(--candle)}.draw-ribbon{position:absolute;top:2%;left:50%;transform:translate(-50%);margin:0;width:60%;height:11%;font-size:1.8em;white-space:nowrap}.draw-canvas{position:absolute;left:50%;top:15%;height:80%;transform:translate(-50%);touch-action:none;cursor:crosshair;image-rendering:pixelated}.draw-tools{position:absolute;left:6%;top:22%;display:flex;flex-direction:column;gap:1.2em}.tool-button{width:5em;height:5em;padding:0;display:flex;align-items:center;justify-content:center}.tool-button img{width:70%;height:70%;image-rendering:pixelated}.tool-button.is-selected{outline:4px solid var(--candle)}.draw-swatches{position:absolute;left:4%;bottom:8%;width:18%;display:grid;grid-template-columns:repeat(3,1fr);gap:.8em}.swatch{aspect-ratio:1;border:4px solid var(--ink);padding:0;cursor:pointer}.swatch.is-selected{outline:4px solid var(--candle)}.draw-summon{position:absolute;right:6%;bottom:8%;font-size:2em;min-width:8em}.intro-sheet{position:absolute;top:0;right:0;bottom:0;left:0;width:100%;height:100%}.intro-guide{position:absolute;right:6%;bottom:4%;height:34%}.intro-bubble{position:absolute;right:4%;top:8%;width:36%;padding:.4em .6em;font-size:1em}.intro-fold-name{display:block;font-size:1.4em;margin-bottom:.3em}.intro-note{margin:0;line-height:1.3}.intro-hint{margin:.6em 0 0;display:block;margin-inline-start:auto;padding:.2em .35em;border:1px solid currentColor;border-radius:.25em;background:var(--cream);color:inherit;font:inherit;font-weight:700;cursor:pointer}.intro-hint[hidden]{display:none}.order-grid{position:absolute;top:0;right:0;bottom:0;left:0;display:grid;grid-template-columns:[rail] auto [main] 1fr [candles] 11%;grid-template-rows:[card] 21% [sheet] minmax(0,1fr) [footer] auto;grid-template-areas:"card card candles" "rail sheet candles" "rail footer candles";gap:.6em;padding:.8em;box-sizing:border-box}.order-card{grid-area:card;display:flex;align-items:center;gap:.8em;border-width:.65em;padding:.2em .6em;min-height:0;max-width:100%;justify-self:start}.order-customer{height:100%;width:auto}.order-zoom{position:relative;display:block;height:90%;padding:0;border:0;background:transparent;cursor:zoom-in}.order-thumb{display:block;height:100%;aspect-ratio:4 / 3}.order-zoom img{position:absolute;inset:auto 0 0 auto;width:clamp(12px,3vw,32px);background:var(--cream);border:1px solid var(--ink);border-radius:4px}.order-zoom:focus-visible,.pattern-dialog button:focus-visible{outline:3px solid var(--ghost-cyan);outline-offset:3px}.pattern-dialog{box-sizing:border-box;width:min(38rem,calc(100vw - 2rem));max-height:calc(100dvh - 2rem);padding:clamp(.75rem,4vw,1.5rem);border:2px solid var(--gold);border-radius:8px;background:var(--night);color:var(--cream);font:1.1rem var(--font-display)}.pattern-dialog::backdrop{background:#100b13c9}.pattern-dialog h2{margin:0 0 .6rem}.pattern-dialog canvas{display:block;width:100%;max-height:62dvh;object-fit:contain;background:var(--ink)}.pattern-dialog p{margin:.7rem 0}.pattern-dialog button{padding:.45rem .75rem;border:1px solid var(--gold);border-radius:4px;background:var(--cream);color:var(--ink);font:inherit;cursor:pointer}.order-label{font-weight:700;font-size:1.3em}.order-rail{grid-area:rail;display:flex;flex-direction:column;justify-content:center;gap:1em}.order-sheet{grid-area:sheet;width:100%;height:100%;min-height:0;object-fit:contain;touch-action:none;cursor:crosshair}.order-footer{grid-area:footer;position:relative;display:flex;justify-content:center}.order-pause{position:absolute;align-self:center;right:0;min-height:34px;padding:.3rem .65rem;border:1px solid var(--gold);border-radius:4px;background:var(--night);color:var(--cream);font:700 max(.85rem,1em) var(--font-display);cursor:pointer}.order-pause:focus-visible{outline:3px solid var(--ghost-cyan);outline-offset:3px}.pause-dialog{width:min(29rem,calc(100vw - 2rem))}.pause-actions{display:grid;gap:.55rem}.order-serve{font-size:1.8em;min-width:7em}@media(max-width:600px){.order-footer{display:grid;grid-template-columns:1fr auto minmax(max-content,1fr);justify-content:stretch;align-items:center;column-gap:.4rem}.order-serve{--button-scale: .15;min-height:34px;grid-column:2;font-size:max(.85rem,1.8em)}.order-pause{position:static;grid-column:3;justify-self:end}}.order-serve-icon{height:1.2em;width:auto}.order-candles{grid-area:candles;width:100%;height:100%;object-fit:contain}.request-bubble,.guide-bubble{position:absolute;padding:.4em .6em;max-width:34%;z-index:2}.request-bubble{left:40%;top:4%}.guide-bubble{left:30%;bottom:14%;text-align:left}button.guide-bubble{cursor:pointer}button.guide-bubble:not([hidden]):after{content:" ›";font-weight:700}button.guide-bubble:focus-visible,.intro-hint:focus-visible{outline:3px solid var(--ghost-cyan);outline-offset:3px}.request-bubble[hidden],.guide-bubble[hidden]{display:none}.result-ribbon,.cleared-ribbon,.timeout-ribbon{position:absolute;top:6%;left:50%;transform:translate(-50%);margin:0;width:56%;height:15%;font-size:2.2em;white-space:nowrap}.result-cut{position:absolute;left:8%;top:28%;width:36%;image-rendering:auto}.result-ghost{position:absolute;left:52%;top:28%;height:36%;image-rendering:pixelated}.result-bubble{position:absolute;left:68%;top:28%;width:26%;padding:.4em .6em}.result-score{position:absolute;left:50%;bottom:25%;transform:translate(-50%);padding:.4em 1.4em;font:700 2.4em var(--font-display);color:var(--ink)}.result-button,.cleared-button,.timeout-button{position:absolute;left:50%;bottom:6%;translate:-50% 0;font-size:1.8em}.result-compare{position:absolute;top:24%;right:8%;bottom:27%;left:8%;display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:3%;color:var(--cream)}.result-compare figure{display:grid;grid-template-rows:auto minmax(0,1fr);min-height:0;margin:0;background:#15101fdd;border:1px solid var(--gold);border-radius:5px;text-align:center}.result-compare figcaption{padding-top:.25em;font-size:1.15em}.result-compare canvas{position:static;width:100%;height:100%;min-height:0;object-fit:contain;image-rendering:auto}.result-screen--retry .result-score{inset:8% 5% auto auto;transform:none;border-width:.55em;padding:.25em .5em;font-size:1.7em}.result-screen--retry .result-ghost{left:8%;top:auto;bottom:6%;height:17%}.result-screen--retry .result-bubble{--bubble-scale: .17;left:21%;top:auto;bottom:5%;width:44%;font-size:1.1em}.result-screen--retry .result-button{left:auto;right:8%;translate:none}.result-publish-control{position:absolute;left:8%;bottom:6%}.leaderboard-link{min-height:32px;padding:.4em .65em;background:var(--night);color:var(--cream);border:1px solid var(--gold);border-radius:4px;cursor:pointer;font:700 max(.8rem,1em) var(--font-display)}.publish-form{display:flex;flex-wrap:wrap;gap:.6rem}.publish-form label,.publish-form [role=status]{width:100%}.publish-form input{display:block;box-sizing:border-box;width:100%;margin-top:.25rem;padding:.45rem;font:inherit}.publish-form [role=status]:empty{display:none}.leaderboard-screen .stage{width:100%;height:100%;aspect-ratio:auto;overflow:auto;background-size:cover;background-position:center;font:1.05rem var(--font-display)}.leaderboard-panel{box-sizing:border-box;width:min(46rem,calc(100% - 1.5rem));margin:clamp(.75rem,5vh,3rem) auto;padding:clamp(.8rem,4vw,1.75rem);background:#15101ff2;border:2px solid var(--gold);border-radius:8px;color:var(--cream)}.leaderboard-panel header,.ghost-profile header{display:flex;justify-content:space-between;align-items:flex-start;gap:.65rem}.leaderboard-panel h1{margin:0 0 .8rem;font-size:clamp(1.6rem,6vw,2.4rem)}.leaderboard-panel button,.leaderboard-panel select{max-width:100%;padding:.45rem .6rem;background:var(--cream);color:var(--ink);border:1px solid var(--gold);border-radius:4px;font:inherit}.leaderboard-panel button:not(:disabled){cursor:pointer}.leaderboard-panel button:focus-visible,.leaderboard-panel select:focus-visible,.artwork-viewport:focus-visible{outline:3px solid var(--ghost-cyan);outline-offset:2px}.leaderboard-list{margin:0;padding:0;list-style:none}.leaderboard-list li{display:grid;grid-template-columns:minmax(0,1fr) auto auto;gap:clamp(.35rem,2vw,1rem);align-items:center;padding:.5rem 0;border-top:1px solid #664c70}.leaderboard-list li span,.artwork-dialog h2{overflow-wrap:anywhere}.leaderboard-list strong{color:var(--gold)}.artwork-dialog{width:min(54rem,calc(100vw - 1rem))}.artwork-controls{display:flex;flex-wrap:wrap;gap:.4rem;align-items:center;margin-bottom:.75rem}.artwork-controls output{min-width:3.5em;text-align:center}.artwork-viewport{max-height:60dvh;overflow:auto;overscroll-behavior:contain;background:var(--ink)}.artwork-dialog canvas{max-height:none;height:auto;image-rendering:auto}.artwork-controls[hidden]{display:none}.ghost-profile-summary{display:flex;align-items:center;gap:1rem}.ghost-profile-summary .ghost-profile-avatar{width:clamp(52px,16vw,96px);flex:none;background:none;image-rendering:pixelated}.ghost-profile-share[hidden]{display:none}.ghost-profile [role=status]:empty,.artwork-dialog [role=status]:empty{display:none}.timeout-stage{background:#000}.timeout-ribbon{top:35%}.timeout-button{bottom:30%}.cleared-canvas{position:absolute;top:0;right:0;bottom:0;left:0;width:100%;height:100%;pointer-events:none;image-rendering:pixelated}
