body:has(.lights-game){margin:0;background:#fdfbf7}.lights-game{--lo-ink:#51465b;--lo-muted:#776b80;--lo-purple:#806293;max-width:1050px;margin:auto;padding:18px 24px 48px;color:var(--lo-ink);font-family:var(--ui2-font-family);line-height:1.5}.lights-game *{box-sizing:border-box}.lights-game [hidden]{display:none!important}.lights-game button{font:inherit;cursor:pointer;min-height:46px;border:1px solid #d8cbdc;border-radius:15px;color:var(--lo-ink);background:#fffafc;font-weight:700;line-height:1.3;touch-action:manipulation;transition:background-color .16s,border-color .16s,box-shadow .16s}.lights-game button:disabled{opacity:.45;cursor:default}.lights-game button:hover:not(:disabled){background:#f1e8f5}.lights-game button:focus-visible,.lights-game a:focus-visible,.lights-game summary:focus-visible{outline:3px solid #77548d;outline-offset:4px}.lo-skip{position:fixed;left:12px;top:-100px;z-index:10000;padding:14px;background:#fff;color:#51465b}.lo-skip:focus{top:12px}.lo-top{display:flex;align-items:center;justify-content:space-between;gap:10px;font-size:13px}.lo-top a{display:inline-flex;align-items:center;min-height:44px;color:var(--lo-ink);text-decoration:none}.lo-top>span{background:#eee8f3;color:#776086;padding:7px 12px;border-radius:20px;font-size:12px}.lo-heading{margin:20px 0 26px}.lo-eyebrow{font-size:11px;font-weight:800;letter-spacing:.11em;color:#846a93;margin:0 0 8px}.lo-heading h1{font-size:clamp(33px,5vw,47px);line-height:1.2;letter-spacing:-.035em;margin:0}.lo-heading>p:last-child{margin:12px 0 0;color:var(--lo-muted);font-size:16px}.lo-home{display:grid;grid-template-columns:1.1fr 1fr;gap:30px;padding:22px;background:#faf7fb;border:1px solid #e4d9e9;border-radius:30px;box-shadow:0 12px 38px #8572980a}.lo-cover{position:relative;align-self:center;background:#f0edf7;overflow:hidden;border-radius:23px}.lo-cover img{display:block;width:100%;height:auto}.lo-cover>span{position:absolute;top:14px;left:14px;font-size:10px;letter-spacing:.05em;font-weight:750;background:#fffaf3ed;border:1px solid #ddd0c5;border-radius:20px;padding:7px 11px;color:#81687b}.lo-intro{align-self:center;padding:7px 7px 7px 0}.lo-dialogue{font-size:15px;line-height:1.9;margin:0 0 19px}.lo-example{display:flex;gap:12px;align-items:center;margin-bottom:14px}.lo-example>svg{width:68px;height:68px;flex-shrink:0}.lo-example strong{font-size:14px}.lo-example p{font-size:12px;line-height:1.7;color:var(--lo-muted);margin:5px 0 0}.lo-how{font-size:13px;padding-left:18px;margin:0 0 23px;display:grid;gap:9px}.lo-how li::marker{color:#b499c6}.lights-game .lo-primary{display:flex;justify-content:space-between;align-items:center;gap:14px;width:100%;background:#e5c6d7;color:#604259;border-color:#cfaac1;padding:14px 20px;box-shadow:0 4px 0 #caa2ba}.lights-game .lo-primary:hover:not(:disabled){background:#dfb6cc}.lo-note{font-size:11px;color:var(--lo-muted);margin:14px 0 0}.lo-level{display:flex;justify-content:space-between;align-items:center;gap:12px;margin:8px 0 10px;font-size:12px;color:#786887}.lo-level ol{display:flex;gap:7px;list-style:none;margin:0;padding:0}.lo-level li{display:grid;place-items:center;width:28px;height:28px;border-radius:50%;border:1px solid #d7c8df;background:#faf7fc;color:#84768d;font-size:12px;font-weight:750}.lo-level li[aria-current]{border:2px solid #9976ac;background:#e8ddf0;color:#634a76}.lo-level li.is-done{background:#deeee4;color:#52705e;border-color:#b8d3c4}#lo-title{font-size:24px;line-height:1.3;margin:0 0 14px;letter-spacing:-.02em}.lo-workspace{display:grid;grid-template-columns:minmax(0,500px) minmax(260px,1fr);gap:36px;align-items:start}.lo-play{min-width:0}.lo-scorebar{display:flex;justify-content:space-between;align-items:center;gap:12px;max-width:390px;margin:0 auto 6px;font-size:13px}.lo-scorebar b{font-size:24px;line-height:1.2;margin:0 3px;font-variant-numeric:tabular-nums}.lo-scorebar>span:last-child{color:#785985}.lo-house{--lo-wall:#d4e6da;--lo-edge:#a4bfad;width:100%;max-width:390px;margin:auto;user-select:none;-webkit-user-select:none;-webkit-touch-callout:none}.lo-house[data-theme="1"]{--lo-wall:#efdad6;--lo-edge:#ceb1b0}.lo-house[data-theme="2"]{--lo-wall:#e1d9ed;--lo-edge:#bfb0cf}.lo-house[data-theme="3"]{--lo-wall:#d7e6ef;--lo-edge:#abc4d1}.lo-house[data-theme="4"]{--lo-wall:#e5e4d4;--lo-edge:#bebda8}.lo-roof{margin:0 -3px -1px}.lo-roof svg{display:block;width:100%;height:auto}.lo-facade{position:relative;background:var(--lo-wall);border:1.5px solid var(--lo-edge);border-top-width:0;padding:16px 16px 0;border-radius:9px 9px 24px 24px;box-shadow:inset 0 0 0 6px #fffaf238,0 6px 0 #cfccd72b,0 15px 25px #8c75950a}.lo-board{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:8px;touch-action:none}.lo-board[data-cols="5"]{grid-template-columns:repeat(5,minmax(0,1fr))}.lights-game .lo-room{position:relative;min-width:44px;min-height:44px;width:100%;aspect-ratio:1;border-radius:15px;padding:0;background:#e4ebef;border:1.5px solid #acbeca;box-shadow:inset 0 2px 0 #fffaf58c,0 3px 0 #b3c7bd70;touch-action:none;overflow:visible;-webkit-tap-highlight-color:transparent}.lights-game .lo-room:hover:not(:disabled){background:#e4ebef}.lights-game .lo-room.is-on,.lights-game .lo-room.is-on:hover:not(:disabled){background:#f9e2aa;border-color:#c6a76a;box-shadow:inset 0 2px 0 #fff9db,0 3px 0 #d0b47d55}.lights-game .lo-room:disabled{opacity:1}.lo-room>svg{display:block;width:100%;height:100%;pointer-events:none}.lo-room .lo-lamp{display:none}.lo-room.is-on .lo-lamp{display:block}.lo-room.is-on .lo-moon{display:none}.lo-room-state{position:absolute;bottom:4px;left:0;right:0;text-align:center;font-size:9px;line-height:1;font-weight:750;letter-spacing:.06em;color:#6e6280;pointer-events:none}.is-on .lo-room-state{color:#80602c}.lo-room.is-preview{outline:2.5px dashed #856399;outline-offset:1px;z-index:1}.lo-room.is-origin{outline:3px solid #74518b;outline-offset:1px}.lo-preview-dot{display:none;position:absolute;right:-5px;top:-6px;width:20px;height:20px;border-radius:50%;background:#f8f0fc;color:#714d86;border:1.5px solid #9875af;place-items:center;font-size:17px;line-height:1;pointer-events:none}.lo-preview-dot::after{content:'↺'}.is-preview .lo-preview-dot{display:grid}.lo-doorstep{display:flex;justify-content:center;align-items:end;gap:9px;height:28px;margin:4px 0 -6px}.lo-doorstep i{display:block;width:65px;height:18px;border-radius:10px 10px 7px 7px;background:#c8badb;border:1px solid #aa96be;box-shadow:0 3px 0 #b4a5c76b}.lo-doorstep span{display:block;width:8px;height:4px;background:#b1c7b2;border-radius:8px}.lo-feedback{font-size:13px;min-height:42px;line-height:1.5;text-align:center;color:#785983;margin:20px auto 0;max-width:390px}.lo-side{margin-top:35px;background:#f7f3f9;border:1px solid #e2d6e9;border-radius:23px;padding:24px}.lo-rule-card{display:flex;align-items:center;gap:14px}.lo-mini{flex:0 0 68px}.lo-mini svg{display:block;width:100%;height:auto}.lo-rule-card strong{font-size:14px}.lo-rule-card p{font-size:12px;color:var(--lo-muted);margin:6px 0 0;line-height:1.7}.lo-control-note{font-size:12px;color:var(--lo-muted);text-align:center;margin:17px 0}.lo-tools{display:grid;grid-template-columns:1fr 1fr;gap:10px}.lo-tools button{font-size:13px;min-height:48px;background:#fffafc}.lo-clear{border-top:1px solid #ddcfe6;margin-top:21px;padding-top:18px;text-align:center}.lo-clear-moon{font-size:38px;color:#9c80b4;display:block;line-height:1.2}.lo-clear>strong{display:block;color:#5e7766;font-size:17px;margin:8px 0 18px}.lo-help{margin-top:18px;padding-top:7px;border-top:1px solid #e0d4e7}.lo-help summary{font-size:12px;min-height:44px;align-content:center;cursor:pointer;font-weight:650}.lo-help p{font-size:12px;line-height:1.8;color:var(--lo-muted)}.lo-results{max-width:620px;margin:22px auto;padding:32px;border:1px solid #dfd2e8;border-radius:28px;background:linear-gradient(140deg,#f2ecf8,#f6f5e9);text-align:center}.lo-goodnight{max-width:160px;margin:17px auto 7px}.lo-goodnight svg{width:100%;height:auto;display:block}.lo-results h2{font-size:27px;line-height:1.4;margin:8px 0 12px}.lo-results>p:not(.lo-eyebrow){font-size:14px;color:var(--lo-muted)}.lo-results ol{list-style:none;text-align:left;padding:0;margin:22px 0 26px}.lo-results li{display:flex;justify-content:space-between;gap:10px;border-bottom:1px solid #e0d7e5;padding:12px 0;font-size:14px}.lo-results li b{white-space:nowrap}.lo-results button{max-width:360px;margin:auto}
@media(max-width:700px){.lights-game{padding:10px 16px 30px}.lo-top{font-size:12px}.lo-top>span{font-size:10px;padding:7px 9px}.lo-heading{margin:14px 0 21px}.lo-heading h1{font-size:34px}.lo-heading>p:last-child{font-size:14px;margin-top:8px}.lo-home{display:block;padding:12px;border-radius:23px}.lo-cover{border-radius:18px}.lo-cover img{max-height:245px;object-fit:cover}.lo-cover>span{font-size:9px;top:10px;left:10px}.lo-intro{padding:18px 7px 8px}.lo-dialogue{font-size:14px;margin-bottom:17px}.lo-example{gap:10px}.lo-example>svg{width:58px;height:58px}.lo-example strong{font-size:12px}.lo-example p{font-size:11px;margin-top:3px}.lo-how{font-size:12px;gap:8px;margin-bottom:20px}.lo-note{font-size:10px}.lo-level{margin:4px 0 8px;font-size:10px}.lo-level ol{gap:6px}.lo-level li{width:24px;height:24px;font-size:11px}#lo-title{font-size:21px;margin-bottom:10px}.lo-workspace{display:block;max-width:440px;margin:auto}.lo-scorebar{max-width:324px;font-size:12px;margin-bottom:4px}.lo-scorebar b{font-size:22px}.lo-house{max-width:324px}.lo-facade{padding:10px 10px 0;border-radius:7px 7px 21px 21px}.lo-board{gap:6px}.lights-game .lo-room{border-radius:12px}.lo-room-state{font-size:8px;bottom:3px}.lo-doorstep{height:24px;margin-top:3px}.lo-doorstep i{height:16px;width:54px}.lo-feedback{font-size:12px;margin-top:17px;min-height:35px;max-width:324px}.lo-side{padding:0;margin:0;background:none;border:0}.lo-rule-card{justify-content:center;gap:10px;padding:9px 12px;background:#f3edf8;border-radius:14px;max-width:350px;margin:auto}.lo-mini{flex-basis:43px}.lo-rule-card strong{font-size:12px}.lo-rule-card p{font-size:10px;line-height:1.5;margin:3px 0 0}.lo-control-note{font-size:11px;margin:11px 0}.lo-tools button{min-height:46px;font-size:13px}.lo-clear{margin-top:16px;padding-top:13px}.lo-clear-moon{display:none}.lo-clear>strong{font-size:15px;margin:0 0 12px}.lo-help{margin-top:12px}.lo-results{padding:24px 18px;margin-top:18px}.lo-results h2{font-size:24px}.lo-results li{font-size:12px}.lo-results>p:not(.lo-eyebrow){font-size:12px}.lo-goodnight{max-width:130px}.lo-results .lo-eyebrow{font-size:10px}}
@media(max-width:700px) and (max-height:650px){.lo-house{max-width:270px}.lo-scorebar{max-width:290px}.lo-feedback{margin-top:14px}.lo-doorstep{height:20px}.lo-room-state{font-size:8px}}
@media(prefers-reduced-motion:reduce){.lights-game *{animation:none!important;transition:none!important;scroll-behavior:auto!important}}
#lo-game[data-phase="complete"] .lo-rule-card,#lo-game[data-phase="complete"] .lo-control-note,#lo-game[data-phase="complete"] .lo-help{display:none}
