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

body {
  background: linear-gradient(135deg, #87ceeb 0%, #98fb98 100%);
  font-family: "Roboto", sans-serif;
  overflow: hidden;
  cursor: default; /* Show cursor initially, hide during gameplay */
}

#container {
  width: 100vw;
  height: 100vh;
}

/* Info Panel - Modern Minecraft Style */
#info {
  position: absolute;
  top: 20px;
  left: 20px;
  background: rgba(0, 0, 0, 0.85);
  backdrop-filter: blur(15px);
  border-radius: 15px;
  padding: 25px;
  min-width: 300px;
  max-width: 350px;
  border: 2px solid #4caf50;
  box-shadow: 0 0 30px rgba(76, 175, 80, 0.3);
  color: white;
  z-index: 1000;
  transition: all 0.3s ease;
}

#info:hover {
  background: rgba(0, 0, 0, 0.9);
  box-shadow: 0 0 40px rgba(76, 175, 80, 0.5);
}

.info-header {
  text-align: center;
  margin-bottom: 20px;
  border-bottom: 2px solid #4caf50;
  padding-bottom: 15px;
}

.info-header h1 {
  font-size: 24px;
  font-weight: 700;
  color: #4caf50;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.8);
  margin-bottom: 5px;
}

.version {
  font-size: 12px;
  color: #888;
  font-weight: 300;
}

.controls-section,
.stats-section {
  margin-bottom: 20px;
}

.controls-section h3,
.stats-section h3 {
  color: #4caf50;
  font-size: 16px;
  font-weight: 500;
  margin-bottom: 12px;
  border-left: 3px solid #4caf50;
  padding-left: 8px;
}

.controls-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}

.control-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 8px;
  background: rgba(255, 255, 255, 0.05);
  border-radius: 8px;
  transition: background 0.2s ease;
}

.control-item:hover {
  background: rgba(255, 255, 255, 0.1);
}

kbd {
  background: linear-gradient(145deg, #555, #333);
  color: #fff;
  padding: 4px 8px;
  border-radius: 6px;
  font-size: 11px;
  font-weight: 600;
  border: 2px solid #666;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
  min-width: 50px;
  text-align: center;
  margin-bottom: 4px;
}

.control-item span {
  color: #ccc;
  font-size: 10px;
  font-weight: 400;
}

.stat-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 6px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.stat-item:last-child {
  border-bottom: none;
}

.stat-label {
  color: #aaa;
  font-size: 13px;
  font-weight: 400;
}

.stat-value {
  color: #4caf50;
  font-size: 14px;
  font-weight: 600;
  font-family: "Courier New", monospace;
}

.stat-value.online {
  color: #66bb6a;
}

.start-hint {
  text-align: center;
  margin-top: 15px;
  padding-top: 15px;
  border-top: 2px solid #4caf50;
}

.pulse {
  animation: pulse 2s infinite;
  color: #4caf50;
  font-size: 14px;
  font-weight: 500;
}

@keyframes pulse {
  0%,
  100% {
    opacity: 1;
    transform: scale(1);
  }
  50% {
    opacity: 0.8;
    transform: scale(1.02);
  }
}

/* Crosshair */
.crosshair {
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  display: none;
  z-index: 999;
}

.crosshair-line {
  position: absolute;
  background: rgba(255, 255, 255, 0.9);
  box-shadow: 0 0 3px rgba(0, 0, 0, 0.8);
}

.crosshair-line.horizontal {
  width: 20px;
  height: 2px;
  top: -1px;
  left: -10px;
}

.crosshair-line.vertical {
  width: 2px;
  height: 20px;
  top: -10px;
  left: -1px;
}

/* Loading Screen */
.loading-screen {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, #2c3e50 0%, #34495e 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 2000;
  opacity: 1;
  transition: opacity 0.5s ease;
}

.loading-screen.hidden {
  opacity: 0;
  pointer-events: none;
}

.loading-content {
  text-align: center;
  color: white;
  max-width: 400px;
  padding: 40px;
  background: rgba(0, 0, 0, 0.3);
  border-radius: 20px;
  backdrop-filter: blur(10px);
}

.loading-content h2 {
  font-size: 28px;
  color: #4caf50;
  margin-bottom: 30px;
  font-weight: 700;
}

.loading-bar {
  width: 100%;
  height: 8px;
  background: rgba(255, 255, 255, 0.2);
  border-radius: 4px;
  overflow: hidden;
  margin-bottom: 20px;
}

.loading-progress {
  width: 0%;
  height: 100%;
  background: linear-gradient(90deg, #4caf50 0%, #66bb6a 100%);
  border-radius: 4px;
  animation: loading 3s ease-in-out infinite;
}

@keyframes loading {
  0% {
    width: 0%;
  }
  50% {
    width: 70%;
  }
  100% {
    width: 100%;
  }
}

.loading-content p {
  color: #bbb;
  font-size: 14px;
  font-weight: 400;
}

/* Game Started State */
body.game-started #info {
  opacity: 0.7;
  transform: scale(0.9);
}

body.game-started #info:hover {
  opacity: 1;
  transform: scale(1);
}

body.game-started .crosshair {
  display: block;
}

body.game-started .start-hint {
  display: none;
}

/* Responsive Design */
@media (max-width: 768px) {
  #info {
    top: 10px;
    left: 10px;
    right: 10px;
    max-width: none;
    padding: 20px;
  }

  .info-header h1 {
    font-size: 20px;
  }

  .controls-grid {
    grid-template-columns: 1fr;
    gap: 6px;
  }

  .control-item {
    flex-direction: row;
    justify-content: space-between;
    padding: 6px 10px;
  }

  kbd {
    margin-bottom: 0;
    margin-right: 10px;
  }
}
