:root { --bg: #1a1a1a; --text: #4caf50; }
* { box-sizing: border-box; margin: 0; padding: 0; }
body { font-family: 'Outfit', sans-serif; background: var(--bg); color: var(--text); min-height: 100vh; display: flex;
    flex-direction: column; justify-content: flex-start; align-items: center; }
.game-container { width: 100%; max-width: 500px; padding: 1rem; display: flex; flex-direction: column; align-items: center; position: relative;}
header { width: 100%; display: flex; justify-content: space-between; align-items: center; margin-bottom: 1rem; }
.back-btn { text-decoration: none; background: #9c27b0; color: white; padding: 10px 20px; border-radius: 20px; font-weight: bold; box-shadow: 0 4px 0 #7b1fa2; }
.back-btn:active { transform: translateY(4px); box-shadow: 0 0 0; }
h1 { font-size: 2rem; color: #ff9800; text-shadow: 2px 2px 0 #000; }
.hud { font-size: 1.5rem; font-weight: 900; background: rgba(30,30,30,0.95); padding: 10px 20px; border-radius: 20px; margin-bottom: 2rem; box-shadow: 0 5px 15px rgba(0,0,0,0.05); }
.simon-board { display: grid; grid-template-columns: 1fr 1fr; gap: 15px; width: 300px; height: 300px; position: relative; background: #2a2a2a; padding: 15px; border-radius: 50%; box-shadow: 0 10px 30px rgba(0,0,0,0.1); }
.pad { border-radius: 100%; cursor: pointer; opacity: 0.5; transition: opacity 0.1s, transform 0.1s; box-shadow: inset 0 0 20px rgba(0,0,0,0.2); }
.pad.active { opacity: 1; transform: scale(0.95); box-shadow: 0 0 20px currentColor; }
.green { background: #4caf50; color: #4caf50; border-radius: 100% 20px 20px 20px; }
.red { background: #f44336; color: #f44336; border-radius: 20px 100% 20px 20px; }
.yellow { background: #ffeb3b; color: #ffeb3b; border-radius: 20px 20px 20px 100%; }
.blue { background: #2196f3; color: #2196f3; border-radius: 20px 20px 100% 20px; }
.center-btn { position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%); width: 80px; height: 80px; border-radius: 50%; border: none; background: #2a2a2a; font-family: 'Outfit'; font-weight: 900; font-size: 1.2rem; cursor: pointer; box-shadow: 0 5px 10px rgba(0,0,0,0.2); z-index: 5;}
.center-btn:active { transform: translate(-50%, -45%); }
.overlay { position: absolute; inset: 0; background: rgba(30,30,30,0.95); display: flex; flex-direction: column; justify-content: center; align-items: center; z-index: 10; border-radius: 20px; }
.overlay h2 { font-size: 2.5rem; color: #f44336; margin-bottom: 1rem; }
.btn { background: #4caf50; border: none; padding: 10px 30px; font-size: 1.5rem; font-weight: 900; border-radius: 50px; cursor: pointer; color: white; font-family: 'Outfit'; }
