body{margin:0;overflow:hidden;user-select:none;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;font-family:Arial,sans-serif;touch-action:none}canvas{display:block}#ui-container{position:absolute;top:0;left:0;width:100%;height:100%;pointer-events:none;display:flex;flex-direction:column}#top-bar{display:flex;justify-content:space-between;align-items:flex-start;padding:10px 0 0 10px}#instructions{color:#fff;text-align:right;text-shadow:0 0 5px rgba(0,0,0,.7);max-width:300px;margin-right:10px;font-size:12px}#weapon-panel{position:absolute;bottom:20px;left:50%;transform:translate(-50%);color:#fff;background-color:#0009;border-radius:20px;padding:10px 20px;display:flex;align-items:center;gap:10px;pointer-events:none}#weapon-name{font-size:18px;font-weight:700;display:flex;align-items:center;gap:5px}#weapon-icon{font-size:24px}#weapon-stats{display:flex;flex-direction:column;gap:3px}.stat-row{display:flex;align-items:center;gap:8px;font-size:12px}.stat-bar-container{width:80px;height:5px;background-color:#fff3;border-radius:3px;overflow:hidden}.stat-bar{height:100%;border-radius:3px}#ammo-bar{background-color:#2ecc71}#cooldown-bar{background-color:#3498db;width:100%}#mobile-controls{position:absolute;bottom:0;width:100%;display:none}#shoot-button{position:absolute;bottom:30px;right:30px;width:60px;height:60px;background-color:#e74c3cb3;border-radius:50%;display:none;justify-content:center;align-items:center;color:#fff;font-size:16px;touch-action:manipulation;border:2px solid white;pointer-events:auto}#weapon-switch{position:absolute;bottom:30px;right:100px;width:40px;height:40px;background-color:#3498dbb3;border-radius:50%;display:none;justify-content:center;align-items:center;color:#fff;font-size:16px;touch-action:manipulation;border:2px solid white;pointer-events:auto}#joystick-container{position:absolute;bottom:30px;left:30px;width:120px;height:120px;z-index:1000;display:none;pointer-events:auto}#game-over{position:absolute;top:0;left:0;width:100%;height:100%;background-color:#000c;display:none;flex-direction:column;justify-content:center;align-items:center;color:#fff;z-index:2000;pointer-events:auto}#game-over h1{font-size:48px;margin-bottom:20px;color:#e74c3c;text-shadow:0 0 10px #ff0000}#final-score{font-size:24px;margin-bottom:30px}#restart-button{padding:15px 30px;background-color:#e74c3c;color:#fff;border:none;border-radius:5px;font-size:18px;cursor:pointer;transition:background-color .3s}#restart-button:hover{background-color:#c0392b}#gamepad-icon{position:absolute;top:10px;right:150px;color:#fff;font-size:24px;display:none;text-shadow:0 0 5px rgba(0,0,0,.7)}@media (max-width: 768px){#mobile-controls{display:block}#shoot-button,#weapon-switch{display:flex}#joystick-container{display:block}#weapon-panel,#instructions{display:none}}#weapon-selection-menu{position:absolute;bottom:100px;right:20px;display:flex;flex-direction:column;gap:8px;background-color:#000000bf;padding:12px;border-radius:12px;z-index:2000;pointer-events:auto;border:1px solid rgba(255,255,255,.2);box-shadow:0 4px 12px #00000080}.weapon-option{display:flex;align-items:center;gap:10px;padding:8px 12px;border-radius:6px;color:#fff;transition:background-color .2s}.weapon-option.active{background-color:#3498db80;font-weight:700}.weapon-option:active{background-color:#3498dbb3}.weapon-icon{font-size:24px}#ad-interact-hint{display:none;position:fixed;top:32px;left:50%;transform:translate(-50%);z-index:3000;background:#282828eb;color:#fff;padding:12px 28px;border-radius:16px;font-size:1.5rem;font-weight:500;box-shadow:0 4px 16px #00000040;align-items:center;gap:12px;pointer-events:auto;-webkit-user-select:none;user-select:none;animation:ad-hint-fadein .3s}#ad-interact-hint .icon{font-size:2.2rem;margin-right:10px}@keyframes ad-hint-fadein{0%{opacity:0;transform:translate(-50%) translateY(-20px)}to{opacity:1;transform:translate(-50%) translateY(0)}}#main-menu{position:fixed;top:0;left:0;width:100vw;height:100vh;z-index:4000;background:url(/images/background.jpg) center center / cover no-repeat,#222;display:flex;flex-direction:column;align-items:center;justify-content:center}#main-menu h1{color:#fff;font-size:2.8rem;font-weight:300;letter-spacing:.22em;text-align:center;margin-bottom:2.8rem;font-family:Georgia,Times New Roman,serif}.menu-buttons{display:flex;flex-direction:column;align-items:center;gap:1.2rem}#main-menu button{background:#0000008c;color:#fff;font-weight:400;border:none;cursor:pointer;outline:none;transition:color .2s,border-bottom .2s,background .2s;border-radius:8px;letter-spacing:.08em;padding:.6rem 2rem}#start-game-btn{font-size:1.15rem;padding:.6rem 2.2rem}#login-orange-btn{font-size:1.05rem}#main-menu #ads-btn{display:none;color:#ffe066;font-size:1.05rem}#main-menu #version-footer{position:absolute;bottom:10px;right:10px;color:#fff9;font-size:14px;font-family:Arial,sans-serif;pointer-events:none}#user-profile{color:#fff;font-weight:700;font-size:14px;text-align:left;display:flex;flex-direction:row;align-items:center;gap:8px;margin-bottom:5px}#user-avatar{width:20px;height:20px;border-radius:50%;border:1px solid #ffd700;box-shadow:0 1px 3px #00000080}#user-name{color:inherit;font-weight:inherit;font-size:inherit;text-shadow:0 0 5px rgba(0,0,0,.7);white-space:nowrap;overflow:hidden;text-overflow:ellipsis;max-width:120px}#stats-container{display:flex;flex-direction:column;gap:5px}#score{color:#fff;font-weight:700;font-size:14px;text-align:left}#health-container{width:150px;height:15px;background-color:#00000080;border-radius:10px;overflow:hidden}#health-bar{width:100%;height:100%;background-color:#e74c3c;transition:width .3s}#character-selection-screen{position:fixed;top:0;left:0;width:100vw;height:100vh;z-index:4000;background:url(/images/background.jpg) center center / cover no-repeat,#222;display:flex;flex-direction:column;align-items:center;justify-content:center;padding:20px;box-sizing:border-box}#character-selection-screen h1{color:#fff;font-size:2.8rem;font-weight:300;letter-spacing:.22em;text-align:center;margin-bottom:2rem;font-family:Georgia,Times New Roman,serif;position:absolute;top:60px;left:50%;transform:translate(-50%);white-space:nowrap}#character-display-container{position:relative;display:flex;align-items:center;justify-content:center;gap:20px;margin:40px 0}#character-portrait-container{width:300px;height:300px;position:relative;border-radius:15px;overflow:hidden;background:radial-gradient(circle at center,#ffffff1a,#0000004d 70%);border:3px solid rgba(255,255,255,.3);box-shadow:0 0 30px #0009;display:flex;align-items:center;justify-content:center}#character-portrait{width:100%;height:100%;object-fit:cover;border-radius:12px}#character-left-arrow,#character-right-arrow{background:#0000008c;color:#fff;border:none;font-size:1.8rem;width:60px;height:60px;border-radius:50%;cursor:pointer;transition:background .2s;z-index:4001;display:flex;align-items:center;justify-content:center;-webkit-user-select:none;user-select:none;font-weight:700}#character-left-arrow:hover,#character-right-arrow:hover{background:#000000bf}#character-left-arrow:active,#character-right-arrow:active{background:#000000e6}#character-name-display{color:#fff;font-size:2.2rem;font-weight:700;text-align:center;margin:20px 0;text-shadow:0 0 15px rgba(0,0,0,.8);letter-spacing:.1em}#character-info-display{display:flex;justify-content:center;gap:30px;margin:20px 0;flex-wrap:wrap}.character-stat{background:#0009;padding:10px 20px;border-radius:8px;border:1px solid rgba(255,255,255,.2);text-align:center;min-width:100px}.stat-label{color:#ccc;font-size:.9rem;display:block;margin-bottom:5px}.stat-value{color:#fff;font-size:1.2rem;font-weight:700}#character-selection-buttons{display:flex;gap:20px;margin-top:30px;justify-content:center}#character-select-button{background:#0000008c;color:#fff;font-weight:400;border:none;cursor:pointer;outline:none;transition:color .2s,border-bottom .2s,background .2s;border-radius:8px;letter-spacing:.08em;padding:.8rem 3rem;font-size:1.3rem;-webkit-user-select:none;user-select:none}#character-select-button:hover{background:#000000bf}#character-select-button:active{background:#000000e6}#character-back-button{background:#0000008c;color:#fff;font-weight:400;border:none;cursor:pointer;outline:none;transition:color .2s,border-bottom .2s,background .2s;border-radius:8px;letter-spacing:.08em;padding:.6rem 2rem;font-size:1rem;position:absolute;top:30px;left:30px;-webkit-user-select:none;user-select:none}#character-back-button:hover{background:#000000bf}#character-back-button:active{background:#000000e6}@keyframes bounce{0%,20%,50%,80%,to{transform:translate(-50%) translateY(0)}40%{transform:translate(-50%) translateY(-10px)}60%{transform:translate(-50%) translateY(-5px)}}@media (max-width: 768px){#character-selection-screen{padding:10px}#character-selection-screen h1{font-size:2rem;top:40px}#character-display-container{gap:15px;margin:20px 0}#character-portrait-container{width:250px;height:250px;border:2px solid rgba(255,255,255,.3);box-shadow:0 0 20px #00000080}#character-left-arrow,#character-right-arrow{width:50px;height:50px;font-size:1.5rem}#character-name-display{font-size:1.8rem;margin:15px 0}#character-info-display{gap:15px;margin:15px 0}.character-stat{padding:8px 15px;min-width:80px}.stat-label{font-size:.8rem}.stat-value{font-size:1rem}#character-selection-buttons{gap:15px;margin-top:20px;flex-direction:column;align-items:center}#character-select-button{font-size:1.1rem;padding:.8rem 2.5rem}#character-back-button{font-size:.9rem;padding:.6rem 1.5rem;top:15px;left:15px}}
