* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Arial', sans-serif;
    background: linear-gradient(45deg, #ff6b6b, #4ecdc4);
    overflow: hidden;
    cursor: auto;
}

#banner {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background: linear-gradient(90deg, #8B4513, #654321, #8B4513);
    color: white;
    text-align: center;
    padding: 15px 0;
    font-size: 2em;
    font-weight: bold;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.8);
    border-bottom: 3px solid #4a2c17;
    z-index: 15;
    letter-spacing: 3px;
}

#gameCanvas {
    position: fixed;
    top: 70px;
    left: 0;
    z-index: 1;
    background: #e8f4f8;
}

#ui {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 10;
    pointer-events: none;
}

.screen {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    text-align: center;
    color: white;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.5);
    pointer-events: all;
}

.screen.hidden {
    display: none;
}

#startScreen {
    background: rgba(0,0,0,0.8);
    padding: 40px;
    border-radius: 20px;
    border: 3px solid #ff6b6b;
}

#startScreen h1 {
    font-size: 3em;
    margin-bottom: 20px;
    color: #ff6b6b;
}

#startScreen p {
    font-size: 1.2em;
    margin-bottom: 15px;
}

button {
    font-size: 1.5em;
    padding: 15px 30px;
    background: #ff6b6b;
    color: white;
    border: none;
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.3s;
}

button:hover {
    background: #ff5252;
    transform: scale(1.05);
}

#gameUI {
    position: fixed;
    top: 90px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 0;
    pointer-events: none;
    background: #1a1a1a;
    border: 4px solid #333;
    border-radius: 15px;
    padding: 5px;
    box-shadow: 0 8px 20px rgba(0,0,0,0.5), inset 0 2px 5px rgba(255,255,255,0.1);
}

#score, #timer, #combo, #level, #lives {
    background: linear-gradient(to bottom, #2a2a2a, #1a1a1a);
    padding: 10px 20px;
    border-radius: 8px;
    font-size: 1.4em;
    font-weight: bold;
    text-align: center;
    min-width: 120px;
    border: 2px solid #444;
    margin: 2px;
    position: relative;
    box-shadow: inset 0 2px 4px rgba(0,0,0,0.5), inset 0 -2px 4px rgba(255,255,255,0.1);
}

#score span, #timer span, #combo span, #level span, #lives span {
    display: block;
    font-size: 1.6em;
    margin-top: 5px;
    text-shadow: 0 0 10px currentColor;
}

#score::before, #timer::before, #combo::before, #level::before, #lives::before {
    content: attr(data-label);
    display: block;
    font-size: 0.6em;
    text-transform: uppercase;
    letter-spacing: 2px;
    opacity: 0.8;
    margin-bottom: -5px;
}

#score {
    color: #00ff00;
    border-color: #00aa00;
}
#score::before { content: 'SCORE'; }

#timer {
    color: #ffff00;
    border-color: #aaaa00;
}
#timer::before { content: 'TIME'; }

#combo {
    color: #ff6b6b;
    border-color: #aa4545;
}
#combo::before { content: 'COMBO'; }

#level {
    color: #00ffff;
    border-color: #00aaaa;
}
#level::before { content: 'LEVEL'; }

#lives {
    color: #ff4444;
    border-color: #aa2222;
}
#lives::before { content: 'LIVES'; }

#gameOverScreen {
    background: rgba(0,0,0,0.9);
    padding: 40px;
    border-radius: 20px;
    border: 3px solid #ff6b6b;
}

#gameOverScreen h1 {
    font-size: 2.5em;
    color: #ff6b6b;
    margin-bottom: 20px;
}

#finalScore {
    font-size: 1.5em;
    margin-bottom: 25px;
    color: #4ecdc4;
}

#helpButton {
    position: fixed;
    top: 90px;
    right: 20px;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    font-size: 24px;
    font-weight: bold;
    border: 3px solid #fff;
    cursor: pointer;
    z-index: 20;
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 10px rgba(0,0,0,0.3);
    transition: all 0.3s;
}

#helpButton:hover {
    transform: scale(1.1);
    box-shadow: 0 6px 15px rgba(0,0,0,0.4);
}

#helpButton.hidden {
    display: none;
}

#helpScreen {
    background: rgba(0,0,0,0.95);
    padding: 30px;
    border-radius: 20px;
    border: 3px solid #667eea;
    max-width: 500px;
    z-index: 100;
}

#helpScreen h2 {
    font-size: 2em;
    margin-bottom: 20px;
    color: #667eea;
}

#helpScreen p {
    font-size: 1.1em;
    margin-bottom: 12px;
    text-align: left;
}

#closeHelpButton {
    margin-top: 20px;
    background: #667eea;
}

#closeHelpButton:hover {
    background: #764ba2;
}

.hammer-cursor {
    cursor: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" width="96" height="96" viewBox="0 0 96 96"><rect width="12" height="56" x="42" y="30" fill="%23654321"/><rect width="56" height="20" x="20" y="10" fill="%23666"/><rect width="48" height="12" x="24" y="14" fill="%23999"/><circle cx="74" cy="20" r="6" fill="%23444"/><rect width="8" height="12" x="44" y="18" fill="%23333"/></svg>') 48 48, auto;
}

/* Mobile responsive styles */
@media (max-width: 768px) {
    #banner {
        padding: 10px 0;
        font-size: 1.2em;
        letter-spacing: 1px;
    }
    
    #gameCanvas {
        top: 50px;
    }
    
    #gameUI {
        flex-wrap: wrap;
        gap: 0;
        top: 60px;
        left: 10px;
        right: 10px;
        transform: none;
        width: calc(100% - 20px);
        padding: 3px;
        border-width: 2px;
    }
    
    #score, #timer, #combo, #level, #lives {
        padding: 6px 8px;
        font-size: 0.9em;
        min-width: 0;
        flex: 1;
        margin: 1px;
        border-width: 1px;
    }
    
    #score span, #timer span, #combo span, #level span, #lives span {
        font-size: 1.4em;
        margin-top: 2px;
    }
    
    #score::before, #timer::before, #combo::before, #level::before, #lives::before {
        font-size: 0.5em;
        letter-spacing: 1px;
        margin-bottom: -3px;
    }
    
    #startScreen, #gameOverScreen, #helpScreen {
        width: 90%;
        max-width: 400px;
    }
    
    #helpButton {
        top: 60px;
        right: 10px;
        width: 40px;
        height: 40px;
        font-size: 20px;
    }
}