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

body {
  font-family: "Courier New", monospace;
  background: linear-gradient(135deg, #1e3c72 0%, #2a5298 100%);
  color: white;
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 100vh;
  padding: 20px;
}

.game-container {
  display: flex;
  gap: 30px;
  background: rgba(0, 0, 0, 0.8);
  padding: 30px;
  border-radius: 15px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
  border: 2px solid #4a90e2;
}

.game-info {
  width: 200px;
}

.info-panel h1 {
  font-size: 28px;
  text-align: center;
  margin-bottom: 30px;
  color: #4a90e2;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

.score-section {
  margin-bottom: 30px;
}

.score-item {
  display: flex;
  justify-content: space-between;
  margin-bottom: 15px;
  padding: 10px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 5px;
}

.high-scores {
  margin-top: 20px;
  padding: 10px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 5px;
}

.high-scores .label {
  display: block;
  text-align: center;
  font-weight: bold;
  color: #4a90e2;
  margin-bottom: 10px;
}

#high-scores p {
  margin: 3px 0;
  text-align: center;
  font-size: 14px;
}

.label {
  font-weight: bold;
  color: #4a90e2;
}

.value {
  font-weight: bold;
  color: #fff;
}

.next-piece,
.hold-piece {
  margin-bottom: 20px;
}

.next-piece .label,
.hold-piece .label {
  display: block;
  margin-bottom: 10px;
  text-align: center;
  font-weight: bold;
  color: #4a90e2;
}

#next-canvas,
#hold-canvas {
  display: block;
  margin: 0 auto;
  background: rgba(0, 0, 0, 0.5);
  border: 2px solid #333;
  border-radius: 5px;
}

.game-board {
  position: relative;
}

#game-canvas {
  background: #000;
  border: 3px solid #4a90e2;
  border-radius: 5px;
  box-shadow: 0 0 20px rgba(74, 144, 226, 0.3);
}

.game-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.6);
  display: flex;
  justify-content: center;
  align-items: center;
  border-radius: 5px;
}

.overlay-content {
  text-align: center;
}

.overlay-content h2 {
  font-size: 36px;
  margin-bottom: 20px;
  color: #4a90e2;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

.overlay-content p {
  font-size: 18px;
  margin-bottom: 30px;
}

.controls {
  font-size: 14px;
  line-height: 1.6;
}

.controls p {
  margin-bottom: 5px;
  color: #ccc;
}

.hidden {
  display: none;
}

@media (max-width: 768px) {
  .game-container {
    flex-direction: column;
    align-items: center;
    padding: 20px;
  }

  .game-info {
    width: 100%;
    max-width: 300px;
  }

  .info-panel h1 {
    font-size: 24px;
  }

  #game-canvas {
    width: 250px;
    height: 500px;
  }
}
