/* ==========================================================================
   2048 AI Solver - Algorithmic Auto-Play Stylesheet
   ========================================================================== */

.g2048-wrapper.theme-ai {
    --ai-cyan: #06b6d4;
    --ai-purple: #8b5cf6;
    --ai-dark: #090d16;
    max-width: 530px;
    margin: 0 auto;
}

.theme-ai .g2048-badge {
    background: linear-gradient(135deg, #06b6d4 0%, #8b5cf6 100%);
    color: #ffffff;
    font-weight: 900;
    border: none;
    box-shadow: 0 3px 8px rgba(6, 182, 212, 0.35);
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
}

/* AI Control Dashboard */
.ai-dashboard {
    background: #0f172a;
    border: 2px solid #1e293b;
    border-radius: 14px;
    padding: 0.75rem 1rem;
    margin-bottom: 0.85rem;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
}

.ai-controls-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.5rem;
    flex-wrap: wrap;
    margin-bottom: 0.6rem;
}

.ai-btn-group {
    display: flex;
    gap: 0.4rem;
}

.ai-btn {
    background: #1e293b;
    border: 1px solid #334155;
    color: #f8fafc;
    border-radius: 8px;
    padding: 0.45rem 0.85rem;
    font-size: 0.82rem;
    font-weight: 700;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
    transition: all 0.15s ease;
}

.ai-btn:hover {
    background: #334155;
    border-color: #06b6d4;
}

.ai-btn.is-active {
    background: linear-gradient(135deg, #06b6d4 0%, #3b82f6 100%);
    border-color: #06b6d4;
    color: #ffffff;
    box-shadow: 0 0 10px rgba(6, 182, 212, 0.4);
}

.ai-speed-wrap {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.75rem;
    color: #94a3b8;
    font-weight: 700;
}

.ai-speed-select {
    background: #1e293b;
    border: 1px solid #334155;
    color: #38bdf8;
    border-radius: 6px;
    padding: 0.3rem 0.5rem;
    font-weight: 800;
    font-size: 0.8rem;
    outline: none;
}

.ai-stats-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-family: ui-monospace, SFMono-Regular, monospace;
    font-size: 0.75rem;
    color: #64748b;
    border-top: 1px dashed #1e293b;
    padding-top: 0.4rem;
}

.ai-stat-item span {
    color: #38bdf8;
    font-weight: 800;
}

.theme-ai .g2048-board-container {
    background: #0f172a !important;
    border: 6px solid #1e293b !important;
    border-radius: 18px !important;
}

.theme-ai .grid-cell {
    background: rgba(30, 41, 59, 0.5) !important;
    border-radius: 14px !important;
}

