/* 기본 리셋 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* 전체 레이아웃 */
body {
    background-color: rgb(255, 255, 255);
    height: 100vh;
    overflow: hidden;
    cursor: none;
}

/* 스푰 스타일 */
.spoon {
    position: absolute;
    width: 200px;
    height: 200px;
    background-image: url('spoon.png');
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
    transition: transform 0.1s ease-out;
    pointer-events: none;
    z-index: 1000;
}

.spoon::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 100%;
    height: 100%;
    background-image: url('spoon3.png');
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
    transform: translate(-50%, -50%);
}

/* 떨어지는 객체 컨테이너 */
.falling-container {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 500;
}

/* 떨어지는 객체 */
.falling-item {
    position: absolute;
    width: 90px;
    height: 90px;
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
    animation: fall linear;
}

/* 떨어지는 애니메이션 */
@keyframes fall {
    from {
        transform: translateY(-50px);
    }
    to {
        transform: translateY(100vh);
    }
}

/* 쌓인 객체 */
.stacked-item {
    position: absolute;
    width: 40px;
    height: 40px;
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
    z-index: 600;
}

/* 게임 오버 오버레이 */
.game-over-screen {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(255, 255, 255, 0.95);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 3000;
}

.game-over-content {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    align-items: center;
    width: 80%;
    max-width: 1000px;
}

.game-over-image {
    width: 100%;
    max-width: 300px;
    max-height: 300px;
    object-fit: contain;
    justify-self: center;
}

.game-over-image.left {
    justify-self: start;
}

.game-over-image.center {
    justify-self: center;
}

.game-over-image.right {
    justify-self: end;
}

/* 기본 커서 숨기기 */
body * {
    cursor: none !important;
}