@import "https://fonts.googleapis.com/css2?family=Outfit:wght@400;700&family=Press+Start+2P&display=swap";:root{--bg-color:#050008;--text-color:#fff;--accent-color:#ff3e00;--crystal-color:#00f2ff;--lava-color:#f20;--panel-bg:#050008eb;--retro-font:"Press Start 2P", cursive}body{color:var(--text-color);min-height:100vh;touch-action:none;background-color:#100;justify-content:center;align-items:center;min-height:-webkit-fill-available;margin:0;font-family:Outfit,sans-serif;display:flex;overflow:hidden}#game-container{background:#000;justify-content:center;align-items:center;width:100vw;max-width:800px;height:100vh;max-height:600px;display:flex;position:relative;overflow:hidden;box-shadow:0 0 100px #ff3e0033}#game-canvas{object-fit:contain;width:100%;height:100%;image-rendering:pixelated}#hud{top:max(10px, env(safe-area-inset-top));left:max(10px, env(safe-area-inset-left));right:max(10px, env(safe-area-inset-right));z-index:5;pointer-events:none;font-family:var(--retro-font);color:var(--crystal-color);text-shadow:2px 2px #000;justify-content:space-between;align-items:center;font-size:11px;display:flex;position:absolute}.hud-left{align-items:center;gap:20px;display:flex}.hud-timer{color:#fc0}#pause-btn{pointer-events:auto;cursor:pointer;color:#fff;background:#ffffff1a;border:2px solid #fff3;border-radius:5px;justify-content:center;align-items:center;width:36px;height:36px;font-size:16px;transition:all .2s;display:flex}#pause-btn:hover{background:#ffffff4d;transform:scale(1.1)}#mini-map{bottom:max(140px, env(safe-area-inset-bottom,0px) + 140px);left:max(10px, env(safe-area-inset-left));z-index:50;image-rendering:pixelated;background:#0006;border:1px solid #fff3;border-radius:4px;position:absolute}.overlay{background:var(--panel-bg);z-index:10;text-align:center;box-sizing:border-box;flex-direction:column;justify-content:center;align-items:center;padding:15px;animation:.25s fadeIn;display:flex;position:absolute;inset:0;overflow-y:auto}@keyframes fadeIn{0%{opacity:0;transform:scale(.97)}to{opacity:1;transform:scale(1)}}#menu h1,#pause-menu h1,#game-over h1,#win-screen h1,#settings-menu h1{text-align:center;width:100%}h1{font-family:var(--retro-font);color:var(--accent-color);text-shadow:4px 4px #300;letter-spacing:2px;margin-bottom:15px;font-size:28px}h2{font-family:var(--retro-font);color:#ccc;margin-bottom:10px;font-size:14px}p{color:#888;margin:5px 0 10px;font-size:13px}.page-info{font-family:var(--retro-font);color:#666;margin-bottom:8px;font-size:9px}.level-grid{grid-template-columns:repeat(5,1fr);gap:8px;max-width:320px;margin-bottom:12px;display:grid}.level-btn{color:#fff;border:2px solid var(--accent-color);width:46px;height:46px;font-family:var(--retro-font);cursor:pointer;background:#200;flex-direction:column;justify-content:center;align-items:center;gap:2px;font-size:11px;transition:all .2s;display:flex;position:relative}.level-btn:hover:not(.locked){background:var(--accent-color);transform:translateY(-3px);box-shadow:0 4px 12px #ff3e0066}.level-btn.locked{opacity:.15;cursor:not-allowed;background:#111;border-color:#333}.mini-rank{font-size:7px;font-weight:700}.level-nav{align-items:center;gap:10px;margin-bottom:10px;display:flex}.nav-btn{padding:10px 16px!important;font-size:16px!important}#start-btn{width:180px}button{background:var(--accent-color);color:#fff;font-family:var(--retro-font);cursor:pointer;touch-action:manipulation;border:none;padding:14px 24px;font-size:10px;transition:all .1s;box-shadow:3px 3px #300}button.secondary{background:#333;box-shadow:3px 3px #000}button:hover{transform:translate(-2px,-2px);box-shadow:5px 5px #300}button:active{transform:translate(2px,2px);box-shadow:0 0}.menu-btns{flex-direction:column;gap:12px;width:220px;display:flex}.settings-open-btn{margin-top:8px;font-size:9px!important}.win-stats{background:#ffffff0d;border:1px solid #ffffff1a;border-radius:8px;min-width:200px;margin:10px 0 20px;padding:15px 25px}.stat-row{font-family:var(--retro-font);justify-content:space-between;align-items:center;padding:6px 0;font-size:12px;display:flex}.stat-label{color:#888;font-size:10px}.stat-value{color:#fff}.best-row{border-top:1px solid #ffffff1a;margin-top:5px;padding-top:8px}.rank-badge{font-family:var(--retro-font);border-radius:4px;padding:4px 12px;font-size:20px;font-weight:700}.rank-s{color:gold;text-shadow:0 0 15px gold}.rank-a{color:silver;text-shadow:0 0 10px silver}.rank-b{color:#cd7f32;text-shadow:0 0 8px #cd7f32}.rank-c{color:#666}.mini-rank.rank-s{color:gold}.mini-rank.rank-a{color:silver}.mini-rank.rank-b{color:#cd7f32}.mini-rank.rank-c{color:#555}#win-screen h1{color:#0f8}.settings-list{flex-direction:column;gap:20px;width:260px;margin:15px 0 25px;display:flex}.setting-item{justify-content:space-between;align-items:center;display:flex}.setting-label{font-family:var(--retro-font);color:#ccc;font-size:10px}.toggle{cursor:pointer;background:#333;border-radius:14px;width:50px;height:28px;transition:background .2s;position:relative}.toggle.active{background:#0c6}.toggle-knob{background:#fff;border-radius:50%;width:22px;height:22px;transition:transform .2s;position:absolute;top:3px;left:3px}.toggle.active .toggle-knob{transform:translate(22px)}.control-options{gap:8px;display:flex}.ctrl-opt{border:2px solid #444;box-shadow:none!important;background:#222!important;padding:8px 12px!important;font-size:8px!important}.ctrl-opt.active{border-color:var(--accent-color);background:var(--accent-color)!important}#virtual-controls{bottom:max(15px, env(safe-area-inset-bottom));left:max(15px, env(safe-area-inset-left));right:max(15px, env(safe-area-inset-right));z-index:100;pointer-events:none;justify-content:space-between;align-items:flex-end;position:fixed}.dpad,.actions{pointer-events:auto;gap:12px;display:flex}.actions{flex-direction:column;align-items:flex-end}.sub-actions{gap:8px;display:flex}.v-btn{color:#fff;-webkit-user-select:none;user-select:none;-webkit-tap-highlight-color:transparent;width:56px;height:56px;box-shadow:none;background:#ffffff1f;border:2px solid #ffffff40;border-radius:50%;justify-content:center;align-items:center;padding:0;font-family:inherit;font-size:18px;transition:all .1s;display:flex}.v-btn:active{background:#ff3e0099;border-color:#ff3e00;transform:scale(.9)}.v-btn.large{background:#ff3e0026;border-radius:10px;width:72px;height:72px;font-size:12px;font-weight:700}.v-btn.small{border-radius:10px;width:48px;height:48px;font-size:10px}.joystick-container{pointer-events:auto;justify-content:center;align-items:center;display:flex}.joystick-zone{touch-action:none;background:#ffffff14;border:2px solid #fff3;border-radius:50%;justify-content:center;align-items:center;width:100px;height:100px;display:flex;position:relative}.joystick-knob{background:#ff3e0080;border:2px solid #ff3e00cc;border-radius:50%;width:40px;height:40px;transition:none;position:absolute}@media (width<=768px){h1{margin-bottom:10px;font-size:22px}.level-grid{gap:6px}.level-btn{width:42px;height:42px;font-size:10px}#hud{font-size:9px}#mini-map{width:100px;height:75px}}@media (width<=400px){h1{font-size:18px}.level-btn{width:38px;height:38px;font-size:9px}.v-btn{width:50px;height:50px}.v-btn.large{width:64px;height:64px}.v-btn.small{width:42px;height:42px}.joystick-zone{width:80px;height:80px}.joystick-knob{width:32px;height:32px}#mini-map{width:80px;height:60px}}
