.sgr-last-light{--sgr-edge:#8f6c55;--sgr-ivory:#f3dfc7;--sgr-muted:#c8ab9b;--sgr-meter:#e6a85e;--sgr-fade:clamp(0, calc((1 - var(--sgr-light-level,1)) / .9), 1);--sgr-darkness:calc(.57 * var(--sgr-fade) + .4 * var(--sgr-fade) * var(--sgr-fade));isolation:isolate;max-inline-size:1880px;color:var(--sgr-ivory);background:#110c10;border:1px solid #735344;margin-inline:auto;position:relative;overflow:clip;box-shadow:inset 0 0 0 3px #130e10,inset 0 0 0 4px #5a3e32,0 22px 60px #0008}.sgr-last-light-atmosphere{z-index:-1;pointer-events:none;background:linear-gradient(90deg,#0000 30%,#110a0c44 66%,#120a0b75);position:absolute;inset:0}.sgr-last-light:after{z-index:5;pointer-events:none;content:"";opacity:var(--sgr-darkness);background:radial-gradient(at 24% 49%,#08060899,#050306 49%);transition:opacity .65s;position:absolute;inset:0}.sgr-last-light[data-phase=won]:after{opacity:0}.sgr-last-light:is([data-phase=paused],[data-phase=lost]):after{z-index:1}.sgr-last-light[data-sanity=critical]{--sgr-meter:#ff8365}.sgr-last-light-content{grid-template-columns:minmax(0,.83fr) minmax(0,1.25fr) minmax(142px,.34fr);grid-template-areas:".arena sidebar";align-items:start;gap:clamp(4px,.65vw,12px) clamp(10px,1.45vw,26px);min-height:clamp(470px,47vw,850px);padding:clamp(14px,2vw,38px);display:grid}.sgr-last-light-scene{z-index:-2;pointer-events:none;position:absolute;inset:0;container-type:size}.sgr-last-light-scene:before,.sgr-last-light-skeleton,.sgr-last-light-lantern-glow{aspect-ratio:1860/846;width:max(106cqw,219.74cqh);position:absolute;bottom:0;left:-6cqw}.sgr-last-light-scene:before{content:"";background:url(/sgr/last-light/cathedral.webp) 50%/100% 100% no-repeat}.sgr-last-light-skeleton:before,.sgr-last-light-skeleton:after,.sgr-last-light-skeleton-full{content:"";background:url(/sgr/last-light/azura-skeleton.webp) 50%/100% 100% no-repeat;transition:opacity 1s;position:absolute;inset:0}.sgr-last-light-skeleton:before{opacity:clamp(0, calc((.65 - var(--sgr-light-level,1)) / .51), 1);-webkit-mask-image:radial-gradient(6% 16% at 20.2% 31%,#000 64%,#0000 100%);mask-image:radial-gradient(6% 16% at 20.2% 31%,#000 64%,#0000 100%)}.sgr-last-light-skeleton:after{opacity:clamp(0, calc((.5 - var(--sgr-light-level,1)) / .4), 1);-webkit-mask-image:radial-gradient(5.5% 13% at 30.3% 46.4%,#000 65%,#0000 100%),radial-gradient(6.8% 8.7% at 26.3% 86.6%,#000 64%,#0000 100%);mask-image:radial-gradient(5.5% 13% at 30.3% 46.4%,#000 65%,#0000 100%),radial-gradient(6.8% 8.7% at 26.3% 86.6%,#000 64%,#0000 100%)}.sgr-last-light-skeleton-full{z-index:1;opacity:clamp(0, calc((.27 - var(--sgr-light-level,1)) / .17), 1);-webkit-mask-image:linear-gradient(90deg,#000 42%,#0000 53%);mask-image:linear-gradient(90deg,#000 42%,#0000 53%)}.sgr-last-light-lantern-glow{opacity:clamp(0, calc((var(--sgr-light-level,1) - .025) * 1.027), 1);mix-blend-mode:screen;transition:opacity .55s}.sgr-last-light-lantern-glow:before{content:"";background:radial-gradient(9% 20% at 27.8% 75.4%,#ee8c3378 1%,#a7471d33 39%,#0000 100%);animation:2.7s ease-in-out infinite alternate sgr-last-light-breathe;position:absolute;inset:0}.sgr-last-light-flame{width:5.6%;height:17%;position:absolute;top:75.4%;left:27.8%;transform:translate(-50%,-80.56%)}.sgr-last-light:is([data-sanity=unstable],[data-sanity=critical]) .sgr-last-light-lantern-glow:before{animation:2.4s ease-in-out infinite sgr-last-light-gutter}.sgr-last-light[data-phase=paused] .sgr-last-light-lantern-glow:before{animation-play-state:paused}.sgr-last-light[data-phase=won] .sgr-last-light-lantern-glow{opacity:1}.sgr-last-light[data-phase=won] .sgr-last-light-lantern-glow:before{animation:1.8s ease-out both sgr-last-light-dawn}@keyframes sgr-last-light-breathe{0%{opacity:.82}to{opacity:1}}@keyframes sgr-last-light-gutter{0%,to{opacity:.8}21%,59%{opacity:.17}31%,75%{opacity:.64}}@keyframes sgr-last-light-dawn{0%{opacity:.18}to{opacity:1}}.sgr-last-light-hud,.sgr-last-light-next,.sgr-last-light-overlay-card{background:linear-gradient(145deg,#281a19f2,#100b0df7 67%) padding-box padding-box;border:13px solid #0000;border-image:url(/sgr/last-light/panel-frame.webp) 80 102}.sgr-last-light-hud{grid-template-columns:minmax(0,1fr);justify-items:center;gap:9px;min-width:0;padding:5px 2px;display:grid}.sgr-last-light-audio{flex-wrap:wrap;justify-content:flex-end;gap:5px;display:flex}.sgr-last-light-audio .sgr-last-light-mute{padding-inline:6px}.sgr-last-light-timer{text-align:center;font:600 var(--ui-label)/1.2 var(--ui-font);color:var(--sgr-muted);display:grid}.sgr-last-light-timer :is(strong,output){color:var(--sgr-ivory);font:500 clamp(24px, 3vw, 43px)/1.1 var(--reading-font);font-variant-numeric:tabular-nums;text-shadow:0 0 15px #fb683c82;inline-size:5ch}.sgr-last-light-sanity{text-align:center;font:600 var(--ui-label)/1.3 var(--ui-font);font-variant-numeric:tabular-nums;justify-items:center;gap:4px;display:grid}.sgr-last-light-meter{filter:drop-shadow(0 0 4px #b955204f);background:url(/sgr/last-light/meter-frame.webp) 50%/100% 100% no-repeat;width:clamp(26px,2.7vw,50px);height:clamp(153px,14vw,265px);position:relative}.sgr-last-light-meter>span{clip-path:inset(calc(100% - var(--sgr-meter-fill)) 0 0 0);filter:drop-shadow(0 0 4px var(--sgr-meter));background:url(/sgr/last-light/meter-light.webp) 50%/100% 100% no-repeat;transition:clip-path .2s linear;position:absolute;inset:11% 32% 11% 29%}.sgr-last-light :is(.sgr-last-light-action,.sgr-last-light-mute){cursor:pointer;min-height:44px;color:var(--sgr-ivory);border:1px solid var(--sgr-edge);font:600 var(--ui-label)/1.3 var(--ui-font);background:linear-gradient(#48302a,#23161c);padding:7px 12px}.sgr-last-light :is(.sgr-last-light-action,.sgr-last-light-mute):hover{background:#63352e}.sgr-last-light :focus-visible{outline-offset:-2px;outline:2px solid #ffcf8a}.sgr-last-light-arena{aspect-ratio:1;filter:drop-shadow(0 5px 12px #000a);grid-area:arena;min-width:0;position:relative}.sgr-last-light-arena:after{z-index:4;pointer-events:none;content:"";background:url(/sgr/last-light/board-frame.webp) 50%/contain no-repeat;position:absolute;inset:0}.sgr-last-light-board{isolation:isolate;aspect-ratio:1;touch-action:none;-webkit-user-select:none;user-select:none;background:radial-gradient(at 45% 40%,#2a1717,#100c10 76%);grid-template-rows:repeat(10,minmax(0,1fr));grid-template-columns:repeat(10,minmax(0,1fr));display:grid;position:absolute;inset:20.8% 16.7% auto;overflow:hidden}.sgr-last-light-cell{cursor:pointer;background:#0c070838;border:1px solid #b08b6255;border-width:0 1px 1px 0;min-width:0;min-height:0;padding:0}.sgr-last-light-cell[data-next-column=true]{background:#bd835015}.sgr-last-light-cell[data-selected=true]{background:#b37a484b;box-shadow:inset 0 0 0 2px #eec185}.sgr-last-light-cell:not(:disabled):hover{box-shadow:inset 0 0 0 1px #f2b8888c}.sgr-last-light-cell:focus-visible{z-index:2}.sgr-last-light-pieces{pointer-events:none;position:absolute;inset:0}.sgr-last-light-piece{width:10%;height:10%;transition:left .14s ease-out, top .14s ease-in, translate var(--sgr-drop-duration) ease-in;position:absolute}.sgr-last-light-piece[data-motion=spawn]{transition-duration:var(--sgr-drop-duration)}@starting-style{.sgr-last-light-piece[data-motion=spawn]{translate:0 var(--sgr-piece-drop,-100%)}}.sgr-last-light-piece[data-clearing=true]{z-index:2}.sgr-last-light-shatter,.sgr-last-light-shard,.sgr-last-light-spark-flight,.sgr-last-light-shatter:after{position:absolute;inset:0}.sgr-last-light-shard{clip-path:var(--shard-clip);animation:sgr-last-light-shatter var(--shatter-duration) linear both}.sgr-last-light-shard>span{animation:sgr-last-light-glass-face var(--shatter-duration) ease-out both}.sgr-last-light-shatter:after{content:"";background:radial-gradient(ellipse, #fff5dcbd 0%, color-mix(in srgb, var(--shatter-color) 52%, transparent) 20%, transparent 60%);animation:sgr-last-light-fracture-flash var(--shatter-duration) ease-out both}.sgr-last-light-spark-flight{animation:sgr-last-light-spark-flight calc(var(--shatter-duration) - var(--spark-delay)) cubic-bezier(.13,.61,.33,1) var(--spark-delay) both;place-items:center;display:grid}.sgr-last-light-spark{width:var(--spark-size);aspect-ratio:1;background:radial-gradient(circle, #fff9e2 8%, var(--shatter-color) 32%, transparent 71%);position:absolute}.sgr-last-light-spark:after{content:"";clip-path:polygon(50% 0,57% 43%,100% 50%,57% 57%,50% 100%,43% 57%,0 50%,43% 43%);background:linear-gradient(135deg, var(--shatter-color), #fff8df 48%, var(--shatter-color));animation:.19s ease-in-out 3 alternate both sgr-last-light-spark-twinkle;position:absolute;inset:-13%}@keyframes sgr-last-light-shatter{0%,7%{opacity:1;transform:scale(1)}26%{transform:translate(calc(var(--shard-x) * .49), calc(var(--shard-y) * .56)) rotate(calc(var(--shard-turn) * .41)) scale(.95)}60%{transform:translate(calc(var(--shard-x) * .78), calc(var(--shard-y) * .88 + 5%)) rotate(calc(var(--shard-turn) * .75)) scale(.79);opacity:.95}to{transform:translate(var(--shard-x), calc(var(--shard-y) + 21%)) rotate(var(--shard-turn)) scale(.48);opacity:0}}@keyframes sgr-last-light-glass-face{0%{filter:none}11%{filter:brightness(1.75) drop-shadow(0 0 2px var(--shatter-color))}34%{background-color:color-mix(in srgb, var(--shatter-color) 17%, transparent)}to{filter:none;background-color:#0000}}@keyframes sgr-last-light-spark-flight{0%{opacity:0;transform:scale(.25)}15%{opacity:1}63%{opacity:.88}to{transform:translate(var(--spark-x), var(--spark-y)) scale(.58);opacity:0}}@keyframes sgr-last-light-spark-twinkle{0%{opacity:.82;transform:scale(.7)rotate(20deg)}to{opacity:1;transform:scale(1.26)rotate(45deg)}}@keyframes sgr-last-light-fracture-flash{0%{opacity:0;transform:scale(.3)}13%{opacity:.75;transform:scale(.65)}65%,to{opacity:0;transform:scale(1.6)}}.sgr-last-light-piece-art{background:var(--sgr-piece-image) center / 100% 100% no-repeat;width:100%;height:100%;display:block}.sgr-last-light-piece-art[data-light=lantern]{--sgr-piece-image:url(/sgr/last-light/lantern.png)}.sgr-last-light-piece-art[data-light=candle]{--sgr-piece-image:url(/sgr/last-light/candle.png)}.sgr-last-light-piece-art[data-light=crystal]{--sgr-piece-image:url(/sgr/last-light/crystal.png)}.sgr-last-light-piece-art[data-light=flower]{--sgr-piece-image:url(/sgr/last-light/flower.png)}.sgr-last-light-piece-art[data-light=spark]{--sgr-piece-image:url(/sgr/last-light/spark.png)}.sgr-last-light-sidebar{grid-area:sidebar;grid-template-rows:auto auto 1fr auto;align-self:stretch;align-items:start;gap:clamp(8px,1.3vw,20px);min-width:0;margin-block-start:clamp(2px,1vw,19px);display:grid}.sgr-last-light-next{text-align:center;justify-items:center;padding:clamp(6px,1.15vw,14px);display:grid}.sgr-last-light-sidebar h3{font:600 clamp(13px, 1.25vw, 19px)/1.25 var(--reading-font);color:var(--sgr-ivory);letter-spacing:.06em;margin:0 0 7px}.sgr-last-light-next .sgr-last-light-piece-art{width:clamp(48px,6vw,88px);height:clamp(48px,6vw,88px)}.sgr-last-light-overlay{z-index:3;background:#120b10ac;place-items:center;padding:6px;display:grid;position:absolute;inset:20.8% 16.7% 12.6%}.sgr-last-light-overlay-card{text-align:center;background:radial-gradient(at 50% 0,#412226,#1a1115 75%);width:min(100%,27rem);padding:clamp(6px,1.9vw,24px) 8px;box-shadow:0 6px 24px #000a}.sgr-last-light-overlay-card :is(h2,h3){font:500 clamp(24px, 3.5vw, 49px)/1 var(--reading-font);margin:0}.sgr-last-light-overlay-card p{color:var(--sgr-muted);font:400 var(--ui-text)/1.45 var(--reading-font);margin:12px 0 16px}.sgr-last-light[data-phase=won] .sgr-last-light-overlay{background:radial-gradient(#6b372287,#211119d6)}.sgr-last-light[data-phase=won] .sgr-last-light-overlay-card{animation:.9s ease-out both sgr-last-light-rise}@keyframes sgr-last-light-rise{0%{opacity:0;transform:translateY(10px)}}.sgr-last-light-instructions{text-align:start;color:var(--sgr-muted);font:400 clamp(1rem, 1.2vw, 1.0625rem)/1.38 var(--reading-font);margin:9px 0 12px;padding-inline-start:1.2em}.sgr-last-light-instructions li+li{margin-top:5px}@media (width>=951px){.sgr-last-light-arena{width:119%;margin-inline:-9.5%}}@media (width<=950px){.sgr-last-light-content{grid-template-columns:minmax(0,1fr) minmax(130px,.24fr);grid-template-areas:"arena sidebar"}}@media (width<=650px){.sgr-last-light-content{padding:10px;grid-template:"arena""sidebar"/minmax(0,1fr);padding-top:clamp(188px,58vw,280px)}.sgr-last-light-scene{height:clamp(215px,65vw,320px);bottom:auto;-webkit-mask-image:linear-gradient(#000 81%,#0000);mask-image:linear-gradient(#000 81%,#0000)}.sgr-last-light-scene:before,.sgr-last-light-skeleton,.sgr-last-light-lantern-glow{width:max(180cqw,219.74cqh);left:0}.sgr-last-light-arena{width:120%;margin-inline:-10%}.sgr-last-light-sidebar{grid-template-rows:auto auto auto;grid-template-columns:minmax(0,.8fr) minmax(0,1.2fr);justify-self:center;width:min(100%,360px)}.sgr-last-light-status,.sgr-last-light-audio{grid-column:1/-1}.sgr-last-light-meter{height:105px}.sgr-last-light-overlay-card{padding:8px 5px}}@media (width<=420px){.sgr-last-light[data-phase=intro] .sgr-last-light-overlay{z-index:6;align-items:start;inset-inline:8%;overflow:auto}}@media (prefers-reduced-motion:reduce){.sgr-last-light *,.sgr-last-light :before,.sgr-last-light :after{transition-duration:.01ms!important;animation-duration:.01ms!important}}.sgr-last-light-exhibit{scroll-margin-top:36px}.sgr-last-light-exhibit.world-window-section{padding-inline:clamp(16px,3.5vw,66px)}.sgr-last-light-legacy-anchor{position:absolute;top:0}.sgr-last-light-exhibit>.exhibit-heading{max-inline-size:1880px;margin-inline:auto}.sgr-last-light-status{color:#f0c398;min-height:1.5em;font:500 var(--ui-label)/1.45 var(--ui-font);margin:0}.sgr-last-light-cell[data-overflow-column=true]{background:#aa362955;box-shadow:inset 0 0 0 1px #df6b5866}.sgr-last-light:is([data-phase=paused],[data-phase=lost]) .sgr-last-light-arena{z-index:2}.sgr-last-light:is([data-phase=paused],[data-phase=lost]) .sgr-last-light-board{filter:brightness(calc(1 - var(--sgr-darkness)))}.sgr-last-light-result-actions{flex-wrap:wrap;justify-content:center;gap:8px;display:flex}.sgr-last-light-result-actions [aria-disabled=true]{opacity:.7;cursor:default}.sgr-last-light :is(.sgr-last-light-audio .sgr-last-light-mute,.sgr-last-light[data-phase=won] .sgr-last-light-action){block-size:44px;inline-size:118px;padding:4px 6px}
