:root {
  color-scheme: dark;
  --bg: #02070d;
  --bg-2: #05121d;
  --panel: rgba(4, 19, 30, 0.78);
  --panel-strong: rgba(7, 29, 45, 0.92);
  --text: #eefbff;
  --muted: #9cb9c7;
  --cyan: #2ce8ff;
  --cyan-soft: #8defff;
  --blue: #2a8dff;
  --tile-size: 178px;
  --tile-height: calc(var(--tile-size) * 0.875);
  --tile-gap: 10px;
  --fade-out-duration: 220ms;
  --stage-padding: 24px;
  --page-background-image: linear-gradient(transparent, transparent);
  --hover-scale: 1.055;
  --active-scale: 1.018;
  font-family:
    Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI",
    sans-serif;
}

* {
  box-sizing: border-box;
}

html,
body {
  min-height: 100%;
  margin: 0;
}

body {
  min-width: 320px;
  overflow: hidden;
  background:
    var(--page-background-image),
    radial-gradient(circle at 50% 50%, rgba(44, 232, 255, 0.16), transparent 28rem),
    radial-gradient(circle at 50% 115%, rgba(42, 141, 255, 0.13), transparent 34rem),
    linear-gradient(135deg, var(--bg), var(--bg-2) 46%, #010409);
  background-position: center;
  background-size: cover;
  background-attachment: fixed;
  color: var(--text);
}

body.has-overlay {
  overflow: hidden;
}

button {
  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;
}

.site-shell {
  min-height: 100svh;
}

.map-stage {
  position: relative;
  width: 100vw;
  height: 100svh;
  min-height: 0;
  overflow: hidden;
  isolation: isolate;
  perspective: 1100px;
}

.background-video,
.background-shade,
.tile-light-field {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.background-video {
  z-index: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 1;
  filter: brightness(0.3) contrast(1) saturate(1);
  transform: scale(1.03);
}

.background-shade {
  z-index: 1;
  background:
    radial-gradient(circle at 50% 50%, rgba(44, 232, 255, 0.026), transparent 25rem),
    radial-gradient(ellipse at 50% 50%, transparent 0 38%, rgba(0, 4, 11, 0.54) 72%, rgba(0, 2, 7, 0.88) 100%),
    linear-gradient(180deg, rgba(0, 5, 12, 0.7), rgba(0, 3, 8, 0.8));
}

.tile-light-field {
  z-index: 2;
  opacity: 0.86;
  background: transparent;
  backdrop-filter: brightness(1.78) saturate(1.18);
  -webkit-backdrop-filter: brightness(1.78) saturate(1.18);
  mask-image: linear-gradient(transparent, transparent);
  -webkit-mask-image: linear-gradient(transparent, transparent);
  mix-blend-mode: screen;
}

.hex,
.logo-tile {
  position: absolute;
  left: 50%;
  top: 50%;
  width: var(--tile-size);
  height: var(--tile-height);
  display: grid;
  place-items: center;
  color: var(--text);
  transform: translate(calc(-50% + var(--x, 0px)), calc(-50% + var(--y, 0px))) scale(1);
  opacity: 0;
  z-index: 3;
  transition:
    opacity 180ms ease,
    filter 180ms ease,
    transform 180ms ease;
}

.hex {
  padding: 0;
  background: transparent;
  border: 0;
  cursor: default;
  text-decoration: none;
  clip-path: polygon(25% 0, 75% 0, 100% 50%, 75% 100%, 25% 100%, 0 50%);
  pointer-events: auto;
  transform-style: preserve-3d;
  --tilt-x: 0deg;
  --tilt-y: 0deg;
  --lift-z: 0px;
}

.subhex[data-action="none"] {
  cursor: default;
}

.subhex[data-action="panel"] {
  cursor: help;
}

.subhex[data-action="url"] {
  cursor: pointer;
}

.hex.is-image-tile {
  overflow: hidden;
}

.hex.is-image-tile::before,
.hex.is-image-tile::after {
  z-index: 2;
  pointer-events: none;
}

.hex.is-image-tile::before {
  background:
    linear-gradient(120deg, transparent 0 10%, var(--cyan-soft) 11% 15%, transparent 16% 72%, var(--cyan) 73% 77%, transparent 78%),
    linear-gradient(180deg, rgba(44, 232, 255, 0.96), rgba(42, 141, 255, 0.5));
  box-shadow:
    0 15px 30px rgba(0, 0, 0, 0.42),
    0 0 18px rgba(44, 232, 255, 0.42),
    inset 0 0 16px rgba(44, 232, 255, 0.22);
  opacity: 0.92;
  padding: 2px;
  -webkit-mask:
    linear-gradient(#000 0 0) content-box,
    linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
  mask:
    linear-gradient(#000 0 0) content-box,
    linear-gradient(#000 0 0);
  mask-composite: exclude;
}

.hex.is-image-tile::after {
  inset: 0;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.06), transparent 32%),
    radial-gradient(circle at 50% 42%, rgba(44, 232, 255, 0.1), transparent 64%),
    linear-gradient(135deg, rgba(0, 0, 0, 0.04), rgba(0, 7, 13, 0.18));
  box-shadow:
    inset 0 0 24px rgba(44, 232, 255, 0.1),
    inset 0 -18px 28px rgba(0, 0, 0, 0.26);
}

.hex::before,
.hex::after {
  content: "";
  position: absolute;
  inset: 0;
  clip-path: inherit;
  transition:
    background 180ms ease,
    box-shadow 180ms ease,
    inset 180ms ease,
    opacity 180ms ease,
    transform 180ms ease;
  transform: none;
}

.hex::before {
  background:
    linear-gradient(120deg, transparent 0 10%, var(--cyan-soft) 11% 15%, transparent 16% 72%, var(--cyan) 73% 77%, transparent 78%),
    linear-gradient(180deg, rgba(44, 232, 255, 0.92), rgba(42, 141, 255, 0.46));
  box-shadow:
    0 15px 30px rgba(0, 0, 0, 0.42),
    0 0 18px rgba(44, 232, 255, 0.42),
    inset 0 0 18px rgba(44, 232, 255, 0.25);
}

.hex::after {
  inset: 2px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.08), transparent 30%),
    radial-gradient(circle at 50% 44%, rgba(44, 232, 255, 0.12), transparent 58%),
    linear-gradient(135deg, rgba(3, 19, 30, 0.96), rgba(1, 9, 15, 0.94));
  box-shadow:
    inset 0 18px 22px rgba(141, 239, 255, 0.04),
    inset 0 -22px 28px rgba(0, 0, 0, 0.28);
}

.hex-content {
  position: relative;
  z-index: 1;
  display: grid;
  place-items: center;
  width: 72%;
  gap: 8px;
  text-align: center;
  transition: transform 180ms ease;
  transform: none;
}

.hex-content.has-tile-image {
  width: 78%;
  gap: 5px;
}

.hex-content.is-image-only {
  z-index: 1;
  width: 100%;
  height: 100%;
  gap: 0;
  overflow: hidden;
  clip-path: inherit;
  transform: none;
}

.logo-tile .hex-content {
  width: 100%;
  height: 100%;
  gap: 0;
  opacity: 0;
}

.hex-tile-image {
  width: min(76px, 50%);
  aspect-ratio: 1;
  object-fit: cover;
  object-position: center 22%;
  clip-path: polygon(25% 0, 75% 0, 100% 50%, 75% 100%, 25% 100%, 0 50%);
  border: 1px solid rgba(141, 239, 255, 0.54);
  filter:
    saturate(0.94)
    contrast(1.06)
    drop-shadow(0 0 9px rgba(141, 239, 255, 0.36));
  transition:
    filter 160ms ease,
    transform 160ms ease;
}

.hex-content.is-image-only .hex-tile-image {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  aspect-ratio: auto;
  object-fit: contain;
  object-position: center;
  background: rgba(1, 8, 14, 0.86);
  clip-path: inherit;
  border: 0;
  filter:
    brightness(0.86)
    saturate(0.92)
    contrast(1.08);
}

.hex-icon {
  width: clamp(30px, 6.5vw, 54px);
  height: clamp(30px, 6.5vw, 54px);
  color: #d9fbff;
  filter: drop-shadow(0 0 7px rgba(141, 239, 255, 0.44));
  transition:
    color 160ms ease,
    filter 160ms ease,
    transform 160ms ease;
}

.hex-icon * {
  fill: none;
  stroke: currentColor;
  stroke-width: 3;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.text-icon text {
  fill: currentColor;
  stroke: none;
  font-size: 31px;
  font-weight: 760;
  dominant-baseline: middle;
}

.hex-title {
  max-width: 100%;
  color: var(--text);
  font-size: clamp(0.62rem, 1.08vw, 0.9rem);
  font-weight: 650;
  letter-spacing: 0;
  line-height: 1.28;
  text-transform: uppercase;
  text-wrap: balance;
}

.hex-title::after {
  content: "";
  display: block;
  width: 34px;
  height: 2px;
  margin: 7px auto 0;
  background: var(--cyan);
  box-shadow: 0 0 9px rgba(44, 232, 255, 0.9);
  transform: scaleX(0.72);
  transition: transform 180ms ease, box-shadow 180ms ease;
}

.hex:hover,
.hex:focus-visible,
.hex.is-hovered {
  transform: translate(calc(-50% + var(--x, 0px)), calc(-50% + var(--y, 0px))) scale(var(--hover-scale));
  filter: drop-shadow(0 0 14px rgba(44, 232, 255, 0.38));
}

.hex.is-selected {
  filter: drop-shadow(0 0 14px rgba(44, 232, 255, 0.38));
  transform: translate(calc(-50% + var(--x, 0px)), calc(-50% + var(--y, 0px))) scale(var(--active-scale));
}

.hex.is-selected:hover,
.hex.is-selected:focus-visible,
.hex.is-selected.is-hovered {
  transform: translate(calc(-50% + var(--x, 0px)), calc(-50% + var(--y, 0px))) scale(var(--hover-scale));
}

.map-stage.is-main-hovering .mainhex:not(.is-hovered) {
  opacity: 0.36;
  filter: brightness(0.42) saturate(0.66);
}

.map-stage.is-sub-hovering .subhex:not(.is-hovered),
.map-stage.is-sub-hovering .mainhex:not(.is-sub-parent),
.map-stage.is-sub-hovering .logo-tile {
  opacity: 0.34;
  filter: brightness(0.4) saturate(0.62);
}

.hex:hover::before,
.hex:focus-visible::before,
.hex.is-hovered::before,
.hex.is-selected::before {
  background:
    linear-gradient(120deg, transparent 0 8%, #ffffff 9% 13%, transparent 14% 70%, var(--cyan-soft) 71% 78%, transparent 79%),
    linear-gradient(180deg, rgba(141, 239, 255, 1), rgba(44, 232, 255, 0.75));
  box-shadow:
    0 20px 36px rgba(0, 0, 0, 0.48),
    0 0 24px rgba(44, 232, 255, 0.72),
    inset 0 0 28px rgba(44, 232, 255, 0.42);
  animation: hover-charge 1.35s steps(2, end) infinite;
}

.hex:hover::after,
.hex:focus-visible::after,
.hex.is-hovered::after,
.hex.is-selected::after {
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.13), transparent 30%),
    radial-gradient(circle at 50% 44%, rgba(44, 232, 255, 0.22), transparent 58%),
    linear-gradient(135deg, rgba(5, 31, 48, 0.98), rgba(1, 10, 17, 0.95));
}

.hex.is-image-tile:hover::after,
.hex.is-image-tile:focus-visible::after,
.hex.is-image-tile.is-hovered::after,
.hex.is-image-tile.is-selected::after {
  inset: 0;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.08), transparent 32%),
    radial-gradient(circle at 50% 42%, rgba(44, 232, 255, 0.16), transparent 64%),
    linear-gradient(135deg, rgba(0, 0, 0, 0.02), rgba(0, 7, 13, 0.12));
  box-shadow:
    inset 0 0 28px rgba(44, 232, 255, 0.14),
    inset 0 -18px 28px rgba(0, 0, 0, 0.2);
}

