body {
    font-family: sans-serif;
    margin: 0;
    padding: 0;
}

.app {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 100%;
    max-height: 100vh;
    aspect-ratio: 4 / 3;
    background-color: #000;
}

.turn-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 100px;
    height: 100px;
    margin-bottom: 20px;
    background: #111;
    border-radius: 10%;
    border: 2px solid #da00ff;
    box-shadow: 
        0 0 5px #d0f,
        0 0 15px #b0f,
        inset 0 0 10px #80f;
}

.turn-label {
    color: #b0f;
    font-size: 14px;
    font-weight: bold;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 5px;
    text-shadow: 0 0 5px #b0f;
}

#currentTurn {
    width: 40px;
    height: 40px;
}

.board-container {
    position: relative;
    width: 45%;
    max-width: 400px;
    aspect-ratio: 1 / 1;
}

.board {
    width: 100%;
    height: 100%;
    background: #80f;
    border-radius: 10%;
    border: 2px solid #fff;
    box-shadow: 
        0 0 5px #d0f,
        0 0 15px #b0f,
        0 0 30px #80f,
        0 0 50px #00f;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    gap: 2px;
    transform: translateZ(0);
    will-change: transform;
}

.row {
    flex: 1;
    display: flex;
    flex-direction: row;
    gap: 2px;
}

.cell {
    flex: 1;
    background-color: #111;
    box-shadow: inset 0 0 10px #80f;
}

.cell, #currentTurn, #winPlayer {
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
}

.win {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(5, 5, 5, 0.92);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 10;
    animation: fadeIn 0.3s ease-out;
    border-radius: calc(10% - 2px);
}

.win-box {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 15px;
}

#winLabel {
    color: #fff;
    font-size: 28px;
    font-weight: bold;
    letter-spacing: 2px;
    text-shadow: 0 0 10px #fff;
}

#winPlayer {
    width: 80px;
    height: 80px;
}

@keyframes fadeIn {
    from { opacity: 0; transform: scale(0.95); }
    to { opacity: 1; transform: scale(1); }
}

.circle::before {
    content: "";
    width: 60%;
    height: 60%;
    border-radius: 50%;
    border: 4px solid #f00;
    box-sizing: border-box;
    box-shadow: 
        0 0 8px #f00,
        0 0 20px #f44,
        inset 0 0 8px #f44;
}

.cross::before,
.cross::after {
    content: "";
    position: absolute;
    top: 50%;
    left: 20%;
    width: 60%;
    height: 4px;
    background-color: #4f4;
    border-radius: 2px;
    box-shadow: 
        0 0 8px #4f4,
        0 0 20px #8f8;
}

.cross::before {
    transform: translateY(-50%) rotate(45deg);
}

.cross::after {
    transform: translateY(-50%) rotate(-45deg);
}
