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

body {
  font-family: "Comic Sans MS", "Arial", sans-serif;
  background: linear-gradient(to bottom, #ff9a56 0%, #ff6b35 100%);
  overflow: hidden;
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 100vh;
}

#gameContainer {
  position: relative;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
  border-radius: 15px;
  overflow: hidden;
}

#menu {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  background: rgba(255, 154, 86, 0.95);
  padding: 40px;
  border-radius: 20px;
  border: 5px solid #8b4513;
  text-align: center;
  color: #ffffff;
  z-index: 1000;
  box-shadow: 0 8px 16px rgba(0, 0, 0, 0.3);
  max-width: 500px;
}

#menu h1 {
  font-size: 48px;
  margin-bottom: 10px;
  text-shadow: 3px 3px 6px rgba(0, 0, 0, 0.5);
  color: #fff;
}

#menu .pumpkin-emoji {
  font-size: 64px;
  margin: 10px 0;
}

#menu p {
  font-size: 18px;
  margin-bottom: 25px;
  line-height: 1.6;
  color: rgba(255, 255, 255, 0.95);
}

#menu button {
  font-family: "Comic Sans MS", "Arial", sans-serif;
  font-size: 24px;
  font-weight: bold;
  padding: 15px 40px;
  margin: 10px;
  background: #8b4513;
  color: white;
  border: 3px solid #5a2d0c;
  border-radius: 15px;
  cursor: pointer;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
  transition: all 0.2s;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

#menu button:hover {
  background: #a0522d;
  transform: scale(1.05);
  box-shadow: 0 6px 12px rgba(0, 0, 0, 0.3);
}

#menu button:active {
  transform: scale(0.95);
}

.hidden {
  display: none !important;
}

#ui {
  position: absolute;
  top: 20px;
  left: 20px;
  color: white;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.8);
  font-size: 20px;
  font-weight: bold;
  z-index: 100;
  pointer-events: none;
}

#rotMeter {
  position: absolute;
  top: 20px;
  right: 20px;
  width: 250px;
  z-index: 100;
  pointer-events: none;
}

#rotMeter .label {
  color: white;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.8);
  font-size: 18px;
  font-weight: bold;
  margin-bottom: 5px;
}

#rotMeter .bar-container {
  background: rgba(0, 0, 0, 0.5);
  border: 3px solid rgba(255, 255, 255, 0.8);
  border-radius: 10px;
  padding: 5px;
  height: 35px;
}

#rotMeter .bar {
  background: linear-gradient(to right, #ff4444, #ffaa00, #44ff44);
  height: 100%;
  border-radius: 5px;
  transition: width 0.3s ease;
  box-shadow: 0 0 10px rgba(255, 255, 255, 0.5);
}

#socialLinks {
  margin-top: 20px;
  font-size: 14px;
}

#socialLinks a {
  color: rgba(255, 255, 255, 0.9);
  text-decoration: none;
  margin: 0 8px;
  transition: all 0.2s;
}

#socialLinks a:hover {
  color: #fff;
  text-decoration: underline;
}

#instructions {
  position: absolute;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%);
  background: rgba(0, 0, 0, 0.7);
  color: white;
  padding: 15px 30px;
  border-radius: 10px;
  border: 2px solid rgba(255, 255, 255, 0.4);
  font-size: 16px;
  text-align: center;
  z-index: 100;
  pointer-events: none;
}