/* 全体の設定 */
body {
    display: flex;
    flex-direction: column;
    align-items: center;
    font-family: sans-serif;
    background-color: #f0f0f0;
    margin: 0;
}

/* プレイヤー情報 */
.player-info {
    display: flex;
    gap: 20px;
    margin: 20px 0;
    align-items: center;
}
.player-icon {
    width: 24px;
    height: auto;
}

/* ゲームボード */
.game-board {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2px;
    width: 300px;
    margin: 20px 0;
}
.cell {
    width: 100px;
    height: 100px;
    background-color: #ffffff;
    border: 1px solid #ccc;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    position: relative;
}
.cell img {
    width: 60px;
    height: auto;
}

/* 勝利メッセージ */
.winner-message {
    font-size: 24px;
    color: #ff3333;
    font-weight: bold;
    margin: 20px 0;
    text-align: center;
    visibility: hidden;
}

/* リセットボタン */
#resetButton {
    padding: 10px 20px;
    font-size: 16px;
    border-radius: 8px;
    border: none;
    background-color: #4CAF50;
    color: #ffffff;
    cursor: pointer;
    margin-bottom: 20px;
}

/* 勝利エフェクト */
@keyframes highlightWin {
    0% {
        transform: scale(1);
        background-color: rgba(255, 0, 0, 0.3);
    }
    50% {
        transform: scale(1.2);
        background-color: rgba(255, 0, 0, 0.6);
    }
    100% {
        transform: scale(1);
        background-color: rgba(255, 0, 0, 0.3);
    }
}

.highlight {
    animation: highlightWin 0.5s ease-out 3;
    z-index: 1;
}
