.ds-shell{--ds-ink:#eafff5;color:var(--ds-ink);display:grid;gap:14px;width:min(100%,1500px);margin:auto;font-family:inherit;scroll-margin-top:calc(var(--topbar-height,70px) + 6px)}
.ds-shell *{box-sizing:border-box}.ds-shell [hidden]{display:none!important}.ds-shell button{font:inherit;cursor:pointer;touch-action:manipulation}
.ds-shell button:disabled{opacity:.45;cursor:default}.ds-shell button:focus-visible,.ds-shell canvas:focus-visible{outline:3px solid #ffe996;outline-offset:2px}
.ds-header{display:flex;align-items:center;justify-content:space-between;gap:16px;padding:7px 2px}
.ds-header span,.ds-eyebrow,.ds-hud small,.ds-result>span{font-size:.69rem;letter-spacing:.18em;font-weight:900;color:#96f7db}
.ds-header h2{margin:3px 0 0;font-size:clamp(1.8rem,3.3vw,3rem);line-height:1.05}.ds-header p{margin:3px 0;color:#c4e2df}
.ds-header button,.ds-buttons button,.ds-result button{border:1px solid #6fdcc9;border-radius:11px;background:#1b5b63;color:#f1fff8;padding:10px 14px;font-weight:900}
.ds-header button:hover,.ds-buttons button:hover:not(:disabled),.ds-result button:hover{background:#28767a}
.ds-menu{display:grid;gap:17px}.ds-intro{display:grid;grid-template-columns:minmax(200px,.68fr) 1fr;overflow:hidden;border:1px solid #8bf3d558;border-radius:22px;background:linear-gradient(120deg,#184551,#202d4e);box-shadow:0 18px 42px #07152a66}
.ds-intro-art{position:relative;min-height:250px;background:radial-gradient(circle at 50% 52%,#7be8cc6b,transparent 27%),linear-gradient(150deg,#2f7b73,#19435d);display:grid;place-items:center;isolation:isolate}
.ds-intro-art:before{content:'';position:absolute;inset:0;background:repeating-linear-gradient(0deg,transparent 0 29px,#dbfff212 30px 31px),repeating-linear-gradient(90deg,transparent 0 29px,#dbfff212 30px 31px);opacity:.6;z-index:-1}
.ds-art-hero{font-size:7.2rem;color:#ffddbc;text-shadow:0 0 10px #fff,0 16px 20px #143455}.ds-art-line{position:absolute;width:154px;height:154px;border:13px solid #b9fff2;border-radius:45% 54% 42% 53%;transform:rotate(-15deg);box-shadow:0 0 23px #9efcec}
.ds-art-bee{position:absolute;top:19%;left:14%;font-size:3.4rem;color:#ffde82;text-shadow:0 0 16px #ffdf9a}.ds-art-rock{position:absolute;right:17%;top:18%;font-size:2.6rem;color:#d9c6c1}
.ds-intro>div:last-child{align-self:center;padding:clamp(18px,3vw,40px)}.ds-intro h3{font-size:clamp(1.55rem,3vw,2.5rem);margin:8px 0 10px}.ds-intro p{line-height:1.5;color:#d1e8e7;margin:0 0 11px}.ds-intro small{color:#f8e6a7}
.ds-world{border:1px solid color-mix(in srgb,var(--ds-world),#22304b 72%);border-radius:19px;background:linear-gradient(145deg,#153848,#182c46);padding:17px}
.ds-world h3{color:var(--ds-world);margin:0 0 11px;font-size:1.2rem}.ds-world h3 span{font-size:.76rem;letter-spacing:.16em;margin-right:8px}
.ds-levels{display:grid;grid-template-columns:repeat(6,minmax(0,1fr));gap:9px}.ds-levels button{display:flex;flex-direction:column;align-items:flex-start;gap:4px;text-align:left;min-width:0;min-height:108px;padding:10px;border:1px solid color-mix(in srgb,var(--ds-world),#315063 67%);border-radius:12px;background:#22475a;color:#f3fff8;transition:transform .16s,background .16s}
.ds-levels button:hover{transform:translateY(-2px);background:#2d5967}.ds-levels b{font-size:1.15rem;color:var(--ds-world)}.ds-levels strong{font-size:.82rem;line-height:1.1}.ds-levels small{color:#c3dbde;font-size:.67rem}.ds-levels em{margin-top:auto;font-size:.86rem;font-style:normal;color:#ffe493;letter-spacing:.1em}
.ds-game{display:grid;gap:8px;min-height:0}.ds-hud{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:7px}.ds-hud>div{display:flex;justify-content:space-between;align-items:center;gap:5px;border:1px solid #81e6c56b;border-radius:11px;background:#193c4a;padding:9px 12px;min-width:0}.ds-hud strong{white-space:nowrap;font-size:1rem}.ds-hud>div:nth-child(2) strong{color:#ffadad}.ds-hud>div:nth-child(3) strong{color:#ffe29b}
.ds-tools{display:grid;grid-template-columns:minmax(145px,190px) minmax(145px,190px) 1fr;gap:7px;align-items:stretch}.ds-tools button{display:flex;align-items:center;gap:7px;min-width:0;border:1px solid #99d8d688;border-radius:11px;background:#1e4655;color:#e9f8f5;padding:7px 10px;text-align:left;font-size:.86rem;font-weight:900;line-height:1}.ds-tools button span{font-size:1.22rem}.ds-tools button small{display:block;margin-left:auto;max-width:85px;color:#c7dadd;font-size:.58rem;font-weight:700;line-height:1.12}.ds-tools button[aria-pressed="true"]{box-shadow:0 0 0 2px currentColor inset,0 4px 15px #071e3066}.ds-tools #dsPulse{color:#a6fff2}.ds-tools #dsStone{color:#ffd7a4}.ds-tools #dsPulse[aria-pressed="true"]{background:#236a69}.ds-tools #dsStone[aria-pressed="true"]{background:#755346}.ds-tools p{margin:0;align-self:center;padding:0 5px;color:#e7e7d3;font-size:.75rem;line-height:1.25}
.ds-stage{position:relative;isolation:isolate;overflow:hidden;border:2px solid #77d8c7;border-radius:19px;background:#224e66;box-shadow:0 16px 38px #061c2c80;height:clamp(450px,68dvh,800px);min-width:0}
.ds-stage canvas{display:block;width:100%;height:100%;touch-action:none;cursor:crosshair;outline:none}
.ds-start-touch{display:none;position:absolute;z-index:4;top:12px;left:12px;min-width:112px;min-height:44px;border:1px solid #ddffc2;border-radius:12px;background:#b9f598;color:#183d3a;font-size:.85rem!important;font-weight:900!important;box-shadow:0 5px 16px #0a2e3f7d}
.ds-status{position:absolute;bottom:12px;left:50%;transform:translateX(-50%);z-index:3;max-width:calc(100% - 28px);padding:8px 13px;border:1px solid #baffef7d;border-radius:11px;background:#113e54e8;color:#effff8;text-align:center;font-size:.84rem;font-weight:800;pointer-events:none;box-shadow:0 5px 18px #071a2b5c}
.ds-stage-actions{position:absolute;right:12px;top:12px;display:flex;gap:5px;z-index:4}.ds-stage-actions button{width:38px;height:38px;border:1px solid #a7ffefae;border-radius:10px;background:#18475bdf;color:#fff;font-size:1.3rem;font-weight:900;touch-action:manipulation}
.ds-stage-actions button:hover:not(:disabled){background:#286b73}
.ds-overlay{position:absolute;inset:0;z-index:6;background:#091f38bf;display:grid;place-items:center;padding:14px}
.ds-result{width:min(100%,530px);padding:clamp(21px,4vw,35px);border:1px solid #9ef5d8;border-radius:21px;background:linear-gradient(140deg,#175363f5,#243153f6);text-align:center;box-shadow:0 20px 60px #061b31a8}
.ds-result h3{font-size:clamp(1.7rem,4vw,2.8rem);line-height:1.1;margin:8px 0}.ds-result p{color:#d4eae8;line-height:1.5;margin:0 0 17px}.ds-result>div{display:flex;justify-content:center;flex-wrap:wrap;gap:7px}.ds-result button{font-size:.84rem}
.ds-controls{display:flex;align-items:center;justify-content:space-between;gap:12px;min-height:47px}.ds-level-title{color:#d9f5e7;font-size:.72rem;letter-spacing:.08em;font-weight:800}.ds-buttons{display:flex;gap:6px;justify-content:flex-end}.ds-buttons button{white-space:nowrap;font-size:.78rem;padding:9px 12px}.ds-buttons #dsStart{background:#b9f598;color:#153d3c;border-color:#b9f598}.ds-buttons #dsStart:hover{background:#e5ffb7}.ds-help{margin:0 2px;color:#a9cecb;font-size:.75rem}.ds-help--touch{display:none}
.ds-shell:fullscreen{width:100%;height:100%;max-width:none;background:#0d293c;padding:9px;overflow:hidden;display:flex;flex-direction:column;gap:6px}.ds-shell:fullscreen .ds-header{padding:0}.ds-shell:fullscreen .ds-header h2{font-size:1.45rem}.ds-shell:fullscreen .ds-header p{display:none}.ds-shell:fullscreen .ds-game{flex:1;min-height:0;display:flex;flex-direction:column}.ds-shell:fullscreen .ds-stage{flex:1;height:auto;min-height:0}.ds-shell:fullscreen .ds-help{display:none}
@media(max-width:900px){.ds-levels{grid-template-columns:repeat(3,minmax(0,1fr))}.ds-hud>div{display:flex;flex-direction:column;align-items:flex-start}.ds-tools{grid-template-columns:1fr 1fr}.ds-tools p{grid-column:1/3}}
@media(max-width:600px){.ds-shell{gap:8px}.ds-header{padding:4px}.ds-header span,.ds-header p{display:none}.ds-header h2{font-size:1.6rem}.ds-header button{font-size:.76rem;padding:8px 10px;white-space:nowrap;flex:none}
 .ds-intro{grid-template-columns:1fr}.ds-intro-art{min-height:150px}.ds-art-hero{font-size:4.5rem}.ds-art-line{width:105px;height:105px;border-width:9px}.ds-intro>div:last-child{padding:16px}.ds-intro h3{font-size:1.55rem}.ds-intro p{font-size:.82rem}
 .ds-levels{grid-template-columns:repeat(2,minmax(0,1fr))}.ds-levels button{min-height:100px}.ds-hud{gap:4px}.ds-hud>div{padding:5px 6px}.ds-hud small{font-size:.49rem;letter-spacing:.05em}.ds-hud strong{font-size:.74rem}
 .ds-tools{gap:4px}.ds-tools button{font-size:.75rem;padding:6px 7px;gap:4px}.ds-tools button span{font-size:1rem}.ds-tools button small{font-size:.52rem;max-width:68px}.ds-tools p{display:none}.ds-stage{height:clamp(425px,62dvh,700px)}.ds-status{max-width:calc(100% - 20px);left:10px;transform:none;bottom:9px;top:auto;font-size:.68rem;padding:6px 8px}.ds-stage-actions{right:8px;top:8px}.ds-stage-actions button{width:38px;height:38px;font-size:1.04rem}
 .ds-controls{display:grid;gap:6px}.ds-level-title{font-size:.64rem}.ds-buttons{display:grid;grid-template-columns:1fr 1fr;gap:5px}.ds-buttons button{font-size:.68rem;padding:8px 5px}.ds-buttons #dsStart{grid-column:1/3;grid-row:1}.ds-help{font-size:.66rem;line-height:1.35}}
@media(max-height:500px) and (orientation:landscape){.ds-shell:not(:fullscreen) .ds-header{display:none}.ds-hud>div{flex-direction:row;padding:4px 8px}.ds-stage{height:calc(100dvh - 98px);min-height:235px}.ds-help{display:none}.ds-shell:fullscreen .ds-header{display:none}.ds-shell:fullscreen .ds-game{gap:3px}.ds-shell:fullscreen .ds-hud>div{padding:3px 7px;flex-direction:row}.ds-shell:fullscreen .ds-hud small{font-size:.54rem}.ds-shell:fullscreen .ds-hud strong{font-size:.75rem}.ds-shell:fullscreen .ds-tools{grid-template-columns:minmax(0,150px) minmax(0,150px);gap:4px}.ds-shell:fullscreen .ds-tools button{padding:3px 6px}.ds-shell:fullscreen .ds-tools p{display:none}.ds-shell:fullscreen .ds-controls{display:flex;min-height:27px}.ds-shell:fullscreen .ds-level-title{display:none}.ds-shell:fullscreen .ds-buttons{display:flex}.ds-shell:fullscreen .ds-buttons button{padding:5px 9px}.ds-shell:fullscreen .ds-buttons #dsStart{grid-column:auto;grid-row:auto}}
.ds-shell.ds-touch .ds-help--keyboard{display:none}.ds-shell.ds-touch .ds-help--touch,.ds-shell.ds-touch .ds-start-touch{display:block}
.ds-shell.ds-touch .ds-stage-actions button{min-width:44px;min-height:44px}.ds-shell.ds-touch .ds-tools button,.ds-shell.ds-touch .ds-buttons button,.ds-shell.ds-touch:fullscreen .ds-buttons button{min-height:44px}
.ds-repulse{position:absolute;bottom:12px;right:12px;z-index:4;min-height:44px;padding:8px 12px;border:1px solid #b7ffe5;border-radius:10px;background:#185c59ec;color:#dbfff2;font-weight:800;font-size:12px;touch-action:manipulation}
.ds-repulse:disabled{opacity:.55}.ds-repulse[hidden]{display:none}
.ds-shell.ds-touch:fullscreen .ds-help--touch{display:none}
@media(max-height:500px) and (orientation:landscape){.ds-shell.ds-touch .ds-help--touch{display:none}}
@media(max-width:600px){.ds-shell:has(.ds-game:not([hidden])) .ds-header{display:none}}
