:root{--bg:#14110e;--surface:#1f1b16;--surface-2:#2a241d;--border:#3a3228;--text:#f3ece1;--text-dim:#b3a892;--accent:#b8860b;--gold:#d4af37;--beginner:#2e7d32;--intermediate:#b45309;--advanced:#c62828;--lightningcss-light: ;--lightningcss-dark:initial;color-scheme:dark;font-family:ui-sans-serif,system-ui,-apple-system,Segoe UI,Roboto,Helvetica,Arial,sans-serif}*{box-sizing:border-box}html,body{background:var(--bg);color:var(--text);min-height:100vh;margin:0;padding:0}a{color:inherit;text-decoration:none}.page{max-width:1040px;margin:0 auto;padding:32px 20px 64px}.app-header{border-bottom:1px solid var(--border);flex-wrap:wrap;justify-content:space-between;align-items:baseline;gap:12px;margin-bottom:28px;padding-bottom:20px;display:flex}.app-title{letter-spacing:.3px;margin:0;font-size:28px}.app-title .knight{color:var(--accent);margin-right:8px}.app-subtitle{color:var(--text-dim);margin:4px 0 0;font-size:14px}.back-link{color:var(--accent);font-size:14px;font-weight:600}.back-link:hover{text-decoration:underline}.filter-bar{flex-wrap:wrap;gap:8px;margin-bottom:24px;display:flex}.filter-btn{background:var(--surface);border:1px solid var(--border);color:var(--text-dim);cursor:pointer;border-radius:999px;padding:8px 16px;font-size:14px;font-weight:600;transition:all .15s}.filter-btn:hover{border-color:var(--accent);color:var(--text)}.filter-btn.active{background:var(--accent);border-color:var(--accent);color:#1a1408}.puzzle-grid{grid-template-columns:repeat(auto-fill,minmax(280px,1fr));gap:16px;display:grid}.puzzle-card{background:var(--surface);border:1px solid var(--border);border-radius:14px;padding:20px;transition:transform .15s,border-color .15s;display:block}.puzzle-card:hover{border-color:var(--accent);transform:translateY(-2px)}.puzzle-card__top{justify-content:space-between;align-items:flex-start;gap:10px;display:flex}.puzzle-card__title{margin:0;font-size:18px}.puzzle-card__desc{color:var(--text-dim);margin:12px 0 0;font-size:14px;line-height:1.5}.badge{text-transform:uppercase;letter-spacing:.6px;color:#fff;white-space:nowrap;border-radius:999px;padding:4px 10px;font-size:11px;font-weight:700;display:inline-block}.detail-layout{grid-template-columns:minmax(280px,1fr) minmax(260px,360px);align-items:start;gap:32px;display:grid}@media (width<=800px){.detail-layout{grid-template-columns:1fr}}.board-wrap{width:100%}.detail-panel{background:var(--surface);border:1px solid var(--border);border-radius:14px;padding:24px}.detail-panel h1{margin:0 0 8px;font-size:22px}.detail-desc{color:var(--text-dim);margin:0 0 20px;line-height:1.5}.status{border-radius:10px;margin-bottom:16px;padding:14px 16px;font-size:14px;font-weight:600;line-height:1.4}.status--neutral{background:var(--surface-2);color:var(--text-dim)}.status--wrong{color:#ef9a9a;background:#c6282829;border:1px solid #c6282866}.status--correct{color:#a5d6a7;background:#388e3c29;border:1px solid #388e3c66}.status--solved{color:var(--gold);background:#d4af3729;border:1px solid #d4af3773}.status--solution{color:var(--gold);background:#b8860b29;border:1px solid #b8860b73}.attempts{color:var(--text-dim);align-items:center;gap:8px;margin-bottom:20px;font-size:13px;display:flex}.attempt-dot{border:1.5px solid var(--border);border-radius:50%;width:12px;height:12px}.attempt-dot.used{background:var(--advanced);border-color:var(--advanced)}.btn-row{flex-direction:column;gap:10px;display:flex}.btn{cursor:pointer;border:none;border-radius:10px;padding:12px 16px;font-size:15px;font-weight:700;transition:filter .15s,opacity .15s}.btn:hover{filter:brightness(1.08)}.btn:disabled{opacity:.4;cursor:not-allowed}.btn--primary{background:var(--accent);color:#1a1408}.btn--ghost{color:var(--text);border:1px solid var(--border);background:0 0}.btn--solution{background:var(--gold);color:#2a2106}.move-list{color:var(--text-dim);margin-top:20px;font-size:13px}.move-list h2{text-transform:uppercase;letter-spacing:.6px;color:var(--text-dim);margin:0 0 8px;font-size:12px}.move-chips{flex-wrap:wrap;gap:6px;display:flex}.move-chip{background:var(--surface-2);border:1px solid var(--border);border-radius:6px;padding:4px 8px;font-family:ui-monospace,SFMono-Regular,Menlo,monospace;font-size:12px}.move-chip.played{background:var(--accent);color:#1a1408;border-color:var(--accent)}.empty{color:var(--text-dim);padding:40px 0}.rating-pill{color:var(--gold);white-space:nowrap;background:#d4af371f;border:1px solid #d4af3759;border-radius:999px;padding:3px 9px;font-size:12px;font-weight:700;display:inline-block}.theme-tag{color:var(--text-dim);background:var(--surface-2);border:1px solid var(--border);border-radius:6px;padding:3px 8px;font-family:ui-monospace,SFMono-Regular,Menlo,monospace;font-size:11px;display:inline-block}.puzzle-card__foot,.puzzle-meta{flex-wrap:wrap;align-items:center;gap:6px;margin-top:14px;display:flex}.puzzle-meta{margin-top:0;margin-bottom:18px}.inline-link{color:var(--accent);font-weight:600}.inline-link:hover{text-decoration:underline}.lichess-link{color:var(--accent);margin-top:18px;font-size:13px;font-weight:600;display:inline-block}.lichess-link:hover{text-decoration:underline}.not-found{text-align:center;padding-top:64px}.not-found__glyph{color:var(--accent);margin:0 0 16px;font-size:64px;line-height:1}.not-found h1{margin:0 0 12px;font-size:28px}.not-found__text{color:var(--text-dim);margin:0 0 24px}.not-found__links{flex-wrap:wrap;justify-content:center;gap:20px;display:flex}.btn-link{color:var(--accent);font-weight:600}.btn-link:hover{text-decoration:underline}@font-face{font-family:Jost Variable;font-style:normal;font-display:swap;font-weight:100 900;src:url(/assets/jost-cyrillic-wght-normal-CjwCQKo9.woff2)format("woff2-variations");unicode-range:U+301,U+400-45F,U+490-491,U+4B0-4B1,U+2116}@font-face{font-family:Jost Variable;font-style:normal;font-display:swap;font-weight:100 900;src:url(/assets/jost-latin-ext-wght-normal-BDUtSsKd.woff2)format("woff2-variations");unicode-range:U+100-2BA,U+2BD-2C5,U+2C7-2CC,U+2CE-2D7,U+2DD-2FF,U+304,U+308,U+329,U+1D00-1DBF,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF}@font-face{font-family:Jost Variable;font-style:normal;font-display:swap;font-weight:100 900;src:url(/assets/jost-latin-wght-normal-ObQm3Zd1.woff2)format("woff2-variations");unicode-range:U+??,U+131,U+152-153,U+2BB-2BC,U+2C6,U+2DA,U+2DC,U+304,U+308,U+329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD}:is(html:has(.landing),html:has(.gallery)){--lightningcss-light:initial;--lightningcss-dark: ;color-scheme:light;-webkit-text-size-adjust:100%}html:has(.landing){scroll-behavior:smooth}:is(html:has(.landing),html:has(.gallery),body:has(.landing),body:has(.gallery)){background:#e2857a}@media (prefers-reduced-motion:reduce){html:has(.landing){scroll-behavior:auto}}@keyframes ll-rise{0%{transform:translateY(112%)}}@keyframes ll-fade{0%{opacity:0;transform:translateY(22px)}}@keyframes ll-tile{0%{opacity:0;transform:translateY(24px)}}.landing{--wall:#e2857a;--floor:#c9655f;--sky:#9cc9e0;--ink:#2a0d20;--bone:#fff1e2;--plum:#6e2348;--out:cubic-bezier(.16,1,.3,1);--gut:clamp(20px,5.5vw,88px);color:var(--ink);-webkit-font-smoothing:antialiased;margin:0;font:400 18px/1.55 Jost Variable,Century Gothic,sans-serif;overflow-x:clip}.landing *{box-sizing:border-box}.landing ::selection{background:var(--ink);color:var(--bone)}.landing a{color:inherit;text-underline-offset:.28em;text-decoration:underline;text-decoration-thickness:1.5px}.landing a:focus-visible,.landing input:focus-visible{outline:3px solid var(--ink);outline-offset:4px}.landing .dark a:focus-visible{outline-color:var(--bone)}.landing h1,.landing h2,.landing h3,.landing p{margin:0}.landing h1,.landing h2,.landing h3{letter-spacing:-.035em;text-wrap:balance;font-weight:500}.landing .pill{background:var(--ink);min-height:54px;color:var(--bone);white-space:nowrap;transition:background .25s, transform .25s var(--out);border-radius:99px;justify-content:center;align-items:center;padding:0 30px;font-size:17px;font-weight:500;text-decoration:none;display:inline-flex}.landing .pill:hover{background:var(--plum)}.landing .pill:active{transform:scale(.97)}.landing .pill.bone{background:var(--bone);color:var(--ink)}.landing .pill.bone:hover{background:#fff}.landing .hero{background:linear-gradient(#7db8d8,var(--sky) 14%) top/100% 100%;isolation:isolate;height:100svh;min-height:620px;position:relative;overflow:hidden}.landing .scene{background:linear-gradient(transparent 88px,var(--wall) 88px 77%,var(--floor) 77%);position:absolute;inset:0}.landing .scene canvas{opacity:0;width:100%;height:100%;transition:opacity .5s;display:block;position:absolute;inset:0}.landing .ready .scene{background:0 0}.landing .ready canvas{opacity:1}.landing .nolight .scene{background:url(/poster-wide.jpg) bottom/cover}.landing .nolight .scene:before{content:"";opacity:var(--noon,0);background:url(/noon-wide.jpg) bottom/cover;position:absolute;inset:0}.landing nav{z-index:20;height:88px;padding:0 var(--gut);align-items:center;gap:34px;display:flex;position:absolute;inset:0 0 auto}.landing nav a{white-space:nowrap;font-size:16px;font-weight:500;text-decoration:none}.landing nav a:not(.pill):hover{text-decoration:underline}.landing .brand{letter-spacing:-.02em;margin-right:auto;font-size:20px!important}.landing nav .pill{min-height:46px;padding:0 22px}.landing .copy{z-index:10;left:var(--gut);flex-direction:column;justify-content:center;width:min(46vw,680px);display:flex;position:absolute;top:88px;bottom:23%}.landing h1{font-size:clamp(46px,min(6.5vw,11.4vh),96px);line-height:.95}.landing h1 span{margin-bottom:-.13em;padding:.04em .06em .13em 0;display:block;overflow:hidden}.landing h1 i{white-space:nowrap;animation:ll-rise .95s var(--out) both;animation-delay:var(--d);font-style:normal;display:block}.landing .copy p{max-width:33ch;animation:ll-fade .9s var(--out) .5s both;margin:30px 0 34px;font-size:clamp(18px,1.45vw,21px);line-height:1.5}.landing .acts{animation:ll-fade .9s var(--out) .62s both;flex-wrap:wrap;align-items:center;gap:16px 28px;display:flex}.landing .acts a:not(.pill){padding:12px 0;font-size:17px;font-weight:500}.landing .sun{z-index:12;right:var(--gut);bottom:max(30px,env(safe-area-inset-bottom));width:300px;color:var(--ink);animation:ll-fade .9s var(--out) .9s both;font-size:15px;font-weight:500;position:absolute}.landing .sun label{text-align:center;margin-bottom:2px;font-size:17px;display:block}.landing .sun div{justify-content:space-between;display:flex}.landing input[type=range]{appearance:none;cursor:grab;background:0 0;border-radius:99px;width:100%;height:44px;margin:0}.landing input[type=range]:active{cursor:grabbing}.landing input[type=range]::-webkit-slider-runnable-track{background:var(--ink);height:2px}.landing input[type=range]::-moz-range-track{background:var(--ink);height:2px}.landing input[type=range]::-webkit-slider-thumb{-webkit-appearance:none;border:2px solid var(--ink);width:32px;height:32px;transition:transform .2s var(--out);background:#ffe1a1;border-radius:50%;margin-top:-15px}.landing input[type=range]::-moz-range-thumb{border:2px solid var(--ink);background:#ffe1a1;border-radius:50%;width:28px;height:28px}.landing input[type=range]:hover::-webkit-slider-thumb{transform:scale(1.1)}.landing .frames{background:var(--ink);color:var(--bone);height:230vh;position:relative}.landing .pin{height:100svh;padding:0 var(--gut);grid-template-columns:1fr auto;align-items:center;gap:clamp(32px,6vw,110px);display:grid;position:sticky;top:0;overflow:hidden}.landing .frames h2{font-size:clamp(50px,7.4vw,96px);line-height:1.02}.landing .frames h2 span{display:block}.landing .frames h2 .a{opacity:calc(1 - var(--p,0)*.55)}.landing .frames h2 .b{opacity:calc(.45 + var(--p,0)*.55)}.landing .frames p{color:#e8cfc6;max-width:36ch;margin-top:30px}.landing .pair{aspect-ratio:4/5;background:#1a0713;border-radius:4px;max-width:52vw;height:min(84svh,900px);position:relative;overflow:hidden}.landing .pair img{object-fit:cover;object-position:50% 12%;width:100%;height:100%;display:block;position:absolute;inset:0}.landing .pair img+img{--e:calc(var(--p,0)*140%);-webkit-mask:linear-gradient(to left,#000 calc(var(--e) - 40%),transparent var(--e));-webkit-mask:linear-gradient(to left,#000 calc(var(--e) - 40%),transparent var(--e));mask:linear-gradient(to left,#000 calc(var(--e) - 40%),transparent var(--e))}.landing .words{padding:clamp(90px,11vw,170px) var(--gut) clamp(70px,8vw,120px);background:var(--wall);overflow:hidden}.landing .words h2{letter-spacing:-.025em;max-width:24ch;margin-bottom:clamp(40px,5vw,76px);font-size:clamp(28px,2.8vw,40px);line-height:1.15}.landing .words ul{margin:0;padding:0;list-style:none}.landing .words li{grid-template-columns:minmax(0,1.35fr) minmax(0,1fr);align-items:start;gap:24px 48px;display:grid}.landing .words h3{width:max-content;max-width:100%;padding-bottom:.95em;font-size:clamp(52px,7.6vw,96px);line-height:1;position:relative}.landing .words h3:after{content:attr(data-w);content:attr(data-w) / "";color:var(--plum);white-space:nowrap;transform-origin:0 0;transform:skewX(var(--sk,48deg)) scaleY(calc(var(--len,1) * -1)) translateY(-.83em);opacity:.42;pointer-events:none;line-height:1;position:absolute;top:.83em;left:0;-webkit-mask:linear-gradient(#0000 0%,#000 84%);mask:linear-gradient(#0000 0%,#000 84%)}.landing .words p{max-width:30ch;padding-top:.7em;font-size:clamp(18px,1.5vw,21px);line-height:1.45}.landing .seat{background:var(--sky);grid-template-columns:1.2fr 1fr;align-items:stretch;display:grid}.landing .seat img{object-fit:cover;object-position:46% 40%;width:100%;height:100%;min-height:520px;max-height:760px;display:block}.landing .more{padding:12px 0;font-size:17px;font-weight:500;display:inline-block}.landing .more:hover{text-decoration-thickness:3px}.landing .frames .more{margin-top:14px}.landing .seat>div{padding:clamp(56px,7vw,120px) var(--gut);flex-direction:column;justify-content:center;align-items:flex-start;display:flex}.landing .seat h2{font-size:clamp(50px,6.6vw,96px);line-height:.95}.landing .seat p{max-width:34ch;margin:26px 0 34px;font-size:20px}.landing footer{background:var(--ink);color:#e8cfc6;padding:52px var(--gut) max(44px,env(safe-area-inset-bottom));grid-template-columns:1fr 1fr;gap:24px 48px;font-size:16px;display:grid}.landing footer blockquote{color:var(--bone);max-width:30ch;margin:0;font-size:22px;line-height:1.4}.landing footer cite{color:#e8cfc6;margin-top:8px;font-size:16px;font-style:normal;display:block}.landing footer p{text-align:right;place-self:end;max-width:44ch}@media (width<=859px),(aspect-ratio<=9/10){.landing nav{gap:16px;height:72px}.landing nav a:not(.brand):not(.pill){display:none}.landing .brand{font-size:18px!important}.landing nav .pill{min-height:44px;padding:0 18px;font-size:15px}.landing .hero{min-height:720px}.landing .scene{background:linear-gradient(transparent 72px,var(--wall) 72px 80%,var(--floor) 80%)}.landing .nolight .scene{background-image:url(/poster-tall.jpg)}.landing .nolight .scene:before{background-image:url(/noon-tall.jpg)}.landing .copy{width:auto;top:72px;bottom:auto;right:var(--gut);padding-top:30px}.landing h1{font-size:clamp(42px,12.2vw,76px)}.landing .copy p{margin:18px 0 20px;font-size:18px;line-height:1.42}.landing .copy .acts a:not(.pill){display:none}.landing .sun{left:var(--gut);right:var(--gut);width:auto;bottom:max(10px,env(safe-area-inset-bottom))}.landing .sun label{margin-bottom:-6px;font-size:16px}.landing .sun div{margin-top:-8px}.landing .pin{grid-template-rows:auto auto;grid-template-columns:1fr;align-content:center;justify-items:start;gap:22px}.landing .pair{aspect-ratio:4/5;order:-1;width:min(100%,48svh);max-width:none;height:auto}.landing .frames p{margin-top:14px}.landing .frames h2{font-size:clamp(42px,12.5vw,72px)}.landing .words li{grid-template-columns:1fr;gap:0;margin-bottom:34px}.landing .words h3{font-size:clamp(46px,13.2vw,84px)}.landing .words p{margin-top:-.1em;padding-top:0}.landing .seat{grid-template-columns:1fr}.landing .seat img{aspect-ratio:4/3;min-height:0}.landing footer{grid-template-columns:1fr}.landing footer p{text-align:left;justify-self:start}}@media (width<=389px){.landing nav{gap:10px}.landing .brand{font-size:16px!important}.landing nav .pill{padding:0 14px;font-size:14px}}@media (width>=1900px) and (height>=900px){.landing h1{font-size:clamp(96px,min(5.6vw,11.4vh),136px)}.landing .copy{width:min(50vw,1100px)}.landing .copy p{font-size:24px}}@media (prefers-reduced-motion:reduce){.landing *,.landing :before,.landing :after{transition:none!important;animation:none!important}}.gallery{--wall:#e2857a;--sky:#9cc9e0;--ink:#2a0d20;--bone:#fff1e2;--gut:clamp(20px,5.5vw,88px);--out:cubic-bezier(.16,1,.3,1);color:var(--ink);-webkit-font-smoothing:antialiased;font:400 18px/1.55 Jost Variable,Century Gothic,sans-serif}.gallery *{box-sizing:border-box}.gallery h1,.gallery p{margin:0}.gallery ::selection{background:var(--ink);color:var(--bone)}.gallery a{color:inherit;text-underline-offset:.28em;text-decoration:underline;text-decoration-thickness:1.5px}.gallery a:focus-visible,.gallery button:focus-visible{outline:3px solid var(--ink);outline-offset:4px}.gallery .bar{background:linear-gradient(#7db8d8,var(--sky));min-height:88px;padding:0 var(--gut);justify-content:space-between;align-items:center;gap:16px;font-size:16px;font-weight:500;display:flex}.gallery .bar a:first-child{letter-spacing:-.02em;font-size:20px;text-decoration:none}.gallery .back{white-space:nowrap;padding:12px 0}.gallery main{padding:clamp(48px,7vw,104px) var(--gut) clamp(64px,8vw,120px)}.gallery h1{letter-spacing:-.035em;font-size:clamp(46px,6.5vw,96px);font-weight:500;line-height:.95}.gallery .intro{max-width:46ch;margin-top:26px;font-size:clamp(18px,1.45vw,21px);line-height:1.5}.gallery .grid{grid-template-columns:repeat(4,minmax(0,1fr));gap:clamp(12px,1.6vw,24px);margin-top:clamp(36px,5vw,72px);display:grid}.gallery .tile{aspect-ratio:2/3;animation:ll-tile .8s var(--out) both;animation-delay:calc(var(--i)*45ms);background:#c9655f;border-radius:4px;overflow:hidden}.gallery .tile:target{outline:4px solid var(--ink);outline-offset:4px}.gallery .tile img{object-fit:cover;width:100%;height:100%;transition:transform .7s var(--out);display:block}.gallery .tile:hover img{transform:scale(1.04)}.gallery dialog{background:0 0;border:0;max-width:96vw;max-height:96svh;margin:auto;padding:0}.gallery dialog::backdrop{background:#1a0713f0}.gallery dialog img{border-radius:4px;max-width:min(96vw,100%);max-height:84svh;margin:auto;display:block}.gallery dialog nav{justify-content:space-between;gap:10px;padding:14px 4px 4px;display:flex}.gallery dialog button{background:var(--bone);min-height:46px;color:var(--ink);cursor:pointer;border:0;border-radius:99px;padding:0 20px;font:500 16px Jost Variable,sans-serif}.gallery dialog button:hover{background:#fff}.gallery dialog button:focus-visible{outline-color:var(--sky);outline-offset:2px}@media (width<=859px){.gallery .bar{min-height:72px}.gallery .bar a:first-child{font-size:18px}.gallery .grid{grid-template-columns:repeat(2,minmax(0,1fr))}}@media (width<=389px){.gallery .bar,.gallery .bar a:first-child{font-size:15px}}@media (prefers-reduced-motion:reduce){.gallery *,.gallery :before,.gallery :after{transition:none!important;animation:none!important}}
