.cee-wrapper {
    max-width: 520px;
    margin: 20px auto;
    padding: 20px;
    background: #f8f9fa;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.08);
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen, Ubuntu, sans-serif;
}

.cee-header {
    text-align: center;
    margin-bottom: 16px;
}

.cee-header h2 {
    margin: 0 0 6px;
    font-size: 1.5rem;
    color: #1a1a2e;
}

.cee-subtitle {
    margin: 0;
    color: #666;
    font-size: 0.95rem;
}

.cee-controls {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 12px;
    gap: 10px;
}

.cee-btn {
    background: #2c3e50;
    color: #fff;
    border: none;
    padding: 8px 16px;
    border-radius: 6px;
    cursor: pointer;
    font-size: 0.9rem;
    transition: background 0.2s;
}

.cee-btn:hover {
    background: #1a252f;
}

.cee-btn-secondary {
    background: #6c757d;
}

.cee-btn-secondary:hover {
    background: #5a6268;
}

#cee-progress {
    font-weight: 600;
    color: #333;
    min-width: 60px;
    text-align: center;
}

.cee-info {
    margin-bottom: 12px;
    padding: 10px 14px;
    background: #fff;
    border-radius: 8px;
    border-left: 4px solid #3498db;
}

#cee-theme {
    font-size: 0.95rem;
    margin-bottom: 4px;
}

#cee-description {
    font-size: 0.9rem;
    color: #555;
}

.cee-board {
    width: 100%;
    max-width: 480px;
    margin: 0 auto 16px;
}

/* Ensure chessboard squares look good */
.cee-board .board-b72b1 {
    border-radius: 4px;
    overflow: hidden;
    box-shadow: 0 2px 12px rgba(0,0,0,0.15);
}

.cee-actions {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 12px;
}

.cee-message {
    text-align: center;
    min-height: 28px;
    font-weight: 600;
    font-size: 1rem;
    margin-bottom: 8px;
}

.cee-message.success {
    color: #27ae60;
}

.cee-message.error {
    color: #e74c3c;
}

.cee-hint-text {
    text-align: center;
    padding: 10px;
    background: #fff3cd;
    border-radius: 6px;
    color: #856404;
    font-size: 0.9rem;
    margin-top: 8px;
}

/* Responsive */
@media (max-width: 540px) {
    .cee-wrapper {
        padding: 12px;
        margin: 10px;
    }
    .cee-header h2 {
        font-size: 1.25rem;
    }
    .cee-controls {
        flex-wrap: wrap;
    }
}
