/* =====================================================================
   VibGaming — snake.css
   ===================================================================== */

@import url('https://fonts.cdnfonts.com/css/surprisedmonkey');

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

body {
  margin: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  min-height: 100vh;
  justify-content: center;
  background-image: url('../assets/images/img.jpg');
  background-size: cover;
  background-position: center;
  gap: 14px;
}

h1 {
  color: white;
  text-shadow: 2px 2px 8px #00ffe0;
  font-family: 'surprisedmonkey', sans-serif;
  font-size: 2rem;
}

.score-display {
  font-family: 'surprisedmonkey', sans-serif;
  font-size: 1.2rem;
  color: #00ffe0;
  text-shadow: 0 0 10px #00ffe0;
  background: rgba(0,0,0,0.5);
  padding: 6px 24px;
  border-radius: 20px;
  border: 1px solid rgba(0,255,224,0.3);
}

.container {
  display: grid;
  grid-template-columns: repeat(25, 1fr);
  grid-template-rows: repeat(25, 1fr);
  width: 500px;
  height: 500px;
  background: rgb(10, 11, 10);
  border: 2px solid rgb(102, 173, 108);
  border-radius: 16px;
  box-shadow: 0 0 20px rgba(102,173,108,0.4);
}

.cell {
  border: 0.5px solid rgb(10, 11, 10);
  background-color: rgb(10, 11, 10);
}

.snake {
  background: rgb(112, 243, 112);
  border-radius: 6px;
}

.head {
  background: url('https://th.bing.com/th?q=Snake+Game+Head+PNG&w=120&h=120&c=1&rs=1&qlt=90&r=0&cb=1&dpr=1.3&pid=InlineBlock&mkt=en-IN&cc=IN&setlang=en&adlt=moderate&t=1&mw=247') center / cover;
  background-color: aqua;
  border-radius: 6px;
}

.food {
  background-image: url('https://cdn-icons-png.flaticon.com/512/415/415733.png');
  background-size: cover;
  background-position: center;
}

.btn-row {
  display: flex;
  gap: 12px;
}

.game-btn {
  padding: 10px 24px;
  font-family: 'surprisedmonkey', sans-serif;
  font-size: 1rem;
  cursor: pointer;
  background-color: #15dd26;
  border: none;
  border-radius: 8px;
  color: white;
  box-shadow: 0 0 10px rgba(21,221,38,0.4);
  transition: transform 0.15s, box-shadow 0.15s;
}

.game-btn:hover {
  transform: scale(1.05);
  box-shadow: 0 0 18px rgba(21,221,38,0.7);
}

.music-btn {
  background-color: rgba(0,0,0,0.5);
  border: 1px solid rgba(0,255,224,0.4);
  color: #00ffe0;
  box-shadow: none;
}

.music-btn:hover {
  background-color: rgba(0,255,224,0.1);
  box-shadow: 0 0 10px rgba(0,255,224,0.3);
}

/* Game over overlay */
.go-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.72);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 99;
}

.go-box {
  background: rgba(255,255,255,0.07);
  backdrop-filter: blur(12px);
  border: 2px solid rgba(255,255,255,0.25);
  border-radius: 18px;
  padding: 36px 48px;
  text-align: center;
  color: white;
  font-family: 'surprisedmonkey', sans-serif;
}

.go-box h2 {
  font-size: 2rem;
  color: #ff4444;
  text-shadow: 0 0 15px #ff4444;
  margin-bottom: 10px;
}

.go-box p { font-size: 1.2rem; margin-bottom: 20px; color: #aaa; }
