:root{--background-color: #121212;--surface-color: #1e1e1e;--primary-color: #6200ee;--primary-variant-color: #3700b3;--secondary-color: #03dac6;--text-color: #ffffff;--text-color-secondary: #b3b3b3;--error-color: #cf6679;--border-radius: 12px;--box-shadow: 0 4px 6px rgba(0, 0, 0, .1)}*{box-sizing:border-box;margin:0;padding:0}html{scroll-behavior:smooth}body{font-family:Poppins,sans-serif;background-color:var(--background-color);color:var(--text-color);display:flex;justify-content:center;align-items:flex-start;min-height:100vh;padding:1rem;overflow-x:hidden}body.noscroll{overflow:hidden;overscroll-behavior:contain}#root{width:100%;max-width:800px;display:flex;flex-direction:column;gap:1.5rem;overflow-x:hidden;position:relative}.container{background-color:var(--surface-color);padding:1.5rem;border-radius:var(--border-radius);box-shadow:var(--box-shadow);display:flex;flex-direction:column;gap:1rem}.header{display:flex;justify-content:space-between;align-items:center;gap:1rem}.header-content{text-align:left}.header h1{font-size:1.75rem;font-weight:700;background:linear-gradient(90deg,var(--primary-color),var(--secondary-color));-webkit-background-clip:text;-webkit-text-fill-color:transparent}.header p{color:var(--text-color-secondary);font-size:.9rem;margin-top:.25rem}.upload-section{text-align:center;padding:2rem;border:2px dashed var(--primary-variant-color);border-radius:var(--border-radius);cursor:pointer;transition:background-color .3s}.upload-section:hover{background-color:#6200ee1a}.upload-section p{font-weight:600;color:var(--secondary-color)}input[type=file]{display:none}.main-content-split{display:flex;gap:1.5rem;align-items:flex-start}.left-column,.right-column{flex:1;display:flex;flex-direction:column;gap:1.5rem}.image-preview-container{width:100%;text-align:center;background-color:var(--surface-color);padding:1rem;border-radius:var(--border-radius);box-shadow:var(--box-shadow);position:relative}.image-preview-container img{max-width:100%;max-height:350px;border-radius:var(--border-radius);object-fit:contain}.delete-image-btn{position:absolute;top:.5rem;right:.5rem;width:28px;height:28px;background-color:#0009;color:#fff;border:none;border-radius:50%;font-size:1.25rem;font-weight:700;line-height:26px;text-align:center;cursor:pointer;transition:background-color .3s,transform .2s;z-index:10}.delete-image-btn:hover{background-color:var(--error-color);transform:scale(1.1)}.styles-grid{display:grid;grid-template-columns:repeat(2,1fr);gap:1rem}.style-card{background-color:var(--background-color);padding:1rem;border-radius:var(--border-radius);border:2px solid transparent;cursor:pointer;text-align:center;font-weight:600;transition:all .3s;display:flex;align-items:center;justify-content:center;min-height:80px}.style-card:hover{transform:translateY(-5px);box-shadow:0 6px 10px #0003}.style-card.selected{border-color:var(--secondary-color);box-shadow:0 0 10px #03dac680}.btn{background-color:var(--primary-color);color:var(--text-color);border:none;padding:.8rem 1.5rem;border-radius:var(--border-radius);font-size:1rem;font-weight:600;cursor:pointer;transition:background-color .3s,transform .2s;width:100%;text-align:center}.btn:hover{background-color:var(--primary-variant-color)}.btn:disabled{background-color:#444;cursor:not-allowed;transform:none}.btn-secondary{background-color:var(--surface-color);border:2px solid var(--primary-color)}.btn-secondary:hover{background-color:#6200ee1a}.btn-delete{background-color:var(--error-color);border:none}.btn-delete:hover{background-color:#b04d5f}.loader-container,.result-container{display:flex;flex-direction:column;justify-content:center;align-items:center;gap:1rem;min-height:300px}.loader{border:4px solid #f3f3f3;border-top:4px solid var(--secondary-color);border-radius:50%;width:50px;height:50px;animation:spin 1s linear infinite}@keyframes spin{0%{transform:rotate(0)}to{transform:rotate(360deg)}}.canvas-container{max-width:100%;max-height:50vh;display:flex;justify-content:center;align-items:center}.canvas-container canvas{max-width:100%;max-height:50vh;object-fit:contain;border-radius:var(--border-radius);box-shadow:var(--box-shadow)}.error-message{color:var(--text-color);background-color:#cf667940;border:1px solid var(--error-color);padding:1rem;border-radius:var(--border-radius);text-align:center;font-weight:600}.section-title{color:var(--text-color-secondary);font-weight:600;text-align:center;margin-bottom:.5rem}.mode-selector{display:flex;background-color:var(--background-color);border-radius:var(--border-radius);padding:.25rem;width:100%}.mode-selector button{flex:1;padding:.6rem 0;border:none;background-color:transparent;color:var(--text-color-secondary);font-weight:600;border-radius:calc(var(--border-radius) - 4px);cursor:pointer;transition:all .3s}.mode-selector button.active{background-color:var(--primary-color);color:var(--text-color);box-shadow:0 2px 4px #0003}.button-group{display:flex;gap:1rem;width:100%;max-width:500px}.surprise-reveal-text{text-align:center;color:var(--text-color-secondary);margin-top:-.5rem;margin-bottom:1rem}.surprise-reveal-text strong{color:var(--secondary-color);font-weight:700}.disabled-section{opacity:.4;pointer-events:none;filter:grayscale(80%);transition:all .3s ease}.disabled-section .style-card{cursor:not-allowed}.disabled-section .style-card:hover{transform:none;box-shadow:none}.desktop-generate-wrapper{display:block}.generate-button-wrapper{display:none}.editor-controls{display:flex;flex-direction:column;gap:1rem;width:100%;max-width:500px;background-color:var(--surface-color);padding:1rem;border-radius:var(--border-radius);animation:fadeIn .3s ease-out}.editor-group{display:flex;gap:1rem;width:100%;align-items:center}.editor-text-input,.editor-select{background-color:var(--background-color);border:1px solid var(--primary-variant-color);color:var(--text-color);padding:.6rem;border-radius:calc(var(--border-radius) - 4px);font-family:inherit;font-size:1rem}.editor-text-input{flex-grow:1}.editor-select{flex-shrink:0}.translation-group .btn{flex-shrink:0;width:auto;padding:.6rem 1rem;font-size:.9rem}.editor-sub-group{display:flex;flex-direction:column;gap:.5rem;flex:1}.editor-label{font-size:.8rem;color:var(--text-color-secondary);font-weight:600;margin-left:.25rem;flex-shrink:0}.editor-group>.editor-label{margin-left:0}.color-palette{display:flex;gap:.5rem;flex-wrap:wrap;align-items:center}.color-swatch{width:28px;height:28px;border-radius:50%;border:2px solid var(--surface-color);cursor:pointer;transition:transform .2s,box-shadow .2s;padding:0}.color-swatch:hover{transform:scale(1.15)}.color-swatch.selected{border-color:var(--secondary-color);box-shadow:0 0 8px var(--secondary-color);transform:scale(1.1)}.editor-select#font-select{width:100%}.editor-slider{-webkit-appearance:none;-moz-appearance:none;appearance:none;width:100%;height:8px;background:var(--background-color);outline:none;border-radius:4px;opacity:.7;transition:opacity .2s}.editor-slider:hover{opacity:1}.editor-slider::-webkit-slider-thumb{-webkit-appearance:none;-moz-appearance:none;appearance:none;width:20px;height:20px;background:var(--secondary-color);cursor:pointer;border-radius:50%;border:2px solid var(--surface-color)}.editor-slider::-moz-range-thumb{width:20px;height:20px;background:var(--secondary-color);cursor:pointer;border-radius:50%;border:2px solid var(--surface-color)}.gallery-button-container{flex-shrink:0}.gallery-button-container .btn-secondary{width:auto;padding:.6rem 1.2rem}.gallery-overlay{position:fixed;top:0;left:0;width:100%;height:100%;background-color:#000c;display:flex;justify-content:center;align-items:center;z-index:1000;padding:1rem}.gallery-modal{background-color:var(--surface-color);border-radius:var(--border-radius);padding:1.5rem;width:100%;max-width:900px;max-height:90vh;display:flex;flex-direction:column;gap:1rem;animation:fadeIn .3s ease-out}@keyframes fadeIn{0%{opacity:0;transform:scale(.95)}to{opacity:1;transform:scale(1)}}.gallery-header{display:flex;justify-content:space-between;align-items:center}.gallery-header h2{font-size:1.25rem;color:var(--text-color)}.gallery-close-btn,.gallery-back-btn{background:none;border:none;color:var(--text-color-secondary);font-size:1.5rem;cursor:pointer;transition:color .3s}.gallery-back-btn{font-size:1rem;font-weight:600}.gallery-close-btn:hover,.gallery-back-btn:hover{color:var(--text-color)}.gallery-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(120px,1fr));gap:1rem;overflow-y:auto;padding-right:.5rem}.gallery-item{aspect-ratio:1 / 1;background-color:var(--background-color);border-radius:var(--border-radius);cursor:pointer;transition:transform .3s,box-shadow .3s;overflow:hidden;position:relative}.gallery-item:hover{transform:scale(1.05);box-shadow:0 0 15px #03dac666}.gallery-item img{width:100%;height:100%;object-fit:cover}.gallery-item-actions{position:absolute;bottom:0;left:0;width:100%;padding:.5rem;display:flex;justify-content:space-between;align-items:center;background:linear-gradient(to top,rgba(0,0,0,.7),transparent);opacity:0;transition:opacity .3s ease;pointer-events:none}.gallery-item:hover .gallery-item-actions{opacity:1;pointer-events:auto}.gallery-action-btn{background:#ffffff26;-webkit-backdrop-filter:blur(4px);backdrop-filter:blur(4px);border:1px solid rgba(255,255,255,.2);border-radius:50%;width:36px;height:36px;display:flex;align-items:center;justify-content:center;cursor:pointer;transition:background-color .3s,transform .2s;color:#fff}.gallery-action-btn:hover{background:#ffffff4d;transform:scale(1.1)}.gallery-action-btn svg{width:18px;height:18px;stroke:currentColor}.gallery-action-btn.delete:hover{background-color:var(--error-color)}.gallery-empty-text{text-align:center;color:var(--text-color-secondary);padding:2rem}.gallery-detail-view{display:flex;flex-direction:column;gap:1rem;flex-grow:1;min-height:0}.gallery-detail-image{width:100%;max-width:100%;flex-grow:1;object-fit:contain;min-height:0}@media (max-width: 768px){#root{max-width:500px;padding-bottom:80px}.header{flex-direction:column;align-items:center;text-align:center}.header-content{text-align:center}.gallery-button-container{width:100%;margin-top:.5rem}.gallery-button-container .btn-secondary{width:100%}.main-content-split{flex-direction:column;gap:1rem}.right-column,.left-column{width:100%;gap:1rem}.right-column{scroll-margin-top:1rem}.desktop-generate-wrapper{display:none}.generate-button-wrapper{position:fixed;bottom:0;left:0;right:0;padding:1rem;background:linear-gradient(to top,var(--background-color) 70%,transparent);z-index:100;display:flex;justify-content:center;align-items:center;gap:1rem}.generate-button-wrapper .btn{width:100%;max-width:350px}.gallery-grid{grid-template-columns:repeat(auto-fill,minmax(100px,1fr))}.gallery-item-actions{opacity:1;pointer-events:auto}.button-group.main-action-buttons{flex-direction:column}.editor-controls{padding:.75rem}.editor-group{flex-direction:column;align-items:flex-start;gap:.5rem}.editor-group>.editor-label{width:100%;margin-left:.25rem}.editor-sub-group{width:100%}.color-palette{justify-content:space-around}.translation-group{flex-direction:column}.editor-slider{height:12px}.editor-slider::-webkit-slider-thumb{width:32px;height:32px}.editor-slider::-moz-range-thumb{width:32px;height:32px}}
