@import"https://fonts.googleapis.com/css2?family=Press+Start+2P&display=swap";body{margin:0;display:flex;font-family:"Press Start 2P",cursive;overflow:hidden}#game-title{position:absolute;top:2rem;left:50%;transform:translate(-50%);font-size:2.5rem;font-weight:700;color:#fff;text-shadow:4px 4px 0px #000000,8px 8px 0px rgba(0,0,0,.5),12px 12px 20px rgba(0,0,0,.8);z-index:1000;transition:transform .8s ease-in-out,opacity .8s ease-in-out;pointer-events:none;text-align:center;white-space:nowrap}@media screen and (max-width: 768px){#game-title{font-size:1.8rem;top:1.5rem;text-shadow:3px 3px 0px #000000,6px 6px 0px rgba(0,0,0,.5),9px 9px 15px rgba(0,0,0,.8)}}@media screen and (max-width: 480px){#game-title{font-size:1.2rem;top:1rem;text-shadow:2px 2px 0px #000000,4px 4px 0px rgba(0,0,0,.5),6px 6px 10px rgba(0,0,0,.8)}}@media screen and (max-height: 600px){#game-title{font-size:1.5rem;top:.5rem}}#game-title.hidden{transform:translate(-50%) translateY(-100px);opacity:0}#controls{position:absolute;bottom:1.25rem;min-width:100%;display:flex;align-items:flex-end;justify-content:center;touch-action:manipulation;-webkit-touch-callout:none;-webkit-user-select:none;user-select:none}#controls div{display:grid;grid-template-columns:3.125rem 3.125rem 3.125rem;gap:.625rem}#controls button{width:100%;height:2.5rem;background-color:#fff;border:1px solid lightgray;box-shadow:.1875rem .3125rem #000000bf;cursor:pointer;outline:none;touch-action:manipulation;-webkit-touch-callout:none;-webkit-user-select:none;user-select:none;-webkit-tap-highlight-color:transparent}#controls button:first-of-type{grid-column:1 / -1}#score-container{position:absolute;display:flex;flex-direction:column;align-items:flex-start;gap:.5rem;top:1.25rem;left:1.25rem;font-weight:700;color:#fff;text-shadow:2px 2px 0px #000,3px 3px 0px rgba(0,0,0,.5);font-family:"Press Start 2P",cursive;font-size:1rem;white-space:nowrap}#score{font-size:1rem}#high-score{font-size:.75rem}#result-container{position:absolute;min-width:100%;min-height:100%;top:0;display:flex;align-items:center;justify-content:center;visibility:hidden}#result-container #result{display:flex;flex-direction:column;align-items:center;background-color:#fff;padding:1.25rem}#result-container button{background-color:red;padding:1.25rem 3.125rem;font-family:inherit;font-size:inherit;cursor:pointer}#fps-counter{animation:fadeIn .3s ease-in}@keyframes fadeIn{0%{opacity:0;transform:translate(20px)}to{opacity:1;transform:translate(0)}}.debug-panel{position:fixed;top:60px;right:10px;padding:12px;background:#000c;color:#0f0;font-family:Courier New,monospace;font-size:12px;border-radius:4px;border:1px solid rgba(0,255,0,.3);-webkit-backdrop-filter:blur(4px);backdrop-filter:blur(4px);z-index:999;display:none}.debug-panel.active{display:block}.debug-panel h3{margin:0 0 8px;font-size:14px;color:#ff0;border-bottom:1px solid rgba(255,255,0,.3);padding-bottom:4px}.debug-panel .debug-item{display:flex;justify-content:space-between;margin:4px 0;min-width:200px}.debug-panel .debug-label{color:#888;margin-right:10px}.debug-panel .debug-value{color:#0f0;font-weight:700}.debug-panel .debug-value.warning{color:#ff0}.debug-panel .debug-value.danger{color:red}.memory-bar{position:fixed;bottom:10px;right:10px;width:200px;height:20px;background:#000000b3;border:1px solid rgba(0,255,0,.3);border-radius:4px;overflow:hidden;display:none}.memory-bar.active{display:block}.memory-bar-fill{height:100%;background:linear-gradient(90deg,#0f0,#ff0,red);transition:width .3s ease;position:relative}.memory-bar-text{position:absolute;top:50%;left:50%;transform:translate(-50%,-50%);color:#fff;font-size:10px;font-family:Courier New,monospace;font-weight:700;text-shadow:1px 1px 0 rgba(0,0,0,.5)}.debug-controls{position:fixed;bottom:10px;left:10px;padding:8px;background:#000000b3;color:#888;font-family:Courier New,monospace;font-size:10px;border-radius:4px;z-index:998;display:none}.debug-controls.active{display:block}.debug-controls .key{color:#ff0;font-weight:700;padding:2px 4px;background:#ff03;border-radius:2px;margin:0 2px}@media screen and (max-width: 768px){.debug-panel,.memory-bar,.debug-controls{font-size:10px}.memory-bar{width:150px}}@media screen and (max-width: 480px){.debug-panel{top:50px;right:5px;padding:8px}.memory-bar{width:120px;height:16px}.debug-controls{display:none!important}}
