*,:before,:after{box-sizing:border-box;margin:0;padding:0}:root{--bg:#faf6f0;--surface:#fff;--surface-2:#f5efe6;--border:#ece3d6;--border-2:#ddd0be;--text:#2f2924;--text-mid:#6f6257;--text-dim:#a39484;--accent:#d9653b;--accent-rgb:217, 101, 59;--accent-dark:#c2542c;--accent-soft:#fcebe2;--accent-text:#c2542c;--accent-line:#efc4b0;--green-line:#bfe0c9;--green-solid:#3f9a5c;--green:#3f9a5c;--green-soft:#e8f4ec;--red:#c8483f;--red-soft:#fbe7e4;--gold:#e0a458;--radius:12px;--shadow:0 1px 2px #3c28140d, 0 4px 16px #3c28140f;--font:system-ui, -apple-system, "Segoe UI", Roboto, sans-serif}html{width:100%;overflow:hidden auto}body{background:var(--bg);width:100%;min-height:100%;color:var(--text);font-family:var(--font);-webkit-font-smoothing:antialiased;-webkit-tap-highlight-color:transparent;font-size:14px;line-height:1.5}button{font-family:inherit}:root{--edge:#e6dac8;--hud-h:124px;--dock-h:96px;--stage-r:0px}#app{width:100%;height:100dvh;position:relative;overflow:hidden}#canvas-wrap{background:radial-gradient(90% 70% at 50% 0%, #fffdf8 0%, #fffdf800 70%), var(--bg);touch-action:none;position:absolute;inset:0}#game-canvas{cursor:default;touch-action:none;display:block}.btn{cursor:pointer;white-space:nowrap;border:2px solid #0000;border-radius:12px;justify-content:center;align-items:center;gap:6px;padding:9px 16px;font-size:14px;font-weight:700;transition:background .15s,transform 80ms,box-shadow 80ms;display:inline-flex}.btn .i{width:16px;height:16px}.btn-ghost{color:var(--text-mid);background:0 0}.btn-ghost:hover{background:var(--surface-2);color:var(--text)}.btn-primary{background:var(--accent);color:#fff;box-shadow:0 4px 0 var(--accent-dark)}.btn-primary:hover{background:color-mix(in srgb, var(--accent) 88%, #fff)}.btn-primary:active{box-shadow:0 1px 0 var(--accent-dark);transform:translateY(3px)}.btn-go{background:var(--accent);color:#fff;cursor:pointer;height:58px;box-shadow:0 5px 0 var(--accent-dark);border:none;border-radius:20px;justify-content:center;align-items:center;gap:8px;padding:0 28px;font-size:18px;font-weight:800;transition:background .15s,transform 80ms,box-shadow 80ms;display:flex}.btn-go .i{width:22px;height:22px}.btn-go:hover{background:color-mix(in srgb, var(--accent) 88%, #fff)}.btn-go:active{box-shadow:0 1px 0 var(--accent-dark);transform:translateY(4px)}.btn-go.big{border-radius:22px;height:66px;padding:0 40px;font-size:21px}.btn-go.ready{background:var(--green-solid);animation:1.1s ease-in-out infinite bob;box-shadow:0 5px #2f7a47}.btn-go.ready:active{animation:none;box-shadow:0 1px #2f7a47}@keyframes bob{50%{transform:translateY(-5px)}}.btn-go.shake{animation:.4s shake}@keyframes shake{20%{transform:translate(-7px)}40%{transform:translate(6px)}60%{transform:translate(-4px)}80%{transform:translate(3px)}}.i{fill:none;stroke:currentColor;stroke-width:2px;stroke-linecap:round;stroke-linejoin:round;flex-shrink:0;width:1.15em;height:1.15em}.i-fill{fill:currentColor}.mobile-only{display:none!important}#hud{z-index:20;padding:max(12px, env(safe-area-inset-top)) 14px 0;pointer-events:none;flex-direction:column;align-items:center;gap:10px;display:flex;position:absolute;top:0;left:0;right:0}#hud>*{pointer-events:auto}#hud-row{align-items:center;gap:8px;width:100%;display:flex}.grow{flex:1}.hud-btn{border:2px solid var(--edge);background:var(--surface);width:46px;height:46px;color:var(--text-mid);cursor:pointer;box-shadow:0 3px 0 var(--edge);border-radius:15px;flex-shrink:0;justify-content:center;align-items:center;transition:transform 80ms,box-shadow 80ms,color .15s,border-color .15s;display:flex}.hud-btn .i{width:22px;height:22px}.hud-btn:hover:not(:disabled){color:var(--accent-text);border-color:var(--accent-line)}.hud-btn:active:not(:disabled){box-shadow:0 0 0 var(--edge);transform:translateY(3px)}.hud-btn:disabled{opacity:.4;cursor:default}.hud-btn.small{border-radius:13px;width:42px;height:42px}.hud-btn.small .i{width:19px;height:19px}#level-info{background:var(--surface);border:2px solid var(--edge);min-width:0;height:46px;box-shadow:0 3px 0 var(--edge);border-radius:999px;align-items:center;gap:10px;padding:0 18px 0 7px;display:flex}#level-badge{background:var(--accent);color:#fff;white-space:nowrap;border-radius:999px;flex-shrink:0;padding:5px 12px;font-size:13px;font-weight:800}#level-name-display{white-space:nowrap;text-overflow:ellipsis;font-size:15px;font-weight:700;overflow:hidden}#task-bubble{max-width:min(580px, calc(100% - var(--stage-r)));margin-right:var(--stage-r);background:var(--surface);border:2px solid var(--edge);box-shadow:0 3px 0 var(--edge);text-align:center;border-radius:18px;padding:10px 20px;font-size:16px;font-weight:700;line-height:1.35;animation:.4s cubic-bezier(.34,1.4,.64,1) drop-in}@keyframes drop-in{0%{opacity:0;transform:translateY(-14px)scale(.96)}}#info-panel{right:14px;top:var(--card-top,var(--hud-h));z-index:15;width:306px;max-height:var(--panel-max,calc(100% - var(--hud-h) - 14px));background:var(--surface);border:2px solid var(--edge);box-shadow:0 4px 0 var(--edge);border-radius:22px;padding:16px 16px 18px;position:absolute;overflow-y:auto}.panel-title{color:var(--text-dim);text-transform:uppercase;letter-spacing:.06em;align-items:center;gap:8px;margin-bottom:8px;font-size:13px;font-weight:800;display:flex}.section-gap{height:18px}.goal table{border-collapse:separate;border-spacing:0;border:2px solid var(--border);border-radius:14px;width:100%;font-size:13px;overflow:hidden}.goal th{background:var(--surface-2);color:var(--text-mid);text-align:center;padding:7px 4px;font-size:12px;font-weight:700}.goal td{text-align:center;border-top:1px solid var(--border);padding:6px 4px;transition:background .25s}.goal .grp th{letter-spacing:.08em;text-transform:uppercase;padding:5px 4px;font-size:11px}.goal .grp-in{color:#4b7396;background:#e9f0f7}.goal .grp-out{background:var(--green-soft);color:var(--green)}.goal .grp .arrow-col,.goal .grp .tt-status{background:var(--surface-2)}.goal .arrow-col{width:20px;color:var(--text-dim);border-left:1px solid var(--border);border-right:1px solid var(--border);padding:0}.goal .arrow-col .i{vertical-align:middle;width:14px;height:14px}.goal thead tr:last-child th{border-top:1px solid var(--border)}.goal tr.tt-now td{background:#fff7e8}.goal tr.tt-now td:first-child{box-shadow:inset 4px 0 0 var(--accent)}.goal .tt-status{width:28px;color:var(--green)}.goal .tt-status .i{vertical-align:middle;stroke-width:3px;width:15px;height:15px}.tt-row-fail .tt-status{color:var(--red)}.tt-row-pass td{background:var(--green-soft)}.tt-row-fail td{background:var(--red-soft)}.v{border-radius:999px;min-width:36px;padding:1px 7px;font-size:12px;font-weight:700;display:inline-block}.v1{background:var(--green-solid);color:#fff}.v0{background:var(--surface-2);color:var(--text-dim)}#compliance-list{flex-direction:column;gap:2px;display:flex}.compliance-item{align-items:center;gap:10px;padding:4px 0;display:flex}.comp-text{flex:1;font-size:13px;font-weight:600;line-height:1.4}.comp-mark{width:18px;color:var(--text-dim);display:flex}.comp-mark .i{stroke-width:3px;width:18px;height:18px}.comp-mark.ok{color:var(--green)}.comp-mark.bad{color:var(--red)}#test-summary{border-radius:14px;justify-content:center;align-items:center;gap:6px;margin-bottom:8px;padding:10px 12px;font-size:14px;font-weight:800;display:flex}.summary-pass{background:var(--green-soft);color:var(--green)}.summary-fail{background:var(--red-soft);color:var(--red);justify-content:flex-start}.test-result-item{color:var(--text-mid);border-bottom:1px solid var(--border);padding:6px 0;font-size:13px;line-height:1.5}.test-result-item:last-child{border-bottom:none}.test-result-item b{color:var(--text);font-weight:700}#dock{z-index:20;padding:0 calc(14px + var(--stage-r)) max(14px, env(safe-area-inset-bottom)) 14px;pointer-events:none;justify-content:center;align-items:center;gap:12px;display:flex;position:absolute;bottom:0;left:0;right:0}#dock>*{pointer-events:auto}#canvas-history{gap:8px;display:flex}#palette-panel{background:var(--surface);border:2px solid var(--edge);min-width:0;box-shadow:0 4px 0 var(--edge);scrollbar-width:none;border-radius:24px;padding:10px 10px 8px;overflow-x:auto}#palette-panel::-webkit-scrollbar{display:none}#palette-list{gap:6px;display:flex}.palette-item{cursor:pointer;-webkit-user-select:none;user-select:none;border:2px solid #0000;border-radius:16px;flex-direction:column;flex-shrink:0;align-items:center;gap:5px;width:76px;padding:9px 4px 7px;transition:transform .15s cubic-bezier(.34,1.4,.64,1),background .15s,border-color .15s;display:flex;position:relative}.palette-item:hover{background:var(--surface-2);transform:translateY(-3px)}.palette-item.active{background:var(--accent-soft);border-color:var(--accent);box-shadow:0 5px 0 rgba(var(--accent-rgb), .28);transform:translateY(-9px)}.gate-swatch{background:color-mix(in srgb, currentColor 13%, var(--surface));border-radius:12px;justify-content:center;align-items:center;width:48px;height:36px;display:flex}.gate-swatch .i{width:26px;height:26px}.palette-item-name{font-size:12px;font-weight:800}.palette-help{width:22px;height:22px;color:var(--text-dim);cursor:pointer;opacity:.55;background:0 0;border:none;border-radius:999px;justify-content:center;align-items:center;display:flex;position:absolute;top:2px;right:2px}.palette-help .i{width:14px;height:14px}.palette-help:hover{opacity:1;color:var(--accent-text)}#canvas-band{left:14px;right:calc(14px + var(--stage-r));bottom:calc(var(--dock-h) + 8px);z-index:12;pointer-events:none;justify-content:center;align-items:center;gap:8px;height:36px;display:flex;position:absolute}#canvas-tip{color:#fff;white-space:nowrap;text-overflow:ellipsis;background:#2f2924e0;border-radius:999px;flex:0 auto;min-width:0;height:36px;padding:0 16px;font-size:13px;font-weight:700;line-height:36px;overflow:hidden}#canvas-tip:empty{display:none}#btn-canvas-action{border:2px solid var(--edge);background:var(--surface);height:36px;color:var(--text);cursor:pointer;pointer-events:auto;box-shadow:0 3px 0 var(--edge);border-radius:14px;flex:none;align-items:center;gap:6px;padding:0 14px;font-size:14px;font-weight:800;display:flex}#btn-canvas-action .i{width:17px;height:17px}#btn-canvas-action:active{box-shadow:none;transform:translateY(3px)}#confetti{z-index:130;pointer-events:none;position:fixed;inset:0}#title-screen{z-index:90;background:radial-gradient(80% 60% at 50% 10%, #fffdf8 0%, #fffdf800 70%), var(--bg);justify-content:center;align-items:center;padding:24px;display:flex;position:absolute;inset:0;overflow:hidden}.ts-card{z-index:1;text-align:center;flex-direction:column;align-items:center;gap:14px;display:flex;position:relative}.ts-logo{width:96px;height:96px;box-shadow:0 7px 0 var(--accent-dark), 0 18px 30px rgba(var(--accent-rgb), .25);border-radius:24px;animation:3.2s ease-in-out infinite float}.ts-logo img{border-radius:24px;width:100%;height:100%;display:block}.ts-card h1{letter-spacing:-.035em;margin-top:6px;font-size:clamp(42px,9vw,64px);font-weight:900;line-height:.98}.ts-card p{max-width:300px;color:var(--text-mid);margin-bottom:10px;font-size:16px;font-weight:600}@keyframes float{50%{transform:translateY(-9px)rotate(-3deg)}}.ts-deco .i{stroke-width:1.4px;opacity:.16;animation:5s ease-in-out infinite float;position:absolute}.d1{color:#5a9e6f;width:120px;height:120px;top:14%;left:8%}.d2{color:#e08e2b;width:90px;height:90px;animation-delay:-1.2s;top:18%;right:10%}.d3{color:#d1495b;width:100px;height:100px;animation-delay:-2.4s;bottom:14%;left:14%}.d4{color:#c9a227;width:130px;height:130px;animation-delay:-.6s;bottom:12%;right:8%}.d5{color:#9a6fb0;width:70px;height:70px;animation-delay:-3s;top:6%;left:44%}.d6{color:#5b8fb9;width:80px;height:80px;animation-delay:-1.8s;bottom:6%;right:36%}#modal-overlay,#cms-overlay{z-index:100;background:#2f292459;justify-content:center;align-items:center;padding:16px;animation:.2s fade-in;display:flex;position:fixed;inset:0}#cms-overlay{z-index:110}@keyframes fade-in{0%{opacity:0}to{opacity:1}}#modal-box,#cms-box{background:var(--surface);border-radius:16px;animation:.25s slide-up;box-shadow:0 20px 60px #3c28142e}@keyframes slide-up{0%{opacity:0;transform:translateY(12px)}to{opacity:1;transform:translateY(0)}}#modal-box{width:min(560px,100%);max-height:85vh;overflow-y:auto}#modal-header{justify-content:space-between;align-items:center;padding:14px 16px 0 22px;display:flex}#modal-title{font-size:17px;font-weight:700}#modal-close,#cms-close,#sheet-close{color:var(--text-dim);cursor:pointer;background:0 0;border:none;border-radius:8px;justify-content:center;align-items:center;width:32px;height:32px;font-size:16px;line-height:1;display:flex}#modal-close:hover,#cms-close:hover,#sheet-close:hover{background:var(--surface-2);color:var(--text)}#modal-body{padding:16px 22px 22px;line-height:1.6}.intro{text-align:center}.intro-gate{border-radius:14px;margin:0 auto 10px;display:block}.intro h3{font-size:22px;font-weight:700}.intro h3 span{color:var(--accent-text);margin-top:2px;font-size:14px;font-weight:600;display:block}.intro-plain{color:var(--text-mid);margin-top:4px;font-size:16px}.intro-try{background:var(--surface-2);border-radius:14px;margin:18px 0;padding:14px}.intro-try-label{color:var(--text-dim);margin-bottom:10px;font-size:12px;font-weight:600}.intro-row{justify-content:center;align-items:center;gap:14px;display:flex}.intro-ins{flex-direction:column;gap:8px;display:flex}.intro-arrow{color:var(--text-dim);display:flex}.intro-arrow .i{width:20px;height:20px}.switch,.lamp{border:2px solid var(--border-2);background:var(--surface);min-width:96px;color:var(--text-mid);border-radius:10px;justify-content:space-between;align-items:center;gap:10px;padding:8px 12px;font-size:14px;display:flex}.switch{cursor:pointer;transition:border-color .15s,background .15s}.switch:hover{border-color:var(--text-dim)}.switch b,.lamp b{color:var(--text-dim)}.switch.on,.lamp.on{border-color:var(--green);background:var(--green-soft)}.switch.on b,.lamp.on b{color:var(--green)}.lamp.on{box-shadow:0 0 0 5px #3f9a5c1f}.modal-ok{width:100%;padding:12px;font-size:15px}.modal-ok .i{width:18px;height:18px}.howto{counter-reset:step;flex-direction:column;gap:14px;margin-bottom:20px;list-style:none;display:flex}.howto li{counter-increment:step;grid-template-columns:32px 1fr;column-gap:12px;display:grid}.howto li:before{content:counter(step);background:var(--accent-soft);width:32px;height:32px;color:var(--accent-text);border-radius:999px;grid-row:span 2;justify-content:center;align-items:center;font-weight:700;display:flex}.howto b{font-size:15px}.howto span{color:var(--text-mid);font-size:14px}.howto span .i{width:15px;height:15px;color:var(--green);stroke-width:2.5px;vertical-align:-.2em}.win{text-align:center;padding:4px 0 0}.win-icon{background:var(--accent-soft);width:64px;height:64px;color:var(--accent-text);border-radius:999px;justify-content:center;align-items:center;margin:0 auto 6px;display:flex}.win h2{margin:4px 0 2px;font-size:24px}.win p{color:var(--text-mid);margin-bottom:20px}.hint-text{font-size:15px;line-height:1.7}.modal-foot{border-top:1px solid var(--border);flex-wrap:wrap;justify-content:center;gap:6px;margin-top:16px;padding-top:12px;display:flex}.level-select-grid{grid-template-columns:repeat(auto-fill,minmax(110px,1fr));gap:10px;display:grid}.level-card{border:1px solid var(--border);text-align:center;cursor:pointer;border-radius:12px;padding:14px 8px;transition:border-color .15s,background .15s}.level-card:hover:not(.locked){border-color:var(--accent);background:var(--accent-soft)}.level-card.locked{opacity:.4;cursor:not-allowed}.level-card.completed{background:var(--green-soft);border-color:#0000}.level-card.current{border-color:var(--accent)}.lc-num{font-size:20px;font-weight:700}.lc-name{color:var(--text-mid);margin-top:2px;font-size:12px}.lc-status{height:18px;color:var(--text-mid);justify-content:center;margin-top:6px;display:flex}.lc-status .i{width:16px;height:16px}.level-card.completed .lc-status{color:var(--green)}.level-card.current .lc-status{color:var(--accent)}#cms-box{flex-direction:column;width:min(760px,100%);max-height:92vh;display:flex;overflow:hidden}#cms-header{flex-wrap:wrap;flex-shrink:0;align-items:center;gap:14px 12px;padding:18px 20px 14px;display:flex}#cms-brand{flex:1;align-items:center;gap:12px;display:flex}.cms-badge{background:var(--accent);color:#fff;width:44px;height:44px;box-shadow:0 4px 0 var(--accent-dark);border-radius:14px;justify-content:center;align-items:center;display:flex;transform:rotate(-4deg)}.cms-badge .i{width:22px;height:22px}#cms-title{letter-spacing:-.02em;font-size:22px;font-weight:900}#cms-tabs{flex-wrap:wrap;flex-basis:100%;order:3;gap:8px;display:flex}.cms-tab{border:2px solid var(--edge);background:var(--surface);color:var(--text-mid);cursor:pointer;box-shadow:0 3px 0 var(--edge);border-radius:999px;align-items:center;gap:8px;padding:7px 14px 7px 8px;font-size:14px;font-weight:800;transition:transform 80ms,box-shadow 80ms,color .15s,border-color .15s;display:inline-flex}.cms-tab .n{background:var(--surface-2);border-radius:999px;justify-content:center;align-items:center;width:22px;height:22px;font-size:12px;display:flex}.cms-tab .i{width:17px;height:17px;margin-left:4px}.cms-tab:hover{color:var(--text)}.cms-tab:active{box-shadow:none;transform:translateY(3px)}.cms-tab.active{background:var(--accent);border-color:var(--accent);color:#fff;box-shadow:0 3px 0 var(--accent-dark)}.cms-tab.active .n{color:#fff;background:#ffffff40}.cms-tab.magic:not(.active){color:var(--accent-text)}#cms-body{flex:1;padding:8px 22px 22px;overflow-y:auto}.cms-panel{flex-direction:column;gap:16px;animation:.2s fade-in;display:flex}.cms-lead{color:var(--text-mid);font-size:16px;font-weight:600;line-height:1.45}.cms-lead b{color:var(--text)}.cms-note{color:var(--text-dim);font-size:13px;font-weight:600}.cms-note b{color:var(--text-mid)}.field-group{flex-direction:column;gap:6px;display:flex}.field-group label,.sub-title{color:var(--text);font-size:14px;font-weight:800}.field-group label em{color:var(--text-dim);font-style:normal;font-weight:600}.sub-title{margin:4px 0 -6px}.field-hint{color:var(--text-dim);font-size:12.5px;font-weight:600}#cms-body input,#cms-body textarea,#cms-body select{color:var(--text);background:var(--surface);border:2px solid var(--edge);resize:none;border-radius:14px;outline:none;padding:10px 14px;font-family:inherit;font-size:15px;font-weight:600;transition:border-color .15s,box-shadow .15s}#cms-body input::placeholder,#cms-body textarea::placeholder{color:#c4b7a6;font-weight:500}#cms-body input:focus,#cms-body textarea:focus,#cms-body select:focus{border-color:var(--accent);box-shadow:0 0 0 4px var(--accent-soft)}.size-pick{grid-template-columns:repeat(3,1fr);gap:10px;display:grid}.size-opt{border:2px solid var(--edge);background:var(--surface);height:104px;box-shadow:0 3px 0 var(--edge);color:var(--text);cursor:pointer;border-radius:18px;flex-direction:column;justify-content:flex-end;align-items:center;gap:10px;padding:12px 8px 10px;font-size:14px;transition:transform 80ms,box-shadow 80ms;display:flex}.size-opt:active{box-shadow:none;transform:translateY(3px)}.size-shape{background:var(--surface-2);border:2px dashed var(--border-2);border-radius:6px}.size-opt.active{border-color:var(--accent);background:var(--accent-soft);box-shadow:0 3px 0 rgba(var(--accent-rgb), .35)}.size-opt.active .size-shape{background:var(--surface);border-color:var(--accent)}.io-list{flex-direction:column;gap:8px;display:flex}.io-row{background:var(--surface-2);border-radius:18px;align-items:center;gap:10px;padding:8px 8px 8px 14px;display:flex}.io-row input{flex:1;min-width:0}.dot{border-radius:999px;flex-shrink:0;width:14px;height:14px}.dot.input{background:#5b8fb9;box-shadow:0 0 0 4px #e1ebf4}.dot.output{background:#5a9e6f;box-shadow:0 0 0 4px #e0efe5}.icon-btn{border:2px solid var(--edge);background:var(--surface);width:40px;height:40px;color:var(--text-dim);cursor:pointer;box-shadow:0 3px 0 var(--edge);border-radius:13px;flex-shrink:0;justify-content:center;align-items:center;transition:transform 80ms,box-shadow 80ms,color .15s;display:flex}.icon-btn .i{width:18px;height:18px}.icon-btn:hover{color:var(--red)}.icon-btn:active{box-shadow:none;transform:translateY(3px)}.btn-add{border:2px dashed var(--border-2);width:100%;color:var(--text-mid);cursor:pointer;background:0 0;border-radius:18px;justify-content:center;align-items:center;gap:8px;padding:12px 14px;font-size:14px;font-weight:800;transition:border-color .15s,color .15s,background .15s;display:flex}.btn-add .i{stroke-width:2.6px;width:17px;height:17px}.btn-add:hover{border-color:var(--accent);color:var(--accent-text);background:var(--accent-soft)}.cms-goal{overflow-x:auto}.cms-goal table{border-collapse:separate;border-spacing:0;border:2px solid var(--border);border-radius:16px;width:100%;overflow:hidden}.cms-goal th{background:var(--surface-2);color:var(--text-mid);text-align:center;padding:8px 10px;font-size:13px;font-weight:800}.cms-goal .grp th{letter-spacing:.08em;text-transform:uppercase;padding:6px;font-size:11px}.cms-goal .grp-in{color:#4b7396;background:#e9f0f7}.cms-goal .grp-out{background:var(--green-soft);color:var(--green)}.cms-goal .grp .arrow-col{background:var(--surface-2)}.cms-goal td{text-align:center;border-top:1px solid var(--border);padding:7px 10px}.cms-goal .arrow-col{width:28px;color:var(--text-dim);border-left:1px solid var(--border);border-right:1px solid var(--border);padding:0}.cms-goal .arrow-col .i{vertical-align:middle;width:15px;height:15px}.cms-goal .v{min-width:52px;padding:3px 10px;font-size:13px}.cms-goal button.v{cursor:pointer;border:none;font-family:inherit;transition:transform 80ms,box-shadow 80ms;box-shadow:0 2px #0000001f}.cms-goal button.v:active{box-shadow:none;transform:translateY(2px)}.gate-toggle-grid{grid-template-columns:repeat(auto-fill,minmax(120px,1fr));gap:10px;display:grid}.gate-toggle{border:2px solid var(--edge);background:var(--surface);box-shadow:0 3px 0 var(--edge);cursor:pointer;opacity:.65;border-radius:18px;flex-direction:column;align-items:center;gap:4px;padding:14px 8px 12px;transition:transform 80ms,box-shadow 80ms,opacity .15s;display:flex;position:relative}.gate-toggle:active{box-shadow:none;transform:translateY(3px)}.gate-toggle .gate-swatch{width:52px;height:40px}.gate-toggle .gate-swatch .i{width:28px;height:28px}.gt-name{color:var(--text);font-size:14px;font-weight:800}.gt-sub{color:var(--text-dim);font-size:12px;font-weight:600}.gate-toggle.enabled{opacity:1;border-color:var(--accent);background:var(--accent-soft);box-shadow:0 3px 0 rgba(var(--accent-rgb), .35)}.gate-toggle.enabled:after{content:"";background:var(--accent) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 6 9 17l-5-5'/%3E%3C/svg%3E") center / 11px no-repeat;border-radius:999px;width:18px;height:18px;position:absolute;top:8px;right:8px}.rule-card{background:var(--surface-2);border-radius:20px;flex-direction:column;gap:12px;padding:14px;display:flex}.rule-line{align-items:center;gap:10px;display:flex}.rule-line select{flex:1;font-weight:800}.rule-fields{flex-wrap:wrap;align-items:center;gap:8px;font-size:15px;font-weight:700;display:flex}.rule-fields input,.rule-fields select{border-radius:12px;padding:7px 10px}.rule-preview{color:var(--text-dim);font-size:13px;font-weight:600}.rule-preview b{color:var(--text-mid)}.gen-grid{grid-template-columns:repeat(auto-fill,minmax(128px,1fr));gap:10px;display:grid}.gen-preset{border:2px solid var(--edge);background:var(--surface);box-shadow:0 3px 0 var(--edge);cursor:pointer;border-radius:20px;flex-direction:column;align-items:center;gap:4px;padding:16px 8px 14px;transition:transform .12s cubic-bezier(.34,1.4,.64,1),box-shadow 80ms,border-color .15s;display:flex}.gen-preset:hover{border-color:currentColor;transform:translateY(-3px)rotate(-1deg)}.gen-preset:active{box-shadow:none;transform:translateY(3px)}.gen-icon{background:color-mix(in srgb, currentColor 13%, var(--surface));border-radius:14px;justify-content:center;align-items:center;width:56px;height:44px;margin-bottom:4px;display:flex}.gen-icon .i{width:30px;height:30px}.gen-label{color:var(--text);font-size:15px;font-weight:900}.gen-desc{color:var(--text-dim);font-size:12px;font-weight:600}#cms-footer{border-top:2px solid var(--border);background:var(--surface);flex-shrink:0;justify-content:space-between;align-items:center;gap:12px;padding:14px 20px 16px;display:flex}#cms-status{color:var(--text-mid);text-overflow:ellipsis;white-space:nowrap;min-width:0;font-size:13.5px;font-weight:700;overflow:hidden}.cms-actions{flex-shrink:0;gap:8px;margin-left:auto;display:flex}#cms-save .i{width:15px;height:15px}#win-banner{text-align:center;padding:24px 16px}#win-banner h2{color:var(--accent);margin-bottom:10px;font-size:26px}#win-banner p{font-size:15px}::-webkit-scrollbar{width:8px;height:8px}::-webkit-scrollbar-track{background:0 0}::-webkit-scrollbar-thumb{background:var(--border-2);border-radius:4px}.hidden{display:none!important}hr.section{border:none;border-top:1px solid var(--border);margin:4px 0}@keyframes pop{0%{opacity:0;transform:scale(.9)translateY(12px)}to{opacity:1;transform:none}}#modal-box,#cms-box{border:2px solid var(--edge);box-shadow:0 6px 0 var(--edge), 0 30px 70px #3c281438;animation:.34s cubic-bezier(.34,1.4,.64,1) pop}#modal-title{font-weight:800}.intro-gate{background:var(--bg)}.level-card{border:2px solid var(--edge);box-shadow:0 3px 0 var(--edge);transition:transform .12s,border-color .15s,background .15s}.level-card:hover:not(.locked){transform:translateY(-3px)}.level-card:active:not(.locked){box-shadow:none;transform:translateY(2px)}.level-card.completed{border-color:var(--green-line);box-shadow:0 3px 0 var(--green-line)}.level-card.current{border-color:var(--accent);box-shadow:0 3px 0 rgba(var(--accent-rgb), .35)}.lc-num{font-weight:800}.switch,.lamp{border-bottom-width:4px}@media (width<=1300px){.mobile-only{display:flex!important}#info-panel{width:100%;max-height:72%;padding:0 18px calc(22px + env(safe-area-inset-bottom));z-index:40;border-bottom:none;border-radius:24px 24px 0 0;transition:transform .28s cubic-bezier(.3,1.1,.5,1);inset:auto 0 0;transform:translateY(108%);box-shadow:0 -8px 30px #3c281424}#info-panel.open{transform:none}#sheet-head{background:var(--surface);z-index:1;justify-content:center;align-items:center;height:38px;margin:0 -18px 4px;position:sticky;top:0}.sheet-grip{background:var(--border-2);border-radius:3px;width:38px;height:5px}#sheet-close{position:absolute;top:4px;right:10px}}@media (width<=820px){#hud{gap:8px;padding-left:10px;padding-right:10px}#hud-row{gap:6px}.hud-btn{border-radius:13px;width:40px;height:40px}.hud-btn .i{width:20px;height:20px}#level-info{gap:8px;height:40px;padding-right:12px}#level-badge{padding:4px 10px;font-size:12px}#level-name-display{font-size:14px}#task-bubble{border-radius:16px;padding:8px 14px;font-size:14px}#dock{gap:8px;padding-left:10px;padding-right:10px}#canvas-history{flex-direction:column;gap:6px}#canvas-history .hud-btn.small{width:38px;height:38px}#palette-panel{border-radius:20px;flex:1;padding:8px 8px 6px}.palette-item{width:66px;padding:7px 2px 5px}.gate-swatch{width:42px;height:32px}.gate-swatch .i{width:23px;height:23px}#dock .btn-go{border-radius:20px;width:60px;height:60px;padding:0}#dock .btn-go span{display:none}#dock .btn-go .i{width:26px;height:26px}.btn-go.big{height:60px;padding:0 30px;font-size:19px}#canvas-band{left:10px;right:10px}#canvas-tip{padding:0 14px;font-size:12.5px}#modal-overlay,#cms-overlay{align-items:flex-end;padding:0}#modal-box{border-bottom:none;border-radius:24px 24px 0 0;width:100%;max-height:88vh;animation:.28s slide-up}#cms-box{border:none;border-radius:0;width:100%;height:100%;max-height:none;animation:.28s slide-up}#cms-header{gap:8px;padding:12px 14px}#cms-tabs{scrollbar-width:none;flex-wrap:nowrap;flex-basis:100%;order:3;margin:-2px -2px 0;padding:2px 2px 6px;overflow-x:auto}#cms-tabs::-webkit-scrollbar{display:none}.cms-tab{flex-shrink:0}#cms-close{margin-left:auto}#cms-body{padding:16px}#cms-footer{padding:12px 16px calc(12px + env(safe-area-inset-bottom));flex-wrap:wrap}#cms-status{flex-basis:100%}.field-row,.field-row-3{grid-template-columns:1fr}.level-select-grid{grid-template-columns:repeat(3,1fr)}}@media (width<=400px){#hud-row{gap:5px}.hud-btn{width:38px;height:38px}}.panel-sub{color:var(--text-mid);white-space:nowrap;margin:-4px 0 10px;font-size:13px;font-weight:600;line-height:1.4}#now-line:empty{display:none}.now{background:var(--surface-2);border-radius:14px;margin-top:10px;padding:9px 12px;font-size:13px;font-weight:600;line-height:1.4}.now b{font-weight:800}.now .i{vertical-align:-.2em;stroke-width:3px;width:15px;height:15px}.now-label{letter-spacing:.06em;text-transform:uppercase;color:var(--text-dim);font-size:11px;font-weight:800;display:block}.now.ok{background:var(--green-soft);color:var(--green)}.now.bad{background:var(--red-soft);color:var(--red)}.tr-when{color:var(--text);font-weight:700}.test-result-item.tip{color:var(--text-dim);font-size:12px}html.snippet-embed #title-screen,html.snippet-embed #btn-levels,html.snippet-embed #btn-sound,html.snippet-embed #btn-next-level{display:none!important}html.snippet-embed #palette-panel{padding:12px 6px 4px;overflow:visible}html.snippet-embed #palette-list{flex-wrap:wrap;justify-content:center;gap:4px}html.snippet-embed .palette-item{gap:3px;width:calc(25% - 3px);min-width:0;padding:9px 2px 3px}html.snippet-embed .gate-swatch{width:100%;max-width:46px;height:32px}html.snippet-embed .gate-swatch .i{width:24px;height:24px}html.snippet-embed .palette-item-name{font-size:10.5px}html.snippet-embed .palette-item.active{transform:translateY(-4px)}html.snippet-embed .palette-help{width:20px;height:20px;top:0;right:0}:is(html[data-snippet-theme=dark],html[data-theme=dark]){--bg:#1a1714;--surface:#262220;--surface-2:#2f2a26;--border:#3a332d;--border-2:#4a4139;--text:#f1ebe3;--text-mid:#cbbdae;--text-dim:#a99b8c;--accent-soft:#3b2a22;--green-soft:#1f3327;--red-soft:#3b2321;--shadow:0 1px 2px #0006, 0 4px 16px #00000059;--edge:#3a332d;--accent:#d9653b;--accent-rgb:217, 101, 59;--accent-dark:#b4491f;--accent-text:#f4a07a;--accent-line:#6b4a3a;--green:#52b374;--green-solid:#2e8a4f;--green-line:#2f5a40;--red:#e5675d;--lightningcss-light: ;--lightningcss-dark:initial;color-scheme:dark}:is(html[data-snippet-theme=dark],html[data-theme=dark]) #canvas-wrap{background:radial-gradient(90% 70% at 50% 0%, #2a2521 0%, #2a252100 70%), var(--bg)}:is(html[data-snippet-theme=dark],html[data-theme=dark]) .gate-swatch{background:color-mix(in srgb, currentColor 18%, #262220)}:is(html[data-snippet-theme=dark],html[data-theme=dark]) .hud-btn:hover:not(:disabled){border-color:var(--accent-line)}:is(html[data-snippet-theme=dark],html[data-theme=dark]) .goal .grp-in{color:#8db4d6;background:#243040}:is(html[data-snippet-theme=dark],html[data-theme=dark]) .goal tr.tt-now td{background:#3a3122}:is(html[data-snippet-theme=dark],html[data-theme=dark]) .level-card.completed{border-color:#2f5a40;box-shadow:0 3px #2f5a40}:is(html[data-snippet-theme=dark],html[data-theme=dark]) #canvas-tip{background:#f1ebe324}html.snippet-embed #task-bubble{padding:6px 12px;font-size:13px;line-height:1.3}html.snippet-embed #canvas-tip{padding:0 12px;font-size:12px}@media (height<=660px){html.snippet-embed #canvas-history .hud-btn.small{width:34px;height:34px}}.goal th .th-ico{display:block}.goal th .th-ico .i{width:18px;height:18px;margin-bottom:1px}.goal th .th-name{overflow-wrap:anywhere;font-size:11px;line-height:1.2;display:block}.goal thead tr:last-child th{vertical-align:bottom;padding:6px 3px}#task-bubble{text-align:left;cursor:pointer;align-items:center;gap:12px;padding:7px 20px 7px 8px;transition:transform 80ms,box-shadow 80ms;display:flex}#task-bubble:hover{border-color:var(--accent-line)}#task-bubble:active{box-shadow:0 0 0 var(--edge);transform:translateY(3px)}#task-bubble:focus-visible{outline:3px solid var(--accent-soft);outline-offset:2px}#task-icon{background:var(--accent-soft);width:40px;height:40px;color:var(--accent-text);border-radius:13px;flex-shrink:0;justify-content:center;align-items:center;display:flex}#task-icon .i{width:23px;height:23px}#modal-box.mission-box{width:min(600px,100%);max-height:94vh;position:relative}.mission-box #modal-header{z-index:4;padding:10px 12px 0 0;position:absolute;top:0;right:0}.mission-box #modal-body{padding:18px 20px}.mission{flex-direction:column;gap:12px;display:flex}.mission-head{align-items:center;gap:14px;padding-right:28px;display:flex}.mission-icon{background:var(--accent-soft);width:64px;height:64px;color:var(--accent-text);box-shadow:0 4px 0 rgba(var(--accent-rgb), .3);border-radius:20px;flex-shrink:0;justify-content:center;align-items:center;display:flex}.mission-icon .i{stroke-width:1.8px;width:36px;height:36px}.mission-kicker{letter-spacing:.08em;text-transform:uppercase;color:var(--text-dim);font-size:11.5px;font-weight:800}.mission-task{letter-spacing:-.02em;margin-top:2px;font-size:21px;font-weight:900;line-height:1.2}.mission-block{background:var(--surface-2);border-radius:18px;width:100%;padding:12px}.mission-h{letter-spacing:.08em;text-transform:uppercase;color:var(--text-dim);margin-bottom:8px;font-size:12px;font-weight:800}.mission-h b{color:var(--text-mid)}.mission-block .goal table{background:var(--surface)}.mission-block .goal th{padding:4px 3px}.mission-block .goal td{padding:3px 4px}.mission-block .v{min-width:38px;padding:0 6px;font-size:12px;line-height:20px}.mission-block .goal .grp th{padding:4px}.mission-rules{flex-wrap:wrap;gap:8px;list-style:none;display:flex}.mission-rules li{background:var(--surface);border-radius:999px;align-items:center;gap:7px;padding:6px 12px 6px 8px;font-size:13.5px;font-weight:700;display:flex}.mission-rules li .i{width:16px;height:16px;color:var(--accent-text)}.mission .modal-ok{margin-top:2px}.lc-icon{background:var(--accent-soft);width:38px;height:38px;color:var(--accent-text);border-radius:12px;justify-content:center;align-items:center;margin:0 auto 6px;display:flex}.lc-icon .i{width:22px;height:22px}.level-card.completed .lc-icon{background:var(--green-soft);color:var(--green)}.level-card .lc-num{font-size:17px}.icon-pick{grid-template-columns:repeat(auto-fill,minmax(52px,1fr));gap:8px;display:grid}.icon-opt{border:2px solid var(--edge);background:var(--surface);height:50px;color:var(--text-mid);box-shadow:0 3px 0 var(--edge);cursor:pointer;border-radius:15px;justify-content:center;align-items:center;transition:transform 80ms,box-shadow 80ms;display:flex}.icon-opt .i{width:24px;height:24px}.icon-opt:active{box-shadow:none;transform:translateY(3px)}.icon-opt.active{border-color:var(--accent);background:var(--accent-soft);color:var(--accent-text);box-shadow:0 3px 0 rgba(var(--accent-rgb), .35)}@media (width<=820px){#task-bubble{gap:10px;padding:6px 14px 6px 6px}#task-icon{border-radius:11px;width:34px;height:34px}#task-icon .i{width:20px;height:20px}.mission-box #modal-body{padding:14px 12px 12px}.mission{gap:10px}.mission-head{gap:12px}.mission-icon{width:46px;height:46px;box-shadow:0 3px 0 rgba(var(--accent-rgb), .3);border-radius:15px}.mission-icon .i{width:26px;height:26px}.mission-task{font-size:17px}.mission-block{padding:10px}.mission-h{margin-bottom:6px}.mission-block .goal th .th-ico .i{width:16px;height:16px}.mission-block .goal td{padding:2px 3px}.mission-block .v{min-width:34px;font-size:11.5px;line-height:17px}.mission-rules li{padding:5px 10px 5px 7px;font-size:13px}.mission .modal-ok{padding:10px}}.mission-icon{border-radius:17px;width:54px;height:54px}.mission-icon .i{width:30px;height:30px}.mission-task{font-size:18px}.mission-block .v{min-width:34px;font-size:11.5px;line-height:18px}.mission-block{padding:12px}.mission-icon{width:68px;height:68px}.ts-links{gap:6px;display:flex}.endless-card{border:2px solid var(--edge);background:var(--surface);width:100%;box-shadow:0 3px 0 var(--edge);text-align:left;cursor:pointer;border-radius:20px;align-items:center;gap:14px;margin-bottom:12px;padding:12px 16px 12px 12px;transition:transform .12s,border-color .15s,background .15s;display:flex}.endless-card:hover{border-color:var(--accent);background:var(--accent-soft);transform:translateY(-2px)}.endless-card:active{box-shadow:none;transform:translateY(2px)}.endless-card.current{border-color:var(--accent);background:var(--accent-soft);box-shadow:0 3px 0 rgba(var(--accent-rgb), .35)}.endless-icon{background:var(--accent);color:#fff;width:48px;height:48px;box-shadow:0 3px 0 var(--accent-dark);border-radius:15px;flex-shrink:0;justify-content:center;align-items:center;display:flex}.endless-icon .i{width:28px;height:28px}.endless-text{flex-direction:column;flex:1;min-width:0;display:flex}.endless-text b{font-size:17px;font-weight:900}.endless-text span{color:var(--text-mid);font-size:13px;font-weight:600}.endless-go{color:var(--accent-text);display:flex}.endless-go .i{width:20px;height:20px}#info-panel.dense{padding:12px 14px 14px}#info-panel.denser .panel-sub{display:none}#info-panel.dense .section-gap{height:12px}#info-panel.dense .goal td{padding:3px 4px}#info-panel.dense .goal .v{min-width:34px;font-size:11.5px;line-height:18px}#info-panel.dense .goal th .th-ico .i{width:15px;height:15px}#info-panel.dense .goal .grp th{padding:4px}#info-panel.dense .now{margin-top:6px;padding:6px 10px}#info-panel.dense .compliance-item{padding:1px 0}#info-panel.dense .test-result-item{padding:4px 0}#info-panel.dense #test-summary{margin-bottom:4px;padding:7px 10px}#info-panel.denser .goal td{padding:1px 3px}#info-panel.denser .goal .v{min-width:32px;padding:0 5px;font-size:11px;line-height:15px}#info-panel.denser .goal th .th-ico{display:none}#info-panel.denser .goal thead tr:last-child th{padding:3px}#info-panel.denser .now,#info-panel.denser .test-result-item.extra,#info-panel.denser .test-result-item.tip{display:none}#result-pop{left:0;right:var(--stage-r);bottom:calc(var(--dock-h) + 14px);z-index:16;background:var(--surface);border:2px solid var(--edge);width:min(520px,100% - 24px);max-height:46%;box-shadow:0 4px 0 var(--edge), 0 14px 34px #3c281424;border-radius:20px;margin:0 auto;padding:12px 44px 12px 14px;animation:.28s cubic-bezier(.34,1.4,.64,1) pop;position:absolute;overflow-y:auto}#result-close{width:30px;height:30px;color:var(--text-dim);cursor:pointer;background:0 0;border:none;border-radius:10px;justify-content:center;align-items:center;display:flex;position:absolute;top:8px;right:8px}#result-close:hover{background:var(--surface-2);color:var(--text)}#result-close .i{width:16px;height:16px}#result-pop #test-summary{justify-content:flex-start}.goal th .th-name{overflow-wrap:normal;word-break:normal;-webkit-hyphens:none;hyphens:none}.goal.many th .th-name{letter-spacing:-.01em;font-size:10px}.goal.many .v{min-width:32px;padding:0 5px}#info-panel.ultra{padding:10px 12px 12px}#info-panel.ultra .panel-title{margin-bottom:4px}#info-panel.ultra .section-gap{height:8px}#info-panel.ultra .goal td{padding:0 3px}#info-panel.ultra .goal .v{min-width:30px;padding:0 4px;font-size:10.5px;line-height:13px}#info-panel.ultra .goal th,#info-panel.ultra .goal .grp th{padding:2px 3px}#info-panel.ultra .compliance-item{padding:0}#info-panel.ultra .comp-text{font-size:12px}#info-panel.dense .goal td,#info-panel.denser .goal td,#info-panel.ultra .goal td{font-size:0}#result-pop{max-height:calc(100% - var(--dock-h) - var(--hud-h) - 28px)}@media (height<=700px){#result-pop .test-result-item.tip{display:none}}#info-panel .goal.many .v{min-width:30px;padding:0 4px}#info-panel .goal.many td,#info-panel .goal.many th{padding-left:2px;padding-right:2px}#task-bubble{width:min(640px, calc(100% - var(--stage-r)));text-align:center;align-items:center;gap:12px;max-width:none;padding:7px 14px 7px 7px;display:flex}#task-icon{width:42px;height:42px}#task-text{flex-direction:column;flex:1;align-items:center;gap:1px;min-width:0;display:flex}#task-kicker{letter-spacing:.1em;text-transform:uppercase;color:var(--text-dim);font-size:10.5px;font-weight:800;line-height:1.2}#objective-text{letter-spacing:-.005em;color:var(--text);text-wrap:balance;font-size:16px;font-weight:800;line-height:1.28}#task-more{width:42px;color:var(--text-dim);opacity:.75;flex-shrink:0;justify-content:center;align-items:center;display:flex}#task-more .i{width:19px;height:19px}#task-bubble:hover #task-more{color:var(--accent-text);opacity:1}@media (width<=820px){#task-bubble{gap:10px;width:100%;padding:6px 12px 6px 6px}#task-icon{width:36px;height:36px}#task-text{text-align:left;align-items:flex-start}#objective-text{font-size:14.5px}#task-kicker{font-size:10px}#task-more{display:none}}html.snippet-embed #task-bubble{gap:8px;width:100%;padding:5px 10px 5px 5px}html.snippet-embed #task-kicker,html.snippet-embed #task-more{display:none}html.snippet-embed #objective-text{font-size:13px}html.snippet-embed #task-text{text-align:left;align-items:flex-start}html.snippet-embed #task-icon{width:30px;height:30px}:is(html[data-snippet-theme=dark],html[data-theme=dark]) #title-screen{background:radial-gradient(80% 60% at 50% 10%, #2a2521 0%, #2a252100 70%), var(--bg)}:is(html[data-snippet-theme=dark],html[data-theme=dark]) #modal-overlay,:is(html[data-snippet-theme=dark],html[data-theme=dark]) #cms-overlay{background:#0a08069e}:is(html[data-snippet-theme=dark],html[data-theme=dark]) #modal-box,:is(html[data-snippet-theme=dark],html[data-theme=dark]) #cms-box{box-shadow:0 6px 0 var(--edge), 0 30px 70px #00000080}:is(html[data-snippet-theme=dark],html[data-theme=dark]) #info-panel{box-shadow:0 4px 0 var(--edge)}:is(html[data-snippet-theme=dark],html[data-theme=dark]) .cms-goal .grp-in{color:#8db4d6;background:#243040}:is(html[data-snippet-theme=dark],html[data-theme=dark]) .dot.input{box-shadow:0 0 0 4px #243040}:is(html[data-snippet-theme=dark],html[data-theme=dark]) .dot.output{box-shadow:0 0 0 4px #1f3327}:is(html[data-snippet-theme=dark],html[data-theme=dark]) #cms-body input::placeholder,:is(html[data-snippet-theme=dark],html[data-theme=dark]) #cms-body textarea::placeholder{color:#75695d}:is(html[data-snippet-theme=dark],html[data-theme=dark]) .ts-deco .i{opacity:.22}:is(html[data-snippet-theme=dark],html[data-theme=dark]) .btn-go.ready{box-shadow:0 5px #2f7a47}:is(html[data-snippet-theme=dark],html[data-theme=dark]) .v0{background:var(--surface-2)}#settings-pop{z-index:35;background:var(--surface);border:2px solid var(--edge);min-width:250px;box-shadow:0 4px 0 var(--edge), 0 14px 34px #3c281424;border-radius:20px;flex-direction:column;gap:12px;padding:14px;animation:.22s cubic-bezier(.34,1.4,.64,1) pop;display:flex;position:absolute;right:14px}.set-row{justify-content:space-between;align-items:center;gap:14px;display:flex}.set-label{align-items:center;gap:8px;font-size:14px;font-weight:800;display:flex}.set-label .i{width:18px;height:18px;color:var(--text-dim)}.seg{background:var(--surface-2);border-radius:12px;gap:2px;padding:3px;display:flex}.seg button{color:var(--text-mid);cursor:pointer;background:0 0;border:none;border-radius:9px;padding:6px 12px;font-size:13px;font-weight:800;transition:background .15s,color .15s}.seg button:hover{color:var(--text)}.seg button.on{background:var(--accent);color:#fff;box-shadow:0 2px 0 var(--accent-dark)}@media (width<=820px){#settings-pop{right:10px}}html.snippet-embed #btn-settings,html.snippet-embed #settings-pop{display:none!important}.ts-theme{top:max(14px, env(safe-area-inset-top));z-index:2;width:auto;color:var(--text-mid);gap:8px;padding:0 16px 0 14px;font-size:14px;font-weight:800;position:absolute;right:14px}.ts-theme-ico{display:flex}.ts-theme-ico .i{width:20px;height:20px}.ts-theme:hover{color:var(--text)}@media (width<=820px){.ts-theme{border-radius:13px;height:40px;right:10px}}html.snippet-embed .ts-theme{display:none}::view-transition-old(root){mix-blend-mode:normal;animation:none}::view-transition-new(root){mix-blend-mode:normal;animation:none}::view-transition-old(root){z-index:1}::view-transition-new(root){z-index:2}html.theme-fade,html.theme-fade *,html.theme-fade :before,html.theme-fade :after{transition:background-color .45s,color .45s,border-color .45s,box-shadow .45s,fill .45s,stroke .45s!important}.ts-theme-ico.spin .i{animation:.6s cubic-bezier(.34,1.5,.64,1) theme-spin}@keyframes theme-spin{0%{opacity:0;transform:rotate(-140deg)scale(.3)}to{opacity:1;transform:none}}@media (prefers-reduced-motion:reduce){.ts-theme-ico.spin .i{animation:none}}.ts-tools{top:max(14px, env(safe-area-inset-top));z-index:2;gap:8px;display:flex;position:absolute;right:14px}.ts-theme{position:static}.ts-sound .i{width:22px;height:22px}.ts-sound-ico{display:flex}@media (width<=820px){.ts-tools{right:10px}.ts-sound{border-radius:13px;width:40px;height:40px}}html.snippet-embed .ts-tools{display:none}button.ts-logo{cursor:pointer;-webkit-tap-highlight-color:transparent;background:0 0;border:none;padding:0;display:block}button.ts-logo:focus-visible{outline:3px solid var(--accent-soft);outline-offset:6px}.ts-logo.zap{animation:.65s cubic-bezier(.34,1.5,.64,1) logo-zap}@keyframes logo-zap{0%{transform:scale(1)rotate(0)}30%{box-shadow:0 7px 0 var(--accent-dark), 0 0 0 10px rgba(var(--accent-rgb), .22), 0 18px 40px rgba(var(--accent-rgb), .5);transform:scale(1.16)rotate(-7deg)}65%{transform:scale(.97)rotate(3deg)}to{transform:scale(1)rotate(0)}}html.rail #hud{flex-direction:row;align-items:center;gap:6px;padding:8px 10px 0}html.rail #hud-row{display:contents}html.rail #hud-row>*{pointer-events:auto}html.rail .hud-btn{border-radius:13px;width:40px;height:40px}html.rail .hud-btn .i{width:20px;height:20px}html.rail .grow,html.rail #level-name-display{display:none}html.rail #btn-levels{order:0}html.rail #level-info{order:1;height:40px;padding:0 6px}html.rail #task-bubble{text-align:left;flex:1;order:2;gap:8px;width:auto;min-width:0;margin:0;padding:4px 12px 4px 4px}html.rail #task-icon{border-radius:10px;width:30px;height:30px}html.rail #task-icon .i{width:17px;height:17px}html.rail #task-kicker,html.rail #task-more{display:none}html.rail #task-text{align-items:flex-start}html.rail #objective-text{text-align:left;font-size:13px;line-height:1.2}html.rail #btn-info,html.rail #btn-hint,html.rail #btn-reset,html.rail #btn-settings{order:3}html.rail #dock{pointer-events:none;padding:0;display:block;position:absolute;inset:0}html.rail #dock>*{pointer-events:auto;position:absolute}html.rail #palette-panel{left:10px;top:calc(var(--hud-b,56px) + 8px);border-radius:20px;width:94px;padding:6px;bottom:10px;overflow:hidden auto}html.rail #palette-list{flex-direction:column;gap:3px}html.rail .palette-item{border-radius:13px;flex-direction:row;justify-content:flex-start;gap:4px;width:100%;padding:5px 4px}html.rail .palette-item:hover{transform:none}html.rail .palette-item.active{box-shadow:0 3px 0 rgba(var(--accent-rgb), .28);transform:translate(5px)}html.rail .gate-swatch{border-radius:8px;flex-shrink:0;width:24px;height:22px}html.rail .gate-swatch .i{width:16px;height:16px}html.rail .palette-item-name{text-overflow:ellipsis;min-width:0;font-size:10.5px;overflow:hidden}html.rail .palette-help{display:none}html.rail #canvas-history{right:10px;top:calc(var(--hud-b,56px) + 8px);flex-direction:column;gap:6px}html.rail #dock .btn-go{border-radius:18px;width:56px;height:56px;padding:0;bottom:10px;right:10px}html.rail #dock .btn-go span{display:none}html.rail #dock .btn-go .i{width:26px;height:26px}html.rail #canvas-band{bottom:8px;left:118px;right:80px}html.rail #canvas-tip{font-size:12px}html.rail #result-pop{width:min(520px,100% - 230px);max-height:calc(100% - var(--hud-b,56px) - 66px);bottom:52px}html.rail #settings-pop{right:10px}html.rail .ts-card{gap:6px}html.rail .ts-logo{width:56px;height:56px;box-shadow:0 4px 0 var(--accent-dark);border-radius:16px}html.rail .ts-logo img{border-radius:16px}html.rail .ts-card h1{justify-content:center;gap:.28em;margin-top:2px;font-size:34px;display:flex}html.rail .ts-card h1 br{display:none}html.rail .ts-theme{width:auto;padding:0 14px 0 12px}html.rail .ts-card p{max-width:420px;margin-bottom:2px;font-size:14px}html.rail .btn-go.big{height:52px;padding:0 30px;font-size:18px}html.rail .ts-deco .i{opacity:.1}html.rail #modal-box.mission-box{border-bottom:2px solid var(--edge);border-radius:24px;width:min(880px,100% - 20px);max-height:calc(100% - 12px)}html.rail #modal-overlay{align-items:center;padding:6px 10px}html.rail .mission-box #modal-body{padding:12px 14px}html.rail .mission{grid-template-columns:minmax(0,.85fr) minmax(0,1.15fr);align-items:start;gap:8px 12px;display:grid}html.rail .mission-head{grid-area:1/1;padding-right:0}html.rail .mission .mb-rules{grid-area:2/1}html.rail .mission .mb-table{grid-area:1/2/span 2}html.rail .mission .modal-ok{box-shadow:0 4px 0 var(--accent-dark), 0 -12px 12px 4px var(--surface);grid-area:3/1/auto/-1;padding:9px;position:sticky;bottom:2px}html.rail .mission-icon{border-radius:14px;width:44px;height:44px}html.rail .mission-icon .i{width:25px;height:25px}html.rail .mission-task{font-size:16px}html.rail .mission-block{padding:8px 10px}html.rail .mission-h{margin-bottom:4px}html.rail .mission-block .goal td{padding:1px 3px;font-size:0}html.rail .mission-block .v{min-width:32px;padding:0 5px;font-size:11px;line-height:15px}html.rail .mission-block .goal th,html.rail .mission-block .goal .grp th{padding:2px 3px}html.rail .mission-block .goal th .th-ico{display:none}html.rail .mission-rules li{padding:4px 10px 4px 7px;font-size:12.5px}html.rail .mission-block .goal.tall td{padding:0 3px}html.rail .mission-block .goal.tall .v{min-width:28px;padding:0 4px;font-size:10px;line-height:12px}html.rail .mission-block .goal.tall th,html.rail .mission-block .goal.tall .grp th{padding:1px 3px}html.rail .mission-block .mission-h{margin-bottom:3px;font-size:11px}html.rail #info-panel{max-height:calc(100% - 10px)}.goal.split{align-items:flex-start;gap:8px;display:flex}.goal.split table{flex:1;min-width:0}html.rail #info-panel .goal.split{margin:0}html.rail .mission:has(.goal.split){grid-template-columns:minmax(0,1fr) minmax(0,1fr)}html.rail .mission:has(.goal.split) .mission-head{grid-area:1/1}html.rail .mission:has(.goal.split) .mb-rules{grid-area:1/2;align-self:stretch}html.rail .mission:has(.goal.split) .mb-table{grid-area:2/1/auto/-1}html.rail .mission:has(.goal.split) .modal-ok{grid-row:3}html.rail .mission:has(.goal.split) .mb-table .mission-h{display:none}html.rail .mission:has(.goal.split){row-gap:6px}html.rail .mission:has(.goal.split) .mission-task{font-size:14.5px}html.rail .mission:has(.goal.split) .mission-icon{border-radius:12px;width:38px;height:38px}:is(html.rail .mission:has(.goal.split) .mb-table,html.rail .mission:has(.goal.split) .mb-rules){padding:6px 10px}html.rail .mission:has(.goal.split) .modal-ok{padding:8px}.kit-badge{z-index:1;background:var(--accent);color:#fff;min-width:22px;height:19px;box-shadow:0 2px 0 var(--accent-dark), 0 0 0 2px var(--surface);pointer-events:none;border-radius:999px;justify-content:center;align-items:center;gap:1px;padding:0 6px;font-size:11px;font-weight:800;line-height:1;display:flex;position:absolute;top:-3px;left:-3px}.kit-x{opacity:.85;font-size:10px}.palette-item.bump .kit-badge{animation:.32s cubic-bezier(.34,1.8,.64,1) kit-bump}@keyframes kit-bump{0%{transform:scale(1.5)}to{transform:scale(1)}}.palette-item.empty .gate-swatch,.palette-item.empty .palette-item-name{opacity:.45}.palette-item.empty .gate-swatch{filter:grayscale(.8)}.palette-item.empty .kit-badge{background:var(--surface-2);color:var(--text-dim);box-shadow:0 0 0 2px var(--surface)}.palette-item.nope{animation:.4s tile-nope}@keyframes tile-nope{20%{transform:translate(-6px)}40%{transform:translate(5px)}60%{transform:translate(-3px)}80%{transform:translate(2px)}}.mission-rules li.part{padding:5px 14px 5px 7px}.mission-rules li.part .part-ico{background:color-mix(in srgb, currentColor 14%, var(--surface));border-radius:9px;justify-content:center;align-items:center;width:32px;height:26px;display:flex}.mission-rules li.part .part-ico .i{width:19px;height:19px;color:inherit}html.rail .kit-badge{min-width:17px;height:17px;padding:0 4px;font-size:10.5px;top:50%;left:auto;right:5px;transform:translateY(-50%)}html.rail .palette-item.bump .kit-badge{animation:.32s cubic-bezier(.34,1.8,.64,1) kit-bump-rail}@keyframes kit-bump-rail{0%{transform:translateY(-50%)scale(1.5)}to{transform:translateY(-50%)scale(1)}}html.rail .kit-x{display:none}html.rail #palette-panel{width:104px}html.rail #canvas-band{left:128px}html.rail .mission-rules li.part{padding:3px 10px 3px 4px;font-size:12px}html.rail .mission-rules li.part .part-ico{border-radius:7px;width:26px;height:20px}html.rail .mission-rules li.part .part-ico .i{width:15px;height:15px}#canvas-tip[data-kind=good]{background:var(--green-solid,#3f9a5d)}#canvas-tip[data-kind=bad]{background:#d2493c}#canvas-tip[data-kind]{transition:background .15s}html.testing #canvas-wrap canvas{cursor:progress}.btn-go.busy{opacity:.85;animation:none}.btn-go.busy .i{animation:.7s linear infinite spin}@keyframes spin{to{transform:rotate(360deg)}}#canvas-wrap.shake{animation:.5s cubic-bezier(.36,.07,.19,.97) boardshake}@keyframes boardshake{10%,90%{transform:translate(-2px)}20%,80%{transform:translate(5px)}30%,50%,70%{transform:translate(-9px)}40%,60%{transform:translate(9px)}}@media (prefers-reduced-motion:reduce){#canvas-wrap.shake{animation:none}}.palette-item{touch-action:pan-x;-webkit-user-select:none;user-select:none}html.rail .palette-item{touch-action:pan-y}html.dragging-part,html.dragging-part *{cursor:grabbing!important}.world-pick{flex-wrap:wrap;justify-content:center;gap:6px;margin:2px 0 12px;display:flex}.world-pick:empty{display:none}.world-chip{font:inherit;cursor:pointer;border:2px solid var(--border);background:var(--surface);color:var(--text-mid);border-radius:999px;padding:7px 14px;font-size:13px;font-weight:800}.world-chip.on{border-color:var(--accent);color:var(--accent-text);background:var(--accent-soft)}.world-chip:active{transform:scale(.96)}.world-chip{align-items:center;gap:7px;display:inline-flex}.world-chip .i{width:18px;height:18px}.world-chip small{opacity:.65;font-size:11px;font-weight:800}@media (width<=380px){.world-chip{padding:6px 10px;font-size:12px}}@media (height<=420px){.world-pick{flex-wrap:nowrap;gap:4px;margin:0 0 6px}.world-chip{gap:4px;padding:4px 9px;font-size:11px}.world-chip .i{display:none}.world-chip small{font-size:10px}}html.rail #btn-home{order:-1}html.snippet-embed #btn-home{display:none}@media (width<=380px){html:not(.rail) #btn-info.mobile-only{display:none!important}#level-info{min-width:0}}.world-chip.locked{opacity:.55;border-style:dashed}.world-chip.shake{animation:.4s shake}.world-note{color:var(--text-mid);text-align:center;flex-basis:100%;min-height:0;margin:4px 0 0;font-size:12.5px;font-weight:700}.world-note:empty{display:none}.win-unlock{color:var(--green);justify-content:center;align-items:center;gap:6px;font-weight:700;display:flex}.win-unlock .i{width:16px;height:16px}.win .modal-world{margin-top:8px}.chapter p{color:var(--text-mid);margin:0 0 16px;font-size:15px;line-height:1.45}.goal .tick-col{text-align:center;width:28px;color:var(--text-dim);font-size:11px;font-weight:800}.games-grid{grid-template-columns:repeat(auto-fit,minmax(200px,1fr));gap:10px;display:grid}.game-card{text-align:left;cursor:pointer;font:inherit;border:2px solid var(--border);background:var(--surface);color:var(--text);border-radius:18px;flex-direction:column;align-items:flex-start;gap:6px;padding:14px;display:flex}.game-card:hover{border-color:var(--accent);background:var(--accent-soft)}.game-card.on{border-color:var(--accent)}.game-card img{border-radius:14px}.game-card .gc-name{font-size:17px;font-weight:800}.game-card .gc-blurb{color:var(--text-mid);font-size:13px;line-height:1.35}.game-card small{color:var(--text-dim);font-size:11.5px;font-weight:800}#hub-card{width:100%;max-width:640px}#hub-card h1{font-size:clamp(38px,8vw,58px)}.hub-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:12px;width:100%;margin-top:4px;display:grid}.hub-grid .game-card{text-align:center;border-color:color-mix(in srgb, var(--gc) 35%, var(--border));box-shadow:0 4px 0 color-mix(in srgb, var(--gc) 30%, var(--border));align-items:center;padding:16px 12px}.hub-grid .game-card:hover{border-color:var(--gc);background:color-mix(in srgb, var(--gc) 10%, var(--surface));transform:translateY(-2px)}.hub-grid .game-card img{width:64px;height:64px}.hub-grid .game-card small{color:var(--gc)}@media (height<=460px){#hub-card h1{display:none}#hub-card>p{margin:0 0 6px}.hub-grid{grid-template-columns:repeat(4,minmax(0,1fr));gap:8px}.hub-grid .game-card{gap:3px;padding:8px 6px}.hub-grid .game-card img{width:40px;height:40px}.hub-grid .gc-blurb{display:none}.hub-grid .gc-name{font-size:13px}}@media (width<=400px){.hub-grid .gc-blurb{display:none}}.palette-item-name{white-space:nowrap;text-align:center;min-width:0;max-width:100%;height:16px;line-height:16px;display:block;overflow:hidden}html.rail .palette-item-name{height:auto;line-height:1.2}#hub-card{max-width:720px}.hub-grid{gap:14px}.hub-grid .game-card{--gcs:color-mix(in srgb, var(--gc) 30%, var(--border));text-align:left;background:linear-gradient(160deg, color-mix(in srgb, var(--gc) 9%, var(--surface)) 0%, var(--surface) 55%);border-width:2px;border-color:var(--gcs);box-shadow:0 5px 0 var(--gcs);border-radius:22px;align-items:stretch;gap:10px;padding:16px 16px 14px;transition:transform .15s,box-shadow .15s,border-color .15s}.hub-grid .game-card:hover{border-color:var(--gc);box-shadow:0 9px 0 var(--gcs), 0 16px 28px color-mix(in srgb, var(--gc) 22%, transparent);background:linear-gradient(160deg, color-mix(in srgb, var(--gc) 14%, var(--surface)) 0%, var(--surface) 60%);transform:translateY(-4px)}.hub-grid .game-card:active{box-shadow:0 2px 0 var(--gcs);transform:translateY(2px)}.hub-grid .game-card:focus-visible{outline:3px solid var(--gc);outline-offset:3px}.hub-grid .gc-top{align-items:center;gap:12px;min-width:0;display:flex}.hub-grid .game-card img{border-radius:18px;flex:none;width:64px;height:64px;transition:transform .2s}.hub-grid .game-card:hover img{transform:rotate(-6deg)scale(1.08)}.hub-grid .gc-text{flex-direction:column;gap:3px;min-width:0;display:flex}.hub-grid .gc-name{font-size:19px;line-height:1.15}.hub-grid .gc-blurb{font-size:13px;line-height:1.35}.hub-grid .gc-topics{flex-wrap:wrap;gap:5px;display:flex}.hub-grid .gc-topics i{color:var(--gc);background:color-mix(in srgb, var(--gc) 12%, transparent);border-radius:999px;padding:3px 9px;font-size:11.5px;font-style:normal;font-weight:800}.hub-grid .gc-bar{background:color-mix(in srgb, var(--gc) 14%, var(--border));border-radius:999px;height:7px;display:block;overflow:hidden}.hub-grid .gc-bar i{background:var(--gc);border-radius:999px;height:100%;display:block}.hub-grid .gc-foot{justify-content:space-between;align-items:center;gap:8px;display:flex}.hub-grid .gc-foot small{color:var(--text-dim);font-size:12px;font-weight:800}.hub-grid .gc-cta{color:#fff;background:var(--gc);white-space:nowrap;box-shadow:0 3px 0 color-mix(in srgb, var(--gc) 70%, #000);border-radius:999px;padding:6px 12px;font-size:13px;font-weight:800}@media (width<=560px){.hub-grid{grid-template-columns:1fr;gap:10px}.hub-grid .game-card{gap:7px;padding:11px 13px 10px}.hub-grid .game-card img{border-radius:13px;width:46px;height:46px}.hub-grid .gc-name{font-size:16px}.hub-grid .gc-blurb,.hub-grid .gc-topics{display:none}}@media (height<=460px){#hub-card{max-width:100%}.hub-grid{grid-template-columns:repeat(4,minmax(0,1fr));gap:8px}.hub-grid .game-card{gap:5px;padding:8px}.hub-grid .gc-top{text-align:center;flex-direction:column;gap:4px}.hub-grid .game-card img{border-radius:10px;width:36px;height:36px}.hub-grid .gc-name{font-size:12.5px}.hub-grid .gc-blurb,.hub-grid .gc-topics,.hub-grid .gc-foot small{display:none}.hub-grid .gc-foot{justify-content:center}.hub-grid .gc-cta{padding:4px 8px;font-size:11px}}@media (width<=560px){.hub-grid .game-card{grid-template-columns:1fr auto;grid-template-areas:"top foot""bar foot";align-items:center;gap:7px 10px;padding:10px 12px;display:grid}.hub-grid .gc-top{grid-area:top}.hub-grid .gc-bar{grid-area:bar}.hub-grid .gc-foot{grid-area:foot}.hub-grid .gc-foot small{display:none}.hub-grid .gc-cta{padding:6px 10px;font-size:12px}#hub-card{gap:8px}}@media (height<=640px) and (height>=461px){#hub-card h1{font-size:clamp(30px,8vw,40px)}#hub-card>p{margin:0}}.win-fact{background:var(--accent-soft);max-width:30ch;color:var(--accent-text);text-align:left;border-radius:12px;margin:10px auto 14px;padding:10px 12px;font-size:.9rem;line-height:1.35}.win-fact b{letter-spacing:.06em;text-transform:uppercase;margin-bottom:2px;font-size:.72rem;display:block}.v.sc{justify-content:center;align-items:center;gap:4px;min-width:0;padding:2px 7px;display:inline-flex;position:relative}.v.sc.sc-in{border-radius:10px;width:32px;height:28px;padding:0}.v.sc.sc-in.v1{background:rgba(var(--accent-rgb), .14);color:var(--accent-text)}.v.sc.sc-in.v0{background:var(--surface-2);color:var(--text-dim);opacity:.75}.v.sc.sc-in.v0:after{content:"";background:currentColor;border-radius:2px;height:2px;position:absolute;top:50%;left:6px;right:6px;transform:rotate(-35deg)}.v.sc.sc-out{font-size:11px}.v.sc.sc-out.v1{background:var(--green-solid);color:#fff}.v.sc.sc-out.v0{opacity:.85}.win-icon{width:52px;height:52px;margin-bottom:4px}.win-icon .i{width:26px;height:26px}.win h2{letter-spacing:-.01em;margin:2px 0 0;font-size:22px}.win p{margin-bottom:14px}.win p:not(.win-fact):not(.win-unlock){color:var(--text-dim);margin-bottom:12px;font-size:14px;font-weight:600}.win .win-fact{text-align:left;border:0;border-left:3px solid var(--accent);background:rgba(var(--accent-rgb), .08);max-width:36ch;color:var(--text);border-radius:4px 12px 12px 4px;margin:0 auto 14px;padding:9px 12px 10px 14px;font-size:13.5px;line-height:1.4}.win .win-fact b{letter-spacing:.08em;text-transform:uppercase;color:var(--accent-text);margin-bottom:1px;font-size:10.5px;display:block}#info-panel .panel-title,#info-panel .panel-sub,#info-panel .goal,#info-panel #now-line,#info-panel #rules-section,#info-panel #test-results-wrap,#info-panel .section-gap{max-width:620px;margin-left:auto;margin-right:auto}.v.sc.sc-in{border-radius:8px;width:28px;height:24px}.v.sc .i{width:16px;height:16px}.v.sc.sc-in.v0:after{left:5px;right:5px}.goal td{padding-top:4px;padding-bottom:4px}@media (width<=430px){html:not(.rail) #level-name-display{display:none}html:not(.rail) #level-info{padding:0 7px}}#modal-box:has(.win){width:min(400px,100%)}#modal-box:has(.win) #modal-title:empty{display:none}#modal-box:has(.win) .win .win-fact{max-width:none}#modal-box:has(.win) #modal-header{z-index:2;min-height:0;padding:0;position:absolute;top:8px;right:8px}#modal-box:has(.win) .win{padding-top:6px}#modal-box:has(.win){position:relative}html.booting #title-screen .ts-card,html.booting #title-screen .ts-deco{visibility:hidden}#title-screen{align-items:flex-start;overflow:hidden auto}#title-screen .ts-card{width:100%;margin:auto;padding:4px 0 8px}html[data-game] #title-screen:not(.hubmode){background:radial-gradient(70% 50% at 50% 4%, rgba(var(--accent-rgb), .17), rgba(var(--accent-rgb), 0) 72%), radial-gradient(80% 60% at 50% 10%, #fffdf8 0%, #fffdf800 70%), var(--bg)}:is(html[data-snippet-theme=dark],html[data-theme=dark])[data-game] #title-screen{background:radial-gradient(70% 50% at 50% 4%, rgba(var(--accent-rgb), .22), rgba(var(--accent-rgb), 0) 72%), radial-gradient(80% 60% at 50% 10%, #2a2521 0%, #2a252100 70%), var(--bg)}.ts-stat{letter-spacing:.08em;text-transform:uppercase;color:var(--accent-text)!important;margin:-4px 0 4px!important;font-size:12px!important;font-weight:800!important}.topic-path{grid-template-columns:repeat(auto-fit,minmax(138px,1fr));gap:10px;width:min(880px,100%);margin:6px auto 8px;padding:0 2px;display:grid}.topic-path .topic-card{text-align:left;border:2px solid var(--edge);background:var(--surface);color:var(--text);box-shadow:0 3px 0 var(--edge);font:inherit;cursor:pointer;border-radius:18px;flex-direction:column;align-items:flex-start;gap:8px;padding:12px;transition:transform .15s,box-shadow .15s,border-color .15s;display:flex;position:relative}.topic-path .topic-card:hover:not(.locked){border-color:var(--accent);box-shadow:0 6px 0 var(--accent-line);transform:translateY(-3px)}.topic-path .topic-card.on{border-color:var(--accent);background:linear-gradient(180deg, var(--accent-soft), var(--surface) 70%)}.topic-path .topic-card.locked{box-shadow:none;opacity:.8;background:color-mix(in srgb, var(--surface) 72%, transparent);border-style:dashed}.topic-path .tc-ico{background:var(--accent-soft);width:34px;height:34px;color:var(--accent-text);border-radius:11px;place-items:center;display:grid}.topic-path .tc-ico .i{width:20px;height:20px}.topic-path .locked .tc-ico{background:var(--surface-2);color:var(--text-dim)}.topic-path .tc-body{flex-direction:column;gap:4px;width:100%;min-width:0;display:flex}.topic-path .tc-top{align-items:center;gap:6px;display:flex}.topic-path .tc-num{background:var(--accent);color:#fff;border-radius:50%;flex-shrink:0;place-items:center;width:18px;height:18px;font-size:11px;font-style:normal;font-weight:900;display:grid}.topic-path .locked .tc-num{background:var(--border);color:var(--text-mid)}.topic-path .wc-name{font-size:15px;font-weight:800;line-height:1.15}.topic-path .tc-blurb{color:var(--text-mid);opacity:1;min-height:2.6em;font-size:12px;font-weight:600;line-height:1.3;display:block}.topic-path .tc-bar{background:var(--surface-2);border-radius:99px;height:6px;margin-top:2px;overflow:hidden}.topic-path .tc-bar i{background:var(--accent);border-radius:99px;height:100%;display:block}.topic-path .full .tc-bar i{background:var(--green-solid,#3f9a5c)}.topic-path .tc-count{color:var(--text-dim);font-size:11px;font-weight:800;position:absolute;top:12px;right:12px}.topic-path .world-note{text-align:center;grid-column:1/-1;margin:0}@media (width<=560px){.topic-path{grid-template-columns:1fr;gap:7px}.topic-path .topic-card{border-radius:16px;flex-direction:row;align-items:center;gap:12px;padding:9px 12px}.topic-path .tc-blurb{min-height:0}.topic-path .tc-count{align-self:center;margin-left:auto;position:static}.topic-path .tc-body{flex:1}}html.rail .topic-path{grid-template-columns:none;grid-auto-columns:minmax(104px,1fr);grid-auto-flow:column;gap:6px;width:min(720px,100%);margin:2px auto;overflow-x:auto}html.rail .topic-path .topic-card{border-radius:12px;flex-direction:row;align-items:center;gap:3px;padding:6px 8px}html.rail .topic-path .tc-blurb,html.rail .topic-path .tc-bar,html.rail .topic-path .tc-count{display:none}html.rail .topic-path .tc-ico{border-radius:8px;width:24px;height:24px}html.rail .topic-path .tc-ico .i{width:14px;height:14px}html.rail .topic-path .wc-name{font-size:12px}html.rail .ts-stat{display:none}html.rail .topic-path .tc-ico .i,.topic-path .tc-ico .i{display:block!important}.topic-path .topic-card:disabled{cursor:default;pointer-events:none}.topic-path .locked .tc-blurb{opacity:.7}.board-tip{z-index:25;pointer-events:none;background:var(--text);max-width:240px;color:var(--surface);opacity:0;border-radius:12px;padding:7px 11px 8px;font-size:12.5px;line-height:1.35;transition:opacity .12s,transform .12s;position:absolute;transform:translateY(3px);box-shadow:0 6px 18px #00000038}.board-tip.on{opacity:1;transform:none}.board-tip b{font-weight:800}.board-tip span{opacity:.82;margin-top:1px;font-weight:600;display:block}@media (pointer:coarse){.board-tip{display:none}}.board-tip span.eg{opacity:.65;margin-top:3px;font-style:italic}.board-tip{max-width:270px}#goal-strip{display:none}html.snippet-embed #goal-strip{box-sizing:border-box;background:var(--surface);border:2px solid var(--edge);width:100%;box-shadow:0 3px 0 var(--edge);border-radius:14px;gap:1px;margin-top:6px;padding:6px 10px 6px 8px;display:grid}html.snippet-embed .gs-row{grid-template-columns:74px repeat(var(--cols), minmax(0, 1fr));align-items:center;gap:3px;height:17px;display:grid}html.snippet-embed .gs-row.out{border-top:2px dashed var(--border-2);height:24px;margin-top:3px;padding-top:4px}html.snippet-embed .gs-name{text-overflow:ellipsis;white-space:nowrap;color:var(--text-mid);font-size:10.5px;font-weight:800;overflow:hidden}html.snippet-embed .gs-row.out .gs-name{color:var(--accent-text,var(--text))}html.snippet-embed .gs-cell{width:100%;max-width:24px;height:11px;box-shadow:inset 0 0 0 2px var(--border-2);background:0 0;border-radius:99px;justify-self:center}html.snippet-embed .gs-cell.on{background:var(--green,#3f9a5c);box-shadow:none}html.snippet-embed .gs-row.out .gs-cell{height:16px}html.snippet-embed .gs-cell.gs-now{box-shadow:inset 0 0 0 2px var(--accent)}html.snippet-embed .gs-cell.on.gs-now{box-shadow:0 0 0 2px var(--accent)}html.snippet-embed .gs-row.out .gs-cell.pass{box-shadow:0 0 0 2px var(--green,#3f9a5c)}html.snippet-embed .gs-row.out .gs-cell.fail{box-shadow:0 0 0 2px var(--red,#c8483f);background-image:linear-gradient(135deg, transparent 44%, var(--red,#c8483f) 44% 56%, transparent 56%)}@media (width<=380px){html.snippet-embed .palette-item-name{white-space:normal;justify-content:center;align-items:center;height:auto;min-height:2.1em;font-size:10px;line-height:1.05;display:flex;overflow:visible}html.snippet-embed .palette-item{padding-left:1px;padding-right:1px}html.snippet-embed .palette-help{width:17px;height:17px}}@media (width>=720px){html.snippet-embed #goal-strip,html.snippet-embed #btn-info,html.snippet-embed #sheet-head{display:none!important}html.snippet-embed #palette-panel{flex:0 auto;padding:14px 10px 6px}html.snippet-embed #palette-list{flex-wrap:nowrap;gap:6px}html.snippet-embed .palette-item{flex:none;gap:4px;width:88px;padding:7px 4px 5px}html.snippet-embed .gate-swatch{max-width:56px;height:32px}html.snippet-embed .gate-swatch .i{width:24px;height:24px}html.snippet-embed .palette-item-name{font-size:12px}html.snippet-embed .palette-help{top:2px;right:2px}html.snippet-embed .kit-badge{min-width:22px;height:19px;font-size:11px;top:-3px;left:-3px}html.snippet-embed #info-panel{left:auto;right:14px;top:var(--card-top,var(--hud-h));width:300px;max-height:var(--panel-max,calc(100% - var(--hud-h) - 14px));border:2px solid var(--edge);box-shadow:0 4px 0 var(--edge);z-index:15;border-radius:22px;padding:16px 16px 18px;bottom:auto;transform:none}}html.snippet-embed .mission .modal-ok{z-index:3;box-shadow:0 4px 0 var(--accent-dark), 0 -10px 12px -4px var(--surface);position:sticky;bottom:0}html.snippet-embed .mission-box #modal-body{padding-bottom:14px}html.snippet-embed .mission-block .goal.tall td{padding:1px 3px}html.snippet-embed .mission-block .goal.tall .v{min-width:32px;font-size:11px;line-height:15px}html.snippet-embed .kit-badge{min-width:20px;height:18px;padding:0 5px;font-size:10.5px;top:-4px;left:-2px}html.snippet-embed .palette-help{top:1px;right:1px}html{touch-action:manipulation}@media (pointer:coarse){#btn-canvas-action{height:44px;padding:0 18px;font-size:15px}#btn-canvas-action .i{width:19px;height:19px}html.rail .palette-item{min-height:44px}}
