
#stage.is-exporting canvas,#stage.is-exporting #cursor,#stage.is-exporting #stage-hint{visibility:hidden}
.export-loading[hidden]{display:none!important}
.export-loading{position:absolute;inset:0;z-index:4;display:grid;place-items:center;padding:16px;background:radial-gradient(circle,#fff 0%,#fff4fa 72%)}
.export-card{box-sizing:border-box;width:min(100%,350px);display:grid;justify-items:center;gap:12px;padding:20px 24px;border-radius:24px;border:1px solid #ffc9dd;background:#fff;box-shadow:0 10px 36px #e56b9c2b;text-align:center;color:#8a3053}
.export-mascot{position:relative;width:min(34vh,164px);aspect-ratio:1}
.export-mascot img{width:100%;height:100%;object-fit:contain}
.export-clapper{position:absolute;right:-28px;bottom:0;width:clamp(64px,18vw,98px);height:auto;filter:drop-shadow(0 5px 6px #71304d44);transform:rotate(-9deg)}
.clapper-arm{transform-origin:16px 35px;animation:nya-clap 1.4s ease-in-out infinite}
.export-card progress{appearance:none;width:100%;height:13px;overflow:hidden;border:0;border-radius:999px;background:#fce4ef;accent-color:#e34881}
.export-card progress::-webkit-progress-bar{background:#fce4ef}
.export-card progress::-webkit-progress-value{background:#e34881;border-radius:999px}
.export-card progress::-moz-progress-bar{background:#e34881;border-radius:999px}
#export-percent{min-height:1.2em;font-size:1.25rem;font-weight:800;font-variant-numeric:tabular-nums}
@keyframes nya-clap{0%,100%{transform:rotate(0)}40%,60%{transform:rotate(-25deg)}72%{transform:rotate(0)}82%{transform:rotate(-6deg)}}
@media(prefers-reduced-motion:reduce){.clapper-arm{animation:none}}

.export-patience{max-width:29ch;margin:0;font-size:.875rem;line-height:1.4;color:#8a3053}

.export-card progress:not([value]){background:#fce4ef linear-gradient(90deg,transparent,#e34881,transparent) no-repeat 0 0 / 38% 100%;animation:nya-export-sweep .95s ease-in-out infinite alternate}
.export-card progress:not([value])::-webkit-progress-bar{background:transparent}
.export-card progress:not([value])::-moz-progress-bar{background:transparent}
@keyframes nya-export-sweep{from{background-position:0 0}to{background-position:100% 0}}
@media(prefers-reduced-motion:reduce){.export-card progress:not([value]){animation:none;background-position:50% 0}}

#play-tools .play-extras{display:flex;flex-wrap:wrap;align-items:center;justify-content:center;gap:5px;order:3}
#play-tools .play-extras .squish-zoom{position:static;gap:3px;padding:2px}
#play-tools .play-extras button{min-height:32px;padding:3px 7px}
#play-tools .play-extras .squish-zoom button{width:30px;font-size:16px}

#play-tools .squish-adjustments{display:flex;gap:5px;order:2}
#play-tools .squish-adjustment{position:relative}
#play-tools .squish-adjustment summary{cursor:pointer;list-style:none;color:#85425f}
#play-tools .squish-adjustment summary::-webkit-details-marker{display:none}
#play-tools .squish-adjustment[open] summary{background:#fff0f6;border-color:#ff91ad}
#play-tools .squish-adjust-pop{position:absolute;z-index:12;bottom:calc(100% + 8px);left:50%;transform:translateX(-50%);display:grid;justify-items:center;gap:4px;padding:8px 5px;min-width:45px;background:white;border:1px solid #ffcddd;border-radius:16px;box-shadow:0 6px 18px #ad4c7330;color:#b03668;font-weight:800}
#play-tools .squish-adjust-pop input{writing-mode:vertical-lr;direction:rtl;width:28px;min-width:0;height:108px;margin:0;cursor:pointer}
.recording #play-tools .squish-adjustment summary{opacity:.55;cursor:default}
#play-tools .squish-adjustment:not([open]) .squish-adjust-pop{display:none}

#record-control{position:relative}
@media(max-width:620px){#play-tools #record-control{order:2}}
#record-durations[hidden],#record-countdown[hidden]{display:none}
#record-durations{position:absolute;z-index:14;bottom:calc(100% + 8px);right:0;width:168px;padding:9px;display:grid;gap:7px;text-align:center;color:#85425f;background:#fff;border:1px solid #ffcddd;border-radius:16px;box-shadow:0 6px 18px #ad4c7330;font-size:12px}
#record-durations .duration-presets{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:4px}
#play-tools #record-durations button{padding:4px 2px;min-height:32px;color:#953650}
#record-countdown{position:absolute;z-index:3;pointer-events:none;width:84px;height:84px;display:grid;place-items:center;border:2px solid #ffbad4;border-radius:50%;background:#fff5fa;color:#b63269;box-shadow:0 5px 24px #8b315853;font-size:44px;font-weight:800}

#zoom-controls{position:relative}
#play-tools #zoom-controls #pan-handle{position:absolute;bottom:calc(100% + 8px);left:50%;transform:translateX(-50%);width:42px;min-width:42px;min-height:40px;z-index:11;touch-action:none;cursor:grab;background:#fff3f8}
#play-tools #zoom-controls #pan-handle[hidden]{display:none}
#play-tools #zoom-controls #pan-handle:active{cursor:grabbing}
#play-tools #zoom-menu .squish-adjust-pop{width:125px}
#play-tools #zoom-menu .squish-adjust-pop button{width:100%}
#play-tools #zoom-controls.has-pan .squish-adjust-pop{bottom:calc(100% + 54px)}

#empty.squish-entry[hidden]{display:none}
#empty.squish-entry{display:grid;grid-template-columns:minmax(0,1.18fr) minmax(0,1fr);align-items:center;gap:clamp(16px,4vw,52px);width:min(92%,790px)}
#empty .squish-drop{box-sizing:border-box;width:100%;max-width:none}
.miaulust-samples{min-width:0;text-align:center;color:#823252}
.samples-logo{display:block;width:clamp(100px,40%,142px);height:auto;margin:0 auto 8px;filter:drop-shadow(0 4px 4px #77436844)}
.miaulust-samples h2{font-size:13px;font-weight:600;line-height:1.5;margin:0 0 12px}
.sample-cards{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:7px}
.squish-main .sample-cards button{display:grid;gap:4px;min-width:0;padding:4px 4px 6px;border-radius:13px;font-size:11px;line-height:1.2;box-shadow:0 3px 8px #ad4c7318}
.sample-cards img{display:block;width:100%;height:auto;border-radius:9px}
@media(max-width:600px){body[data-squish-mode=empty] #stage{height:auto;min-height:0;padding:18px 0}#empty.squish-entry{grid-template-columns:1fr;gap:18px;width:min(92%,390px)}.miaulust-samples{width:min(100%,285px);margin-inline:auto}}

.sample-signature{white-space:nowrap}
#back-to-entry{position:absolute;z-index:3;top:8px;left:12px;min-height:34px;padding:5px 12px;background:#fffffff1}
#back-to-entry[hidden],#stage.is-exporting #back-to-entry{display:none}
#play-tools #zoom-controls #pan-handle{background:#fff5faae;backdrop-filter:blur(5px);border-color:#f3bed6}
#play-tools #zoom-controls #pan-handle[aria-pressed=true]{background:#ffd9e9;border-color:#d65a91}
body[data-squish-mode=play] #squish-canvas.pan-background,body[data-squish-mode=play] #stage.pan-mode #squish-canvas{cursor:grab}
body[data-squish-mode=play] #stage.panning #squish-canvas{cursor:grabbing}
