body {
    background: radial-gradient(circle at top right, #0a192f, #131315);
    min-height: 100vh;
    color: #e4e2e4;
    font-size: clamp(0.95rem, 0.9rem + 0.25vw, 1.05rem);
}

.glass-panel {
    background: rgba(255, 255, 255, 0.06);
    backdrop-filter: blur(24px);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

@media (max-width: 640px) {
    body {
        font-size: 0.95rem;
    }

    .glass-panel {
        padding: 1rem;
    }

    .glass-panel input {
        padding-right: 3rem;
    }

    header nav {
        padding-left: 1rem;
        padding-right: 1rem;
    }

    .glass-panel .grid {
        gap: 0.75rem;
    }

    .glass-panel label,
    .glass-panel .font-label-md,
    .glass-panel .font-body-lg {
        font-size: clamp(0.9rem, 0.88rem + 0.3vw, 1rem);
    }

    .glass-panel .material-symbols-outlined {
        font-size: 1.15rem;
    }
}

@media (min-width: 1024px) {
    .glass-panel {
        font-size: 1rem;
    }

    .glass-panel input {
        font-size: clamp(1rem, 0.95rem + 0.35vw, 1.2rem);
    }
}

.custom-select {
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    background-image: none;
    padding-right: 1rem;
}

.custom-select:focus {
    outline: none;
}

.select-wrapper {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.select-arrow {
    color: #ffffff;
    font-size: 1.4rem;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.14);
    border-radius: 0.75rem;
    padding: 0.55rem;
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.18);
    cursor: pointer;
}

.select-arrow:hover {
    background: rgba(255, 255, 255, 0.14);
}

.select-highlight {
    border-color: #ffffff;
    box-shadow: 0 0 0 3px rgba(185, 199, 228, 0.2);
}

.strength-bar-segment {
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

#character-options {
    max-height: 500px;
    overflow: hidden;
    opacity: 1;
    transition: max-height 0.3s ease, opacity 0.3s ease;
}

#character-options.collapsed {
    max-height: 0;
    opacity: 0;
}

.material-symbols-outlined {
    font-variation-settings: 'FILL' 0, 'wght' 400, 'GRAD' 0, 'opsz' 24;
}