:root{color-scheme:dark;font-family:-apple-system,BlinkMacSystemFont,"Apple SD Gothic Neo",sans-serif;background:#101211;color:#eef1e9}*{box-sizing:border-box}body{margin:0}header{height:84px;border-bottom:1px solid #30342e;display:flex;align-items:center;justify-content:space-between;padding:0 5%}.brand{color:#c5ef86;font-size:28px;display:flex;align-items:center;gap:12px}.brand span{color:#fff;font-size:22px;font-weight:650}.brand small{font-size:12px;color:#7f887e;margin-left:16px}.local{font-size:12px;color:#b6c9a5}main{max-width:1500px;margin:auto;padding:40px 5%}.heading{display:flex;align-items:center;justify-content:space-between;margin-bottom:36px}.eyebrow{font-size:11px;letter-spacing:3px;color:#c5ef86}h1{font-size:34px;font-weight:550;line-height:1.3;margin:18px 0}.heading p:last-child{font-size:14px;color:#9ba498}button,select,input{font:inherit}button{cursor:pointer;border:1px solid #3d4439;background:#252b23;color:#e4e9dd;border-radius:8px;padding:11px 15px}button:hover{border-color:#c5ef86}button:disabled{opacity:.4;cursor:wait}.primary{background:#c5ef86;color:#1b2910;padding:17px 24px;font-weight:700;border:0}.workspace{display:grid;grid-template-columns:260px minmax(0,1fr);gap:30px}aside{background:#191c18;border:1px solid #30372c;padding:22px;border-radius:14px}h2{font-size:14px;margin:0 0 20px}h2 b{color:#a5c97c;font-size:11px;margin-right:10px}.file{position:relative;display:block;border:1px dashed #49513f;border-radius:8px;padding:16px 14px;margin-bottom:12px;cursor:pointer;color:#c5ef86;overflow:hidden}.file strong{color:#ecefe7;margin-left:8px;font-size:14px}.file small{display:block;color:#949c8d;font-size:11px;margin-top:9px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.file input{position:absolute;inset:0;opacity:0;width:100%;cursor:pointer}.note{font-size:12px;line-height:1.8;color:#8d9885;margin:18px 0 35px}.presets{display:flex;gap:5px;margin-bottom:12px}.presets button{font-size:12px;padding:10px}.wide{width:100%;font-size:12px;margin:4px 0;background:transparent}.previewTop{display:flex;justify-content:space-between;font-size:10px;letter-spacing:2px;color:#a4ad9c;margin:0 0 12px}#stage{aspect-ratio:16/9;position:relative;background:radial-gradient(ellipse at 60% 0%,#455442,#19211c 60%,#111611);overflow:hidden;border-radius:10px;border:1px solid #3c4536}video,canvas{position:absolute;inset:0;width:100%;height:100%;object-fit:cover}canvas{z-index:2;touch-action:none;cursor:move}#empty{position:absolute;inset:43% 0 auto;text-align:center;letter-spacing:4px;color:#a5b399;font-size:14px}#empty small{display:block;letter-spacing:0;font-size:12px;margin-top:15px;color:#82907b}.transport{display:flex;align-items:center;gap:16px;margin-top:16px}.transport button{width:46px}.transport span{font-size:12px;white-space:nowrap;font-variant-numeric:tabular-nums}.transport input{flex:1}.hint{font-size:11px;color:#828d7b;text-align:center}#status{font-size:13px;color:#c5d8b2;padding:14px 0;line-height:1.6}progress{width:100%;accent-color:#c5ef86}#download{display:block;color:#c5ef86;padding:12px 0}#download[hidden]{display:none}.styles{padding:24px;background:#191c18;border:1px solid #30372c;border-radius:12px;margin-top:14px}.controls{display:grid;grid-template-columns:repeat(4,1fr);gap:20px}.controls label{font-size:12px;color:#a7af9f;display:flex;flex-direction:column;gap:10px}.controls output{display:none}select{width:100%;padding:8px;border:1px solid #414a3a;border-radius:6px;background:#232a20;color:#eef1e9}input[type=range]{accent-color:#c5ef86;width:100%}input[type=color]{width:100%;height:32px;border:0;background:none}input[type=checkbox]{align-self:start;accent-color:#c5ef86}footer{margin-top:36px;font-size:11px;color:#727e69;display:flex;justify-content:space-between}footer span{letter-spacing:2px}@media(max-width:700px){.workspace{grid-template-columns:1fr}aside{display:grid;grid-template-columns:repeat(3,1fr);gap:10px}aside h2,.note{grid-column:1/-1}.controls{grid-template-columns:repeat(2,1fr)}.brand small{display:none}.heading{gap:20px}h1{font-size:26px}.primary{font-size:12px;padding:15px}.local{display:none}}

.check{float:right;font-size:18px;color:#c5ef86;font-weight:800}.controls output{display:inline;color:#c5ef86;font-size:11px}.png-upload{font-size:12px;margin-top:12px}#layers button{overflow:hidden;text-overflow:ellipsis;white-space:nowrap;text-align:left}#layers .selected{border-color:#c5ef86;color:#c5ef86}#layerEditor{border-top:1px solid #394230;margin-top:16px;padding-top:16px}#layerEditor label{display:block;font-size:12px;color:#a7af9f;margin-bottom:16px}#layerEditor label[hidden]{display:none}textarea{box-sizing:border-box;width:100%;resize:vertical;margin-top:8px;background:#232a20;color:#eef1e9;border:1px solid #414a3a;border-radius:6px;padding:8px;font:inherit}#layerSizeValue{color:#c5ef86}#layerSize{margin-top:12px}

.add-row{display:flex;gap:8px;margin-bottom:16px}.add-row>button,.add-row>.file{flex:1;min-width:0;margin:0;padding:12px 5px;font-size:11px;text-align:center;border-radius:8px;white-space:nowrap}.layer-row{display:flex;align-items:center;border:1px solid #3d4439;border-radius:8px;margin:8px 0;overflow:hidden}.layer-row.selected{border-color:#c5ef86}.layer-row button{border:0;background:transparent}.layer-select{flex:1;min-width:0;font-size:12px;padding:12px 10px}.layer-delete{flex:0 0 34px;font-size:22px;padding:5px!important;color:#a7af9f}.layer-delete:hover{color:#ffafa0;background:#412722}.layer-style-row{display:grid;grid-template-columns:minmax(0,1fr) 58px;gap:12px}#layerEditor input[type=color],.controls .compact-color input{width:48px;height:28px;padding:0}#layerEditor select{margin-top:8px}#layerOpacity{margin-top:12px}#layerEditor output{color:#c5ef86;font-size:11px}#layers .selected .layer-select{color:#c5ef86}

.color-shadow{display:flex;gap:20px;align-items:start}.color-shadow input[type=checkbox]{margin-top:5px}

.color-shadow{gap:12px;flex-wrap:wrap}.color-shadow label{white-space:nowrap}

.brand small{font-size:15px}footer a{color:#a7af9f;text-decoration:none}footer a:hover{color:#c5ef86;text-decoration:underline}

.save-row{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-top:16px}.save-row span{font-size:12px;color:#a7af9f}.save-row button{font-size:11px;padding:7px 12px;background:transparent}

aside{display:flex;flex-direction:column}.sidebar-reset{margin-top:auto;padding-top:28px;text-align:right}.sidebar-reset button{padding:3px 0;border:0;background:transparent;color:#818b79;font-size:11px;text-decoration:underline;text-underline-offset:3px}.sidebar-reset button:hover{color:#c5ef86}

.sidebar-reset{display:flex;justify-content:flex-end;gap:16px}#historyDialog{background:#191c18;color:#eef1e9;border:1px solid #414a3a;border-radius:14px;padding:26px;width:min(580px,90vw);max-height:80vh}#historyDialog::backdrop{background:#0009}.history-heading{display:flex;align-items:center;justify-content:space-between;gap:20px}.history-heading h2{margin:0;font-size:18px}.history-note{font-size:12px;line-height:1.8;color:#a7af9f}.history-entry{display:block;width:100%;text-align:left;margin-top:10px;padding:15px}.history-entry strong{display:block;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.history-entry small{display:block;margin-top:8px;color:#a7af9f}.history-empty{padding:24px 0;font-size:13px;color:#a7af9f}
.sidebar-reset{justify-content:space-between}

#blendField{border:0;padding:0;margin:0 0 20px}#blendField legend{font-size:12px;color:#a7af9f;margin-bottom:10px}#layerEditor #blendField label{display:inline-flex;align-items:center;margin:0 9px 0 0;gap:3px;font-size:11px}#blendField input{accent-color:#c5ef86;margin:0}
.export-panel{width:min(480px,45%);align-self:center}.export-actions{display:grid;grid-template-columns:1fr 1fr;gap:10px}.export-actions .primary,.download-button{display:flex;align-items:center;justify-content:center;min-height:52px;padding:14px 18px;border-radius:8px;font-size:13px;font-weight:700;text-decoration:none;text-align:center;transition:background .2s,color .2s,border-color .2s,box-shadow .2s,transform .2s}.download-button{border:1px solid #4b5545;background:#1d211c;color:#c5ef86}.download-button.ready{border-color:#d8ff9d;background:#c5ef86;color:#17200f;box-shadow:0 0 0 3px rgba(197,239,134,.16),0 8px 24px rgba(121,170,64,.22);animation:download-ready .7s ease-out}.download-button.ready:hover{background:#d8ff9d;transform:translateY(-1px)}.download-button.disabled{color:#697064;border-color:#30362d;background:#171a16;cursor:not-allowed;pointer-events:none;box-shadow:none}.download-button.disabled::before{content:'○';margin-right:7px;color:#4f574c}@keyframes download-ready{0%{transform:scale(.96);box-shadow:0 0 0 0 rgba(197,239,134,.55)}60%{transform:scale(1.03);box-shadow:0 0 0 8px rgba(197,239,134,0)}100%{transform:scale(1)}}#exportProgress{margin-top:12px;padding:11px 13px;border:1px solid #31382e;border-radius:8px;background:#171a16}#exportProgress[hidden]{display:none}#exportStatus{display:block;min-height:16px;margin-bottom:8px;color:#aebaa5;font-size:11px;line-height:1.45}#exportProgress progress{display:block;width:100%;height:7px;accent-color:#c5ef86}
@media(max-width:900px){.heading{align-items:flex-start;flex-direction:column}.export-panel{width:100%;max-width:480px}.export-actions .primary,.download-button{font-size:12px}}
#download.download-button{padding:14px 18px}#download.download-button.ready{color:#17200f}
.format-switch{display:flex;align-items:center;gap:8px;letter-spacing:0}.format-switch button{border:0;padding:2px 0;background:transparent;color:#a4ad9c;font-size:10px;letter-spacing:1px;display:inline-flex;align-items:center;gap:5px}.format-switch button[aria-pressed=true]{color:#c5ef86}.format-switch button:hover{color:#d8ff9d}.format-switch button:focus-visible{outline:2px solid #c5ef86;outline-offset:3px}.format-switch span{color:#596057}.format-icon{display:inline-block;border:1px solid currentColor;border-radius:1px;opacity:.9}.format-icon.wide{width:13px;height:7px}.format-icon.square{width:9px;height:9px}.format-icon.vertical{width:6px;height:11px}#stage.square{width:min(100%,760px);aspect-ratio:1/1;margin-inline:auto}#stage.vertical{width:min(100%,470px);aspect-ratio:9/16;margin-inline:auto}
footer{display:grid;grid-template-columns:1fr auto 1fr;align-items:center}footer>span:last-child{text-align:right}.browser-note{text-align:center;color:#929d89}@media(max-width:900px){footer{grid-template-columns:1fr;gap:10px;text-align:center}footer>span:last-child{text-align:center}}

.header-right{display:flex;align-items:flex-end;flex-direction:column;gap:8px}.language-switch{display:flex;align-items:center;gap:8px;color:#697064}.language-switch button{padding:4px 6px;border:0;background:transparent;color:#949c8d;font-size:12px;font-weight:700;cursor:pointer}.language-switch button[aria-pressed=true]{color:#c5ef86}.language-switch button:hover{color:#d8ff9d}.language-switch button:focus-visible{outline:2px solid #c5ef86;outline-offset:2px}html[lang=en] .controls{gap:16px}html[lang=en] .controls label{line-height:1.5}@media(max-width:600px){header{padding:0 4%;gap:12px}.brand{gap:8px}.brand span{font-size:20px}.header-right{flex-shrink:0}}
.header-tools{display:flex;align-items:center;gap:8px}.tool-divider{color:#596055;font-size:12px}.support{position:relative}.support>button{padding:4px 6px;border:0;background:transparent;color:#aab6a1;font-size:12px;font-weight:700}.support>button:hover,.support>button[aria-expanded=true]{color:#c5ef86}.support-popover{position:absolute;z-index:30;top:calc(100% + 10px);right:0;width:290px;padding:14px;border:1px solid #46513f;border-radius:14px;background:#171b16;box-shadow:0 18px 50px rgba(0,0,0,.55);opacity:0;visibility:hidden;transform:translateY(-5px);transition:.18s ease;pointer-events:none;text-align:center}.support:hover .support-popover,.support:focus-within .support-popover,.support.open .support-popover{opacity:1;visibility:visible;transform:translateY(0);pointer-events:auto}.support-panel strong{display:block;color:#eef1e9;font-size:14px}.support-panel>span{display:block;margin:5px 0 11px;color:#929d8d;font-size:11px}.support-paypal{display:none}html[lang=en] .support-kakao{display:none}html[lang=en] .support-paypal{display:block}.support-qr-crop{aspect-ratio:1114/1180;overflow:hidden;border-radius:9px;background:#fff}.support-qr-crop img,.paypal-qr{display:block;width:100%;height:auto;border-radius:9px;background:#f3f5f8}.support-popover .support-line{margin:11px 0 3px;color:#aab3a6;font-size:11px;line-height:1.45}.support-popover .support-free{margin:6px 0 0;color:#dfe5dc;font-size:13px;font-weight:700;line-height:1.45}.support-popover .support-free em{color:#c5ef86;font-style:normal;font-weight:900}.paypal-link{display:block;margin:10px 0 6px;padding:10px 12px;border-radius:8px;background:#c5ef86;color:#172013;font-size:12px;font-weight:900;text-decoration:none}.paypal-link:hover{filter:brightness(1.08)}.support>button:focus-visible{outline:2px solid #c5ef86;outline-offset:2px}@media(max-width:900px){.support>button{font-size:0}.support>button::first-letter{font-size:15px}.support-popover{right:-8px;width:260px}}

/* Align the header contents with the main workspace at every viewport width. */
header{display:block;padding:0;height:auto;min-height:84px}.header-inner{max-width:1500px;margin:0 auto;padding:0 5%;min-height:83px;display:flex;align-items:center;justify-content:space-between;gap:20px}.local-dot{display:inline-block;width:7px;height:7px;margin-right:7px;border-radius:50%;background:currentColor;vertical-align:1px;animation:local-pulse 2.4s ease-in-out infinite}@keyframes local-pulse{0%,100%{opacity:.3;transform:scale(.78)}50%{opacity:1;transform:scale(1)}}@media(prefers-reduced-motion:reduce){.local-dot{animation:none}}@media(max-width:600px){header{padding:0}.header-inner{gap:12px}}
.header-meta{display:flex;align-items:center;gap:8px;color:#596055;font-size:12px}.header-meta button{padding:2px 3px;border:0;background:transparent;color:#aab6a1;font-size:12px;font-weight:700}.header-meta button:hover{color:#c5ef86}#guestbookDialog{width:min(680px,92vw);max-height:82vh;padding:24px;border:1px solid #414a3a;border-radius:15px;background:#171b16;color:#eef1e9;box-shadow:0 24px 80px #000b}#guestbookDialog::backdrop{background:#000a}.guestbook-heading{display:flex;align-items:flex-start;justify-content:space-between;gap:20px;padding-bottom:14px;border-bottom:1px solid #343b31}.guestbook-heading small{display:block;margin-bottom:7px;color:#c5ef86;font-size:9px;letter-spacing:2px}.guestbook-heading h2{margin:0;font-size:18px}.guestbook-heading button{padding:6px 9px;border:0;background:transparent;color:#929d8d;font-size:11px}.guestbook-note{display:inline-block;margin:15px 12px 15px 0;color:#aab3a6;font-size:12px}.guestbook-email{display:inline-block;color:#c5ef86;font-size:12px;text-decoration:none}.guestbook-email:hover{text-decoration:underline}#disqus_thread{min-height:180px;padding-top:8px}@media(max-width:900px){.header-meta>span[aria-hidden=true],#guestbookButton{display:none}}
.footer-meta{display:flex;flex-direction:column;align-items:flex-end;gap:7px;text-align:right}.footer-meta span{letter-spacing:2px}#visitorCount{color:#8d9885;font-variant-numeric:tabular-nums}@media(max-width:900px){.footer-meta{align-items:center;text-align:center}}

/* Refined single-line footer */
footer{align-items:start}
footer>a{color:#c5ef86;font-size:12px;font-weight:600;letter-spacing:.35px;line-height:1.35}
footer>a:hover{color:#d7ff9a}
.footer-meta{display:flex;flex-direction:row;align-items:baseline;justify-content:flex-end;gap:12px;text-align:right;white-space:nowrap}
#visitorCount{font-size:9px;color:#75806e;letter-spacing:1px}
#visitorCount::before{content:'·';margin-right:12px;color:#596055}
.browser-note::after{content:'·';margin-left:14px;color:#596055}

/* Mobile: keep the studio visible beneath a persistent bilingual notice. */
@media(max-width:700px){
 body>header{display:none!important}body>main{display:block!important}
 .mobile-notice{position:sticky!important;inset:auto!important;top:0!important;z-index:99;display:block!important;padding:14px 22px!important;background:#101211ee!important;border-bottom:1px solid #30372c;color:#eef1e9;text-align:center;backdrop-filter:blur(12px)}
 .mobile-notice div{max-width:540px!important;margin:auto}.mobile-notice b{display:block;color:#c5ef86;font-size:10px!important;letter-spacing:2px;margin-bottom:7px!important}.mobile-notice strong{display:block;font-size:16px!important;line-height:1.35}.mobile-notice strong em{display:block;margin-top:2px;color:#c9d6c1;font-size:12px;font-style:normal;font-weight:500}.mobile-notice p{margin:8px 0 0!important;color:#9ba498;font-size:11px!important;line-height:1.55}.mobile-notice p span{display:block;margin-top:3px;color:#7f8b7b}
}
.optional-label{font-size:10px;font-weight:500;color:#778171;margin-left:4px}
@media(max-width:900px){footer{align-items:center}.footer-meta{justify-content:center;flex-wrap:wrap}.optional-label{font-size:9px}}

.preview-player{position:relative}.transport #previewFullscreen{width:auto;display:inline-flex;align-items:center;justify-content:center;gap:6px;padding:10px;white-space:nowrap}.transport #previewFullscreen span{font-size:10px}.transport #previewFullscreen svg{width:15px;height:15px;fill:none;stroke:currentColor;stroke-width:1.7;stroke-linecap:round;stroke-linejoin:round}.transport #seek{min-width:30px}

/* 100% player: one video pixel per CSS pixel; smaller windows scroll. */
#previewPlayer.player-open{--player-width:1920px;--player-height:1080px;position:fixed;inset:0;z-index:10000;width:min(calc(var(--player-width) + 34px),calc(100vw - 32px));height:min(calc(var(--player-height) + 86px),calc(100dvh - 32px));max-width:none;max-height:none;margin:auto;padding:16px;display:block;overflow:auto;background:#050507f5;border:1px solid #ffffff30;border-radius:10px;box-shadow:0 0 0 100vmax #000b}
#previewPlayer.player-open:has(#stage.square){--player-width:1080px;--player-height:1080px}
#previewPlayer.player-open:has(#stage.vertical){--player-width:1080px;--player-height:1920px}
#previewPlayer.player-open #stage,#previewPlayer.player-open #stage.square,#previewPlayer.player-open #stage.vertical{width:var(--player-width);height:var(--player-height);min-width:var(--player-width);max-width:none;aspect-ratio:auto;margin:0 auto;border:0;border-radius:0;flex:none}
#previewPlayer.player-open .transport{box-sizing:border-box;width:var(--player-width);min-width:var(--player-width);max-width:none;margin:0 auto;padding:10px 0 0;gap:12px;position:relative;flex:none}
#previewPlayer.player-open .transport #previewFullscreen{min-width:112px}
#previewPlayer.player-open .transport #previewFullscreen span{display:inline}
#previewPlayer.player-open .transport span{white-space:nowrap}

.speed-control{position:relative}.speed-control:has(#videoSpeed)::after{content:"";position:absolute;left:50%;top:24px;height:14px;width:1px;background:#c5ef86;opacity:.55;pointer-events:none;transform:translateX(-1px);z-index:2}.speed-control input[type=range]{position:relative;z-index:1}

.loop-mode{display:flex;align-items:center;justify-content:center;gap:12px;margin:8px 0 20px;padding:0;border:0;font-size:12px;white-space:nowrap}.loop-mode label{font-size:12px}.loop-mode input{accent-color:#c5ef86;margin-right:4px}.loop-divider{color:#665361}
/* Public desktop layout: keep the options sidebar beside the preview. */
@media(min-width:701px){.workspace{display:grid!important;grid-template-columns:260px minmax(0,1fr)!important;align-items:start!important}.speed-scale{display:flex;justify-content:space-between;gap:4px;white-space:nowrap}}
/* Keep the editor beside the sidebar even when Chrome reports a narrow CSS viewport. */
.workspace{display:grid!important;grid-template-columns:260px minmax(0,1fr)!important;align-items:start!important}
.workspace{display:grid!important;grid-template-columns:260px minmax(0,1fr)!important;align-items:start!important}.workspace>.editor{grid-column:2!important;grid-row:1!important;min-width:0!important}.workspace>aside{grid-column:1!important;grid-row:1!important;width:260px!important}

/* Let the sidebar fill the full workspace height like Pink Mode. Extra controls make it grow naturally. */
@media(min-width:701px){
  .workspace{align-items:stretch!important}
  .workspace>aside{align-self:stretch!important;min-height:100%}
}

.history-entry small{line-height:1.6}.history-entry{white-space:normal}

.history-heading{align-items:flex-start}.history-title-actions{display:flex;align-items:center;flex-wrap:wrap;gap:10px}.history-title-actions h2{margin:0}.history-title-actions #deleteUnarchived{padding:7px 10px;font-size:11px;line-height:1.3}.history-title-actions #deleteUnarchived:disabled{opacity:.45;cursor:default}
.history-item{margin-top:10px;padding:12px 14px;border:1px solid #594050;border-radius:9px}.history-item.archived{border-color:#786b30;background:#292512}.history-item-top{display:flex;align-items:center;gap:10px}.history-entry{display:block;flex:1;width:auto;min-width:0;margin:0;padding:3px 0;border:0;background:transparent;text-align:left}.history-entry:hover{border-color:transparent;color:#ff85c6}.history-item small{display:block;margin-top:6px;line-height:1.5}.history-item-actions{display:flex;align-items:center;gap:6px;flex-shrink:0}.history-icon{width:32px;height:32px;padding:6px;display:grid;place-items:center;border-radius:7px}.history-icon svg{width:18px;height:18px;fill:none;stroke:currentColor;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round}.archive-toggle[aria-pressed=true]{color:#ffd96a;border-color:#887231;background:#302913}.history-delete{color:#ff9292}.history-delete:disabled{opacity:.25;cursor:not-allowed}
.history-entry:hover{color:#c5ef86}

/* YojuCC guestbook palette: warm paper, plum, and muted olive */
#guestbookDialog{background:#fafaf6!important;color:#292a25!important;border-color:#e5e9c9!important;box-shadow:0 24px 80px #27251e44!important}
#guestbookDialog::backdrop{background:#22251dcc!important}
.guestbook-heading{border-bottom-color:#e1e5c6!important}
.guestbook-heading small{color:#8058cf!important;letter-spacing:.2px!important;font-size:12px!important}
.guestbook-secret-link{color:#8058cf!important;text-decoration:none;margin-right:7px;font-size:15px;letter-spacing:0!important}
.guestbook-secret-link:hover{color:#5f3aa8!important}
.guestbook-heading h2{color:#2b2c27!important}
.guestbook-heading button{color:#71834f!important}
.guestbook-note{color:#62645c!important}
.guestbook-email{color:#71834f!important;font-weight:600}
