body, html {
    margin: 0;
    padding: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    background-color: #000;
    display: flex;
    justify-content: center;
    align-items: center;
    font-family: 'Pretendard', sans-serif;
}

#game-container {
    position: relative;
    width: 100vw;
    height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
}

#space-canvas {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

#earth-container {
    position: relative;
    z-index: 10;
    cursor: pointer;
    transition: transform 0.1s;
}

#earth {
    width: 200px;
    height: 200px;
    border-radius: 50%;
    background: radial-gradient(circle at 30% 30%, #4facfe 0%, #00f2fe 30%, #0a4d92 70%, #000 100%);
    box-shadow: inset -20px -20px 50px rgba(0,0,0,0.8), 0 0 40px rgba(79, 172, 254, 0.4);
    position: relative;
    overflow: hidden;
}

/* 대략적인 대륙 표현 */
#earth::before {
    content: '';
    position: absolute;
    width: 300px;
    height: 300px;
    background: rgba(34, 139, 34, 0.6);
    top: -50px;
    left: -50px;
    border-radius: 40% 60% 70% 30% / 40% 50% 60% 50%;
    filter: blur(5px);
}

/* 진동 애니메이션 */
.shake {
    animation: shake 0.1s linear infinite;
}

@keyframes shake {
    0% { transform: translate(1px, 1px) rotate(0deg); }
    10% { transform: translate(-1px, -2px) rotate(-1deg); }
    20% { transform: translate(-3px, 0px) rotate(1deg); }
    30% { transform: translate(3px, 2px) rotate(0deg); }
    40% { transform: translate(1px, -1px) rotate(1deg); }
    50% { transform: translate(-1px, 2px) rotate(-1deg); }
    60% { transform: translate(-3px, 1px) rotate(0deg); }
    70% { transform: translate(3px, 1px) rotate(-1deg); }
    80% { transform: translate(-1px, -1px) rotate(1deg); }
    90% { transform: translate(1px, 2px) rotate(0deg); }
    100% { transform: translate(1px, -2px) rotate(-1deg); }
}

#message-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: black;
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 100;
    opacity: 0;
    transition: opacity 2s ease-in;
    pointer-events: none;
}

#message-container.visible {
    opacity: 1;
    pointer-events: all;
}

#end-message {
    color: #ff0000;
    font-size: 4rem;
    font-weight: bold;
    text-shadow: 0 0 30px rgba(255, 0, 0, 1);
    text-align: center;
    padding: 20px;
}

.hidden {
    display: none !important;
}