:root {
  color-scheme: dark;
  --bg: #040a12;
  --bg-deep: #02070d;
  --panel: rgba(6, 17, 27, 0.9);
  --line: rgba(145, 198, 224, 0.13);
  --line-strong: rgba(129, 220, 246, 0.3);
  --text: #f3f9fc;
  --muted: #8ea2b5;
  --faint: #64798d;
  --cyan: #6eddf8;
  --leaf: #4f9b8f;
  --leaf-bright: #78c9b5;
  --wood: #1a3940;
  --radius: 16px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  min-width: 300px;
  margin: 0;
  overflow-x: hidden;
  color: var(--text);
  background:
    radial-gradient(ellipse at 76% -8%, rgba(25, 107, 145, 0.18), transparent 35%),
    radial-gradient(ellipse at 8% 42%, rgba(24, 75, 93, 0.14), transparent 30%),
    linear-gradient(155deg, #050d17 0%, var(--bg) 48%, var(--bg-deep) 100%);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.5;
}

body::before {
  position: fixed;
  inset: 0;
  z-index: -3;
  pointer-events: none;
  content: "";
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.014) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.014) 1px, transparent 1px);
  background-size: 64px 64px;
  mask-image: linear-gradient(to bottom, #000, transparent 86%);
}

.ambient {
  position: fixed;
  z-index: -2;
  pointer-events: none;
  opacity: 0.38;
  filter: blur(58px);
  animation: ambient-shift 18s ease-in-out infinite alternate;
}

.ambient--one {
  top: -24vw;
  left: 10vw;
  width: 72vw;
  height: 44vw;
  background: repeating-radial-gradient(
    ellipse at center,
    rgba(76, 185, 220, 0.08) 0 2px,
    transparent 5px 32px
  );
  transform: rotate(-9deg);
}

.ambient--two {
  top: 44vh;
  right: -22vw;
  width: 56vw;
  height: 38vw;
  background: radial-gradient(ellipse, rgba(40, 127, 128, 0.08), transparent 68%);
  animation-delay: -9s;
}

a {
  color: inherit;
}

button,
input,
a {
  -webkit-tap-highlight-color: transparent;
}

