.game-board{background:linear-gradient(135deg,#1e293b,#334155);border-radius:12px;gap:1px;max-width:100%;max-height:100%;padding:8px;display:grid;box-shadow:0 0 0 1px #94a3b81f,0 0 40px #22c55e0f,0 20px 25px -5px #0000004d,0 10px 10px -5px #0003}.cell{background:#0f172a;border-radius:2px;transition:background .15s cubic-bezier(.4,0,.2,1);position:relative}.cell-alt{background:#ffffff06}.snake-head{z-index:2;background:linear-gradient(135deg,#10b981,#059669);border-radius:4px;justify-content:center;align-items:center;display:flex;box-shadow:0 0 20px #10b98173}.head-eyes{gap:3px;transition:transform 80ms;display:flex}.head-eyes.rot-UP{transform:rotate(-90deg)}.head-eyes.rot-DOWN{transform:rotate(90deg)}.head-eyes.rot-LEFT{transform:rotate(180deg)}.head-eyes.rot-RIGHT{transform:rotate(0)}.eye{background:#0f172a;border-radius:50%;width:3px;height:3px;box-shadow:0 0 1px #0009}.snake-body{background:linear-gradient(135deg,#34d399,#10b981);border-radius:3px;transition:opacity .15s}.food{background:linear-gradient(135deg,#ef4444,#dc2626);border-radius:50%;animation:1s ease-in-out infinite foodPulse;box-shadow:0 0 15px #ef4444b3}@keyframes foodPulse{0%,to{transform:scale(.85)}50%{transform:scale(1.15)}}.score-pop{animation:.28s ease-out scorePop;display:inline-block}@keyframes scorePop{0%{color:#22c55e;transform:scale(1)}50%{color:#fbbf24;transform:scale(1.4)}to{color:#22c55e;transform:scale(1)}}.game-over-panel{text-align:center;backdrop-filter:blur(4px);background:#0f172af2;border-radius:12px;flex-direction:column;justify-content:center;align-items:center;animation:.25s ease-out fadeIn;display:flex;position:absolute;inset:0}@keyframes fadeIn{0%{opacity:0;transform:scale(.96)}to{opacity:1;transform:scale(1)}}.hud-panel{backdrop-filter:blur(10px);background:#0f172acc;border:1px solid #94a3b833}.btn-primary{cursor:pointer;background:linear-gradient(135deg,#3b82f6,#1d4ed8);transition:all .2s}.btn-primary:hover{background:linear-gradient(135deg,#1d4ed8,#1e40af);transform:translateY(-1px);box-shadow:0 10px 25px #3b82f659}.btn-primary:active{transform:translateY(0)}.btn-secondary{cursor:pointer;background:linear-gradient(135deg,#64748b,#475569);transition:all .2s}.btn-secondary:hover{background:linear-gradient(135deg,#475569,#334155);transform:translateY(-1px)}.settings-modal{z-index:50;background:#000000b3;justify-content:center;align-items:center;padding:16px;display:flex;position:fixed;inset:0}.modal-content{background:#1e293b;border:1px solid #94a3b826;border-radius:12px;width:100%;max-width:450px;max-height:90vh;padding:30px;overflow-y:auto;box-shadow:0 10px 25px #00000080}.slider{appearance:none;outline:none}.slider::-webkit-slider-thumb{appearance:none;cursor:pointer;background:linear-gradient(135deg,#3b82f6,#1d4ed8);border-radius:50%;width:18px;height:18px;transition:transform .1s;box-shadow:0 2px 6px #0006}.slider::-webkit-slider-thumb:hover{transform:scale(1.15)}.slider::-moz-range-thumb{cursor:pointer;background:linear-gradient(135deg,#3b82f6,#1d4ed8);border:none;border-radius:50%;width:18px;height:18px;box-shadow:0 2px 6px #0006}.touch-controls{grid-template-rows:repeat(3,56px);grid-template-columns:repeat(3,56px);justify-content:center;gap:6px;margin-top:6px;display:grid}.touch-btn{-webkit-user-select:none;user-select:none;-webkit-tap-highlight-color:transparent;touch-action:manipulation;justify-content:center;align-items:center;display:flex}.touch-btn.empty-cell{box-shadow:none;pointer-events:none;background:0 0}.touch-btn.control-btn{color:#fff;cursor:pointer;background:linear-gradient(#334155,#1e293b);border:1px solid #94a3b833;border-radius:12px;font-size:1.5rem;font-weight:700;transition:transform 60ms,box-shadow 60ms,background .1s;box-shadow:0 4px #0f172a}.touch-btn.control-btn:active{background:linear-gradient(#22c55e,#16a34a);transform:translateY(3px);box-shadow:0 1px #0f172a}@supports (padding:env(safe-area-inset-bottom)){footer{padding-bottom:max(1rem, env(safe-area-inset-bottom))!important}}@media (max-width:380px){.touch-controls{grid-template-rows:repeat(3,50px);grid-template-columns:repeat(3,50px);gap:5px}.touch-btn.control-btn{font-size:1.25rem}}@media (max-height:500px) and (orientation:landscape){.touch-controls{grid-template-rows:repeat(3,42px);grid-template-columns:repeat(3,42px);gap:4px;margin-top:0}.touch-btn.control-btn{font-size:1.1rem;box-shadow:0 3px #0f172a}}
