        /* -- reset & base -- */
        *,
        *::before,
        *::after {
            box-sizing: border-box;
            margin: 0;
            padding: 0;
        }
        a {
            text-decoration: none;
        }

        :root {
            --lbg: #ffffff;
            --bg: #f5f4ff;
            --bg-alt: #eeeeff;
            --surface: #ffffff;
            --surface-2: #f0efff;
            --surface-3: #e4e2ff;
            --text-1: #1a1740;
            --text-2: #4b4880;
            --text-3: #8b88c0;
            --text-4: #c4c2e8;
            --ac-start: #6366f1;
            --ac-end: #8b5cf6;
            --ac: #6366f1;
            --ac-lt: #818cf8;
            --ac-dk: #4f46e5;
            --ac-gradient: linear-gradient(135deg, #6366f1 0%, #8b5cf6 100%);
            --ac-gradient-subtle: linear-gradient(135deg, rgba(99, 102, 241, 0.12) 0%, rgba(139, 92, 246, 0.12) 100%);
            --ac-tint: rgba(99, 102, 241, 0.10);
            --ac-ring: rgba(99, 102, 241, 0.28);
            --bd: rgba(99, 102, 241, 0.08);
            --bd-md: rgba(99, 102, 241, 0.15);
            --bd-hi: rgba(99, 102, 241, 0.25);
            --e-1: 0 1px 4px rgba(99, 102, 241, 0.08);
            --e-2: 0 4px 20px rgba(99, 102, 241, 0.12);
            --header-bg: rgba(255, 255, 255, 0.82);
            --header-bd: rgba(99, 102, 241, 0.12);
            --r-pill: 9999px;
            --r-md: 10px;
            --r-lg: 18px;
            --sans: 'Plus Jakarta Sans', -apple-system, sans-serif;
            --mono: 'JetBrains Mono', monospace;
            --maxw: 1080px;
            --t-fast: 90ms;
            --t-base: 160ms;
            --bounce: cubic-bezier(0.34, 1.20, 0.64, 1);
            --font-style: var(--sans);
            --ink: #1b2433;
            --ink-2: #eef3f0;
            --ink-3: #dde8e2;
            --chrome: #263040;
            --chrome-2: #4a6070;
            --chrome-3: #7a9090;
            --spark: #e8a020;
            --spark-2: #c88010;
            --accent: #38a878;
            --danger: #d04455;
            --card: #f2f7f4;
            --card-2: #e4ede8;
            --border: rgba(38, 48, 64, 0.10);
            --border-2: rgba(38, 48, 64, 0.20);
            --glow: rgba(232, 160, 32, 0.12);
            --font-head: 'Rajdhani', sans-serif;
            --font-mono: 'Space Mono', monospace;
            --ftfamily: -apple-system, BlinkMacSystemFont, sans-serif;
            --shadow-spark: 0 0 0 1px var(--spark), 0 4px 28px rgba(232, 160, 32, 0.22);
            --shadow-accent: 0 0 0 1px var(--accent), 0 4px 28px rgba(56, 168, 120, 0.18);
        }

        .dark {
            --lbg: #0d0c1a;
            --bg: #0f0e1e;
            --bg-alt: #13122a;
            --surface: #171630;
            --surface-2: #1e1c38;
            --surface-3: #272547;
            --text-1: #eeeeff;
            --text-2: #a8a6d8;
            --text-3: #6563a0;
            --text-4: #332f5e;
            --bd: rgba(139, 92, 246, 0.10);
            --bd-md: rgba(139, 92, 246, 0.18);
            --bd-hi: rgba(139, 92, 246, 0.28);
            --e-1: 0 1px 4px rgba(0, 0, 0, 0.40);
            --e-2: 0 4px 20px rgba(0, 0, 0, 0.55);
            --header-bg: rgba(13, 12, 26, 0.88);
            --header-bd: rgba(139, 92, 246, 0.14);
            --ac-tint: rgba(139, 92, 246, 0.14);
            --ac-ring: rgba(139, 92, 246, 0.30);
            --ac-gradient-subtle: linear-gradient(135deg, rgba(99, 102, 241, 0.16) 0%, rgba(139, 92, 246, 0.16) 100%);
            --ink: #0e1a18;
            --ink-2: #162420;
            --ink-3: #1c2e2a;
            --chrome: #c8dcd6;
            --chrome-2: #8aaea8;
            --chrome-3: #5a7870;
            --spark: #f0b840;
            --spark-2: #d89820;
            --accent: #4ecf96;
            --danger: #ff5566;
            --bg: #0b1614;
            --card: #121e1c;
            --card-2: #1a2a26;
            --border: rgba(200, 220, 214, 0.08);
            --border-2: rgba(200, 220, 214, 0.16);
            --glow: rgba(240, 184, 64, 0.10);
            --shadow-spark: 0 0 0 1px var(--spark), 0 4px 32px rgba(240, 184, 64, 0.22);
            --shadow-accent: 0 0 0 1px var(--accent), 0 4px 32px rgba(78, 207, 150, 0.18);
        }

        html,
        body {
            height: 100%;
        }
        body {
            font-family: var(--sans);
            font-size: 15px;
            line-height: 1.65;
            color: var(--text-1);
            background: var(--bg);
            -webkit-font-smoothing: antialiased;
            padding-bottom: 60px;
            background-image: radial-gradient(circle at 20% 50%, rgba(99, 102, 241, 0.06) 0%, transparent 50%),
                radial-gradient(circle at 80% 20%, rgba(139, 92, 246, 0.06) 0%, transparent 40%),
                radial-gradient(rgba(99, 102, 241, 0.04) 1px, transparent 1px);
            background-size: 100% 100%, 100% 100%, 28px 28px;
            transition: background 0.2s, color 0.2s;
        }
        .dark body {
            background-image: radial-gradient(circle at 20% 50%, rgba(99, 102, 241, 0.08) 0%, transparent 50%),
                radial-gradient(circle at 80% 20%, rgba(139, 92, 246, 0.10) 0%, transparent 40%),
                radial-gradient(rgba(139, 92, 246, 0.05) 1px, transparent 1px);
        }

        h1 {
            font-size: 1.55rem;
            font-weight: 800;
            color: var(--text-1);
            line-height: 1.22;
            letter-spacing: -0.02em;
        }
        h2 {
            font-size: 1.1rem;
            font-weight: 700;
            color: var(--text-3);
            letter-spacing: 0.10em;
            text-transform: uppercase;
            margin: 10px 0 12px 0;
            display: flex;
            align-items: center;
            gap: 8px;
        }
        h2 svg {
            width: 20px;
            height: 20px;
            stroke: var(--ac);
            fill: none;
            stroke-width: 2;
        }
        .container {
            max-width: var(--maxw);
            margin: 0 auto;
            padding: 0 16px;
        }

        /* -- header -- */
        header {
            background: var(--header-bg);
            border-bottom: 1px solid var(--header-bd);
            backdrop-filter: blur(16px) saturate(180%);
            -webkit-backdrop-filter: blur(16px) saturate(180%);
            position: sticky;
            top: 0;
            z-index: 50;
            transition: background 0.2s, border-color 0.2s;
        }
        header::before {
            content: '';
            display: block;
            height: 2px;
            background: var(--ac-gradient);
            position: absolute;
            top: 0;
            left: 0;
            right: 0;
        }
        header .inner {
            max-width: var(--maxw);
            margin: 0 auto;
            padding: 0 16px;
            display: flex;
            align-items: center;
            justify-content: space-between;
            gap: 16px;
            height: 64px;
        }
        header .logo {
            display: flex;
            align-items: center;
            gap: 6px;
            font-family: var(--sans);
            font-size: 1.2rem;
            font-weight: 800;
            background: var(--ac-gradient);
            -webkit-background-clip: text;
            -webkit-text-fill-color: transparent;
            background-clip: text;
            letter-spacing: -0.02em;
        }
        header .logo svg {
            width: 28px;
            height: 28px;
            stroke: var(--ac);
            fill: none;
            stroke-width: 2.5;
            -webkit-text-fill-color: initial;
        }

        #themeToggle {
            display: inline-flex;
            align-items: center;
            gap: 6px;
            padding: 7px 18px;
            border-radius: var(--r-pill);
            border: 1px solid var(--bd-md);
            background: transparent;
            color: var(--text-2);
            font-family: var(--sans);
            font-size: 0.82rem;
            font-weight: 700;
            cursor: pointer;
            flex-shrink: 0;
            transition: background var(--t-fast), border-color var(--t-fast), color var(--t-fast);
        }
        #themeToggle:hover {
            background: var(--ac-tint);
            border-color: var(--ac);
            color: var(--ac);
        }
        .icon-moon {
            display: inline;
        }
        .icon-sun {
            display: none;
        }
        .label-dark {
            display: inline;
        }
        .label-light {
            display: none;
        }
        .dark .icon-moon {
            display: none;
        }
        .dark .icon-sun {
            display: inline;
        }
        .dark .label-dark {
            display: none;
        }
        .dark .label-light {
            display: inline;
        }

        /* -- top nav -- */
        #topMenu {
            display: flex;
            align-items: center;
            gap: 0;
            padding: 0;
            overflow-x: auto;
            white-space: nowrap;
            background: var(--surface);
            border-bottom: 1px solid var(--bd-md);
            box-shadow: var(--e-1);
            scrollbar-width: none;
            transition: background 0.2s, border-color 0.2s;
        }
        #topMenu::-webkit-scrollbar {
            display: none;
        }
        #topMenu a {
            display: inline-flex;
            align-items: center;
            justify-content: center;
            padding: 12px 20px;
            font-size: 0.85rem;
            font-weight: 600;
            color: var(--text-2);
            border-bottom: 2px solid transparent;
            transition: background var(--t-fast), color var(--t-fast), border-color var(--t-fast);
            flex: 1 0 auto;
        }
        #topMenu a:hover {
            background: var(--surface-2);
            color: var(--ac);
        }
        #topMenu a.active {
            background: var(--ac-tint);
            color: var(--ac);
            border-bottom-color: var(--ac);
            font-weight: 700;
        }

        /* -- input section -- */
        .input-section {
            display: flex;
            position: sticky;
            top: 64px;
            z-index: 40;
            gap: 6px;
            align-items: center;
            padding: 10px 8px;
            backdrop-filter: blur(16px) saturate(180%);
            -webkit-backdrop-filter: blur(16px) saturate(180%);
            border-bottom: 1px solid var(--bd);
            background: var(--header-bg);
            transition: background 0.2s, border-color 0.2s;
        }
        .input-section>div {
            flex: 1;
            position: relative;
        }
        .input-section textarea {
            width: 100%;
            padding: 12px 50px 12px 20px;
            border-radius: 20px;
            border: 2.5px solid blue;
            background: var(--surface);
            font-family: var(--sans);
            font-size: 1.1rem;
            font-weight: 500;
            color: var(--text-1);
            outline: none;
            text-align: center;
            resize: none;
            transition: border-color var(--t-base), background var(--t-fast), box-shadow var(--t-base);
            box-shadow: var(--e-1);
        }
        .input-section textarea:focus {
            border-color: var(--ac);
            background: var(--lbg);
            box-shadow: 0 0 0 4px var(--ac-ring), var(--e-2);
        }
        .input-section textarea::placeholder {
            color: var(--text-3);
        }
        #input-count {
            position: absolute;
            right: 14px;
            bottom: 11px;
            font-size: 9px;
            font-weight: 500;
            color: var(--text-3);
            letter-spacing: 0.06em;
            font-family: var(--mono);
            text-transform: uppercase;
            pointer-events: none;
        }
        .clear-overlay {
            position: absolute;
            right: 10px;
            top: 50%;
            transform: translateY(-50%);
            display: inline-flex;
            align-items: center;
            justify-content: center;
            width: 34px;
            height: 34px;
            border-radius: 50%;
            cursor: pointer;
            color: var(--text-3);
            background: transparent;
            border: none;
            font-size: 14px;
            font-weight: 700;
            transition: color var(--t-fast), background var(--t-fast);
        }
        .clear-overlay:hover {
            color: var(--ac);
            background: var(--ac-tint);
        }
        #menuBtn {
            width: 44px;
            height: 44px;
            border-radius: 50%;
            border: none;
            background: transparent;
            color: var(--text-1);
            font-size: 1.4rem;
            cursor: pointer;
            transition: background var(--t-fast), color var(--t-fast);
            flex-shrink: 0;
            display: inline-flex;
            align-items: center;
            justify-content: center;
        }
        #menuBtn:hover {
            background: var(--ac-tint);
            color: var(--ac);
        }

        /* -- random cloud -- */
        #randomcloud {
            text-align: center;
            padding: 12px 0;
            min-height: 60px;
            display: flex;
            flex-wrap: wrap;
            align-items: center;
            justify-content: center;
            gap: 8px 16px;
        }
        #randomcloud .cloud-item {
            background: transparent;
            border: none;
            display: inline-block;
            cursor: pointer;
            font-family: var(--sans);
            font-weight: 500;
            color: var(--text-2);
            font-size: 18px;
            padding: 4px 6px;
            transition: color var(--t-fast), transform var(--t-base) var(--bounce);
        }
        #randomcloud .cloud-item:hover {
            color: var(--ac);
            transform: scale(1.14);
        }

        /* -- font size controller -- */
        .font-size-controller {
            display: flex;
            align-items: center;
            gap: 14px;
            justify-content: flex-end;
            padding: 8px 0 12px 0;
        }
        .font-size-controller label {
            font-size: 0.68rem;
            font-weight: 700;
            color: var(--text-3);
            text-transform: uppercase;
            letter-spacing: 0.08em;
        }
        .font-size-controller input[type="range"] {
            width: 180px;
            height: 5px;
            background: var(--surface-3);
            border-radius: var(--r-pill);
            outline: none;
            appearance: none;
            -webkit-appearance: none;
            cursor: pointer;
        }
        .font-size-controller input[type="range"]::-webkit-slider-thumb {
            appearance: none;
            width: 16px;
            height: 16px;
            background: var(--ac-gradient);
            border: 2px solid var(--lbg);
            border-radius: 50%;
            cursor: grab;
            box-shadow: 0 0 0 2px var(--ac), 0 2px 8px rgba(99, 102, 241, 0.30);
            transition: transform var(--t-fast);
        }
        .font-size-controller input[type="range"]::-webkit-slider-thumb:hover {
            transform: scale(1.28);
        }

        /* -- grid -- */
        .grid ul {
            display: grid;
            padding: 0;
            margin: 0 0 20px 0;
            gap: 10px;
            grid-template-columns: repeat(2, 1fr);
            list-style: none;
        }
        @media (max-width:640px) {
            .grid ul {
                grid-template-columns: 1fr;
            }
        }

        .namestyles li {
            display: flex;
            align-items: stretch;
            position: relative;
            border-radius: var(--r-md);
            overflow: hidden;
            border: 1px solid var(--bd);
            background: var(--surface);
            box-shadow: var(--e-1);
            transition: background var(--t-fast), border-color var(--t-fast), box-shadow var(--t-fast), transform var(--t-fast);
        }
        .namestyles li:hover {
            border-color: var(--bd-hi);
            background: var(--surface-2);
            box-shadow: var(--e-2);
            transform: translateY(-1px);
        }
        .namestyles li p {
            padding: 14px 12px 28px 16px;
            color: var(--text-1);
            cursor: pointer;
            user-select: none;
            flex: 1;
            white-space: normal;
            word-break: break-word;
            font-family: var(--font-style);
            background: transparent;
            border: none;
            line-height: 1.5;
            font-size: 17px;
            margin: 0;
            transition: none;
        }
        .namestyles li p:hover {
            outline: none;
            background: transparent;
        }
        .namestyles li .meta {
            position: absolute;
            bottom: 4px;
            left: 16px;
            display: flex;
            gap: 6px;
            user-select: none;
            -webkit-user-select: none;
            font-size: 9px;
            color: var(--text-3);
            font-family: var(--mono);
            letter-spacing: 0.05em;
        }
        .namestyles li .deco-btn {
            display: inline-flex;
            align-items: center;
            justify-content: center;
            flex-shrink: 0;
            padding: 0 14px;
            font-size: 13px;
            color: var(--text-3);
            background: transparent;
            border: none;
            border-left: 1px solid var(--bd);
            cursor: pointer;
            border-radius: 0;
            font-weight: 600;
            line-height: 1.2;
            text-align: center;
            transition: background var(--t-fast), color var(--t-fast);
            min-width: 52px;
        }
        .namestyles li .deco-btn:hover {
            background: var(--ac-tint);
            color: var(--ac);
        }

        /* -- toast -- */
        .copied-toast {
            position: fixed;
            top: 20%;
            right: 0;
            z-index: 9999;
            padding: 12px 24px;
            background: var(--ac-gradient);
            border-radius: 8px 0 0 8px;
            color: #fff;
            font-weight: 700;
            font-size: 0.95rem;
            box-shadow: 0 4px 20px rgba(99, 102, 241, 0.40);
            animation: slideIn 0.18s var(--bounce);
            pointer-events: none;
        }
        .toast-copy {
            position: fixed;
            left: 50%;
            bottom: 190px;
            transform: translateX(-50%) translateY(10px);
            background: var(--surface);
            color: var(--text-1);
            padding: 10px 20px;
            border-radius: var(--r-pill);
            font-size: 0.8rem;
            font-family: var(--sans);
            font-weight: 600;
            letter-spacing: .03em;
            opacity: 0;
            pointer-events: none;
            transition: opacity .2s, transform .2s;
            z-index: 200;
            border: 1px solid var(--bd-md);
            box-shadow: var(--e-2);
        }
        .dark .toast-copy { background: var(--surface); color: var(--text-1); }
        .toast-copy.show { opacity: 1; transform: translateX(-50%) translateY(0); }
        @keyframes slideIn {
            from {
                transform: translateX(100%);
                opacity: 0;
            }
            to {
                transform: translateX(0);
                opacity: 1;
            }
        }

        /* -- side menu -- */
        .f-m {
            position: fixed;
            top: 0;
            right: 0;
            width: 340px;
            height: 100%;
            background: var(--surface);
            border-left: 1px solid var(--bd-md);
            box-shadow: -12px 0 48px rgba(99, 102, 241, 0.15);
            z-index: 9999;
            overflow-y: auto;
            padding: 20px 16px;
            transform: translateX(100%);
            transition: transform 0.22s var(--bounce), opacity 0.22s ease;
            opacity: 0;
            pointer-events: none;
        }
        .f-m.open {
            transform: translateX(0);
            opacity: 1;
            pointer-events: auto;
        }
        .f-m::before {
            content: '';
            display: block;
            height: 3px;
            background: var(--ac-gradient);
            position: absolute;
            top: 0;
            left: 0;
            right: 0;
        }
        .f-m .close-btn {
            position: sticky;
            top: 0;
            float: right;
            width: 40px;
            height: 40px;
            border-radius: 50%;
            border: 1px solid var(--bd-md);
            background: var(--surface);
            color: var(--text-1);
            font-size: 1.4rem;
            cursor: pointer;
            display: inline-flex;
            align-items: center;
            justify-content: center;
            transition: background var(--t-fast), border-color var(--t-fast), color var(--t-fast);
            margin-bottom: 12px;
        }
        .f-m .close-btn:hover {
            background: var(--ac-tint);
            border-color: var(--ac);
            color: var(--ac);
        }
        .f-m a {
            display: block;
            padding: 10px 14px;
            border-radius: var(--r-pill);
            font-size: 0.95rem;
            font-weight: 600;
            color: var(--text-1);
            background: transparent;
            border: 1.5px solid transparent;
            margin: 4px 0;
            transition: background var(--t-fast), border-color var(--t-fast), color var(--t-fast);
        }
        .f-m a:hover {
            background: var(--ac-tint);
            border-color: var(--bd-md);
            color: var(--ac);
        }
        .f-m h3 {
            font-size: 0.60rem;
            font-weight: 700;
            color: var(--text-3);
            text-transform: uppercase;
            letter-spacing: 0.12em;
            margin: 16px 0 8px 8px;
        }

        /* -- info section -- */
        .info-text {
            font-family: var(--sans);
            line-height: 1.72;
            color: var(--text-1);
            padding: 28px 20px;
            background: var(--surface);
            margin-top: 20px;
            border-radius: var(--r-lg);
            border: 1px solid var(--bd-md);
            box-shadow: var(--e-1);
            position: relative;
            overflow: hidden;
        }
        .info-text::before {
            content: '';
            display: block;
            position: absolute;
            left: 0;
            top: 0;
            bottom: 0;
            width: 3px;
            background: var(--ac-gradient);
        }
        .info-text h1 {
            font-size: 1.55rem;
            font-weight: 800;
            background: var(--ac-gradient);
            -webkit-background-clip: text;
            -webkit-text-fill-color: transparent;
            background-clip: text;
            margin-bottom: 16px;
            padding-bottom: 12px;
            border-bottom: 1px solid var(--bd-md);
        }
        .info-text h2 {
            font-size: 1.05rem;
            font-weight: 800;
            color: var(--text-1);
            margin-top: 28px;
            margin-bottom: 10px;
            text-transform: none;
            letter-spacing: -0.01em;
        }
        .info-text h3 {
            font-size: 0.95rem;
            font-weight: 700;
            color: var(--text-2);
            margin-top: 18px;
            margin-bottom: 6px;
        }
        .info-text p {
            font-size: 0.95rem;
            margin-bottom: 14px;
            color: var(--text-1);
        }
        .info-text ul,
        .info-text ol {
            margin-bottom: 16px;
            padding-left: 20px;
        }
        .info-text li {
            font-size: 0.95rem;
            margin-bottom: 5px;
        }
        .info-text strong {
            color: var(--ac);
            font-weight: 700;
        }
        .info-text code {
            background: var(--ac-tint);
            color: var(--ac-dk);
            padding: 2px 7px;
            border-radius: 5px;
            font-family: var(--mono);
            font-size: 0.82rem;
            border: 1px solid var(--bd-md);
        }
        .dark .info-text code {
            color: var(--ac-lt);
        }

        /* -- footer -- */
        footer {
            margin-top: 40px;
            background: var(--surface);
            padding: 20px 0;
            border-top: 1px solid var(--bd-md);
            position: relative;
            transition: background 0.2s, border-color 0.2s;
        }
        footer::before {
            content: '';
            display: block;
            height: 2px;
            background: var(--ac-gradient);
            position: absolute;
            top: 0;
            left: 0;
            right: 0;
        }
        footer .inner {
            max-width: var(--maxw);
            margin: 0 auto;
            padding: 0 16px;
            display: flex;
            justify-content: space-between;
            align-items: center;
            gap: 12px;
            flex-wrap: wrap;
        }
        footer a {
            background: var(--ac-gradient);
            -webkit-background-clip: text;
            -webkit-text-fill-color: transparent;
            background-clip: text;
            font-weight: 700;
            font-size: 0.9rem;
            transition: opacity var(--t-fast);
        }
        footer a:hover {
            opacity: 0.70;
        }
        footer .footer-links a {
            font-weight: 600;
            font-size: 0.85rem;
            margin-left: 16px;
            -webkit-text-fill-color: var(--text-2);
            background: none;
            color: var(--text-2);
        }
        footer .footer-links a:hover {
            color: var(--ac);
            -webkit-text-fill-color: var(--ac);
        }

        /* -- scrollbar -- */
        ::-webkit-scrollbar {
            width: 6px;
            height: 6px;
        }
        ::-webkit-scrollbar-track {
            background: var(--surface-2);
        }
        ::-webkit-scrollbar-thumb {
            background: var(--bd-hi);
            border-radius: var(--r-pill);
        }
        ::-webkit-scrollbar-thumb:hover {
            background: var(--ac);
        }
        ::selection {
            background: var(--ac-ring);
            color: var(--text-1);
        }

        /* -- NEW: Stylish Name Generator styles -- */
        .stylishname-section {
            margin-top: 30px;
            padding: 20px 0;
            border-top: 2px solid var(--bd-md);
        }
        .stylishname-section h2 {
            font-family: var(--font-head);
            font-size: 1.4rem;
            font-weight: 700;
            color: var(--chrome);
            letter-spacing: 0.02em;
            text-transform: none;
            margin-bottom: 16px;
        }
        .stylishname-section h2 span {
            background: var(--accent);
            color: #fff;
            padding: 2px 14px;
            border-radius: var(--r-pill);
            font-size: 0.7rem;
            letter-spacing: 0.08em;
            margin-left: 10px;
        }

        .style-card {
            background: var(--surface);
            border-radius: 30px;
            border: 1.5px solid var(--border);
            padding: 16px 20px;
            display: flex;
            align-items: center;
            justify-content: space-between;
            gap: 12px;
            cursor: pointer;
            transition: transform 0.15s ease, border-color 0.2s ease, box-shadow 0.2s ease;
            min-height: 60px;
            flex-wrap: wrap;
            font-family: var(--font-mono);
        }
        .style-card:hover {
            transform: translateY(-2px);
            border-color: var(--spark);
            box-shadow: var(--shadow-spark);
        }
        .style-card .rock {
            font-family: var(--font-head);
            font-weight: 700;
            font-size: 0.00;
            color: var(--chrome-3);
            text-transform: uppercase;
            letter-spacing: 0.00em;
            flex-shrink: 0;
            background: var(--ink-3);
            padding: 2px 12px;
            border-radius: var(--r-pill);
        }
        .style-card span:not(.rock) {
            padding: 14px 12px 28px 16px;
    color: var(--text-1);
    cursor: pointer;
    user-select: none;
    flex: 1;
    white-space: normal;
    word-break: break-word;
    font-family: var(--font-style);
    background: transparent;
    border: none;
    line-height: 1.5;
    font-size: 17px;
    margin: 0;
    transition: none;
            
        }
        .style-card .copy-btn {
            flex-shrink: 0;
            padding: 6px 16px;
            border-radius: var(--r-pill);
            border: 1.5px solid var(--border-2);
            background: transparent;
            color: var(--chrome-2);
            font-family: var(--font-head);
            font-weight: 700;
            font-size: 0.7rem;
            cursor: pointer;
            transition: background 0.15s, color 0.15s, border-color 0.15s;
            letter-spacing: 0.04em;
        }
        .style-card .copy-btn:hover {
            background: var(--accent);
            color: #fff;
            border-color: var(--accent);
        }
        .dark .style-card {
            background: var(--surface);
            border-color: var(--bd);
        }
        .dark .style-card:hover {
            border-color: var(--spark);
            box-shadow: var(--shadow-spark);
        }

        .styles-grid {
            display: grid;
            grid-template-columns: 1fr;
            gap: 10px;
            margin-bottom: 16px;
        }
        @media (min-width: 640px) {
            .styles-grid {
                grid-template-columns: 1fr 1fr;
            }
        }

        .category-h3 {
            font-family: var(--font-head);
            font-size: 1.1rem;
            font-weight: 700;
            color: var(--chrome);
            margin: 18px 0 10px 0;
            display: flex;
            align-items: center;
            gap: 10px;
        }

        /* -- responsive -- */
        @media (max-width:640px) {
            h1 {
                font-size: 1.3rem;
            }
            .container {
                padding: 0 12px;
            }
            header .inner {
                padding: 0 12px;
                height: 56px;
            }
            header .logo {
                font-size: 1rem;
            }
            header .logo svg {
                width: 22px;
                height: 22px;
            }
            .input-section {
                top: 56px;
                padding: 8px 6px;
            }
            .input-section textarea {
                font-size: 0.95rem;
                padding: 10px 44px 10px 14px;
            }
            #topMenu a {
                padding: 10px 14px;
                font-size: 0.78rem;
            }
            .f-m {
                width: 100%;
            }
            .font-size-controller input[type="range"] {
                width: 120px;
            }
            .info-text {
                padding: 16px 14px;
            }
            .info-text h1 {
                font-size: 1.2rem;
            }
            #randomcloud .cloud-item {
                font-size: 15px;
            }
            .style-card {
                padding: 12px 14px;
                border-radius: 20px;
            }
            .style-card span:not(.rock) {
                font-size: 14px;
            }
            .styles-grid {
                grid-template-columns: 1fr;
            }
        }
        @media (prefers-reduced-motion:reduce) {
            *,
            *::before,
            *::after {
                animation-duration: 0.01ms !important;
                transition-duration: 0.01ms !important;
            }
        }

        /* -- tab bar -- */
        .tab-btn.active {
            background: var(--ac-tint) !important;
            color: var(--ac) !important;
            border-bottom-color: var(--ac) !important;
        }
        .tab-btn:hover {
            background: var(--surface-2) !important;
            color: var(--ac) !important;
        }

        /* -- namestyles tab styles -- */
        #namestyles-tab .ns-list {
            list-style: none;
            padding: 0;
            margin: 12px 0 0;
            display: grid;
            grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
            gap: 10px;
        }
        #namestyles-tab .ns-list li {
            background: var(--surface);
            border-radius: var(--r-lg);
            border: 1px solid var(--bd);
            position: relative;
            overflow: hidden;
            cursor: pointer;
            padding: 14px 16px 30px;
            transition: transform .15s ease, border-color .2s ease, box-shadow .2s ease;
        }
        #namestyles-tab .ns-list li:hover {
            transform: translateY(-3px);
            border-color: var(--ac);
            box-shadow: 0 8px 24px rgba(99, 102, 241, 0.14);
        }
        #namestyles-tab .ns-list li:active { transform: scale(.98); }
        #namestyles-tab .ns-list p {
            margin: 0;
            font-size: 1.3rem;
            color: var(--text-1);
            font-family: var(--sans);
            text-align: center;
            word-wrap: break-word;
            font-weight: 500;
        }
        #namestyles-tab .ns-list i {
            display: block;
            font-style: normal;
            font-size: 0.62rem;
            font-family: var(--mono);
            font-weight: 700;
            color: var(--ac);
            text-transform: uppercase;
            letter-spacing: 0.12em;
            position: absolute;
            bottom: 10px;
            left: 16px;
        }
        #namestyles-tab .ns-list .ns-flag {
            position: absolute;
            bottom: 8px;
            right: 14px;
            font-size: 0.62rem;
            font-family: var(--mono);
            font-weight: 700;
            letter-spacing: .08em;
            text-transform: uppercase;
            color: var(--text-3);
            opacity: .55;
        }
        #namestyles-tab .ns-section h2 {
            margin: 30px 0 4px;
            font-size: 11px;
            font-family: var(--mono);
            color: var(--text-2);
            text-transform: uppercase;
            letter-spacing: 3px;
            font-weight: 700;
        }
        #namestyles-tab .ns-section h2 span { color: var(--ac); }
        #namestyles-tab .ns-section > h2:first-of-type { margin-top: 6px; }

        @media (max-width:640px) {
            #namestyles-tab .ns-list { grid-template-columns: 1fr; }
            #namestyles-tab .ns-list p { font-size: 1.05rem; }
        }