:root{--paper:#f6f5ef;--white:#fffef9;--ink:#223d3c;--muted:#63746c;--line:#dedfd5;--accent:#335ce8;--accent-hover:#2449c9;--mint:#dfeae0;--yellow:#e9ee91;--radius:22px;--shadow:0 12px 36px #243d3910;--gutter:clamp(18px,3.2vw,52px);color-scheme:light;font-family:"Segoe UI","Hiragino Kaku Gothic ProN","Yu Gothic",Arial,sans-serif;font-synthesis:none;-webkit-font-smoothing:antialiased}*{box-sizing:border-box}body{margin:0;background:var(--paper);color:var(--ink)}button,input,select{font:inherit}button,a,input{-webkit-tap-highlight-color:transparent}button{cursor:pointer;color:inherit}button{border:0;background:none}a{color:inherit;text-decoration:none}button:disabled{opacity:.48;cursor:not-allowed}button:focus-visible,a:focus-visible,input:focus-visible,summary:focus-visible{outline:3px solid var(--accent);outline-offset:4px}button,a{touch-action:manipulation}button{transition:background .18s,transform .18s,border-color .18s}button:active:not(:disabled){transform:translateY(1px)}[hidden]{display:none!important}.icon{width:21px;height:21px;flex:none;vertical-align:middle}.wrap{max-width:1440px;margin:0 auto;padding:0 var(--gutter)}.site-header{height:88px;display:flex;align-items:center;justify-content:space-between;border-bottom:1px solid var(--line);gap:20px}.brand{display:inline-flex;align-items:center;gap:10px;font-size:29px;font-weight:800;letter-spacing:-1.8px;white-space:nowrap}.brand-dot{color:var(--accent)}.brand-mark{display:grid;grid-template-columns:11px 11px;grid-template-rows:11px 11px;gap:3px;transform:rotate(-12deg);width:25px;height:25px}.brand-mark i{background:var(--accent);border-radius:3px}.brand-mark i:nth-child(2){background:#d8ad75;border-radius:50%}.brand-mark i:nth-child(3){background:#83a898;grid-column:1/3;border-radius:3px}.nav-links{display:flex;gap:30px;font-size:14px;align-items:center}.nav-links a,.nav-links button{min-height:44px;display:inline-flex;align-items:center;font-weight:600;padding:8px 4px}.nav-links .active{position:relative}.nav-links .active:after{content:'';height:3px;background:var(--ink);position:absolute;bottom:-20px;left:4px;right:4px;border-radius:3px}.badge-count{margin-left:8px;font:600 11px/22px monospace;width:22px;text-align:center;background:var(--mint);border-radius:8px}.header-tools{display:flex;align-items:center;gap:8px}.icon-btn{width:44px;height:44px;display:inline-grid;place-items:center;border:1px solid var(--line);border-radius:13px;background:var(--white)}.icon-btn:hover{background:#eaece3}.language-btn{min-height:44px;min-width:64px;padding:10px 13px;display:flex;align-items:center;gap:8px;font-size:12px;font-weight:700}.language-btn .icon{width:17px;height:17px}.pill{display:inline-flex;align-items:center;gap:8px;padding:9px 12px;background:var(--yellow);border-radius:99px;font-size:10px;font-weight:700;letter-spacing:1.35px;line-height:1}.pill i{height:6px;width:6px;border-radius:50%;background:var(--ink)}.eyebrow{font-size:10px;font-weight:700;letter-spacing:1.65px;text-transform:uppercase;color:var(--muted)}.hero{display:grid;grid-template-columns:.9fr 1.1fr;gap:36px;align-items:center;padding:44px 0 46px}.hero-copy{position:relative;z-index:1}.hero h1{font-family:"Trebuchet MS","Segoe UI",sans-serif;font-size:clamp(45px,4.5vw,72px);line-height:1.045;letter-spacing:-3.6px;margin:24px 0 22px;font-weight:800}.hero h1 em{font-style:normal;color:var(--accent)}.hero-copy p{max-width:390px;color:var(--muted);font-size:16px;line-height:1.65;margin:0 0 26px}.primary{display:inline-flex;align-items:center;justify-content:center;gap:12px;min-height:52px;padding:0 23px;background:var(--accent);color:white;border-radius:13px;font-size:14px;font-weight:650;border:1px solid #0000;box-shadow:0 5px 14px #325bdf18}.primary:hover{background:var(--accent-hover)}.primary .icon{width:18px;height:18px}.hero-actions{display:flex;align-items:center;gap:22px}.hero-meta{font-size:11px;line-height:1.9;color:var(--muted)}.hero-meta strong{color:var(--ink);font-weight:600}.hero-art{height:417px;border-radius:120px 24px 24px 24px;position:relative;overflow:hidden;background:#dce7db}.hero-art canvas{display:block;width:100%;height:100%}.hero-art:after{content:'';position:absolute;inset:0;border:1px solid #2b4b3520;border-radius:inherit;pointer-events:none}.hero-note{position:absolute;bottom:24px;left:24px;display:flex;align-items:center;gap:11px;background:#fffef2e6;border:1px solid #ffffffd9;backdrop-filter:none;border-radius:14px;padding:13px 18px;box-shadow:0 8px 25px #1d372c10}.hero-note .icon{color:var(--accent);width:22px;height:22px}.hero-note span{font-size:11px;line-height:1.4}.hero-note strong{font-size:12px;display:block}.hero-stamp{position:absolute;right:19px;top:19px;width:64px;height:64px;border:1px solid #f4f6eac7;background:#eef3e1b5;border-radius:50%;font-size:9px;letter-spacing:1px;line-height:1.5;display:grid;place-content:center;text-align:center;transform:rotate(12deg);font-weight:700}.collection-header{display:flex;justify-content:space-between;align-items:flex-end;padding:28px 0 22px;border-top:1px solid var(--line);gap:20px}.collection-header h2{margin:0 0 5px;font-size:27px;letter-spacing:-.85px}.collection-header p{margin:0;font-size:12px;color:var(--muted)}.filters{display:flex;gap:5px;align-items:center;background:#e9ece3;padding:5px;border-radius:12px}.filter{min-height:36px;padding:0 15px;font-size:12px;font-weight:600;border-radius:8px;white-space:nowrap}.filter.active{background:var(--white);box-shadow:0 1px 5px #223d3c12}.filter:hover:not(.active){background:#dce3d7}.game-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:22px}.game-card{background:var(--white);border:1px solid var(--line);border-radius:18px;padding:8px 8px 17px;transition:transform .2s,box-shadow .2s,border .2s;overflow:hidden;display:block}.game-card:hover{transform:translateY(-5px);box-shadow:0 12px 26px #223d3c14;border-color:#adbdac}.game-card figure{margin:0;border-radius:12px;aspect-ratio:1.45;background:var(--card-bg);overflow:hidden;position:relative}.game-card img{width:100%;height:100%;object-fit:cover;display:block;transition:transform .4s}.game-card:hover img{transform:scale(1.05)}.card-number{position:absolute;top:12px;left:12px;font:600 10px/1 monospace;color:#425a51;background:#fffdf4cf;backdrop-filter:none;border:1px solid #ffffffa1;border-radius:7px;padding:7px 8px}.card-body{padding:16px 9px 0;position:relative}.card-body .eyebrow{font-size:9px;letter-spacing:1.2px;margin-bottom:8px}.card-body h3{font-size:19px;letter-spacing:-.55px;margin:0 0 7px;line-height:1.18;padding-right:20px}.card-body p{font-size:11px;line-height:1.55;color:var(--muted);margin:0 0 16px;min-height:34px}.card-bottom{display:flex;align-items:center;justify-content:space-between;font-size:10px;color:var(--muted)}.card-go{display:inline-flex;align-items:center;gap:6px;color:var(--ink);font-weight:600}.card-go .icon{width:15px;height:15px}.discovery-strip{background:#e9ebdf;border-radius:20px;padding:25px 29px;display:flex;justify-content:space-between;align-items:center;margin:30px 0 48px;gap:24px}.discovery-strip h3{font-size:20px;letter-spacing:-.5px;margin:0 0 6px}.discovery-strip p{font-size:12px;color:var(--muted);margin:0;line-height:1.6}.secondary{display:inline-flex;gap:9px;align-items:center;justify-content:center;background:var(--white);border:1px solid var(--line);border-radius:12px;min-height:46px;padding:0 17px;font-size:12px;font-weight:600;white-space:nowrap}.secondary:hover{background:#ecefe6}.footer{border-top:1px solid var(--line);padding:24px 0 28px;display:flex;justify-content:space-between;gap:20px;color:var(--muted);font-size:11px;line-height:1.6}.footer p{margin:0}.footer button{font-size:11px;text-decoration:underline;text-underline-offset:3px}.skip-link{position:fixed;top:-100px;left:12px;z-index:999;background:white;padding:12px 18px}.skip-link:focus{top:12px}
/* Workshop shell */
.game-page .site-header{height:72px}.game-page .brand{font-size:26px}.game-page .nav-links{font-size:12px;gap:22px}.game-page .nav-links .active:after{bottom:-13px}.breadcrumb{display:flex;align-items:center;gap:8px;color:var(--muted);font-size:12px;min-height:44px}.breadcrumb .icon{width:16px;height:16px}.game-title-row{display:flex;justify-content:space-between;align-items:center;gap:20px;padding:25px 0 23px}.title-block{display:flex;align-items:center;gap:17px}.game-number{font:600 13px/1 monospace;padding:13px;border:1px solid #cad6c8;border-radius:13px;background:#e9ece0;align-self:flex-start;margin-top:4px}.game-title-row h1{font-family:"Trebuchet MS","Segoe UI",sans-serif;font-size:32px;line-height:1.12;letter-spacing:-1.3px;margin:0 0 7px}.game-title-row p{margin:0;color:var(--muted);font-size:13px;line-height:1.5}.best-record{text-align:right;display:flex;align-items:center;gap:12px}.best-record .icon{color:#9c9b77;width:23px;height:23px}.best-record small{display:block;color:var(--muted);font-size:9px;font-weight:700;letter-spacing:1.4px;margin-bottom:5px}.best-record strong{font-size:23px;font-weight:600;letter-spacing:-.7px}.best-record em{font-style:normal;color:var(--muted);font-size:12px;margin-left:5px}.workbench{display:grid;grid-template-columns:minmax(0,1fr) 308px;gap:20px;align-items:stretch}.viewport-panel{background:#edf0e6;border:1px solid #cfd8cb;border-radius:22px;overflow:hidden;position:relative;min-width:0;display:flex;flex-direction:column}.scene-wrap{position:relative;isolation:isolate;flex:1;min-height:510px;overflow:hidden}.scene-wrap canvas{width:100%;height:100%;display:block;position:absolute;inset:0;touch-action:pan-y;cursor:grab}.scene-wrap canvas:active{cursor:grabbing}.scene-vignette{pointer-events:none;position:absolute;inset:0;background:linear-gradient(180deg,#fffef312,transparent 20%,transparent 80%,#34534208)}.scene-label{position:absolute;left:23px;top:22px;padding:10px 12px;display:flex;align-items:center;gap:8px;border-radius:9px;border:1px solid #ffffffc9;background:#f9fcf3d9;backdrop-filter:none;font:600 9px/1 monospace;letter-spacing:1.2px;z-index:2}.scene-label i{width:5px;height:5px;border-radius:50%;background:#729b81}.scene-tools{position:absolute;top:16px;right:16px;display:flex;gap:7px;z-index:5}.scene-tools .icon-btn{width:40px;height:40px;background:#f9fcf3d9;border-color:#ffffffc9;backdrop-filter:none;border-radius:11px}.scene-tools .icon{width:17px;height:17px}.preview-caption{position:absolute;bottom:22px;left:24px;color:#415a4c;font-size:10px;display:flex;gap:8px;align-items:center;z-index:2;letter-spacing:.2px}.preview-caption .icon{width:15px;height:15px}.scene-footer{display:flex;align-items:center;justify-content:space-between;gap:14px;min-height:51px;padding:9px 20px;background:#fcfcf5;border-top:1px solid var(--line);font-size:11px;color:var(--muted)}.scene-footer strong{color:var(--ink);font-size:11px;font-weight:600}.scene-footer .icon{width:15px;height:15px}.scene-footer span{display:flex;align-items:center;gap:7px}.mode-toggle{display:flex;padding:3px;background:#ecefe5;border-radius:8px;gap:2px}.mode-toggle button{font-size:10px;min-height:30px;padding:0 10px;border-radius:6px}.mode-toggle button.active{background:#fffdf5;box-shadow:0 1px 4px #0001;color:var(--ink);font-weight:600}.build-panel{display:flex;flex-direction:column;border:1px solid var(--line);background:var(--white);border-radius:22px;overflow:hidden}.build-header{padding:21px 21px 17px;border-bottom:1px solid #e8e8de}.build-steps{display:flex;gap:6px;align-items:center;margin-bottom:17px;font:600 8px/1 monospace;letter-spacing:1px;color:#8c9688}.build-steps span:first-child{color:var(--accent)}.build-steps i{width:17px;height:1px;background:#cad0c3}.build-header h2{font-size:20px;margin:0 0 6px;letter-spacing:-.6px}.build-header p{font-size:11px;line-height:1.6;margin:0;color:var(--muted)}.build-fields{padding:17px 20px 0}.field{border:0;padding:0;margin:0 0 19px;min-width:0}.field legend,.field-label{font-size:10px;letter-spacing:.25px;font-weight:650;margin:0 0 10px;padding:0;color:var(--ink)}.options{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:6px}.options.two{grid-template-columns:repeat(2,minmax(0,1fr))}.part{display:flex;flex-direction:column;align-items:center;justify-content:center;padding:10px 2px 9px;min-height:85px;background:#f5f5ed;border:1px solid #e1e4d8;border-radius:11px;position:relative}.part:hover{background:#e9eee2;border-color:#b4c1b0}.part.selected{border-color:var(--accent);background:#edf0fe;box-shadow:inset 0 0 0 .5px var(--accent)}.part.selected:after{content:'';position:absolute;top:6px;right:6px;width:5px;height:5px;border-radius:50%;background:var(--accent)}.part .icon{width:25px;height:25px;margin-bottom:8px;color:#71897c}.part.selected .icon{color:var(--accent)}.part strong{font-size:10px;font-weight:650;line-height:1.25}.part small{font-size:8px;line-height:1.4;color:var(--muted);margin-top:4px;text-align:center;padding:0 2px;white-space:normal}.range-top{display:flex;justify-content:space-between;align-items:center;margin-bottom:5px}.range-top label{margin:0}.range-top output{font-size:13px;font-weight:700;color:var(--accent);min-width:36px;text-align:right}.range-control{display:flex;gap:8px;align-items:center}.range-control button{width:37px;height:44px;flex:none;background:#f0f2e8;border-radius:9px;font-size:21px;color:var(--muted)}input[type=range]{width:100%;accent-color:var(--accent);height:35px;min-width:0;cursor:pointer}.range-labels{display:flex;justify-content:space-between;padding:0 45px;font:10px monospace;color:var(--muted);margin-top:0}.build-stats{padding:12px 15px;display:grid;gap:10px;background:#f0f3e9;border:1px solid #e4e9dc;border-radius:12px;margin:0 20px 16px;font-size:10px}.stat-line{display:flex;justify-content:space-between;gap:12px}.stat-line span{color:var(--muted)}.stat-line strong{font-weight:650}.launch-zone{padding:0 20px 18px;margin-top:auto;display:grid;gap:11px}.launch-zone .primary{width:100%;font-size:13px}.reset-build{font-size:10px;color:var(--muted);min-height:30px;display:flex;align-items:center;justify-content:center;gap:6px}.reset-build .icon{width:13px;height:13px}.under-workbench{padding:19px 0 32px;display:flex;justify-content:space-between;gap:16px;font-size:11px;color:var(--muted);align-items:center}.under-workbench p{margin:0;line-height:1.7}.under-workbench button{font-size:11px;display:flex;gap:6px;align-items:center;min-height:44px}.under-workbench .icon{width:15px;height:15px}.hud{position:absolute;inset:0;pointer-events:none;z-index:3;display:none}.hud-main{position:absolute;top:22px;left:25px}.hud-main small{display:block;font-size:9px;letter-spacing:1.5px;font-weight:700;color:#476159}.hud-score{display:flex;align-items:baseline;gap:7px;margin-top:4px}.hud-score strong{font-family:"Trebuchet MS","Segoe UI",sans-serif;font-weight:800;line-height:1;font-size:46px;letter-spacing:-2px;font-variant-numeric:tabular-nums;color:#213c36;text-shadow:0 1px 10px #ffffff36}.hud-score em{font-size:15px;font-style:normal;color:#50695b}.hud-resource{position:absolute;top:25px;left:50%;transform:translateX(-50%);width:140px;background:#fffef3bf;padding:11px 13px;border-radius:12px;border:1px solid #ffffffa0;backdrop-filter:none}.hud-resource-head{display:flex;justify-content:space-between;font:9px monospace;gap:8px;white-space:nowrap;color:#48624e}.meter{height:5px;border-radius:4px;background:#c6d0be;margin-top:8px;overflow:hidden}.meter i{display:block;height:100%;width:100%;background:#628d7b;border-radius:4px;transition:width .15s linear}.hud-extra{position:absolute;left:25px;top:93px;max-width:calc(100% - 50px);font-size:11px;color:#34503f;background:#fffef3bb;border-radius:7px;padding:6px 9px;line-height:1.4}.game-message{position:absolute;left:50%;top:44%;transform:translate(-50%,-50%);font-size:15px;font-weight:650;line-height:1.5;color:var(--ink);padding:12px 18px;background:#fffef3e8;border:1px solid #fffef3;border-radius:13px;text-align:center;max-width:80%;backdrop-filter:none;opacity:0;transition:opacity .15s;z-index:7;pointer-events:none;box-shadow:0 4px 22px #17382a10}.game-message.visible{opacity:1}.play-controls{position:absolute;bottom:24px;left:24px;right:24px;display:none;align-items:center;justify-content:space-between;pointer-events:none;gap:12px;z-index:6}.control-side{display:flex;gap:10px}.control-button{pointer-events:auto;min-width:58px;height:56px;background:#fffdf0df;border:1px solid #fffff3;border-radius:16px;backdrop-filter:none;box-shadow:0 6px 20px #203d3212;font-size:23px;font-weight:400;touch-action:none;user-select:none;-webkit-user-select:none}.control-button:active,.control-button.pressed{background:#dfe8cd}.control-button.action-button{font-size:10px;letter-spacing:1px;font-weight:800;padding:0 23px;min-width:92px;background:#274a40;color:#fffdf0;border-color:#ffffff55}.control-label{font-size:10px;color:#466453;background:#fffdf0ab;border-radius:8px;padding:7px 9px;line-height:1.4;max-width:260px}.playing .workbench{grid-template-columns:1fr}.playing .build-panel{display:none}.playing .scene-wrap{height:min(72svh,750px);min-height:500px}.playing .scene-wrap canvas{touch-action:none;cursor:default}.playing .scene-label,.playing .preview-caption{display:none}.playing .hud,.playing .play-controls{display:flex}.playing .viewport-panel{border-color:#c2cfc0}.playing .scene-tools .preview-only{display:none}.not-playing .play-only{display:none}.play-overlay{position:absolute;inset:0;z-index:15;background:#edf2e3b8;backdrop-filter:none;display:grid;place-items:center}.pause-card{text-align:center;padding:28px;max-width:350px}.pause-card h2{font-size:30px;letter-spacing:-.9px;margin:10px 0 24px}.pause-card .primary{min-width:180px}.pause-card .secondary{margin-top:10px}.error-box{position:absolute;inset:0;display:flex;align-items:center;justify-content:center;flex-direction:column;gap:20px;background:#e5eadd;padding:25px;text-align:center;z-index:40}.error-box p{max-width:440px;line-height:1.7;font-size:14px}.error-box h2{margin:0;font-size:23px}.levels{display:grid;grid-template-columns:repeat(4,1fr);gap:6px}.level-btn{min-height:44px;border-radius:8px;border:1px solid var(--line);background:#f5f5ed;font-size:12px;font-weight:600}.level-btn.selected{background:#edf0fe;border-color:var(--accent);color:var(--accent)}.chain-tools{padding:0 20px;margin:0 0 16px}.gap-buttons{display:flex;gap:5px;flex-wrap:wrap;margin:0 0 8px}.gap-btn{min-width:44px;height:44px;padding:0 8px;background:#e5eee2;border:1px solid #ccd9c4;border-radius:9px;font:10px monospace}.gap-btn.filled{background:#f2e2cb;border-color:#d6bc93}.gap-btn.selected{border-color:var(--accent)}.chain-tools .secondary{width:100%;font-size:10px;min-height:35px;margin-bottom:5px}.chain-tools p{font-size:10px;line-height:1.5;color:var(--muted);margin:5px 0}.toast{position:fixed;bottom:24px;left:50%;transform:translateX(-50%);background:#243e36;color:#fffdf3;border:1px solid #49604e;border-radius:12px;box-shadow:var(--shadow);padding:13px 22px;font-size:12px;max-width:90%;z-index:99;line-height:1.7;opacity:0;pointer-events:none;transition:opacity .2s}.toast.visible{opacity:1}.dialog{border:1px solid #dedfd3;padding:30px;width:min(480px,calc(100vw - 32px));border-radius:24px;color:var(--ink);background:var(--white);box-shadow:0 28px 100px #18352a2b;max-height:calc(100svh - 35px);overflow-y:auto}.dialog::backdrop{background:#2b443a59;backdrop-filter:none}.dialog-top{display:flex;justify-content:space-between;align-items:center;gap:16px;margin-bottom:16px}.dialog-top .icon-btn{background:#f4f5eb;flex:none}.dialog h2{font-size:28px;letter-spacing:-1px;margin:8px 0 16px;line-height:1.2}.dialog p{font-size:13px;line-height:1.85;color:var(--muted);margin:12px 0}.dialog details{font-size:12px;line-height:1.7;background:#f0f3e9;border-radius:12px;padding:14px;margin-top:18px}.dialog details p{font-size:12px}.dialog summary{cursor:pointer;font-weight:600}.dialog .setting-row{display:flex;align-items:center;justify-content:space-between;gap:12px;border-top:1px solid var(--line);padding:17px 0}.dialog .setting-row label{font-size:13px}.dialog select{border:1px solid var(--line);background:#f0f3e9;border-radius:9px;padding:11px;font-size:12px;min-height:44px;max-width:58%}.result-dialog{width:min(470px,calc(100vw - 28px));text-align:center;padding:27px}.result-dialog .dialog-top{margin-bottom:7px}.result-dialog .eyebrow{font-size:9px}.result-dialog h2{font-size:27px;letter-spacing:-.9px;margin:15px 0 12px}.result-score{font-family:"Trebuchet MS",sans-serif;font-size:69px;font-weight:800;letter-spacing:-3px;line-height:1.1;margin:10px 0 5px}.result-score small{font-size:20px;font-weight:500;letter-spacing:0;margin-left:6px;color:var(--muted)}.result-stat-grid{display:flex;gap:10px;justify-content:center;margin:18px 0}.result-stat{flex:1;background:#eef2e7;border-radius:12px;padding:13px 8px;font-size:11px}.result-stat strong{display:block;font-size:18px;margin-bottom:5px}.result-stat span{font-size:10px;color:var(--muted)}.result-detail{font-size:12px!important;line-height:1.7!important;margin:15px 0 20px!important}.result-actions{display:grid;gap:9px}.result-actions .primary,.result-actions .secondary{width:100%}.result-bottom{display:flex;justify-content:center;gap:25px;margin-top:14px}.text-btn{font-size:11px;min-height:40px;display:inline-flex;align-items:center;gap:7px}.text-btn .icon{width:16px;height:16px}.badge-new{background:var(--yellow);padding:8px 12px;border-radius:30px;font-size:9px;letter-spacing:1px;font-weight:700;display:inline-block}.number-unit{font-size:.55em;font-weight:400;letter-spacing:0}.loading-marker{position:absolute;inset:0;display:grid;place-items:center;pointer-events:none;font-size:12px;color:var(--muted);z-index:5;background:#e4ebdf}.spin{width:25px;height:25px;border:2px solid #c8d5bd;border-top-color:#436454;border-radius:50%;animation:spin .8s linear infinite}@keyframes spin{to{transform:rotate(360deg)}}
@media(min-width:1700px){.scene-wrap{min-height:610px}.hero-art{height:455px}.hero{padding-top:55px}}@media(max-width:1100px){.game-grid{gap:15px;grid-template-columns:repeat(3,minmax(0,1fr))}.hero{gap:20px}.hero h1{font-size:54px}.hero-art{height:380px}.workbench{grid-template-columns:minmax(0,1fr) 285px;gap:15px}.build-fields{padding:16px 15px 0}.build-header{padding:18px 16px}.build-stats{margin:0 15px 14px}.launch-zone{padding:0 15px 17px}.scene-wrap{min-height:505px}.game-title-row h1{font-size:29px}.part small{font-size:7.5px}.hud-resource{left:auto;right:70px;transform:none;top:20px;width:110px}.hud-main{left:18px}.hud-score strong{font-size:38px}.scene-label{left:17px}}
@media(max-width:800px){.nav-links{gap:15px}.hero{grid-template-columns:1fr 1fr}.hero h1{font-size:44px;letter-spacing:-2.5px}.hero-copy p{font-size:14px}.hero-art{height:340px;border-top-left-radius:70px}.hero-actions{gap:10px;flex-wrap:wrap}.hero-meta{font-size:10px}.hero-note{left:14px;bottom:15px;padding:10px 12px}.hero-stamp{display:none}.collection-header{align-items:flex-start;flex-direction:column;gap:15px}.filters{width:100%;justify-content:space-between}.filter{flex:1;padding:0 8px}.game-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.workbench{grid-template-columns:1fr}.scene-wrap{height:430px;min-height:0}.build-panel{display:block}.build-fields{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:17px;padding:17px 20px 0}.build-header{padding:18px 20px}.build-header .build-steps{display:none}.build-header p{display:none}.build-header h2{font-size:17px;margin:0}.build-stats{margin:0 20px 16px;display:flex;gap:24px}.stat-line{gap:15px}.launch-zone{padding:0 20px 17px}.launch-zone .primary{max-width:330px;margin:0 auto}.launch-zone .reset-build{min-height:22px}.field{margin-bottom:16px}.chain-tools{padding:0 20px}.build-fields:has(.levels){grid-template-columns:1fr 1fr}.game-title-row{padding:21px 0 18px}.game-title-row p{font-size:12px}.best-record{gap:8px}.best-record strong{font-size:20px}.game-number{display:none}.under-workbench{padding-bottom:24px}.playing .scene-wrap{height:calc(100svh - 215px);min-height:420px}}
@media(max-width:550px){:root{--gutter:18px}.site-header{height:72px;gap:10px}.brand{font-size:26px}.nav-links{display:none}.header-tools{gap:4px}.header-tools>.icon-btn{width:40px;height:40px}.language-btn{padding:8px 4px;min-width:56px}.hero{grid-template-columns:1fr;gap:26px;padding:29px 0 31px}.hero h1{font-size:49px;letter-spacing:-2.8px;margin:20px 0 16px}.hero-copy p{font-size:14px;max-width:330px;margin-bottom:22px}.hero-actions{gap:17px}.hero-art{height:315px;border-radius:66px 20px 20px 20px}.hero-note{left:19px;bottom:18px}.hero-stamp{display:grid;width:51px;height:51px;font-size:8px}.hero-meta{font-size:10px}.hero .primary{min-height:48px;font-size:12px;padding:0 17px}.pill{font-size:8px}.collection-header{padding-top:23px}.collection-header h2{font-size:24px}.collection-header p{font-size:11px}.filter{font-size:10px;padding:0 7px;min-height:36px}.game-grid{gap:12px}.game-card{padding:6px 6px 13px;border-radius:14px}.game-card figure{aspect-ratio:1.1;border-radius:9px}.card-number{top:8px;left:8px;font-size:9px;padding:6px}.card-body{padding:12px 5px 0}.card-body h3{font-size:16px;letter-spacing:-.35px;padding-right:0;min-height:38px}.card-body .eyebrow{font-size:7px;letter-spacing:.7px}.card-body p{font-size:10px;line-height:1.55;min-height:47px;margin-bottom:12px}.card-bottom{font-size:8px;gap:3px}.card-go{font-size:9px;gap:3px}.card-go .icon{width:12px}.discovery-strip{padding:22px;flex-direction:column;align-items:flex-start;margin:24px 0 32px;gap:17px}.discovery-strip h3{font-size:20px}.discovery-strip p{font-size:11px}.discovery-strip .secondary{font-size:11px;min-height:44px}.footer{font-size:10px;padding:22px 0;align-items:flex-start;gap:12px}.footer p{max-width:200px}.footer button{font-size:10px}.game-page .site-header{height:63px}.game-page .brand{font-size:24px}.game-page .header-tools{gap:5px}.breadcrumb{font-size:10px;gap:4px}.breadcrumb .icon{width:14px}.game-title-row{padding:20px 0 17px;gap:14px;align-items:flex-start}.game-title-row h1{font-size:25px;letter-spacing:-.9px;margin-bottom:7px}.game-title-row p{font-size:11px;max-width:240px;line-height:1.6}.best-record .icon{display:none}.best-record small{font-size:7px;letter-spacing:.7px;margin-bottom:5px;white-space:nowrap}.best-record strong{font-size:20px}.best-record em{font-size:9px;margin-left:3px}.best-record{margin-top:4px}.workbench{gap:14px}.viewport-panel{border-radius:18px}.scene-wrap{height:355px}.scene-label{font-size:8px;left:15px;top:16px;padding:8px 10px}.scene-tools{top:10px;right:10px;gap:5px}.scene-tools .icon-btn{width:37px;height:37px}.scene-tools .icon{width:16px}.preview-caption{left:16px;bottom:16px;font-size:9px;gap:6px}.scene-footer{padding:8px 12px;min-height:46px;font-size:9px;gap:6px}.scene-footer strong{font-size:9px}.scene-footer .icon{width:13px}.scene-footer span:first-child{gap:5px}.mode-toggle button{font-size:8px;padding:0 7px;min-height:28px}.build-panel{border-radius:18px;margin-bottom:70px}.build-header{padding:18px 17px 14px}.build-header h2{font-size:17px}.build-fields{display:block;padding:17px 17px 0}.field{margin:0 0 20px}.field legend,.field-label{font-size:11px;margin-bottom:10px}.options{gap:8px}.part{min-height:78px;padding:10px 5px;display:grid;grid-template-columns:30px auto;grid-template-rows:auto auto;text-align:left;gap:2px 4px;justify-content:center}.part .icon{width:23px;height:23px;grid-row:1/3;margin:0}.part strong{font-size:10px;align-self:end}.part small{font-size:8px;padding:0;text-align:left;align-self:start;margin:0}.part.selected:after{top:5px;right:5px;width:4px;height:4px}.range-control button{width:40px}.range-top output{font-size:15px}.build-stats{margin:0 17px 17px;display:grid;gap:10px;font-size:11px}.launch-zone{position:fixed;bottom:0;left:0;right:0;padding:12px 18px max(12px,env(safe-area-inset-bottom));z-index:20;background:#f8f9f0ed;backdrop-filter:none;border-top:1px solid #dde1d2;box-shadow:0 -8px 30px #243d3908;display:flex;align-items:center;gap:14px}.launch-zone .primary{max-width:none;flex:1;min-height:49px;font-size:12px;border-radius:12px;order:2}.launch-zone .reset-build{font-size:0;width:44px;height:46px;border:1px solid #d6dccd;background:#fffff6;border-radius:12px;flex:none;order:1}.launch-zone .reset-build .icon{width:18px;height:18px}.under-workbench{display:none}.game-page .footer{margin-bottom:90px}.game-page.playing .footer{margin-bottom:0}.playing .scene-wrap{height:calc(100svh - 218px);min-height:405px}.playing .game-title-row{padding-top:14px;padding-bottom:14px}.playing .game-title-row p{display:none}.playing .game-title-row h1{margin:0;font-size:22px}.playing .hud-main{top:19px;left:17px}.hud-main small{font-size:8px;letter-spacing:.9px}.hud-score strong{font-size:37px;letter-spacing:-1.8px}.hud-score em{font-size:12px}.hud-resource{right:62px;top:14px;width:99px;padding:9px 10px}.hud-resource-head{font-size:8px;gap:3px}.hud-extra{left:17px;top:80px;font-size:10px;max-width:calc(100% - 35px)}.play-controls{bottom:18px;left:16px;right:16px;gap:6px}.control-label{display:none}.control-button{min-width:56px;height:56px;border-radius:15px}.control-button.action-button{min-width:95px;font-size:10px;padding:0 14px}.control-side{gap:8px}.playing .scene-tools{top:11px;right:11px}.game-message{font-size:12px;padding:10px 14px;max-width:83%;width:max-content}.result-dialog{padding:22px}.result-dialog h2{font-size:24px}.result-score{font-size:61px}.dialog{padding:23px}.dialog h2{font-size:25px}.dialog p{font-size:12px}.result-bottom{gap:15px}.text-btn{font-size:10px}.chain-tools{padding:0 17px}.build-fields:has(.levels){display:block}.build-fields .levels{grid-template-columns:repeat(8,minmax(0,1fr));gap:4px}.level-btn{font-size:10px;border-radius:7px}.toast{bottom:90px;font-size:11px;padding:12px 17px}.playing .toast{bottom:22px}}
@media(max-width:360px){.hero h1{font-size:44px}.part{grid-template-columns:1fr;grid-template-rows:auto auto auto;justify-items:center;text-align:center}.part .icon{grid-row:auto}.part small{text-align:center}.game-title-row h1{font-size:22px}.scene-footer>span{max-width:125px}.filters{gap:0}.filter{font-size:9px;padding:0 5px}.card-body h3{font-size:14px}.card-go{font-size:8px}.hud-resource{width:88px}}
@media(max-height:530px) and (orientation:landscape){.game-page .site-header{height:54px}.game-title-row{padding:12px 0}.game-title-row p{display:none}.playing .scene-wrap{height:calc(100svh - 150px);min-height:250px}.playing .game-title-row{display:none}.playing .scene-footer{min-height:40px}.control-button{height:46px;min-width:50px}.play-controls{bottom:12px}.hud-score strong{font-size:32px}.hud-extra{top:77px;font-size:9px}.scene-tools{top:12px}.playing .hud-main{top:15px}.playing .hud-resource{top:14px}.result-dialog{max-width:570px}.result-score{font-size:40px}.result-detail{margin:8px 0!important}.result-stat-grid{margin:8px 0}.result-dialog h2{font-size:22px;margin:8px 0}.result-dialog .dialog-top{margin:0}.result-actions{grid-template-columns:1fr 1fr}}
@media(prefers-reduced-motion:reduce){*{transition:none!important;animation:none!important;scroll-behavior:auto!important}.game-card:hover{transform:none}.game-card:hover img{transform:none}}

/* Paused and modal states use a static scrim: avoids an expensive full-canvas blur on mobile GPUs. */
.play-overlay{background:#edf2e3ef;backdrop-filter:none}.dialog::backdrop{backdrop-filter:none;background:#253f386b}

.scene-tools .icon-btn{width:44px;height:44px}.scene-tools .icon{width:18px;height:18px}@media(max-width:550px){.scene-tools .icon-btn{width:42px;height:42px}.scene-label{padding:8px;letter-spacing:.6px}}

/* Mobile: the preview owns a real, non-collapsing flex basis. */
@media(max-width:800px){.scene-wrap{flex:0 0 auto;height:430px;min-height:430px}.playing .scene-wrap{flex:0 0 auto}}
@media(max-width:550px){.scene-wrap{height:355px;min-height:355px}.game-page .breadcrumb span{display:none}.game-page .breadcrumb{width:32px;height:44px;justify-content:center}.game-page .breadcrumb .icon{width:20px;height:20px}.game-page .language-btn{min-width:52px;padding:10px 4px;white-space:nowrap}.game-page .language-btn .icon{display:none}.game-page .site-header{gap:6px}.scene-tools .icon-btn{width:44px;height:44px}.part{display:flex;flex-direction:column;align-items:center;justify-content:center;text-align:center;gap:5px;min-height:90px}.part strong,.part small{align-self:center;text-align:center}.part strong{font-size:11px}.part small{font-size:8px}.mode-toggle button{min-height:34px}.scene-footer{min-height:52px}}

.playing .scene-footer,.game-page.playing .footer{display:none}
@media(max-width:550px){.playing .scene-wrap{height:calc(100svh - 144px);min-height:420px}}
@media(max-height:530px) and (orientation:landscape){.playing .scene-wrap{height:calc(100svh - 80px);min-height:250px}}

/* ==========================================================
   DESKTOP GAME SHELL — v2.1
   Applied only through a fine-pointer + desktop-size query.
   The original mobile and tablet rules above are unchanged.
   ========================================================== */
.desktop-ui{display:none}
body.desktop-game{--accent:#d9f27c;--accent-hover:#e8ffa0;--ink:#f5f6ee;--muted:#b4c4ca;--line:#ffffff25;--white:#192d37;--paper:#11232c;background:#122731;color:var(--ink);overflow:hidden;height:100dvh}
.desktop-game #app,.desktop-game .wrap{width:100%;height:100%;max-width:none;margin:0;padding:0}
.desktop-game .desktop-ui{display:block}
.desktop-game .site-header{position:fixed;inset:24px 34px auto;height:44px;padding:0;border:0;z-index:21;gap:24px;pointer-events:none}
.desktop-game .site-header>*{pointer-events:auto}
.desktop-game .brand{font-size:21px;letter-spacing:-1px;color:#f8f9ed}
.desktop-game .brand-mark{transform:rotate(-12deg) scale(.83);margin-right:-3px}
.desktop-game .brand-mark i:first-child{background:#d9f27c}
.desktop-game .brand-mark i:nth-child(2){background:#ffa776}
.desktop-game .brand-mark i:nth-child(3){background:#c0dacf}
.desktop-game .breadcrumb{margin-right:auto;padding-left:24px;border-left:1px solid #ffffff35;color:#e3ece8;font-size:12px;height:28px;min-height:28px;gap:8px}
.desktop-game .header-tools{gap:8px}
.desktop-game .language-btn{color:#f3f6ee}
.desktop-game .icon-btn{border:1px solid #ffffff32;background:#122632d9;color:#f0f3e9;border-radius:8px;box-shadow:0 3px 0 #05121d40}
.desktop-game .icon-btn:hover{background:#34515c;border-color:#d9f27c;color:#e8ffa0}
.desktop-game .game-title-row{position:fixed;left:38px;right:38px;top:107px;padding:0;z-index:6;pointer-events:none;align-items:flex-start;gap:28px}
.desktop-game .title-block{position:relative;display:block;padding-top:27px}
.desktop-game .game-number{position:absolute;top:0;left:0;font:700 11px/20px monospace;letter-spacing:.6px;border:1px solid #ffffff55;border-radius:4px;background:#132b3480;color:#e8f0d8;padding:1px 7px;margin:0;min-width:29px;text-align:center}
.desktop-game .desktop-state{position:absolute;top:4px;left:44px;letter-spacing:2px;font-size:10px;color:#d8e7dc;font-weight:700}
.desktop-game .game-title-row h1{font-family:'Arial Black','Trebuchet MS','Segoe UI',Arial,sans-serif;text-transform:uppercase;font-size:clamp(32px,3.25vw,52px);font-weight:900;line-height:1.03;letter-spacing:-1.8px;color:#fffef1;text-shadow:0 3px 12px #0c233c38;max-width:650px;margin:8px 0 10px}
.desktop-game .game-title-row p{font-size:13px;color:#e0e9df;line-height:1.6;max-width:380px}
.desktop-game .best-record{background:#152d37c9;border:1px solid #ffffff36;border-radius:9px;padding:14px 20px;gap:15px;min-width:166px;box-shadow:0 6px 22px #14293612}
.desktop-game .best-record .icon{width:26px;height:26px;color:#d9f27c}
.desktop-game .best-record small{color:#e0e8df;font-size:10px;letter-spacing:1.2px;margin-bottom:1px}
.desktop-game .best-record strong{font-family:'Trebuchet MS',sans-serif;font-size:35px;line-height:1.12;font-weight:800;color:#f5f8e9}
.desktop-game .best-record em{font-size:13px;color:#d4e1db}
.desktop-game .workbench{position:fixed;inset:0;display:block;margin:0;padding:0;width:100%;height:100%;border:0}
.desktop-game .viewport-panel{position:absolute;inset:0;border:0!important;border-radius:0;background:#568e9e;display:block;overflow:hidden}
.desktop-game .scene-wrap,.desktop-game.playing .scene-wrap{position:absolute;inset:0;width:100%;height:100%;min-height:0;max-height:none;overflow:hidden}
.desktop-game .scene-wrap canvas{width:100%;height:100%;border:0;outline-offset:-4px;touch-action:none}
.desktop-game .scene-vignette{z-index:1;background:linear-gradient(180deg,#0b253beb 0%,#193a568f 14%,#28485314 40%,transparent 53%,#1d344214 70%,#0c202be3 100%);pointer-events:none}
.desktop-game .scene-label{display:none}
.desktop-game .scene-tools{position:fixed;top:24px;right:252px;gap:7px;z-index:24}
.desktop-game .scene-tools .icon-btn{width:42px;height:44px;border-radius:8px;background:#122632d9;border-color:#ffffff32}
.desktop-game .scene-footer{position:fixed;top:27px;left:50%;transform:translateX(-50%);min-height:0;padding:0;background:none;border:0;z-index:20;gap:0}
.desktop-game .scene-footer>span{display:none}
.desktop-game .mode-toggle{border:1px solid #ffffff30;border-radius:7px;padding:3px;background:#142c35d9;gap:3px}
.desktop-game .mode-toggle button{font-size:11px;font-weight:600;letter-spacing:.2px;min-height:29px;padding:0 14px;color:#e1e9df;border-radius:4px}
.desktop-game .mode-toggle button.active{color:#172b31;background:#d9f27c;box-shadow:none}
.desktop-game .preview-caption{position:fixed;left:38px;bottom:283px;background:#102733c7;color:#e1eada;border:1px solid #ffffff25;font-size:11px;padding:9px 12px;border-radius:6px;letter-spacing:.15px}
.desktop-game .desktop-objective{position:absolute;top:282px;left:38px;width:218px;z-index:2;color:#f8faee;text-shadow:0 1px 6px #0c203654;pointer-events:none}
.desktop-game .desktop-eyebrow{font-size:10px;font-weight:700;letter-spacing:1.7px;color:#f0f6ca}
.desktop-game .desktop-objective p{font-size:15px;line-height:1.6;font-weight:500;margin:10px 0 15px;max-width:210px;color:#fffef1}
.desktop-game .desktop-objective-rule{display:block;width:30px;height:3px;background:#d9f27c;box-shadow:38px 0 #d9f27c40}
.desktop-game .build-panel{position:fixed;bottom:30px;left:34px;right:34px;height:215px;z-index:15;display:grid;grid-template-columns:minmax(0,1fr) 244px;grid-template-rows:1fr;border:1px solid #90adb256;border-top:2px solid #b1c1b675;border-radius:13px;overflow:visible;background:linear-gradient(125deg,#192e39f7,#0e202bf7);box-shadow:0 15px 55px #091a3273,0 1px 0 #ffffff0f inset;transition:opacity .18s,transform .22s}
.desktop-game .build-header{display:none}
.desktop-game .desktop-dock-label{position:absolute;left:3px;top:-35px;display:flex;align-items:center;gap:18px;color:#ecf5e5;font-size:11px}
.desktop-game .desktop-dock-label strong{font-size:11px;letter-spacing:2px;font-weight:800;color:#ecf8d8}
.desktop-game .desktop-dock-label span{color:#d2dfd5;font-size:11px}
.desktop-game .build-fields{display:grid;grid-template-columns:repeat(var(--field-count,3),minmax(0,1fr));gap:22px;padding:24px;grid-column:1;grid-row:1;min-width:0;align-items:start}
.desktop-game .field{margin:0;padding:0;border:0;min-width:0}
.desktop-game .field+.field{border-left:1px solid #ffffff18;padding-left:22px}
.desktop-game .field legend,.desktop-game .field-label{font-size:12px;color:#ebf1e4;line-height:1.25;font-weight:700;letter-spacing:.25px;margin-bottom:15px}
.desktop-game .field legend{float:left;width:100%}
.desktop-game .field legend+.options,.desktop-game .field legend+.levels{clear:both}
.desktop-game .options{gap:7px;grid-template-columns:repeat(3,minmax(0,1fr))}
.desktop-game .options.two{grid-template-columns:repeat(2,minmax(0,1fr))}
.desktop-game .part{min-height:113px;padding:10px 6px 8px;border:1px solid #8ca7ad4d;background:#253c47;border-radius:8px;box-shadow:inset 0 1px #ffffff0d,0 3px 0 #08171e44;color:#f1f5e9;justify-content:center}
.desktop-game .part:hover{background:#35505b;border-color:#d9f27c}
.desktop-game .part.selected{border:2px solid #d9f27c;background:#344841;box-shadow:0 0 0 2px #d9f27c12;color:#f5ffdf;padding:9px 5px 7px}
.desktop-game .part.selected:after{content:'✓';right:5px;top:4px;color:#10242c;background:#d9f27c;width:13px;height:13px;font-size:10px;border-radius:3px;font-weight:800;text-align:center;line-height:13px}
.desktop-game .part .icon{width:30px;height:30px;margin-bottom:9px;color:#c0d6d3}
.desktop-game .part.selected .icon{color:#def796}
.desktop-game .part strong{font-size:12px;line-height:1.25;font-weight:700}
.desktop-game .part small{color:#cad7d1;font-size:10px;line-height:1.35;margin-top:5px}
.desktop-game .range-top{margin-bottom:19px;min-height:18px}
.desktop-game .range-top label{margin-bottom:0;max-width:80%;line-height:1.3}
.desktop-game .range-top output{font-size:25px;line-height:1;color:#d9f27c;font-weight:800}
.desktop-game .range-control{gap:8px;height:52px;align-items:center}
.desktop-game .range-control button{border:1px solid #8ca7ad55;background:#293e48;color:#eaf1e1;height:44px;width:35px;font-size:23px;border-radius:6px}
.desktop-game .range-control button:hover{border-color:#d9f27c;color:#d9f27c}
.desktop-game input[type=range]{accent-color:#d9f27c;height:44px}
.desktop-game .range-labels{color:#b6c6c5;font-size:11px;padding:0 43px;margin-top:8px}
.desktop-game .build-stats{grid-column:2;grid-row:1;margin:23px 22px 0 0;padding:0 0 0 22px;height:59px;align-content:start;border:0;border-left:1px solid #ffffff26;border-radius:0;background:none;font-size:12px;gap:9px}
.desktop-game .stat-line{gap:12px}
.desktop-game .stat-line span{color:#cedbd4;font-size:11px;line-height:1.3}
.desktop-game .stat-line strong{color:#f3f9e9;font-weight:700;white-space:nowrap;font-size:12px}
.desktop-game .launch-zone{position:absolute;right:22px;bottom:30px;width:200px;margin:0;padding:0;display:block}
.desktop-game .launch-zone .primary{height:66px;min-height:66px;font-size:16px;font-weight:800;border-radius:8px;background:#d9f27c;color:#182b30;border:1px solid #edffb8;border-bottom:5px solid #8cac50;box-shadow:0 5px 22px #a4ca5826;gap:10px;padding:0 10px}
.desktop-game .launch-zone .primary:hover{background:#eaff9b;border-bottom-color:#b1cf6c;transform:translateY(-2px)}
.desktop-game .launch-zone .primary:active{transform:translateY(2px)}
.desktop-game .launch-zone .primary .icon{width:19px;height:19px}
.desktop-game .launch-zone .primary .icon:last-child{display:none}
.desktop-game .launch-zone .primary:after{content:'↵';font-size:19px;opacity:.6;margin-left:3px}
.desktop-game .reset-build{position:fixed;bottom:252px;right:36px;padding:0 6px;color:#dfebdb;font-size:11px;min-height:28px;background:none}
.desktop-game .reset-build:hover{color:#e7ff9b}
.desktop-game .under-workbench,.desktop-game .footer{display:none}
.desktop-game .chain-tools{position:fixed;right:36px;bottom:281px;padding:14px;margin:0;width:222px;background:#172c37f0;border:1px solid #97b0b449;border-radius:9px;box-shadow:0 4px 22px #1b2a3226}
.desktop-game .chain-tools p{font-size:11px;color:#d0ded4;line-height:1.5}
.desktop-game .chain-tools .secondary{min-height:34px;border:1px solid #8ca7ad55;border-radius:6px;background:#2a414b;color:#e6efd9;font-size:11px}
.desktop-game .gap-buttons{gap:5px;margin:0 0 10px}
.desktop-game .gap-btn{background:#2a444d;border:1px solid #7b969a;color:#eaf1dd;font-size:11px;border-radius:6px;min-width:32px;height:34px}
.desktop-game .gap-btn.filled{background:#5a6541;border-color:#d9f27c;color:#f3ffd2}
.desktop-game .gap-btn.selected{outline:1px solid #e9ffa1;outline-offset:2px}
.desktop-game .levels{grid-template-columns:repeat(4,1fr);gap:7px}
.desktop-game .level-btn{height:47px;background:#263f49;border:1px solid #8ca7ad55;color:#edf6e3;border-radius:6px;font:700 14px/1 monospace}
.desktop-game .level-btn.selected{background:#d9f27c;color:#193038;border-color:#efffbc;box-shadow:0 0 0 2px #d9f27c12}
.desktop-game .hud-main{top:118px;left:39px}
.desktop-game .hud-main small{font-size:11px;letter-spacing:2px;color:#e1edcf;text-shadow:0 2px 5px #16384899}
.desktop-game .hud-score{gap:12px;margin-top:10px}
.desktop-game .hud-score strong{font-size:96px;font-weight:900;color:#fffef0;line-height:.95;letter-spacing:-4px;text-shadow:0 4px 25px #142d403b}
.desktop-game .hud-score em{font-size:25px;color:#f1f6dc}
.desktop-game .hud-resource{top:121px;right:40px;left:auto;transform:none;width:230px;padding:14px 17px;background:#17303ad9;border:1px solid #bdccd052;border-radius:8px}
.desktop-game .hud-resource-head{font-family:'Segoe UI',sans-serif;font-size:12px;color:#edf6dc;font-weight:600;letter-spacing:.4px}
.desktop-game .hud-resource-head #resource-value{color:#e5fdaa;font-size:15px;font-weight:800}
.desktop-game .meter{height:7px;background:#58727a;margin-top:12px;border-radius:3px}
.desktop-game .meter i{background:#d9f27c;border-radius:3px}
.desktop-game .hud-extra{left:40px;top:248px;background:#102a36bd;border:1px solid #b2c6be46;border-radius:6px;padding:8px 12px;color:#f2f8e6;font-size:13px;letter-spacing:.15px}
.desktop-game .hud-extra:empty{display:none}
.desktop-game.playing .game-title-row{top:25px;left:215px;right:auto;z-index:23;max-width:350px}
.desktop-game.playing .title-block{padding:0}
.desktop-game.playing .game-title-row h1{font-size:19px;line-height:1.2;letter-spacing:-.5px;margin:10px 0;max-width:350px}
.desktop-game.playing .game-title-row p,.desktop-game.playing .game-number,.desktop-game.playing .desktop-state,.desktop-game.playing .best-record,.desktop-game.playing .desktop-objective{display:none}
.desktop-game.playing .breadcrumb{display:none}
.desktop-game.playing .header-tools{margin-left:auto}
.desktop-game.playing .build-panel{display:none}
.desktop-game.playing .scene-footer{display:none}
.desktop-game.playing .scene-tools{right:252px}
.desktop-game .play-controls{left:38px;right:38px;bottom:31px;align-items:flex-end}
.desktop-game .control-button{height:51px;min-width:52px;border-radius:8px;border:1px solid #ffffff55;background:#18313fd9;color:#f5f8e9;box-shadow:0 4px 0 #091c2959;position:relative}
.desktop-game .control-button:hover{border-color:#e6ff9b}
.desktop-game .control-button.pressed{background:#d9f27c;color:#18313f}
.desktop-game .control-button.action-button{background:#d9f27c;color:#152a31;border:1px solid #edffb8;border-bottom:4px solid #97b454;font-size:12px;min-width:171px;height:56px;font-weight:900;letter-spacing:.9px;padding:0 18px;display:flex;gap:12px;align-items:center;justify-content:center}
.desktop-game .control-button.action-button:before{content:'SPACE';font:700 10px/1 monospace;border:1px solid #182d3466;border-radius:4px;padding:6px;letter-spacing:.4px}
.desktop-game .control-label{display:none}
.desktop-game .desktop-key-guide{display:none;position:absolute;bottom:37px;left:50%;transform:translateX(-50%);border:1px solid #c1d5d240;border-radius:8px;padding:12px 16px;background:#0e2835db;color:#f0f6e1;font-size:12px;z-index:8;align-items:center;gap:22px;white-space:nowrap;pointer-events:none}
.desktop-game.playing .desktop-key-guide{display:flex}
.desktop-game .desktop-key-guide span{display:inline-flex;gap:6px;align-items:center}
.desktop-game kbd{font:700 11px/21px monospace;min-width:25px;padding:0 5px;border:1px solid #8eabab;border-bottom:3px solid #687f85;border-radius:4px;color:#e9f7d7;text-align:center;background:#2d454f;margin-right:2px}
.desktop-game .game-message{top:29%;max-width:460px;padding:13px 22px;border:1px solid #c5e2b788;color:#f4ffdc;background:#14313bd9;border-radius:8px;font-size:17px;box-shadow:0 9px 30px #162a383b}
.desktop-game .desktop-launch-flash{position:absolute;left:50%;top:40%;transform:translate(-50%,-50%) scale(.92);font-family:'Arial Black','Trebuchet MS',sans-serif;font-size:64px;font-weight:900;font-style:italic;letter-spacing:-2px;color:#f0ffb7;text-shadow:0 4px 0 #3b5865,0 10px 32px #19384666;z-index:11;pointer-events:none;opacity:0;transition:opacity .18s,transform .18s}
.desktop-game .desktop-launch-flash.visible{opacity:1;transform:translate(-50%,-50%) scale(1)}
.desktop-game .play-overlay{background:#102833b8;backdrop-filter:blur(5px)}
.desktop-game .pause-card{border:1px solid #cadcc466;border-top:3px solid #d9f27c;border-radius:14px;min-width:350px;padding:34px 44px;background:#152e3aee;box-shadow:0 20px 90px #0003}
.desktop-game .pause-card .eyebrow{color:#d2e9c6;font-size:11px}
.desktop-game .pause-card h2{font-size:42px;letter-spacing:-1px;color:#f8ffdf;margin-bottom:26px}
.desktop-game .primary{color:#182b30;background:#d9f27c;font-weight:800;border-radius:8px;box-shadow:0 3px 0 #99b853;border:1px solid #e8ffb0}
.desktop-game .primary:hover{background:#e6ff95}
.desktop-game .secondary{background:#304953;border:1px solid #7b999f;color:#eaf5d9;border-radius:8px}
.desktop-game .secondary:hover{background:#415e63}
.desktop-game .dialog{background:linear-gradient(130deg,#203b45,#132b37);color:#f6fae7;border:1px solid #9cb6b381;border-top:3px solid #d9f27c;border-radius:15px;box-shadow:0 35px 120px #06162499;max-height:calc(100dvh - 50px)}
.desktop-game .dialog::backdrop{background:#09222aa6;backdrop-filter:blur(4px)}
.desktop-game .dialog p{color:#d2e2d5;font-size:14px;line-height:1.75}
.desktop-game .dialog .dialog-top .icon-btn{background:#1b303c;color:#f0f7e2;border:1px solid #9cb6b352}
.desktop-game .dialog .eyebrow{color:#cce2c5}
.desktop-game .dialog h2{color:#f9ffe8}
.desktop-game .dialog details{background:#2a434c;color:#e7f5d5}
.desktop-game .dialog select{background:#28414d;color:#e6f6d6;border:1px solid #94aaa577}
.desktop-game .dialog .build-stats{height:auto;margin:17px 0;padding:14px;background:#2a424a;border:0;color:#e4f3d0}
.desktop-game .result-dialog{width:min(650px,calc(100vw - 60px));padding:26px 40px 30px}
.desktop-game .result-dialog h2{font-size:35px;letter-spacing:-1px;font-weight:800;margin-top:22px}
.desktop-game .result-score{font-size:100px;color:#e5ffa1;letter-spacing:-4px;margin:14px 0;line-height:1}
.desktop-game .result-score small{color:#d4e8c8;font-size:24px}
.desktop-game .badge-new{background:#d9f27c;color:#233639;border-radius:5px;font-size:11px;padding:9px 15px;letter-spacing:1.3px}
.desktop-game .result-stat{background:#33505a;border:1px solid #9cb6b337;border-radius:8px;padding:14px 12px}
.desktop-game .result-stat strong{font-size:21px;color:#f5ffe0}
.desktop-game .result-stat span{color:#c9dbcc;font-size:12px}
.desktop-game .result-detail{font-size:14px!important;max-width:450px;margin:16px auto 22px!important}
.desktop-game .result-actions{grid-template-columns:1fr 1fr;gap:14px}
.desktop-game .result-actions>*{font-size:14px;min-height:54px}
.desktop-game .result-bottom{gap:30px;color:#d3e9d2}
.desktop-game .text-btn{font-size:12px}
.desktop-game .toast{bottom:20px;background:#183441;color:#f1ffd4;border-color:#d9f27c66}
.desktop-game .error-box{background:#183441;color:#f1ffd4}
.desktop-game button:focus-visible,.desktop-game a:focus-visible,.desktop-game input:focus-visible{outline:3px solid #efffb9;outline-offset:4px}
@media(min-width:1024px) and (max-width:1250px){
 .desktop-game .site-header{left:26px;right:26px;gap:15px}.desktop-game .breadcrumb{padding-left:14px;font-size:11px}.desktop-game .scene-footer{left:48%}.desktop-game .scene-tools{right:236px;gap:5px}.desktop-game .scene-tools .icon-btn{width:36px}
 .desktop-game .game-title-row{left:30px;right:30px}.desktop-game .game-title-row h1{font-size:36px}.desktop-game .game-title-row p{max-width:260px;font-size:12px}.desktop-game .desktop-objective{left:30px;top:274px;width:185px}.desktop-game .desktop-objective p{font-size:13px}
 .desktop-game .build-panel{left:26px;right:26px;grid-template-columns:minmax(0,1fr) 211px;height:210px}.desktop-game .build-fields{padding:22px 18px;gap:13px}.desktop-game .field+.field{padding-left:13px}.desktop-game .options{gap:5px}.desktop-game .part{padding-left:3px;padding-right:3px;min-height:112px}.desktop-game .part strong{font-size:11px}.desktop-game .part small{font-size:9px}.desktop-game .field legend,.desktop-game .field-label{font-size:11px}.desktop-game .build-stats{margin-right:17px;padding-left:15px}.desktop-game .launch-zone{width:177px;right:17px;bottom:29px}.desktop-game .launch-zone .primary{font-size:14px}.desktop-game .preview-caption{left:28px;bottom:282px}.desktop-game .desktop-key-guide{gap:13px;font-size:11px;padding:11px 13px}.desktop-game .desktop-key-guide kbd{font-size:10px}.desktop-game .chain-tools{width:193px;right:28px}
}
@media(max-height:760px){
 .desktop-game .site-header{top:19px}.desktop-game .scene-tools{top:19px}.desktop-game .scene-footer{top:22px}.desktop-game .game-title-row{top:93px}.desktop-game .game-title-row h1{font-size:34px;letter-spacing:-1.3px}.desktop-game .game-title-row p{font-size:12px;max-width:280px}.desktop-game .desktop-objective{top:241px;width:185px}.desktop-game .desktop-objective p{font-size:13px;line-height:1.45}.desktop-game .build-panel{bottom:22px;height:198px}.desktop-game .build-fields{padding-top:20px;padding-bottom:18px}.desktop-game .part{min-height:106px}.desktop-game .field legend,.desktop-game .field-label{margin-bottom:12px}.desktop-game .reset-build{bottom:227px}.desktop-game .preview-caption{bottom:257px}.desktop-game .chain-tools{bottom:257px}.desktop-game .launch-zone{bottom:22px}.desktop-game .build-stats{margin-top:20px}.desktop-game .desktop-dock-label{top:-32px}.desktop-game .hud-main{top:100px}.desktop-game .hud-score strong{font-size:78px}.desktop-game .hud-extra{top:214px}.desktop-game .hud-resource{top:102px}.desktop-game.playing .game-title-row{top:20px}.desktop-game .desktop-key-guide{bottom:27px}.desktop-game .play-controls{bottom:22px}
}
@media(prefers-reduced-motion:reduce){.desktop-game .desktop-launch-flash{display:none}.desktop-game .build-panel,.desktop-game button{transition:none}}

/* Art-safe HUD scrims: keep the hero object bright, support copy at screen edges. */
.desktop-game .scene-vignette{background:linear-gradient(180deg,#0c243edf 0%,#0c243e52 13%,transparent 27%,transparent 68%,#0c2336bb 100%),linear-gradient(90deg,#142f469e 0%,#142f463e 17%,transparent 36%,transparent 80%,#142f4633 100%)}
.desktop-game .desktop-dock-label span{display:none}
.desktop-game .desktop-dock-label{background:#15313ce8;border:1px solid #e5f3da3d;padding:6px 10px;left:0;top:-39px;border-radius:5px}
.desktop-game .reset-build{background:#16333dde;border:1px solid #c6d4c549;border-radius:5px;padding:0 11px;bottom:252px}
.desktop-game .desktop-objective{text-shadow:0 1px 10px #0d203c90}
@media(max-height:760px){.desktop-game .reset-build{bottom:228px}}
