@charset "UTF-8";
:root{font-family:-apple-system,BlinkMacSystemFont,"Hiragino Kaku Gothic ProN","Yu Gothic",sans-serif;color:#233e3a;background:#eee9df;--ink:#233e3a;--green:#276b5d;--accent:#dc6444;--paper:#faf8f0;--line:#c9c9b9}*{box-sizing:border-box}body{margin:0}button,input{font:inherit}button{cursor:pointer;color:inherit;border:0;background:none;touch-action:manipulation}button:focus-visible,input:focus-visible{outline:3px solid var(--accent);outline-offset:4px}button:disabled{opacity:.35;cursor:default}button:active:not(:disabled){transform:translateY(2px)}[hidden]{display:none!important}#app{width:100%;max-width:560px;height:100dvh;min-height:590px;margin:auto;display:flex;flex-direction:column;position:relative;overflow:hidden;background:var(--paper)}header{display:flex;gap:14px;align-items:center;padding:calc(14px + env(safe-area-inset-top)) 20px 8px;z-index:2;flex-shrink:0}.heading{flex:1}#eyebrow,.micro{font-size:10px;letter-spacing:2px;font-weight:700;color:#687d71}h1{font-size:25px;letter-spacing:-1.2px;margin:6px 0 0;font-weight:800}.icon-button{border:1px solid #cbd0c4;border-radius:50%;width:42px;height:42px;font-size:24px;flex-shrink:0;display:grid;place-items:center;background:#faf8f0c9}.icon-button#help{font-size:17px}#stage{position:relative;flex:1;min-height:200px;isolation:isolate;background:#edf0e6}#scene{display:block;width:100%;height:100%;touch-action:none}#stage-label{position:absolute;top:19px;left:24px;display:flex;gap:7px;align-items:center;font-size:10px;letter-spacing:1.8px;font-weight:700;pointer-events:none}.live-dot{width:5px;height:5px;background:#47715b;border-radius:50%}#hint{position:absolute;bottom:50px;left:20px;right:20px;text-align:center;font-size:12px;pointer-events:none;color:#455e52;text-shadow:0 1px 4px #fff}#view-controls{position:absolute;bottom:10px;left:50%;transform:translateX(-50%);display:flex;gap:3px;border:1px solid #bbc5b6;border-radius:24px;padding:3px;background:#faf8f0dd}#view-controls button{font-size:11px;min-height:31px;min-width:53px;border-radius:20px}#view-controls button.active{background:var(--green);color:white}#controls{padding:16px 24px 8px;flex-shrink:0;z-index:2;background:var(--paper);border-top:1px solid #ccd1c1}footer{padding:6px 24px calc(16px + env(safe-area-inset-bottom));background:var(--paper);flex-shrink:0;display:flex;gap:10px;z-index:2}.primary,.secondary{min-height:52px;border-radius:8px;font-size:15px;font-weight:700;display:flex;align-items:center;justify-content:center;gap:12px}.primary{background:var(--green);color:white;flex:1;box-shadow:0 3px 0 #174c40}.primary.coral{background:var(--accent);box-shadow:0 3px 0 #a8432a}.secondary{border:1px solid #b5bfb0;background:#faf8f0;padding:0 17px}.tool-row{display:flex;gap:6px;margin-bottom:15px}.tool-row button{flex:1;min-height:44px;border-bottom:2px solid transparent;color:#68786b;font-size:12px;font-weight:650;display:flex;align-items:center;justify-content:center;gap:5px}.tool-row button.active{color:var(--ink);border-color:var(--green);background:#e7ece1}.tool-row svg{width:18px;height:18px;fill:none;stroke:currentColor;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round}.adjust{display:flex;align-items:center;gap:13px;margin:11px 0;min-height:34px}.adjust label{font-size:12px;font-weight:600;white-space:nowrap}.adjust output{font-size:17px;font-weight:750;min-width:48px;text-align:right;font-variant-numeric:tabular-nums}.adjust output small{font-size:10px;margin-left:3px}.adjust input{min-width:0;flex:1;accent-color:var(--green);height:30px;touch-action:pan-x}.adjust .stepper{width:36px;height:36px;border:1px solid #c5cabb;border-radius:50%;font-size:20px}.mini-row{display:flex;align-items:center;justify-content:space-between;gap:9px;font-size:11px;color:#637465}.text-button{min-height:40px;padding:0 7px;text-decoration:underline;text-underline-offset:4px;font-size:12px}.pill{font-size:11px;padding:6px 10px;border-radius:15px;background:#e4e9dd}.preset-grid{display:grid;grid-template-columns:repeat(5,1fr);gap:7px;margin:8px 0 4px}.plane-card{padding:7px 2px 5px;border:1px solid #d5d9ca;border-radius:6px;font-size:10px;min-height:64px}.plane-card.selected{border:2px solid var(--green);background:#eaf0e2;padding:6px 1px 4px}.plane-card svg{height:29px;width:42px;display:block;margin:0 auto 4px}.plane-name{display:flex;align-items:baseline;gap:10px;margin-bottom:9px}.plane-name strong{font-size:21px}.plane-name span{font-size:11px;color:#657669}.custom-button{width:100%;border:1px dashed #899984;border-radius:6px;min-height:43px;font-size:12px;margin-top:8px}.mode-switch{display:flex;padding:4px;background:#e6e9df;border-radius:9px;gap:4px;margin:5px 0 14px}.mode-switch button{flex:1;min-height:44px;border-radius:6px;font-weight:700;font-size:13px}.mode-switch .active{background:var(--paper);box-shadow:0 2px 5px #24443113}.summary-row{display:flex;justify-content:space-between;gap:12px;margin:10px 0;font-size:12px}.summary-row b{font-size:14px}.fold-actions{display:flex;gap:8px;margin:8px 0}.fold-actions button{min-height:42px;font-size:12px;border:1px solid #bcc6b5;border-radius:6px;padding:0 12px;flex:1}.fold-actions .active{background:#e1e9d7;border-color:#567358}.fold-count{font-size:11px;color:#6b7e6a}.fold-instruction{font-size:15px;margin:0 0 8px;font-weight:700}.fold-sub{font-size:11px;color:#657663;margin:0 0 12px}.result-heading{margin:0 0 8px;font-size:25px;font-weight:850;letter-spacing:-1px}.result-detail{font-size:12px;margin:4px 0 10px;color:#56705f}.result-stats{display:flex;justify-content:space-between;border-top:1px solid #d2d8c7;padding-top:12px;font-size:12px}.result-stats strong{display:block;margin-top:5px;font-size:20px}.result-stats .best{color:var(--accent)}#hud{position:absolute;left:24px;top:26px;color:#233e3a}#flight-mode{font-size:10px;letter-spacing:2px;font-weight:800}#hud>div{display:flex;align-items:baseline;gap:5px}#distance{font-size:62px;letter-spacing:-3px;font-weight:800;font-variant-numeric:tabular-nums}#hud p{font-size:12px;margin-top:0}#countdown{position:absolute;inset:0;display:grid;place-items:center;font-size:70px;color:var(--green);font-weight:800;text-shadow:0 2px white;pointer-events:none}#toast{position:absolute;bottom:64px;left:50%;transform:translate(-50%,15px);background:var(--ink);color:white;font-size:12px;max-width:90%;white-space:nowrap;padding:11px 16px;border-radius:7px;opacity:0;transition:opacity .2s,transform .2s;pointer-events:none}#toast.visible{opacity:1;transform:translate(-50%,0)}dialog{border:0;border-radius:13px;max-width:calc(100vw - 32px);width:410px;padding:30px;color:var(--ink);background:var(--paper)}dialog::backdrop{background:#15382d66;backdrop-filter:blur(3px)}dialog>.icon-button{float:right;margin:-12px -12px 4px 10px}dialog h2{font-size:23px;line-height:1.6;margin:16px 0}dialog p{font-size:13px;line-height:1.9}dialog small{display:block;font-size:11px;line-height:1.8;color:#667563;margin:18px 0}dialog>.primary{width:100%;margin-top:12px}#load-error{position:absolute;inset:30% 25px auto;background:white;padding:25px;z-index:10}.flying header,.flying #controls,.flying footer{display:none}.flying #stage{height:100%}.flying #stage-label,.flying #hint,.flying #view-controls{display:none}.flying #stage{background:#d8e6df}.flying #back{display:none}.small-note{font-size:10px;color:#627663;margin:5px 0}.spin-indicator{font-variant-numeric:tabular-nums}.flight-stop{position:absolute;right:18px;top:20px;z-index:3;background:#faf8f0dd;border-radius:30px;font-size:12px;padding:10px 16px;min-height:42px}.sheet-back{background:#e6e3d4}@media(min-width:700px){body{background:#d1d8cc;display:grid;place-items:center;height:100dvh}#app{height:min(940px,100dvh);box-shadow:0 0 80px #263e3920;max-width:480px}}@media(max-height:740px){header{padding-top:10px;padding-bottom:8px}h1{font-size:22px}#controls{padding-top:8px;padding-bottom:3px}footer{padding-bottom:10px}.tool-row{margin-bottom:5px}.adjust{margin:3px 0}.plane-card{min-height:52px;padding-top:3px}.plane-card svg{height:23px}.preset-grid{gap:4px}.primary,.secondary{min-height:46px}#hint{font-size:11px}.custom-button{min-height:39px;margin-top:5px}}@media(prefers-reduced-motion:reduce){*,*::before,*::after{animation-duration:.01ms!important;transition-duration:.01ms!important}}
/* The object is the heading. Thumb controls stay in the same place. */
header{padding:calc(6px + env(safe-area-inset-top)) 18px 6px;gap:12px;height:calc(56px + env(safe-area-inset-top))}h1{font-size:15px!important;letter-spacing:0;margin:0;font-weight:650}#eyebrow:empty{display:none}.icon-button{width:38px;height:38px}#app{min-height:520px}#stage-label,#view-controls{display:none!important}#thumb-controls{position:absolute;bottom:10px;left:16px;right:16px;display:flex;align-items:flex-end;justify-content:space-between;pointer-events:none;gap:12px}#left-hand,#right-hand{pointer-events:auto}#left-hand{width:114px;text-align:center}#stick{position:relative;display:block;width:106px;height:106px;background:#faf9f0cc;border:1px solid #8d9d8d;border-radius:50%;touch-action:none;margin:auto;box-shadow:inset 0 2px 7px #2f4d3720}#stick-knob{position:absolute;left:30px;top:30px;width:44px;height:44px;border-radius:50%;background:#467f6e;box-shadow:0 4px 0 #285a4b,0 5px 12px #183b3130;border:1px solid #619984;pointer-events:none}#stick::before,#stick::after{content:'';position:absolute;background:#b2bdaa;left:50%;top:14px;bottom:14px;width:1px}#stick::after{top:50%;left:14px;right:14px;height:1px;width:auto}.tiny-button{font-size:10px;min-height:34px;color:#415f4e;text-decoration:underline;text-underline-offset:4px}#right-hand{width:min(51%,210px);display:flex;flex-direction:column;gap:4px}#right-tools .tool-row{margin:0;gap:3px;display:grid;grid-template-columns:repeat(4,1fr)}#right-tools .tool-row button{min-height:42px;flex-direction:column;font-size:9px;gap:2px;padding:4px 1px;border-radius:5px;background:#f8f8eecc;border:1px solid #bac7b4}#right-tools .tool-row button.active{background:#2d6b5b;color:#fff;border-color:#2d6b5b}#right-tools svg{width:16px;height:16px}#draw-pad{position:relative;width:100%;height:102px;border:1px solid #839e89;border-radius:12px;background:repeating-linear-gradient(0deg,transparent,transparent 18px,#8ea48b20 19px),repeating-linear-gradient(90deg,#f5f7ebdd,#f5f7ebdd 18px,#8ea48b20 19px);touch-action:none;overflow:hidden;box-shadow:inset 0 2px 5px #20423112}#pad-label{position:absolute;bottom:9px;left:0;right:0;text-align:center;font-size:10px;color:#4e6e55;pointer-events:none}#pad-dot{display:block;position:absolute;width:8px;height:8px;left:50%;top:32%;border-radius:50%;background:#d47951;box-shadow:0 0 0 4px #d479511f;pointer-events:none}#draw-pad.drawing{border-color:#cf754f;background-color:#fffaf0}#draw-pad.drawing #pad-label{opacity:.3}#physics-status{position:absolute;right:22px;top:18px;font-size:11px;font-variant-numeric:tabular-nums;color:#57765f;pointer-events:none}#hint{top:18px;bottom:auto;font-size:11px}#toast{bottom:165px}#controls{padding:10px 18px 2px}footer{padding:8px 18px calc(13px + env(safe-area-inset-bottom))}.adjust{gap:8px;margin:3px 0}.adjust input{min-width:40px}#new-stroke{font-size:10px;padding:0 0 0 3px;white-space:nowrap}#reset-fan{font-size:10px}.adjust output{min-width:38px;font-size:15px}.adjust .stepper{width:30px;height:34px}.plane-name{margin-bottom:7px}.plane-name strong{font-size:17px}.plane-name span{font-size:10px}.preset-grid{display:flex;overflow-x:auto;scroll-snap-type:x mandatory;gap:6px;padding:3px 0 8px;scrollbar-width:thin}.plane-card{flex:0 0 88px;min-height:67px;font-size:10px;scroll-snap-align:center}.plane-card svg{height:35px;width:58px}.plane-card.selected{border-width:1px;padding:7px 2px 5px}.fold-instruction{font-size:13px}.fold-sub{display:none}.custom-button{min-height:40px;margin-top:4px}#hud{top:18px;left:18px}#distance{font-size:48px;letter-spacing:-2px}#flight-mode{font-size:9px}#countdown{font-size:28px;font-weight:600}.flying #thumb-controls,.flying #physics-status{display:none!important}.result-heading{font-size:21px}.result-stats strong{font-size:20px}@media(max-height:720px){#draw-pad{height:82px}#stick{height:90px;width:90px}#stick-knob{left:24px;top:24px;width:40px;height:40px}#left-hand{width:98px}.tiny-button{min-height:26px}#right-tools .tool-row button{min-height:38px}.primary,.secondary{min-height:43px}footer{padding-top:5px;padding-bottom:9px}.plane-card{min-height:58px}.plane-card svg{height:29px}.adjust{min-height:30px}#controls{padding-top:5px}}@media(max-width:350px){#right-hand{width:52%}#thumb-controls{left:10px;right:10px}#controls,footer{padding-left:12px;padding-right:12px}#new-stroke{display:none}.tool-row svg{width:14px;height:14px}}@media(max-height:540px) and (orientation:landscape){#app{max-width:none;min-height:0;display:grid;grid-template-columns:1fr 220px;grid-template-rows:44px 1fr 58px}header{grid-column:1/-1;height:44px}#stage{grid-column:1;grid-row:2/4;min-height:0}#controls{grid-column:2;grid-row:2;overflow:auto}footer{grid-column:2;grid-row:3;padding:6px;gap:5px}.primary,.secondary{font-size:11px;padding:0 8px}.flying #stage{grid-column:1/-1;grid-row:1/-1}}
