/* MirrorField V3 - Living Field Styles */

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

body {
  background: #000;
  overflow: hidden;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}

/* Canvas */
#mirrorfield {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
}

/* Identity Overlay */
.overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(0, 0, 0, 0.7);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  transition: opacity 0.8s ease, visibility 0.8s ease;
  z-index: 100;
}

.overlay.hidden {
  opacity: 0;
  visibility: hidden;
}

.identity-container {
  text-align: center;
  max-width: 600px;
  padding: 40px;
}

.identity-prompt {
  color: rgba(255, 255, 255, 0.9);
  font-size: 18px;
  font-weight: 300;
  letter-spacing: 2px;
  margin-bottom: 30px;
  line-height: 1.6;
}

.identity-input {
  width: 100%;
  padding: 20px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 8px;
  color: #fff;
  font-size: 20px;
  text-align: center;
  letter-spacing: 1px;
  transition: all 0.3s ease;
  margin-bottom: 20px;
}

.identity-input:focus {
  outline: none;
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.3);
  box-shadow: 0 0 30px rgba(255, 255, 255, 0.1);
}

.identity-input::placeholder {
  color: rgba(255, 255, 255, 0.3);
}

.emerge-button {
  padding: 15px 40px;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 30px;
  color: rgba(255, 255, 255, 0.9);
  font-size: 16px;
  letter-spacing: 3px;
  cursor: pointer;
  transition: all 0.3s ease;
  text-transform: uppercase;
}

.emerge-button:hover {
  background: rgba(255, 255, 255, 0.15);
  border-color: rgba(255, 255, 255, 0.4);
  transform: translateY(-2px);
  box-shadow: 0 5px 20px rgba(255, 255, 255, 0.2);
}

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

/* Performance Monitor */
.performance-monitor {
  position: fixed;
  top: 20px;
  right: 20px;
  background: rgba(0, 0, 0, 0.7);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 8px;
  padding: 10px 15px;
  color: rgba(255, 255, 255, 0.8);
  font-family: 'Courier New', monospace;
  font-size: 12px;
  z-index: 1000;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

.performance-monitor div {
  margin: 2px 0;
  line-height: 1.2;
}

#fps-display {
  display: none;
}

#field-age {
  color: #FF6B9D;
}

#node-count {
  color: #2196F3;
}

/* Field Status */
.field-status {
  position: fixed;
  bottom: 50px;
  left: 50%;
  transform: translateX(-50%);
  opacity: 1;
  transition: opacity 0.5s ease;
  z-index: 50;
}

.field-status.hidden {
  opacity: 0;
  pointer-events: none;
}

.status-text {
  color: rgba(255, 255, 255, 0.8);
  font-size: 24px;
  letter-spacing: 4px;
  text-transform: uppercase;
  text-shadow: 0 0 20px rgba(255, 255, 255, 0.5);
}

/* Animations */
@keyframes pulse {
  0%, 100% { opacity: 0; transform: scale(0.9); }
  50% { opacity: 1; transform: scale(1); }
}