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

body {
  font-family: 'DM Sans', sans-serif;
  background: #0a0a0f;
  min-height: 100vh;
  color: #fff;
  overflow: hidden;
}

.graph-container {
  width: 100vw;
  height: 100vh;
  position: relative;
}

svg {
  width: 100%;
  height: 100%;
}

.edge {
  stroke-width: 1.5;
  fill: none;
  opacity: 0.6;
}

.edge-sight { stroke: #667eea; }
.edge-sound { stroke: #f5576c; }
.edge-touch { stroke: #00f2fe; }
.edge-taste { stroke: #fee140; }
.edge-scent { stroke: #a8edea; }
.edge-space { stroke: #d299c2; }
.edge-time { stroke: #66a6ff; }
.edge-system { stroke: #fda085; }

.edge-main {
  stroke-width: 2.5;
  opacity: 0.8;
}

.node {
  cursor: pointer;
  transition: transform 0.2s ease;
}

.node:hover {
  opacity: 0.9;
}

.center-circle {
  fill: #fff;
  filter: drop-shadow(0 0 30px rgba(255,255,255,0.4));
}

.sense-circle {
  filter: drop-shadow(0 0 15px currentColor);
}

.product-circle {
  opacity: 0.9;
  cursor: pointer;
  transition: all 0.2s ease;
}

.product-circle:hover {
  opacity: 1;
}

.product-node {
  cursor: pointer;
}

.product-node:hover .product-circle {
  opacity: 1;
}

.center-text {
  font-family: 'Playfair Display', serif;
  font-size: 24px;
  font-weight: 600;
  fill: #0a0a0f;
}

.center-subtext {
  font-size: 10px;
  fill: #555;
  text-transform: uppercase;
  letter-spacing: 0.1em;
}

.sense-text {
  font-size: 11px;
  font-weight: 600;
  fill: #fff;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.sense-emoji {
  font-size: 18px;
}

.sense-count {
  font-size: 8px;
  fill: rgba(255,255,255,0.7);
}

.product-text {
  font-size: 8px;
  fill: #fff;
  opacity: 0.9;
  pointer-events: none;
}

.grad-sight { stop-color: #667eea; }
.grad-sight-2 { stop-color: #764ba2; }
.grad-sound { stop-color: #f093fb; }
.grad-sound-2 { stop-color: #f5576c; }
.grad-touch { stop-color: #4facfe; }
.grad-touch-2 { stop-color: #00f2fe; }
.grad-taste { stop-color: #fa709a; }
.grad-taste-2 { stop-color: #fee140; }
.grad-scent { stop-color: #a8edea; }
.grad-scent-2 { stop-color: #fed6e3; }
.grad-space { stop-color: #d299c2; }
.grad-space-2 { stop-color: #fef9d7; }
.grad-time { stop-color: #89f7fe; }
.grad-time-2 { stop-color: #66a6ff; }
.grad-system { stop-color: #f6d365; }
.grad-system-2 { stop-color: #fda085; }

.title {
  position: absolute;
  top: 30px;
  left: 50%;
  transform: translateX(-50%);
  text-align: center;
  z-index: 10;
}

.title h1 {
  font-family: 'Playfair Display', serif;
  font-size: 1.8rem;
  font-weight: 500;
  letter-spacing: 0.02em;
}

.title p {
  font-size: 0.8rem;
  color: rgba(255,255,255,0.5);
  margin-top: 5px;
}

.instruction {
  position: absolute;
  top: 90px;
  left: 50%;
  transform: translateX(-50%);
  font-size: 0.75rem;
  color: rgba(255,255,255,0.4);
  text-align: center;
}

.legend {
  position: absolute;
  bottom: 30px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 20px;
  font-size: 0.7rem;
  color: rgba(255,255,255,0.6);
  flex-wrap: wrap;
  justify-content: center;
  max-width: 90%;
}

.legend-item {
  display: flex;
  align-items: center;
  gap: 6px;
}

.legend-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
}

/* Animations removed for cleaner look */

/* Edge animations removed */

/* Modal Styles */
.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.8);
  backdrop-filter: blur(10px);
  display: none;
  justify-content: center;
  align-items: center;
  z-index: 1000;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.modal-overlay.active {
  display: flex;
  opacity: 1;
}

.modal {
  background: linear-gradient(145deg, #1a1a2e, #16213e);
  border-radius: 20px;
  padding: 40px;
  max-width: 550px;
  width: 90%;
  max-height: 85vh;
  overflow-y: auto;
  position: relative;
  border: 1px solid rgba(255,255,255,0.1);
  box-shadow: 0 25px 50px rgba(0,0,0,0.5);
  transform: scale(0.9);
  transition: transform 0.3s ease;
}

.modal-overlay.active .modal {
  transform: scale(1);
}

.modal-close {
  position: absolute;
  top: 20px;
  right: 20px;
  background: rgba(255,255,255,0.1);
  border: none;
  color: #fff;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  cursor: pointer;
  font-size: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s ease;
}

.modal-close:hover {
  background: rgba(255,255,255,0.2);
  transform: rotate(90deg);
}

.modal-sense {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px;
  border-radius: 20px;
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 16px;
}

.modal-product-name {
  font-family: 'Playfair Display', serif;
  font-size: 2rem;
  font-weight: 600;
  margin-bottom: 24px;
  line-height: 1.2;
}

.modal-section {
  margin-bottom: 24px;
}

.modal-section-title {
  font-size: 0.7rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: rgba(255,255,255,0.5);
  margin-bottom: 8px;
}

.modal-section-content {
  font-size: 0.95rem;
  line-height: 1.6;
  color: rgba(255,255,255,0.9);
}

.modal-value {
  background: rgba(255,255,255,0.05);
  border-radius: 12px;
  padding: 16px;
  border-left: 3px solid;
}

.modal-skepticism {
  background: rgba(255,100,100,0.1);
  border-radius: 12px;
  padding: 16px;
  border-left: 3px solid #ff6b6b;
}

.modal-skepticism .modal-section-content {
  color: rgba(255,200,200,0.9);
}

/* Sense colors for modal */
.sense-sight { background: linear-gradient(135deg, #667eea, #764ba2); }
.sense-sound { background: linear-gradient(135deg, #f093fb, #f5576c); }
.sense-touch { background: linear-gradient(135deg, #4facfe, #00f2fe); }
.sense-taste { background: linear-gradient(135deg, #fa709a, #fee140); }
.sense-scent { background: linear-gradient(135deg, #a8edea, #fed6e3); color: #333; }
.sense-space { background: linear-gradient(135deg, #d299c2, #fef9d7); color: #333; }
.sense-time { background: linear-gradient(135deg, #89f7fe, #66a6ff); }
.sense-system { background: linear-gradient(135deg, #f6d365, #fda085); color: #333; }

.border-sight { border-color: #667eea; }
.border-sound { border-color: #f5576c; }
.border-touch { border-color: #00f2fe; }
.border-taste { border-color: #fee140; }
.border-scent { border-color: #a8edea; }
.border-space { border-color: #d299c2; }
.border-time { border-color: #66a6ff; }
.border-system { border-color: #fda085; }

.modal-link {
  display: inline-block;
  padding: 12px 24px;
  background: linear-gradient(135deg, rgba(255,255,255,0.1), rgba(255,255,255,0.05));
  border: 1px solid rgba(255,255,255,0.2);
  border-radius: 8px;
  color: #fff;
  text-decoration: none;
  font-size: 0.9rem;
  font-weight: 500;
  transition: all 0.2s ease;
}

.modal-link:hover {
  background: linear-gradient(135deg, rgba(255,255,255,0.2), rgba(255,255,255,0.1));
  transform: translateX(4px);
}

/* Sense Modal Styles */
.sense-modal-content {
  max-width: 600px;
}

.sense-modal-header {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 24px;
}

.sense-modal-emoji {
  font-size: 3rem;
}

.sense-modal-name {
  font-family: 'Playfair Display', serif;
  font-size: 2.5rem;
  font-weight: 600;
  margin: 0;
}

.sense-modal-body {
  font-size: 1rem;
  line-height: 1.8;
  color: rgba(255,255,255,0.85);
}

.sense-modal-body p {
  margin-bottom: 1.2em;
}

.sense-modal-body p:last-child {
  margin-bottom: 0;
}

@media (max-width: 768px) {
  .title {
    top: 15px;
  }
  .title h1 {
    font-size: 1.2rem;
  }
  .title p {
    font-size: 0.65rem;
    margin-top: 3px;
  }
  .instruction {
    top: 60px;
    font-size: 0.6rem;
    padding: 0 20px;
  }
  .modal {
    padding: 24px;
  }
  .modal-product-name {
    font-size: 1.5rem;
  }
  .legend {
    gap: 12px;
    font-size: 0.6rem;
    bottom: 15px;
  }
}

@media (max-width: 480px) {
  .title {
    top: 10px;
  }
  .title h1 {
    font-size: 1rem;
  }
  .title p {
    font-size: 0.6rem;
  }
  .instruction {
    top: 50px;
    font-size: 0.55rem;
  }
  .legend {
    gap: 8px;
    font-size: 0.5rem;
    bottom: 10px;
  }
}
