/* Basic reset */
* {
  box-sizing: border-box;
}

body {
  margin: 0;
  background: #f6f8fa;
  font-family: sans-serif;
  display: flex;
  flex-direction: column;
  align-items: center;
  min-height: 100vh;
  padding: 10px;
  height: 100%;
}

/* Header containing score and next fruit preview */
#header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
  max-width: 600px;
  margin-bottom: 10px;
  padding: 0 10px;
}

#scoreboard {
  font-size: 20px;
  font-weight: bold;
  color: #333;
}

#nextFruitContainer {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 14px;
  color: #333;
}

/* Next fruit preview canvas */
#nextCanvas {
  width: 50px;
  height: 50px;
  border: 1px solid #ddd;
  border-radius: 50%;
  background: #fff;
}

/* Main game canvas */
#gameCanvas {
  width: 100%;
  max-width: 600px;
  background: #fff;
  border-radius: 8px;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.15);
}

/* Restart button */
#restartBtn {
  margin: 10px;
  padding: 8px 16px;
  font-size: 16px;
  background: #007bff;
  color: white;
  border: none;
  border-radius: 4px;
  cursor: pointer;
  transition: background 0.2s;
}

#restartBtn:hover {
  background: #005dc0;
}