/*
styles.css
Clean, minimal styling for the Snake game. Uses CSS variables for easy theme changes.
*/
:root{
--bg: #000000;
--panel: #0f1112;
--snake: #ffffff;
--food: #40e0d0; /* turquoise */
--muted: #9aa0a6;
--accent: #1f2022;
}
*{box-sizing:border-box}
html,body{height:100%;margin:0;font-family:Inter,system-ui,Segoe UI,Roboto,Arial;color:var(--snake);background:var(--bg)}
.page{min-height:100%;display:flex;align-items:center;justify-content:center;padding:24px}
.container{width:100%;max-width:820px;display:flex;flex-direction:column;gap:12px;align-items:center}
.hud{width:100%;display:flex;flex-direction:column;gap:6px;align-items:center}
.title{margin:0;font-size:20px}
.score-row{display:flex;gap:12px;align-items:center}
.score{font-weight:700}
.hint{font-size:13px;color:var(--muted)}
.game-wrap{position:relative}
canvas{background:var(--bg);border:4px solid #111;border-radius:8px;display:block}
.overlay{position:absolute;inset:0;display:flex;align-items:center;justify-content:center;background:linear-gradient(180deg, rgba(0,0,0,0.5), rgba(0,0,0,0.7));}
.overlay.hidden{display:none}
.overlay-card{background:var(--panel);padding:18px;border-radius:12px;text-align:center;min-width:220px}
.controls{display:flex;gap:8px;justify-content:center;margin-top:12px}
.footer{width:100%;display:flex;justify-content:space-between;align-items:center;gap:12px}
.buttons{display:flex;gap:8px}
.btn{background:#222224;border:1px solid #2d2e30;padding:8px 12px;border-radius:8px;color:var(--snake);cursor:pointer}
.btn.ghost{background:transparent;border:1px solid rgba(255,255,255,0.06)}
.repo-link{color:var(--muted);font-size:13px;text-decoration:none}


/* Mobile controls */
.mobile-controls{display:none;margin-top:6px;align-items:center}
.m-btn{width:54px;height:44px;border-radius:8px;border:none;background:#202124;color:var(--snake);font-size:18px;margin:4px}
.m-row{display:flex}


/* responsive: show mobile nav on narrow screens */
@media (max-width:640px){
.mobile-controls{display:flex;flex-direction:column;align-items:center}
canvas{width:320px;height:320px}
}