@import url('https://fonts.googleapis.com/css2?family=Noto+Sans+Armenian:wght@400;700&display=swap');

body {
    overscroll-behavior: none;
    background-color: #1a1a2e; /* Darker background outside game */
    font-family: 'Noto Sans Armenian', sans-serif;
}

.game-main {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 20px;
    min-height: 85vh;
    width: 100%;
    box-sizing: border-box;
}

#game-container {
    position: relative;
    width: 100%;
    max-width: 420px;
    height: 750px;
    max-height: 85vh;
    /* Modern Gradient Background for the sky */
    background: linear-gradient(to bottom, #1e3c72, #2a5298, #6dd5ed);
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 20px 50px rgba(0,0,0,0.5);
    border: 6px solid #2c3e50;
}

canvas {
    display: block;
    width: 100%;
    height: 100%;
    touch-action: none;
}

/* HUD */
#hud {
    position: absolute;
    top: 15px;
    left: 15px;
    z-index: 10;
    pointer-events: none;
}

.score-container {
    background: rgba(255, 255, 255, 0.25);
    backdrop-filter: blur(5px);
    padding: 8px 18px;
    border-radius: 30px;
    border: 1px solid rgba(255, 255, 255, 0.4);
    font-weight: bold;
    color: white;
    font-size: 20px;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
    display: flex;
    align-items: center;
    gap: 8px;
    text-shadow: 0 2px 4px rgba(0,0,0,0.3);
}

/* MENU OVERLAY - Glassmorphism */
#menu-overlay {
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    background: rgba(30, 60, 114, 0.85);
    backdrop-filter: blur(8px);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    z-index: 20;
    padding: 20px;
    box-sizing: border-box;
    transition: opacity 0.3s;
}

.menu-content {
    background: white;
    padding: 30px 20px;
    border-radius: 25px;
    width: 85%;
    max-width: 300px;
    text-align: center;
    box-shadow: 0 15px 35px rgba(0,0,0,0.3);
    animation: float 3s ease-in-out infinite;
}

@keyframes float {
    0% { transform: translateY(0px); }
    50% { transform: translateY(-10px); }
    100% { transform: translateY(0px); }
}

#menu-title {
    color: #2c3e50;
    font-size: 28px;
    margin: 0 0 5px 0;
    font-weight: 800;
}

#menu-subtitle {
    color: #7f8c8d;
    font-size: 14px;
    margin-bottom: 25px;
}

.items-legend {
    display: flex;
    justify-content: space-around;
    font-size: 13px;
    color: #555;
    margin-bottom: 20px;
    background: #f8f9fa;
    padding: 10px;
    border-radius: 10px;
}

#final-score-display {
    margin-bottom: 25px;
}

.score-label {
    display: block;
    font-size: 14px;
    color: #95a5a6;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.score-val {
    display: block;
    font-size: 42px;
    font-weight: 800;
    color: #e67e22;
    line-height: 1;
}

#start-btn {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border: none;
    padding: 16px 0;
    width: 100%;
    font-size: 18px;
    border-radius: 50px;
    font-weight: bold;
    cursor: pointer;
    box-shadow: 0 10px 20px rgba(118, 75, 162, 0.4);
    transition: transform 0.2s, box-shadow 0.2s;
    font-family: 'Noto Sans Armenian', sans-serif;
}

#start-btn:active {
    transform: scale(0.96);
    box-shadow: 0 5px 10px rgba(118, 75, 162, 0.4);
}

.controls-hint {
    margin-top: 25px;
    color: #bdc3c7;
    font-size: 12px;
    display: flex;
    justify-content: space-around;
    width: 100%;
}

@media (max-width: 600px) {
    .game-main { padding: 0; height: 100vh; min-height: 100vh; }
    #game-container { border: none; border-radius: 0; max-height: 100vh; height: 100vh; }
}