.hex:hover .hex-icon,
.hex:focus-visible .hex-icon,
.hex.is-hovered .hex-icon,
.hex.is-selected .hex-icon {
  color: var(--cyan-soft);
  animation: icon-hover 520ms ease-in-out infinite alternate;
  filter: drop-shadow(0 0 12px rgba(141, 239, 255, 0.78));
}

.hex:hover .hex-tile-image,
.hex:focus-visible .hex-tile-image,
.hex.is-hovered .hex-tile-image,
.hex.is-selected .hex-tile-image {
  filter:
    saturate(1.05)
    contrast(1.12)
    drop-shadow(0 0 14px rgba(141, 239, 255, 0.66));
  transform: scale(1.04);
}

.hex.is-image-tile:hover .hex-tile-image,
.hex.is-image-tile:focus-visible .hex-tile-image,
.hex.is-image-tile.is-hovered .hex-tile-image,
.hex.is-image-tile.is-selected .hex-tile-image {
  filter:
    brightness(0.98)
    saturate(1)
    contrast(1.12);
  transform: scale(1.035);
}

.hex:hover .hex-title::after,
.hex:focus-visible .hex-title::after,
.hex.is-hovered .hex-title::after,
.hex.is-selected .hex-title::after {
  transform: scaleX(1);
  box-shadow: 0 0 14px rgba(141, 239, 255, 0.95);
}

