*{box-sizing:border-box;margin:0;padding:0}html,body{height:100%}body{font-family:Segoe UI,Tahoma,Geneva,Verdana,sans-serif;background:transparent;height:100vh;overflow:hidden;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale}#gameContainer{position:relative;display:flex;flex-direction:column;align-items:center;width:100%;height:100%;padding:0;background:#000;border-radius:0;box-shadow:none;-webkit-backdrop-filter:none;backdrop-filter:none}#gameCanvas{flex:1;width:40vmin;max-height:calc(100% - 60px);background:#000;border:2px solid #0ff;border-radius:8px;box-shadow:0 0 5px #0ff,0 0 10px #0ff,0 0 15px #0ff,inset 0 0 5px #0ff;display:block;animation:neonPulse 2s infinite alternate}@keyframes neonPulse{0%{box-shadow:0 0 5px #0ff,0 0 10px #0ff,0 0 15px #0ff,inset 0 0 5px #0ff}to{box-shadow:0 0 7px #0ff,0 0 15px #0ff,0 0 20px #0ff,inset 0 0 7px #0ff}}#bottomUI{display:grid;grid-template-columns:1fr auto 1fr;align-items:end;width:100%;max-width:820px;gap:4px;padding:2px 4px;margin-top:auto}#score{justify-self:start}#nextPiece{justify-self:center}#lines{justify-self:end}#score,#lines{background:#ffffff0f;padding:2px 6px;border-radius:8px;border:1px solid rgba(255,255,255,.1);color:#fff;font-size:12px;font-weight:600;min-width:60px;text-align:center;height:24px;display:flex;align-items:center;justify-content:center}#nextPiece{display:flex;flex-direction:column;align-items:center;gap:1px;color:#fff;pointer-events:none;width:auto;min-width:60px}#nextPiece h3{margin:0;font-size:11px;font-weight:700;letter-spacing:.2px}#nextCanvas{width:40px;height:40px;background:#00000073;border:2px solid rgba(255,255,255,.12);border-radius:6px;box-shadow:0 8px 18px #00000073}#connectionStatus{font-size:11px;font-weight:600;padding:2px 4px;border-radius:6px;height:24px;display:flex;align-items:center;justify-content:center}#connectionStatus.connected{background:#00ff000f;color:#0f0;border:1px solid rgba(0,255,0,.1)}#connectionStatus.connecting{background:#ffa5000f;color:orange;border:1px solid rgba(255,165,0,.1)}#connectionStatus.disconnected,#connectionStatus.error{background:#ff00000f;color:red;border:1px solid rgba(255,0,0,.1)}.overlay{position:absolute;top:0;left:0;width:100%;height:100%;background:#000000e6;display:flex;justify-content:center;align-items:center;z-index:100;border-radius:0}.overlay.hidden{display:none}.game-start-content,.game-over-content,.pause-content,.loading-content{text-align:center;color:#fff;background:#ffffff0a;padding:18px;border-radius:12px;border:1px solid rgba(255,255,255,.06);-webkit-backdrop-filter:blur(6px);backdrop-filter:blur(6px)}.game-start-content h1{font-size:2.4em;margin-bottom:12px;background:linear-gradient(45deg,#ff6b6b,#4ecdc4,#45b7d1,#96ceb4);background-size:400% 400%;-webkit-background-clip:text;-webkit-text-fill-color:transparent;animation:rainbow 3s ease-in-out infinite}@keyframes rainbow{0%,to{background-position:0% 50%}50%{background-position:100% 50%}}.controls-section{margin:12px 0;padding:14px;background:#0000003d;border-radius:10px}.controls-section h3{margin-bottom:10px;color:#4ecdc4;font-size:1.05em}.controls-grid{display:flex;flex-direction:column;gap:8px;text-align:left}.control-item{display:flex;align-items:center;gap:12px}.key{background:linear-gradient(145deg,#2a2a2a,#1a1a1a);color:#fff;padding:6px 10px;border-radius:6px;font-family:monospace;font-weight:700;min-width:48px;text-align:center;border:1px solid #444;box-shadow:0 2px 6px #00000040}.action{color:#fff;font-size:.95em}.game-btn{padding:10px 20px;font-size:1em;font-weight:700;color:#fff;border:none;border-radius:10px;cursor:pointer;transition:transform .18s ease,box-shadow .18s ease;box-shadow:0 6px 14px #00000040}.start-btn{background:linear-gradient(45deg,#4ecdc4,#44a08d)}.retry-btn{background:linear-gradient(45deg,#ff6b6b,#ee5a24)}@keyframes lineClear{0%{background-color:#fff}50%{background-color:transparent}to{background-color:#fff}}.line-clear{animation:lineClear .5s ease-in-out}#statsLeft,#statsRight{display:flex;flex-direction:column;gap:2px}#level{background:#ffffff0f;padding:2px 6px;border-radius:8px;border:1px solid rgba(255,255,255,.1);color:#fff;font-size:12px;font-weight:600;min-width:60px;text-align:center;height:24px;display:flex;align-items:center;justify-content:center}#nextPiece h3{text-shadow:0 0 5px #0ff}#score,#lines,#level{text-shadow:0 0 3px rgba(0,255,255,.7)}
