body {
    width: 100vw;
    height: 100vh;
    background: var(--background);
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.header {
    display: flex;
    justify-content: center;
    align-items: center;
    margin: 0 0 6.4rem;

    & img {
        width: 18rem;
    }
}

/* CELL BLOCK */
.board {
    display: grid;
    place-content: center;
    place-items: center;
    width: 100%;
    height: auto;
    grid-template-columns: repeat(3, auto);

    & .space {
        display: flex;
        justify-content: center;
        align-items: center;
        width: 100px;
        height: 100px;
        border: 2px solid var(--dark500);
    }

    & .space:nth-child(1),
    .space:nth-child(2),
    .space:nth-child(3) {
        border-top: none;
    }

    & .space:nth-child(3),
    .space:nth-child(6),
    .space:nth-child(9) {
        border-right: none;
    }

    & .space:nth-child(7),
    .space:nth-child(8),
    .space:nth-child(9) {
        border-bottom: none;
    }

    & .space:nth-child(1),
    .space:nth-child(4),
    .space:nth-child(7) {
        border-left: none;
    }
}

.space.x,
.space.o {
    cursor: not-allowed;
}

.board.x .space:not(.x):not(.o):hover::before,
.board.x .space:not(.x):not(.o):hover::after,
.board.o .space:not(.x):not(.o):hover::before,
.board.o .space:not(.x):not(.o):hover::after {
    background: rgba(91, 88, 79, .25) !important;
}

/* PLAYER X */
.space.x::before,
.space.x::after,
.board.x .space:not(.x):not(.o):hover::before,
.board.x .space:not(.x):not(.o):hover::after {
    content: "";
    position: absolute;
    height: calc(100px * 0.2);
    width: 100px;
    background: var(--x-color);
    border-radius: 10rem;
}

.space.x::before,
.board.x .space:not(.x):not(.o)::before {
    transform: rotate(45deg);
}

.space.x::after,
.board.x .space:not(.x):not(.o)::after {
    transform: rotate(-45deg);
}

/* PLAYER O */
.space.o::before,
.space.o::after,
.board.o .space:not(.x):not(.o):hover::before,
.board.o .space:not(.x):not(.o):hover::after {
    content: "";
    position: absolute;
    height: calc(100px * 0.8);
    width: calc(100px * 0.8);
    background: var(--o-color);
    border-radius: 50%;
}

/* WINN MESSAGE */
.winn {
    display: none;
    justify-content: center;
    align-items: center;
    flex-direction: column;
    gap: 2.4rem;
    position: fixed;
    width: 100%;
    height: 100vh;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: rgba(0, 0, 0, 0.75);

    & .winn-text {
        font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
        font-size: 5.2rem;
        color: var(--text-winn);
        text-transform: uppercase;
    }

    & .winn-button {
        padding: .8rem 1.6rem;
        font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
        text-transform: uppercase;
        font-weight: 700;
        font-size: 1.8rem;
        color: var(--dark100);
        border: none;
        border-radius: 10rem;
        background: var(--restart);
        box-shadow: inset 0 -4px 8px rgba(0, 0, 0, .4), inset 0 4px 8px rgba(255, 255, 255, .05), 0 4px 10px rgba(0, 0, 0, .3), 0 2px 4px rgba(0, 0, 0, .5);
    }

    & .winn-button:hover {
        filter: brightness(1.1);
    }

    & .winn-button:active {
        filter: brightness(.8);
        box-shadow: inset 0 0 8px rgba(0, 0, 0, .4), 0 4px 10px rgba(0, 0, 0, .3), 0 2px 4px rgba(0, 0, 0, .5);
    }
}

.winnactive {
    display: flex;
}