.hex:focus-visible {
  outline: 2px solid var(--cyan-soft);
  outline-offset: 8px;
}

.logo-tile {
  z-index: 7;
  clip-path: none;
  opacity: 1;
  transform: translate(calc(-50% + var(--x, 0px)), calc(-50% + var(--y, 0px))) scale(1);
  filter: drop-shadow(0 0 10px rgba(44, 232, 255, 0.16));
  animation: logo-aura-pulse 7.8s steps(1, end) 900ms infinite;
  transition:
    opacity 180ms ease,
    filter 180ms ease,
    transform 180ms ease;
}

.logo-tile:hover {
  filter:
    drop-shadow(0 0 14px rgba(44, 232, 255, 0.36))
    drop-shadow(0 0 28px rgba(44, 232, 255, 0.16));
  transform: translate(calc(-50% + var(--x, 0px)), calc(-50% + var(--y, 0px))) scale(1.02);
}

.logo-mark {
  width: 100%;
  height: 100%;
  object-fit: contain;
  filter:
    brightness(1)
    drop-shadow(0 0 6px rgba(44, 232, 255, 0.28))
    drop-shadow(0 0 14px rgba(44, 232, 255, 0.14));
  animation: logo-idle-flicker 8.6s steps(1, end) 1.4s infinite;
  transition:
    filter 160ms ease,
    opacity 160ms ease,
    transform 160ms ease;
}

