@import url("https://fonts.googleapis.com/css2?family=Cormorant+Garamond:ital,wght@0,300;0,400;1,300&family=JetBrains+Mono:wght@300&display=swap");

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

body {
  overflow: hidden;
  background: #0a0a0f;
  font-family: "Cormorant Garamond", serif;
}

#canvas-container {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
}

.ui-overlay {
  position: fixed;
  z-index: 100;
  pointer-events: none;
}

.title-block {
  top: 40px;
  left: 40px;
}

.title {
  font-size: 14px;
  font-weight: 300;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.4);
  margin-bottom: 8px;
}

.subtitle-row {
  display: flex;
  align-items: center;
  gap: 10px;
}

.subtitle {
  font-size: 11px;
  font-family: "JetBrains Mono", monospace;
  font-weight: 300;
  color: rgba(255, 255, 255, 0.25);
  letter-spacing: 0.05em;
}

.info-btn {
  background: none;
  border: 1px solid rgba(255, 255, 255, 0.15);
  color: rgba(255, 255, 255, 0.35);
  font-size: 12px;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  cursor: pointer;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  pointer-events: auto;
}

.info-btn:hover {
  border-color: rgba(255, 255, 255, 0.5);
  color: rgba(255, 255, 255, 0.8);
  background: rgba(255, 255, 255, 0.05);
}

.controls-block {
  bottom: 40px;
  left: 40px;
  pointer-events: auto;
}

.control-row {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 12px;
}

.control-label {
  font-size: 10px;
  font-family: "JetBrains Mono", monospace;
  font-weight: 300;
  color: rgba(255, 255, 255, 0.35);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  width: 80px;
}

.form-buttons {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  max-width: 400px;
}

.form-btn {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: rgba(255, 255, 255, 0.5);
  padding: 8px 16px;
  font-family: "JetBrains Mono", monospace;
  font-size: 10px;
  font-weight: 300;
  letter-spacing: 0.1em;
  cursor: pointer;
  transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.form-btn:hover {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.25);
  color: rgba(255, 255, 255, 0.8);
}

.form-btn.active {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.4);
  color: rgba(255, 255, 255, 0.9);
}

.param-slider {
  -webkit-appearance: none;
  appearance: none;
  width: 140px;
  height: 1px;
  background: rgba(255, 255, 255, 0.15);
  outline: none;
  cursor: pointer;
}

.param-slider::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 10px;
  height: 10px;
  background: rgba(255, 255, 255, 0.6);
  border-radius: 50%;
  cursor: pointer;
  transition: all 0.2s ease;
}

.param-slider::-webkit-slider-thumb:hover {
  background: rgba(255, 255, 255, 0.9);
  transform: scale(1.2);
}

.data-block {
  bottom: 40px;
  right: 40px;
  text-align: right;
}

.data-row {
  font-size: 10px;
  font-family: "JetBrains Mono", monospace;
  font-weight: 300;
  color: rgba(255, 255, 255, 0.25);
  letter-spacing: 0.05em;
  margin-bottom: 6px;
}

.data-value {
  color: rgba(255, 255, 255, 0.5);
}

.instructions {
  top: 40px;
  right: 40px;
  text-align: right;
}

.instruction-line {
  font-size: 10px;
  font-family: "JetBrains Mono", monospace;
  font-weight: 300;
  color: rgba(255, 255, 255, 0.2);
  letter-spacing: 0.05em;
  margin-bottom: 4px;
}

.crosshair {
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  z-index: 50;
  pointer-events: none;
  opacity: 0.15;
}

.crosshair::before,
.crosshair::after {
  content: "";
  position: absolute;
  background: white;
}

.crosshair::before {
  width: 1px;
  height: 20px;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
}

.crosshair::after {
  width: 20px;
  height: 1px;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
}

.vignette {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  background: radial-gradient(
    ellipse at center,
    transparent 40%,
    rgba(0, 0, 0, 0.6) 100%
  );
  z-index: 10;
}

.scan-line {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  background: repeating-linear-gradient(
    0deg,
    transparent,
    transparent 2px,
    rgba(0, 0, 0, 0.03) 2px,
    rgba(0, 0, 0, 0.03) 4px
  );
  z-index: 11;
}

/* Info Panel */
.info-panel {
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%) scale(0.9);
  width: 420px;
  max-width: 90vw;
  max-height: 80vh;
  overflow-y: auto;
  background: rgba(10, 10, 15, 0.95);
  border: 1px solid rgba(255, 255, 255, 0.1);
  padding: 32px;
  z-index: 200;
  opacity: 0;
  visibility: hidden;
  transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  backdrop-filter: blur(20px);
}

.info-panel.active {
  opacity: 1;
  visibility: visible;
  transform: translate(-50%, -50%) scale(1);
}

.info-close {
  position: absolute;
  top: 16px;
  right: 16px;
  background: none;
  border: none;
  color: rgba(255, 255, 255, 0.4);
  font-size: 24px;
  cursor: pointer;
  transition: color 0.3s ease;
  line-height: 1;
}

.info-close:hover {
  color: rgba(255, 255, 255, 0.9);
}

.info-title {
  font-family: "Cormorant Garamond", serif;
  font-size: 28px;
  font-weight: 300;
  color: rgba(255, 255, 255, 0.9);
  margin-bottom: 8px;
  letter-spacing: 0.02em;
}

.info-category {
  font-family: "JetBrains Mono", monospace;
  font-size: 10px;
  font-weight: 300;
  color: rgba(138, 106, 74, 0.9);
  text-transform: uppercase;
  letter-spacing: 0.2em;
  margin-bottom: 20px;
}

.info-description {
  font-family: "Cormorant Garamond", serif;
  font-size: 15px;
  font-weight: 300;
  color: rgba(255, 255, 255, 0.6);
  line-height: 1.7;
  margin-bottom: 24px;
}

.info-details {
  display: flex;
  gap: 32px;
  margin-bottom: 24px;
  padding: 16px 0;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.info-detail-item {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.info-label {
  font-family: "JetBrains Mono", monospace;
  font-size: 9px;
  font-weight: 300;
  color: rgba(255, 255, 255, 0.3);
  text-transform: uppercase;
  letter-spacing: 0.15em;
}

.info-value {
  font-family: "Cormorant Garamond", serif;
  font-size: 14px;
  color: rgba(255, 255, 255, 0.7);
}

.info-formula {
  font-family: "JetBrains Mono", monospace;
  font-size: 11px;
  color: rgba(255, 255, 255, 0.4);
  background: rgba(255, 255, 255, 0.03);
  padding: 12px 16px;
  border-radius: 4px;
  overflow-x: auto;
  white-space: pre-wrap;
  word-break: break-all;
}

.info-hint {
  font-family: "JetBrains Mono", monospace;
  font-size: 9px;
  color: rgba(255, 255, 255, 0.2);
  text-align: center;
  margin-top: 20px;
  letter-spacing: 0.1em;
}

.info-panel::-webkit-scrollbar {
  width: 4px;
}

.info-panel::-webkit-scrollbar-track {
  background: rgba(255, 255, 255, 0.02);
}

.info-panel::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.1);
  border-radius: 2px;
}

.form-btn {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: rgba(255, 255, 255, 0.5);
  padding: 8px 16px;
  font-family: "JetBrains Mono", monospace;
  font-size: 10px;
  font-weight: 300;
  letter-spacing: 0.1em;
  cursor: pointer;
  transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  position: relative;
}

.form-btn::after {
  content: "ⓘ";
  position: absolute;
  top: -6px;
  right: -6px;
  font-size: 10px;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.form-btn:hover::after {
  opacity: 0.5;
}
