.game-wrapper {
    min-height: 80vh;
    padding: 20px 0;
}

#game-container {
    position: relative;
    width: 100%;
    height: calc(100vh - 180px);
    min-height: 400px;
    margin: 0 auto;
    overflow: hidden;
    border-radius: 8px;
    box-shadow: 0 4px 20px rgba(255, 140, 66, 0.2);
}

#game-container canvas {
    display: block;
}

#blocker {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 100;
}

#instructions {
    text-align: center;
    color: #fff;
    max-width: 500px;
    padding: 40px;
    background: rgba(0, 0, 0, 0.5);
    border-radius: 20px;
    border: 3px solid #FF8C42;
}

#instructions h1 {
    font-size: 2rem;
    margin-bottom: 15px;
    color: #FF8C42;
    text-shadow: 0 2px 4px rgba(0,0,0,0.3);
}

#instructions p {
    margin: 10px 0;
    line-height: 1.6;
    color: #ddd;
}

#start-btn, #restart-btn {
    margin-top: 20px;
    padding: 14px 40px;
    font-size: 1.2rem;
    font-weight: 700;
    background: #FF8C42;
    color: #fff;
    border: 3px solid #E8B87D;
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.2s;
    font-family: inherit;
}

#start-btn:hover, #restart-btn:hover {
    background: #E87D3A;
    transform: translateY(-2px);
}

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

#weapon-display {
    position: absolute;
    bottom: 40px;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(0, 0, 0, 0.6);
    padding: 10px 24px;
    border-radius: 12px;
    border: 2px solid #FF8C42;
    color: #fff;
    text-align: center;
    min-width: 160px;
}

#weapon-name {
    display: block;
    font-size: 0.9rem;
    color: #FF8C42;
}

#ammo-display {
    display: block;
    font-size: 1.8rem;
    font-weight: 800;
}

#score-display {
    position: absolute;
    top: 20px;
    right: 20px;
    background: rgba(0, 0, 0, 0.6);
    padding: 8px 16px;
    border-radius: 10px;
    border: 2px solid #FF8C42;
    color: #fff;
    font-size: 1.1rem;
    font-weight: 700;
}

#wave-display {
    position: absolute;
    top: 20px;
    left: 20px;
    background: rgba(0, 0, 0, 0.6);
    padding: 8px 16px;
    border-radius: 10px;
    border: 2px solid #4CAF50;
    color: #fff;
    font-size: 1.1rem;
    font-weight: 700;
}

#health-display {
    position: absolute;
    top: 70px;
    left: 20px;
    background: rgba(0, 0, 0, 0.6);
    padding: 8px 16px;
    border-radius: 10px;
    border: 2px solid #e74c3c;
    color: #fff;
    font-size: 1.1rem;
    font-weight: 700;
}

#crosshair {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: rgba(255, 255, 255, 0.7);
    font-size: 30px;
    font-weight: 100;
    text-shadow: 0 0 4px rgba(0,0,0,0.5);
}

#game-over-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    z-index: 200;
}

#game-over-overlay h1 {
    color: #e74c3c;
    font-size: 3rem;
    margin-bottom: 15px;
}

#game-over-overlay p {
    color: #fff;
    font-size: 1.5rem;
    margin-bottom: 20px;
}

@media (max-width: 768px) {
    #game-container {
        height: calc(100vh - 200px);
        min-height: 350px;
    }
}