.logo-tile:hover .logo-mark {
  opacity: 1 !important;
  filter:
    brightness(1.1)
    drop-shadow(0 0 10px rgba(141, 239, 255, 0.5))
    drop-shadow(0 0 24px rgba(44, 232, 255, 0.26)) !important;
  transform: scale(1.015);
  animation-play-state: paused;
}

.logo-mark.is-missing {
  display: none;
}

.logo-fallback {
  display: none;
  font-size: clamp(1rem, 2vw, 1.55rem);
  font-weight: 780;
  letter-spacing: 0;
  padding: 0 12px;
  text-align: center;
}

.logo-mark.is-missing + .logo-fallback {
  display: inline-block;
}

.node-layer {
  position: absolute;
  inset: 0;
  z-index: 6;
  pointer-events: none;
}

.subnode-layer {
  position: absolute;
  inset: 0;
  z-index: 5;
  pointer-events: none;
}

.connector-layer {
  position: absolute;
  inset: 0;
  z-index: 4;
  width: 100%;
  height: 100%;
  overflow: visible;
  pointer-events: none;
}

.connector {
  opacity: 0.68;
  transition:
    opacity 180ms ease,
    filter 180ms ease;
}

.connector-base,
.connector-pulse {
  vector-effect: non-scaling-stroke;
  stroke-linecap: round;
}