button,
input {
  font: inherit;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.desktop-only {
  display: block;
}

.site-header {
  display: flex;
  align-items: center;
  gap: 18px;
  width: min(1180px, calc(100% - 40px));
  min-height: 72px;
  margin: 0 auto;
  border-bottom: 1px solid var(--line);
}

.brand {
  display: inline-flex;
  align-items: baseline;
  text-decoration: none;
  letter-spacing: -0.075em;
}

.brand span {
  font-size: 27px;
  font-weight: 820;
}

.brand small {
  margin-left: 2px;
  color: var(--cyan);
  font-size: 13px;
  font-weight: 750;
  letter-spacing: -0.04em;
}

.site-tagline {
  display: flex;
  align-items: center;
  gap: 13px;
  padding-left: 18px;
  border-left: 1px solid rgba(255, 255, 255, 0.15);
}

.site-tagline p {
  margin: 0;
  color: #7ee6f6;
  background: linear-gradient(90deg, #b8f7ff 0%, #65dff4 52%, #55b8ca 100%);
  background-clip: text;
  font-size: 14px;
  font-weight: 780;
  letter-spacing: 0.1em;
  line-height: 1;
  text-shadow: 0 0 16px rgba(65, 203, 226, 0.28);
  text-transform: none;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.sunwater-smiley {
  position: relative;
  z-index: 0;
  display: inline-block;
  flex: 0 0 34px;
  width: 34px;
  height: 34px;
  overflow: visible;
  border: 1px solid rgba(255, 237, 157, 0.92);
  border-radius: 50%;
  background:
    radial-gradient(circle at 28% 20%, rgba(255, 255, 255, 0.96) 0 2px, transparent 3px),
    radial-gradient(circle at 45% 38%, #fff3a5 0%, #ffd75a 42%, #f5a52c 78%, #df7418 100%);
  box-shadow:
    0 0 9px rgba(255, 225, 116, 0.64),
    0 0 20px rgba(255, 169, 48, 0.36),
    inset 0 2px 3px rgba(255, 255, 255, 0.56),
    inset 0 -3px 5px rgba(193, 82, 7, 0.2);
  animation: sun-happy-glow 2.7s ease-in-out infinite;
}

.sunwater-smiley > span {
  position: absolute;
  inset: -7px;
  z-index: 0;
  border-radius: 50%;
  opacity: 0.8;
  background: repeating-conic-gradient(
    from 1deg,
    rgba(255, 222, 91, 0.96) 0deg 7deg,
    transparent 7deg 24deg
  );
  filter: drop-shadow(0 0 3px rgba(255, 191, 49, 0.62));
  mask: radial-gradient(circle, transparent 0 58%, #000 61% 100%);
  animation: sun-rays-turn 16s linear infinite;
  -webkit-mask: radial-gradient(circle, transparent 0 58%, #000 61% 100%);
}

.sunwater-smiley::before {
  position: absolute;
  top: 9px;
  left: 9px;
  z-index: 2;
  width: 3px;
  height: 4px;
  border-radius: 50%;
  background: #713712;
  box-shadow: 12px 0 #713712;
  content: "";
}

.sunwater-smiley::after {
  position: absolute;
  bottom: 7px;
  left: 50%;
  z-index: 2;
  width: 13px;
  height: 7px;
  border: 2px solid #713712;
  border-top: 0;
  border-radius: 0 0 12px 12px;
  content: "";
  transform: translateX(-50%);
}

.page {
  width: min(1180px, calc(100% - 40px));
  margin: 0 auto;
}

.eyebrow {
  margin: 0 0 11px;
  color: var(--cyan);
  font-size: 10px;
  font-weight: 760;
  letter-spacing: 0.2em;
  text-transform: uppercase;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

.links-section,
.widgets {
  padding: 54px 0 76px;
  border-top: 1px solid var(--line);
}

.section-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 32px;
  margin-bottom: 30px;
}

.links-section .section-heading {
  align-items: center;
  margin-bottom: 12px;
}

.links-section {
  padding-top: 17px;
}

.section-heading h2 {
  margin: 0;
  font-size: clamp(30px, 4vw, 48px);
  line-height: 1;
  letter-spacing: -0.05em;
}

.section-heading h2.links-heading__title {
  margin: 0;
  font-size: 12px;
  line-height: 1;
  letter-spacing: 0.2em;
}

.section-note {
  margin: 0 0 5px;
  color: var(--faint);
  font-size: 12px;
}

.link-search {
  display: flex;
  align-items: center;
  gap: 9px;
  width: min(280px, 100%);
  height: 39px;
  padding: 0 13px;
  border: 1px solid var(--line);
  border-radius: 11px;
  background: rgba(4, 12, 21, 0.8);
  transition: border-color 160ms ease, box-shadow 160ms ease;
}

.link-search:focus-within {
  border-color: var(--line-strong);
  box-shadow: 0 0 0 3px rgba(65, 190, 225, 0.07);
}

.link-search svg {
  width: 15px;
  fill: none;
  stroke: var(--faint);
  stroke-linecap: round;
  stroke-width: 1.7;
}

.link-search input {
  min-width: 0;
  flex: 1;
  border: 0;
  outline: 0;
  color: var(--text);
  background: transparent;
  font-size: 12px;
}

.link-search input::placeholder {
  color: #596d80;
}

/* 3D LINK TREE */

.tree-shell {
  position: relative;
}

.tree-category-nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 6px;
  max-width: 980px;
  margin: 0 auto 16px;
}

.tree-category-nav button {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 34px;
  padding: 0 11px;
  border: 1px solid rgba(126, 183, 202, 0.12);
  border-radius: 999px;
  color: #8298a8;
  background: rgba(4, 13, 22, 0.72);
  cursor: pointer;
  transition:
    color 180ms ease,
    border-color 180ms ease,
    background 180ms ease,
    transform 180ms ease;
}

.tree-category-nav button:hover,
.tree-category-nav button:focus-visible {
  border-color: rgba(107, 212, 217, 0.32);
  color: #dff8f5;
  outline: 0;
  transform: translateY(-1px);
}

.tree-category-nav button.is-active {
  border-color: rgba(105, 213, 207, 0.42);
  color: #f1fffc;
  background:
    linear-gradient(180deg, rgba(42, 99, 98, 0.44), rgba(5, 25, 31, 0.82)),
    #06151c;
  box-shadow: 0 0 20px rgba(75, 174, 166, 0.1);
}

.tree-category-nav span {
  color: #4f7780;
  font-size: 8px;
  font-weight: 800;
}

.tree-category-nav strong {
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.025em;
}

.tree-viewport {
  position: relative;
  height: min(752px, 65.6vw);
  min-height: 648px;
  overflow: hidden;
  border: 1px solid rgba(131, 194, 209, 0.14);
  border-radius: 28px;
  outline: none;
  background:
    radial-gradient(ellipse at 50% 46%, rgba(34, 92, 95, 0.14), transparent 33%),
    radial-gradient(ellipse at 50% 100%, rgba(40, 108, 95, 0.13), transparent 28%),
    linear-gradient(180deg, rgba(4, 12, 21, 0.86), rgba(2, 9, 15, 0.97));
  box-shadow:
    inset 0 1px rgba(255, 255, 255, 0.025),
    0 36px 100px rgba(0, 0, 0, 0.24);
  perspective: 1360px;
  perspective-origin: 50% 46%;
  cursor: grab;
  touch-action: none;
  user-select: none;
}

.tree-viewport:focus-visible {
  border-color: rgba(112, 218, 221, 0.38);
  box-shadow:
    0 0 0 3px rgba(86, 185, 190, 0.09),
    0 36px 100px rgba(0, 0, 0, 0.24);
}

.tree-viewport.is-dragging {
  cursor: grabbing;
}

.tree-viewport::before,
.tree-viewport::after {
  position: absolute;
  inset: 0;
  z-index: 8;
  pointer-events: none;
  content: "";
}

.tree-viewport::before {
  background:
    linear-gradient(90deg, rgba(2, 7, 12, 0.58), transparent 15% 85%, rgba(2, 7, 12, 0.58)),
    linear-gradient(180deg, rgba(2, 7, 12, 0.32), transparent 15% 84%, rgba(2, 7, 12, 0.56));
}

.tree-viewport::after {
  opacity: 0.15;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 180 180' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.76' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='.42'/%3E%3C/svg%3E");
  mix-blend-mode: soft-light;
}

.tree-stars {
  position: absolute;
  inset: 0;
  opacity: 0.3;
  background-image:
    radial-gradient(circle at 12% 14%, rgba(137, 222, 218, 0.75) 0 1px, transparent 1.6px),
    radial-gradient(circle at 84% 25%, rgba(109, 186, 203, 0.6) 0 1px, transparent 1.5px),
    radial-gradient(circle at 67% 9%, rgba(185, 233, 230, 0.55) 0 1px, transparent 1.5px),
    radial-gradient(circle at 28% 39%, rgba(95, 175, 177, 0.45) 0 1px, transparent 1.4px);
  background-size: 230px 240px, 310px 270px, 370px 330px, 290px 360px;
}

.tree-scene {
  --tree-rotation: 0deg;
  --tree-tilt: -4deg;
  position: absolute;
  inset: 0;
  z-index: 3;
  transform:
    translateZ(-75px)
    rotateX(var(--tree-tilt))
    rotateY(var(--tree-rotation));
  transform-origin: 50% 52%;
  transform-style: preserve-3d;
  will-change: transform;
}

.tree-aura {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 760px;
  height: 610px;
  border-radius: 50%;
  opacity: 0.34;
  background:
    radial-gradient(ellipse, rgba(64, 154, 142, 0.16), transparent 64%),
    repeating-radial-gradient(ellipse, transparent 0 58px, rgba(92, 170, 162, 0.035) 61px 62px);
  filter: blur(5px);
  transform: translate(-50%, -50%) translateZ(-120px);
}

.tree-trunk {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 86px;
  height: 612px;
  transform: translate(-50%, -50%);
  transform-style: preserve-3d;
}

.trunk-face {
  position: absolute;
  top: 0;
  left: 50%;
  width: 21px;
  height: 100%;
  margin-left: -10.5px;
  clip-path: polygon(30% 0, 70% 0, 100% 100%, 0 100%);
  opacity: calc(0.55 + var(--face-light));
  background:
    linear-gradient(90deg, rgba(121, 181, 168, 0.04), transparent 33%),
    repeating-linear-gradient(87deg, #102931 0 7px, #17363b 8px 12px, #0b222b 13px 18px);
  box-shadow: inset 0 0 8px rgba(0, 0, 0, 0.24);
  transform: rotateY(var(--face-angle)) translateZ(39px);
  backface-visibility: hidden;
}

.trunk-knot {
  position: absolute;
  top: var(--knot-y);
  left: 50%;
  width: 14px;
  height: 8px;
  border: 1px solid rgba(116, 179, 164, 0.18);
  border-radius: 50%;
  background: #081c24;
  box-shadow: 0 0 10px rgba(71, 151, 142, 0.08);
  transform: rotateY(var(--knot-angle)) translateZ(42px);
}

.tree-roots {
  position: absolute;
  top: calc(50% + 286px);
  left: 50%;
  width: 420px;
  height: 86px;
  transform: translateX(-50%);
  transform-style: preserve-3d;
}

.tree-roots span {
  position: absolute;
  top: 0;
  left: 50%;
  width: 250px;
  height: 18px;
  border-radius: 50%;
  background: linear-gradient(180deg, #17353a, #091d25);
  clip-path: polygon(0 38%, 100% 0, 88% 100%, 0 72%);
  transform-origin: left center;
  opacity: 0.72;
}

.tree-roots span:nth-child(1) { transform: rotateY(0deg) rotateZ(10deg); }
.tree-roots span:nth-child(2) { transform: rotateY(72deg) rotateZ(8deg); }
.tree-roots span:nth-child(3) { transform: rotateY(144deg) rotateZ(12deg); }
.tree-roots span:nth-child(4) { transform: rotateY(216deg) rotateZ(7deg); }
.tree-roots span:nth-child(5) { transform: rotateY(288deg) rotateZ(11deg); }

.tree-branches {
  position: absolute;
  inset: 0;
  transform-style: preserve-3d;
}

.tree-branch {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 344px;
  min-height: 142px;
  padding: 12px;
  border: 1px solid rgba(113, 188, 182, 0.2);
  border-radius: 22px 10px 22px 10px;
  color: #deefec;
  background:
    linear-gradient(145deg, rgba(32, 71, 72, 0.58), transparent 42%),
    linear-gradient(180deg, rgba(7, 27, 34, 0.97), rgba(3, 15, 23, 0.98));
  box-shadow:
    inset 0 1px rgba(225, 255, 249, 0.035),
    0 26px 72px rgba(0, 0, 0, 0.32);
  opacity: 0.08;
  pointer-events: none;
  transform:
    translate(-50%, -50%)
    translate3d(var(--branch-x), var(--branch-y), var(--branch-z))
    rotateY(calc(var(--branch-angle) + var(--card-flip, 0deg)));
  transform-style: preserve-3d;
  backface-visibility: hidden;
  transition:
    opacity 280ms ease,
    filter 280ms ease,
    border-color 280ms ease,
    box-shadow 280ms ease;
}

.tree-branch.is-near {
  opacity: 0.46;
  filter: saturate(0.7) brightness(0.7);
}

.tree-branch.is-readable {
  z-index: 4;
  opacity: 1;
  pointer-events: auto;
  filter: none;
  border-color: rgba(114, 215, 202, 0.38);
  box-shadow:
    inset 0 1px rgba(225, 255, 249, 0.055),
    0 0 44px rgba(49, 137, 127, 0.11),
    0 30px 76px rgba(0, 0, 0, 0.38);
}

.tree-branch.is-reverse {
  border-color: rgba(104, 192, 190, 0.3);
  background:
    linear-gradient(215deg, rgba(31, 68, 72, 0.56), transparent 44%),
    linear-gradient(180deg, rgba(6, 25, 32, 0.96), rgba(3, 14, 22, 0.98));
}

.tree-branch.has-no-matches,
.mobile-link-group.has-no-matches {
  visibility: hidden;
  pointer-events: none;
}

.branch-limb {
  position: absolute;
  top: 50%;
  left: 50%;
  z-index: -2;
  width: 210px;
  height: 19px;
  border-radius: 50% 12% 12% 50%;
  background:
    linear-gradient(180deg, rgba(53, 94, 91, 0.84), rgba(9, 35, 39, 0.96)),
    #102d33;
  clip-path: polygon(0 38%, 100% 0, 100% 100%, 0 66%);
  box-shadow: 0 8px 13px rgba(0, 0, 0, 0.18);
  transform: translate(-50%, -50%) translateZ(-112px) rotateY(90deg);
  transform-origin: center;
}

.branch-forks {
  position: absolute;
  inset: 58px 3px 10px;
  z-index: 0;
  overflow: hidden;
  pointer-events: none;
  opacity: 0.42;
}

.branch-forks::before {
  position: absolute;
  top: 0;
  bottom: 0;
  left: 50%;
  width: 4px;
  border-radius: 999px;
  content: "";
  background: linear-gradient(180deg, rgba(67, 112, 105, 0.68), rgba(20, 54, 55, 0.72));
  box-shadow: 0 0 9px rgba(49, 113, 104, 0.12);
  transform: translateX(-50%);
}

.branch-forks i {
  position: absolute;
  top: var(--fork-y);
  left: 50%;
  width: 46%;
  height: 8px;
  border-radius: 999px;
  background: linear-gradient(180deg, rgba(72, 119, 108, 0.64), rgba(15, 49, 51, 0.74));
  transform-origin: left center;
}

.branch-forks i:nth-child(odd) {
  transform: rotate(7deg);
}

.branch-forks i:nth-child(even) {
  transform: rotate(173deg);
}

.branch-foliage {
  position: absolute;
  inset: -28px -34px;
  z-index: -1;
  border-radius: 45% 55% 42% 58%;
  opacity: 0.32;
  background:
    radial-gradient(circle at 18% 38%, rgba(88, 160, 139, 0.42) 0 16%, transparent 17%),
    radial-gradient(circle at 78% 26%, rgba(65, 141, 128, 0.38) 0 19%, transparent 20%),
    radial-gradient(circle at 87% 75%, rgba(43, 114, 112, 0.34) 0 18%, transparent 19%),
    radial-gradient(circle at 30% 80%, rgba(66, 140, 124, 0.36) 0 20%, transparent 21%);
  filter: blur(1px);
  transform: translateZ(-26px);
}

.tree-branch__focus {
  position: relative;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 10px;
  width: 100%;
  min-height: 43px;
  padding: 0 3px 9px;
  border: 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.075);
  color: inherit;
  background: transparent;
  text-align: left;
  cursor: pointer;
}

.tree-branch__focus:focus-visible {
  outline: 1px solid rgba(111, 218, 210, 0.44);
  outline-offset: 4px;
}

.category-number {
  color: rgba(115, 218, 205, 0.46);
  font-size: 10px;
  font-weight: 850;
}

.category-copy {
  display: grid;
  min-width: 0;
}

.category-copy small {
  overflow: hidden;
  color: #6e8e92;
  font-size: 8px;
  letter-spacing: 0.045em;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.category-copy strong {
  overflow: hidden;
  color: #eefaf7;
  font-size: 15px;
  line-height: 1.25;
  letter-spacing: -0.025em;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.category-count {
  color: #5d7e81;
  font-size: 8px;
  white-space: nowrap;
}

.tree-branch .link-grid {
  position: relative;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 5px 17px;
  padding-top: 9px;
  isolation: isolate;
}

.tree-branch .link-grid::before {
  position: absolute;
  top: 4px;
  bottom: 3px;
  left: 50%;
  z-index: -1;
  width: 3px;
  border-radius: 999px;
  content: "";
  background: linear-gradient(180deg, rgba(75, 124, 113, 0.68), rgba(21, 60, 60, 0.8));
  transform: translateX(-50%);
}

.link-box {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  gap: 7px;
  min-width: 0;
  height: 27px;
  padding: 0 8px;
  overflow: visible;
  border: 1px solid rgba(124, 190, 188, 0.12);
  border-radius: 8px 4px 8px 4px;
  color: #d6e9e6;
  background:
    linear-gradient(180deg, rgba(19, 50, 55, 0.48), rgba(3, 16, 23, 0.92)),
    #06141b;
  text-decoration: none;
  box-shadow: inset 0 1px rgba(255, 255, 255, 0.02);
  transition:
    color 160ms ease,
    border-color 160ms ease,
    background 160ms ease,
    transform 160ms ease;
}

.link-box::before {
  position: absolute;
  inset: 0;
  pointer-events: none;
  content: "";
  opacity: 0;
  background: linear-gradient(105deg, transparent 22%, rgba(149, 231, 216, 0.1) 48%, transparent 72%);
  transform: translateX(-65%);
  transition: opacity 160ms ease, transform 350ms ease;
  clip-path: inset(0 round 8px 4px 8px 4px);
}

.tree-branch .link-box::after {
  position: absolute;
  top: 50%;
  z-index: -1;
  width: 11px;
  height: 4px;
  border-radius: 999px;
  content: "";
  background: linear-gradient(180deg, rgba(75, 126, 114, 0.72), rgba(18, 56, 57, 0.82));
  transform: translateY(-50%);
}

.tree-branch .link-box:nth-child(odd)::after {
  right: -11px;
}

.tree-branch .link-box:nth-child(even)::after {
  left: -11px;
}

.link-box:hover,
.link-box:focus-visible {
  border-color: rgba(118, 221, 209, 0.37);
  color: #fff;
  background:
    linear-gradient(180deg, rgba(30, 77, 76, 0.66), rgba(3, 23, 29, 0.96)),
    #07171d;
  outline: 0;
  transform: translateY(-1px);
}

.link-box:hover::before,
.link-box:focus-visible::before {
  opacity: 1;
  transform: translateX(65%);
}

.link-box[hidden] {
  display: none;
}

.link-box__leaf {
  position: relative;
  z-index: 1;
  width: 7px;
  height: 5px;
  flex: 0 0 auto;
  border-radius: 80% 20% 80% 20%;
  background: #3c7d75;
  box-shadow: 0 0 7px rgba(76, 176, 159, 0.16);
  transform: rotate(-24deg);
  transition: background 160ms ease, box-shadow 160ms ease;
}

.link-box:hover .link-box__leaf,
.link-box:focus-visible .link-box__leaf {
  background: var(--leaf-bright);
  box-shadow: 0 0 9px rgba(111, 212, 192, 0.5);
}

.link-box__label {
  position: relative;
  z-index: 1;
  min-width: 0;
  overflow: hidden;
  flex: 1;
  font-size: 9.5px;
  font-weight: 650;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.link-box__arrow {
  position: relative;
  z-index: 1;
  color: #56777b;
  font-size: 8px;
}

.tree-ground {
  position: absolute;
  bottom: 4px;
  left: 50%;
  z-index: 1;
  width: 700px;
  height: 125px;
  border-radius: 50%;
  opacity: 0.7;
  background:
    radial-gradient(ellipse, rgba(39, 99, 86, 0.2), transparent 64%),
    repeating-radial-gradient(ellipse, transparent 0 30px, rgba(92, 158, 144, 0.025) 31px 32px);
  filter: blur(2px);
  transform: translateX(-50%) rotateX(71deg);
}

.tree-help {
  position: absolute;
  bottom: 16px;
  left: 50%;
  z-index: 12;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 12px;
  border: 1px solid rgba(121, 183, 191, 0.11);
  border-radius: 999px;
  color: #617c86;
  background: rgba(3, 12, 19, 0.72);
  font-size: 8px;
  letter-spacing: 0.04em;
  white-space: nowrap;
  transform: translateX(-50%);
  backdrop-filter: blur(10px);
}

.tree-help i {
  width: 1px;
  height: 12px;
  background: rgba(255, 255, 255, 0.1);
}

.drag-symbol {
  color: #77bdb7;
  font-size: 13px;
}

/* 3D FORCE-DIRECTED LINK NETWORK */

.graph-shell {
  position: relative;
}

.graph-category-nav {
  display: none;
  flex-wrap: wrap;
  justify-content: center;
  gap: 6px;
  max-width: 980px;
  margin: 0 auto 16px;
}

.graph-menu-rail {
  position: absolute;
  inset: 0 auto 0 0;
  z-index: 1;
  width: 244px;
  pointer-events: none;
  background:
    linear-gradient(90deg, rgba(5, 18, 28, 0.98), rgba(5, 18, 28, 0.76) 72%, transparent),
    radial-gradient(ellipse at 18% 50%, rgba(71, 145, 157, 0.1), transparent 68%);
  border-right: 1px solid rgba(120, 190, 203, 0.08);
}

.graph-menu-rail::after {
  position: absolute;
  top: 63px;
  right: 27px;
  bottom: 62px;
  width: 1px;
  content: "";
  background: linear-gradient(
    transparent,
    rgba(116, 191, 204, 0.2) 10% 90%,
    transparent
  );
}

.graph-menu-rail span {
  position: absolute;
  top: 17px;
  left: 18px;
  color: #52717c;
  font-size: 7px;
  font-weight: 800;
  letter-spacing: 0.17em;
  text-transform: uppercase;
}

.graph-category-nav button {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 34px;
  padding: 0 12px;
  border: 1px solid rgba(126, 183, 202, 0.12);
  border-radius: 999px;
  color: #8298a8;
  background: rgba(4, 13, 22, 0.72);
  cursor: pointer;
  transition:
    color 180ms ease,
    border-color 180ms ease,
    background 180ms ease,
    transform 180ms ease;
}

.graph-category-nav button:hover,
.graph-category-nav button:focus-visible {
  border-color: rgba(107, 202, 217, 0.34);
  color: #e6f7fa;
  outline: 0;
  transform: translateY(-1px);
}

.graph-category-nav button.is-active {
  border-color: color-mix(in srgb, var(--node-color, #72c9cf) 48%, transparent);
  color: #f5fdff;
  background:
    linear-gradient(180deg, rgba(34, 68, 79, 0.72), rgba(4, 17, 27, 0.9)),
    #06131d;
  box-shadow: 0 0 22px rgba(91, 174, 196, 0.1);
}

.graph-category-nav span {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--node-color);
  box-shadow: 0 0 8px color-mix(in srgb, var(--node-color) 48%, transparent);
}

.graph-category-nav strong {
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.025em;
}

.graph-viewport {
  position: relative;
  height: min(650px, 58vw);
  min-height: 570px;
  overflow: hidden;
  border: 1px solid rgba(131, 194, 209, 0.14);
  border-radius: 28px;
  outline: none;
  background:
    radial-gradient(ellipse at 50% 45%, rgba(33, 93, 112, 0.17), transparent 35%),
    radial-gradient(ellipse at 52% 78%, rgba(38, 94, 98, 0.11), transparent 34%),
    linear-gradient(180deg, rgba(4, 12, 21, 0.89), rgba(2, 8, 15, 0.98));
  box-shadow:
    inset 0 1px rgba(255, 255, 255, 0.026),
    0 36px 100px rgba(0, 0, 0, 0.24);
  cursor: grab;
  touch-action: none;
  user-select: none;
}

.graph-viewport:focus-visible {
  border-color: rgba(112, 203, 221, 0.4);
  box-shadow:
    0 0 0 3px rgba(86, 174, 190, 0.09),
    0 36px 100px rgba(0, 0, 0, 0.24);
}

.graph-viewport.is-dragging {
  cursor: grabbing;
}

.graph-viewport::before,
.graph-viewport::after {
  position: absolute;
  inset: 0;
  z-index: 900;
  pointer-events: none;
  content: "";
}

.graph-viewport::before {
  background:
    linear-gradient(90deg, rgba(2, 7, 12, 0.68), transparent 13% 87%, rgba(2, 7, 12, 0.68)),
    linear-gradient(180deg, rgba(2, 7, 12, 0.34), transparent 14% 86%, rgba(2, 7, 12, 0.62));
}

.graph-viewport::after {
  opacity: 0.11;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 180 180' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.76' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='.42'/%3E%3C/svg%3E");
  mix-blend-mode: soft-light;
}

.graph-stars {
  position: absolute;
  inset: 0;
  z-index: 0;
  opacity: 0.34;
  background-image:
    radial-gradient(circle at 12% 14%, rgba(137, 222, 218, 0.72) 0 1px, transparent 1.6px),
    radial-gradient(circle at 84% 25%, rgba(109, 186, 203, 0.56) 0 1px, transparent 1.5px),
    radial-gradient(circle at 67% 9%, rgba(185, 233, 230, 0.5) 0 1px, transparent 1.5px),
    radial-gradient(circle at 28% 39%, rgba(95, 175, 177, 0.42) 0 1px, transparent 1.4px);
  background-size: 230px 240px, 310px 270px, 370px 330px, 290px 360px;
}

.graph-edges,
.graph-nodes {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.graph-edges {
  z-index: 2;
  overflow: visible;
  pointer-events: none;
}

.graph-nodes {
  z-index: 3;
  pointer-events: none;
}

.graph-edge {
  vector-effect: non-scaling-stroke;
  transition: opacity 240ms ease;
}

.graph-edge--trunk {
  stroke: rgba(121, 196, 214, 0.42);
  stroke-width: 1.25;
  filter: drop-shadow(0 0 4px rgba(86, 175, 198, 0.34));
}

.graph-edge--link {
  stroke: rgba(117, 169, 184, 0.34);
  stroke-width: 0.7;
}

.graph-edge.is-filtered {
  opacity: 0 !important;
}

.graph-node {
  position: absolute;
  top: 0;
  left: 0;
  margin: 0;
  padding: 0;
  border: 0;
  color: inherit;
  background: transparent;
  opacity: var(--depth-opacity, 1);
  transform-origin: center;
  transition:
    opacity 220ms ease,
    filter 220ms ease;
  will-change: transform;
}

.graph-viewport.is-render-paused .graph-node {
  will-change: auto;
}

.graph-viewport.is-render-paused
  .graph-node--category.is-focus-primary
  .graph-node__sphere::before,
.graph-viewport.is-render-paused
  .graph-node--category.is-focus-primary
  .graph-node__label::before {
  animation-play-state: paused;
}

a.graph-node,
button.graph-node {
  pointer-events: auto;
}

.graph-node.is-muted {
  filter: saturate(0.45) brightness(0.62);
}

.graph-node.is-category-revealed {
  opacity: 1 !important;
  filter: none;
}

.graph-node.is-node-hovered {
  opacity: 1 !important;
  filter: none;
}

.graph-node.is-filtered {
  visibility: hidden;
  pointer-events: none;
  opacity: 0 !important;
}

.graph-node__sphere {
  position: absolute;
  top: 50%;
  left: 50%;
  display: block;
  border-radius: 50%;
  background:
    radial-gradient(circle at 34% 27%, rgba(255, 255, 255, 0.86) 0 4%, transparent 15%),
    radial-gradient(circle at 36% 32%, color-mix(in srgb, var(--node-color, #84d3d7) 90%, white), var(--node-color, #84d3d7) 44%, #10232f 100%);
  box-shadow:
    inset -5px -7px 10px rgba(1, 8, 14, 0.56),
    0 0 14px color-mix(in srgb, var(--node-color, #84d3d7) 32%, transparent);
  transform: translate(-50%, -50%);
}

.graph-node__sphere i {
  position: absolute;
  inset: 18%;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.graph-node__label {
  position: absolute;
  top: 50%;
  left: 50%;
  display: flex;
  align-items: center;
  gap: 6px;
  white-space: nowrap;
  pointer-events: none;
}

.graph-node--hub .graph-node__sphere {
  width: 46px;
  height: 46px;
  --node-color: #8ed6df;
  box-shadow:
    inset -8px -9px 14px rgba(1, 8, 14, 0.58),
    0 0 20px rgba(110, 210, 224, 0.34),
    0 0 52px rgba(83, 173, 194, 0.15);
}

.graph-node--hub .graph-node__label {
  display: grid;
  gap: 0;
  padding: 5px 8px 5px 9px;
  border: 1px solid rgba(130, 211, 224, 0.18);
  border-radius: 4px 9px 9px 4px;
  background: rgba(4, 17, 27, 0.88);
  transform: translate(29px, -50%);
}

.graph-node--hub strong {
  color: #f1fdff;
  font-size: 12px;
  letter-spacing: -0.02em;
}

.graph-node--hub small {
  color: #6c929d;
  font-size: 7px;
}

.graph-node--category {
  cursor: pointer;
}

.graph-node--category .graph-node__sphere {
  width: 40px;
  height: 40px;
  overflow: hidden;
  isolation: isolate;
  box-shadow:
    inset -7px -8px 12px rgba(1, 8, 14, 0.58),
    0 0 18px color-mix(in srgb, var(--node-color) 42%, transparent),
    0 0 34px color-mix(in srgb, var(--node-color) 12%, transparent);
}

.graph-node--category .graph-node__label {
  display: grid;
  gap: 0;
  min-width: 168px;
  padding: 7px 11px 7px 13px;
  border: 1px solid color-mix(in srgb, var(--node-color) 42%, transparent);
  border-radius: 3px 10px 10px 3px;
  background:
    linear-gradient(100deg, color-mix(in srgb, var(--node-color) 10%, transparent), transparent 62%),
    rgba(3, 14, 23, 0.96);
  overflow: hidden;
  isolation: isolate;
  box-shadow:
    0 8px 24px rgba(0, 0, 0, 0.32),
    0 0 13px color-mix(in srgb, var(--node-color) 9%, transparent);
  cursor: pointer;
  pointer-events: auto;
  text-align: left;
  transform: translate(25px, -50%);
}

.graph-node--category small {
  color: color-mix(in srgb, var(--node-color) 65%, #617a87);
  font-size: 7.5px;
  font-weight: 750;
  letter-spacing: 0.075em;
  text-transform: uppercase;
}

.graph-node--category strong {
  color: #f3fbfc;
  font-size: 13.5px;
  font-weight: 760;
  line-height: 1.3;
}

.graph-node--category .graph-node__label > * {
  position: relative;
  z-index: 2;
}

.graph-node--category:hover .graph-node__label,
.graph-node--category:focus-visible .graph-node__label,
.graph-node--category.is-selected .graph-node__label {
  border-color: color-mix(in srgb, var(--node-color) 55%, transparent);
  background:
    linear-gradient(100deg, color-mix(in srgb, var(--node-color) 18%, transparent), transparent 65%),
    rgba(4, 20, 30, 0.96);
}

.graph-node--category:hover .graph-node__sphere,
.graph-node--category.is-node-hovered .graph-node__sphere {
  box-shadow:
    inset -7px -8px 12px rgba(1, 8, 14, 0.54),
    0 0 0 2px color-mix(in srgb, var(--node-color) 17%, transparent),
    0 0 25px color-mix(in srgb, var(--node-color) 68%, transparent),
    0 0 48px color-mix(in srgb, var(--node-color) 20%, transparent);
}

.graph-node--category:focus-visible,
.graph-node--link:focus-visible {
  outline: 0;
}

.graph-node--category:focus-visible .graph-node__sphere,
.graph-node--link:focus-visible .graph-node__sphere {
  box-shadow:
    inset -5px -7px 10px rgba(1, 8, 14, 0.56),
    0 0 0 3px rgba(233, 253, 255, 0.22),
    0 0 18px var(--node-color);
}

.graph-node--link {
  color: #c4d6da;
  cursor: pointer;
  text-decoration: none;
}

.graph-node--link .graph-node__sphere {
  width: 9px;
  height: 9px;
  box-shadow:
    inset -2px -2px 3px rgba(1, 8, 14, 0.48),
    0 0 8px color-mix(in srgb, var(--node-color) 36%, transparent);
}

.graph-node--link .graph-node__label {
  min-width: 72px;
  min-height: 22px;
  padding: 3px 7px 3px 9px;
  border: 1px solid rgba(123, 174, 186, 0.17);
  border-radius: 3px 7px 7px 3px;
  background:
    linear-gradient(100deg, color-mix(in srgb, var(--node-color) 7%, transparent), transparent 62%),
    rgba(3, 13, 21, 0.91);
  box-shadow: 0 5px 14px rgba(0, 0, 0, 0.18);
  color: #dbe9eb;
  cursor: pointer;
  font-size: 9.2px;
  font-weight: 660;
  pointer-events: auto;
  transform: translate(8px, -50%);
  transition:
    color 150ms ease,
    border-color 150ms ease,
    background 150ms ease,
    box-shadow 150ms ease,
    transform 150ms ease;
}

.graph-node--link .graph-node__label i {
  color: #52727d;
  font-size: 6px;
  font-style: normal;
}

.graph-node--link:hover,
.graph-node--link:focus-visible {
  z-index: 800 !important;
  color: #fff;
  opacity: 1 !important;
  filter: none;
}

.graph-node--link:hover .graph-node__label,
.graph-node--link:focus-visible .graph-node__label {
  border-color: color-mix(in srgb, var(--node-color) 48%, transparent);
  background: rgba(5, 25, 36, 0.98);
  transform: translate(8px, -50%) scale(1.1);
}

.graph-viewport.has-node-hover .graph-node.is-category-revealed .graph-node__label {
  border-color: color-mix(in srgb, var(--node-color, #84d3d7) 32%, transparent);
  color: #effbfc;
  background:
    linear-gradient(100deg, color-mix(in srgb, var(--node-color, #84d3d7) 11%, transparent), transparent 66%),
    rgba(3, 15, 24, 0.97);
  box-shadow:
    0 7px 20px rgba(0, 0, 0, 0.34),
    0 0 10px color-mix(in srgb, var(--node-color, #84d3d7) 8%, transparent);
}

.graph-viewport.has-node-hover .graph-node--link.is-node-hovered .graph-node__label {
  border-color: color-mix(in srgb, var(--node-color, #84d3d7) 66%, transparent);
  color: #fff;
  background:
    linear-gradient(100deg, color-mix(in srgb, var(--node-color, #84d3d7) 20%, transparent), transparent 70%),
    rgba(5, 25, 36, 1);
  transform: translate(8px, -50%) scale(1.12);
}

.graph-viewport.has-node-hover .graph-node--category.is-node-hovered .graph-node__label {
  border-color: color-mix(in srgb, var(--node-color) 66%, transparent);
  color: #fff;
  transform: translate(25px, -50%) scale(1.06);
}

.graph-edge.is-category-revealed {
  filter: drop-shadow(0 0 4px rgba(102, 192, 210, 0.36));
}

.graph-node--category.is-focus-primary .graph-node__sphere {
  width: 40px;
  height: 40px;
  background:
    radial-gradient(circle at 30% 22%, rgba(235, 255, 255, 0.96) 0 3%, rgba(183, 244, 247, 0.52) 4% 9%, transparent 16%),
    radial-gradient(ellipse at 68% 66%, rgba(36, 151, 171, 0.62) 0 16%, transparent 17%),
    radial-gradient(ellipse at 34% 68%, rgba(29, 118, 145, 0.74) 0 21%, transparent 22%),
    radial-gradient(circle at 44% 42%, #78d5db 0, #2c8eaa 38%, #0b4668 69%, #031a2b 100%);
  box-shadow:
    inset -8px -9px 13px rgba(0, 9, 20, 0.7),
    inset 4px 4px 8px rgba(189, 249, 250, 0.12),
    0 0 0 2px rgba(125, 222, 229, 0.14),
    0 0 22px rgba(75, 191, 209, 0.54),
    0 0 44px rgba(31, 133, 166, 0.19);
}

.graph-node--category.is-focus-primary .graph-node__sphere::before,
.graph-node--category.is-focus-primary .graph-node__sphere::after {
  position: absolute;
  content: "";
  pointer-events: none;
}

.graph-node--category.is-focus-primary .graph-node__sphere::before {
  inset: -30%;
  z-index: -1;
  border-radius: 44%;
  opacity: 0.58;
  background:
    repeating-radial-gradient(
      ellipse at 50% 45%,
      transparent 0 5px,
      rgba(176, 247, 247, 0.25) 6px 7px,
      transparent 8px 11px
    );
  animation: water-planet-flow 7.5s linear infinite;
}

.graph-node--category.is-focus-primary .graph-node__sphere::after {
  inset: 5% 8% 42% 12%;
  border-radius: 50%;
  background: linear-gradient(115deg, rgba(255, 255, 255, 0.4), transparent 62%);
  filter: blur(1px);
  opacity: 0.72;
}

.graph-node--category.is-focus-primary .graph-node__label {
  min-width: 168px;
  padding: 7px 11px 7px 13px;
  border-color: rgba(103, 201, 215, 0.58);
  background:
    radial-gradient(ellipse at 24% 18%, rgba(112, 220, 224, 0.14), transparent 42%),
    linear-gradient(110deg, rgba(25, 105, 127, 0.3), transparent 63%),
    rgba(3, 18, 29, 0.97);
  box-shadow:
    inset 0 0 18px rgba(62, 166, 184, 0.08),
    0 8px 24px rgba(0, 0, 0, 0.35),
    0 0 18px rgba(67, 174, 193, 0.14);
  transform: translate(25px, -50%);
}

.graph-node--category.is-focus-primary .graph-node__label::before {
  position: absolute;
  inset: -35% -8%;
  z-index: 1;
  content: "";
  opacity: 0.28;
  background:
    repeating-radial-gradient(
      ellipse at 20% 120%,
      transparent 0 12px,
      rgba(116, 224, 228, 0.24) 13px 14px,
      transparent 15px 24px
    ),
    linear-gradient(98deg, transparent 12%, rgba(165, 242, 242, 0.12) 42%, transparent 72%);
  background-size: 130% 150%, 180% 100%;
  animation: selected-water-drift 9s ease-in-out infinite alternate;
  pointer-events: none;
}

.graph-node--category.is-focus-primary small {
  color: #75bec9;
  font-size: 7.5px;
}

.graph-node--category.is-focus-primary strong {
  color: #f2fcfd;
  font-size: 13.5px;
  text-shadow: 0 1px 8px rgba(74, 191, 207, 0.18);
}

.graph-viewport.has-node-hover
  .graph-node--category.is-selected.is-node-hovered
  .graph-node__label {
  transform: translate(25px, -50%);
}

.graph-node--link.is-focus-primary .graph-node__sphere {
  width: 13px;
  height: 13px;
  box-shadow:
    inset -2px -3px 4px rgba(1, 8, 14, 0.5),
    0 0 12px color-mix(in srgb, var(--node-color) 62%, transparent);
}

.graph-node--link.is-focus-primary .graph-node__label {
  min-width: 132px;
  min-height: 30px;
  padding: 5px 10px 5px 11px;
  border-color: color-mix(in srgb, var(--node-color) 42%, transparent);
  border-radius: 4px 9px 9px 4px;
  color: #f5fcfd;
  background:
    linear-gradient(100deg, color-mix(in srgb, var(--node-color) 16%, transparent), transparent 68%),
    rgba(3, 17, 27, 0.985);
  box-shadow:
    0 9px 24px rgba(0, 0, 0, 0.4),
    0 0 12px color-mix(in srgb, var(--node-color) 10%, transparent);
  font-size: 10.4px;
  font-weight: 720;
  transform: translate(10px, -50%);
}

.graph-node--link.is-focus-primary:hover .graph-node__label,
.graph-node--link.is-focus-primary:focus-visible .graph-node__label {
  border-color: color-mix(in srgb, var(--node-color) 78%, transparent);
  background:
    linear-gradient(100deg, color-mix(in srgb, var(--node-color) 27%, transparent), transparent 72%),
    rgba(5, 27, 39, 1);
  transform: translate(10px, -50%) scale(1.07);
}

.graph-node--link.is-link-selected {
  z-index: 2100 !important;
  color: #fff;
  opacity: 1 !important;
  filter: none;
}

.graph-node--link.is-link-selected .graph-node__sphere {
  box-shadow:
    inset -2px -3px 4px rgba(0, 8, 16, 0.44),
    0 0 0 3px rgba(153, 242, 242, 0.15),
    0 0 18px color-mix(in srgb, var(--node-color) 82%, #9af4f0),
    0 0 34px rgba(86, 211, 221, 0.22);
}

.graph-node--link.is-link-selected .graph-node__label {
  border-color: rgba(143, 231, 234, 0.88);
  color: #fff;
  background:
    radial-gradient(ellipse at 18% 20%, rgba(135, 233, 232, 0.24), transparent 44%),
    linear-gradient(105deg, rgba(31, 126, 148, 0.42), transparent 72%),
    rgba(5, 28, 40, 0.995);
  box-shadow:
    inset 0 0 16px rgba(120, 228, 231, 0.08),
    0 0 0 1px rgba(141, 231, 234, 0.12),
    0 10px 26px rgba(0, 0, 0, 0.42),
    0 0 24px rgba(76, 191, 207, 0.3);
  text-shadow: 0 0 9px rgba(170, 247, 247, 0.22);
  transform: translate(8px, -50%) scale(1.06);
}

.graph-node--link.is-link-selected .graph-node__label i {
  color: #b8fbfa;
}

.graph-node--link.is-focus-primary.is-link-selected .graph-node__label,
.graph-node--link.is-focus-primary.is-link-selected:hover .graph-node__label,
.graph-node--link.is-focus-primary.is-link-selected:focus-visible .graph-node__label {
  border-color: rgba(154, 240, 241, 0.92);
  background:
    radial-gradient(ellipse at 18% 20%, rgba(135, 233, 232, 0.28), transparent 44%),
    linear-gradient(105deg, rgba(31, 126, 148, 0.5), transparent 72%),
    rgba(5, 28, 40, 1);
  transform: translate(10px, -50%) scale(1.06);
}

.graph-node--link:active .graph-node__label {
  border-color: rgba(184, 251, 250, 0.96);
  box-shadow:
    inset 0 0 22px rgba(130, 238, 239, 0.13),
    0 0 28px rgba(92, 214, 222, 0.38);
}

.graph-node--link.is-focus-primary.is-focus-label-left .graph-node__label {
  right: 50%;
  left: auto;
  border-radius: 9px 4px 4px 9px;
  transform: translate(-10px, -50%);
}

.graph-node--link.is-focus-primary.is-focus-label-left:hover .graph-node__label,
.graph-node--link.is-focus-primary.is-focus-label-left:focus-visible .graph-node__label {
  transform: translate(-10px, -50%) scale(1.07);
}

.graph-node.is-focus-context {
  opacity: 0.68 !important;
  filter: saturate(0.7) brightness(0.8);
}

.graph-node.is-focus-context:hover,
.graph-node.is-focus-context:focus-visible {
  z-index: 1800 !important;
  opacity: 1 !important;
  filter: none;
}

.graph-node.is-focus-context .graph-node__label {
  border-color: color-mix(in srgb, var(--node-color) 28%, transparent);
  background: rgba(3, 13, 21, 0.9);
}

.graph-node.is-focus-background .graph-node__label {
  opacity: 0.12;
}

.graph-node.is-focus-background .graph-node__sphere {
  opacity: 0.34;
}

.graph-edge.is-focus-edge {
  filter: drop-shadow(0 0 5px rgba(102, 192, 210, 0.42));
}

.graph-focus-bar {
  position: absolute;
  top: 14px;
  left: calc(50% + 95px);
  z-index: 940;
  display: flex;
  align-items: center;
  gap: 18px;
  min-width: 330px;
  padding: 8px 9px 8px 13px;
  border: 1px solid rgba(119, 202, 219, 0.22);
  border-radius: 13px;
  background: rgba(3, 14, 23, 0.92);
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.28);
  transform: translateX(-50%);
  backdrop-filter: blur(12px);
}

.graph-focus-bar[hidden] {
  display: none;
}

.graph-focus-bar > div {
  display: grid;
  min-width: 0;
  flex: 1;
}

.graph-focus-bar small {
  color: #5d7c88;
  font-size: 7px;
  font-weight: 750;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.graph-focus-bar strong {
  overflow: hidden;
  color: #edf9fb;
  font-size: 11px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.graph-focus-bar button {
  min-height: 30px;
  padding: 0 9px 0 11px;
  border: 1px solid rgba(132, 190, 202, 0.16);
  border-radius: 8px;
  color: #8fa9b1;
  background: rgba(8, 27, 38, 0.88);
  cursor: pointer;
  font-size: 8px;
}

.graph-focus-bar button:hover,
.graph-focus-bar button:focus-visible {
  border-color: rgba(123, 215, 224, 0.42);
  color: #f0fdff;
  outline: 0;
}

.graph-focus-bar button span {
  margin-left: 5px;
  color: #72c4cc;
  font-size: 13px;
}

.graph-viewport.is-focus-mode .graph-status {
  opacity: 0.35;
}

.graph-viewport .graph-status {
  left: 262px;
}

.graph-viewport .graph-help {
  left: calc(50% + 82px);
}

.graph-viewport.is-focus-mode .graph-help {
  color: #516a73;
  opacity: 0.72;
}

.graph-orbit {
  position: absolute;
  top: 50%;
  left: 60%;
  z-index: 1;
  border: 1px solid rgba(103, 175, 192, 0.06);
  border-radius: 50%;
  pointer-events: none;
  transform: translate(-50%, -50%) rotate(-8deg);
}

.graph-orbit--one {
  width: 68%;
  height: 47%;
}

.graph-orbit--two {
  width: 48%;
  height: 72%;
  transform: translate(-50%, -50%) rotate(67deg);
}

.graph-status {
  position: absolute;
  top: 15px;
  left: 17px;
  z-index: 920;
  display: flex;
  gap: 16px;
  color: #536e78;
  font-size: 7px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.graph-status span {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.graph-status i {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: #6eb6ae;
  box-shadow: 0 0 7px rgba(102, 194, 183, 0.5);
}

.graph-help {
  position: absolute;
  bottom: 14px;
  left: 50%;
  z-index: 920;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 12px;
  border: 1px solid rgba(121, 183, 191, 0.11);
  border-radius: 999px;
  color: #617c86;
  background: rgba(3, 12, 19, 0.76);
  font-size: 8px;
  letter-spacing: 0.04em;
  white-space: nowrap;
  transform: translateX(-50%);
  backdrop-filter: blur(10px);
}

.graph-help i {
  width: 1px;
  height: 12px;
  background: rgba(255, 255, 255, 0.1);
}

.mobile-link-groups {
  display: none;
}

.no-results {
  margin-top: 16px;
  padding: 32px;
  border: 1px dashed var(--line);
  border-radius: var(--radius);
  color: var(--muted);
  text-align: center;
}

/* WIDGETS */

.widgets {
  padding-top: 16px;
  padding-bottom: 110px;
}

.widget-card {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  padding: 0;
  margin-top: 16px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: rgba(5, 14, 24, 0.72);
  box-shadow: 0 22px 60px rgba(0, 0, 0, 0.14);
  overflow: hidden;
}

.widget-frame {
  min-width: 0;
  overflow: hidden;
  border: 0;
  border-radius: 17px;
  background: #07111d;
}

.widget-frame--chart {
  min-height: 800px;
}

.widget-frame--rates {
  min-height: 430px;
}

.widget-frame--windy {
  aspect-ratio: 2 / 1;
}

.widget-frame--windy iframe {
  display: block;
  width: 100%;
  height: 100%;
  min-height: 480px;
  border: 0;
}

.tradingview-widget-container,
.tradingview-widget-container__widget {
  width: 100%;
  height: 100%;
}

.widget-frame--chart .tradingview-widget-container {
  min-height: 800px;
}

.tradingview-widget-copyright {
  min-height: 26px;
  padding: 6px 10px 7px;
  color: #6f858f;
  background: #000;
  font-size: 10px;
  text-align: right;
}

.tradingview-widget-copyright a {
  color: #5ba9e8;
  text-decoration: none;
}

.tradingview-widget-copyright a:hover,
.tradingview-widget-copyright a:focus-visible {
  color: #8ac9f4;
  outline: 0;
  text-decoration: underline;
}

.site-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  width: min(1180px, calc(100% - 40px));
  min-height: 82px;
  margin: 0 auto;
  border-top: 1px solid var(--line);
  color: var(--faint);
  font-size: 10px;
  letter-spacing: 0.08em;
}

.site-footer p {
  margin: 0;
}

.site-footer span {
  color: var(--cyan);
}

.site-footer a {
  text-decoration: none;
}

.site-footer a:hover,
.site-footer a:focus-visible {
  color: var(--cyan);
}

@keyframes water-planet-flow {
  from {
    transform: translate3d(-7%, -2%, 0) rotate(0deg);
  }
  to {
    transform: translate3d(7%, 2%, 0) rotate(360deg);
  }
}

@keyframes selected-water-drift {
  from {
    background-position: 0 46%, 10% 50%;
    transform: translate3d(-2%, 0, 0);
  }
  to {
    background-position: 70% 53%, 82% 50%;
    transform: translate3d(2%, -2%, 0);
  }
}

@keyframes ambient-shift {
  from {
    transform: translate3d(-2%, -1%, 0) rotate(-9deg);
  }
  to {
    transform: translate3d(3%, 3%, 0) rotate(-4deg);
  }
}

@keyframes sun-rays-turn {
  from {
    transform: rotate(0deg);
  }
  to {
    transform: rotate(360deg);
  }
}

@keyframes sun-happy-glow {
  0%,
  100% {
    box-shadow:
      0 0 9px rgba(255, 225, 116, 0.58),
      0 0 18px rgba(255, 169, 48, 0.3),
      inset 0 2px 3px rgba(255, 255, 255, 0.56),
      inset 0 -3px 5px rgba(193, 82, 7, 0.2);
  }
  50% {
    box-shadow:
      0 0 12px rgba(255, 235, 145, 0.78),
      0 0 25px rgba(255, 176, 50, 0.48),
      inset 0 2px 3px rgba(255, 255, 255, 0.66),
      inset 0 -3px 5px rgba(193, 82, 7, 0.16);
  }
}

@media (max-width: 1020px) {
  .tree-viewport {
    min-height: 630px;
  }

  .graph-viewport {
    height: 590px;
    min-height: 590px;
  }

  .graph-menu-rail {
    width: 210px;
  }

  .graph-viewport .graph-status {
    left: 224px;
  }

  .graph-viewport .graph-focus-bar {
    left: calc(50% + 62px);
  }

  .graph-viewport .graph-help {
    left: calc(50% + 58px);
  }

  .tree-branch {
    width: 318px;
  }

  .branch-limb {
    width: 170px;
    transform: translate(-50%, -50%) translateZ(-90px) rotateY(90deg);
  }

  .widget-card {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 720px) {
  .desktop-only,
  .tree-shell,
  .graph-shell {
    display: none !important;
  }

  .mobile-link-groups {
    display: grid;
    gap: 10px;
  }

  .site-header,
  .page,
  .site-footer {
    width: min(100% - 24px, 580px);
  }

  .site-header {
    min-height: 60px;
  }

  .brand span {
    font-size: 24px;
  }

  .site-tagline {
    gap: 9px;
    padding-left: 13px;
  }

  .site-tagline p {
    font-size: 11px;
    letter-spacing: 0.07em;
  }

  .sunwater-smiley {
    flex-basis: 30px;
    width: 30px;
    height: 30px;
  }

  .sunwater-smiley::before {
    top: 8px;
    left: 8px;
    box-shadow: 10px 0 #713712;
  }

  .sunwater-smiley::after {
    bottom: 6px;
    width: 11px;
    height: 6px;
  }

  .links-section {
    padding: 14px 0 48px;
  }

  .section-heading {
    display: grid;
    gap: 21px;
    margin-bottom: 22px;
  }

  .links-section .section-heading {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 9px;
  }

  .section-heading h2.links-heading__title {
    flex: 0 0 auto;
    font-size: 12px;
  }

  .section-heading h2 {
    font-size: 31px;
  }

  .links-section .link-search {
    width: min(280px, 100%);
    margin-left: auto;
  }

  .mobile-link-group {
    padding: 12px;
    border: 1px solid var(--line);
    border-radius: 13px;
    background:
      linear-gradient(145deg, rgba(20, 51, 52, 0.27), transparent 45%),
      rgba(5, 13, 22, 0.78);
  }

  .link-group__heading {
    display: grid;
    grid-template-columns: auto 1fr auto;
    align-items: center;
    gap: 9px;
    min-height: 40px;
    margin-bottom: 9px;
    padding: 0 2px 9px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.065);
  }

  .link-group__heading .category-copy small {
    display: none;
  }

  .link-group__heading .category-copy strong {
    font-size: 14px;
  }

  .mobile-link-group .link-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 5px;
  }

  .link-box {
    height: 30px;
    padding: 0 7px;
  }

  .link-box__label {
    font-size: 10px;
  }

  .site-footer {
    min-height: 66px;
  }
}

@media (max-width: 370px) {
  .mobile-link-group .link-grid {
    grid-template-columns: 1fr;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
  }
}
