body {
    font-family: "Pixelify Sans", sans-serif;
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100vh;
    overflow-x: hidden;
    
}

.game-box {
    border: 6px solid #555;
    padding: 20px;
    width: 320px;
    text-align: center;

    box-shadow: 0 0 0 4px black, 8px 8px 0 black;
}

.title-bar {
    background: #444;
    padding: 8px;
    margin: -20px -20px 15px -20px;
    font-size: 10px;
}

.board {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 5px;
    margin-top: 20px;
}

.cell {
    width: 90px;
    height: 90px;
    background: #A7C7E7;
    border: 2px solid #555;

    display: flex;
    justify-content: center;
    align-items: center;

    font-size: 30px;
    cursor: pointer;
    transition: 0.15s;

    background: #7068BD;
    color: black;

    border: 2px solid black;

    box-shadow: 3px 3px 0px black;
    cursor: pointer;
}

.cell:active {
    transform: translate(2px, 2px);
    box-shadow: 1px 1px 0px black;
}


.cell:hover {
    transform: translateY(-5px) scale(1.05);
    box-shadow: 0 0 10px #A7C7E7;
}

/*pop-up*/
.popup {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.7);

    display: flex;
    justify-content: center;
    align-items: center;
}

.hidden {
    display: none;
}

.popup-box {
    background: #ffffff;
    border: 4px solid #555;
    padding: 20px;
    text-align: center;

    box-shadow: 0 0 0 4px black, 6px 6px 0 black;
}

.popup-box button {
    margin-top: 15px;
    padding: 10px;
    font-family: "Pixelify Sans";
    cursor: pointer;
}


/* 📱 Mobile */
@media (max-width: 500px) {
    .container {
        flex-direction: column;
        transform: scale(0.95);
    }

    .game-box {
        width: 90%;
    }

    .history-panel {
        width: 90%;
    }
}

/* 📲 Tablet */
@media (min-width: 501px) and (max-width: 900px) {
    .container {
        transform: scale(1.1);
    }
}

/* 💻 Laptop */
@media (min-width: 901px) {
    .container {
        transform: scale(1.3);
    }
}