


/* === Snake Game Styles === */

#snakePopup {
  width: 420px;
  height: 480px; /* slightly taller to fit canvas + button */
  display: flex;
  flex-direction: column;
}

/* Popup scrollable area */
#snakePopup .scroll-area {
  flex-grow: 1;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  background: transparent;
  padding: 0;
}

/* Outer container for the game and button */
.snake-container {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  flex-grow: 1;
  height: 100%;
  padding: 10px;
    background: var(--theme-color-button-bg);
  box-sizing: border-box;
}

/* Canvas wrapper to center it */
.snake-game-area {
  flex-grow: 1;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* The game canvas itself */
#snakeCanvas {
  image-rendering: pixelated;
  max-height: 100%;
  width: auto;
  display: block;
  margin: 0 auto;
  border: 2px solid #3c3858;
    background: var(--theme-color-button-bg);
}

/* Retro button style (reuses your welcome-btn class) */
.snake-start-btn {
  font-family: 'Press Start 2P', monospace;
  font-size: 12px;
  padding: 8px 16px;
  margin-top: 10px;
  align-self: center;
  background-color: #dcd6f7;
  border: 2px solid #3c3858;
  color: #000;
  cursor: pointer;
}

.snake-start-btn:hover {
  background-color: #c7bfe6;
}
