@font-face {
  font-family: "Recursive";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("../font/recursive-latin-400-normal.woff2") format("woff2");
}
@font-face {
  font-family: "Recursive";
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url("../font/recursive-latin-600-normal.woff2") format("woff2");
}
@font-face {
  font-family: "Recursive";
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url("../font/recursive-latin-700-normal.woff2") format("woff2");
}
@font-face {
  font-family: "Recursive";
  font-style: normal;
  font-weight: 800;
  font-display: swap;
  src: url("../font/recursive-latin-800-normal.woff2") format("woff2");
}
:root {
  --mobile-card-height: 40vh;
}

body {
  background-color: #f5f2ea;
  color: #0f172a;
  overflow: hidden;
  touch-action: none;
  font-family: "Recursive", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif !important;
}

/* Ensure Tailwind utility classes still use Recursive if CDN utilities drift */
.font-sans,
.font-display {
  font-family: "Recursive", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif !important;
}

/* Fallback if Tailwind CDN does not emit custom bg-beige utility */
.bg-beige {
  background-color: #f5f2ea;
}

.glass-neon-ui {
  background: rgba(223, 255, 0, 0.75);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid rgba(255, 255, 255, 0.4);
  box-shadow: 0 10px 30px -5px rgba(223, 255, 0, 0.2);
}

.node-group {
  cursor: pointer;
  transition: opacity 0.3s ease;
}

.link {
  stroke: #94a3b8;
  opacity: 0.3;
  stroke-width: 3px;
  transition: all 0.3s ease;
}

@media (min-width: 768px) {
  .link {
    stroke-width: 5px;
  }
}
.node-label {
  fill: #000000;
  font-family: "Recursive", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif !important;
  font-weight: 800;
  font-size: 13px;
  text-anchor: middle;
  dominant-baseline: middle;
  pointer-events: none;
}

@media (min-width: 768px) {
  .node-label {
    font-size: 18px;
  }
}
.node-circle {
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  filter: drop-shadow(0 4px 6px rgba(0, 0, 0, 0.1));
}

.node-group:hover .node-circle {
  stroke: #000;
  stroke-width: 2px;
}

#info-card {
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 255, 255, 0.3);
  box-shadow: 0 -10px 40px rgba(0, 0, 0, 0.15);
  touch-action: auto;
  transform: translateY(120%);
  transition: transform 0.5s cubic-bezier(0.16, 1, 0.3, 1), height 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

#info-card.active {
  transform: translateY(0);
}

@media (min-width: 768px) {
  #info-card {
    box-shadow: 10px 10px 40px rgba(0, 0, 0, 0.15);
    transform: translateX(-120%);
    transition: transform 0.5s cubic-bezier(0.16, 1, 0.3, 1);
  }
  #info-card.active {
    transform: translateX(0);
  }
}
::-webkit-scrollbar {
  width: 6px;
}

::-webkit-scrollbar-track {
  background: transparent;
}

::-webkit-scrollbar-thumb {
  background: rgba(0, 0, 0, 0.15);
  border-radius: 3px;
}

::-webkit-scrollbar-thumb:hover {
  background: rgba(0, 0, 0, 0.3);
}

.group-circle-bg {
  fill: none;
  stroke: transparent;
  stroke-width: 0;
  pointer-events: none;
}
