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

body {
  font-family: 'Arial', 'Helvetica', sans-serif;
  background: linear-gradient(135deg, #1a1a1a 0%, #2d2d2d 100%);
  min-height: 100vh;
  display: flex;
  justify-content: center;
  align-items: center;
  color: #fff;
  padding: 20px;
}

.game-wrapper {
  text-align: center;
  max-width: 600px;
  width: 100%;
}

h1 {
  font-size: 2.5rem;
  margin-bottom: 30px;
  color: #fff;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.5);
  font-weight: 700;
  letter-spacing: 2px;
}

/* Game Board - Circular Layout */
.game-board {
  position: relative;
  width: 400px;
  height: 400px;
  margin: 0 auto 40px;
  border-radius: 50%;
  overflow: hidden;
  background: #1a1a1a;
}

/* Quadrants */
.quadrant {
  position: absolute;
  width: calc(50% - 4px);
  height: calc(50% - 4px);
  cursor: pointer;
  transition: all 0.15s ease;
  opacity: 0.85;
}

.quadrant:hover {
  opacity: 0.95;
}

.quadrant.active {
  opacity: 1 !important;
  filter: brightness(1.4);
  transform: scale(1.02);
  box-shadow: 0 0 30px currentColor;
}

.quadrant.disabled {
  cursor: not-allowed;
  opacity: 0.5;
}

/* Green - Top Left */
.quadrant.green {
  top: 4px;
  left: 4px;
  background: #4caf50;
  border-radius: 100% 0 0 0;
}

/* Red - Top Right */
.quadrant.red {
  top: 4px;
  right: 4px;
  background: #f44336;
  border-radius: 0 100% 0 0;
}

/* Yellow - Bottom Left */
.quadrant.yellow {
  bottom: 4px;
  left: 4px;
  background: #ffd700;
  border-radius: 0 0 0 100%;
}

/* Blue - Bottom Right */
.quadrant.blue {
  bottom: 4px;
  right: 4px;
  background: #2196f3;
  border-radius: 0 0 100% 0;
}

/* Center Circle */
.center-circle {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 160px;
  height: 160px;
  background: #1a1a1a;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.8);
  border: 4px solid #0a0a0a;
  z-index: 10;
}

.level-display {
  font-size: 4rem;
  font-weight: bold;
  color: #fff;
  text-shadow: 0 2px 10px rgba(255, 255, 255, 0.3);
  user-select: none;
}

/* Controls */
.controls {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
}

.start-button {
  padding: 15px 40px;
  font-size: 1.2rem;
  font-weight: 600;
  color: #fff;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  border: none;
  border-radius: 50px;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: 0 4px 15px rgba(102, 126, 234, 0.4);
  text-transform: uppercase;
  letter-spacing: 1px;
}

.start-button:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(102, 126, 234, 0.6);
}

.start-button:active {
  transform: translateY(0);
}

.start-button:disabled {
  opacity: 0.5;
  cursor: not-allowed;
  transform: none;
}

.game-info {
  min-height: 30px;
}

.info-text {
  font-size: 1.1rem;
  color: #b0b0b0;
  margin: 0;
  transition: all 0.3s ease;
}

.info-text.success {
  color: #4caf50;
  font-weight: 600;
}

.info-text.error {
  color: #f44336;
  font-weight: 600;
}

/* Message Overlay */
.message-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.8);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1000;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}

.message-overlay.show {
  opacity: 1;
  pointer-events: all;
}

.message-overlay.hidden {
  display: none;
}

.message-content {
  background: #2d2d2d;
  padding: 40px 60px;
  border-radius: 20px;
  font-size: 1.8rem;
  font-weight: 600;
  text-align: center;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.5);
  animation: slideIn 0.3s ease;
}

.message-content.success {
  color: #4caf50;
  border: 3px solid #4caf50;
}

.message-content.error {
  color: #f44336;
  border: 3px solid #f44336;
}

@keyframes slideIn {
  from {
    transform: scale(0.8);
    opacity: 0;
  }
  to {
    transform: scale(1);
    opacity: 1;
  }
}

/* Responsive Design */
@media (max-width: 600px) {
  .game-board {
    width: 320px;
    height: 320px;
  }

  .quadrant {
    width: calc(50% - 3px);
    height: calc(50% - 3px);
  }

  .quadrant.green {
    top: 3px;
    left: 3px;
  }

  .quadrant.red {
    top: 3px;
    right: 3px;
  }

  .quadrant.yellow {
    bottom: 3px;
    left: 3px;
  }

  .quadrant.blue {
    bottom: 3px;
    right: 3px;
  }

  .center-circle {
    width: 100px;
    height: 100px;
  }

  .level-display {
    font-size: 3rem;
  }

  h1 {
    font-size: 2rem;
  }

  .start-button {
    padding: 12px 30px;
    font-size: 1rem;
  }

  .message-content {
    padding: 30px 40px;
    font-size: 1.4rem;
  }
}

@media (max-width: 400px) {
  .game-board {
    width: 280px;
    height: 280px;
  }

  .quadrant {
    width: calc(50% - 2px);
    height: calc(50% - 2px);
  }

  .quadrant.green {
    top: 2px;
    left: 2px;
  }

  .quadrant.red {
    top: 2px;
    right: 2px;
  }

  .quadrant.yellow {
    bottom: 2px;
    left: 2px;
  }

  .quadrant.blue {
    bottom: 2px;
    right: 2px;
  }

  .center-circle {
    width: 90px;
    height: 90px;
  }

  .level-display {
    font-size: 2.5rem;
  }
}
