/* vs-ai-mode.css - Mode Toggle and VS AI Configuration */

/* ========================================
   MODE TOGGLE CONTAINER
   ======================================== */

.mode-toggle-container {
    display: flex;
    justify-content: center;
    gap: 0;
    margin-bottom: 1.5rem;
    background: linear-gradient(180deg,
        rgba(20, 30, 50, 0.8) 0%,
        rgba(15, 25, 45, 0.9) 100%);
    border: 2px solid rgba(100, 150, 255, 0.2);
    border-radius: 12px;
    padding: 0.375rem;
    width: fit-content;
    margin-left: auto;
    margin-right: auto;
}

.mode-toggle-btn {
    padding: 0.75rem 2rem;
    font-family: 'Rajdhani', sans-serif;
    font-size: 0.95rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.25s ease;
    position: relative;
    overflow: hidden;
    background: transparent;
    color: rgba(150, 180, 220, 0.6);
}

.mode-toggle-btn:hover:not(.active) {
    color: rgba(180, 200, 240, 0.9);
    background: rgba(100, 150, 255, 0.1);
}

.mode-toggle-btn.active {
    background: linear-gradient(180deg,
        rgba(80, 120, 200, 0.9) 0%,
        rgba(60, 100, 180, 0.9) 100%);
    color: #ffffff;
    box-shadow:
        0 0 20px rgba(100, 150, 255, 0.3),
        inset 0 1px 0 rgba(255, 255, 255, 0.15);
    text-shadow: 0 0 10px rgba(150, 200, 255, 0.5);
}

.mode-toggle-btn.active::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 50%;
    height: 2px;
    background: linear-gradient(90deg,
        transparent,
        rgba(150, 220, 255, 0.8),
        transparent);
}

/* ========================================
   VS AI CONFIGURATION PANEL
   ======================================== */

.vs-ai-config {
    margin: 1rem 0;
    padding: 1.25rem;
    background: linear-gradient(180deg,
        rgba(25, 35, 60, 0.6) 0%,
        rgba(18, 28, 50, 0.7) 100%);
    border: 2px solid rgba(100, 150, 255, 0.2);
    border-radius: 16px;
    animation: slideDown 0.3s ease-out;
}

@keyframes slideDown {
    from { opacity: 0; transform: translateY(-10px); }
    to { opacity: 1; transform: translateY(0); }
}

/* Desktop: Two-column layout - only when visible */
@media (min-width: 769px) {
    #vs-ai-config.vs-ai-config.visible {
        display: grid;
        grid-template-columns: 1fr 1px 1fr;
        grid-template-areas:
            "difficulty difficulty difficulty"
            "opponents divider1 settings"
            "attacks divider2 powerups"
            "startbtn startbtn startbtn";
        gap: 1rem 1.5rem;
    }

    /* Vertical divider between columns */
    #vs-ai-config.visible::before,
    #vs-ai-config.visible::after {
        content: '';
        background: linear-gradient(180deg,
            transparent 0%,
            rgba(100, 150, 255, 0.2) 20%,
            rgba(100, 150, 255, 0.2) 80%,
            transparent 100%);
        width: 1px;
    }

    #vs-ai-config.visible::before {
        grid-area: divider1;
    }

    #vs-ai-config.visible::after {
        grid-area: divider2;
    }

    /* Horizontal divider after difficulty row */
    #vs-ai-config .vs-ai-section[data-section="difficulty"] {
        padding-bottom: 1rem;
        border-bottom: 1px solid rgba(100, 150, 255, 0.15);
        margin-bottom: 0.25rem;
    }

    /* Horizontal divider after middle row */
    #vs-ai-config .vs-ai-section[data-section="opponents"],
    #vs-ai-config .vs-ai-section[data-section="settings"] {
        padding-bottom: 1rem;
        border-bottom: 1px solid rgba(100, 150, 255, 0.15);
        margin-bottom: 0.25rem;
    }
}

