* { margin: 0; padding: 0; box-sizing: border-box; font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif; } body { display: flex; flex-direction: column; justify-content: center; align-items: center; min-height: 100vh; background: linear-gradient(135deg, #1a1a2e 0%, #16213e 100%); color: #fff; padding: 20px; overflow-x: hidden; } header { text-align: center; margin-bottom: 20px; width: 100%; max-width: 800px; } h1 { font-size: 3rem; margin-bottom: 10px; color: #FFD700; text-shadow: 0 0 10px rgba(255, 215, 0, 0.5); letter-spacing: 2px; } .subtitle { font-size: 1.2rem; color: #a0a0c0; margin-bottom: 25px; } .game-container { position: relative; width: 800px; max-width: 95vw; margin-bottom: 30px; } canvas { background-color: #0f1123; border-radius: 10px; box-shadow: 0 0 30px rgba(0, 0, 0, 0.7); display: block; margin: 0 auto; } .game-ui { display: flex; justify-content: space-between; width: 800px; max-width: 95vw; margin-bottom: 25px; background-color: rgba(30, 30, 60, 0.8); padding: 15px 20px; border-radius: 10px; box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3); } .score-container, .lives-container { display: flex; flex-direction: column; align-items: center; } .ui-label { font-size: 1rem; color: #a0a0c0; margin-bottom: 5px; } .ui-value { font-size: 1.8rem; font-weight: bold; color: #FFD700; } .controls { display: flex; flex-direction: column; align-items: center; width: 800px; max-width: 95vw; background-color: rgba(30, 30, 60, 0.8); padding: 20px; border-radius: 10px; margin-bottom: 20px; box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3); } .controls h2 { color: #FFD700; margin-bottom: 15px; font-size: 1.5rem; } .key-container { display: flex; flex-direction: column; align-items: center; gap: 8px; } .key-row { display: flex; gap: 8px; } .key { width: 70px; height: 70px; display: flex; justify-content: center; align-items: center; background-color: #2a2a4a; border-radius: 10px; font-size: 1.8rem; font-weight: bold; color: #fff; box-shadow: 0 4px 0 #1a1a2e; transition: all 0.1s; user-select: none; } .key.active { background-color: #FFD700; color: #1a1a2e; transform: translateY(4px); box-shadow: 0 0 0 #1a1a2e; } .key.wasd { background-color: #3a3a6a; } .instructions { width: 800px; max-width: 95vw; background-color: rgba(30, 30, 60, 0.8); padding: 20px; border-radius: 10px; margin-bottom: 30px; box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3); } .instructions h2 { color: #FFD700; margin-bottom: 15px; font-size: 1.5rem; } .instructions ul { padding-left: 20px; line-height: 1.6; } .instructions li { margin-bottom: 8px; color: #d0d0e0; } .game-message { position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%); background-color: rgba(0, 0, 0, 0.85); padding: 30px 50px; border-radius: 15px; text-align: center; z-index: 10; display: none; border: 3px solid #FFD700; box-shadow: 0 0 30px rgba(255, 215, 0, 0.5); } .message-title { font-size: 2.5rem; color: #FFD700; margin-bottom: 15px; } .message-text { font-size: 1.3rem; margin-bottom: 20px; color: #fff; } .restart-btn { background-color: #FFD700; color: #1a1a2e; border: none; padding: 12px 30px; font-size: 1.2rem; font-weight: bold; border-radius: 8px; cursor: pointer; transition: all 0.2s; } .restart-btn:hover { background-color: #ffed4e; transform: scale(1.05); } footer { margin-top: 20px; text-align: center; color: #a0a0c0; font-size: 0.9rem; padding: 10px; } @media (max-width: 600px) { h1 { font-size: 2.2rem; } .key { width: 60px; height: 60px; font-size: 1.5rem; } .game-ui { flex-direction: column; gap: 15px; } }