* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: Arial, sans-serif;
}

body {
    min-height: 100vh;
    background: linear-gradient(to bottom right, #020617, #0f172a);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.main-box {
    width: 100%;
    max-width: 430px;
    background: rgba(17, 24, 39, 0.95);
    padding: 32px;
    border-radius: 24px;
    text-align: center;
    border: 1px solid rgba(255, 255, 255, 0.05);

    box-shadow:
        0 0 30px rgba(34, 211, 238, 0.08),
        0 0 60px rgba(59, 130, 246, 0.05);
}

.top-section {
    margin-bottom: 24px;
}

h1 {
    color: white;
    font-size: 44px;
    letter-spacing: -1px;
    margin-bottom: 10px;
}

.game-info {
    color: #94a3b8;
    font-size: 15px;
    line-height: 24px;
}

.status-area {
    margin-bottom: 24px;
}

.status-text {
    color: #22d3ee;
    font-size: 16px;
    font-weight: bold;
    letter-spacing: 0.5px;
}

.game-board {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 14px;
}

.box {
    aspect-ratio: 1;
    background: #1e293b;
    border-radius: 18px;
    cursor: pointer;

    display: flex;
    align-items: center;
    justify-content: center;

    font-size: 42px;
    font-weight: bold;

    transition: 0.2s;

    border: 1px solid rgba(255, 255, 255, 0.04);
}

.box:hover {
    background: #273449;
    transform: scale(1.03);
}

.x-style {
    color: #22d3ee;

    text-shadow:
        0 0 10px rgba(34, 211, 238, 0.8),
        0 0 20px rgba(34, 211, 238, 0.4);
}

.o-style {
    color: #fb7185;

    text-shadow:
        0 0 10px rgba(251, 113, 133, 0.8),
        0 0 20px rgba(251, 113, 133, 0.4);
}

.bottom-section {
    margin-top: 30px;
}

.restart-btn {
    width: 100%;
    padding: 15px;
    border: none;
    border-radius: 14px;
    background: linear-gradient(to right, #22d3ee, #3b82f6);
    color: #0f172a;
    font-size: 15px;
    font-weight: bold;
    cursor: pointer;
    transition: 0.2s;
}

.restart-btn:hover {
    transform: translateY(-2px);
    opacity: 0.95;
}

@media (max-width: 500px) {

    .main-box {
        padding: 24px;
    }

    h1 {
        font-size: 36px;
    }

    .box {
        border-radius: 14px;
        font-size: 36px;
    }

}