/* Mobile: block layout when visible */
@media (max-width: 768px) {
    #vs-ai-config.vs-ai-config.visible {
        display: block;
    }
}

/* Desktop grid areas */
@media (min-width: 769px) {
    #vs-ai-config.visible > .vs-ai-section[data-section="difficulty"] { grid-area: difficulty; }
    #vs-ai-config.visible > .vs-ai-section[data-section="opponents"] { grid-area: opponents; }
    #vs-ai-config.visible > .vs-ai-section[data-section="settings"] { grid-area: settings; }
    #vs-ai-config.visible > .vs-ai-section[data-section="attacks"] { grid-area: attacks; }
    #vs-ai-config.visible > .vs-ai-section[data-section="powerups"] { grid-area: powerups; }
    #vs-ai-config.visible > .vs-ai-start-btn { grid-area: startbtn; margin-top: 0.5rem; }

    #vs-ai-config .vs-ai-section {
        margin-bottom: 0;
        padding-bottom: 0;
        border-bottom: none;
    }

    /* Hide description on desktop to save space */
    #vs-ai-config .vs-ai-section-desc {
        display: none;
    }

    /* Compact difficulty buttons */
    #vs-ai-config .vs-ai-difficulty-btn {
        padding: 0.5rem 0.375rem;
    }

    /* More compact settings grid */
    #vs-ai-config .vs-ai-settings-grid {
        gap: 0.5rem;
    }

    #vs-ai-config .vs-ai-setting label {
        font-size: 0.7rem;
        margin-bottom: 0.25rem;
    }

    #vs-ai-config .vs-ai-select {
        padding: 0.5rem 0.625rem;
        font-size: 0.85rem;
    }

    /* Symmetry: Make attacks 5 columns */
    #vs-ai-config .vs-ai-attacks-grid {
        grid-template-columns: repeat(5, 1fr);
        gap: 0.4rem;
    }

    /* Symmetry: Power-ups in a row */
    #vs-ai-config .vs-ai-powerup-options {
        display: grid;
        grid-template-columns: repeat(3, 1fr);
        gap: 0.5rem;
        margin-top: 0.5rem;
    }

    /* Hide the attacks hint on desktop for cleaner look */
    #vs-ai-config .vs-ai-section-hint {
        display: none;
    }

    /* Align both bottom sections */
    #vs-ai-config .vs-ai-section[data-section="attacks"],
    #vs-ai-config .vs-ai-section[data-section="powerups"] {
        display: flex;
        flex-direction: column;
    }

    #vs-ai-config .vs-ai-attacks-grid,
    #vs-ai-config .vs-ai-powerup-options {
        flex: 1;
        align-items: end;
        align-content: end;
    }

    /* Match heights for attack and power-up items */
    #vs-ai-config .vs-ai-attack-option,
    #vs-ai-config .vs-ai-powerup-option {
        height: 56px;
        justify-content: center;
    }
}

/* Section Styling */
.vs-ai-section {
    margin-bottom: 1rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid rgba(100, 150, 255, 0.1);
}

/* ========================================
   VS AI DIFFICULTY SELECTION
   ======================================== */

.vs-ai-difficulty-row {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 0.5rem;
}

.vs-ai-difficulty-btn {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.25rem;
    padding: 0.75rem 0.5rem;
    background: linear-gradient(180deg,
        rgba(35, 50, 80, 0.6) 0%,
        rgba(25, 40, 70, 0.7) 100%);
    border: 2px solid rgba(100, 150, 255, 0.15);
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.2s ease;
    font-family: 'Rajdhani', sans-serif;
}

.vs-ai-difficulty-btn:hover {
    background: linear-gradient(180deg,
        rgba(50, 70, 110, 0.7) 0%,
        rgba(40, 60, 100, 0.8) 100%);
    border-color: rgba(100, 180, 255, 0.3);
    transform: translateY(-2px);
}

