/* Stillfire 0.2 — antique gold, carved slate, living light. */
.masthead{background:linear-gradient(90deg,#081a20,#112d30 52%,#091d24);box-shadow:inset 0 -1px 0 #dcbd7720}.wordmark>svg{filter:drop-shadow(0 0 9px #edc37732)}.wordmark span{text-shadow:0 2px 15px #eac17a12}.masthead nav .navbutton{border:1px solid #c8b77c25;border-radius:6px;padding:0 12px;box-shadow:inset 0 1px 0 #d8c39408}.masthead nav .iconbutton{border:1px solid #c8b77c20;border-radius:50%}.navbutton svg{color:#d6be88}.world{box-shadow:inset 0 0 40px #030e16}.forest{transition:filter 1.8s}.scene-vignette{z-index:2}.chapter-tag,.world-caption,.view-world{z-index:3}.chapter-tag{background:#081d2366;border:1px solid #bda46130;border-radius:3px;padding:4px 9px;backdrop-filter:blur(4px);left:8%}.chapter-tag .tiny-star{color:#f2dba5;text-shadow:0 0 12px #e7c98388}.view-world{box-shadow:inset 0 0 8px #dfba6920,0 0 20px #061a23aa}.world h1{text-shadow:0 3px 28px #001416;letter-spacing:-1.8px}.world-caption .eyebrow:before{content:'';display:inline-block;width:22px;height:1px;background:#dab56b;vertical-align:middle;margin-right:9px}.restoration .progress-line{height:3px;border:1px solid #a58c5125;background:#071c2299;border-radius:5px;position:relative}.progress-line>span{position:relative;border-radius:4px;background:linear-gradient(90deg,#759d89,#e7c883)}.progress-line>span:after{content:'';position:absolute;width:5px;height:5px;right:-2px;top:-1px;transform:rotate(45deg);background:#f2dba5;box-shadow:0 0 8px #efc478}.restoration-bloom .scene:after{content:'';position:absolute;z-index:1;inset:0;background:radial-gradient(ellipse at 53% 50%,#ffe3a244,transparent 60%);animation:world-bloom 2.4s ease-out forwards;pointer-events:none}.puzzle-panel{position:relative;isolation:isolate;background:radial-gradient(ellipse at 45% 38%,#1a3b3c,#102b31 54%,#0a2028 100%)}.puzzle-panel:before{content:'';position:absolute;inset:0;z-index:-1;background:url('assets/slate.webp') center/650px;opacity:.13;pointer-events:none}.puzzle-panel:after{content:'';position:absolute;inset:10% 2%;z-index:-1;background:url('assets/filigree.svg') center/100% 100% no-repeat;opacity:.15;pointer-events:none}.puzzle-heading h2{color:#f5ead0;text-shadow:0 2px 8px #020e16aa}.puzzle-heading p{color:#aec1b4}.page-icon{color:#ebcf8b;text-shadow:0 0 12px #ddb76544}.page-dots i.done{box-shadow:0 0 6px #efc77c55}.board-shell{padding:12px;border-radius:10px;border:1px solid #a28c586b;background:linear-gradient(145deg,#9f8d5533,transparent 30%,#1d514331 70%,#bca35c22),url('assets/slate.webp') center/490px;box-shadow:0 14px 40px #0006,0 2px 6px #0005,inset 0 1px 0 #ecdbb066,inset 1px 0 0 #d3c69422,inset 0 -2px 0 #0008;overflow:visible}.board-shell:before{content:'';position:absolute;inset:5px;pointer-events:none;border:1px solid #d4be7938;border-radius:6px;z-index:0}.board-shell:after{content:'';position:absolute;inset:-7px;background:url('assets/filigree.svg') center/100% 100% no-repeat;pointer-events:none;z-index:2;opacity:.8}.board-corner{display:none}.frame-jewel{position:absolute;left:calc(50% - 5px);top:-6px;width:10px;height:10px;background:linear-gradient(135deg,#eff0b9,#a5cbb4 35%,#305f56 60%,#aebd7f);transform:rotate(45deg);border:1px solid #d6bc7c;box-shadow:0 0 9px #d5ba5f33;z-index:3}.board{position:relative;z-index:1;gap:4px}.tile{border-radius:6px;background:linear-gradient(140deg,#3d55534d,#1b3535aa),#163033;box-shadow:inset 0 1px 0 #d1d8b344,inset 1px 0 0 #c3ba8740,inset -1px -2px 1px #030f13cc,0 1px 2px #000a;isolation:isolate;transition:background .25s,box-shadow .3s}.tile:before{content:'';position:absolute;inset:1px;border-radius:5px;z-index:-1;opacity:.54;background:url('assets/slate.webp') var(--grain-x,0) var(--grain-y,0)/310px 310px;pointer-events:none}.tile:after{content:'';position:absolute;inset:3px;z-index:0;pointer-events:none;border:1px solid #d0c18f10;border-radius:4px}.tile>svg{position:relative;z-index:1}.tile.active{background:radial-gradient(ellipse at 40% 45%,#bcaf6533,#36594955 68%),#1b3935;box-shadow:inset 0 1px 0 #d5d49d55,inset 1px 0 0 #c3ba8740,inset -1px -2px 1px #071a15cc,0 1px 2px #0009}.tile.active:before{opacity:.3}.tile.rune:hover{background:linear-gradient(145deg,#39564caa,#26463aaa)}.tile.source,.tile.goal{background:radial-gradient(ellipse,#2d4a40,#193033);box-shadow:inset 0 0 0 1px #d1b47840,inset 0 2px 0 #c3ac7244,0 2px 2px #0008}.tile.source.active,.tile.goal.active{background:radial-gradient(ellipse,#76634388,#283e30 65%,#172e2c);box-shadow:inset 0 0 0 1px #dfc98e70,inset 0 2px 0 #e8ce8a44,0 0 12px #ceaa4622}.tile.stone{opacity:1;background:linear-gradient(135deg,#082029,#173031);box-shadow:inset 0 1px 5px #021318,inset 0 0 0 1px #9ca78215}.tile.stone:before{opacity:.2}.tile.stone svg{width:82%;height:82%;opacity:.65}.stone-carving{fill:none;stroke:#8c9c76;stroke-width:.75;opacity:.55;filter:drop-shadow(0 1px 0 #010e14)}.etching{fill:none;stroke:#c1b981;stroke-width:.6;opacity:.22}.active .etching{opacity:.32;stroke:#e3d091}.channel-shadow{fill:none;stroke:#020e13;stroke-width:15;stroke-linecap:round;stroke-linejoin:round}.channel-metal{fill:none;stroke-width:11.5;stroke-linecap:round;stroke-linejoin:round;opacity:.75}.channel-bed{fill:none;stroke:#0b242a;stroke-width:7.7;stroke-linecap:round;stroke-linejoin:round}.pipe{stroke:#83a197;stroke-width:2.5;opacity:.85}.active .pipe{stroke-width:5;opacity:1;filter:drop-shadow(0 0 2px #e0bd6480)}.active .channel-metal{opacity:1}.channel-halo{fill:none;stroke:#d6b864;stroke-width:22;stroke-linecap:round;stroke-linejoin:round;opacity:.11;filter:blur(3px)}.ink-current{fill:none;stroke:#fff1b3;stroke-width:4;stroke-dasharray:12 39;stroke-linecap:round;opacity:.55;animation:current 2.4s linear infinite}.ink-flow{stroke:#fffdec;stroke-width:1.6;stroke-dasharray:1 23;animation:sparks 1.4s linear infinite;filter:drop-shadow(0 0 1px #ffffdd)}.leak-dot{fill:#f3dda4;filter:drop-shadow(0 0 2px #f3d99b);r:1.7px}.source-flame{transform-origin:50% 68%;animation:flame-breathe 3.3s ease-in-out infinite;filter:drop-shadow(0 0 3px #e9ba5890)}.flame-heart,.lantern-flame{filter:drop-shadow(0 0 2px #fff3ad)}.lantern-aura{animation:lantern-breathe 4s ease-in-out infinite;transform-origin:50% 50%}.tile.new-light{animation:rune-wake 1.1s ease-out var(--wake-delay,0s)}.tile.lantern-lit{animation:lantern-wake 1.5s ease-out}.tile.turning>svg{animation:rune-turn .24s cubic-bezier(.18,.68,.24,1);transform-origin:50% 50%}.tile.whispered{outline:1px solid #eed196;outline-offset:-2px;box-shadow:inset 0 0 18px #ddb76744}.board.completed .active{animation:none}.board-shell.celebrating{animation:frame-celebrate 1.8s ease-out}#boardEffects{position:absolute;inset:0;width:100%;height:100%;z-index:5;pointer-events:none;border-radius:10px}.board-status{position:relative;font-variant-numeric:tabular-nums}.board-status #connectionStatus{transition:opacity .2s}.reaction-covered{opacity:0}.flow-feedback{position:absolute;left:0;top:0;max-width:80%;font-size:10px;color:#f3dca0;line-height:18px;white-space:nowrap;opacity:0;transform:translateY(4px);transition:opacity .25s,transform .3s;text-shadow:0 0 12px #e4bd7044;pointer-events:none}.flow-feedback.show{opacity:1;transform:translateY(0)}.toolstrip{border-bottom-color:#bca86835}.toolstrip button{min-height:47px;border:1px solid #aeab7055;background:linear-gradient(180deg,#35534655,#102c3055);box-shadow:inset 0 1px 0 #d6cda11a,0 2px 4px #020e1422;color:#cedbce;font-size:11px}.toolstrip button svg{filter:drop-shadow(0 1px 0 #020e14)}.toolstrip #hintButton{background:linear-gradient(135deg,#ba9b5130,#26423888);border-color:#c5ae6a77;color:#efd399;box-shadow:inset 0 1px 0 #e0ce9529,0 0 12px #c0a34a0a}.toolstrip button:hover:not(:disabled){border-color:#d8c18a;background:#9baf7e20}.toolstrip button:disabled{opacity:.4}.tip{color:#b0c4b8}.puzzle-footer{flex-wrap:wrap;gap:8px}.puzzle-footer .quick-sound{margin-left:auto;width:auto;min-width:44px;height:34px;border:0;border-radius:0;display:flex;align-items:center;gap:5px;font:9px Arial,sans-serif;color:#94afa5}.quick-sound svg{width:14px;height:14px}.quick-sound[aria-pressed=false] .sound-waves{opacity:.3}.puzzle-footer .quick-sound[aria-pressed=true]{color:#e7cc92}.puzzle-footer #helpButton{margin-left:1px;flex-shrink:0;box-shadow:inset 0 1px 0 #d6cda114;color:#adbfae}.puzzle-footer .footer-flower{filter:drop-shadow(0 0 4px #ddc07644)}.primary{background:linear-gradient(135deg,#f1d698,#cba866 63%,#e4c58c);border:1px solid #ffe7ae88;box-shadow:inset 0 1px 0 #fff0c9aa,0 4px 14px #060f1c44;text-shadow:0 1px 0 #fff0c644}.primary:hover{background:linear-gradient(135deg,#f8e2b2,#dfbd7b);box-shadow:inset 0 1px 0 #fff0c9aa,0 4px 20px #dbb86422}.primary:active{transform:translateY(1px)}dialog{background:linear-gradient(135deg,#183b3cee,#0b232bef),url('assets/slate.webp') center/600px;border:1px solid #c6ad6b66;box-shadow:inset 0 1px 0 #edd6a140,inset 0 0 0 5px #091f2433,0 24px 100px #000a}dialog::backdrop{background:#020e18ca}.dialog-head h2{color:#f3e4c5}.dialog-head .close-dialog{color:#cfbd8f}.win-dialog{overflow-x:hidden}.win-scene{height:156px;margin:-38px -38px 0;position:relative;overflow:hidden;border-bottom:1px solid #c5b27c40}.win-scene img{width:100%;height:100%;object-fit:cover;object-position:50% 51%;filter:saturate(calc(.3 + var(--restored,1)*.7)) brightness(.85)}.win-scene:after{content:'';position:absolute;inset:0;background:linear-gradient(transparent 20%,#113236 100%)}.win-orbit{position:relative;z-index:2;width:76px;height:76px;margin:-32px auto 22px;background:radial-gradient(ellipse,#81683c,#1c3a36 58%,#102a2f);border:1px solid #dec38a;box-shadow:0 0 0 4px #102d32,0 0 0 5px #b4a37555,0 0 35px #e3b95f33,inset 0 0 12px #e3bd6944}.win-orbit svg{width:47px;height:47px;filter:drop-shadow(0 0 5px #f1cc7977)}.win-dialog[open] .win-orbit{animation:medallion-appear .75s ease-out}.win-dialog h2{color:#f6e5be}.win-summary{padding:13px 0;border-block:1px solid #c7b97720}.win-motes{position:absolute;inset:0;z-index:1;background-image:radial-gradient(circle at 20% 40%,#f3d888 1px,transparent 2px),radial-gradient(circle at 78% 62%,#fff2bd 1px,transparent 2px),radial-gradient(circle at 45% 27%,#f2d793 1px,transparent 2px),radial-gradient(circle at 64% 47%,#b4ebd6 1px,transparent 2px);background-size:140px 110px;animation:win-motes 8s linear infinite}.book-illustration{height:98px;margin:-34px -34px 25px;background:linear-gradient(0deg,#123138,#0b242a11),url('assets/forest-v2.webp') 50% 44%/cover;border-bottom:1px solid #ad985d33;display:grid;place-items:center}.book-illustration span{font-size:44px;color:#ebd398;text-shadow:0 0 25px #f0cb6999}.page-entry{background:linear-gradient(125deg,#3c584013,#08252b40);border-color:#bcbb7930;box-shadow:inset 0 1px 0 #dbd2a008}.page-entry .page-num{width:35px;height:35px;display:grid;place-items:center;font-size:18px;border:1px solid #ceb87955;border-radius:50%;background:radial-gradient(circle,#b4975a12,transparent)}.page-entry .entry-symbol{padding-right:3px;text-shadow:0 0 10px #e6c98544}.page-entry:disabled .page-num{border-color:#8c9e7e22}.book-progress{border-left:2px solid #d0b87a;padding:4px 0 4px 12px;background:linear-gradient(90deg,#c2b47b0d,transparent)}.setting-row{border-color:#c9b78025}.toggle[aria-checked=true]:before{box-shadow:0 0 12px #e4c27b22;background:linear-gradient(90deg,#a99966,#e0c483)}.expanded-world{background:#091b21}.expanded-caption h2{text-shadow:0 2px 20px #091b21}.site-footer{border-top-color:#aa9a6540;background:linear-gradient(90deg,#091c24,#14302e,#091c24)}
@keyframes current{to{stroke-dashoffset:-51}}@keyframes sparks{to{stroke-dashoffset:-24}}@keyframes rune-turn{from{transform:rotate(-90deg)}to{transform:rotate(0)}}@keyframes flame-breathe{50%{transform:scale(.97,1.04);filter:drop-shadow(0 0 5px #e9ba5880)}}@keyframes lantern-breathe{50%{opacity:.72;transform:scale(.94)}}@keyframes rune-wake{0%{box-shadow:inset 0 0 0 1px #f8dc9c,0 0 17px #e9c67566}100%{box-shadow:inset 0 1px 0 #d5d49d55,0 0 0 transparent}}@keyframes lantern-wake{0%{box-shadow:inset 0 0 20px #ffe09988,0 0 25px #dfba6555}100%{box-shadow:inset 0 0 0 1px #dfc98e70,0 0 12px #ceaa4622}}@keyframes frame-celebrate{0%{box-shadow:0 0 0 1px #e4c888,0 0 36px #daba6560,inset 0 0 35px #dab66515}100%{box-shadow:0 14px 40px #0006,inset 0 1px 0 #ecdbb066}}@keyframes world-bloom{0%{opacity:0;transform:scale(.6)}25%{opacity:1}100%{opacity:0;transform:scale(1.3)}}@keyframes medallion-appear{from{transform:scale(.82);opacity:0}to{transform:scale(1);opacity:1}}@keyframes win-motes{to{background-position:8px -110px}}
.reduced-motion .ink-current{stroke-dasharray:none;opacity:.18}.reduced-motion .channel-halo{filter:none;opacity:.06}.reduced-motion .source-flame,.reduced-motion .lantern-aura{transform:none}.reduced-motion .flow-feedback{transform:none}
@media(max-width:760px){.masthead nav{gap:9px}.masthead nav .navbutton{padding:0 8px;min-height:37px}.masthead nav .iconbutton{width:35px;height:35px}.chapter-tag{left:6.3%;padding:1px 6px}.world h1{letter-spacing:-.7px}.puzzle-panel{background:radial-gradient(ellipse at 50% 35%,#163b3b,#0b242c 72%)}.puzzle-panel:before{opacity:.1}.puzzle-panel:after{opacity:.1}.board-shell{padding:10px;border-radius:8px}.board{gap:3px}.tile{border-radius:5px}.toolstrip button{font-size:10px;min-height:44px}.puzzle-footer{gap:6px;font-size:10px}.puzzle-footer .quick-sound{font-size:8px}.puzzle-footer #helpButton{width:29px;height:29px}.win-scene{height:133px;margin:-30px -30px 0}.win-orbit{width:66px;height:66px;margin-top:-29px}.win-orbit svg{width:41px;height:41px}.book-illustration{margin:-27px -27px 23px;height:90px}.board-shell:after{inset:-6px}.flow-feedback{font-size:9px}.puzzle-panel:after{inset:10% 3%}.win-dialog{max-height:calc(100svh - 28px)}}
@media(max-width:359px){.puzzle-footer .quick-sound span{display:none}.board{gap:2px}.board-shell{padding:9px}.flow-feedback{font-size:8px}.puzzle-footer{font-size:9px}.wordmark span{font-size:18px}}

/* A completed path is locked for input, but retains its full earned light. */
.board.completed .tile.rune:disabled{opacity:1}

/* Clear blown glass with a fine, warm neon filament. */
.glass-tubes{pointer-events:none}.neon-current{animation:neon-travel 1.7s linear infinite}.tile.active .neon-core{filter:drop-shadow(0 0 1.4px #f9d28099)}
@keyframes neon-travel{to{stroke-dashoffset:-34}}
.reduced-motion .neon-current{display:none}
/* A clear, round pop-dome; its lights move independently of the glass. */
.light-bubble{pointer-events:none}.bubble-shell{transform-origin:0 0}.bubble-echo{pointer-events:none}

/* Lantern journeys ride above the board without intercepting taps. */
#lightJourneys{position:absolute;z-index:4;overflow:visible;pointer-events:none;fill:none;stroke:none}
