*{box-sizing:border-box;margin:0;padding:0}:root{--safe-area-inset-top: env(safe-area-inset-top);--safe-area-inset-right: env(safe-area-inset-right);--safe-area-inset-bottom: env(safe-area-inset-bottom);--safe-area-inset-left: env(safe-area-inset-left);--bg-primary: #fafafa;--bg-secondary: #ffffff;--bg-tertiary: #f5f5f5;--border-color: #e0e0e0;--text-primary: #1a1a1a;--text-secondary: #666666;--text-tertiary: #999999;--button-bg: #1a1a1a;--button-text: #ffffff;--button-secondary-bg: #ffffff;--button-secondary-text: #1a1a1a;--button-secondary-hover: #f5f5f5;--input-bg: #ffffff;--input-border: #e0e0e0;--input-focus-border: #1a1a1a;--shadow-sm: 0 1px 3px rgba(0, 0, 0, .1);--shadow-md: 0 4px 6px rgba(0, 0, 0, .1);--export-btn-bg: #16a34a;--export-btn-hover: #15803d;--export-btn-active: #14532d;--export-btn-text: #ffffff;--logo-primary: #667eea;--logo-secondary: #764ba2;--logo-tertiary: #f093fb;--logo-accent: #fbff05}[data-theme=dark]{--bg-primary: #0f0f0f;--bg-secondary: #1a1a1a;--bg-tertiary: #252525;--border-color: #333333;--text-primary: #e5e5e5;--text-secondary: #a0a0a0;--text-tertiary: #666666;--button-bg: #e5e5e5;--button-text: #1a1a1a;--button-secondary-bg: #252525;--button-secondary-text: #e5e5e5;--button-secondary-hover: #333333;--input-bg: #252525;--input-border: #333333;--input-focus-border: #e5e5e5;--shadow-sm: 0 1px 3px rgba(0, 0, 0, .3);--shadow-md: 0 4px 6px rgba(0, 0, 0, .5);--export-btn-bg: #16a34a;--export-btn-hover: #22c55e;--export-btn-active: #15803d;--export-btn-text: #ffffff;--logo-primary: #8b9df8;--logo-secondary: #9d7dc9;--logo-tertiary: #ffb3fb;--logo-accent: #feff88}html{-webkit-text-size-adjust:100%;-moz-text-size-adjust:100%;text-size-adjust:100%;scroll-behavior:smooth;-webkit-overflow-scrolling:touch}body{margin:0;font-family:-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Oxygen,Ubuntu,Cantarell,Fira Sans,Droid Sans,Helvetica Neue,sans-serif;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale;background:var(--bg-primary);color:var(--text-primary);-webkit-user-select:none;user-select:none;-webkit-touch-callout:none;-webkit-tap-highlight-color:transparent;tap-highlight-color:transparent;-webkit-appearance:none;padding-top:var(--safe-area-inset-top);padding-bottom:var(--safe-area-inset-bottom);padding-left:var(--safe-area-inset-left);padding-right:var(--safe-area-inset-right)}input,textarea{-webkit-user-select:text;user-select:text}@supports not (view-transition-name: none){body{transition:background .3s ease,color .3s ease}}#root{min-height:100vh}@media(hover:none)and (pointer:coarse){*{touch-action:pan-x pan-y}}input[type=text],input[type=number],input[type=email],input[type=tel],input[type=url],input[type=search],textarea{-webkit-appearance:none;appearance:none;border-radius:0}@supports (-webkit-touch-callout: none){body,#root{min-height:-webkit-fill-available}}.mobile-panel-toggle,.mobile-export-btn,.mobile-fixed-controls{display:none}.desktop-only{display:block}.control-panel{width:360px;background:var(--bg-secondary);border-right:1px solid var(--border-color);overflow-y:auto;padding:20px;transition:background .3s ease,border-color .3s ease}.no-media{width:500px}.panel-section{margin-bottom:24px}.panel-fun{display:flex;flex-direction:column;padding:20px;height:100%}.fun-header{display:flex;align-items:center;gap:10px;margin-bottom:8px}.fun-emoji{font-size:24px;animation:peek 2s ease-in-out infinite}@keyframes peek{0%,to{transform:scale(1)}50%{transform:scale(1.2)}}.fun-title{font-size:16px;font-weight:600;color:var(--text-primary);margin:0;transition:color .3s ease}.fun-subtitle{font-size:13px;color:var(--text-secondary);margin:0 0 16px;transition:color .3s ease}.fun-video-container{flex:1;background:var(--bg-tertiary);border-radius:8px;overflow:hidden;display:flex;align-items:center;justify-content:center;border:1px solid var(--border-color);min-height:200px;position:relative}.fun-video{width:100%;height:100%;object-fit:fill}.video-loading-overlay{position:absolute;inset:0;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:12px;background:var(--bg-tertiary);color:var(--text-secondary);z-index:1}.loading-spinner{width:30px;height:30px;border:3px solid var(--border-color);border-top-color:var(--button-bg);border-radius:50%;animation:spin .8s linear infinite}.video-error{font-size:13px;color:var(--text-tertiary)}.fun-social{display:flex;justify-content:center;align-items:center;gap:20px;margin-top:16px;padding-top:12px}.social-link{display:flex;align-items:center;justify-content:center;width:36px;height:36px;border-radius:8px;background:var(--bg-tertiary);color:var(--text-secondary);text-decoration:none;transition:all .3s ease;border:1px solid var(--border-color)}.social-link:hover{background:var(--button-secondary-hover);color:var(--text-primary);transform:translateY(-2px);box-shadow:0 4px 8px #0000001a}.social-link:active{transform:translateY(0)}.panel-section h3{font-size:13px;font-weight:600;color:var(--text-secondary);text-transform:uppercase;letter-spacing:.5px;margin:0 0 12px;transition:color .3s ease}.file-upload-btn{display:block;width:100%;padding:10px 16px;background:var(--button-bg);color:var(--button-text);border:none;border-radius:6px;cursor:pointer;font-size:14px;font-weight:500;text-align:center;transition:all .2s;-webkit-user-select:none;user-select:none;-webkit-tap-highlight-color:transparent;touch-action:manipulation}.file-upload-btn:hover{opacity:.85}.file-upload-btn:active{transform:scale(.98)}.file-upload-btn.secondary{background:var(--button-secondary-bg);color:var(--button-secondary-text);border:1px solid var(--border-color)}.file-upload-btn.secondary:hover{background:var(--button-secondary-hover)}.button-group{display:flex;gap:8px;width:100%}.button-group button{flex:1;padding:10px 16px;background:var(--button-secondary-bg);color:var(--button-secondary-text);border:1px solid var(--border-color);border-radius:6px;cursor:pointer;font-size:14px;font-weight:500;transition:all .2s;-webkit-user-select:none;user-select:none;-webkit-tap-highlight-color:transparent;touch-action:manipulation}.button-group button:hover{background:var(--button-secondary-hover);border-color:var(--input-focus-border)}.button-group button:active{transform:scale(.97)}.button-group button.active{background:var(--button-bg);color:var(--button-text);border-color:var(--button-bg)}.control-item{margin-bottom:16px}.control-item input[type=text],.control-item textarea{width:100%;padding:8px 12px;border:1px solid var(--input-border);border-radius:6px;font-size:14px;font-family:inherit;background:var(--input-bg);color:var(--text-primary);transition:all .2s;resize:vertical;-webkit-appearance:none;appearance:none}.control-item input[type=text]:focus,.control-item textarea:focus{outline:none;border-color:var(--input-focus-border)}.control-item input[type=range]{width:100%;height:4px;border-radius:2px;background:var(--border-color);outline:none;-webkit-appearance:none;appearance:none}.control-item input[type=range]::-webkit-slider-thumb{-webkit-appearance:none;width:16px;height:16px;border-radius:50%;background:var(--button-bg);cursor:pointer;transition:transform .2s}.control-item input[type=range]::-webkit-slider-thumb:hover{transform:scale(1.1)}.control-item input[type=range]::-moz-range-thumb{width:16px;height:16px;border-radius:50%;background:var(--button-bg);cursor:pointer;border:none;transition:transform .2s}.control-item input[type=range]::-moz-range-thumb:hover{transform:scale(1.1)}.color-picker-wrapper{display:flex;align-items:center;gap:12px;padding:12px;background:var(--bg-tertiary);border:1px solid var(--border-color);border-radius:8px;transition:all .3s;position:relative}.color-picker-wrapper:hover{border-color:var(--input-focus-border);box-shadow:0 2px 8px #0000001a}.color-input{position:absolute;opacity:0;width:1px;height:1px;pointer-events:none}.color-preview{width:48px;height:48px;border-radius:8px;border:2px solid var(--border-color);cursor:pointer;transition:all .3s cubic-bezier(.4,0,.2,1);box-shadow:inset 0 2px 4px #0000001a,0 2px 8px #00000026;position:relative;overflow:hidden;flex-shrink:0}.color-preview:before{content:"";position:absolute;inset:0;background-image:linear-gradient(45deg,#ccc 25%,transparent 25%),linear-gradient(-45deg,#ccc 25%,transparent 25%),linear-gradient(45deg,transparent 75%,#ccc 75%),linear-gradient(-45deg,transparent 75%,#ccc 75%);background-size:8px 8px;background-position:0 0,0 4px,4px -4px,-4px 0px;z-index:-1}.color-preview:hover{transform:scale(1.05);border-color:var(--input-focus-border);box-shadow:inset 0 2px 4px #0000001a,0 4px 12px #0003}.color-preview:active{transform:scale(.98)}.color-value{font-family:Monaco,Menlo,Consolas,monospace;font-size:12px;font-weight:600;color:var(--text-secondary);text-transform:uppercase;letter-spacing:.5px;flex:1;-webkit-user-select:text;user-select:text;padding:8px 12px;background:var(--bg-secondary);border-radius:6px;border:1px solid var(--border-color);transition:all .2s}.control-item input[type=color]{width:100%;height:40px;border:1px solid var(--input-border);border-radius:6px;cursor:pointer;transition:border-color .2s}.control-item input[type=color]:hover{border-color:var(--input-focus-border)}.center-btn{width:100%;padding:10px 16px;background:var(--button-secondary-bg);color:var(--button-secondary-text);border:1px solid var(--border-color);border-radius:6px;cursor:pointer;font-size:14px;font-weight:500;transition:all .2s;-webkit-user-select:none;user-select:none;-webkit-tap-highlight-color:transparent;touch-action:manipulation}.center-btn:hover{background:var(--button-secondary-hover);border-color:var(--input-focus-border)}.center-btn:active{transform:scale(.98)}.export-btn{width:100%;padding:10px 16px;background:var(--export-btn-bg);color:var(--export-btn-text);border:none;border-radius:6px;cursor:pointer;font-size:14px;font-weight:600;transition:all .3s ease;position:relative;display:flex;align-items:center;justify-content:center;gap:8px;box-shadow:0 2px 4px #0000001a}.export-btn:hover{background:var(--export-btn-hover);box-shadow:0 4px 8px #00000026;transform:translateY(-1px)}.export-btn:active{background:var(--export-btn-active);box-shadow:0 1px 2px #0000001a;transform:translateY(0)}.export-btn:disabled,.export-btn.exporting{background:var(--text-tertiary);color:var(--bg-secondary);cursor:not-allowed;transform:none;box-shadow:none;opacity:.6}.export-btn.exporting:before{content:"";width:14px;height:14px;border:2px solid currentColor;border-top-color:transparent;border-radius:50%;animation:spin .6s linear infinite}.checkbox-wrapper{display:flex;align-items:center;gap:10px;position:relative}.hidden-checkbox{display:none!important}.cbx-label{position:relative;width:20px;height:20px;border:1px solid var(--border-color);border-radius:4px;cursor:pointer;display:block;transition:all .1s ease;flex-shrink:0;background:var(--input-bg)}.cbx-label:after{content:"";position:absolute;top:1px;left:6px;width:5px;height:10px;opacity:0;transform:rotate(45deg) scale(0);border-right:2px solid #fff;border-bottom:2px solid #fff;transition:all .3s ease;transition-delay:.15s}.cbx-label:hover{border-color:var(--text-secondary)}.hidden-checkbox:checked+.cbx-label{border-color:transparent;background:var(--button-bg);animation:jelly .6s ease}.hidden-checkbox:checked+.cbx-label:after{opacity:1;transform:rotate(45deg) scale(1)}.checkbox-text{font-size:14px;color:var(--text-primary);font-weight:500;cursor:pointer;-webkit-user-select:none;user-select:none;transition:color .3s ease}@keyframes jelly{0%{transform:scale(1)}30%{transform:scale(1.25,.75)}40%{transform:scale(.75,1.25)}50%{transform:scale(1.15,.85)}65%{transform:scale(.95,1.05)}75%{transform:scale(1.05,.95)}to{transform:scale(1)}}.control-panel::-webkit-scrollbar{width:8px}.control-panel::-webkit-scrollbar-track{background:var(--bg-tertiary)}.control-panel::-webkit-scrollbar-thumb{background:var(--border-color);border-radius:4px}.control-panel::-webkit-scrollbar-thumb:hover{background:var(--text-tertiary)}@media(max-width:1024px){.desktop-only,.control-panel{display:none}.mobile-control-bar{background:var(--bg-secondary);border-top:1px solid var(--border-color);padding:16px;width:100%}.mobile-control-bar .panel-section{margin-bottom:14px}.mobile-control-bar .panel-section:last-child{margin-bottom:0}.mobile-control-bar .panel-section h3{font-size:12px;margin-bottom:8px;font-weight:600}.mobile-control-bar .button-group{gap:8px;display:grid;grid-template-columns:1fr 1fr}.mobile-control-bar .button-group button{font-size:13px;padding:8px 10px;min-height:36px}.mobile-control-bar .control-item{margin-bottom:10px}.mobile-control-bar .control-item:last-child{margin-bottom:0}.mobile-control-bar .control-item input[type=text],.mobile-control-bar .control-item textarea{font-size:14px;padding:8px 10px;min-height:38px}.mobile-control-bar .control-item textarea{min-height:55px;resize:vertical}.mobile-control-bar .control-item input[type=color]{height:36px}.mobile-control-bar .control-item input[type=range]{margin-top:0}.mobile-control-bar .file-upload-btn,.mobile-control-bar .center-btn{font-size:13px;padding:8px 12px;min-height:36px}}@media(max-width:768px){.mobile-control-bar{padding:12px}.mobile-control-bar .panel-section{margin-bottom:12px}.mobile-control-bar .panel-section h3{font-size:11px;margin-bottom:6px}.mobile-control-bar .control-item{margin-bottom:10px}}@media(max-width:480px){.mobile-control-bar{padding:10px}.mobile-control-bar .panel-section{margin-bottom:10px}.mobile-control-bar .panel-section h3{font-size:10px;margin-bottom:5px}.mobile-control-bar .button-group{gap:6px}.mobile-control-bar .button-group button{font-size:12px;min-height:32px}.mobile-control-bar .control-item{margin-bottom:8px}.mobile-control-bar .control-item label{font-size:12px;margin-bottom:3px}.mobile-control-bar .control-item input[type=text],.mobile-control-bar .control-item textarea{padding:6px 8px;min-height:34px;font-size:13px}.mobile-control-bar .control-item textarea{min-height:50px}.mobile-control-bar .file-upload-btn,.mobile-control-bar .center-btn{font-size:12px;min-height:32px}}.canvas-container{display:flex;flex-direction:column;align-items:center;gap:16px;position:relative;z-index:1}.konva-stage{border:1px solid var(--border-color);border-radius:4px;background:var(--bg-secondary);max-width:100%;height:auto;transition:all .3s ease;touch-action:none}.canvas-tips{padding:8px 16px;background:var(--bg-tertiary);color:var(--text-secondary);border-radius:4px;font-size:13px;text-align:center;transition:all .3s ease;-webkit-user-select:none;user-select:none}@media(max-width:1024px){.canvas-container{gap:10px;padding:0}.konva-stage{max-width:100%;height:auto;border-radius:8px}}@media(max-width:768px){.canvas-container{gap:8px}.konva-stage{border-radius:6px}.canvas-tips{font-size:12px;padding:6px 10px}}@media(max-width:480px){.canvas-container{gap:6px}.canvas-tips{font-size:11px;padding:5px 8px}}.empty-state{text-align:center;max-width:400px;cursor:pointer;transition:opacity .2s}.empty-state:hover{opacity:.8}.empty-icon{font-size:64px;margin-bottom:16px;opacity:.3;filter:grayscale(0);transition:filter .3s ease}.empty-state h2{font-size:20px;font-weight:600;color:var(--text-primary);margin:0 0 8px;transition:color .3s ease}.empty-state p{font-size:14px;color:var(--text-secondary);margin:0;transition:color .3s ease}@media(max-width:768px){.empty-state{margin-top:50%}.empty-icon{font-size:48px}.empty-state h2{font-size:18px}.empty-state p{font-size:13px}}.theme-switch{font-size:17px;position:relative;display:inline-block;width:3.5em;height:2em;cursor:pointer;flex-shrink:0;view-transition-name:theme-switch}@media(max-width:480px){.theme-switch{font-size:15px}}.theme-switch input{opacity:0;width:0;height:0}.slider{--background: #20262c;position:absolute;cursor:pointer;inset:0;background-color:var(--background);transition:.5s;border-radius:30px}.slider:before{position:absolute;content:"";height:1.4em;width:1.4em;border-radius:50%;left:10%;bottom:15%;box-shadow:inset 8px -4px #ececd9,-4px 1px 4px #dadada;background:var(--background);transition:.5s}.decoration{position:absolute;content:"";height:2px;width:2px;border-radius:50%;right:20%;top:15%;background:#e5f041e6;-webkit-backdrop-filter:blur(10px);backdrop-filter:blur(10px);transition:all .5s;box-shadow:-7px 10px #e5f041e6,8px 15px #e5f041e6,-17px 1px #e5f041e6,-20px 10px #e5f041e6,-7px 23px #e5f041e6,-15px 25px #e5f041e6}input:checked~.decoration{transform:translate(-20px);width:10px;height:10px;background:#fff;box-shadow:-12px 0 #fff,-6px 0 0 1.6px #fff,5px 15px 0 1px #fff,1px 17px #fff,10px 17px #fff}input:checked+.slider{background-color:#5494de}input:checked+.slider:before{transform:translate(100%);box-shadow:inset 15px -4px 0 15px #efdf2b,0 0 10px #efdf2b}.app-container{height:100vh;background:var(--bg-primary);display:flex;flex-direction:column;overflow:hidden}.app-header{position:fixed;top:0;left:0;right:0;background:var(--bg-secondary);border-bottom:1px solid var(--border-color);padding:24px 32px;flex-shrink:0;z-index:1000}@supports not (view-transition-name: none){.app-container{transition:background .3s ease}.app-header{transition:background .3s ease,border-color .3s ease}}.header-content{display:flex;justify-content:space-between;align-items:center;max-width:100%}.header-left{display:flex;align-items:center;gap:16px}.app-logo{width:48px;height:48px;flex-shrink:0}.app-header h1{font-size:24px;font-weight:600;color:var(--text-primary);margin:0 0 4px}.app-header p{font-size:14px;color:var(--text-secondary);margin:0}@supports not (view-transition-name: none){.app-header h1,.app-header p{transition:color .3s ease}}.main-content{display:flex;flex:1;overflow:hidden;margin-top:96px}.preview-area{flex:1;display:flex;flex-direction:column;align-items:center;justify-content:center;padding:40px;overflow:auto}.mobile-layout-wrapper{flex:1;display:flex;flex-direction:column;width:100%}@media(max-width:1024px){.app-container{height:auto;min-height:100vh;overflow:visible}.main-content{flex-direction:column;overflow:visible;min-height:calc(100vh - 88px);padding-bottom:80px;margin-top:72px}.mobile-layout-wrapper{display:flex;flex-direction:column;width:100%}.preview-area{flex:0 0 auto;padding:20px 16px;display:flex;align-items:center;justify-content:center;min-height:40vh;overflow:visible}}@media(max-width:768px){.app-header{padding:14px 16px}.header-content{gap:12px;align-items:flex-start}.header-left{gap:12px}.app-logo{width:40px;height:40px}.app-header h1{font-size:18px}.app-header p{font-size:13px;display:none}.preview-area{padding:12px}}@media(max-width:480px){.app-header{padding:10px 12px}.header-content{gap:8px;align-items:center}.header-left{gap:10px}.app-logo{width:36px;height:36px}.app-header h1{font-size:16px;margin-bottom:0}.app-header p{display:none}.preview-area{padding:10px}}::view-transition-old(root),::view-transition-new(root){animation:none;mix-blend-mode:normal}::view-transition-old(root){z-index:1}::view-transition-new(root){z-index:2147483646}.mobile-export-bar{position:fixed;bottom:0;left:0;right:0;padding:12px 16px 16px;background:var(--bg-secondary);border-top:1px solid var(--border-color);z-index:1100;box-shadow:0 -2px 10px #0000001a;-webkit-backdrop-filter:blur(10px);backdrop-filter:blur(10px)}.mobile-export-btn{width:100%;padding:14px 24px;font-size:16px;font-weight:600;color:var(--export-btn-text);background:var(--export-btn-bg);border:none;border-radius:12px;cursor:pointer;transition:all .2s ease;box-shadow:0 2px 8px #16a34a4d;position:relative;display:flex;align-items:center;justify-content:center;gap:8px;-webkit-user-select:none;user-select:none;-webkit-tap-highlight-color:transparent;touch-action:manipulation}.mobile-export-btn:hover{background:var(--export-btn-hover);transform:translateY(-1px);box-shadow:0 4px 12px #16a34a66}.mobile-export-btn:active{background:var(--export-btn-active);transform:translateY(0)}.mobile-export-btn:disabled{opacity:.6;cursor:not-allowed;transform:none}.mobile-export-btn.exporting{background:var(--export-btn-active);pointer-events:none}.mobile-export-btn.exporting:before{content:"";width:16px;height:16px;border:2px solid currentColor;border-top-color:transparent;border-radius:50%;animation:spin .6s linear infinite}@keyframes spin{to{transform:rotate(360deg)}}@supports not (view-transition-name: none){.mobile-export-bar{transition:background .3s ease,border-color .3s ease}}