.vs-ai-difficulty-btn.active {
    background: linear-gradient(180deg,
        rgba(60, 140, 100, 0.7) 0%,
        rgba(45, 120, 85, 0.8) 100%);
    border-color: rgba(100, 255, 150, 0.5);
    box-shadow: 0 0 15px rgba(100, 200, 150, 0.2);
}

.vs-ai-difficulty-btn .diff-name {
    font-size: 0.85rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: rgba(200, 220, 255, 0.9);
}

.vs-ai-difficulty-btn.active .diff-name {
    color: #ffffff;
}

.vs-ai-difficulty-btn .diff-size {
    font-size: 0.7rem;
    font-weight: 500;
    color: rgba(150, 180, 220, 0.6);
}

.vs-ai-difficulty-btn.active .diff-size {
    color: rgba(200, 255, 220, 0.8);
}

/* Custom Settings Panel */
.vs-ai-custom-settings {
    margin-top: 1rem;
    padding: 1rem;
    background: rgba(20, 30, 50, 0.5);
    border-radius: 10px;
    border: 1px solid rgba(100, 150, 255, 0.1);
    animation: slideDown 0.2s ease-out;
}

.vs-ai-custom-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1rem;
}

.vs-ai-custom-field {
    display: flex;
    flex-direction: column;
    gap: 0.375rem;
}

