body {
    margin: 1rem;
    overflow: hidden;
    background-color: transparent;
}

#game-container {
    position: absolute;
    left: 50%;
    transform: translate(-50%, 0);
    width: calc(100% - 2rem);
    height: calc(100% - 2rem);
    border: 2px solid #00FF00;
    overflow: hidden;
    background-color: rgba(0, 255, 0, 0.2);
}

#gene-area {
    position: absolute;
    bottom: 1rem;
    left: 50%;
    transform: translate(-50%, 0);
    width: calc(100% - 2rem);
    height: calc(100% - 4rem);
}

.game-item {
    position: absolute;
    cursor: pointer;
}

.game-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

#fullscreen-btn {
    position: fixed;
    right: 1rem;
    top: 1rem;
    cursor: pointer;
    z-index: 1;
}

#score-display {
    position: fixed;
    top: 1rem;
    left: 1rem;
    z-index: 1;
}

/* 新しいアニメーションを追加 */
@keyframes breakApart {
    0% { transform: scale(1); }
    50% { transform: scale(0.5); }
    100% { transform: scale(0); opacity: 0; }
}

.game-item.broken {
    animation: breakApart 0.3s ease-out;
}