.connector-base {
  stroke: rgba(44, 232, 255, 0.36);
  stroke-width: 1.2;
}

.connector-pulse {
  opacity: 0;
  stroke: rgba(141, 239, 255, 0.96);
  stroke-width: 2.2;
  stroke-dasharray: 42 210;
  filter: drop-shadow(0 0 8px rgba(44, 232, 255, 0.7));
}

.connector.is-active {
  opacity: 1;
  filter: drop-shadow(0 0 8px rgba(44, 232, 255, 0.42));
}

.connector.is-active .connector-base {
  stroke: rgba(141, 239, 255, 0.62);
}

.connector.is-active .connector-pulse {
  opacity: 0.86;
  animation: connector-flow 1.9s linear infinite;
}

.connector.is-dimmed {
  opacity: 0.32;
  filter: brightness(0.7);
}

.mainhex {
  opacity: 0;
}

.subhex {
  z-index: 2;
  opacity: 0;
}

.subhex.is-positioning {
  pointer-events: none;
  cursor: default;
}

.hex.is-igniting,
.logo-tile .hex-content.is-igniting {
  transition: transform 180ms ease !important;
}

.hex.is-lit,
.logo-tile .hex-content.is-lit,
.content-reveal.is-lit {
  opacity: 1;
}

.content-reveal.is-igniting {
  transition: none !important;
}

.backhex::before {
  background:
    linear-gradient(120deg, transparent 0 10%, var(--cyan-soft) 11% 15%, transparent 16% 72%, var(--cyan) 73% 77%, transparent 78%),
    linear-gradient(180deg, rgba(141, 239, 255, 0.88), rgba(42, 141, 255, 0.62));
}

.hex.is-exiting {
  pointer-events: none;
  animation: node-fade-out var(--fade-out-duration) ease forwards !important;
}

.map-stage.is-mobile-subview .logo-tile,
.map-stage.is-mobile-subview .mainhex {
  opacity: 0 !important;
  pointer-events: none;
  animation: none !important;
  filter: brightness(0.35);
}

.content-overlay {
  --overlay-padding: clamp(18px, 4vw, 44px);
  position: fixed;
  inset: 0;
  z-index: 20;
  display: grid;
  place-items: center;
  padding: var(--overlay-padding);
  background:
    radial-gradient(circle at 50% 42%, rgba(44, 232, 255, 0.12), transparent 32rem),
    rgba(1, 5, 9, 0.82);
  backdrop-filter: blur(10px);
  overflow: hidden;
}

.content-overlay[hidden] {
  display: none;
}

