:root {
    --bg-color: transparent;
    --text-color: #fff;
    --cell-bg: rgba(255, 255, 255, 0.05);
    --cell-hover: rgba(255, 255, 255, 0.1);
    --border-color: rgba(255, 255, 255, 0.2);
    --accent-color: rgba(113, 54, 211, 1);
    --status-color: #eee;
}

body {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    margin: 0;
}

.game-wrapper {
    padding-top: 100px;
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
}

.container {
    text-align: center;
    background: rgba(35, 36, 52, 0.6);
    padding: 2.5rem;
    border-radius: 20px;
    box-shadow: 0 10px 40px rgba(0,0,0,0.4);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255,255,255,0.1);
    width: min(90%, 450px);
}

h1 {
    margin-bottom: 1.5rem;
    color: #fff;
    letter-spacing: 2px;
    text-transform: uppercase;
    font-size: 2rem;
}

.controls {
    margin-bottom: 1.5rem;
    display: flex;
    gap: 10px;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
}

label {
    color: rgba(255,255,255,0.8);
}

select, button {
    padding: 10px 16px;
    border-radius: 8px;
    border: 1px solid var(--border-color);
    background-color: rgba(255,255,255,0.08);
    color: #fff;
    cursor: pointer;
    font-size: 0.9rem;
    transition: all 0.3s ease;
}

select option {
    background-color: #1c1d2a;
    color: #fff;
}

button:hover {
    background-color: var(--accent-color);
    border-color: var(--accent-color);
}

#status {
    font-size: 1.25rem;
    font-weight: bold;
    margin-bottom: 1.5rem;
    color: var(--status-color);
    height: 1.5em;
}

.board {
    display: grid;
    grid-template-columns: repeat(3, 100px);
    grid-template-rows: repeat(3, 100px);
    gap: 15px;
    margin: 0 auto;
    justify-content: center;
}

.cell {
    width: 100px;
    height: 100px;
    background-color: var(--cell-bg);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 2.5rem;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s ease;
}

.cell:hover {
    background-color: var(--cell-hover);
    border-color: rgba(255,255,255,0.4);
}

.cell:active {
    transform: scale(0.95);
}

.cell.taken {
    cursor: not-allowed;
}

.cell.x {
    color: #ff4d4d;
    text-shadow: 0 0 15px rgba(255, 77, 77, 0.5);
}

.cell.o {
    color: #4da6ff;
    text-shadow: 0 0 15px rgba(77, 166, 255, 0.5);
}

@media (max-width: 480px) {
    .board {
        grid-template-columns: repeat(3, 80px);
        grid-template-rows: repeat(3, 80px);
        gap: 10px;
    }
    .cell {
        width: 80px;
        height: 80px;
        font-size: 2rem;
    }
}
