body {
    font-family: Arial;
    text-align: center;
    margin: 0;
    padding: 0;
    color: aquamarine;

    background-image: url("https://img.ccnull.de/1110000/preview/1111973_363129c34e9a1609a797412ec3b278fa.jpg");
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

/* Board */
#board {
    display: grid;
    grid-template-columns: repeat(3, 100px);
    gap: 6px;
    justify-content: center;
    margin-top: 20px;
}

.cell {
    width: 100px;
    height: 100px;
    background: rgba(0,0,0,0.85);
    border: 2px solid white;
    cursor: pointer;
}

.cell.player_x,
.cell.player_o {
    background-size: 70px;
    background-position: center;
    background-repeat: no-repeat;
}

.cell.player_x { background-image: url("x.png"); }
.cell.player_o { background-image: url("o.png"); }

.cell {
    position: relative;
    width: 100px;
    height: 100px;
    background-color: rgb(0, 0, 0);
    border: 2px solid #ffffff;
    cursor: pointer;

    display: flex;
    align-items: center;
    justify-content: center;
}

/* Hover Effekt OHNE X/O zu zerstören */
.cell:hover {
    background-color: rgb(105, 101, 101);
}

/* Status */
#status {
    margin-top: 10px;
}

/* Gewinn */
/* Gewinn-Zellen pulsieren und nach vorne kommen */
.cell.win-blink {
    animation: blinkWin 0.6s ease-in-out 0s 4; /* blinkt 4 Mal */
    box-shadow: 0 0 15px gold, 0 0 25px orange; /* Leuchteffekt */
    transform: scale(1.2); /* leicht vergrößern */
    z-index: 10; /* nach vorne */
    position: relative;
}

@keyframes blinkWin {
    0%, 100% { transform: scale(1.2); }
    50% { transform: scale(1.4); }
}



/* Konfetti */
.particle {
    position: absolute;
    width: 10px;
    height: 10px;
    background: gold;
    border-radius: 50%;
    animation: fall 2s linear forwards;
}

@keyframes fall {
    0% { transform: translateY(0); }
    100% { transform: translateY(500px); opacity: 0; }
}

/* 🔐 Geheimmenü */
#secretPanelBox {
    position: fixed;
    bottom: -250px;
    left: 50%;
    transform: translateX(-50%);
    width: 300px;
    background: rgba(0,0,0,0.9);
    color: white;
    padding: 20px;
    border: 2px solid white;
    border-radius: 10px 10px 0 0;
    transition: bottom 0.4s ease;
    z-index: 1000;
}

#secretPanelBox.open {
    bottom: 20px;
}

.img-button {
    background: none;
    border: none;
    cursor: pointer;
    margin: 10px auto;
    display: block;
}

.img-button img {
    width: 240px;
    height: auto;
    transition: transform 0.2s;
}

.img-button img:hover {
    transform: scale(1.1);
}
