.lightPuzzle{width:100%;--brightness:0;--glow-alpha:.08;--glow-blur:8px;position:relative}
.lightBlocks{display:grid;grid-template-columns:repeat(3,1fr);gap:10px;padding:10px 0 28px}
.lightCell{aspect-ratio:1;position:relative;display:flex;align-items:center;justify-content:center;border:1px solid #606060;background:#202123;border-radius:12px;isolation:isolate}
.lightCell:before{content:'';position:absolute;inset:-7px;background:#f4e9d5;border-radius:15px;z-index:-1;filter:blur(var(--glow-blur));opacity:var(--glow-alpha);transition:filter .18s,opacity .18s;pointer-events:none}
.lightCell:after{content:'';position:absolute;inset:0;background:#202123;border-radius:11px;z-index:-1}
.lightText{font-size:clamp(18px,6vw,28px);font-weight:300;line-height:1;min-width:1em;text-align:center;transition:opacity .16s}
.lightText.insertAfter{position:absolute;right:8%;top:55%;font-size:clamp(17px,5.8vw,26px);text-shadow:-2px -1px 3px #000;border-bottom:1px solid #ffffff28}
.lightText.insertBefore{position:absolute;left:8%;top:25%;text-shadow:0 3px 5px #000}
#lightBar{height:34px;position:relative;cursor:ew-resize;touch-action:none;outline-offset:5px}
#lightBar:before,#lightBar:after{content:'';position:absolute;top:14px;left:0;height:5px;border-radius:2px;pointer-events:none}
#lightBar:before{width:100%;background:#333;border:1px solid #606060}#lightBar:after{width:var(--fill,0%);background:#e1e0db;box-shadow:0 0 12px #fff3}
.lightLabels{display:flex;justify-content:space-between;color:#ddd;font-size:11px;letter-spacing:.14em;padding:0 1px}
#app[data-stage^="2"] #question,body.keyboardOpen #app[data-stage^="2"] #question{position:relative!important;top:auto!important;transform:none!important;height:54px;display:flex;justify-content:center;align-items:center;white-space:pre-line}
#app[data-stage^="2"] #play,body.keyboardOpen #app[data-stage^="2"] #play{inset:60px 0 0;justify-content:center}
.cubeModeTools{display:flex;width:100%;gap:4px;margin-bottom:5px;flex:none;z-index:4}
.cubeModeTools button{font-size:9px;min-height:29px;padding:0 7px;flex:1;white-space:nowrap}.cubeModeTools button.active{background:#dededb;color:#111}
#app[data-stage^="4"] .cluebar{margin-top:2px}#app[data-stage^="4"] .cluebar .clue{font-size:12px}#app[data-stage^="4"] .cluebar small{font-size:8px}
.turnControls{display:flex;justify-content:center;gap:8px;flex:none;z-index:4;height:32px}.turnControls button{min-height:32px;width:40px;font-size:20px;padding:0}.turnControls select{color:#ddd;background:#181818;border:1px solid #555;border-radius:7px;padding:0 14px;font-size:12px}
.rubikTurning~.interactionNote{display:none}.rubikTurning .face{transition:color .2s,background 1s,box-shadow 1s;}
.face.whiteBlock{background:#eeeeea!important;color:#1b1b1b;border-color:#aaa;box-shadow:inset 0 0 0 1px #fff9}
.face.path{outline:1px solid #b7bec7;outline-offset:-4px}.face.whiteBlock.path{outline-color:#888}
.face.routeStart:before{content:'';position:absolute;width:4px;height:4px;background:currentColor;border-radius:50%;top:4px;left:4px}
.routeLink{position:absolute;left:0;top:0;height:2px;background:#a5b9ca;transform-origin:0 50%;pointer-events:none;opacity:.9;transform-style:preserve-3d}
.routeLink:after{content:'';position:absolute;right:8px;top:-3px;border-left:6px solid #a5b9ca;border-top:4px solid transparent;border-bottom:4px solid transparent}
.face.lettersHidden{color:transparent!important;text-shadow:none!important}
.rubikTurning .face.path{outline:0}.rubikTurning .face{color:#eee}.rubikTurning .whiteBlock{color:#151515}
.rubikRevealed .face{background:var(--face-color,#333)!important;outline:none;color:#fff;transition:background 1s,color .6s}
.rubikRevealed .whiteBlock{color:#181818}
.rubikRevealed .face.downEdge{animation:edgeReveal 1.4s var(--edge-delay) both}
@keyframes edgeReveal{from{box-shadow:inset 0 0 0 0 #fff,0 0 0 #fff0}to{box-shadow:inset 0 0 0 2px #fff,0 0 13px #fff9}}
.colorRead{display:inline-flex;align-items:center;gap:10px;font-size:12px}.colorRead i{display:inline-block;width:15px;height:15px;background:var(--swatch);border:1px solid #fff6;border-radius:3px}
#app[data-stage^="4"] #question{line-height:1.2}#app[data-stage^="4"] #question small{font-size:11px;margin-top:7px;letter-spacing:.04em}
@media(max-height:680px){.cubeModeTools button{font-size:8px;padding:0 3px}.lightBlocks{padding-bottom:15px}.lightCell{border-radius:8px}.turnControls{height:28px}.turnControls button{min-height:28px}.interactionNote{font-size:8px}}