.content-panel {
  position: relative;
  width: min(1040px, 94vw);
  max-height: calc(100svh - var(--overlay-padding) - var(--overlay-padding));
  min-height: min(620px, calc(100svh - var(--overlay-padding) - var(--overlay-padding)));
  padding: clamp(26px, 4vw, 56px);
  color: var(--text);
  background:
    linear-gradient(135deg, rgba(4, 19, 30, 0.97), rgba(1, 8, 14, 0.95));
  border: 1px solid rgba(44, 232, 255, 0.62);
  box-shadow:
    0 24px 80px rgba(0, 0, 0, 0.46),
    0 0 34px rgba(44, 232, 255, 0.22),
    inset 0 1px 0 rgba(141, 239, 255, 0.14),
    inset 0 0 36px rgba(44, 232, 255, 0.06);
  border-radius: 18px;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.content-panel::-webkit-scrollbar {
  width: 8px;
}

.content-panel::-webkit-scrollbar-track {
  background: rgba(2, 13, 22, 0.64);
  border-radius: 999px;
}

.content-panel::-webkit-scrollbar-thumb {
  background: rgba(44, 232, 255, 0.5);
  border-radius: 999px;
  box-shadow: 0 0 10px rgba(44, 232, 255, 0.32);
}

.content-reveal {
  opacity: 0;
}

.content-heading {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 0 0 24px;
  padding-right: 56px;
}

.content-heading > h2 {
  min-width: 0;
  margin: 0;
  font-size: 2rem;
  line-height: 0.98;
  text-transform: uppercase;
}

.details-toggle {
  width: 40px;
  height: 40px;
  display: grid;
  flex: 0 0 auto;
  place-items: center;
  padding: 0;
  color: var(--cyan-soft);
  background:
    linear-gradient(180deg, rgba(7, 29, 45, 0.86), rgba(1, 9, 15, 0.82));
  border: 1px solid rgba(44, 232, 255, 0.58);
  border-radius: 8px;
  box-shadow:
    0 0 16px rgba(44, 232, 255, 0.18),
    inset 0 0 18px rgba(44, 232, 255, 0.08);
  cursor: pointer;
  transition:
    border-color 160ms ease,
    box-shadow 160ms ease,
    transform 160ms ease;
}

.details-toggle[hidden] {
  display: none;
}

.details-toggle:hover,
.details-toggle:focus-visible {
  border-color: rgba(141, 239, 255, 0.92);
  box-shadow:
    0 0 22px rgba(44, 232, 255, 0.34),
    inset 0 0 24px rgba(44, 232, 255, 0.1);
  transform: translateY(-1px);
}

.details-toggle-icon {
  width: 22px;
  height: 22px;
  transition: transform 160ms ease;
}

.details-toggle-icon * {
  fill: none;
  stroke: currentColor;
  stroke-width: 2.2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.details-toggle[data-mode="collapse"] .details-toggle-icon {
  transform: rotate(180deg);
}

.content-copy {
  flex: 1 1 auto;
  min-height: 0;
  overflow-y: auto;
  overflow-x: hidden;
  overscroll-behavior: contain;
  -webkit-overflow-scrolling: touch;
  scrollbar-color: rgba(44, 232, 255, 0.56) rgba(2, 13, 22, 0.64);
  scrollbar-width: thin;
  padding-right: 10px;
}

.content-copy > * {
  margin: 0;
}

.content-copy > * + * {
  margin-top: 1rem;
}

.content-copy p,
.content-copy li,
.content-copy summary {
  color: var(--muted);
  font-size: clamp(1rem, 1.5vw, 1.28rem);
  line-height: 1.7;
}

.content-copy details {
  margin: 0;
}

.content-copy details > * {
  margin: 0;
}

.content-copy details > * + * {
  margin-top: 0.85rem;
}

.content-copy summary {
  color: var(--text);
  cursor: pointer;
}

.content-copy ul,
.content-copy ol {
  padding-left: 1.25rem;
}

.content-copy a {
  color: var(--cyan-soft);
  text-decoration: none;
  border-bottom: 1px solid rgba(44, 232, 255, 0.44);
}

.content-copy code {
  color: var(--cyan-soft);
  font-size: 0.92em;
}

.content-copy h1,
.content-copy h2,
.content-copy h3,
.content-copy h4,
.content-copy h5,
.content-copy h6 {
  margin-top: 1.4rem;
  color: var(--text);
  font-size: clamp(1.2rem, 2vw, 1.7rem);
  line-height: 1.15;
  text-transform: uppercase;
}

.content-copy img {
  display: block;
  max-width: 100%;
  height: auto;
  border-radius: 12px;
  border: 1px solid rgba(44, 232, 255, 0.26);
  box-shadow: 0 0 22px rgba(44, 232, 255, 0.16);
}

.content-media {
  width: min(420px, 70vw);
  margin: 0;
}

.content-media[hidden] {
  display: none;
}

.content-media img {
  display: block;
  width: 100%;
  max-height: min(58vh, 620px);
  object-fit: contain;
  border: 1px solid rgba(44, 232, 255, 0.42);
  box-shadow:
    0 0 26px rgba(44, 232, 255, 0.2),
    0 18px 48px rgba(0, 0, 0, 0.34);
}

.content-panel.is-media-panel {
  display: grid;
  justify-items: start;
  align-content: start;
  gap: 20px;
}

.content-panel.is-media-panel .content-heading {
  margin-bottom: 0;
}

.content-link {
  align-self: flex-start;
  width: fit-content;
  display: inline-grid;
  place-items: center;
  min-height: 40px;
  margin: 0 0 22px;
  padding: 0 16px;
  color: var(--cyan-soft);
  border: 1px solid rgba(44, 232, 255, 0.58);
  background: rgba(2, 15, 25, 0.82);
  text-decoration: none;
  text-transform: uppercase;
  font-size: 0.74rem;
  font-weight: 760;
  letter-spacing: 0;
  box-shadow:
    0 0 16px rgba(44, 232, 255, 0.18),
    inset 0 0 20px rgba(44, 232, 255, 0.06);
  cursor: pointer;
  border-radius: 8px;
  transition:
    border-color 160ms ease,
    box-shadow 160ms ease,
    transform 160ms ease;
}

.content-link:hover,
.content-link:focus-visible {
  border-color: rgba(141, 239, 255, 0.92);
  box-shadow:
    0 0 22px rgba(44, 232, 255, 0.34),
    inset 0 0 24px rgba(44, 232, 255, 0.1);
  transform: translateY(-1px);
}

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

.content-close {
  position: absolute;
  top: 18px;
  right: 18px;
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  padding: 0;
  color: var(--cyan-soft);
  background: rgba(2, 13, 22, 0.9);
  border: 1px solid rgba(44, 232, 255, 0.56);
  cursor: default;
  text-transform: uppercase;
  box-shadow: 0 0 14px rgba(44, 232, 255, 0.18);
}

.toast {
  position: fixed;
  left: 50%;
  bottom: clamp(22px, 5vh, 54px);
  z-index: 40;
  min-width: 180px;
  padding: 12px 18px;
  color: var(--cyan-soft);
  background:
    linear-gradient(180deg, rgba(7, 29, 45, 0.94), rgba(1, 9, 15, 0.9));
  border: 1px solid rgba(44, 232, 255, 0.72);
  border-radius: 8px;
  box-shadow:
    0 0 24px rgba(44, 232, 255, 0.28),
    inset 0 0 18px rgba(44, 232, 255, 0.1);
  text-align: center;
  text-transform: uppercase;
  font-size: 0.78rem;
  font-weight: 760;
  letter-spacing: 0;
  pointer-events: none;
  transform: translate(-50%, 10px) scale(0.98);
}

.toast[hidden] {
  display: none;
}

.toast.is-visible {
  animation: toast-enter 160ms ease-out forwards;
}

.toast.is-hiding {
  animation: toast-exit 220ms ease forwards;
}

.toast-text {
  display: block;
  filter: drop-shadow(0 0 8px rgba(141, 239, 255, 0.52));
}

@keyframes node-fade-out {
  from {
    opacity: 1;
    filter: brightness(1) saturate(1);
  }

  to {
    opacity: 0;
    filter: brightness(0.35) saturate(0.75);
  }
}

@keyframes hover-charge {
  0%,
  100% {
    opacity: 1;
  }

  45% {
    opacity: 0.94;
    filter: brightness(1.08);
  }

  50% {
    opacity: 1;
    filter: brightness(1.18);
  }
}

@keyframes connector-flow {
  from {
    stroke-dashoffset: 252;
  }

  to {
    stroke-dashoffset: 0;
  }
}

@keyframes toast-enter {
  from {
    transform: translate(-50%, 10px) scale(0.98);
  }

  to {
    transform: translate(-50%, 0) scale(1);
  }
}

@keyframes toast-exit {
  from {
    opacity: 1;
    transform: translate(-50%, 0) scale(1);
  }

  to {
    opacity: 0;
    transform: translate(-50%, 8px) scale(0.98);
  }
}

@keyframes icon-hover {
  from {
    opacity: 0.92;
    transform: scale(1);
  }

  to {
    opacity: 1;
    transform: scale(1.065);
  }
}

@keyframes logo-aura-pulse {
  0%,
  88%,
  100% {
    filter: drop-shadow(0 0 10px rgba(44, 232, 255, 0.16));
  }

  89%,
  91% {
    filter:
      drop-shadow(0 0 13px rgba(44, 232, 255, 0.24))
      drop-shadow(0 0 22px rgba(44, 232, 255, 0.1));
  }

  90% {
    filter: drop-shadow(0 0 7px rgba(44, 232, 255, 0.08));
  }
}

@keyframes logo-idle-flicker {
  0%,
  58%,
  66%,
  100% {
    opacity: 1;
    filter:
      brightness(1)
      drop-shadow(0 0 6px rgba(44, 232, 255, 0.28))
      drop-shadow(0 0 14px rgba(44, 232, 255, 0.14));
  }

  59%,
  63% {
    opacity: 0.9;
    filter:
      brightness(0.82)
      drop-shadow(0 0 4px rgba(44, 232, 255, 0.14));
  }

  60%,
  64% {
    opacity: 1;
    filter:
      brightness(1.13)
      drop-shadow(0 0 9px rgba(141, 239, 255, 0.42))
      drop-shadow(0 0 21px rgba(44, 232, 255, 0.2));
  }

  61% {
    opacity: 0.78;
    filter:
      brightness(0.68)
      drop-shadow(0 0 3px rgba(44, 232, 255, 0.08));
  }

  62%,
  65% {
    opacity: 0.94;
    filter:
      brightness(1.03)
      drop-shadow(0 0 7px rgba(44, 232, 255, 0.26))
      drop-shadow(0 0 16px rgba(44, 232, 255, 0.12));
  }
}

@media (max-width: 920px), (max-height: 650px) {
  .map-stage {
    min-height: 0;
  }

  .hex,
  .logo-tile,
  .hex:hover,
  .hex:focus-visible,
  .hex.is-selected {
    position: absolute;
  }

  .hex:hover,
  .hex:focus-visible,
  .hex.is-hovered {
    transform: translate(calc(-50% + var(--x, 0px)), calc(-50% + var(--y, 0px))) scale(1.045);
  }

}

@media (max-width: 640px) {
  :root {
    --tile-size: clamp(88px, 26vw, 128px);
  }
}

@media (max-width: 640px) {
  body {
    overflow: auto;
  }

  .content-overlay {
    --overlay-padding: 12px;
    place-items: stretch;
  }

  .content-panel {
    width: 100%;
    max-height: calc(100svh - var(--overlay-padding) - var(--overlay-padding));
    min-height: 0;
    padding: 28px 20px 34px;
  }

  .map-stage {
    overflow: hidden;
  }

  .map-stage.is-mobile-subview .subnode-layer {
    z-index: 5;
  }

  .connector-layer {
    display: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
  }

  .hex,
  .hex::before,
  .hex::after,
  .hex-content {
    --tilt-x: 0deg !important;
    --tilt-y: 0deg !important;
    --lift-z: 0px !important;
  }

  .hex::before,
  .hex::after,
  .hex-content {
    transform: none !important;
  }

  .connector-pulse {
    animation: none !important;
  }
}
