/* Configuration */
:root {
  --primary-color: #4ecdc4;
  --secondary-color: #ff6b6b;
  --accent-color: #45b7d1;
  --text-primary: rgba(255, 255, 255, 0.95);
  --text-secondary: rgba(255, 255, 255, 0.8);
  --text-muted: rgba(255, 255, 255, 0.3);
  --glass-bg: rgba(255, 255, 255, 0.08);
  --glass-border: rgba(255, 255, 255, 0.15);
  --backdrop-blur: blur(25px);
  --transition-smooth: all 0.3s cubic-bezier(0.23, 1, 0.32, 1);
  --gradient-primary: linear-gradient(135deg, var(--secondary-color), var(--primary-color));
  --gradient-rainbow: linear-gradient(135deg, #ff6b6b, #4ecdc4, #45b7d1, #f9ca24);
}

/* Reset and base styles */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Arial', 'sans-serif';
  background-image: url('../images/background.jpg');
  background-size: cover;
  background-position: center;
  background-attachment: fixed;
  cursor: auto;
  touch-action: none;
}

/* WebGL canvas */
#glCanvas {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  z-index: 1;
  pointer-events: auto;
}

.dg {
  pointer-events: auto;
  z-index: 1001;
  position: absolute;
}

/* Message box UI */
.message-box {
  position: fixed;
  top: 20px;
  left: 50%;
  transform: translateX(-50%);
  background: rgba(0, 0, 0, 0.8);
  color: white;
  padding: 15px 25px;
  border-radius: 25px;
  font-size: 16px;
  z-index: 100;
  display: none;
  backdrop-filter: blur(10px);
  border: 1px solid var(--glass-border);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
  animation: slideIn 0.3s ease-out;
}

@keyframes slideIn {
  from {
    opacity: 0;
    transform: translateX(-50%) translateY(-20px);
  }
  to {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
  }
}

/* Torus menu overlay */
.torus-menu {
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  display: flex;
  gap: 20px;
  z-index: 200;
  pointer-events: auto;
}

.torus-menu button {
  background: rgba(78, 205, 196, 0.8);
  border: none;
  color: white;
  padding: 12px 24px;
  font-size: 18px;
  border-radius: 8px;
  cursor: pointer;
  backdrop-filter: blur(4px);
  transition: background 0.3s ease;
}

.torus-menu button:hover {
  background: var(--primary-color);
}

/* Responsive design */
@media (max-width: 768px) {
  .message-box {
    font-size: 14px;
    padding: 12px 20px;
    max-width: 90%;
  }
}