.vs-ai-custom-field label {
    font-family: 'Rajdhani', sans-serif;
    font-size: 0.75rem;
    font-weight: 600;
    color: rgba(150, 180, 220, 0.7);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.vs-ai-custom-field input {
    padding: 0.5rem 0.75rem;
    font-family: 'Orbitron', monospace;
    font-size: 0.9rem;
    font-weight: 500;
    border-radius: 6px;
    border: 2px solid rgba(100, 150, 255, 0.2);
    background: rgba(30, 45, 70, 0.8);
    color: #ffffff;
    text-align: center;
    transition: all 0.2s ease;
}

.vs-ai-custom-field input:focus {
    outline: none;
    border-color: rgba(100, 180, 255, 0.5);
    box-shadow: 0 0 10px rgba(100, 150, 255, 0.15);
}

/* Light theme */
.theme-light .vs-ai-difficulty-btn {
    background: linear-gradient(180deg,
        rgba(240, 245, 255, 0.85) 0%,
        rgba(230, 240, 252, 0.9) 100%);
    border-color: rgba(100, 130, 200, 0.15);
}

.theme-light .vs-ai-difficulty-btn .diff-name {
    color: rgba(30, 50, 100, 0.9);
}

.theme-light .vs-ai-difficulty-btn.active {
    background: linear-gradient(180deg,
        rgba(200, 240, 210, 0.9) 0%,
        rgba(180, 230, 195, 0.95) 100%);
    border-color: rgba(60, 180, 100, 0.4);
}

.theme-light .vs-ai-custom-settings {
    background: rgba(240, 245, 255, 0.6);
    border-color: rgba(100, 130, 200, 0.15);
}

.theme-light .vs-ai-custom-field input {
    background: rgba(255, 255, 255, 0.9);
    border-color: rgba(100, 130, 200, 0.2);
    color: #1a1a2e;
}

/* Responsive */
@media (max-width: 640px) {
    .vs-ai-difficulty-row {
        grid-template-columns: repeat(2, 1fr);
    }

    .vs-ai-custom-grid {
        grid-template-columns: 1fr;
    }
}

.vs-ai-section:last-of-type {
    margin-bottom: 1rem;
    padding-bottom: 0;
    border-bottom: none;
}

.vs-ai-section-title {
    font-family: 'Rajdhani', sans-serif;
    font-size: 0.85rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: rgba(150, 180, 220, 0.8);
    margin-bottom: 0.75rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
}

.vs-ai-section-hint {
    font-size: 0.7rem;
    font-weight: 400;
    text-transform: none;
    letter-spacing: 0;
    color: rgba(150, 180, 220, 0.5);
}

.vs-ai-section-desc {
    font-size: 0.8rem;
    color: rgba(150, 180, 220, 0.6);
    margin: 0;
}

/* ========================================
   AI OPPONENTS ROW
   ======================================== */

.ai-opponents-row {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 0.75rem;
}

.ai-opponent-selector {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 0.5rem;
    background: linear-gradient(180deg,
        rgba(35, 50, 80, 0.7) 0%,
        rgba(25, 40, 70, 0.8) 100%);
    border: 2px solid rgba(100, 150, 255, 0.15);
    border-radius: 10px;
    transition: all 0.2s ease;
}

.ai-opponent-selector:hover {
    background: linear-gradient(180deg,
        rgba(45, 65, 100, 0.75) 0%,
        rgba(35, 55, 90, 0.85) 100%);
    border-color: rgba(100, 180, 255, 0.3);
}

.ai-opponent-selector.has-ai {
    border-color: rgba(100, 200, 150, 0.4);
    box-shadow: 0 0 15px rgba(100, 200, 150, 0.15);
}

.ai-label {
    font-family: 'Rajdhani', sans-serif;
    font-size: 0.85rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.ai-label.ai-beginner {
    color: #60ff90;
    text-shadow: 0 0 8px rgba(96, 255, 144, 0.4);
}

.ai-label.ai-intermediate {
    color: #ffb060;
    text-shadow: 0 0 8px rgba(255, 176, 96, 0.4);
}

.ai-label.ai-expert {
    color: #ff6060;
    text-shadow: 0 0 8px rgba(255, 96, 96, 0.4);
}

.ai-counter {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.ai-btn-minus,
.ai-btn-plus {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    border: 2px solid rgba(100, 150, 255, 0.3);
    background: linear-gradient(180deg,
        rgba(60, 80, 120, 0.9) 0%,
        rgba(45, 65, 105, 0.9) 100%);
    color: #ffffff;
    font-size: 1.25rem;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}

.ai-btn-minus:hover,
.ai-btn-plus:hover {
    background: linear-gradient(180deg,
        rgba(80, 110, 160, 0.95) 0%,
        rgba(65, 95, 145, 0.95) 100%);
    border-color: rgba(100, 180, 255, 0.5);
    transform: scale(1.1);
}

.ai-count-value {
    font-family: 'Orbitron', monospace;
    font-size: 1.25rem;
    font-weight: 700;
    color: #ffffff;
    min-width: 1.5rem;
    text-align: center;
    text-shadow: 0 0 10px rgba(100, 200, 255, 0.5);
}

.ai-total-display {
    margin-top: 0.5rem;
    text-align: center;
    font-family: 'Rajdhani', sans-serif;
    font-size: 0.85rem;
    color: rgba(150, 180, 220, 0.8);
}

.ai-total-display strong {
    font-family: 'Orbitron', monospace;
    font-size: 1rem;
    color: #80d0ff;
    text-shadow: 0 0 8px rgba(100, 200, 255, 0.4);
}

/* ========================================
   GAME SETTINGS GRID
   ======================================== */

.vs-ai-settings-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
}

.vs-ai-setting {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.vs-ai-setting label {
    font-family: 'Rajdhani', sans-serif;
    font-size: 0.8rem;
    font-weight: 600;
    color: rgba(150, 180, 220, 0.7);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.vs-ai-select {
    padding: 0.625rem 0.875rem;
    font-family: 'Rajdhani', sans-serif;
    font-size: 0.9rem;
    font-weight: 500;
    border-radius: 8px;
    border: 2px solid rgba(100, 150, 255, 0.2);
    background: linear-gradient(180deg,
        rgba(30, 45, 70, 0.8) 0%,
        rgba(20, 35, 60, 0.9) 100%);
    color: #ffffff;
    cursor: pointer;
    transition: all 0.2s ease;
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%2399aacc' d='M6 8L1 3h10z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 0.75rem center;
    padding-right: 2rem;
}

.vs-ai-select:hover {
    border-color: rgba(100, 180, 255, 0.4);
}

.vs-ai-select:focus {
    outline: none;
    border-color: rgba(100, 180, 255, 0.5);
    box-shadow: 0 0 15px rgba(100, 150, 255, 0.15);
}

/* ========================================
   GAME SETTINGS ROW (matching AI Opponents)
   ======================================== */

.game-settings-row {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 0.75rem;
}

.game-setting-selector {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 0.5rem;
    background: linear-gradient(180deg,
        rgba(35, 50, 80, 0.7) 0%,
        rgba(25, 40, 70, 0.8) 100%);
    border: 2px solid rgba(100, 150, 255, 0.15);
    border-radius: 10px;
    transition: all 0.2s ease;
}

.game-setting-selector:hover {
    background: linear-gradient(180deg,
        rgba(45, 65, 100, 0.75) 0%,
        rgba(35, 55, 90, 0.85) 100%);
    border-color: rgba(100, 180, 255, 0.3);
}

.setting-label {
    font-family: 'Rajdhani', sans-serif;
    font-size: 0.85rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.setting-label.setting-lives {
    color: #ff6090;
    text-shadow: 0 0 8px rgba(255, 96, 144, 0.4);
}

.setting-label.setting-grenades {
    color: #60d0ff;
    text-shadow: 0 0 8px rgba(96, 208, 255, 0.4);
}

.setting-label.setting-attacks {
    color: #ffd060;
    text-shadow: 0 0 8px rgba(255, 208, 96, 0.4);
}

.setting-counter {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.setting-btn-minus,
.setting-btn-plus {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    border: 2px solid rgba(100, 150, 255, 0.3);
    background: linear-gradient(180deg,
        rgba(60, 80, 120, 0.9) 0%,
        rgba(45, 65, 105, 0.9) 100%);
    color: #ffffff;
    font-size: 1.25rem;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}

.setting-btn-minus:hover,
.setting-btn-plus:hover {
    background: linear-gradient(180deg,
        rgba(80, 110, 160, 0.95) 0%,
        rgba(65, 95, 145, 0.95) 100%);
    border-color: rgba(100, 180, 255, 0.5);
    transform: scale(1.1);
}

.setting-count-value {
    font-family: 'Orbitron', monospace;
    font-size: 1.25rem;
    font-weight: 700;
    color: #ffffff;
    min-width: 1.5rem;
    text-align: center;
    text-shadow: 0 0 10px rgba(100, 200, 255, 0.5);
}

/* Win Condition Arrow Navigation */
.win-condition-display {
    margin-top: 0.75rem;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    font-family: 'Rajdhani', sans-serif;
    font-size: 0.9rem;
    color: rgba(150, 180, 220, 0.8);
}

.win-condition-label {
    font-weight: 600;
}

.win-condition-selector {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.win-nav-btn {
    background: none;
    border: none;
    color: rgba(100, 180, 255, 0.7);
    font-size: 0.9rem;
    cursor: pointer;
    padding: 0.25rem;
    transition: all 0.2s ease;
}

.win-nav-btn:hover {
    color: rgba(100, 200, 255, 1);
    transform: scale(1.2);
}

.win-condition-value {
    font-family: 'Orbitron', monospace;
    font-size: 0.85rem;
    font-weight: 600;
    color: #80d0ff;
    text-shadow: 0 0 8px rgba(100, 200, 255, 0.4);
    min-width: 120px;
    text-align: center;
}

/* ========================================
   ATTACKS GRID
   ======================================== */

.vs-ai-attacks-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 0.625rem;
}

.vs-ai-attack-option {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.25rem;
    padding: 0.5rem 0.375rem;
    background: linear-gradient(180deg,
        rgba(35, 50, 80, 0.6) 0%,
        rgba(25, 40, 70, 0.7) 100%);
    border: 2px solid rgba(100, 150, 255, 0.1);
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.2s ease;
    position: relative;
    user-select: none;
}

.vs-ai-attack-option:hover {
    background: linear-gradient(180deg,
        rgba(50, 70, 110, 0.7) 0%,
        rgba(40, 60, 100, 0.8) 100%);
    border-color: rgba(100, 180, 255, 0.3);
    transform: translateY(-2px);
}

.vs-ai-attack-option.selected {
    background: linear-gradient(180deg,
        rgba(60, 100, 160, 0.5) 0%,
        rgba(45, 85, 145, 0.6) 100%);
    border-color: rgba(100, 180, 255, 0.5);
    box-shadow: 0 0 15px rgba(100, 150, 255, 0.2);
}

.vs-ai-attack-option .attack-icon {
    font-size: 1.25rem;
}

.vs-ai-attack-option .attack-name {
    font-family: 'Rajdhani', sans-serif;
    font-size: 0.7rem;
    font-weight: 600;
    color: rgba(200, 220, 255, 0.9);
    text-transform: uppercase;
    letter-spacing: 0.03em;
}

.vs-ai-attack-option .attack-count {
    position: absolute;
    top: -6px;
    right: -6px;
    min-width: 20px;
    height: 20px;
    background: linear-gradient(180deg, #6366f1, #4f46e5);
    color: white;
    font-family: 'Orbitron', monospace;
    font-size: 0.7rem;
    font-weight: 700;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transform: scale(0.8);
    transition: all 0.2s ease;
    box-shadow: 0 2px 8px rgba(99, 102, 241, 0.4);
}

.vs-ai-attack-option.selected .attack-count {
    opacity: 1;
    transform: scale(1);
}

/* ========================================
   POWER-UPS TOGGLE
   ======================================== */

.vs-ai-toggle {
    position: relative;
    display: inline-block;
    width: 44px;
    height: 24px;
}

.vs-ai-toggle input {
    opacity: 0;
    width: 0;
    height: 0;
}

.vs-ai-toggle-slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(60, 70, 90, 0.8);
    border: 2px solid rgba(100, 150, 255, 0.2);
    border-radius: 12px;
    transition: all 0.3s ease;
}

.vs-ai-toggle-slider::before {
    position: absolute;
    content: '';
    height: 16px;
    width: 16px;
    left: 2px;
    bottom: 2px;
    background: rgba(150, 180, 220, 0.8);
    border-radius: 50%;
    transition: all 0.3s ease;
}

.vs-ai-toggle input:checked + .vs-ai-toggle-slider {
    background: linear-gradient(180deg,
        rgba(60, 180, 100, 0.8) 0%,
        rgba(45, 150, 80, 0.9) 100%);
    border-color: rgba(100, 255, 150, 0.4);
}

.vs-ai-toggle input:checked + .vs-ai-toggle-slider::before {
    transform: translateX(20px);
    background: #ffffff;
    box-shadow: 0 0 10px rgba(100, 255, 150, 0.5);
}

/* ========================================
   START BUTTON
   ======================================== */

.vs-ai-start-btn {
    width: 100%;
    padding: 1rem 2rem;
    margin-top: 0.5rem;
    font-family: 'Rajdhani', sans-serif;
    font-size: 1.1rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    border: 2px solid rgba(100, 200, 150, 0.4);
    border-radius: 12px;
    background: linear-gradient(180deg,
        rgba(50, 150, 100, 0.8) 0%,
        rgba(35, 120, 80, 0.9) 100%);
    color: #ffffff;
    cursor: pointer;
    transition: all 0.2s ease;
    position: relative;
    overflow: hidden;
    box-shadow:
        0 0 20px rgba(100, 200, 150, 0.2),
        inset 0 1px 0 rgba(255, 255, 255, 0.1);
}

.vs-ai-start-btn:hover:not(:disabled) {
    background: linear-gradient(180deg,
        rgba(60, 180, 120, 0.9) 0%,
        rgba(45, 150, 100, 0.95) 100%);
    border-color: rgba(100, 255, 150, 0.6);
    transform: translateY(-2px);
    box-shadow:
        0 0 30px rgba(100, 200, 150, 0.3),
        0 8px 20px rgba(0, 0, 0, 0.3),
        inset 0 1px 0 rgba(255, 255, 255, 0.15);
}

.vs-ai-start-btn:disabled {
    background: linear-gradient(180deg,
        rgba(50, 60, 80, 0.6) 0%,
        rgba(35, 45, 65, 0.7) 100%);
    border-color: rgba(100, 150, 255, 0.15);
    color: rgba(150, 180, 220, 0.5);
    cursor: not-allowed;
    box-shadow: none;
}

.vs-ai-start-btn .btn-text {
    display: block;
}

.vs-ai-start-btn .btn-hint {
    display: block;
    font-size: 0.7rem;
    font-weight: 400;
    text-transform: none;
    letter-spacing: 0;
    opacity: 0.7;
    margin-top: 0.25rem;
}

.vs-ai-start-btn:not(:disabled) .btn-hint {
    display: none;
}

/* ========================================
   LIGHT THEME
   ======================================== */

.theme-light .mode-toggle-container {
    background: linear-gradient(180deg,
        rgba(225, 235, 255, 0.9) 0%,
        rgba(215, 228, 250, 0.95) 100%);
    border-color: rgba(100, 130, 200, 0.25);
}

.theme-light .mode-toggle-btn {
    color: rgba(60, 80, 130, 0.6);
}

.theme-light .mode-toggle-btn.active {
    background: linear-gradient(180deg,
        rgba(80, 120, 200, 0.95) 0%,
        rgba(60, 100, 180, 0.95) 100%);
    color: #ffffff;
}

.theme-light .vs-ai-config {
    background: linear-gradient(180deg,
        rgba(230, 240, 255, 0.8) 0%,
        rgba(220, 232, 250, 0.85) 100%);
    border-color: rgba(100, 130, 200, 0.25);
}

.theme-light .vs-ai-section-title {
    color: rgba(50, 70, 120, 0.8);
}

.theme-light .ai-opponent-selector {
    background: linear-gradient(180deg,
        rgba(240, 245, 255, 0.9) 0%,
        rgba(230, 240, 252, 0.95) 100%);
    border-color: rgba(100, 130, 200, 0.2);
}

.theme-light .ai-label.ai-beginner { color: #20a050; text-shadow: none; }
.theme-light .ai-label.ai-intermediate { color: #c08020; text-shadow: none; }
.theme-light .ai-label.ai-expert { color: #d04040; text-shadow: none; }

.theme-light .ai-count-value {
    color: #1a1a2e;
    text-shadow: none;
}

.theme-light .vs-ai-select {
    background: linear-gradient(180deg,
        rgba(240, 245, 255, 0.95) 0%,
        rgba(230, 240, 252, 0.95) 100%);
    border-color: rgba(100, 130, 200, 0.2);
    color: #1a1a2e;
}

.theme-light .vs-ai-attack-option {
    background: linear-gradient(180deg,
        rgba(240, 245, 255, 0.85) 0%,
        rgba(230, 240, 252, 0.9) 100%);
    border-color: rgba(100, 130, 200, 0.15);
}

.theme-light .vs-ai-attack-option .attack-name {
    color: rgba(30, 50, 100, 0.9);
}

/* ========================================
   RESPONSIVE
   ======================================== */

@media (max-width: 768px) {
    .vs-ai-settings-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .vs-ai-attacks-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 640px) {
    .mode-toggle-btn {
        padding: 0.625rem 1.25rem;
        font-size: 0.85rem;
    }

    .ai-opponents-row {
        grid-template-columns: 1fr;
        gap: 0.625rem;
    }

    .ai-opponent-selector {
        flex-direction: row;
        justify-content: space-between;
        padding: 0.875rem 1rem;
    }

    /* Game Settings stacked like AI Opponents */
    .game-settings-row {
        grid-template-columns: 1fr;
        gap: 0.625rem;
    }

    .game-setting-selector {
        flex-direction: row;
        justify-content: space-between;
        padding: 0.875rem 1rem;
    }

    .vs-ai-settings-grid {
        grid-template-columns: 1fr;
    }

    .vs-ai-attacks-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 0.5rem;
    }

    .vs-ai-attack-option {
        padding: 0.625rem 0.375rem;
    }

    .vs-ai-attack-option .attack-icon {
        font-size: 1.25rem;
    }

    .vs-ai-attack-option .attack-name {
        font-size: 0.6rem;
    }
}

@media (max-width: 380px) {
    .vs-ai-attacks-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* ========================================
   POWER-UP OPTIONS
   ======================================== */

.vs-ai-powerup-options {
    display: flex;
    gap: 0.75rem;
    margin-top: 1rem;
    flex-wrap: wrap;
}

.vs-ai-powerup-option {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.25rem;
    padding: 0.5rem 0.375rem;
    background: linear-gradient(180deg,
        rgba(35, 50, 80, 0.6) 0%,
        rgba(25, 40, 70, 0.7) 100%);
    border: 2px solid rgba(100, 200, 150, 0.1);
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.2s ease;
    position: relative;
    user-select: none;
}

.vs-ai-powerup-option:hover {
    background: linear-gradient(180deg,
        rgba(45, 80, 70, 0.7) 0%,
        rgba(35, 70, 60, 0.8) 100%);
    border-color: rgba(100, 200, 150, 0.3);
    transform: translateY(-2px);
}

.vs-ai-powerup-option.selected {
    background: linear-gradient(180deg,
        rgba(50, 130, 90, 0.5) 0%,
        rgba(35, 110, 75, 0.6) 100%);
    border-color: rgba(100, 255, 150, 0.5);
    box-shadow: 0 0 15px rgba(100, 200, 150, 0.2);
}

.vs-ai-powerup-option .powerup-icon {
    font-size: 1.25rem;
}

.vs-ai-powerup-option .powerup-name {
    font-family: 'Rajdhani', sans-serif;
    font-size: 0.7rem;
    font-weight: 600;
    color: rgba(200, 220, 255, 0.9);
    text-transform: uppercase;
    letter-spacing: 0.03em;
}

.vs-ai-powerup-option .powerup-count {
    position: absolute;
    top: -6px;
    right: -6px;
    min-width: 20px;
    height: 20px;
    background: linear-gradient(180deg, #22c55e, #16a34a);
    color: white;
    font-family: 'Orbitron', monospace;
    font-size: 0.7rem;
    font-weight: 700;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transform: scale(0.8);
    transition: all 0.2s ease;
    box-shadow: 0 2px 8px rgba(34, 197, 94, 0.4);
}

.vs-ai-powerup-option.selected .powerup-count {
    opacity: 1;
    transform: scale(1);
}

/* Light theme */
.theme-light .vs-ai-powerup-option {
    background: linear-gradient(180deg,
        rgba(240, 250, 245, 0.85) 0%,
        rgba(230, 245, 238, 0.9) 100%);
    border-color: rgba(60, 150, 100, 0.15);
}

.theme-light .vs-ai-powerup-option .powerup-name {
    color: rgba(30, 80, 50, 0.9);
}

.theme-light .vs-ai-powerup-option.selected {
    background: linear-gradient(180deg,
        rgba(200, 240, 210, 0.9) 0%,
        rgba(180, 230, 195, 0.95) 100%);
    border-color: rgba(60, 180, 100, 0.4);
}

/* Responsive */
@media (max-width: 640px) {
    .vs-ai-powerup-options {
        justify-content: center;
    }

    .vs-ai-powerup-option {
        min-width: 60px;
        padding: 0.5rem 0.375rem;
    }

    .vs-ai-powerup-option .powerup-icon {
        font-size: 1.25rem;
    }

    .vs-ai-powerup-option .powerup-name {
        font-size: 0.6rem;
    }
}
