/* Original vector and CSS artwork. Offline; no fonts or images are fetched. */
:root{color-scheme:light;--ivory:#f4efdf;--ink:#332343;--muted:#73627a;--violet:#7d55c6;--amber:#ffd373;--night:#261b40;--soft:#ded1f2;--board-size:min(440px,calc(100dvh - 175px));font-family:Inter,ui-sans-serif,system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif}
*{box-sizing:border-box}body{margin:0;color:var(--ink);background:var(--ivory);background-image:radial-gradient(ellipse at 12% 15%,#e8dff04d,transparent 50%),radial-gradient(ellipse at 90% 85%,#eecb8040,transparent 42%);min-height:100vh;min-height:100dvh}button{font:inherit;cursor:pointer;-webkit-tap-highlight-color:transparent;color:inherit}button:disabled{cursor:default}button:focus-visible{outline:3px solid #b96c20;outline-offset:4px}button,input{touch-action:manipulation}button{user-select:none}.app{max-width:1000px;margin:auto;padding:20px 30px 14px}.header{display:flex;align-items:center;justify-content:space-between;margin-bottom:17px}.studio{font-size:9px;font-weight:650;letter-spacing:2.25px;color:var(--muted)}.studio span{margin:0 7px;color:#a48eab}h1,h2,h3,p{margin:0}h1{font-family:Georgia,"Times New Roman",serif;font-size:34px;font-weight:400;line-height:1.18;letter-spacing:-1.3px}h1 .title-spark{display:inline-block;color:var(--violet);font-size:23px;vertical-align:top;margin:4px 0 0 9px}.header-actions{display:flex;gap:9px}.icon-button{background:#fff8;border:1px solid #d5c9d6;border-radius:50%;height:36px;min-width:36px;padding:0 9px;display:flex;align-items:center;justify-content:center;font-size:18px}.icon-button:hover{background:#fff}.icon-button span{font-size:8px;margin-left:4px;letter-spacing:.2px}.game-layout{display:grid;grid-template-columns:minmax(0,1fr) 270px;gap:30px;align-items:stretch}.play-section{width:min(100%,var(--board-size));justify-self:center;min-width:0}.board-heading{display:flex;justify-content:space-between;align-items:center;margin:0 2px 10px;min-height:23px;gap:8px;color:var(--muted);font-size:11px;letter-spacing:.2px}.text-button{font-size:11px;border:0;border-bottom:1px solid #b9a4bf;background:transparent;padding:3px 0;color:var(--ink);white-space:nowrap}.text-button span{margin-left:4px}.board-shell{position:relative;padding:12px;border-radius:24px;background:var(--night);box-shadow:0 16px 32px #3021371c,0 2px 0 #ffffff90 inset,0 -2px 0 #110a2980 inset;isolation:isolate;overflow:hidden}.board-shell:before{content:"";position:absolute;inset:0;background:radial-gradient(ellipse at 25% 10%,#8b63c925,transparent 65%);pointer-events:none}.board{position:relative;display:grid;grid-template-columns:repeat(var(--cols),1fr);grid-template-rows:repeat(var(--rows),1fr);aspect-ratio:var(--cols)/var(--rows);gap:0;width:100%;border-radius:12px;overflow:hidden;background:#312448}.cell{position:relative;aspect-ratio:1;min-width:0;border:1px solid #b096d00c;border-radius:9px;display:flex;align-items:center;justify-content:center;background:transparent;padding:0}.cell.empty:after{content:"";width:3px;height:3px;border-radius:50%;background:#c4aedb26}.cell svg{width:100%;height:100%;overflow:visible}.optic{background:#4b3659;box-shadow:0 0 0 3px #312448 inset;border:1px solid #a58bc132;border-radius:12px;z-index:2;transition:background .18s,box-shadow .18s}.optic:hover{background:#634772}.optic:focus-visible{outline:3px solid #f8d880;outline-offset:-4px;z-index:4}.optic.mirror{color:#ece0fc}.optic.prism{color:#ffdba0;background:#593c56}.mirror-stroke{stroke:currentColor;stroke-width:8;stroke-linecap:round}.mirror-edge{stroke:#9981b7;stroke-width:2;stroke-linecap:round}.optic .glass{transform:rotate(var(--angle));transform-origin:50px 50px;transition:transform .2s cubic-bezier(.2,.8,.2,1)}.optic .pivot{fill:#f4efdf;stroke:#332343;stroke-width:2}.prism .mirror-stroke{stroke:#ffe2a0;stroke-width:5}.prism-outline{fill:#a8708322;stroke:#cc9b8c;stroke-width:2}.hinted{box-shadow:0 0 0 3px var(--amber) inset,0 0 18px #ffcf6970;animation:hintGlow 1.5s ease-in-out infinite}.source{color:var(--amber)}.source svg{filter:drop-shadow(0 0 8px #ffd37370)}.receiver{color:#9d81bf;transition:color .3s}.receiver.lit{color:#ffe3a0}.receiver.lit svg{filter:drop-shadow(0 0 7px #ffd37366)}.receiver .receiver-core{opacity:.12;transition:opacity .4s}.receiver.lit .receiver-core{opacity:1}.receiver.lit .receiver-rays{animation:breathe 3s ease-in-out infinite;transform-origin:center}.wall{color:#766482}.beam-layer{position:absolute;inset:0;width:100%;height:100%;overflow:visible;pointer-events:none;z-index:3}.beam{fill:none;stroke:#ffd373;stroke-width:.045;stroke-linecap:round;filter:drop-shadow(0 0 .05px #ffd373)}.beam.branch{stroke:#ffe7b0;stroke-width:.036}.beam-glow{fill:none;stroke:#ffbd62;stroke-width:.11;opacity:.13;stroke-linecap:round}.beam-spark{fill:none;stroke:#fff5dd;stroke-width:.024;stroke-linecap:round;stroke-dasharray:.10 1.2;opacity:.8;animation:flow 4s linear infinite}.board-shimmer{position:absolute;inset:0;pointer-events:none;border-radius:inherit;border:1px solid #d4bced22}.board-caption{display:flex;align-items:center;justify-content:space-between;margin:10px 3px 0;gap:8px;font-size:9px;color:var(--muted)}.legend{display:flex;align-items:center;gap:5px;white-space:nowrap}.legend i{width:9px;height:9px;display:inline-block;margin-left:6px}.legend i:first-child{margin-left:0}.legend-mirror{border-right:2px solid var(--violet);transform:rotate(35deg)}.legend-prism{border:1px solid #a66a5d;transform:rotate(45deg)}#run-badge{border:1px solid #cfbfda;border-radius:20px;padding:3px 7px;font-size:8px;white-space:nowrap;background:#fff4}.puzzle-panel{display:flex;flex-direction:column;padding-top:31px;min-height:0}.eyebrow{font-size:10px;letter-spacing:1.5px;font-weight:650;color:var(--muted);margin-bottom:9px}h2{font-family:Georgia,"Times New Roman",serif;font-size:30px;line-height:1.05;font-weight:400;letter-spacing:-.6px}.level-note{color:var(--muted);font-size:12px;line-height:1.6;margin:11px 0 18px;min-height:38px}.stats{display:flex;gap:22px;padding-bottom:16px;border-bottom:1px solid #d8cad5}.stats>div{display:flex;flex-direction:column;gap:4px}.stats strong{font-size:19px;font-weight:500;line-height:1}.stats span{font-size:9px;color:var(--muted)}.controls{display:flex;gap:7px;margin:17px 0 14px}.control-button{height:39px;border:1px solid #d1bfd9;background:#fffc;border-radius:9px;flex:1;font-size:11px;display:flex;align-items:center;justify-content:center;gap:5px}.control-button span{font-size:18px;line-height:1;color:var(--violet)}.control-button:hover:not(:disabled){background:#ebe0f4;border-color:#b69acb}.control-button:disabled{opacity:.4}.guidance{display:flex;align-items:flex-start;gap:9px;font-size:11px;line-height:1.6;color:#67536f;min-height:53px}.guidance-mark{color:#9b70c6;font-size:19px;margin-top:-2px}.guidance p{padding-top:1px}.panel-bottom{margin-top:auto;padding-top:16px}.mastery-line{display:flex;justify-content:space-between;font-size:9px;color:var(--muted);margin-bottom:6px}.mastery-help{color:#94819b}.progress-track{height:3px;background:#e1d4e4;border-radius:10px;overflow:hidden}.progress-track div{height:100%;width:0;background:#9e72c6;transition:width .35s}.save-note{font-size:9px;color:#8c7a90;text-align:right;margin-top:9px;line-height:1.4}.success{display:grid;grid-template-columns:28px 1fr;gap:0 8px;border:1px solid #ceb9b0;background:#fff7df;border-radius:14px;padding:12px;margin-top:3px;animation:arrive .4s ease-out}.success[hidden]{display:none}.success-symbol{color:#bf8740;font-size:25px}.success-copy h3{font-family:Georgia,"Times New Roman",serif;font-size:18px;font-weight:400}.success-copy p{font-size:10px;line-height:1.5;color:#876b61;margin-top:3px}.primary-button{min-height:40px;border:1px solid #261b40;background:#3d2958;color:#fff4df;border-radius:9px;padding:10px 14px;font-size:12px;display:flex;align-items:center;justify-content:space-between;gap:10px}.primary-button:hover{background:#604078}.success .primary-button{grid-column:1/-1;margin-top:10px}.replay-button{grid-column:1/-1;font-size:9px;color:#7d646c;background:transparent;border:0;padding:7px 0 0;text-decoration:underline;text-underline-offset:3px}.footer{display:flex;justify-content:space-between;font-size:9px;color:#a08a9e;letter-spacing:.3px;margin-top:18px}.keyboard-note{letter-spacing:0}.keyboard-note span{margin:0 7px}dialog{max-width:570px;width:calc(100% - 28px);border:1px solid #ddcfd9;background:var(--ivory);color:var(--ink);border-radius:23px;padding:24px;box-shadow:0 25px 80px #130c4050;max-height:calc(100dvh - 32px);overflow:auto}dialog::backdrop{background:#170f30b3;backdrop-filter:blur(4px)}.dialog-heading{display:flex;justify-content:space-between;gap:12px;align-items:start;margin-bottom:14px}.dialog-heading .eyebrow{font-size:9px;margin:0 0 7px}.dialog-heading h2{font-size:27px}.dialog-close{background:transparent;flex-shrink:0;font-size:25px}.dialog-description{font-size:11px;color:var(--muted);line-height:1.6;margin-bottom:18px}.level-list{display:grid;grid-template-columns:repeat(6,1fr);gap:9px}.level-choice{border:1px solid #d5c4dc;border-radius:12px;background:#fffa;min-height:62px;display:flex;align-items:center;justify-content:center;flex-direction:column;gap:2px;font-size:17px}.level-choice:hover{background:#e7d7f3}.level-choice.active{border-color:#76579c;background:#e7d7f3;box-shadow:0 0 0 1px #76579c}.level-choice.mastered{color:#805520;background:#f9e8bc}.level-choice .level-status{font-size:11px;height:14px;color:#9164b3}.level-choice.mastered .level-status{color:#966927}.dialog-key{font-size:10px;color:var(--muted);margin-top:18px}.dialog-key span{margin-left:20px}.how-to{display:flex;flex-direction:column;gap:18px;margin:24px 0}.how-to>div{display:flex;gap:15px;align-items:center}.how-to p{font-size:12px;line-height:1.7;color:var(--muted)}.how-to strong{color:var(--ink)}.how-icon{font-family:Georgia,serif;font-size:34px;min-width:46px;min-height:46px;text-align:center;background:#412a58;color:#eee3fb;border-radius:11px}.prism-icon{color:#ffe2a0}.receiver-icon{color:#ffd373}.help-detail{font-size:11px;line-height:1.7;color:var(--muted);margin:12px 0}.help-detail:last-of-type{font-size:10px}#help-done{width:100%;margin-top:18px}.sr-only{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0}.noscript{margin:15px;text-align:center}
.more-games{color:#765588;margin-left:12px;text-decoration:none;border-bottom:1px solid #b9a4bf;padding-bottom:1px}.more-games:focus-visible{outline:2px solid #b96c20;outline-offset:4px}
@keyframes flow{to{stroke-dashoffset:-5.2}}@keyframes hintGlow{50%{box-shadow:0 0 0 3px var(--amber) inset,0 0 25px #ffcf69a0}}@keyframes breathe{50%{opacity:.4}}@keyframes arrive{from{opacity:0;transform:translateY(7px)}to{opacity:1;transform:translateY(0)}}
@media(min-width:681px) and (max-height:600px){:root{--board-size:min(390px,calc(100dvh - 158px))}.app{padding:13px 24px 10px}.header{margin-bottom:10px}h1{font-size:29px}.studio{font-size:8px}.board-shell{padding:10px;border-radius:20px}.board-heading{margin-bottom:8px}.game-layout{gap:25px;grid-template-columns:minmax(0,1fr) 250px}.puzzle-panel{padding-top:31px}.eyebrow{margin-bottom:6px;font-size:9px}h2{font-size:26px}.level-note{margin:7px 0 10px;min-height:32px;line-height:1.5;font-size:11px}.stats{padding-bottom:11px;gap:23px}.stats strong{font-size:17px}.controls{margin:11px 0 9px}.control-button{height:36px}.guidance{min-height:34px;line-height:1.45;font-size:10px}.panel-bottom{padding-top:10px}.success{padding:8px 10px}.success .primary-button{min-height:34px;margin-top:7px;padding:7px 12px}.success-copy h3{font-size:16px}.success-copy p{font-size:9px}.success-symbol{font-size:23px}.replay-button{padding-top:5px}.footer{margin-top:12px;font-size:8px}.save-note{margin-top:6px}.board-caption{margin-top:8px}}
@media(max-width:680px){:root{--board-size:min(420px,calc(100vw - 32px))}.app{max-width:470px;padding:14px 16px 14px}.header{margin-bottom:12px}.studio{font-size:8px;letter-spacing:1.6px}h1{font-size:31px}.header-actions{gap:7px}.icon-button{height:34px;min-width:34px}.game-layout{display:flex;flex-direction:column;gap:17px}.play-section{width:100%}.board-shell{padding:10px;border-radius:21px}.board-heading{font-size:10px;margin-bottom:8px}.board-caption{font-size:9px;margin-top:8px}.puzzle-panel{padding-top:0;display:grid;grid-template-columns:1fr auto;gap:0 10px}.puzzle-intro{grid-column:1}.eyebrow{font-size:9px;letter-spacing:1.2px;margin-bottom:5px}h2{font-size:26px}.level-note{font-size:11px;margin:6px 0 0;min-height:0;line-height:1.55;max-width:230px}.stats{grid-column:2;grid-row:1;align-items:start;gap:13px;padding:4px 0 0;border:0}.stats strong{font-size:17px}.stats span{font-size:8px}.stats>div:last-child{display:none}.controls{grid-column:1/-1;margin:14px 0 10px;gap:9px}.control-button{height:42px;font-size:12px}.guidance{grid-column:1/-1;min-height:33px;font-size:11px}.panel-bottom{grid-column:1/-1;padding-top:11px}.success{grid-column:1/-1;grid-template-columns:25px 1fr auto;gap:0 7px;padding:10px 12px;margin-top:0}.success .primary-button{grid-column:3;grid-row:1/3;align-self:center;margin:0;font-size:11px;min-height:40px;padding:8px 10px}.success-copy h3{font-size:17px}.success-copy p{font-size:9px}.success .replay-button{grid-column:1/3;text-align:left;margin-left:33px}.success-symbol{font-size:24px}.success-copy{min-width:0}.footer{margin-top:15px;font-size:8px}.keyboard-note{display:none}.level-list{gap:7px}.level-choice{min-height:53px;font-size:15px}.dialog-heading h2{font-size:23px}dialog{padding:21px}.legend i{margin-left:3px}}
@media(max-width:355px){.app{padding:12px}.header h1{font-size:28px}.stats{gap:10px}.stats strong{font-size:15px}.success{grid-template-columns:25px 1fr}.success .primary-button{grid-column:1/-1;grid-row:auto;margin-top:9px}.success .replay-button{grid-column:1/-1;margin-left:0;text-align:center}.level-list{grid-template-columns:repeat(4,1fr)}}
@media(prefers-reduced-motion:reduce){*,*:before,*:after{animation:none!important;transition:none!important}.beam-spark{display:none}}

/* Keep completed rounds visible on short publisher frames. */
@media(min-width:681px) and (max-height:600px){.header{margin-bottom:8px}.puzzle-panel{padding-top:25px}.level-note{min-height:28px;margin-bottom:8px}.controls{margin:9px 0 7px}.guidance{min-height:29px}.success{grid-template-columns:22px 1fr auto;gap:0 5px;padding:8px}.success .primary-button{grid-column:3;grid-row:1/3;align-self:center;min-height:33px;margin:0;padding:7px 8px;font-size:10px}.success .replay-button{grid-column:1/-1;margin-top:3px;padding-top:3px}.success-copy h3{font-size:15px}.success-copy p{font-size:8px}.panel-bottom{padding-top:8px}}

@media(min-width:681px) and (max-height:600px){:root{--board-size:min(390px,calc(100dvh - 175px))}.footer{margin-top:9px}}
