:root{--accent:#946538;--lamp:#f0bd75}.title-dot{color:#b57545}.lamp-frame{background:#35342d;border:1px solid #282920;padding:23px;box-shadow:0 3px 0 #d7d0c0;color:#d9cdb6}.frame-top,.frame-bottom{display:flex;align-items:center;justify-content:space-between;font-size:10px;line-height:1.7}.frame-top{margin-bottom:22px;color:#b9b29f;letter-spacing:1.7px}.frame-top span:last-child{letter-spacing:0}.frame-bottom{margin-top:22px;color:#b9b29f;font-variant-numeric:tabular-nums}.frame-bottom span:last-child{color:#918d7d}.lamp-grid{display:grid;grid-template-columns:repeat(var(--size,4),minmax(0,1fr));gap:15px}.lamp{position:relative;border:1px solid #625c49;background:#39382f;aspect-ratio:1;min-width:44px;min-height:44px;padding:0;display:grid;place-items:center;box-shadow:inset 0 1px 5px #0003,0 1px #74705d44;border-radius:50%;transition:background .22s,border-color .22s,box-shadow .22s;touch-action:manipulation}.lamp:after{content:'';width:18%;height:18%;border-radius:50%;background:#6e624b;box-shadow:inset 0 1px 3px #0004;transition:all .22s}.lamp.on{background:#a88445;border-color:#ddb36f;box-shadow:inset 0 0 0 5px #b18d4a,inset 0 0 0 6px #e6b66366,0 0 17px #c8963a22}.lamp.on:after{background:#ffe1a3;width:32%;height:32%;box-shadow:0 0 12px #ffde89,0 0 29px #e2a84c88}.lamp.hinted:before{content:'';position:absolute;inset:-5px;border:2px dashed #f4dcaa;border-radius:50%;animation:hint-breathe 1.5s ease-in-out infinite}.lamp:focus-visible{outline:2px solid #f5e3bd;outline-offset:5px}.lamp:active{transform:scale(.94)}.lamp:disabled{opacity:1}.lamp-grid.solved .lamp{background:#32352e;border-color:#4c5545}.lamp-grid.solved .lamp:after{background:#68705b}.game-toolbar .icon-button{flex:0 0 44px}.completion{display:grid;grid-template-columns:auto 1fr auto;gap:15px;align-items:center;border-top:1px solid #c8bea8;border-bottom:1px solid #c8bea8;padding:20px 0;margin:8px 0 18px}.completion h2{font-family:var(--serif);font-size:25px;letter-spacing:-1px;font-weight:400;margin:0 0 7px}.completion p{font-size:11px;line-height:1.7;color:var(--muted);margin:0}.completion-mark{font-size:38px;line-height:1;color:var(--accent)}.completion .primary-button{white-space:nowrap}.under-note{color:#8a8879;font-size:10px;line-height:1.7;text-align:center;margin:25px 0 0}.status-line{min-height:43px;margin:0}.cross-study{display:grid;grid-template-columns:repeat(3,17px);gap:6px;width:max-content;margin:25px 0}.cross-study i{display:flex;align-items:center;justify-content:center;width:17px;height:17px;border:1px solid #d8d1bf;border-radius:50%;color:#fff;font-style:normal;font-size:12px}.cross-study i.lit{background:#c5a064;border-color:#b98e50}.cross-study i.center{background:#946538;border-color:#946538}.game-intro .rules .margin-note{font-size:10px;color:#8a8879}.level-list{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:8px;padding:8px 0}.level-list button{border:1px solid #c9c1ad;background:none;min-height:48px;font-size:12px}.level-list button.current{background:var(--accent);color:var(--paper);border-color:var(--accent)}@keyframes hint-breathe{50%{opacity:.5}}@media(hover:hover){.lamp:not(:disabled):hover{border-color:#e9c787}.button:hover{background:#e8e1d3}}@media(max-width:700px){.game-intro .tagline{font-size:13px;line-height:1.8}.lamp-frame{padding:18px}.frame-top{margin-bottom:17px;font-size:9px;letter-spacing:1.3px}.frame-bottom{margin-top:18px}.lamp-grid{gap:12px}.lamp-grid[style*="5"]{gap:10px}.completion{gap:12px;padding:17px 0}.completion h2{font-size:23px}.completion-mark{font-size:31px}.under-note{margin-top:17px}}@media(max-width:360px){.lamp-frame{padding:14px}.lamp-grid{gap:10px}.lamp-grid[style*="5"]{gap:7px}.frame-top{font-size:8px;margin-bottom:15px}.frame-bottom{margin-top:15px;font-size:9px}.game-toolbar button{font-size:10px;padding:9px 5px}.completion{grid-template-columns:auto 1fr;gap:10px}.completion .primary-button{grid-column:1/-1}.lamp.on{box-shadow:inset 0 0 0 3px #b18d4a,inset 0 0 0 4px #e6b66366,0 0 17px #c8963a22}}

@media(max-width:700px) and (max-height:700px) and (orientation:portrait){.game-header{min-height:50px}.game-layout{padding-top:12px}.game-intro{display:flex;align-items:center;gap:20px;margin-bottom:10px}.game-intro .eyebrow{display:none}.game-intro h1{font-size:31px;margin:0;flex-shrink:0}.game-intro .tagline{font-size:11px;line-height:1.7}.play-panel{max-width:360px;margin:0 auto}.stage-bar{min-height:44px;margin-bottom:8px}.stage-bar h2{font-size:14px}.stage-bar p{font-size:10px;margin-top:3px}.stage-bar .text-button{font-size:10px;padding:8px}.lamp-frame,.garden-frame{padding:14px}.frame-top{margin-bottom:8px;font-size:8px}.frame-bottom{margin-top:8px;font-size:9px}.game-toolbar{margin-top:10px;margin-bottom:10px}}

/* The finished board becomes a quiet star field before the result arrives. */
.victory-complete.lamp-frame{background:#252e32;border-color:#68777c;box-shadow:0 3px 0 #c2c9c4}.victory-complete .frame-top,.victory-complete .frame-bottom{color:#d2d6ca}.victory-complete .frame-top span:first-child:before{content:'☾';color:#edd4a4;font-size:18px;line-height:0;margin-right:7px}.victory-complete .frame-top #lamp-count{color:#f1d5a0;font-weight:600}.victory-complete .lamp-grid.solved .lamp{background:#263136;border-color:#61717355;box-shadow:inset 0 0 18px #a1bab009}.victory-complete .lamp-grid.solved .lamp:after{width:31%;height:31%;border-radius:0;clip-path:polygon(50% 0,61% 36%,100% 50%,61% 63%,50% 100%,38% 63%,0 50%,38% 36%);background:#e8c786;box-shadow:none;filter:drop-shadow(0 0 9px #e8c786)}.victory-finishing.lamp-frame{animation:victory-nightfall 1.4s ease both}.victory-finishing .lamp-grid.solved .lamp:after{animation:victory-board-star 1s ease var(--victory-delay) both}@keyframes victory-nightfall{0%{box-shadow:0 0 0 0 #eed7a680}45%{box-shadow:0 0 0 9px #eed7a620,0 0 35px #e2b15a38}100%{box-shadow:0 0 0 17px transparent}}@keyframes victory-board-star{0%{opacity:0;transform:scale(.25) rotate(-45deg)}45%{opacity:1;transform:scale(1.4) rotate(0)}100%{opacity:1;transform:scale(1)}}
