:root{font-family:'DM Sans',sans-serif;color:#173e46;background:#c7e5e7;font-synthesis:none}*{box-sizing:border-box}body{margin:0}button,a,#pad{-webkit-tap-highlight-color:transparent}button{font:inherit;cursor:pointer;border:1px solid #173e4629;background:#f7fbf4e8;color:#173e46;border-radius:12px;padding:12px 18px;font-weight:600}button:hover{background:#fff}button:disabled{opacity:.45;cursor:default}button:focus-visible,a:focus-visible,#pad:focus-visible{outline:3px solid #e86c38;outline-offset:4px}.primary{background:#173e46;color:#fff;border-color:transparent}.primary:hover{background:#245964}.primary span{margin-left:20px}#app{position:relative;width:100%;height:100svh;min-height:600px;overflow:hidden}#scene{position:absolute;inset:0;touch-action:none}canvas{display:block;width:100%;height:100%}header{position:absolute;left:38px;right:38px;top:27px;display:flex;justify-content:space-between;align-items:center;pointer-events:none}.brand{font-family:Outfit,sans-serif;font-size:21px;font-weight:600;color:inherit;text-decoration:none;pointer-events:auto}.brand span{font-weight:400;opacity:.65}.badge{font-size:10px;letter-spacing:2px;border:1px solid #173e4630;border-radius:30px;padding:9px 12px}.title{position:absolute;left:38px;top:98px;pointer-events:none}.eyebrow{font-size:9px;letter-spacing:1.9px;font-weight:700}.title h1{font:500 clamp(30px,3.5vw,54px)/1.05 Outfit,sans-serif;letter-spacing:-2px;margin:12px 0}.title p{font-size:14px;opacity:.7;margin:0}.telemetry{position:absolute;right:38px;top:107px;width:145px;pointer-events:none}.telemetry>div{margin-bottom:22px}.telemetry span{font-size:9px;letter-spacing:1.7px;display:block;margin-bottom:7px;opacity:.7}.telemetry strong{font-size:16px;font-weight:500}.meter{width:105px;height:4px;background:#173e4620;border-radius:10px;overflow:hidden}.meter i{display:block;width:0;height:100%;background:#247b7c;transition:width .12s}.toolbar{position:absolute;bottom:215px;left:50%;transform:translateX(-50%);display:flex;gap:8px;white-space:nowrap}.controls{position:absolute;bottom:41px;left:50%;transform:translateX(-50%);display:flex;align-items:center;gap:28px;background:#f8fcf2e8;border:1px solid #fff9;border-radius:22px;padding:16px 24px;box-shadow:0 12px 45px #24372c12}.control-copy{width:140px}.control-copy strong{display:block;font:500 22px Outfit,sans-serif;margin:7px 0}.controls p{font-size:11px;line-height:1.65;margin:0}.control-note{width:220px}.control-note p{margin:10px 0}.muted{opacity:.6;font-size:10px}#pad{position:relative;width:160px;height:124px;flex-shrink:0;border:1px solid #173e4630;border-radius:16px;background:#dce9df;touch-action:none;cursor:grab;user-select:none}#pad:active{cursor:grabbing}#pad span{position:absolute;font-size:8px;font-weight:700;letter-spacing:1px;opacity:.5}.north{top:8px;left:50%;transform:translateX(-50%)}.south{bottom:8px;left:50%;transform:translateX(-50%)}.west{left:10px;top:47%}.east{right:10px;top:47%}.crosshair{position:absolute;inset:24px;background:linear-gradient(#173e461c,#173e461c) center/1px 100% no-repeat,linear-gradient(#173e461c,#173e461c) center/100% 1px no-repeat}#stick{position:absolute;left:50%;top:50%;width:22px;height:22px;border-radius:50%;background:#e7804f;border:4px solid #fff;box-shadow:0 2px 6px #0002;transform:translate(-50%,-50%);pointer-events:none}footer{position:absolute;bottom:14px;left:38px;right:38px;display:flex;justify-content:space-between;font-size:8px;letter-spacing:1.5px;pointer-events:none}dialog{width:min(490px,92vw);max-height:85svh;overflow:auto;border:0;border-radius:24px;background:#f7faf0;color:#173e46;padding:34px;box-shadow:0 25px 100px #10282640}dialog::backdrop{background:#173e4666;backdrop-filter:blur(6px)}dialog h2{font:500 32px/1.1 Outfit,sans-serif}dialog p,dialog li{font-size:13px;line-height:1.65}dialog li{margin:10px 0}dialog ul{padding-left:18px}.close{position:absolute;right:12px;top:10px;padding:4px 12px;font-size:23px;border:0;background:none}#error{position:absolute;inset:25%;padding:30px;background:#fff;border-radius:20px;text-align:center}#error a{color:inherit}
@media(max-width:700px){#app{min-height:520px}header{left:18px;right:18px;top:18px}.brand{font-size:17px}.badge{font-size:8px;padding:7px;letter-spacing:1px}.title{top:70px;left:18px}.title .eyebrow{font-size:7px;letter-spacing:1px}.title h1{font-size:31px;letter-spacing:-1px}.title p{font-size:11px}.telemetry{right:18px;top:78px;width:85px}.telemetry>div{margin-bottom:13px}.telemetry strong{font-size:12px}.telemetry span{font-size:7px;letter-spacing:1px}.meter{width:75px}.controls{bottom:33px;padding:10px 14px;gap:18px;width:calc(100% - 36px);max-width:400px;justify-content:space-between;border-radius:18px}.control-copy{width:auto}.control-copy strong{font-size:19px}.control-copy .eyebrow{font-size:8px}.control-note{display:none}#pad{width:148px;height:112px}.toolbar{bottom:176px;gap:5px}button{padding:11px 12px;font-size:11px;border-radius:10px}.primary span{margin-left:7px}footer{left:18px;right:18px;font-size:7px;bottom:12px}footer span:last-child{display:none}dialog{padding:28px}#error{inset:15% 5%}}
@media(max-height:600px) and (orientation:landscape){#app{min-height:320px}.title{top:70px}.title h1{font-size:30px}.controls{left:auto;right:20px;transform:none;bottom:35px;padding:10px;width:auto}.control-copy,.control-note{display:none}.toolbar{bottom:45px;left:calc((100% - 210px)/2);gap:5px}.toolbar button{font-size:11px;padding:10px 12px}.telemetry{top:75px}footer span:last-child{display:none}}
/* Control selector stays inside the existing control footprint. */
[hidden]{display:none!important}.controls{padding-top:43px}.mode-picker{position:absolute;top:9px;left:50%;transform:translateX(-50%);display:flex;gap:4px;white-space:nowrap}.mode-picker button{font-size:10px;padding:5px 10px;border-radius:8px}.mode-picker button[aria-pressed=true]{background:#173e46;color:white}#hands{display:flex;width:160px;height:124px;gap:12px}.hand-track{position:relative;flex:1;border:1px solid #173e4640;border-radius:16px;background:#dce9df;touch-action:none;user-select:none;cursor:ns-resize}.hand-track span{position:absolute;top:5px;left:0;right:0;text-align:center;font-size:9px;font-weight:bold}.hand-track small,.hand-track em{position:absolute;left:0;right:0;text-align:center;font-size:7px;font-style:normal;opacity:.65}.hand-track small{top:21px}.hand-track em{bottom:7px}.hand-track i{position:absolute;left:50%;top:55%;width:24px;height:24px;background:#e7804f;border:4px solid white;border-radius:50%;transform:translate(-50%,-50%);pointer-events:none}.toolbar{bottom:243px}@media(max-width:700px){.controls{padding-top:40px}#hands{width:148px;height:112px}.toolbar{bottom:206px}}@media(max-height:600px) and (orientation:landscape){.controls{padding-top:40px}.toolbar{bottom:45px}}

/* Only touch-first devices expose independent hands; left track is viewport-aligned. */
.controls.two-hands #left-hand{position:absolute;left:var(--left-track-x,0px);bottom:16px;width:74px;height:124px;flex:none}.controls.two-hands .control-copy{visibility:hidden}.controls.two-hands #hands{justify-content:flex-end}.controls.two-hands #right-hand{flex:none;width:74px}.controls.two-hands .control-note{visibility:hidden}
@media(max-width:700px){.controls.two-hands #left-hand{bottom:10px;width:68px;height:112px}.controls.two-hands #right-hand{width:68px}}
@media(max-height:600px) and (orientation:landscape){.controls.two-hands #left-hand{bottom:10px}.telemetry{display:flex;gap:14px;width:auto;right:20px}.telemetry>div{max-width:110px}}

/* Mobile actions share the hand-control frame, with equal inside margins. */
.mobile-controls .controls{left:18px;right:18px;transform:none;width:auto;max-width:none;padding:40px 14px 10px;bottom:33px;min-height:166px;justify-content:flex-end}
.mobile-controls .controls.two-hands #left-hand{left:14px;bottom:10px;width:68px;height:112px}
.mobile-controls .controls.two-hands #right-hand{width:68px;height:112px}
.mobile-controls #hands{width:148px;height:112px}
.mobile-controls .control-copy,.mobile-controls .control-note{display:none}
.mobile-controls .controls .toolbar{left:14px;right:176px;bottom:17px;transform:none;display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:5px;white-space:normal}
.mobile-controls .controls.two-hands .toolbar{left:94px;right:94px}
.mobile-controls .toolbar button{font-size:10px;padding:8px 3px;min-width:0;min-height:32px}
.mobile-controls .toolbar #fullscreen{grid-column:1/-1;min-height:23px;padding:1px}

@media(max-height:600px) and (orientation:landscape){.mobile-controls .controls{min-height:156px;bottom:26px}.mobile-controls .controls .toolbar{left:100px;right:210px;bottom:20px}.mobile-controls .controls.two-hands .toolbar{left:110px;right:110px;grid-template-columns:repeat(4,minmax(0,1fr));bottom:39px}.mobile-controls .toolbar #fullscreen{grid-column:auto}.mobile-controls .mode-picker{top:8px}}

/* Compact two-hand mode only: selector joins the actions between the tracks. */
.mobile-controls .controls.two-hands{padding-top:10px;min-height:134px}
.mobile-controls .controls.two-hands .mode-picker{top:auto;bottom:99px;left:94px;right:94px;transform:none;justify-content:center;gap:3px}
.mobile-controls .controls.two-hands .mode-picker button{font-size:9px;padding:5px 7px}
.mobile-controls .controls.two-hands .toolbar{bottom:12px;gap:4px}
.mobile-controls .controls.two-hands .toolbar button{min-height:28px;padding:6px 3px}
.mobile-controls .controls.two-hands .toolbar #fullscreen{min-height:18px;padding:0}
@media(max-height:600px) and (orientation:landscape){.mobile-controls .controls.two-hands{min-height:134px;padding-top:10px}.mobile-controls .controls.two-hands .mode-picker{left:110px;right:110px;bottom:82px}.mobile-controls .controls.two-hands .toolbar{bottom:27px}}

#trick-feedback{position:absolute;top:29%;left:50%;transform:translateX(-50%);padding:10px 20px;border-radius:30px;background:#f8fcf2eb;color:#173e46;font-weight:700;pointer-events:none;white-space:nowrap;z-index:3;box-shadow:0 4px 20px #173e4620}
/* Launch and collection screens stay separate from the flying controls. */
#kite-menu{pointer-events:auto;cursor:pointer}
#welcome{position:fixed;inset:0;width:100%;max-width:none;height:100svh;max-height:none;margin:0;padding:0;border:0;border-radius:0;background:#061325;color:#fff;overflow:hidden;box-shadow:none}
#welcome::backdrop{background:#061325}
#welcome [hidden]{display:none!important}
#splash-screen{position:relative;width:100%;height:100%;background:linear-gradient(0deg,#061325 0%,transparent 65%),url('./assets/splash-v21.png') center 35%/cover no-repeat}
.splash-copy{position:absolute;left:8%;bottom:8%;text-shadow:0 2px 30px #0006}
.splash-eyebrow{font-size:10px;letter-spacing:4px;color:#a9d8df}
#welcome h1{font:600 clamp(64px,9vw,130px)/1 Outfit,sans-serif;letter-spacing:-5px;margin:12px 0}
#welcome h1 span{color:#60dddc}#welcome .splash-copy p{font-size:19px;color:#c6d8e2;margin:8px 0 25px}
.splash-actions{display:flex;gap:12px}#welcome button{background:#ffffff10;color:#eefbff;border:1px solid #ffffff40;min-height:44px;border-radius:12px;padding:12px 24px}
#welcome .start-fly{background:#69e5d6;color:#092337;border:0;font-weight:700;min-width:145px}
#welcome button:hover{filter:brightness(1.15)}#welcome button:focus-visible{outline:3px solid #ffb184;outline-offset:3px}
#current-design{display:block;margin-top:16px;font-size:12px;color:#a7c0d0}
#selection-screen{height:100%;max-width:1000px;margin:auto;padding:26px 32px;display:flex;flex-direction:column;align-items:center;gap:16px}
.selection-heading{text-align:center;position:relative;width:100%}.selection-heading #selection-back{position:absolute;left:0;top:0;padding:8px 12px}
#welcome h2{font:500 clamp(24px,4vw,38px)/1.1 Outfit,sans-serif;margin:8px 0}.selection-heading p{margin:8px;color:#a7c0d0}
#kite-options{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:14px;min-height:0;flex:1;width:100%;max-height:600px}
#welcome #kite-options button{padding:8px;min-width:0;min-height:0;display:flex;flex-direction:column;align-items:center;justify-content:center;background:linear-gradient(145deg,#15344b,#0c1d31);border:2px solid #284257;transition:border-color .15s}
#kite-options canvas{display:block;width:100%;height:calc(100% - 28px);min-height:0;object-fit:contain}#kite-options span{font-size:14px;padding:5px 0}
#welcome #kite-options button[aria-pressed=true]{border-color:#69e5d6;background:linear-gradient(145deg,#245663,#102f40)}
@media(max-width:700px){#splash-screen{background-image:linear-gradient(0deg,#061325 52%,transparent 82%),url('./assets/splash-v21.png');background-size:100% 100%,150% auto;background-position:center,40% 4%;background-color:#061325}.splash-copy{left:7%;bottom:7%}#welcome h1{font-size:76px;letter-spacing:-4px}.splash-copy p{font-size:16px}#selection-screen{padding:16px;gap:12px}#kite-options{grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}.selection-heading #selection-back{position:static;padding:5px 14px;min-height:36px}.selection-heading p{font-size:12px;margin:5px}#welcome h2{margin:8px 0 4px}}
@media(max-height:500px) and (min-width:600px){.splash-copy{bottom:7%;left:6%}#welcome h1{font-size:64px;margin:6px 0}#welcome .splash-copy p{margin:4px 0 12px}#current-design{margin-top:8px}#selection-screen{padding:10px 24px;gap:8px}#kite-options{gap:8px}.selection-heading p{display:none}#welcome h2{font-size:26px;margin:6px}#kite-options span{font-size:12px}.selection-heading #selection-back{min-height:32px;padding:4px 12px}#welcome #selection-fly{min-height:36px;padding:8px 20px}}

#welcome #sound-toggle{margin-top:12px;padding:6px 14px;min-height:36px;font-size:12px}
@media(max-height:500px){#welcome #sound-toggle{margin-top:6px}}

#welcome #season-open{margin:12px 0 0 8px;padding:6px 14px;min-height:36px;font-size:12px}
#season-dialog{width:min(760px,94vw);max-height:94svh;padding:24px;background:#0a1d31;color:#eafaff;text-align:center;overflow:auto}
#season-dialog h2{margin:0 0 6px;font-size:30px}#season-dialog p{margin:6px 0 16px;color:#b9cedb;font-size:13px}
#season-options{display:grid;grid-template-columns:1fr 1fr;gap:12px}
#season-options button{padding:0;overflow:hidden;background:#17354b;color:white;border:2px solid #325064;min-width:0}
#season-options img{display:block;width:100%;height:clamp(65px,17svh,150px);object-fit:cover;object-position:center 55%}
#season-options span{display:block;padding:8px}#season-options button[aria-pressed=true]{border-color:#69e5d6;background:#20505a}
#season-dialog #season-status{margin:12px 0;min-height:18px}#season-done{background:#69e5d6;color:#092337;min-width:120px}
@media(max-height:500px){#season-dialog{padding:12px 20px}#season-dialog h2{font-size:24px}#season-dialog p{margin:4px 0 8px}#season-options{gap:8px}#season-options img{height:55px}#season-options span{padding:4px}#season-dialog #season-status{margin:6px 0}#season-done{padding:8px 16px}}

.game-menu{display:flex;flex-direction:column;align-items:stretch;gap:6px;pointer-events:auto}header:has(.game-menu){align-items:flex-start}
#welcome #splash-share{margin:12px 0 0 8px;padding:6px 14px;min-height:36px;font-size:12px}
#share-url{display:block;box-sizing:border-box;width:100%;margin:16px 0;padding:12px;border:1px solid #173e4640;border-radius:8px;font:inherit}
@media(max-width:400px){#welcome #sound-toggle,#welcome #season-open,#welcome #splash-share{padding:6px 10px;font-size:11px}}

/* Desktop actions flank the existing handle panel. Mobile rules stay intact. */
@media(min-width:980px){
#app:not(.mobile-controls) .controls .toolbar{position:absolute;inset:0;transform:none;display:block;pointer-events:none}
#app:not(.mobile-controls) .toolbar button{position:absolute;pointer-events:auto;width:132px}
#app:not(.mobile-controls) #launch{right:calc(100% + 14px);top:0}
#app:not(.mobile-controls) #pause{right:calc(100% + 14px);top:52px}
#app:not(.mobile-controls) #reset{right:calc(100% + 14px);top:104px}
#app:not(.mobile-controls) #help{left:calc(100% + 14px);top:24px}
#app:not(.mobile-controls) #fullscreen{left:calc(100% + 14px);top:76px}
}
@media(max-width:979px){#app:not(.mobile-controls) .controls .toolbar{bottom:calc(100% + 12px);left:50%;transform:translateX(-50%);gap:5px}#app:not(.mobile-controls) .toolbar button{padding:10px 8px;font-size:11px}}

/* Sponsorship invitation on the splash screen. */
#welcome #sponsorship-open{position:absolute;right:max(5%,env(safe-area-inset-right));top:50%;transform:translateY(-50%);background:#0a2038e8;border-color:#69e5d680;box-shadow:0 8px 30px #0004}
#sponsorship-dialog{width:min(530px,92vw);background:#0a1d31;color:#eafaff;padding:36px;max-height:90svh}
#sponsorship-dialog::backdrop{background:#030d1bcc}
#sponsorship-dialog .close{color:#eafaff;min-width:44px;min-height:44px}
#sponsorship-dialog .close:hover{background:#ffffff15}
#sponsorship-dialog .eyebrow{color:#69e5d6;display:block;margin:8px 24px 18px 0}
#sponsorship-dialog h2{font-size:30px;margin:0 0 24px;line-height:1.15}
.sponsorship-offer{border-top:1px solid #ffffff20;padding-top:18px;margin-top:18px}
.sponsorship-offer h3{font-size:17px;margin:0 0 8px;color:#69e5d6}
.sponsorship-offer p{margin:0;color:#c6d8e2;font-size:15px}
#sponsorship-dialog .sponsorship-contact{margin:24px 0 0;font-size:15px;line-height:1.9}
.sponsorship-contact a{color:#69e5d6;text-underline-offset:4px;overflow-wrap:anywhere}
@media(max-width:700px){#welcome #sponsorship-open{top:30%;right:7%;padding:10px 16px;font-size:13px}#sponsorship-dialog{padding:28px 24px}#sponsorship-dialog h2{font-size:26px}}
.selection-actions{display:flex;gap:10px;flex-wrap:wrap;justify-content:center;flex-shrink:0}#selection-screen{overflow:auto}
#tail-dialog{background:#0a1d31;color:#eafaff;width:min(550px,94vw);text-align:center;padding:26px;max-height:94svh}#tail-dialog h2{margin:0 0 10px}#tail-dialog p{color:#bdd2e2}#tail-options{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px;margin:20px 0}#tail-options button{background:#152d43;color:#eafaff;border:2px solid #314b60;padding:12px;font-size:13px}#tail-options button[aria-pressed=true]{border-color:#69e5d6;background:#214653}.tail-swatch{display:block;height:30px;border-radius:50% 8px 50% 8px;margin-bottom:10px;line-height:30px}#tail-done{background:#69e5d6;color:#092337;min-width:120px}@media(max-height:500px){#tail-dialog{padding:16px}#tail-options{grid-template-columns:repeat(3,minmax(0,1fr));gap:8px;margin:12px 0}#tail-dialog p{margin:6px 0}.tail-swatch{height:20px;margin-bottom:6px}#welcome .selection-actions button{padding:8px 12px;min-height:36px}}
#tail-lengths{border:0;padding:0;margin:0 0 20px;display:flex;justify-content:center;gap:10px}#tail-lengths legend{width:100%;margin-bottom:10px;font-size:14px;color:#bdd2e2}#tail-lengths button{background:#152d43;color:#eafaff;border:2px solid #314b60;font-size:13px}#tail-lengths button[aria-pressed=true]{border-color:#69e5d6;background:#214653}@media(max-height:500px){#tail-lengths{margin-bottom:12px}#tail-lengths legend{margin-bottom:6px}#tail-lengths button{padding:8px 12px}}

#sponsorship-dialog{width:min(620px,92vw)}#sponsorship-dialog .offer-note{font-size:12px;color:#b4c9d9;margin-top:10px}.pilot-details{margin-top:24px;border-top:1px solid #ffffff20;padding-top:18px}.pilot-details summary{cursor:pointer;color:#69e5d6;font-weight:600;padding:6px 0}.pilot-details summary:focus-visible{outline:3px solid #ffb184;outline-offset:4px}.pilot-terms{padding-left:20px}.pilot-terms li{color:#c6d8e2;font-size:13px;margin:12px 0;line-height:1.65}.sponsor-sheet-link a{color:#bceae5;text-underline-offset:4px}.sponsor-sheet-link{margin-bottom:0}
.splash-settings{display:flex;flex-wrap:wrap;gap:8px;max-width:90vw;margin-top:12px}#welcome .splash-settings button{margin:0!important;padding:6px 12px;min-height:36px;font-size:12px}@media(max-width:400px){#welcome .splash-settings button{padding:6px 8px;font-size:11px}.splash-settings{gap:6px}}@media(max-height:500px){.splash-settings{margin-top:6px}}
@media(max-width:400px) and (max-height:650px){#welcome #sponsorship-open{top:20%}}

/* Work-in-progress notice stays with the splash controls. */
#welcome .splash-copy .physics-notice{max-width:min(510px,86vw);font-size:12px;line-height:1.5;color:#b7cbd8;margin:16px 0 0;text-shadow:none}
@media(max-height:500px){#welcome .splash-copy .physics-notice{font-size:11px;line-height:1.4;margin-top:10px;max-width:min(480px,86vw)}.splash-copy{bottom:4%}}
@media(max-width:700px) and (max-height:740px){#welcome #sponsorship-open{top:8%}}
/* Kite Lab: panel coloring stays outside the flight loop. */
#welcome .splash-actions{flex-wrap:wrap;max-width:530px}
#welcome #lab-open{border-color:#69e5d6;color:#a4f3e8;min-width:140px;padding:8px 18px}
#lab-open small{display:block;font-size:10px;font-weight:400;margin-top:3px}
#kite-lab{width:min(900px,96vw);max-height:94svh;background:#0a1d31;color:#eafaff;padding:28px;overflow:auto}
#kite-lab [hidden]{display:none!important}
.lab-header{display:flex;align-items:center;justify-content:space-between;gap:12px}.lab-header h2{font-size:36px;margin:6px 0 18px}
#kite-lab button{min-height:44px;border:1px solid #7896ac;background:#17364a;color:#eefbff;border-radius:10px;padding:10px 18px}
#kite-lab button:focus-visible,#kite-lab input:focus-visible,#lab-kite-preview polygon:focus-visible{outline:3px solid #ffb35c;outline-offset:3px}
#kite-lab button:disabled{opacity:.4;cursor:default}
.lab-tabs{display:flex;gap:8px;border-bottom:1px solid #375369;padding-bottom:12px}
#kite-lab .lab-tabs [aria-selected=true],#kite-lab #lab-fly{background:#69e5d6;color:#092337;border-color:#69e5d6}
#kite-lab section>p{font-size:14px;line-height:1.5;color:#c3d8e5;margin:16px 0}
.lab-workspace{display:grid;grid-template-columns:minmax(0,1fr) 160px;gap:22px;align-items:center}
.lab-preview{background:radial-gradient(ellipse at center,#25475f,#10263b);border:1px solid #3e5c71;border-radius:16px;padding:14px}
.lab-preview svg{width:100%;display:block;max-height:340px}
#lab-kite-preview polygon{cursor:pointer}#lab-kite-preview polygon:hover,#lab-kite-preview polygon:focus{stroke:#ffb35c;stroke-width:3}
.lab-colors label{font-size:13px}.lab-colors label span{display:block;color:#b8cdda;margin:4px 0}
#kite-lab input[type=color]{display:block;width:100%;height:44px;padding:3px;background:#19384c;border:1px solid #8ea6b8;border-radius:8px;cursor:pointer}
#lab-palette{display:grid;grid-template-columns:repeat(3,1fr);gap:7px;margin-top:12px}
#kite-lab #lab-palette button{background:var(--swatch);padding:0;border:2px solid #ffffff70;min-width:40px}
#kite-lab #lab-palette [aria-pressed=true]{outline:3px solid #69e5d6;outline-offset:1px}
.lab-tail-colors{display:flex;gap:18px;max-width:380px;margin:18px auto}.lab-tail-colors label{flex:1;font-size:14px}.lab-tail-colors span{font-size:12px;color:#b8cdda}
.lab-edit-actions,.lab-save-actions{display:flex;gap:10px;margin-top:16px;flex-wrap:wrap}.lab-save-actions{justify-content:flex-end}
#kite-lab .lab-note{font-size:12px;line-height:1.5;color:#b8cdda;margin:12px 0 0}
#lab-status{font-size:13px;line-height:1.5;color:#a4f3e8;min-height:20px;margin:10px 0 0}
#kite-options.has-custom{overflow:auto;grid-auto-rows:minmax(125px,1fr);flex:1}#kite-options.has-custom canvas{max-height:150px}
@media(max-width:700px){#kite-lab{padding:18px}.lab-header h2{font-size:30px}.lab-header .eyebrow{font-size:9px;letter-spacing:2px}.lab-header button{padding:8px 10px!important}.lab-workspace{grid-template-columns:1fr;gap:14px}.lab-preview{padding:8px}.lab-colors{display:grid;grid-template-columns:1fr 64px;gap:8px;align-items:center}#lab-palette{grid-column:1/-1;grid-template-columns:repeat(6,1fr);margin:0;gap:8px}#kite-lab #lab-palette button{min-width:0}.lab-save-actions button{flex:1}.lab-preview svg{max-height:240px}#welcome .splash-actions{max-width:86vw}#welcome #lab-open{flex-basis:100%;max-width:302px;min-height:42px}#lab-open small{display:inline;margin-left:8px}#welcome h1{font-size:68px}.splash-copy{bottom:4%}}
@media(max-width:400px) and (max-height:650px){#welcome h1{font-size:58px;margin:8px 0}#welcome .splash-copy p{margin-bottom:14px}#current-design{margin-top:10px}#welcome .splash-copy .physics-notice{margin-top:10px}.splash-copy{bottom:3%}}
@media(max-height:500px) and (min-width:701px){#welcome .splash-actions{flex-wrap:nowrap}#welcome #lab-open{min-width:125px}#lab-open small{font-size:9px}.splash-copy{bottom:3%}}

@media(max-width:700px){#welcome .splash-actions{display:grid;grid-template-columns:minmax(0,auto) minmax(0,auto);width:fit-content;max-width:86vw}#welcome .splash-actions>button{min-width:0}#welcome #lab-open{grid-column:1 / -1;width:100%;max-width:none}}
