.menu-container{width:100%;height:100%;display:flex;flex-direction:column;align-items:center;justify-content:center;min-height:100vh;background:linear-gradient(135deg,#1e3c72,#2a5298);color:#fff;font-family:Arial,sans-serif;padding:20px}.menu-header{text-align:center;margin-bottom:30px}.menu-header h1{font-size:3rem;margin:0;text-shadow:2px 2px 4px rgba(0,0,0,.5);background:linear-gradient(45deg,#ff6b6b,#4ecdc4);-webkit-background-clip:text;-webkit-text-fill-color:transparent;background-clip:text}.menu-header p{font-size:1.2rem;margin:10px 0 0;opacity:.8}.menu-content{background:#ffffff1a;border-radius:15px;padding:10px;-webkit-backdrop-filter:blur(10px);backdrop-filter:blur(10px);border:1px solid rgba(255,255,255,.2);max-width:800px;width:100%;box-shadow:0 8px 32px #0000004d}.menu-tabs{display:flex;justify-content:center;margin-bottom:30px;gap:10px}.tab-button{background:#ffffff1a;border:1px solid rgba(255,255,255,.2);color:#fff;padding:12px;border-radius:5px;cursor:pointer;transition:all .3s ease;font-size:1rem;font-weight:500}.tab-button:hover{background:#fff3;transform:translateY(-2px)}.tab-button.active{background:linear-gradient(45deg,#ff6b6b,#4ecdc4);border-color:transparent;box-shadow:0 4px 15px #ff6b6b66}.tab-content{height:400px;overflow-y:auto}.setting-group{margin-bottom:30px}.setting-header{display:flex;justify-content:space-between;align-items:center;margin-bottom:20px}.setting-header h3{margin:0;font-size:1.5rem;color:#4ecdc4;border-bottom:2px solid rgba(78,205,196,.3);padding-bottom:10px;flex:1}.reset-button{background:#ff6b6b33;border:1px solid rgba(255,107,107,.4);color:#ff6b6b;padding:8px 16px;border-radius:6px;cursor:pointer;font-size:.9rem;font-weight:500;transition:all .3s ease;margin-left:15px;white-space:nowrap}.reset-button:hover{background:#ff6b6b4d;border-color:#ff6b6b;transform:translateY(-2px);box-shadow:0 4px 12px #ff6b6b4d}.reset-button:active{transform:translateY(0);box-shadow:0 2px 6px #ff6b6b33}.setting-group h3{margin:0 0 20px;font-size:1.5rem;color:#4ecdc4;border-bottom:2px solid rgba(78,205,196,.3);padding-bottom:10px}.setting-item{margin-bottom:20px;display:flex;flex-direction:column;gap:8px}.setting-item label{font-weight:500;font-size:1rem;display:flex;align-items:center;gap:10px}.setting-item input[type=range]{width:100%;height:6px;border-radius:3px;background:#fff3;outline:none;-webkit-appearance:none}.setting-item input[type=range]::-webkit-slider-thumb{-webkit-appearance:none;appearance:none;width:20px;height:20px;border-radius:50%;background:linear-gradient(45deg,#ff6b6b,#4ecdc4);cursor:pointer;box-shadow:0 2px 6px #0000004d}.setting-item input[type=range]::-moz-range-thumb{width:20px;height:20px;border-radius:50%;background:linear-gradient(45deg,#ff6b6b,#4ecdc4);cursor:pointer;border:none;box-shadow:0 2px 6px #0000004d}.setting-item input[type=text]{padding:10px 15px;border:1px solid rgba(255,255,255,.3);border-radius:8px;background:#ffffff1a;color:#fff;font-size:1rem;outline:none;transition:all .3s ease}.setting-item input[type=text]:focus{border-color:#4ecdc4;box-shadow:0 0 0 2px #4ecdc44d}.setting-item input[type=text]::placeholder{color:#ffffff80}.setting-item input[type=color]{width:50px;height:40px;border:none;border-radius:8px;cursor:pointer;background:none}.setting-item input[type=checkbox]{width:18px;height:18px;accent-color:#4ecdc4;cursor:pointer}.ball-settings{display:grid;grid-template-columns:1fr 1fr;gap:30px}.preset-images-grid{display:grid;grid-template-columns:repeat(5,1fr);gap:8px;margin-top:10px;max-height:300px;overflow-y:auto;padding:10px;border:1px solid rgba(255,255,255,.1);border-radius:8px;background:#ffffff05}.preset-image-option{position:relative;display:flex;flex-direction:column;align-items:center;padding:6px;border:2px solid rgba(255,255,255,.2);border-radius:8px;cursor:pointer;transition:all .3s ease;background:#ffffff0d;min-height:70px;pointer-events:auto;-webkit-user-select:none;user-select:none}.preset-image-option:hover{border-color:#fff6;background:#ffffff1a;transform:translateY(-2px)}.preset-image-option.selected{border-color:#4ecdc4;background:#4ecdc433;box-shadow:0 0 10px #4ecdc466}.preset-image-option img{width:35px;height:35px;object-fit:contain;filter:drop-shadow(0 2px 4px rgba(0,0,0,.3));pointer-events:none}.color-fallback{width:35px;height:35px;border-radius:50%;border:2px solid rgba(255,255,255,.3);pointer-events:none}.preset-name{font-size:.7rem;margin-top:4px;text-align:center;color:#fffc;line-height:1.1;font-weight:500;pointer-events:none}.preset-image-option.selected .preset-name{color:#4ecdc4;font-weight:700}@media (max-width: 768px){.ball-settings{grid-template-columns:1fr}.preset-images-grid{grid-template-columns:repeat(4,1fr);max-height:250px}.preset-image-option{min-height:60px;padding:4px}.preset-image-option img,.color-fallback{width:30px;height:30px}.preset-name{font-size:.65rem}}@media (max-width: 480px){.preset-images-grid{grid-template-columns:repeat(3,1fr)}}.menu-footer{margin-top:30px;text-align:center}.start-button{background:linear-gradient(45deg,#ff6b6b,#4ecdc4);border:none;color:#fff;padding:15px 40px;border-radius:30px;font-size:1.2rem;font-weight:700;cursor:pointer;transition:all .3s ease;box-shadow:0 4px 15px #ff6b6b66;text-transform:uppercase;letter-spacing:1px}.start-button:hover{transform:translateY(-3px);box-shadow:0 6px 20px #ff6b6b99}.start-button:active{transform:translateY(-1px)}@media (max-width: 768px){.menu-container{padding:10px}.menu-header h1{font-size:2rem}.menu-content{padding:20px}.tab-button{width:200px}}.powerup-guide{margin-top:20px}.powerup-guide h4{color:#4ecdc4;margin:20px 0 10px;font-size:1.3rem;border-bottom:1px solid rgba(78,205,196,.3);padding-bottom:5px}.powerup-category{margin-bottom:20px}.powerup-category h5{color:#ff6b6b;margin:15px 0 10px;font-size:1.1rem}.powerup-category ul{list-style:none;padding:0;margin:0}.powerup-category li{margin-bottom:8px;padding:8px 12px;background:#ffffff0d;border-radius:6px;border-left:3px solid transparent;transition:all .3s ease}.powerup-category li:hover{background:#ffffff1a;transform:translate(5px)}.powerup-item{font-weight:700;padding:2px 6px;border-radius:4px;display:inline-block;margin-right:8px}.powerup-item.fireball{background-color:#f40;color:#fff}.powerup-item.lightning{background-color:#ff0;color:#000}.powerup-item.missile{background-color:red;color:#fff}.powerup-item.shield{background-color:#0ff;color:#000}.powerup-item.reflect{background-color:#f0f;color:#fff}.powerup-item.invisible{background-color:#888;color:#fff}.powerup-item.heal{background-color:#0f0;color:#000}.powerup-item.energy-drink{background-color:#0f8;color:#000}.powerup-item.revive{background-color:#f80;color:#fff}.powerup-item.grow{background-color:#fa0;color:#000}.powerup-item.shrink{background-color:#a0f;color:#fff}.powerup-item.split{background-color:#f08;color:#fff}.game-rules{margin-top:25px;padding:15px;background:#ffffff0d;border-radius:8px;border:1px solid rgba(255,255,255,.1)}.game-rules h4{color:#4ecdc4;margin:0 0 15px;font-size:1.3rem}.game-rules ul{list-style:none;padding:0;margin:0}.game-rules li{margin-bottom:10px;background:#ffffff0d;border-radius:6px;border-left:3px solid #4ecdc4;position:relative;padding:8px 12px 8px 30px}.game-rules li:before{content:"▶";position:absolute;left:12px;color:#4ecdc4;font-size:.8rem}.intro-settings{padding:20px}.intro-settings h3{color:#4ecdc4;margin:0 0 15px;font-size:1.8rem;text-align:center}.intro-settings>p{font-size:1.1rem;line-height:1.6;margin-bottom:20px;text-align:center;color:#ffffffe6}.game-ui{width:100%;height:150px}.game-header{width:100%;height:100%;background:linear-gradient(135deg,#1e3c72e6,#2a5298e6);-webkit-backdrop-filter:blur(10px);backdrop-filter:blur(10px);border-bottom:2px solid rgba(255,255,255,.2);padding:10px 20px;display:flex;flex-direction:row;justify-content:space-around;align-items:center;pointer-events:auto}.game-mid{display:flex;flex-direction:column;justify-content:space-between;align-items:center;gap:10px}.game-info{display:flex;gap:30px;align-items:center}.game-time,.power-ups-collected{display:flex;align-items:center;gap:8px;font-weight:500;font-size:50px}.time-label,.label{color:#fffc;font-size:.9rem}.time-value,.value{color:#4ecdc4;font-size:1.1rem;font-weight:700}.game-controls{display:flex;gap:10px}.control-btn{background:#ffffff1a;border:1px solid rgba(255,255,255,.3);color:#fff;padding:8px 16px;border-radius:20px;cursor:pointer;transition:all .3s ease;font-size:.9rem;font-weight:500;pointer-events:auto}.control-btn:hover{background:#fff3;transform:translateY(-1px)}.pause-btn{background:linear-gradient(45deg,#ff6b6b,#ff8e8e)}.pause-btn:hover{background:linear-gradient(45deg,#ff8e8e,#ff6b6b)}.resume-btn{background:linear-gradient(45deg,#4ecdc4,#6ee7df)}.menu-btn{background:linear-gradient(45deg,#a8e6cf,#c8f7c8);color:#333}.menu-btn:hover{background:linear-gradient(45deg,#c8f7c8,#a8e6cf)}.ball-status{background:#ffffff1a;-webkit-backdrop-filter:blur(10px);backdrop-filter:blur(10px);border:1px solid rgba(255,255,255,.2);border-radius:12px;padding:15px;min-width:200px;transition:all .3s ease}.ball-status.dead{opacity:.5;background:#ff00001a}.ball-header{display:flex;align-items:center;gap:10px;margin-bottom:10px}.ball-label{font-weight:700;font-size:1.1rem;color:#fff}.ball-icon{width:24px;height:24px;border-radius:50%;object-fit:cover;border:2px solid rgba(255,255,255,.3)}.ball-health{margin-bottom:10px}.health-bar-container{position:relative;background:#0000004d;border-radius:10px;height:20px;overflow:hidden}.health-bar-fill{height:100%;border-radius:10px;transition:width .3s ease,background-color .3s ease;position:relative}.health-text{position:absolute;top:50%;left:50%;transform:translate(-50%,-50%);color:#fff;font-weight:700;font-size:.8rem;text-shadow:1px 1px 2px rgba(0,0,0,.8)}.ball-powerups{display:flex;gap:5px;margin-bottom:8px}.powerup-indicator{background:#fff3;border-radius:50%;width:24px;height:24px;display:flex;align-items:center;justify-content:center;font-size:12px;cursor:help;transition:all .3s ease}.powerup-indicator:hover{background:#ffffff4d;transform:scale(1.1)}.powerup-more{background:#ffffff1a;border-radius:12px;padding:2px 6px;font-size:.7rem;color:#fffc;display:flex;align-items:center}.ball-status-indicators{display:flex;gap:5px}.status-indicator{background:#ffffff26;border-radius:50%;width:20px;height:20px;display:flex;align-items:center;justify-content:center;font-size:10px;cursor:help;animation:pulse 2s infinite}@keyframes pulse{0%{opacity:1}50%{opacity:.7}to{opacity:1}}.status-indicator.shield{background:#00ffff4d}.status-indicator.invisible{background:#8080804d}.status-indicator.fireball{background:#ff44004d}.status-indicator.reflect{background:#ff00ff4d}.game-overlay,.pause-overlay{position:absolute;inset:0;background:#000c;display:flex;align-items:center;justify-content:center;pointer-events:auto}.game-over-content,.pause-content{background:linear-gradient(135deg,#1e3c72f2,#2a5298f2);-webkit-backdrop-filter:blur(15px);backdrop-filter:blur(15px);border:2px solid rgba(255,255,255,.2);border-radius:20px;padding:40px;text-align:center;color:#fff;max-width:400px;width:90%}.game-over-content h2,.pause-content h2{margin:0 0 20px;font-size:2rem;color:#4ecdc4}.winner-text{font-size:1.3rem;font-weight:700;color:#ff6b6b;margin:20px 0}.game-stats{margin:20px 0;text-align:left}.game-stats p{margin:8px 0;color:#fffc}.game-over-buttons{display:flex;gap:15px;justify-content:center;margin-top:30px}.restart-btn,.resume-btn{background:linear-gradient(45deg,#4ecdc4,#6ee7df);border:none;color:#fff;padding:12px 24px;border-radius:25px;cursor:pointer;font-size:1rem;font-weight:700;transition:all .3s ease}.restart-btn:hover,.resume-btn:hover{transform:translateY(-2px);box-shadow:0 4px 15px #4ecdc466}@media (max-width: 768px){.game-header{flex-direction:column;gap:15px;padding:10px;height:auto}.game-info{gap:15px}.ball-status{min-width:auto}.game-over-buttons{flex-direction:column}.game-over-content,.pause-content{padding:30px 20px}}.game-container{width:100%;height:100vh;overflow:hidden;position:relative}.game-view{width:100%;height:100%;position:relative;background:#000}.game-canvas{width:100%;height:100%;display:flex;align-items:center;justify-content:center}.game-canvas canvas{max-width:100%;max-height:100%;display:block}@media (max-width: 768px){.game-canvas canvas{width:100%!important;height:auto!important}}#root{width:100vw;height:100vh;margin:0;padding:0;text-align:center}.logo{height:6em;padding:1.5em;will-change:filter;transition:filter .3s}.logo:hover{filter:drop-shadow(0 0 2em #646cffaa)}.logo.react:hover{filter:drop-shadow(0 0 2em #61dafbaa)}@keyframes logo-spin{0%{transform:rotate(0)}to{transform:rotate(360deg)}}@media (prefers-reduced-motion: no-preference){a:nth-of-type(2) .logo{animation:logo-spin infinite 20s linear}}.card{padding:2em}.read-the-docs{color:#888}.app{width:100vw;height:100vh;background:linear-gradient(135deg,#1e3c72,#2a5298);display:flex;justify-content:center;align-items:center;font-family:Arial,sans-serif;overflow:hidden}.game-view{position:relative;width:100%;height:100%;display:flex;flex-direction:column}.back-to-menu-btn{position:absolute;top:20px;left:20px;z-index:1000;padding:10px 20px;background:#fff3;border:2px solid rgba(255,255,255,.3);border-radius:8px;color:#fff;font-size:14px;cursor:pointer;transition:all .3s ease}.back-to-menu-btn:hover{background:#ffffff4d;border-color:#ffffff80}.game-container{width:100%;height:100%;display:flex;justify-content:center;align-items:center;position:relative}.game-wrapper{position:relative;width:800px;height:600px;border:2px solid rgba(255,255,255,.3);border-radius:12px;overflow:hidden;box-shadow:0 8px 32px #0000004d}.game-time,.power-ups-collected{margin-bottom:5px}.pause-overlay,.game-over-overlay{position:absolute;inset:0;background:#000c;display:flex;justify-content:center;align-items:center;pointer-events:auto}.pause-content,.game-over-content{background:#ffffff1a;padding:40px;border-radius:12px;text-align:center;color:#fff;-webkit-backdrop-filter:blur(10px);backdrop-filter:blur(10px);border:1px solid rgba(255,255,255,.2)}.pause-content h2,.game-over-content h2{margin:0 0 20px;font-size:28px;color:#fff}.pause-content p,.game-over-content p{margin:0 0 20px;font-size:16px;color:#ccc}.continue-btn,.restart-btn{padding:12px 24px;background:linear-gradient(135deg,#4caf50,#45a049);border:none;border-radius:8px;color:#fff;font-size:16px;cursor:pointer;transition:all .3s ease}.continue-btn:hover,.restart-btn:hover{background:linear-gradient(135deg,#45a049,#4caf50);transform:translateY(-2px);box-shadow:0 4px 12px #4caf504d}.winner-info{margin:20px 0}.winner-name{color:#4caf50;font-weight:700;font-size:18px}.menu{width:100%;height:100%;display:flex;justify-content:center;align-items:center}.game-title h1{font-size:48px;margin:0 0 10px;color:#fff;text-shadow:0 2px 10px rgba(0,0,0,.5)}.game-title p{font-size:18px;color:#ccc;margin:0 0 40px}.menu-buttons{display:flex;flex-direction:column;gap:15px;margin-bottom:40px}.start-btn{background:linear-gradient(135deg,#4caf50,#45a049)}.start-btn:hover{box-shadow:0 8px 25px #4caf5066}.settings-btn{background:linear-gradient(135deg,#ff9800,#f57c00)}.settings-btn:hover{box-shadow:0 8px 25px #ff980066}.help-btn{background:linear-gradient(135deg,#2196f3,#1976d2)}.help-btn:hover{box-shadow:0 8px 25px #2196f366}.settings-panel{text-align:left}.settings-panel h2{text-align:center;margin-bottom:30px;color:#fff}.setting-group{margin-bottom:25px}.setting-group h3{color:#fff;margin-bottom:10px;font-size:16px}.setting-item{margin-bottom:15px}.setting-item label{display:flex;align-items:center;gap:10px;color:#ccc;font-size:14px}.setting-item input[type=checkbox]{width:18px;height:18px}.setting-item input[type=range]{width:100%;margin-top:5px}.setting-item select{width:100%;padding:8px;border-radius:5px;border:1px solid rgba(255,255,255,.3);background:#ffffff1a;color:#fff}.settings-buttons{text-align:center;margin-top:30px}.game-instructions{text-align:left;margin-top:30px}.game-instructions h3{color:#fff;margin-bottom:15px}.game-instructions ul{color:#ccc;padding-left:20px}.game-instructions li{margin-bottom:8px;line-height:1.4}@media (max-width: 768px){.game-title h1{font-size:36px}.game-wrapper{width:95vw;height:70vh}}.App{width:100%;height:100vh;margin:0;padding:0;overflow:hidden}*{margin:0;padding:0;box-sizing:border-box}html,body{width:100%;height:100%;overflow:hidden}#root{width:100%;height:100%}:root{font-family:system-ui,Avenir,Helvetica,Arial,sans-serif;line-height:1.5;font-weight:400;color-scheme:light dark;color:#ffffffde;background-color:#242424;font-synthesis:none;text-rendering:optimizeLegibility;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale}a{font-weight:500;color:#646cff;text-decoration:inherit}a:hover{color:#535bf2}body{margin:0;display:flex;place-items:center;min-width:320px;min-height:100vh}h1{font-size:3.2em;line-height:1.1}button{border-radius:8px;border:1px solid transparent;padding:.6em 1.2em;font-size:1em;font-weight:500;font-family:inherit;background-color:#1a1a1a;cursor:pointer;transition:border-color .25s}button:hover{border-color:#646cff}button:focus,button:focus-visible{outline:4px auto -webkit-focus-ring-color}@media (prefers-color-scheme: light){:root{color:#213547;background-color:#fff}a:hover{color:#747bff}button{background-color:#f9f9f9}}
