:root{color-scheme:dark;--bg:#141715;--surface:#1b1f1c;--surface2:#222723;--ink:#f0f2e9;--muted:#91998e;--line:#333930;--mint:#bdf59a;--mint-dark:#172113;--mono:'Space Grotesk',Consolas,monospace;--sans:'Noto Sans SC','Microsoft YaHei',sans-serif}
*{box-sizing:border-box}html{scroll-behavior:smooth}body{margin:0;background:var(--bg);color:var(--ink);font-family:var(--sans);font-size:14px;-webkit-font-smoothing:antialiased}button,input{font:inherit}button,a,input{-webkit-tap-highlight-color:transparent}button{cursor:pointer}button{color:inherit;border:0;background:none}button:disabled{cursor:default;opacity:.45}a{color:inherit;text-decoration:none}button,input,a{outline-offset:5px}button:focus-visible,a:focus-visible,input:focus-visible{outline:2px solid var(--mint)}svg{width:20px;height:20px;fill:none;stroke:currentColor;stroke-width:1.6;stroke-linecap:round;stroke-linejoin:round;flex-shrink:0}.svg-defs{position:absolute;width:0;height:0;overflow:hidden}.site-shell{max-width:1440px;padding:0 60px;margin:auto}.site-header{height:104px;display:flex;align-items:center;justify-content:space-between;border-bottom:1px solid var(--line)}.brand{display:flex;align-items:center;gap:13px}.brand-mark{display:block;position:relative;width:42px;height:42px;transform:rotate(-16deg)}.brand-mark i{position:absolute;inset:0;border:2px solid var(--mint);border-radius:44% 56% 49% 51%}.brand-mark i:nth-child(2){inset:7px;transform:rotate(30deg)}.brand-mark i:nth-child(3){inset:14px;transform:rotate(60deg)}.brand-name{font-size:24px;font-weight:700;letter-spacing:3px;line-height:1.2}.brand-name>span{display:block;font-family:var(--mono);font-size:9px;font-weight:500;letter-spacing:2px;margin-top:5px}.header-center{color:var(--muted);font-size:12px;letter-spacing:1px;display:flex;align-items:center;gap:10px;margin-left:25px}.status-dot{width:5px;height:5px;background:var(--mint);border-radius:50%}.header-actions{display:flex;align-items:center;gap:20px}.text-button{display:flex;align-items:center;gap:7px;font-size:12px;padding:8px 0;color:#c3c9be;transition:color .2s}.text-button:hover{color:var(--mint)}.text-button svg{width:17px;height:17px}.header-divider{height:14px;width:1px;background:var(--line)}.intro{display:flex;justify-content:space-between;align-items:center;padding:49px 0 38px}.eyebrow{font-family:var(--mono);font-size:10px;letter-spacing:2.1px;color:#a4ac9d;display:flex;align-items:center;gap:8px}.tiny-cross{font-size:16px;line-height:1;color:var(--mint);font-family:var(--sans)}h1{margin:17px 0 13px;font-size:clamp(32px,3.2vw,48px);font-weight:700;letter-spacing:1px;line-height:1.3}h1>span{color:var(--mint)}.intro p{font-size:13px;color:var(--muted);margin:0;letter-spacing:.6px}.intro-note{display:flex;align-items:center;gap:14px;padding-right:8px;padding-top:16px;font-size:12px;color:var(--muted);line-height:1.9}.intro-note strong{font-weight:400;color:#c8cfc1}.orbit-mark{color:var(--mint);font-size:50px;font-family:Arial;line-height:1;font-weight:400;display:block;transform:rotate(9deg)}.game-layout{display:grid;grid-template-columns:minmax(0,1.45fr) minmax(330px,1fr);gap:42px;align-items:start}.puzzle-stage{position:relative;aspect-ratio:1;overflow:hidden;border-radius:14px;background:#080a08;border:1px solid #41473d;isolation:isolate}.puzzle-stage canvas{display:block;width:100%;height:100%;object-fit:contain}.stage-top,.stage-bottom{position:absolute;left:27px;right:27px;display:flex;justify-content:space-between;align-items:center;z-index:1}.stage-top{top:23px}.stage-badge{display:flex;align-items:center;gap:8px;background:#151a16dc;backdrop-filter:blur(12px);border:1px solid #51594b;border-radius:30px;padding:7px 12px;font-size:10px;color:#e7eedf;letter-spacing:.4px}.stage-badge>span:last-child{font-family:var(--mono);margin-left:4px;color:var(--mint)}.live-dot{width:5px;height:5px;border-radius:50%;background:var(--mint)}.icon-button{display:grid;place-items:center;width:32px;height:32px;border-radius:7px}.fullscreen-button{background:#151a16dc;color:#f1f5e9;border:1px solid #51594b}.fullscreen-button svg{width:16px;height:16px}.icon-button:hover{background:#35412f;color:var(--mint)}.stage-bottom{bottom:22px;font-family:var(--mono);font-size:8px;color:#cbd4c3;letter-spacing:1.6px;text-shadow:0 1px 3px black}.stage-coordinates{letter-spacing:1px}.stage-cross{position:absolute;width:13px;height:13px;opacity:.7;pointer-events:none;z-index:1}.stage-cross:before,.stage-cross:after{content:'';position:absolute;background:var(--mint)}.stage-cross:before{height:1px;width:13px;top:6px}.stage-cross:after{width:1px;height:13px;left:6px}.cross-tl{top:11px;left:11px}.cross-tr{top:11px;right:11px}.cross-bl{bottom:11px;left:11px}.cross-br{bottom:11px;right:11px}.reveal-label{position:absolute;bottom:47px;left:50%;transform:translateX(-50%);font-size:11px;white-space:nowrap;display:flex;align-items:center;gap:7px;padding:8px 13px;background:#182414e8;border:1px solid #8bb775;border-radius:30px;color:var(--mint)}.reveal-label[hidden]{display:none}.reveal-label svg{width:15px;height:15px}.visual-caption{display:flex;align-items:center;justify-content:space-between;padding-top:15px;font-size:10px;color:#838d7f;gap:10px}.visual-caption>span{display:flex;align-items:center;gap:7px}.small-dot{width:4px;height:4px;border-radius:50%;background:#71836b}.visual-caption button{font-size:10px;color:#b2bca9;display:flex;align-items:center;gap:7px;padding:0}.visual-caption button:hover{color:var(--mint)}.visual-caption svg{width:14px;height:14px}.control-panel{padding:1px 0 0}.round-heading{display:flex;justify-content:space-between;align-items:center;margin:0 0 12px}.panel-eyebrow{font-family:var(--mono);font-size:9px;letter-spacing:2px;color:var(--mint)}.round-count{font-family:var(--mono);font-size:12px;color:#798674}.round-count strong{font-size:16px;font-weight:500;color:#dde6d5}.control-panel h2{font-size:27px;margin:0 0 9px;font-weight:600;letter-spacing:1px}.panel-description{font-size:12px;color:var(--muted);margin:0;line-height:1.6}.difficulty-row{display:flex;align-items:center;justify-content:space-between;margin-top:25px;margin-bottom:23px;gap:16px}.difficulty-row>label{color:#bdc6b6;font-size:11px}.segments{background:#20251f;border:1px solid #343c2f;padding:3px;display:flex;border-radius:7px}.segments button{font-size:11px;padding:6px 17px;color:#9fa997;border-radius:4px;transition:background .15s,color .15s}.segments button.active{background:var(--mint);color:#24351b;font-weight:600}.segments button:not(.active):hover{background:#30392b;color:var(--ink)}.input-label{font-size:11px;color:#bcc6b6;display:block;margin-bottom:10px}.answer-input-wrap{position:relative}.answer-input-wrap input{width:100%;height:67px;background:#1b211b;border:1px solid #46533e;border-radius:8px;color:var(--ink);font-family:var(--mono);font-size:31px;font-weight:500;letter-spacing:13px;padding:7px 20px;text-align:center;transition:border-color .2s}.answer-input-wrap input:focus{border-color:var(--mint);outline:none;box-shadow:0 0 0 2px #bdf59a0a}.answer-input-wrap input::placeholder{color:#707e67;letter-spacing:12px;opacity:1}.input-key{position:absolute;right:16px;top:24px;color:#6e7c65;font-size:15px}.feedback{font-size:10px;color:#929e89;min-height:35px;padding-top:9px;line-height:1.6}.feedback.error{color:#e7b090}.feedback.success{color:var(--mint)}.primary-button{width:100%;height:48px;padding:0 19px;background:var(--mint);color:#1c2d14;border:1px solid var(--mint);border-radius:7px;display:flex;align-items:center;justify-content:space-between;font-size:13px;font-weight:600;transition:background .2s,transform .2s}.primary-button:hover{background:#d0ffb4}.primary-button:active{transform:translateY(1px)}.primary-button svg{width:19px;height:19px}.primary-button:disabled{opacity:.6}.secondary-actions{display:flex;align-items:center;justify-content:center;gap:24px;margin:14px 0 0}.secondary-actions button{display:flex;align-items:center;gap:7px;font-size:11px;color:#b1bcaa;padding:6px 0}.secondary-actions button:hover{color:var(--mint)}.secondary-actions>span{width:1px;height:12px;background:var(--line)}.secondary-actions svg{width:15px;height:15px}.aid-section{padding:22px 0 20px;border-bottom:1px solid var(--line)}.aid-title{display:flex;align-items:center;justify-content:space-between;margin-bottom:13px}.aid-title label{display:flex;align-items:center;gap:7px;font-size:11px;color:#d1dac9}.aid-title svg{width:15px;height:15px;color:var(--mint)}.aid-title output{font-size:11px;font-family:var(--mono);color:var(--mint)}input[type=range]{appearance:none;width:100%;height:4px;display:block;margin:0;cursor:pointer;border-radius:4px;background:linear-gradient(to right,var(--mint) var(--fill,0%),#3a4434 var(--fill,0%));accent-color:var(--mint)}input[type=range]::-webkit-slider-thumb{appearance:none;width:13px;height:13px;border-radius:50%;background:var(--mint);border:3px solid #141715;box-shadow:0 0 0 1px #a2c88c}input[type=range]::-moz-range-thumb{width:9px;height:9px;border-radius:50%;background:var(--mint);border:3px solid #141715}.range-labels{display:flex;justify-content:space-between;font-size:9px;color:#8d9b84;margin-top:11px}.aid-note{font-size:9px;color:#71806b;margin:13px 0 0;letter-spacing:.2px}.pattern-section{padding-top:20px}.pattern-heading{display:flex;justify-content:space-between;align-items:center;font-size:11px;color:#bfcbb6}.pattern-heading .mono{font-size:8px;letter-spacing:1px;color:#697b60}.mono{font-family:var(--mono)}.pattern-options{display:grid;grid-template-columns:repeat(3,1fr);gap:10px;margin-top:12px}.pattern-button{position:relative;display:flex;flex-direction:column;align-items:center;gap:7px;padding:0 0 7px;border:1px solid #35422e;border-radius:6px;overflow:hidden;font-size:10px;color:#8c9e80;transition:border-color .2s}.pattern-button.active{border-color:#b4dc97;color:var(--mint)}.pattern-button:hover{border-color:#8cae77}.pattern-preview{display:block;width:100%;height:37px;background-color:#12170f;opacity:.6}.ripple-preview{background:repeating-radial-gradient(ellipse at 50% 100%,transparent 0 3px,#a2ae99 3.6px 4.4px,transparent 5px 8px);transform:scaleX(1.1)}.wave-preview{background:repeating-linear-gradient(118deg,transparent 0 4px,#a2ae99 4.5px 5.2px,transparent 6px 9px)}.grain-preview{background:radial-gradient(#a2ae99 .8px,transparent 1.2px);background-size:5px 5px}.pattern-button.active i{width:4px;height:4px;background:var(--mint);border-radius:50%;position:absolute;bottom:10px;right:10px}.session-bar{display:flex;align-items:center;border:1px solid var(--line);border-radius:10px;background:linear-gradient(110deg,#1d231c,#1a1f19);margin-top:29px;padding:23px 29px;gap:31px}.progress-part{flex:1.5;min-width:150px;padding-right:15px}.progress-title{display:flex;align-items:center;justify-content:space-between;font-size:10px;color:#b7c5ac;margin-bottom:12px}.progress-title .mono{color:#7e9371;font-size:10px}.progress-title b{font-weight:500;color:#d1e0c6}.progress-track{display:grid;grid-template-columns:repeat(10,1fr);gap:5px}.progress-cell{height:6px;background:#3a4733;border-radius:2px}.progress-cell.solved{background:var(--mint)}.progress-cell.skipped{background:#77896b}.progress-cell.current{background:#667d59}.session-stat{flex:1;border-left:1px solid #394331;padding-left:30px;white-space:nowrap}.stat-label{font-size:10px;color:#8fa080;display:flex;align-items:center;gap:5px;margin-bottom:8px}.stat-label svg{width:12px;height:12px}.session-stat strong{font-family:var(--mono);font-size:26px;line-height:1;font-weight:500;color:#e2ecd9;letter-spacing:.5px}.session-stat strong>span{font-family:var(--sans);font-size:9px;font-weight:400;color:#899e78;margin-left:7px}.restart-button{display:grid;place-items:center;color:#8da37b;width:30px;height:30px;flex-shrink:0;padding:0;border-radius:50%}.restart-button:hover{color:var(--mint);background:#303d27}.restart-button svg{width:18px;height:18px}.discovery-note{display:flex;align-items:center;padding:31px 0 36px;gap:16px}.note-icon{width:36px;height:36px;border:1px solid #3e4a36;border-radius:50%;display:grid;place-items:center;color:#a9be96;flex-shrink:0}.note-icon svg{width:17px;height:17px}.discovery-note h3{font-size:12px;font-weight:400;color:#b6c4ab;margin:0 0 7px}.discovery-note p{font-size:10px;color:#75876b;margin:0;line-height:1.7}.note-index{margin-left:auto;font-family:var(--mono);font-size:8px;letter-spacing:1px;color:#59704e;white-space:nowrap}footer{border-top:1px solid var(--line);padding:24px 0 28px;font-size:10px;color:#7f9373;display:flex;align-items:center;justify-content:space-between}.footer-slash{color:#3f5733;padding:0 12px}footer .mono{font-size:9px;letter-spacing:1px}footer>span:last-child{display:flex;align-items:center;gap:30px;font-size:9px;color:#69805b}.footer-spark{font-size:20px;color:#8aa875}dialog{color:var(--ink);border:1px solid #4b5a40;border-radius:16px;padding:0;background:#1c2319;max-width:510px;width:calc(100% - 32px);box-shadow:0 25px 120px #0009}dialog::backdrop{background:#080c09b8;backdrop-filter:blur(7px)}.dialog-content{position:relative;padding:37px}.dialog-close{position:absolute;right:15px;top:15px;color:#98aa8a}.dialog-eyebrow{font-family:var(--mono);font-size:9px;letter-spacing:1.8px;color:var(--mint);display:block;margin:6px 0 17px}.dialog-content h2{font-size:26px;font-weight:600;margin:0 0 13px;letter-spacing:.4px}.dialog-lead{font-size:12px;line-height:1.9;color:#a7b69b;margin:0}.help-steps{list-style:none;padding:0;margin:27px 0}.help-steps li{display:flex;gap:16px;margin:0 0 22px}.help-steps li>span{font-family:var(--mono);color:#789466;font-size:12px;margin-top:2px}.help-steps h3{font-size:13px;font-weight:500;margin:0 0 7px}.help-steps p{font-size:11px;color:#91a383;line-height:1.9;margin:0}.help-footnote,.record-footnote{font-size:10px;line-height:1.8;color:#708665;margin:17px 0 23px}.record-metrics{display:grid;grid-template-columns:repeat(3,1fr);gap:14px;margin:29px 0 32px}.record-metrics>div{display:flex;flex-direction:column;gap:9px}.record-metrics span{font-size:10px;color:#91a383}.record-metrics strong{font-family:var(--mono);font-size:30px;color:var(--mint);font-weight:500}.history-title{font-size:12px;font-weight:500;margin:0 0 12px;color:#c2d0b5}.history-row{display:flex;justify-content:space-between;align-items:center;border-top:1px solid #35432e;padding:12px 0;font-size:10px;color:#9eb191}.history-row>span:last-child{font-family:var(--mono);font-size:13px;color:#d4e9c3}.history-row small{font-size:9px;display:block;color:#6f875f;margin-top:4px}.empty-records{font-size:11px;color:#849976;line-height:1.8;padding:20px 0;border-top:1px solid #35432e}.summary-content{text-align:center}.summary-symbol{font-size:64px;line-height:1.2;color:var(--mint);display:block;margin:0 0 18px}.summary-score{display:flex;flex-direction:column;gap:9px;margin:28px 0}.summary-score strong{font-size:70px;font-family:var(--mono);line-height:1;color:var(--mint);font-weight:500}.summary-score span{font-size:11px;color:#90a280}.summary-facts{display:flex;justify-content:space-around;margin:0 0 30px;border-top:1px solid #3e4a36;border-bottom:1px solid #3e4a36;padding:18px 0;font-size:10px;color:#8fa17f}.summary-facts b{display:block;font-family:var(--mono);font-size:17px;font-weight:500;color:#dcebd1;margin-top:7px}.toast{position:fixed;bottom:30px;left:50%;transform:translate(-50%,15px);color:#e3f1d9;background:#2b3b23;border:1px solid #5d7b48;padding:12px 20px;border-radius:8px;font-size:12px;box-shadow:0 8px 40px #0005;opacity:0;pointer-events:none;transition:opacity .2s,transform .2s;z-index:20;max-width:calc(100% - 30px);white-space:nowrap}.toast.visible{opacity:1;transform:translate(-50%,0)}.puzzle-stage:fullscreen{height:100vh;width:100vw;border-radius:0;border:none;aspect-ratio:auto}.puzzle-stage:fullscreen canvas{height:100%;width:100%;object-fit:contain}.puzzle-stage:fullscreen .stage-top,.puzzle-stage:fullscreen .stage-bottom{max-width:calc(100vh - 60px);margin:auto}.puzzle-stage:fullscreen .stage-cross{display:none}@media(min-width:1300px){.game-layout{gap:54px;grid-template-columns:minmax(0,1.5fr) minmax(360px,1fr)}.control-panel{padding-top:4px}.control-panel h2{font-size:29px}.difficulty-row{margin-top:30px;margin-bottom:27px}.answer-input-wrap input{height:75px}.input-key{top:28px}.feedback{min-height:39px}.primary-button{height:51px}.aid-section{padding-top:25px;padding-bottom:23px}.pattern-section{padding-top:23px}.pattern-preview{height:43px}.pattern-options{margin-top:15px}}
@media(min-width:1500px){.site-shell{max-width:1400px}.intro{padding-top:52px}.game-layout{grid-template-columns:minmax(0,1.45fr) minmax(370px,1fr);gap:60px}}
@media(max-width:1050px){.site-shell{padding:0 35px}.header-center{display:none}.game-layout{gap:28px;grid-template-columns:minmax(0,1.2fr) minmax(310px,1fr)}.intro{padding-top:38px}.control-panel h2{font-size:25px}.difficulty-row{margin-top:20px;margin-bottom:20px}.aid-section{padding-top:18px;padding-bottom:17px}.pattern-section{padding-top:17px}.session-bar{gap:22px;padding:23px}.session-stat{padding-left:22px}.note-index{display:none}.stage-top,.stage-bottom{left:20px;right:20px}.stage-top{top:18px}.stage-bottom{bottom:18px}.stage-coordinates{display:none}}
@media(max-width:790px){.site-shell{padding:0 24px;max-width:650px}.site-header{height:86px}.brand-mark{width:35px;height:35px}.brand-mark i:nth-child(2){inset:6px}.brand-mark i:nth-child(3){inset:12px}.brand-name{font-size:21px}.brand-name>span{font-size:8px}.header-actions{gap:14px}.text-button{font-size:11px}.text-button svg{width:16px;height:16px}.intro{padding:35px 0 28px}.intro-note{display:none}h1{font-size:36px;margin-top:16px;margin-bottom:12px}.intro p{font-size:12px}.eyebrow{font-size:8px;letter-spacing:1.5px}.game-layout{display:flex;flex-direction:column;gap:28px}.visual-column,.control-panel{width:100%}.control-panel{padding:0}.round-heading{margin-bottom:10px}.control-panel h2{font-size:26px}.difficulty-row{margin-top:22px;margin-bottom:22px}.segments{min-width:215px}.segments button{flex:1}.answer-input-wrap input{height:70px}.input-key{top:26px}.primary-button{height:50px}.feedback{min-height:37px;font-size:11px}.secondary-actions{margin-top:16px;gap:35px}.secondary-actions button{font-size:12px}.aid-section{padding:25px 0}.aid-title label{font-size:12px}.aid-note{font-size:10px}.range-labels{font-size:10px}.pattern-section{padding-top:23px}.pattern-preview{height:48px}.pattern-button{font-size:11px;gap:9px;padding-bottom:9px}.pattern-heading{font-size:12px}.session-bar{flex-wrap:wrap;gap:22px 0;padding:22px;margin-top:29px}.progress-part{flex-basis:100%;padding-right:0}.session-stat{flex:1;padding-left:17px}.session-stat:first-of-type{padding-left:0;border-left:0}.session-stat strong{font-size:23px}.restart-button{width:22px;margin-left:10px}.stat-label{font-size:9px}.discovery-note{padding:28px 0}.discovery-note h3{font-size:11px;line-height:1.8}.discovery-note p{font-size:10px;line-height:1.9}.note-icon{width:31px;height:31px}footer{padding:21px 0;font-size:10px}footer>span:last-child{font-size:0;gap:0}.footer-spark{font-size:22px}.visual-caption{font-size:9px}.visual-caption button{font-size:9px}.stage-coordinates{display:block}.stage-bottom{font-size:7px}}
@media(max-width:390px){.site-shell{padding:0 18px}h1{font-size:31px}.text-button span{display:none}.header-actions{gap:12px}.intro p{font-size:11px}.intro .eyebrow{font-size:7px}.stage-coordinates{display:none}.visual-caption>span{font-size:8px}.session-bar{padding:18px}.session-stat{padding-left:13px}.session-stat strong{font-size:20px}.stat-label{font-size:8px}.dialog-content{padding:29px 23px}.dialog-content h2{font-size:22px}.summary-facts{font-size:9px}}
/* Bidirectional visual tuning and the expanded texture collection. */
.game-layout{row-gap:0}
.visual-column{display:contents;min-width:0}
.puzzle-stage{grid-column:1;grid-row:1}
.visual-caption{grid-column:1;grid-row:2;align-self:start}
.control-panel{grid-column:2;grid-row:1 / 3}
.aid-section{border-bottom:0;padding-bottom:0}
.aid-title output{font-family:var(--sans);font-size:11px;white-space:nowrap}
.aid-title output.harder{color:#e9bf7c}
.tuning-track{position:relative;padding:6px 0}
.tuning-track input[type=range]{position:relative;z-index:1;--range-start:50%;--range-end:50%;--range-color:var(--mint);background:linear-gradient(to right,#3a4434 0%,#3a4434 var(--range-start),var(--range-color) var(--range-start),var(--range-color) var(--range-end),#3a4434 var(--range-end),#3a4434 100%);accent-color:var(--range-color)}
.tuning-track input[type=range]::-webkit-slider-thumb{width:17px;height:17px;background:var(--range-color);box-shadow:0 0 0 1px var(--range-color)}
.tuning-track input[type=range]::-moz-range-thumb{width:11px;height:11px;background:var(--range-color);box-shadow:0 0 0 1px var(--range-color)}
.range-center{position:absolute;left:50%;top:2px;width:1px;height:12px;background:#829674;pointer-events:none}
.range-labels{display:grid;grid-template-columns:1fr 1fr 1fr;margin-top:7px;font-size:10px}
.range-labels span:nth-child(2){text-align:center;color:#b3bfa9}
.range-labels span:last-child{text-align:right;color:#b2a48d}
.tuning-footer{display:flex;align-items:flex-start;gap:10px;justify-content:space-between;margin-top:16px}
.tuning-footer .aid-note{font-size:10px;line-height:1.8;margin:0;color:#919f87;max-width:29em}
#reset-tuning-btn{flex-shrink:0;font-size:10px;padding:3px 0;color:#b9cca9;text-decoration:underline;text-underline-offset:4px;text-decoration-color:#566b48}
#reset-tuning-btn:hover{color:var(--mint)}
.visual-column>.pattern-section{grid-column:1 / -1;grid-row:3;margin-top:23px;padding-top:21px;border-top:1px solid var(--line)}
.pattern-heading .mono{font-size:9px;letter-spacing:1.3px}
.pattern-options{grid-template-columns:repeat(6,minmax(0,1fr));gap:10px;margin-top:14px}
.pattern-button{min-width:0;padding-bottom:8px;gap:7px;border-color:#35422e;background:#1a2018;transition:border-color .2s,background .2s}
.pattern-button.active{background:#26311f;box-shadow:0 0 0 1px #bdf59a1c}
.pattern-preview{height:40px;opacity:.65;background-color:#12170f;border-bottom:1px solid #36432e}
.pattern-button:hover .pattern-preview,.pattern-button.active .pattern-preview{opacity:.95}
.ripple-preview{background:repeating-radial-gradient(ellipse at 50% 100%,transparent 0 3px,#a2ae99 3.6px 4.4px,transparent 5px 8px)}
.wave-preview{background:repeating-linear-gradient(118deg,transparent 0 4px,#a2ae99 4.5px 5.2px,transparent 6px 9px)}
.grain-preview{background-image:radial-gradient(#a2ae99 .8px,transparent 1.2px);background-size:5px 5px}
.spiral-preview{background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 120 40'%3E%3Cg fill='none' stroke='%23a2ae99' stroke-width='1.2'%3E%3Cpath d='M60 20c-1-1-3 0-3 2 0 4 7 5 10 1 5-6-1-13-8-12-10 1-12 14-4 20 10 8 25 1 26-12 1-15-17-25-31-17-17 10-17 36 3 45 22 10 48-7 47-31-2-29-35-43-59-26-30 21-26 67 11 80'/%3E%3C/g%3E%3C/svg%3E");background-size:cover;background-position:center}
.grid-preview{background-image:linear-gradient(#a2ae99 1px,transparent 1px),linear-gradient(90deg,#a2ae99 1px,transparent 1px);background-size:9px 9px;transform:perspective(70px) rotateX(12deg) scale(1.08)}
.zigzag-preview{background-image:linear-gradient(135deg,#a2ae99 25%,transparent 25%),linear-gradient(225deg,#a2ae99 25%,transparent 25%),linear-gradient(315deg,#a2ae99 25%,transparent 25%),linear-gradient(45deg,#a2ae99 25%,transparent 25%);background-position:-6px 0,-6px 0,0 0,0 0;background-size:12px 12px}
.rings-preview{background-image:repeating-radial-gradient(circle at 50% 50%,transparent 0 4px,#a2ae99 4.3px 5.4px,transparent 5.8px 9px)}
.crosshatch-preview{background-image:repeating-linear-gradient(45deg,transparent 0 6px,#a2ae99 6.5px 7.3px,transparent 8px 11px),repeating-linear-gradient(-45deg,transparent 0 6px,#a2ae99 6.5px 7.3px,transparent 8px 11px)}
.maze-preview{background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 36 30'%3E%3Cpath d='M0 3h12v6h12v12h12M6 0v15h12v12h12v3M0 21h6v9M18 0v3h12v12h6M24 27v-6h-6M0 15h6M36 3h-6' fill='none' stroke='%23a2ae99' stroke-width='1.5'/%3E%3C/svg%3E");background-size:36px 30px}
.rays-preview{background-image:repeating-conic-gradient(from 0deg at 50% 50%,transparent 0deg 8deg,#a2ae99 8deg 11deg,transparent 11deg 19deg)}
.weave-preview{background-image:linear-gradient(45deg,transparent 46%,#a2ae99 47% 53%,transparent 54%),linear-gradient(-45deg,transparent 46%,#a2ae99 47% 53%,transparent 54%);background-size:15px 10px;background-position:0 0,7.5px 0}
.noise-preview{background-image:radial-gradient(circle at 20% 30%,#a2ae99 .7px,transparent 1px),radial-gradient(circle at 75% 65%,#a2ae99 1px,transparent 1.3px),radial-gradient(circle at 40% 90%,#a2ae99 .6px,transparent 1px),radial-gradient(circle at 90% 10%,#a2ae99 .6px,transparent 1px);background-size:7px 11px,13px 7px,11px 17px,17px 13px}
.pattern-note{font-size:10px;line-height:1.7;color:#829575;margin:13px 0 0}
@media(max-width:1050px) and (min-width:901px){.game-layout{grid-template-columns:minmax(0,1.2fr) minmax(320px,1fr);column-gap:28px;row-gap:0}.pattern-options{gap:8px}.pattern-preview{height:36px}}
@media(max-width:900px){.site-shell{padding:0 24px;max-width:690px}.game-layout{display:grid;grid-template-columns:minmax(0,1fr);gap:0}.visual-column{display:contents}.puzzle-stage{grid-column:1;grid-row:1}.visual-caption{grid-column:1;grid-row:2}.control-panel{grid-column:1;grid-row:3;width:100%;padding:0;margin-top:31px}.visual-column>.pattern-section{grid-column:1;grid-row:4;width:100%;margin-top:29px;padding-top:23px}.control-panel h2{font-size:26px}.pattern-options{grid-template-columns:repeat(3,minmax(0,1fr));gap:10px}.pattern-preview{height:43px}.pattern-button{font-size:11px;padding-bottom:9px;gap:8px}.aid-section{padding-top:25px;padding-bottom:0}.aid-title label{font-size:12px}.tuning-footer .aid-note{font-size:11px}.session-bar{margin-top:25px}.intro-note{display:none}.session-bar{flex-wrap:wrap;gap:22px 0;padding:22px}.progress-part{flex-basis:100%;padding-right:0}.session-stat{flex:1;padding-left:17px}.session-stat:first-of-type{padding-left:0;border-left:0}.session-stat strong{font-size:23px}.restart-button{width:22px;margin-left:10px}.stat-label{font-size:9px}}
@media(max-width:390px){.site-shell{padding:0 18px}.pattern-options{gap:8px}.pattern-preview{height:36px}.tuning-footer{flex-direction:column;gap:8px}.tuning-footer .aid-note{font-size:10px}.control-panel{margin-top:27px}.session-bar{padding:18px}.session-stat{padding-left:13px}.session-stat strong{font-size:20px}.stat-label{font-size:8px}}
@media(prefers-reduced-motion:reduce){*{scroll-behavior:auto!important;transition:none!important}}

/* Language controls and bilingual copy. */
.dashvortex-preview{background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 180 52'%3E%3Cg fill='none' stroke='%23b4c1aa' stroke-width='1.8' stroke-linecap='round' stroke-dasharray='2.4 4.8' transform='translate(90 26) rotate(-18)'%3E%3Cellipse rx='7' ry='6'/%3E%3Cellipse rx='15' ry='13' stroke-dashoffset='2'/%3E%3Cellipse rx='23' ry='20' stroke-dashoffset='4'/%3E%3Cellipse rx='31' ry='27' stroke-dashoffset='6'/%3E%3Cellipse rx='39' ry='34' stroke-dashoffset='8'/%3E%3Cellipse rx='47' ry='41' stroke-dashoffset='10'/%3E%3Cellipse rx='55' ry='48' stroke-dashoffset='12'/%3E%3Cellipse rx='63' ry='55' stroke-dashoffset='14'/%3E%3Cellipse rx='71' ry='62' stroke-dashoffset='16'/%3E%3Cellipse rx='79' ry='69' stroke-dashoffset='18'/%3E%3Cellipse rx='87' ry='76' stroke-dashoffset='20'/%3E%3Cellipse rx='95' ry='83' stroke-dashoffset='22'/%3E%3C/g%3E%3C/svg%3E");background-size:cover;background-position:center}
.pattern-featured{grid-column:span 2}
@media(min-width:901px){.pattern-options{grid-template-columns:repeat(7,minmax(0,1fr))}}
@media(max-width:900px){.pattern-featured{grid-column:1 / -1}.pattern-featured .pattern-preview{background-size:180px 52px}}
html[data-language-pending] body{visibility:hidden}
button,input,select{font:inherit}
select{-webkit-tap-highlight-color:transparent}
select:focus-visible{outline:2px solid var(--mint);outline-offset:4px}
.sr-only{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0}
.brand-name>b{font:inherit}
h1>.hero-first{color:var(--ink)}
.header-actions{gap:17px}
.language-control{display:flex;align-items:center;flex-shrink:0}
#language-select{width:93px;min-height:34px;padding:6px 23px 6px 10px;color:#d3ddca;background:#20271e;border:1px solid #435039;border-radius:6px;font-size:11px;cursor:pointer}
#language-select:hover{border-color:#829974}
#language-select option{background:#20271e;color:var(--ink)}
html[lang=en] h1{font-size:clamp(30px,3.1vw,44px);letter-spacing:-1.2px;max-width:23ch;line-height:1.2}
html[lang=en] .brand-name{font-size:20px;letter-spacing:1.5px}
html[lang=en] .header-center{font-size:11px;letter-spacing:.2px;margin-left:10px}
html[lang=en] .control-panel h2{letter-spacing:0}
html[lang=en] .intro p{max-width:44em;line-height:1.8;letter-spacing:0}
html[lang=en] .dialog-content h2{font-size:25px;letter-spacing:0}
html[lang=en] .tuning-footer .aid-note{max-width:26em}
.footer-main{display:flex;justify-content:space-between;align-items:center;gap:16px}
.footer-main>span:last-child{display:flex;align-items:center;gap:30px;font-size:9px;color:#69805b}
footer{display:block}
.footer-legal{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-top:16px;font-size:10px;line-height:1.7;color:#819477}
#copyright-btn{flex-shrink:0;font-size:10px;color:#9db68e;text-decoration:underline;text-underline-offset:4px;text-decoration-color:#566b48;padding:3px 0}
#copyright-btn:hover{color:var(--mint)}
.copyright-text{margin-bottom:26px}
@media(min-width:1051px) and (max-width:1250px){.header-center{display:none}}
@media(max-width:790px){.header-actions{gap:12px}.header-divider{display:none}.text-button{font-size:10px}.brand{gap:10px}html[lang=en] h1{font-size:36px;max-width:18ch}.visual-caption{flex-wrap:wrap;row-gap:7px}.footer-main>span:last-child{font-size:0;gap:0}.footer-legal{font-size:9px;margin-top:13px}}
@media(max-width:580px){.header-actions .text-button span{display:none}.header-actions .text-button{width:27px;min-height:36px;justify-content:center}.header-actions .text-button svg{width:18px;height:18px}.header-actions{gap:9px}.header-actions #language-select{width:89px}.brand-mark{width:31px;height:31px}.brand-name{font-size:20px}html[lang=en] .brand-name{font-size:18px;letter-spacing:1px}.brand-name>span{font-size:7px;letter-spacing:1.5px}.stage-badge{font-size:9px;gap:6px}.aid-title{gap:12px}.aid-title label{font-size:11px}.tuning-footer{flex-direction:column;gap:7px}.tuning-footer .aid-note{max-width:none}html[lang=en] .tuning-footer .aid-note{max-width:none}html[lang=en] .summary-facts{gap:12px}.toast{white-space:normal;text-align:center}}
@media(max-width:390px){.header-actions{gap:7px}.header-actions #language-select{width:85px;padding-left:8px;padding-right:18px}.brand{gap:8px}.brand-mark{width:28px;height:28px}.brand-mark i:nth-child(2){inset:5px}.brand-mark i:nth-child(3){inset:10px}.brand-name{font-size:19px}.brand-name>span{font-size:6px;letter-spacing:1.3px}html[lang=en] .brand-name{font-size:17px}html[lang=en] h1{font-size:32px}.footer-legal{align-items:flex-start;gap:10px;flex-wrap:wrap}.footer-legal span{font-size:9px}.visual-caption>span{font-size:8px}.aid-title label{font-size:10px}.aid-title output{font-size:10px}.stage-badge{padding:7px 9px}}
