@font-face{font-family:Proza;src:url(/proza-regular.woff2) format("woff2");font-weight:400;font-style:normal;font-display:swap}@font-face{font-family:Proza;src:url(/proza-bold.woff2) format("woff2");font-weight:700;font-style:normal;font-display:swap}:root{--font-ui:Proza,"PingFang SC","Microsoft YaHei",sans-serif;font-family:var(--font-ui);color:#e9e2cf;background:#2d2d24;font-synthesis:none;--muted:#b1a993;--line:#847963;--accent:#d2bd87;color-scheme:dark}*{box-sizing:border-box}body{margin:0;min-width:320px;min-height:100dvh;background:radial-gradient(ellipse at 50% 30%,#6d62424d,transparent 68%),linear-gradient(180deg,#353328,#292a23);font-size:16px}button,input{font:inherit}button{cursor:pointer}button:disabled{cursor:default}button:focus-visible,input:focus-visible,[tabindex]:focus-visible{outline:2px solid #f1dfac;outline-offset:4px}button{-webkit-tap-highlight-color:transparent}button,input{border-radius:5px}button{color:inherit}.app{max-width:860px;margin:auto;padding:24px 20px 18px}.topbar{text-align:center;margin:0 auto 5px;width:300px;max-width:100%}h1{margin:0;line-height:.95;font-family:var(--font-ui);font-weight:500;text-shadow:none}main{max-width:800px;margin:auto}.controls{width:min(440px,100%);margin:10px auto 0}.primary{width:100%;min-height:46px;border:1px solid #d2b77e;background:linear-gradient(#c4ad7b,#bba16b);color:#342e23;box-shadow:inset 0 0 0 1px #e5d2a426;font-weight:600;letter-spacing:.035em}.primary:hover{filter:brightness(1.08)}.status{text-align:center;color:#ead3a3;font-size:13px;line-height:18px;height:36px;margin:8px 0;display:flex;align-items:center;justify-content:center;overflow:auto}.lower-controls{display:flex;gap:13px;margin-top:8px}.secondary{min-height:40px;border:1px solid #8d806455;background:#514b3b55;padding:7px 18px;white-space:nowrap;font-size:14px}.secondary:hover{background:#75664e55;border-color:#aa976a}#code-form{display:flex;gap:6px;flex:1;min-width:0}#code-input{width:100%;min-width:0;background:#26251f55;color:#ddd1b5;border:1px solid #8d806455;padding:6px 12px;text-transform:uppercase;letter-spacing:.07em;font-size:14px}.current-strip{display:flex;justify-content:center;align-items:center;gap:10px;min-height:34px;padding:6px 12px;width:min(440px,100%);margin:0 auto;background:linear-gradient(90deg,transparent,#b7a47a20,transparent);font-size:14px;color:#e6d9b8}.result-arrow{color:#b4a584;padding:0 5px}.result-swatch{height:13px;width:13px;border-radius:3px;background:var(--ray);border:1px solid #e9dfc775;box-shadow:0 0 8px color-mix(in srgb,var(--ray) 30%,transparent)}footer{width:min(440px,100%);text-align:right;color:#958b75;font-size:11px;margin:10px auto 0}.sr-only{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap}dialog{border:1px solid #ad996e;padding:8px;background:#443e31;color:#ede3ce;width:min(400px,calc(100vw - 32px));box-shadow:0 24px 80px #0008;border-radius:9px}dialog::backdrop{background:#171611bb;-webkit-backdrop-filter:blur(3px);backdrop-filter:blur(3px)}.dialog-panel{border:1px solid #847453;padding:30px 24px;text-align:center}.dialog-symbol{color:#d4bd87;font-size:42px}dialog h2{font-family:var(--font-ui);font-size:27px;font-weight:500;letter-spacing:.18em;margin:10px 0 14px}dialog p{font-size:16px;line-height:1.9;color:#d7ccb5;margin:0 0 25px}dialog .primary{max-width:200px}.boot{padding:40px;text-align:center}@media(max-width:600px){footer{padding:0 14px}.app{padding:20px 9px 16px}.topbar{width:260px}.controls{padding:0 14px;margin-top:9px}.lower-controls{gap:8px}.secondary{padding:7px 13px}.current-strip{font-size:13px}.status{font-size:12px;height:54px}}@media(prefers-reduced-motion:reduce){*{transition:none!important;animation:none!important}}.current-strip{flex-wrap:wrap;gap:7px}.current-result,.mix-components{display:inline-flex;align-items:center;gap:6px;white-space:nowrap}.result-swatch{display:inline-block;flex:0 0 13px}.mix-components{gap:4px}.mix-equals,.mix-plus{color:var(--muted);line-height:1}.mix-plus{font-size:12px}:root{background:#2c2119;color:#f2e9d9;--muted:#c5b49b;--accent:#d3b781}body{background-image:url(/paper-grain.svg),radial-gradient(ellipse at 50% 32%,#3f2e20,#291d15 62%,#18110c);background-size:256px 256px,100% 100%;background-attachment:fixed}.app{position:relative;padding-top:20px}body{overflow-x:clip}main{max-width:720px}.topbar{width:340px;margin-bottom:16px}.archive-label{font-size:9px;letter-spacing:.22em;color:#9b927e;text-align:center}.current-strip{position:relative;isolation:isolate;margin-top:7px;color:#f0dfb8;font-size:14px;min-height:32px;background:none}.current-strip:before{content:"";position:absolute;inset:0;z-index:-1;pointer-events:none;background:linear-gradient(180deg,#b4945230,#38281755);box-shadow:inset 0 1px #ddbd791a,inset 0 -1px #ddbd7926,0 5px 12px #160e0826;-webkit-mask-image:linear-gradient(90deg,transparent,#000 20%,#000 80%,transparent);mask-image:linear-gradient(90deg,transparent,#000 20%,#000 80%,transparent)}.controls{margin-top:10px;width:min(400px,100%)}.primary{min-height:44px;color:#f5e6c7;background:linear-gradient(#826b48,#655035);border:1px solid #b89b62;box-shadow:inset 0 1px #dfc89526;font-size:15px;font-weight:400;letter-spacing:.07em;border-radius:3px;transition:background .18s,border-color .18s}.primary:hover{filter:none;background:#8b714e;border-color:#e1c58f}.controls button,.controls input{height:32px;min-height:32px;padding-block:0;line-height:1.2}#status{position:relative;isolation:isolate;height:30px;min-height:30px;margin:3px 0 6px;padding:0 10px;color:#efa77f;font-size:13px;line-height:15px;overflow:auto}.status:not(:empty):before{content:"";position:absolute;inset:0;z-index:-1;pointer-events:none;background:linear-gradient(180deg,#5c382a45,#301e196b);box-shadow:inset 0 -1px #ca8d5745;-webkit-mask-image:linear-gradient(90deg,transparent,#000 15%,#000 85%,transparent);mask-image:linear-gradient(90deg,transparent,#000 15%,#000 85%,transparent)}.archive-label{text-align:left;font-size:11px;color:#deceb4;margin-top:18px;letter-spacing:.16em}.lower-controls{gap:10px;margin-top:6px}.secondary{border-color:#ae9673;background:#574633;font-size:14px;min-height:36px;padding:6px 14px;border-radius:3px;color:#eee2c9}#code-input{font-family:var(--font-ui);font-size:14px;letter-spacing:.1em;border-color:#ae9673;background:#423528;border-radius:3px;color:#f2e5c9}#code-input:focus{outline:none;border-color:#f1dfac}footer{width:min(400px,100%);display:flex;justify-content:flex-end;font-size:12px;letter-spacing:.06em;color:#ccbaa0;margin-top:15px}dialog{background:linear-gradient(135deg,#746045,#48392c);border-radius:4px}.dialog-panel{border-color:#b79c6355}@media(max-width:600px){.app{padding-top:20px}.topbar{margin-bottom:20px}.current-strip{font-size:13px}.controls{padding:0 14px}.status{height:auto;min-height:18px}.secondary{padding:6px 11px}footer{padding:0 14px}}@media(min-width:601px)and (max-height:900px){main{max-width:660px}.topbar{margin-bottom:12px}}.topbar{width:100%;margin-bottom:18px}.brand-title{display:flex;align-items:baseline;justify-content:center;gap:12px;white-space:nowrap;line-height:1.1}.brand-name{font-size:clamp(20px,5vw,31px);letter-spacing:-.03em;font-weight:400}.brand-name{color:#f0e9d8}@media(max-width:600px){.app{padding-inline:4px;padding-bottom:8px}.brand-title{gap:9px}.topbar{margin-bottom:12px}}.app{--panel-width:min(360px,max(280px,70%))}.current-strip,.controls,footer{width:var(--panel-width);max-width:100%;padding-inline:0}.current-strip{min-height:28px;padding:0 8px}.controls,.archive-label{margin-top:8px}footer{margin-top:8px}.brand-name,.current-strip,.controls button,#code-input,.archive-label,footer{font-family:var(--font-ui)}.brand-name{font-size:clamp(25px,6vw,36px);letter-spacing:-.035em;text-shadow:0 1px 1px #fff0c526,0 2px 4px #160e0880}.current-strip{border:0;border-radius:0;color:#f1e4c5;text-shadow:0 2px 2px #100b08;font-size:14px;background:none}.current-strip:before{display:block;background:linear-gradient(180deg,#80602d30,#301e196b);box-shadow:inset 0 -1px #caab6745;-webkit-mask-image:linear-gradient(90deg,transparent,#000 15%,#000 85%,transparent);mask-image:linear-gradient(90deg,transparent,#000 15%,#000 85%,transparent)}.controls button{position:relative;isolation:isolate;border-radius:5px;display:inline-flex;align-items:center;justify-content:center;font-weight:400;transition:filter .15s,transform .1s,box-shadow .15s}.controls .primary{height:36px;min-height:36px;padding:0 18px;border:1px solid #d5b577;color:#291b0e;font-size:16px;letter-spacing:.015em;font-weight:400;text-shadow:0 1px #ffe8ac9c;background:linear-gradient(180deg,#ffebba70,transparent 22%,#55300e18 76%,#55300e42),radial-gradient(ellipse at 46% 0%,#f2d398,#d2a65f 58%,#a77b3c);box-shadow:inset 0 1px #fff3cd80,0 3px 7px #110b0866}.controls .secondary{height:34px;min-height:34px;padding:0 12px;border:1px solid #b99150;font-size:14px;letter-spacing:0;color:#f3e6c9;text-shadow:0 2px 2px #100b08;background:linear-gradient(180deg,#94703a40,transparent 42%,#100b0852),linear-gradient(90deg,#3c2d1d,#493723 50%,#302218);box-shadow:inset 0 1px #f0d39a40,0 2px 5px #100b0859}#code-input{height:34px;min-height:34px;padding:0 10px;border:1px solid #a27c40;border-radius:5px;font-size:16px;letter-spacing:.035em;color:#f4e9cf;background:linear-gradient(180deg,#100d09,#21190f 70%,#2b2014);box-shadow:inset 0 2px 5px #0009,inset 0 0 0 1px #e3bd6c1f,0 1px #edcc8830;text-shadow:0 1px 2px #0008}#code-input:focus{border-color:#e2bd75;box-shadow:inset 0 2px 5px #0008,0 0 0 2px #dbb56e33;outline:none}.archive-label{color:#e9d9b6;font-family:var(--font-ui);font-size:14px;font-weight:400;letter-spacing:normal}.lower-controls{gap:9px}#code-form{gap:8px}footer{font-size:12px;color:#d5c19a}@media(hover:hover){.controls button:hover{filter:brightness(1.1)}}.controls button:active{transform:translateY(1px);filter:brightness(.94)}.controls button:focus-visible{outline:2px solid #f6dfac;outline-offset:4px}@media(max-width:600px){.controls .secondary{padding-inline:10px}.current-strip{font-size:13px}}@media(prefers-reduced-motion:reduce){.controls button{transition:none}}body,#solution-dialog,#solution-dialog *{-webkit-touch-callout:none;-webkit-user-select:none;user-select:none}#code-input{-webkit-touch-callout:default;-webkit-user-select:text;user-select:text}.board-wrap{position:relative;width:100%;margin:0 auto;touch-action:none;user-select:none;-webkit-user-select:none;-webkit-touch-callout:none}#board{width:100%;display:block;overflow:visible}.board-outline{fill:url(#board-fill);stroke:#b6a778;stroke-opacity:.48;stroke-width:.019}.grid{fill:none;stroke:#c8bda0;stroke-opacity:.35;stroke-width:.015;pointer-events:none}.port{cursor:pointer;outline:none}.port circle{fill:transparent;stroke:transparent;stroke-width:.02}.port text{font-family:var(--font-ui);font-size:.24px;fill:#e6d9b9;text-anchor:middle;dominant-baseline:central;pointer-events:none}.port:hover circle,.port:focus-visible circle,.port.active circle{fill:#cdbb8340;stroke:#d2bd87}.port.active text{fill:#fff4d8}.piece{cursor:grab;touch-action:none;outline:none}.piece-art,.piece-facets{pointer-events:none}.piece-hit{fill:transparent;stroke:none}.baffle-hit{stroke:transparent;stroke-width:.28;fill:none}.piece:focus-visible .piece-outline{stroke:#f3e4bc;stroke-width:.035}.piece.ghost{pointer-events:none;opacity:.75}.piece-warning{fill:none;stroke:#ecd49c;stroke-width:.045;stroke-linejoin:round;stroke-linecap:round;pointer-events:none}.drag-source{opacity:.2}#ghost-layer{pointer-events:none}.returning .board-outline{stroke:#e6d6b5;stroke-dasharray:.12 .08}.piece-tray{--tray-unit:clamp(10px,2.5vw,18px);display:flex;gap:4px;align-items:center;justify-content:center;margin:-4px auto 0;min-height:60px;width:fit-content;max-width:100%;padding:0 8px;border-bottom:0}.tray-piece{display:flex;align-items:center;justify-content:center;flex:0 0 auto;border:0;background:none;padding:2px;min-width:28px;height:calc(var(--tray-unit) * 3.9);min-height:44px;touch-action:none;-webkit-user-select:none;user-select:none;-webkit-touch-callout:none;border-radius:0}.tray-piece svg{display:block;overflow:visible}.tray-piece .ghost{opacity:1}.tray-piece:hover:not(:disabled) svg{filter:brightness(1.08)}.tray-piece:focus-visible{outline:none}.tray-piece:focus-visible svg{filter:brightness(1.18)}.tray-piece.placed{opacity:.27}.tray-piece svg g{pointer-events:none}.ray-marker{cursor:pointer;outline:none}.marker-target{fill:transparent}.marker-color{fill:var(--ray);stroke:#ddd1b055;stroke-width:.025}.ray-marker.paired .marker-color{stroke:#fff3cb;stroke-width:.045;filter:drop-shadow(0 0 .09px var(--ray))}.ray-marker:focus-visible .marker-color,.ray-marker:hover .marker-color{stroke:#fff;stroke-width:.05}@media(max-width:600px){.piece-tray{gap:2px;padding:0 2px;margin-top:3px;min-height:56px}.port text{font-size:.29px}.port circle{r:.29px}.grid{stroke-width:.019}.board-outline{stroke-width:.021}}.board-wrap,.piece-tray-scroll{-webkit-tap-highlight-color:transparent}#board:focus,#board:focus-visible{outline:none}.board-wrap:before{content:"";position:absolute;inset:-38% 0;background:radial-gradient(ellipse closest-side at 47% 43%,#d8ad703d,#bd8d4929 32%,#996a3214 58%,#996a3207,#ac7f4200 98%) center / 136% 100% no-repeat;-webkit-mask-image:linear-gradient(90deg,transparent,#000 18%,#000 82%,transparent);mask-image:linear-gradient(90deg,transparent,#000 18%,#000 82%,transparent);pointer-events:none}#board{position:relative}.port-label{font-family:var(--font-ui);font-size:.24px;fill:#e6d9b9;text-anchor:middle;dominant-baseline:central;pointer-events:none}.port-label.active{fill:#fff2cc;font-weight:600}.direction-strip{cursor:pointer;outline:none}.strip-hit{fill:none;stroke:transparent;stroke-width:.23;stroke-linecap:round}.strip-color{fill:none;stroke:var(--ray);stroke-width:.035;stroke-linecap:round;opacity:.32;pointer-events:stroke}.direction-strip.known .strip-color{opacity:.95;stroke-width:.045}.trace-line{fill:none;stroke:var(--ray);stroke-width:.035;stroke-linecap:round;stroke-linejoin:round;filter:none}.trace-dashed{stroke-dasharray:.17 .13}.trace-solid{stroke-dasharray:none}#trace-layer{pointer-events:none}.direction-strip.paired .strip-color{opacity:1;stroke-width:.075}.direction-strip:focus-visible .strip-color{opacity:1;stroke-width:.065}.direction-strip.paired:focus-visible .strip-color{stroke-width:.08}@media(max-width:600px){.port-label{font-size:.29px}.strip-color{stroke-width:.04}}.board-wrap:before{display:block}.board-outline{stroke:#e1d4bc;stroke-opacity:.85;stroke-width:.025}.grid{stroke:#eee4d2;stroke-opacity:.46;stroke-width:.02}.port-label{fill:#f7eedc;font-size:.34px}.strip-color{opacity:.25;stroke-width:.045}.direction-strip.known .strip-color{opacity:1;stroke-width:.052}.direction-strip:focus-visible .strip-color{stroke:#f0dcb1}.piece-tray{padding:4px 17px;margin:10px auto 0;min-height:60px;background:none;border:0;box-shadow:none}.tray-piece:focus-visible{outline:1px solid #d4b67b;outline-offset:2px}@media(max-width:600px){.piece-tray{--tray-unit:clamp(14px, calc(5vw - 2px) ,18px);padding:2px 8px;min-height:74px;margin-top:8px}.grid{stroke-opacity:.52}.port-label{font-size:.44px}}.piece-outline{stroke:#b59b66;stroke-opacity:.62;stroke-width:.014;stroke-linejoin:round}.piece:focus-visible .piece-outline{stroke:#fff1cc;stroke-opacity:1;stroke-width:.05}.piece-depth{filter:none}.piece-bevel{fill:none;stroke-linejoin:round;stroke-linecap:round;pointer-events:none}.piece-tray-scroll{width:100%;overflow-x:auto;scrollbar-width:thin;margin-top:8px}.piece-tray{--tray-unit:18px;width:393px;max-width:none;height:74px;min-height:74px;gap:2px;padding:2px 8px;margin:0 auto}.tray-piece{flex:var(--tray-span) 1 0;min-width:0;padding:0}.tray-piece svg{width:100%;height:auto;aspect-ratio:1}.direction-strip.satisfied:not(.paired) .strip-color{opacity:1}.direction-strip.satisfied:focus-visible .strip-color{opacity:1}.channel-flow{pointer-events:none;fill:none;stroke:var(--flow);stroke-linecap:round;stroke-linejoin:round}.flow-line{stroke-width:.05}.flow-head{stroke-width:.055}.port-label{font-family:var(--font-ui)}.restricted-area{fill:none;stroke:url(#opening-edge);stroke-width:.025;stroke-linejoin:round;pointer-events:none}.piece-warning-label{pointer-events:none}.warning-label-shadow{fill:#211a10;opacity:.35}.warning-label-depth{fill:#38251e}.warning-label-face{stroke:#c5ac87;stroke-width:.012}.warning-label-mark{fill:none;stroke:#f2e4c8;stroke-width:.035;stroke-linecap:round}.warning-label-dot{fill:#f2e4c8}:root{color:#e3dacc;background:#241f19;--muted: #aea191;--line: #c0ae9132;--accent: #c0ae91}body{background-image:url(/paper-grain.svg),radial-gradient(ellipse at 28% 12%,#9e845514,transparent 38%),radial-gradient(ellipse at 45% 32%,#393126,#2b251e 45%,#201b16 75%,#17130f);background-size:256px 256px,100% 100%,100% 100%;background-attachment:fixed}.brand-name{color:#e8dfcf;text-shadow:0 2px 10px #0008}.brand-logo{display:block;width:clamp(168px,36vw,208px);max-width:100%;height:auto;filter:drop-shadow(0 1px 0 #110c08b3) drop-shadow(0 3px 3px #0003)}.app{padding-top:28px}.topbar{margin-bottom:14px}@media(max-width:600px){.app{padding-top:20px}.topbar{margin-bottom:12px}}.board-wrap:before{background:radial-gradient(ellipse closest-side at 42% 40%,#c9ac6b10,transparent 85%)}.board-outline{stroke:url(#board-edge);stroke-opacity:1;stroke-width:.025}.grid{stroke:#f0e1c4;stroke-opacity:.22;stroke-width:.016}@media(max-width:600px){.grid{stroke-opacity:.25;stroke-width:.018}}.board-grain{opacity:.28}.restricted-area{stroke-width:.016}.port text,.port-label{fill:#cfc1aa}.port.active text,.port-label.active{fill:#f8f0dd;filter:drop-shadow(0 0 .045px #f8f0dd88)}.port:hover circle,.port:focus-visible circle,.port.active circle{fill:#cbbb9f14;stroke:#c0ae91}.direction-strip:focus-visible .strip-color{stroke:#e8ddc7}.direction-strip.known:focus-visible .strip-color{stroke:var(--ray)}.returning .board-outline{stroke:#e3dacc}.piece-outline{stroke:var(--piece-metal);stroke-opacity:1;stroke-width:.035;stroke-linejoin:round}.piece-bevel{opacity:.65}.piece-depth{fill:color-mix(in srgb,var(--piece-color) 60%,#252423)}.piece-shadow{fill:#18130d;opacity:.3}.piece.selected .piece-outline,.piece:focus-visible .piece-outline{stroke:var(--piece-metal);stroke-opacity:1;stroke-width:.035}#ghost-layer .piece.ghost{opacity:.96}#ghost-layer .piece-shadow{opacity:.45;transform:translate(.04px,.07px)}.tray-piece:focus-visible{outline-color:#cbbb9f}.result-arrow{color:#c0ae91}.current-strip{color:#c8b9a1;text-shadow:none}.current-strip:before{background:linear-gradient(90deg,transparent,#b19a760a,transparent);box-shadow:none}.controls .primary,dialog .primary{color:#e8ddc7;border-color:#a08762;background:linear-gradient(180deg,#756857,#534a3f);text-shadow:none;box-shadow:inset 0 1px #c6b29126,0 2px 4px #0002}.controls button{font-weight:700;text-transform:uppercase;letter-spacing:.075em;border-radius:2px}.controls .secondary{height:34px;min-height:34px;padding:0 12px;color:#cbbda5;border:1px solid #aa997b40;background:linear-gradient(180deg,#66543a30,#231d1670);border-radius:2px;font-size:11px;text-shadow:0 1px #140f0a66;box-shadow:inset 0 1px #d9c6a015,0 2px 4px #100c0826}.controls .primary,#solution-dialog .primary{position:relative;isolation:isolate;display:flex;align-items:center;justify-content:center;width:100%;margin-inline:auto;height:36px;min-height:36px;border:1px solid #c3b08b;border-radius:2px;color:#352f25;background-image:url(/paper-grain.svg),linear-gradient(180deg,#dfcba5,#c9b38a 18%,#bba278 70%,#a58b61);background-size:180px 180px,100% 100%;box-shadow:inset 0 1px #fff0c880,inset 0 -1px #69513055,0 3px 7px #100c0859;font-size:12px;font-weight:700;letter-spacing:.1em;text-shadow:0 1px #e9dfca40}.controls .primary:before,#solution-dialog .primary:before{content:"";position:absolute;inset:5px;border:0;border-radius:0;pointer-events:none;background:linear-gradient(#68533366,#68533366) left top/12px 1px no-repeat,linear-gradient(#68533366,#68533366) left top/1px 6px no-repeat,linear-gradient(#68533366,#68533366) right top/12px 1px no-repeat,linear-gradient(#68533366,#68533366) right top/1px 6px no-repeat,linear-gradient(#68533366,#68533366) left bottom/12px 1px no-repeat,linear-gradient(#68533366,#68533366) left bottom/1px 6px no-repeat,linear-gradient(#68533366,#68533366) right bottom/12px 1px no-repeat,linear-gradient(#68533366,#68533366) right bottom/1px 6px no-repeat}.controls .primary,#solution-dialog .primary{gap:12px}.button-ornament{position:relative;display:block;flex:0 0 22px;height:8px;pointer-events:none;color:#685333}.button-ornament:before{content:"";position:absolute;left:0;top:3px;width:14px;height:1px;background:linear-gradient(90deg,transparent,currentColor);opacity:.65}.button-ornament:after{content:"";position:absolute;right:0;top:1px;width:5px;height:5px;border:1px solid currentColor;transform:rotate(45deg);opacity:.8}.button-ornament.ornament-right{transform:rotate(180deg)}.controls .secondary:before,.controls .secondary:after{content:"";position:absolute;width:4px;height:4px;border-color:#cbb78e55;border-style:solid;pointer-events:none}.controls .secondary:before{top:3px;left:3px;border-width:1px 0 0 1px}.controls .secondary:after{bottom:3px;right:3px;border-width:0 1px 1px 0}.controls{width:min(280px,100%);margin-top:8px}.lower-controls{gap:8px;margin-top:9px;align-items:center}#code-form{gap:0;border:1px solid #aa997b40;border-radius:2px;background:linear-gradient(#211b15aa,#30271d70);box-shadow:inset 0 2px 4px #100c0855,0 1px #c8baa310;align-items:center}#code-input{height:32px;min-height:32px;padding:0 10px;color:#d6c9b4;border:0;border-radius:1px 0 0 1px;background:transparent;box-shadow:none;font-size:14px;letter-spacing:.07em;text-shadow:none}#code-form .secondary{height:32px;min-height:32px;border:0;border-left:1px solid #aa997b30;border-radius:0 1px 1px 0;background:linear-gradient(#66543a20,#231d1650);padding-inline:10px}#code-input:focus{border:0;outline:none;box-shadow:none}#code-form:focus-within{border-color:#b8a58788;box-shadow:0 0 0 2px #cbbb9f12}input:focus-visible,[tabindex]:focus-visible{outline-color:#e8ddc7}button:focus,button:focus-visible,.controls button:focus,.controls button:focus-visible,.tray-piece:focus-visible{outline:none}.archive-label{display:flex;align-items:center;gap:12px;margin-top:16px;color:#a99c88;font-size:10px;line-height:16px;letter-spacing:.13em;text-transform:uppercase}.archive-label:after{content:"";height:1px;flex:1;background:#c8baa31c}footer{width:min(280px,100%);margin-top:10px;color:#8f8372;font-size:10px;letter-spacing:.05em}#status{height:auto;min-height:22px;margin:9px 0 0;padding:0 4px;color:#d5a48b;font-size:12px;line-height:18px;overflow:visible}#status:empty{display:none}.status:not(:empty):before{display:none}@media(hover:hover){.controls button:hover{filter:none}.controls .primary:hover{background-color:#bdad8d;border-color:#d3c19e;filter:brightness(1.035)}.controls .secondary:hover{background:#c8baa312;border-color:#b6a48799;color:#e2d6c1}#code-form .secondary:hover{border-color:#aa997b50}}.controls button:active{filter:none;transform:translateY(1px)}.controls button:focus-visible{outline:1px solid #cbbb9f;outline-offset:3px}#solution-dialog{width:min(380px,calc(100vw - 32px));max-height:calc(100dvh - 32px);padding:0;color:#e8e3cf;background-image:url(/paper-grain.svg),radial-gradient(ellipse at 18% 0%,#6b593e,#4a3d2c 55%,#30271d);background-size:220px 220px,100% 100%;border:1px solid #b39a6e99;border-radius:3px;box-shadow:inset 0 1px #e5cca35c,inset 0 -1px #1b140b80,0 12px 30px #0c08085c,0 32px 90px #08060480;font-family:var(--font-ui)}#solution-dialog::backdrop{background:#100d09b8;-webkit-backdrop-filter:blur(5px);backdrop-filter:blur(5px)}#solution-dialog[open]{animation:case-dialog-enter .32s cubic-bezier(.22,1,.36,1) both}#solution-dialog[open]::backdrop{animation:case-backdrop-enter .24s ease-out both}@keyframes case-dialog-enter{0%{opacity:0;transform:translateY(14px) scale(.94)}to{opacity:1;transform:translateY(0) scale(1)}}@keyframes case-backdrop-enter{0%{opacity:0}to{opacity:1}}#solution-dialog .dialog-panel{position:relative;border:0;padding:24px 28px 28px}.dialog-panel:before,.dialog-panel:after{content:"";position:absolute;width:14px;height:14px;border-color:#d2b78588;border-style:solid;pointer-events:none}.dialog-panel:before{top:10px;left:10px;border-width:1px 0 0 1px}.dialog-panel:after{bottom:10px;right:10px;border-width:0 1px 1px 0}#solution-dialog .dialog-symbol{display:flex;align-items:center;justify-content:center;gap:10px;color:#d4bd93;font-size:16px;line-height:1}.dialog-symbol:before,.dialog-symbol:after{content:"";width:32px;height:1px;background:linear-gradient(90deg,transparent,#b0997666)}.dialog-symbol:after{transform:rotate(180deg)}#solution-dialog h2{margin:16px 0 12px;font-family:inherit;font-size:21px;font-weight:700;line-height:1.25;letter-spacing:.045em;text-transform:uppercase;color:#eee2c8;text-shadow:0 2px 3px #1b140c66}#solution-dialog p{max-width:290px;margin:0 auto 24px;color:#d0bfa3;font-size:14px;line-height:1.7}#solution-dialog .primary{width:min(260px,100%);max-width:100%;margin:0 auto;height:38px;min-height:38px;padding:0 12px;font-family:var(--font-ui);text-transform:uppercase;white-space:nowrap}#solution-dialog .primary .button-ornament{flex-basis:16px}#solution-dialog .primary .button-ornament:before{width:8px}#solution-dialog .primary:focus-visible{outline:none}@media(hover:hover){#solution-dialog .primary:hover{filter:brightness(1.05)}}#solution-dialog .primary:active{transform:translateY(1px)}#solution-dialog:not(.success) .case-letterhead{display:flex;justify-content:space-between;gap:12px;margin-bottom:20px;padding-bottom:10px;border-bottom:1px solid #c4a77733;color:#baa27e;font-size:9px;letter-spacing:.13em;text-transform:uppercase}@media(max-width:480px){#solution-dialog .dialog-panel{padding:22px 22px 24px}#solution-dialog h2{font-size:19px}#solution-dialog .primary{font-size:11px;letter-spacing:.07em;gap:9px}}.case-letterhead,.case-resolution{display:none}#solution-dialog.success{width:min(360px,calc(100vw - 32px));color:#352b20;border-color:#ab9a7b;border-radius:4px;background-image:url(/paper-grain.svg),linear-gradient(120deg,#f0e6cc,#dccaa6);background-size:220px 220px,100% 100%;box-shadow:inset 0 0 0 6px #faf4d822,0 20px 65px #0006}#solution-dialog.success .dialog-panel{padding:20px 22px;text-align:left;overflow:hidden}#solution-dialog.success .dialog-panel:before{inset:7px;width:auto;height:auto;border:1px solid #9b846033}#solution-dialog.success .dialog-panel:after,#solution-dialog.success .dialog-symbol{display:none}.success .case-letterhead{display:flex;justify-content:space-between;gap:12px;padding-bottom:10px;border-bottom:1px solid #9b846055;color:#7c694e;font-size:9px;letter-spacing:.16em;text-transform:uppercase}#solution-dialog.success h2{margin:15px 0 11px;font-size:23px;color:#443524;text-shadow:0 1px #fff4d766}#solution-dialog.success p{white-space:pre-line;color:#665642;margin-bottom:16px}.success .case-resolution{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-bottom:16px;min-height:70px}.case-signoff{color:#7a674d}.case-signoff em{display:block;font-size:15px}.case-signoff>span{display:block;margin-top:9px;padding-top:9px;border-top:1px solid #9b846055;font-size:8px;letter-spacing:.15em;text-transform:uppercase}.case-stamp{flex:0 0 68px;width:68px;height:68px;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:3px;border:2px solid #985e4e;outline:1px solid #985e4e;outline-offset:-6px;border-radius:50%;color:#985e4e;opacity:.85;transform:rotate(-14deg);text-transform:uppercase;letter-spacing:.13em;font-size:9px}.case-stamp:before,.case-stamp:after{content:"";width:26px;height:1px;background:#985e4e88}.case-stamp strong{font-size:11px}#solution-dialog.success[open] .case-stamp{animation:seal-case .65s .38s both}#solution-dialog.success .primary{display:flex;margin:0 auto}@keyframes seal-case{0%{opacity:0;transform:translate(8px,-20px) rotate(-24deg) scale(1.8);filter:blur(3px)}55%{opacity:.95;transform:translateY(2px) rotate(-14deg) scale(.94);filter:blur(0)}75%{opacity:.85;transform:translateY(-1px) rotate(-14deg) scale(1.03)}to{opacity:.85;transform:translateY(0) rotate(-14deg) scale(1);filter:blur(0)}}@media(max-width:380px){#solution-dialog.success .dialog-panel{padding:20px}.success .case-letterhead{font-size:8px;letter-spacing:.1em}.case-signoff em{font-size:15px}.case-signoff>span{font-size:7px}}@media(prefers-reduced-motion:reduce){#solution-dialog[open],#solution-dialog[open]::backdrop,#solution-dialog.success[open] .case-stamp{animation:none}}.case-emblem{display:none}#solution-dialog.success{color:#e3dacc;border-color:#a7977a80;background-image:url(/paper-grain.svg),radial-gradient(ellipse at 25% 0%,#514738,#393126 55%,#29231c);box-shadow:inset 0 1px #d7c7aa26,0 20px 65px #0009}#solution-dialog.success .dialog-panel{padding:24px 26px 26px}#solution-dialog.success .dialog-panel:before{border-color:#c0ae9126}#solution-dialog.success .case-emblem{display:block;width:68px;height:68px;margin:0 auto 18px;animation:case-emblem-glow 2.8s ease-in-out infinite alternate}@keyframes case-emblem-glow{0%{filter:drop-shadow(0 0 3px #d4bc9180)}to{filter:drop-shadow(0 0 11px #d4bc91b3)}}@media(prefers-reduced-motion:reduce){#solution-dialog.success .case-emblem{animation:none;filter:drop-shadow(0 0 6px #d4bc9180)}}.success .case-letterhead{color:#b6a78f;border-color:#c0ae9138}#solution-dialog.success h2{color:#e8dfcf;text-shadow:0 2px 3px #100c0866}#solution-dialog.success p{color:#cbbda8}.success .case-signoff{color:#b9aa93}.success .case-signoff>span{border-color:#c0ae9138}.success .case-stamp{color:#b88e7d;border-color:#b88e7d;outline-color:#b88e7d}.success .case-stamp:before,.success .case-stamp:after{background:#b88e7d88}.strip-track,.strip-color{fill:none;stroke-linecap:round;pointer-events:none}.strip-track{stroke:#c8baa3;stroke-opacity:.08;stroke-width:.07}.direction-strip .strip-color{stroke:var(--ray);stroke-width:.048;opacity:1}.direction-strip.known .strip-color{stroke-width:.048;opacity:1}.direction-strip.paired .strip-color,.direction-strip.paired .strip-track{visibility:hidden}.direction-strip:focus-visible{opacity:1}.direction-strip:focus-visible .strip-color{stroke:var(--ray);stroke-width:.055;opacity:1}.direction-strip:focus-visible .strip-track{stroke:#d8cbb5;stroke-opacity:.4;stroke-width:.085}.channel-flow .flow-ink{fill:none;stroke:var(--flow);stroke-linecap:round;stroke-linejoin:round}.channel-flow .flow-line{stroke-width:.04;opacity:1}.channel-flow .flow-head{fill:none;stroke-width:.045}.result-swatch{box-shadow:none}.result-swatch[data-result=clear]{background:transparent;border-color:var(--ray);box-shadow:none}.direction-strip .strip-color.strip-dot{fill:var(--ray);stroke:none;stroke-width:0}@media(min-width:601px)and (max-width:1366px)and (orientation:portrait),(min-width:601px)and (max-width:1600px)and (min-height:700px)and (orientation:landscape)and (pointer:coarse){.app{max-width:1000px}main{max-width:940px}.brand-logo{width:260px}.piece-tray{--tray-unit: 24px;width:524px;height:96px;min-height:96px}.current-strip{width:min(480px,100%);font-size:16px}.controls,footer{width:min(400px,100%)}.controls .primary{height:46px;min-height:46px;font-size:15px}.controls .secondary,#code-input,#code-form .secondary{height:44px;min-height:44px}.controls .secondary{font-size:13px}.archive-label,footer{font-size:12px}}@media(min-width:601px)and (max-width:1600px)and (min-height:700px)and (orientation:landscape)and (pointer:coarse){main{max-width:min(940px,calc(153dvh - 520px))}}
