/* style.css */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

:root {
    --primary: #4a6fa5;
    --secondary: #6b9ac4;
    --accent: #e74c3c;
    --light: #f8f9fa;
    --dark: #343a40;
    --success: #28a745;
    --warning: #ffc107;
    --board-bg: #2c3e50;
    --cell-bg: #34495e;
    --shadow: 0 8px 30px rgba(0, 0, 0, 0.12);
    --transition: all 0.3s ease;
}

body {
    background: linear-gradient(135deg, #1a2a6c, #b21f1f, #1a2a6c);
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 20px;
}

.container {
    width: 100%;
    max-width: 900px;
    background: rgba(255, 255, 255, 0.95);
    border-radius: 20px;
    box-shadow: var(--shadow);
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.header {
    background: linear-gradient(to right, var(--primary), var(--secondary));
    color: white;
    padding: 25px;
    text-align: center;
    position: relative;
}

.logo {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 15px;
    margin-bottom: 15px;
}

.logo-icon {
    font-size: 3rem;
    color: var(--warning);
    text-shadow: 0 0 10px rgba(0, 0, 0, 0.3);
    display: flex;
    gap: 5px;
}

.logo-text {
    font-size: 2.5rem;
    font-weight: 700;
    letter-spacing: 1px;
}

.subtitle {
    font-size: 1.1rem;
    opacity: 0.9;
}

.content {
    display: flex;
    padding: 0;
}

.settings-panel {
    width: 300px;
    background: var(--light);
    padding: 30px;
    display: flex;
    flex-direction: column;
    gap: 25px;
    border-right: 1px solid rgba(0, 0, 0, 0.05);
}

.panel-title {
    font-size: 1.5rem;
    color: var(--primary);
    margin-bottom: 5px;
    font-weight: 600;
}

.option-group {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.option-label {
    font-weight: 500;
    color: var(--dark);
}

.btn-group {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.btn {
    padding: 10px 15px;
    border: none;
    border-radius: 8px;
    background: white;
    color: var(--dark);
    font-weight: 500;
    cursor: pointer;
    transition: var(--transition);
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    flex: 1;
    min-width: 80px;
    border: 2px solid transparent;
}

.btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
}

.btn.active {
    background: var(--primary);
    color: white;
    border-color: var(--primary);
}

.btn.warning {
    background: var(--warning);
    color: var(--dark);
}

.btn.success {
    background: var(--success);
    color: white;
}
#start-btn {
    flex: none;
    width: auto;
    padding: 10px 50px;
    font-size: 1rem;
    align-self: flex-start;
}

.game-panel {
    flex: 1;
    padding: 30px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 30px;
}

.status {
    background: var(--light);
    padding: 15px 25px;
    border-radius: 50px;
    font-size: 1.2rem;
    font-weight: 600;
    color: var(--primary);
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.08);
    text-align: center;
    min-height: 55px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.status.highlight {
    background: var(--warning);
    color: white;
}

.board {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
    width: 100%;
    max-width: 400px;
    aspect-ratio: 1/1;
    background: var(--board-bg);
    padding: 15px;
    border-radius: 15px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2);
}

.cell {
    background: var(--cell-bg);
    border-radius: 8px;
    display: flex;
    justify-content: center;
    align-items: center;
    cursor: pointer;
    font-size: 3.5rem;
    font-weight: 700;
    color: white;
    transition: var(--transition);
    box-shadow: inset 0 0 10px rgba(0, 0, 0, 0.2);
}

.cell:hover {
    background: #3d566e;
    transform: scale(1.03);
}

.cell.x {
    color: #ff6b6b;
}

.cell.o {
    color: #48dbfb;
}

.controls {
    display: flex;
    gap: 15px;
    margin-top: 10px;
}

.footer {
    padding: 20px;
    text-align: center;
    background: var(--light);
    color: var(--dark);
    font-size: 0.9rem;
    border-top: 1px solid rgba(0, 0, 0, 0.05);
}

.highlight-text {
    color: var(--accent);
    font-weight: 600;
}

ul {
    padding-left: 20px;
    line-height: 1.6;
}

ul li {
    margin-bottom: 8px;
}

@media (max-width: 768px) {
    .content {
        flex-direction: column;
    }
    
    .settings-panel {
        width: 100%;
        border-right: none;
        border-bottom: 1px solid rgba(0, 0, 0, 0.05);
    }
    
    .board {
        max-width: 320px;
    }
}
.modal {
    display: none;
    position: fixed;
    top: 0; left: 0;
    width: 100%; height: 100%;
    background: rgba(0,0,0,0.6);
    justify-content: center;
    align-items: center;
    z-index: 999;
}

.modal-content {
    background: var(--light);
    padding: 25px;
    border-radius: 12px;
    box-shadow: var(--shadow);
    text-align: center;
    max-width: 400px;
    width: 90%;
}

.modal-buttons {
    margin-top: 15px;
    display: flex;
    justify-content: center;
    gap: 15px;
}
