* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Orbitron', monospace;
    background: linear-gradient(135deg, #0a0a0a 0%, #1a1a2e 50%, #16213e 100%);
    color: #00ff41;
    min-height: 100vh;
    overflow-x: hidden;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

.game-header {
    text-align: center;
    margin-bottom: 20px;
    padding: 20px;
    background: rgba(0, 0, 0, 0.8);
    border: 2px solid #00ff41;
    border-radius: 10px;
    box-shadow: 0 0 20px rgba(0, 255, 65, 0.3);
}

.title {
    font-size: 3rem;
    font-weight: 900;
    text-shadow: 0 0 10px #00ff41, 0 0 20px #00ff41, 0 0 30px #00ff41;
    margin-bottom: 15px;
    letter-spacing: 5px;
}

.score-board {
    display: flex;
    justify-content: space-around;
    flex-wrap: wrap;
    gap: 20px;
    font-size: 1.2rem;
    font-weight: 700;
}

.score-board > div {
    padding: 10px 20px;
    background: rgba(0, 0, 0, 0.6);
    border: 1px solid #00ff41;
    border-radius: 5px;
    box-shadow: 0 0 10px rgba(0, 255, 65, 0.2);
}

.game-container {
    flex: 1;
    display: flex;
    flex-direction: row;
    align-items: flex-start;
    gap: 20px;
    justify-content: center;
}

.game-screen {
    width: 600px;
    height: 900px;
    background: #000;
    border: 3px solid #00ff41;
    border-radius: 10px;
    position: relative;
    overflow: hidden;
    box-shadow: 0 0 30px rgba(0, 255, 65, 0.4);
    font-family: 'Courier New', monospace;
    font-size: 20px;
    line-height: 1.5;
    color: #00ff41;
    padding: 10px;
    white-space: pre;
    flex-shrink: 0;
}

.game-controls {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 15px;
    padding: 20px;
    background: rgba(0, 0, 0, 0.8);
    border: 2px solid #00ff41;
    border-radius: 10px;
    box-shadow: 0 0 20px rgba(0, 255, 65, 0.3);
    width: 200px;
    flex-shrink: 0;
}

.control-info {
    text-align: center;
    margin-bottom: 15px;
}

.control-info p {
    margin: 5px 0;
    font-size: 0.9rem;
    color: #00cc33;
}

.game-btn {
    background: transparent;
    border: 2px solid #00ff41;
    color: #00ff41;
    padding: 12px 24px;
    font-family: 'Orbitron', monospace;
    font-size: 1rem;
    font-weight: 700;
    cursor: pointer;
    border-radius: 5px;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin: 0 10px;
}

.game-btn:hover {
    background: #00ff41;
    color: #000;
    box-shadow: 0 0 15px rgba(0, 255, 65, 0.6);
    transform: translateY(-2px);
}

.game-btn:active {
    transform: translateY(0);
}

.game-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.9);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1000;
}

.overlay-content {
    text-align: center;
    padding: 40px;
    background: rgba(0, 0, 0, 0.95);
    border: 3px solid #00ff41;
    border-radius: 15px;
    box-shadow: 0 0 30px rgba(0, 255, 65, 0.5);
}

.overlay-content h2 {
    font-size: 2.5rem;
    margin-bottom: 20px;
    text-shadow: 0 0 15px #00ff41;
}

.overlay-content p {
    font-size: 1.2rem;
    margin-bottom: 30px;
    color: #00cc33;
}

/* 반응형 디자인 */
@media (max-width: 768px) {
    .container {
        padding: 10px;
    }
    
    .title {
        font-size: 2rem;
        letter-spacing: 3px;
    }
    
    .score-board {
        font-size: 1rem;
        gap: 10px;
    }
    
    .score-board > div {
        padding: 8px 15px;
    }
    
    .game-container {
        flex-direction: column;
        align-items: center;
    }
    
    .game-screen {
        width: 100%;
        height: 500px;
        font-size: 18px;
    }
    
    .game-controls {
        width: 100%;
        padding: 15px;
    }
    
    .control-info p {
        font-size: 0.8rem;
    }
    
    .game-btn {
        padding: 10px 20px;
        font-size: 0.9rem;
        margin: 5px;
    }
    
    .overlay-content h2 {
        font-size: 2rem;
    }
    
    .overlay-content p {
        font-size: 1rem;
    }
}

@media (max-width: 480px) {
    .title {
        font-size: 1.5rem;
        letter-spacing: 2px;
    }
    
    .game-screen {
        height: 400px;
        font-size: 16px;
    }
    
    .score-board {
        flex-direction: column;
        align-items: center;
    }
    
    .game-btn {
        padding: 8px 16px;
        font-size: 0.8rem;
    }
}

/* 애니메이션 효과 */
@keyframes glow {
    0%, 100% {
        box-shadow: 0 0 20px rgba(0, 255, 65, 0.3);
    }
    50% {
        box-shadow: 0 0 30px rgba(0, 255, 65, 0.6);
    }
}

.game-screen {
    animation: glow 2s ease-in-out infinite;
}

/* 게임 요소 스타일 */
.player {
    color: #00ff41;
    text-shadow: 0 0 5px #00ff41;
}

.enemy {
    color: #ff0040;
    text-shadow: 0 0 5px #ff0040;
}

.bullet {
    color: #ffff00;
    text-shadow: 0 0 5px #ffff00;
}

.explosion {
    color: #ff6600;
    text-shadow: 0 0 8px #ff6600;
}

/* 한글 메시지용 폰트 */
.korean-text {
    font-family: 'Noto Sans KR', sans-serif;
}

/* 레트로 폰트 */
.retro-text {
    font-family: 'Orbitron', monospace;
    font-weight: 700;
    letter-spacing: 1px;
}

/* 리더보드 모달 */
.leaderboard-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.9);
    display: none;
    justify-content: center;
    align-items: center;
    z-index: 2000;
}

.modal-content {
    background: rgba(0, 0, 0, 0.95);
    border: 3px solid #00ff41;
    border-radius: 15px;
    padding: 30px;
    text-align: center;
    box-shadow: 0 0 30px rgba(0, 255, 65, 0.5);
    max-width: 500px;
    width: 90%;
}

.leaderboard-list {
    margin: 20px 0;
    text-align: left;
}

.leaderboard-item {
    display: flex;
    justify-content: space-between;
    padding: 10px;
    margin: 5px 0;
    background: rgba(0, 255, 65, 0.1);
    border: 1px solid #00ff41;
    border-radius: 5px;
}

.leaderboard-rank {
    font-weight: 900;
    color: #ffff00;
}

.leaderboard-score {
    font-weight: 700;
    color: #00ff41;
}

.leaderboard-date {
    font-size: 0.8em;
    color: #00cc33;
} 