        :root {
            --accent-gradient: linear-gradient(to right, #38bdf8, #34d399);
            --accent-color: #38bdf8;
            --accent-color-transparent: rgba(56, 189, 248, 0.4);
            --bg-simple-color: #111827; /* gray-900 */
            --bg-gradient-color-1: rgb(28, 39, 98);
            --bg-gradient-color-2: rgb(74, 25, 86);
            --bg-gradient-color-3: rgb(21, 58, 82);
        }

        @font-face {
            font-family: 'PokemonFont';
            src: url('./assets/pokemonfont.ttf') format('truetype');
        }
        @font-face {
            font-family: 'SugarPie';
            src: url('./assets/sugarpie.ttf') format('truetype');
        }

        /* --- Global & Typography --- */
        body {
            font-family: 'Inter', sans-serif;
            -webkit-font-smoothing: antialiased;
            -moz-osx-font-smoothing: grayscale;
        }

        /* --- Animated Fluent Background --- */
        body::before {
            content: '';
            position: fixed;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            background: radial-gradient(circle at 10% 20%, var(--bg-gradient-color-1) 0%, rgba(0,0,0,0) 40%),
                        radial-gradient(circle at 90% 80%, var(--bg-gradient-color-2) 0%, rgba(0,0,0,0) 45%),
                        radial-gradient(circle at 50% 50%, var(--bg-gradient-color-3) 0%, rgba(0,0,0,0) 40%);
            background-size: 200% 200%;
            animation: moveGradient 25s ease infinite;
            z-index: -1; /* Place it behind all content */
        }

        @keyframes moveGradient {
            0% { background-position: 0% 50%; }
            50% { background-position: 100% 50%; }
            100% { background-position: 0% 50%; }
        }

        /* --- Dithering/Noise Overlay to prevent color banding --- */
        body::after {
            content: '';
            position: fixed;
            top: 0;
            left: 0;
            width: 100vw;
            height: 100vh;
            /* An inline SVG creating a tileable noise texture */
            background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 250 250' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noiseFilter'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='6' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noiseFilter)'/%3E%3C/svg%3E");
            background-repeat: repeat;
            opacity: 0.03; /* Very subtle, just enough to break up bands */
            pointer-events: none; /* Make sure it doesn't interfere with mouse events */
            z-index: -1; /* Place it on top of the gradient, but behind content */
        }

        /* --- Simple Background Mode --- */
        body.simple-background {
            background-color: var(--bg-simple-color);
        }
        body.simple-background::before,
        body.simple-background::after {
            display: none;
        }

        /* --- Breathing Glow Animation for CTA Button --- */
        #generateBtn:not(:disabled) {
            animation: breathing-glow 3s ease-in-out infinite;
        }

        @keyframes breathing-glow {
            0%, 100% {
                box-shadow: 0 0 10px rgba(0,0,0,0.2), 0 0 0px var(--accent-color-transparent);
            }
            50% {
                box-shadow: 0 0 20px rgba(0,0,0,0.2), 0 0 15px var(--accent-color-transparent);
            }
        }
        .accent-gradient {
            background-image: var(--accent-gradient);
        }
        
        /* --- Custom Scrollbars --- */
        .no-scrollbar::-webkit-scrollbar { display: none; }
        .no-scrollbar { -ms-overflow-style: none; scrollbar-width: none; }

        #debugLogContainer::-webkit-scrollbar, #searchResults::-webkit-scrollbar { width: 6px; }
        #debugLogContainer::-webkit-scrollbar-track, #searchResults::-webkit-scrollbar-track { background: transparent; }
        #debugLogContainer::-webkit-scrollbar-thumb, #searchResults::-webkit-scrollbar-thumb { background-color: #4b5563; border-radius: 20px; }

        /* --- Form Elements Overhaul --- */
        .input-base, .select-base {
            background-color: #1f2937; /* gray-800 */
            border: 1px solid rgba(55, 65, 81, 0.6); /* gray-700 with transparency */
            transition: all 0.2s ease-in-out;
        }
        .input-base:focus, .select-base:focus {
            outline: none;
            border-color: var(--accent-color);
            box-shadow: 0 0 0 3px var(--accent-color-transparent);
        }
        .select-base {
            background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 20 20'%3e%3cpath stroke='%236b7280' stroke-linecap='round' stroke-linejoin='round' stroke-width='1.5' d='M6 8l4 4 4-4'/%3e%3c/svg%3e");
            background-position: right 0.5rem center;
            background-repeat: no-repeat;
            background-size: 1.5em 1.5em;
            -webkit-appearance: none;
            -moz-appearance: none;
            appearance: none;
        }

        /* --- Editable Value Inputs --- */
        .value-input {
            background: transparent;
            border: 1px solid transparent;
            color: inherit;
            font-size: inherit;
            font-family: inherit;
            border-radius: 4px;
            padding: 0 4px;
            transition: all 0.2s ease-in-out;
            text-align: right;
        }
        .value-input:hover, .value-input:focus {
            background: #374151; /* gray-700 */
            border-color: #4b5563; /* gray-600 */
        }
        .value-input:focus {
            border-color: var(--accent-color);
            box-shadow: 0 0 0 2px var(--accent-color-transparent);
        }
        .value-input::-webkit-outer-spin-button,
        .value-input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
        .value-input { 
            -moz-appearance: textfield;
            appearance: textfield;
        }
        
        /* --- Custom Toggles --- */
        .peer:checked + .toggle-bg {
            background-image: var(--accent-gradient);
            border-color: transparent;
        }
        .toggle-bg {
            transition: all 0.2s ease-in-out;
        }

        /* --- Custom Sliders --- */
        input[type="range"].custom-slider {
            -webkit-appearance: none;
            appearance: none;
            width: 100%;
            height: 6px;
            background: #374151;
            border-radius: 5px;
            outline: none;
            transition: opacity .2s;
        }
        input[type="range"].custom-slider::-webkit-slider-thumb {
            -webkit-appearance: none;
            appearance: none;
            width: 20px;
            height: 20px;
            background: #ffffff;
            border-radius: 50%;
            cursor: pointer;
            border: 2px solid var(--accent-color);
            box-shadow: 0 0 0 3px rgba(255,255,255,0.2);
            transition: transform 0.2s ease;
        }
        input[type="range"].custom-slider:hover::-webkit-slider-thumb {
            transform: scale(1.1);
        }
        input[type="range"].custom-slider::-moz-range-thumb {
            width: 20px;
            height: 20px;
            background: #ffffff;
            border-radius: 50%;
            cursor: pointer;
            border: 2px solid #374151;
            box-shadow: 0 0 0 2px #1f2937;
        }

        /* --- Other Styles --- */
        .drop-zone { 
            border: 2px dashed rgba(75, 85, 99, 0.6); /* gray-600 with transparency */
            border-radius: 8px; /* rounded-lg equivalent */
        }
        .drop-zone.drag-over { background-color: rgba(56, 189, 248, 0.1); border-color: var(--accent-color); } /* Using accent color for drag-over */
        #searchResults { max-height: 200px; }
        #colorInput, #textColorOverrideInput { -webkit-appearance: none; -moz-appearance: none; appearance: none; width: 36px; height: 36px; padding: 0; border: none; border-radius: 50%; cursor: pointer; }
        #colorInput::-webkit-color-swatch-wrapper, #textColorOverrideInput::-webkit-color-swatch-wrapper { padding: 0; }
        #colorInput::-webkit-color-swatch, #textColorOverrideInput::-webkit-color-swatch { border: 2px solid #374151; border-radius: 50%; }