@import url('https://fonts.googleapis.com/css2?family=Bangers&display=swap');

ebody, ehtml {
    margin: 0;
    padding: 0;
    width: 100%;
    height: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    background: #1a1a1a;
    font-family: 'Helvetica Neue', Arial, sans-serif;
    color: white;
    -webkit-tap-highlight-color: transparent;
}

#game-container {
    width: 100vmin;
    height: 100vmin;
    max-width: 900px;
    max-height: 900px;
    position: relative;
    overflow: hidden;
    border: 8px solid #4a4a4a;
    border-radius: 25px;
    box-shadow: 0 15px 30px rgba(0,0,0,0.3), 0 10px 10px rgba(0,0,0,0.25);
}

canvas {
    width: 100%;
    height: 100%;
    display: block;
}

#ui {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
    pointer-events: none;
}

#start-screen, #game-over-screen {
    background: rgba(0, 0, 0, 0.7);
    padding: 5vmin;
    border-radius: 3vmin;
    backdrop-filter: blur(8px);
    border: 2px solid rgba(255, 255, 255, 0.1);
    pointer-events: all;
    width: 80%;
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

h1 {
    margin: 0 0 2vmin 0;
    font-family: 'Bangers', cursive;
    font-size: clamp(28px, 12vmin, 90px);
    color: #ffde00;
    text-shadow: 0.6vmin 0.6vmin 1.2vmin rgba(0,0,0,0.7);
    letter-spacing: 3px;
}

p {
    font-size: clamp(14px, 3.5vmin, 28px);
    margin: 2vmin 0;
}

#difficulty-buttons button, #restart, .help-btn {
    padding: 2vmin 4vmin;
    font-size: clamp(16px, 4.5vmin, 36px);
    font-family: 'Bangers', cursive;
    letter-spacing: 1px;
    cursor: pointer;
    border: none;
    border-radius: 2vmin;
    background: linear-gradient(145deg, #ffde00, #ffc400);
    color: #333;
    margin: 1vmin;
    transition: transform 0.2s;
    box-shadow: 0 0.5vmin 1vmin rgba(0,0,0,0.2);
}

#difficulty-buttons button:hover, #restart:hover, .help-btn:hover {
    transform: translateY(-3px) scale(1.05);
}

.help-btn {
    background: #3498db;
    color: white;
    margin-top: 2vmin;
}

.high-score {
    margin-top: 3vmin;
    font-size: clamp(14px, 3.5vmin, 28px);
    font-family: 'Bangers', cursive;
    letter-spacing: 1px;
}

.sound-toggle {
    margin-top: 2vmin;
    font-size: clamp(12px, 3vmin, 24px);
    font-family: 'Helvetica Neue', Arial, sans-serif;
    display: flex;
    align-items: center;
    justify-content: center;
}

.sound-toggle input[type="checkbox"] {
    margin-right: 1vmin;
    width: 3vmin;
    height: 3vmin;
}

#game-over-screen p {
    font-size: clamp(18px, 6vmin, 48px);
    font-family: 'Bangers', cursive;
    letter-spacing: 2px;
    margin: 1vmin 0;
}

.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1000;
    backdrop-filter: blur(5px);
}

.modal-content {
    background: #333;
    padding: 4vmin;
    border-radius: 3vmin;
    width: 80%;
    max-width: 600px;
    position: relative;
    border: 2px solid rgba(255, 255, 255, 0.2);
}

.close-btn {
    position: absolute;
    top: 2vmin;
    right: 2vmin;
    font-size: 6vmin;
    cursor: pointer;
}

.powerup-list {
    list-style: none;
    padding: 0;
    text-align: left;
    font-size: clamp(14px, 3.5vmin, 24px);
}

.powerup-list li {
    margin-bottom: 1vmin;
    display: flex;
    align-items: center;
}

.collectible-icon {
    display: inline-flex;
    justify-content: center;
    align-items: center;
    width: 6vmin;
    height: 6vmin;
    border-radius: 50%;
    margin-right: 2vmin;
    font-size: 4vmin;
    box-shadow: 0 0 1.5vmin rgba(0,0,0,0.5);
}

.modal-buttons button {
    padding: 2vmin 4vmin;
    font-size: clamp(16px, 4.5vmin, 36px);
    font-family: 'Bangers', cursive;
    letter-spacing: 1px;
    cursor: pointer;
    border: none;
    border-radius: 2vmin;
    margin: 1vmin;
    transition: transform 0.2s;
}

#confirm-restart-btn {
    background: #e74c3c;
    color: white;
}

#cancel-restart-btn {
    background: #95a5a6;
    color: white;
}
