body {
  text-align: center;
  font-family: 'Press Start 2P', cursive;
  background: repeating-linear-gradient(
    45deg,
    #1d1f20,
    #1d1f20 20px,
    #2c2f33 20px,
    #2c2f33 40px
  );
  margin: 0;
  padding: 20px;
  color: #f5f5f5;
}

h1 {
  font-size: 2em;
  margin-bottom: 15px;
  color: #ffcc00;
  text-shadow: 2px 2px #000;
}

#scoreBoard {
  display: flex;
  justify-content: center;
  gap: 40px;
  font-size: 0.8em;
  margin-bottom: 20px;
  color: #fff;
  text-shadow: 1px 1px #000;
}

#gameArea {
  position: relative;
  margin: auto;
  background: #111;
  border: 4px solid #555;
  width: 400px;
  height: 600px;
  overflow: hidden;
  image-rendering: pixelated;
}

#player {
  position: absolute;
  bottom: 10px;
  left: 180px;
  width: 40px;
  height: 40px;
  background: #00aaff;
  border: 2px solid #fff;
}

.block {
  position: absolute;
  top: 0;
  width: 40px;
  height: 40px;
  border: 2px solid #fff;
}

/* 不同顏色方塊 */
.block.red { background: #ff0033; }
.block.green { background: #33cc33; }
.block.yellow { background: #ffcc00; }

#controls {
  margin-top: 20px;
}

button {
  font-size: 0.8em;
  padding: 15px 25px;
  margin: 8px;
  border: 3px solid #fff;
  border-radius: 4px;
  cursor: pointer;
  background: #333;
  color: #ffcc00;
  font-family: 'Press Start 2P', cursive;
  transition: 0.2s;
}

button:hover {
  background: #555;
  transform: scale(1.05);
}
