:root {
  --bg: #020713;
  --cyan: #4dfcff;
  --cyan-2: #9cfaff;
  --blue: #1ca8ff;
  --purple: #b26cff;
  --text: #eafcff;
  --muted: #a6dfea;
  --glass-border: rgba(113, 246, 255, 0.58);
  --purple-border: rgba(178, 108, 255, 0.62);
  --shadow-cyan:
    0 0 9px rgba(77, 252, 255, 0.58),
    0 0 24px rgba(28, 168, 255, 0.22);
  --shadow-purple:
    0 0 9px rgba(178, 108, 255, 0.62),
    0 0 24px rgba(178, 108, 255, 0.22);

  font-family: Inter, "Segoe UI", "Hiragino Kaku Gothic ProN", Meiryo, sans-serif;
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  min-height: 100%;
  overflow: hidden;
  color: var(--text);
  background: var(--bg);
}

body {
  background:
    radial-gradient(circle at 50% 10%, rgba(28, 168, 255, 0.22), transparent 25%),
    radial-gradient(circle at 24% 62%, rgba(77, 252, 255, 0.14), transparent 28%),
    radial-gradient(circle at 74% 56%, rgba(178, 108, 255, 0.16), transparent 29%),
    radial-gradient(circle at 50% 120%, rgba(77, 252, 255, 0.2), transparent 34%),
    linear-gradient(180deg, #020713 0%, #03172d 55%, #020713 100%);
}

button,
a {
  font: inherit;
}

a {
  color: inherit;
  text-decoration: none;
}

.stage {
  position: relative;
  width: 100vw;
  height: 100vh;
  min-width: 980px;
  min-height: 640px;
  padding: clamp(12px, 1.45vw, 22px);
  isolation: isolate;
}

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

.stage::before {
  opacity: 0.42;
  background-image:
    radial-gradient(circle, rgba(77, 252, 255, 0.5) 0 1px, transparent 1.8px),
    radial-gradient(circle, rgba(28, 168, 255, 0.34) 0 1.2px, transparent 2px),
    radial-gradient(circle, rgba(234, 255, 255, 0.28) 0 0.8px, transparent 1.8px);
  background-size: 92px 92px, 156px 156px, 62px 62px;
  background-position: 12px 18px, 50px 70px, 20px 12px;
  animation: driftParticles 32s linear infinite;
}

.stage::after {
  background:
    linear-gradient(110deg, transparent 8%, rgba(77, 252, 255, 0.08), transparent 21%) 0 8% / 100% 2px no-repeat,
    linear-gradient(70deg, transparent 18%, rgba(178, 108, 255, 0.1), transparent 34%) 0 96% / 100% 2px no-repeat;
}

@keyframes driftParticles {
  from {
    transform: translateY(0);
  }

  to {
    transform: translateY(-120px);
  }
}

.ambient {
  position: absolute;
  pointer-events: none;
  border-radius: 50%;
  z-index: -3;
  filter: blur(18px);
}

.ambient-a {
  left: 21%;
  top: 22%;
  width: 420px;
  height: 420px;
  background: radial-gradient(circle, rgba(77, 252, 255, 0.18), transparent 68%);
  animation: ambientFloat 10s ease-in-out infinite alternate;
}

.ambient-b {
  right: 11%;
  bottom: 14%;
  width: 360px;
  height: 360px;
  background: radial-gradient(circle, rgba(178, 108, 255, 0.15), transparent 70%);
  animation: ambientFloat 12s ease-in-out infinite alternate-reverse;
}

@keyframes ambientFloat {
  from {
    transform: translate3d(-14px, 6px, 0) scale(0.95);
  }

  to {
    transform: translate3d(18px, -10px, 0) scale(1.05);
  }
}

/* =========================
   WATER SHEETS
========================= */

.water-top,
.water-bottom {
  position: absolute;
  left: -5%;
  width: 110%;
  pointer-events: none;
  z-index: -2;
  filter:
    drop-shadow(0 0 14px rgba(28, 168, 255, 0.42))
    drop-shadow(0 0 26px rgba(77, 252, 255, 0.16));
}

.water-top {
  top: 0;
  height: 170px;
  opacity: 0.74;
  background:
    radial-gradient(ellipse at 50% 34%, rgba(77, 252, 255, 0.7), transparent 4%),
    repeating-radial-gradient(
      ellipse at 50% 34%,
      rgba(77, 252, 255, 0.2) 0 2px,
      transparent 4px 18px
    ),
    linear-gradient(
      100deg,
      transparent 0%,
      rgba(28, 168, 255, 0.08) 14%,
      rgba(28, 168, 255, 0.22) 43%,
      rgba(77, 252, 255, 0.28) 50%,
      rgba(178, 108, 255, 0.12) 64%,
      transparent 100%
    );
  clip-path: polygon(
    0 25%,
    10% 16%,
    19% 28%,
    31% 15%,
    42% 24%,
    52% 8%,
    65% 22%,
    78% 10%,
    91% 24%,
    100% 16%,
    100% 0,
    0 0
  );
  animation: waveTop 10s ease-in-out infinite alternate;
}

.water-bottom {
  bottom: -32px;
  height: 220px;
  opacity: 0.84;
  background:
    radial-gradient(ellipse at 48% 50%, rgba(77, 252, 255, 0.34), transparent 20%),
    radial-gradient(ellipse at 28% 58%, rgba(28, 168, 255, 0.22), transparent 28%),
    radial-gradient(ellipse at 72% 58%, rgba(178, 108, 255, 0.18), transparent 28%),
    linear-gradient(
      100deg,
      transparent 0%,
      rgba(28, 168, 255, 0.28) 18%,
      rgba(77, 252, 255, 0.26) 36%,
      rgba(178, 108, 255, 0.2) 62%,
      rgba(28, 168, 255, 0.28) 82%,
      transparent 100%
    );
  clip-path: polygon(
    0 58%,
    9% 36%,
    18% 58%,
    28% 34%,
    39% 60%,
    50% 28%,
    62% 55%,
    74% 30%,
    86% 54%,
    100% 32%,
    100% 100%,
    0 100%
  );
  animation: waveBottom 11s ease-in-out infinite alternate-reverse;
}

@keyframes waveTop {
  from {
    transform: translateX(-18px) translateY(0) scaleY(0.96);
  }

  to {
    transform: translateX(18px) translateY(8px) scaleY(1.05);
  }
}

@keyframes waveBottom {
  from {
    transform: translateX(-24px) scaleY(0.96);
  }

  to {
    transform: translateX(24px) scaleY(1.05);
  }
}

/* =========================
   LAYOUT
========================= */

.layout {
  position: relative;
  display: grid;
  grid-template-columns: minmax(720px, 1fr) clamp(285px, 21vw, 320px);
  gap: clamp(12px, 1.3vw, 18px);
  height: 100%;
}

.map-area {
  position: relative;
  height: 100%;
  overflow: hidden;
  border-radius: 28px;
  isolation: isolate;
  background:
    radial-gradient(circle at 50% 50%, rgba(77, 252, 255, 0.06), transparent 36%),
    linear-gradient(180deg, rgba(2, 12, 26, 0.25), rgba(2, 12, 26, 0.08));
}

.map-area::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  opacity: 0.24;
  background:
    repeating-linear-gradient(
      115deg,
      transparent 0 20px,
      rgba(77, 252, 255, 0.06) 21px 23px,
      transparent 24px 48px
    );
  mix-blend-mode: screen;
  animation: caustics 13s linear infinite;
}

.map-area::after {
  content: "";
  position: absolute;
  inset: auto 5% 4% 5%;
  height: 120px;
  z-index: 2;
  pointer-events: none;
  background:
    repeating-radial-gradient(
      ellipse at center,
      rgba(77, 252, 255, 0.28) 0 2px,
      transparent 3px 20px
    );
  transform: perspective(600px) rotateX(68deg);
  filter: blur(0.2px);
  opacity: 0.56;
  animation: waterFloor 4.5s ease-in-out infinite;
}

@keyframes caustics {
  from {
    background-position: 0 0;
  }

  to {
    background-position: 180px -90px;
  }
}

@keyframes waterFloor {
  0%,
  100% {
    opacity: 0.36;
    transform: perspective(600px) rotateX(68deg) scale(0.96);
  }

  50% {
    opacity: 0.66;
    transform: perspective(600px) rotateX(68deg) scale(1.04);
  }
}

/* =========================
   CANVAS WATER
========================= */

#water-canvas {
  position: absolute;
  inset: 0;
  z-index: 13;
  width: 100%;
  height: 100%;
  pointer-events: none;
  mix-blend-mode: screen;
  opacity: 0.95;
}

/* =========================
   TOP MARK
========================= */

.top-mark {
  position: absolute;
  top: 20px;
  left: 50%;
  z-index: 8;
  width: 250px;
  height: 70px;
  display: grid;
  place-items: center;
  transform: translateX(-50%);
  opacity: 0.9;
  pointer-events: none;
}

.top-mark::before {
  content: "";
  width: 180px;
  height: 48px;
  border-radius: 50%;
  border: 1px solid rgba(77, 252, 255, 0.34);
  box-shadow:
    0 0 18px rgba(77, 252, 255, 0.28) inset,
    0 0 22px rgba(28, 168, 255, 0.2);
  animation: ripple 4s ease-in-out infinite;
}

.top-mark::after {
  content: "";
  position: absolute;
  width: 88px;
  height: 16px;
  border-radius: 50%;
  border: 1px solid rgba(77, 252, 255, 0.32);
  animation: rippleSmall 3s ease-in-out infinite;
}

.drop {
  position: absolute;
  top: 38px;
  width: 15px;
  height: 21px;
  border-radius: 55% 55% 62% 62%;
  background:
    radial-gradient(circle at 35% 35%, #eaffff 0 8%, var(--cyan) 18%, #056ca3 78%);
  transform: rotate(45deg);
  box-shadow: var(--shadow-cyan);
}

@keyframes ripple {
  0%,
  100% {
    transform: scale(0.9);
    opacity: 0.45;
  }

  50% {
    transform: scale(1.1);
    opacity: 0.85;
  }
}

@keyframes rippleSmall {
  0%,
  100% {
    transform: scale(0.7);
    opacity: 0.3;
  }

  50% {
    transform: scale(1.4);
    opacity: 0.75;
  }
}

/* =========================
   CONNECTION LINES
========================= */

svg.lines {
  position: absolute;
  inset: 0;
  z-index: 5;
  width: 100%;
  height: 100%;
  pointer-events: none;
  filter: drop-shadow(0 0 6px rgba(77, 252, 255, 0.45));
}

.line {
  fill: none;
  stroke: rgba(77, 252, 255, 0.56);
  stroke-width: 2;
  stroke-linecap: round;
  stroke-dasharray: 5 10;
  animation: dash 4.5s linear infinite;
}

.line.purple {
  stroke: rgba(178, 108, 255, 0.6);
  filter: drop-shadow(0 0 8px rgba(178, 108, 255, 0.52));
}

@keyframes dash {
  to {
    stroke-dashoffset: -120;
  }
}

/* =========================
   GLOBE
========================= */

.globe-wrap {
  position: absolute;
  left: 50%;
  top: 51%;
  z-index: 7;
  width: clamp(390px, 43vw, 620px);
  height: clamp(390px, 43vw, 620px);
  transform: translate(-50%, -48%);
  pointer-events: none;
  will-change: transform;
}

#globe-scene {
  position: absolute;
  inset: 0;
  z-index: 1;
  filter:
    drop-shadow(0 0 22px rgba(77, 252, 255, 0.82))
    drop-shadow(0 0 52px rgba(28, 168, 255, 0.32));
}

#globe-scene canvas {
  display: block;
  width: 100% !important;
  height: 100% !important;
}

.globe-wrap::before {
  content: "";
  position: absolute;
  inset: 5%;
  z-index: 0;
  border-radius: 50%;
  border: 1px solid rgba(77, 252, 255, 0.28);
  box-shadow:
    0 0 24px rgba(77, 252, 255, 0.32),
    inset 0 0 22px rgba(77, 252, 255, 0.16);
  animation: membranePulse 4s ease-in-out infinite;
}

.globe-wrap::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: 4%;
  z-index: 0;
  width: 360px;
  max-width: 66%;
  height: 108px;
  border-radius: 50%;
  background:
    repeating-radial-gradient(
      ellipse at center,
      rgba(77, 252, 255, 0.36) 0 2px,
      transparent 3px 17px
    ),
    radial-gradient(ellipse at center, rgba(77, 252, 255, 0.46), transparent 70%);
  filter:
    blur(0.2px)
    drop-shadow(0 0 18px rgba(77, 252, 255, 0.5));
  transform: translateX(-50%);
  animation: poolPulse 3.1s ease-in-out infinite;
}

@keyframes membranePulse {
  0%,
  100% {
    transform: scale(0.98);
    opacity: 0.42;
  }

  50% {
    transform: scale(1.04);
    opacity: 0.78;
  }
}

@keyframes poolPulse {
  0%,
  100% {
    transform: translateX(-50%) scale(0.96);
    opacity: 0.58;
  }

  50% {
    transform: translateX(-50%) scale(1.06);
    opacity: 0.88;
  }
}

.core-label {
  position: absolute;
  left: 50%;
  top: 50%;
  z-index: 9;
  width: clamp(320px, 29vw, 390px);
  min-height: 96px;
  padding: 16px 20px;
  display: grid;
  place-items: center;
  text-align: center;
  border: 1px solid rgba(130, 250, 255, 0.66);
  border-radius: 22px;
  background:
    linear-gradient(180deg, rgba(7, 34, 54, 0.74), rgba(2, 16, 32, 0.66));
  backdrop-filter: blur(10px);
  box-shadow:
    var(--shadow-cyan),
    inset 0 0 22px rgba(77, 252, 255, 0.14);
  transform: translate(-50%, -50%);
  color: var(--text);
  font-size: clamp(20px, 1.8vw, 25px);
  font-weight: 800;
  line-height: 1.45;
  letter-spacing: 0.02em;
  text-shadow: 0 0 12px rgba(77, 252, 255, 0.82);
}

.core-label .flow-line {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 9px;
  white-space: nowrap;
}

.core-label .flow-arrow {
  color: var(--cyan);
  opacity: 0.82;
  font-size: 0.88em;
  transform: translateY(-1px);
}

/* =========================
   CLUSTERS
========================= */

.cluster {
  position: absolute;
  z-index: 24;
  display: grid;
  gap: 10px;
}

.cluster.problem {
  left: 24px;
  top: 8%;
  grid-template-columns: 260px 150px;
  align-items: center;
}

.cluster.tech {
  left: 24px;
  bottom: 3%;
  grid-template-columns: 270px 150px;
  align-items: center;
}

.cluster.work {
  right: 24px;
  top: 11%;
  grid-template-columns: 150px 275px;
  align-items: center;
}

.cluster.projects {
  right: 24px;
  bottom: 12%;
  grid-template-columns: 150px 280px;
  align-items: center;
}

@media (min-width: 901px) {
  .cluster.problem .items,
  .cluster.tech .items {
    grid-column: 1;
    grid-row: 1;
  }

  .cluster.problem .hub,
  .cluster.tech .hub {
    grid-column: 2;
    grid-row: 1;
  }

  .cluster.work .hub,
  .cluster.projects .hub {
    grid-column: 1;
    grid-row: 1;
  }

  .cluster.work .items,
  .cluster.projects .items {
    grid-column: 2;
    grid-row: 1;
  }
}

.hub {
  position: relative;
  width: 150px;
  height: 150px;
  display: grid;
  place-items: center;
  text-align: center;
  border: 1px solid var(--glass-border);
  border-radius: 50%;
  background:
    radial-gradient(circle at 35% 30%, rgba(77, 252, 255, 0.23), rgba(4, 26, 43, 0.88) 62%, rgba(2, 7, 19, 0.68));
  box-shadow:
    var(--shadow-cyan),
    inset 0 0 22px rgba(77, 252, 255, 0.16);
  color: var(--cyan);
  font-weight: 800;
  line-height: 1.15;
}

.hub::before,
.hub::after {
  content: "";
  position: absolute;
  border-radius: inherit;
  pointer-events: none;
}

.hub::before {
  inset: -7px;
  border: 1px solid rgba(77, 252, 255, 0.16);
  animation: hubPulse 3.5s ease-in-out infinite;
}

.hub::after {
  inset: 12px;
  background:
    radial-gradient(circle at 35% 25%, rgba(255, 255, 255, 0.16), transparent 26%),
    linear-gradient(135deg, rgba(255, 255, 255, 0.1), transparent 38%);
  opacity: 0.82;
}

.hub.purple {
  border-color: var(--purple-border);
  color: #e7d2ff;
  background:
    radial-gradient(circle at 35% 30%, rgba(178, 108, 255, 0.27), rgba(28, 13, 52, 0.86) 64%, rgba(2, 7, 19, 0.76));
  box-shadow:
    var(--shadow-purple),
    inset 0 0 22px rgba(178, 108, 255, 0.18);
}

.hub.purple::before {
  border-color: rgba(178, 108, 255, 0.2);
}

@keyframes hubPulse {
  0%,
  100% {
    transform: scale(0.96);
    opacity: 0.32;
  }

  50% {
    transform: scale(1.04);
    opacity: 0.78;
  }
}

.hub > div {
  position: relative;
  z-index: 2;
}

.hub .num {
  display: block;
  margin-bottom: 4px;
  font-size: 18px;
  opacity: 0.9;
}

.hub .icon {
  margin-bottom: 4px;
  font-size: 27px;
  filter: drop-shadow(0 0 8px currentColor);
}

.hub .title {
  font-size: 20px;
}

.items {
  display: grid;
  gap: 10px;
  overflow: visible;
}

.skill-card,
.project-card {
  position: relative;
  min-height: 59px;
  display: grid;
  grid-template-columns: 44px 1fr auto;
  gap: 9px;
  align-items: center;
  padding: 9px 16px 9px 9px;
  border: 1px solid rgba(77, 252, 255, 0.58);
  border-radius: 999px;
  color: var(--text);
  text-align: left;
  font-size: 14.5px;
  background:
    linear-gradient(90deg, rgba(5, 45, 65, 0.9), rgba(1, 18, 33, 0.72));
  box-shadow:
    var(--shadow-cyan),
    inset 0 0 16px rgba(77, 252, 255, 0.12);
  cursor: pointer;
  overflow: visible;
  transition:
    transform 0.18s ease,
    border-color 0.18s ease,
    background 0.18s ease,
    box-shadow 0.18s ease;
}

.skill-card::before,
.project-card::before {
  content: "";
  position: absolute;
  inset: 1px;
  pointer-events: none;
  border-radius: inherit;
  background:
    linear-gradient(110deg, transparent 0%, rgba(255, 255, 255, 0.18) 24%, transparent 42%);
  opacity: 0.32;
}

.skill-card::after,
.project-card::after {
  content: "";
  position: absolute;
  top: 0;
  left: -60%;
  width: 48%;
  height: 100%;
  pointer-events: none;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.18), transparent);
  transform: skewX(-18deg);
  animation: cardSheen 7s ease-in-out infinite;
}

@keyframes cardSheen {
  0%,
  62% {
    left: -70%;
    opacity: 0;
  }

  72% {
    opacity: 0.62;
  }

  100% {
    left: 125%;
    opacity: 0;
  }
}

.project-card {
  border-color: rgba(178, 108, 255, 0.64);
  background:
    linear-gradient(90deg, rgba(45, 18, 72, 0.9), rgba(12, 14, 38, 0.74));
  box-shadow:
    var(--shadow-purple),
    inset 0 0 16px rgba(178, 108, 255, 0.12);
}

.skill-card:hover,
.project-card:hover,
.skill-card.active,
.project-card.active {
  transform: translateY(-2px) scale(1.02);
  border-color: rgba(234, 255, 255, 0.96);
  background:
    linear-gradient(90deg, rgba(11, 79, 98, 0.96), rgba(2, 27, 48, 0.82));
}

.project-card:hover,
.project-card.active {
  background:
    linear-gradient(90deg, rgba(76, 35, 116, 0.98), rgba(19, 15, 49, 0.82));
}

.skill-card.active,
.project-card.active {
  box-shadow:
    0 0 14px rgba(77, 252, 255, 0.8),
    0 0 34px rgba(28, 168, 255, 0.28),
    inset 0 0 18px rgba(77, 252, 255, 0.16);
}

.project-card.active {
  box-shadow:
    0 0 14px rgba(178, 108, 255, 0.8),
    0 0 34px rgba(178, 108, 255, 0.28),
    inset 0 0 18px rgba(178, 108, 255, 0.16);
}

.card-icon {
  position: relative;
  z-index: 2;
  width: 41px;
  height: 41px;
  display: grid;
  place-items: center;
  border: 1px solid currentColor;
  border-radius: 50%;
  color: var(--cyan);
  background: rgba(77, 252, 255, 0.08);
  box-shadow:
    inset 0 0 12px rgba(77, 252, 255, 0.18),
    0 0 10px rgba(77, 252, 255, 0.18);
  font-size: 19px;
}

.project-card .card-icon {
  color: #d9b8ff;
  background: rgba(178, 108, 255, 0.1);
}

.card-name {
  position: relative;
  z-index: 2;
  font-weight: 700;
  line-height: 1.2;
}

.score {
  position: relative;
  z-index: 2;
  color: var(--cyan);
  font-size: 24px;
  font-weight: 900;
  text-shadow: 0 0 10px currentColor;
}

.project-card .score {
  color: #d9b8ff;
}

.badge {
  position: absolute;
  right: 14px;
  bottom: -9px;
  z-index: 4;
  min-width: 42px;
  padding: 2px 8px;
  border: 1px solid rgba(234, 255, 255, 0.48);
  border-radius: 999px;
  color: #eafcff;
  background: rgba(2, 16, 30, 0.88);
  box-shadow: 0 0 10px rgba(77, 252, 255, 0.26);
  font-size: 10px;
  font-weight: 800;
  text-align: center;
}

.project-card .badge {
  border-color: rgba(178, 108, 255, 0.52);
  box-shadow: 0 0 10px rgba(178, 108, 255, 0.32);
}

/* =========================
   GITHUB EXPAND
========================= */

.github-card {
  position: relative;
  z-index: 50;
}

.github-card:hover,
.github-card:focus-within,
.github-card.active {
  z-index: 130;
}

.github-flyout {
  position: absolute;
  right: 0;
  bottom: calc(100% + 12px);
  width: 310px;
  padding: 14px;
  border: 1px solid rgba(178, 108, 255, 0.74);
  border-radius: 20px;
  background:
    radial-gradient(circle at 18% 12%, rgba(178, 108, 255, 0.22), transparent 28%),
    linear-gradient(180deg, rgba(36, 16, 64, 0.96), rgba(5, 13, 32, 0.94));
  box-shadow:
    0 0 14px rgba(178, 108, 255, 0.62),
    0 0 34px rgba(178, 108, 255, 0.26),
    inset 0 0 18px rgba(178, 108, 255, 0.1);
  opacity: 0;
  pointer-events: none;
  transform:
    translateX(86px)
    translateY(8px)
    scale(0.96);
  filter: blur(6px);
  transition:
    opacity 0.24s ease,
    transform 0.32s cubic-bezier(0.22, 1, 0.36, 1),
    filter 0.24s ease;
}

.github-card:hover .github-flyout,
.github-card:focus-within .github-flyout,
.github-card.active .github-flyout {
  opacity: 1;
  pointer-events: auto;
  transform:
    translateX(0)
    translateY(0)
    scale(1);
  filter: blur(0);
}

.github-flyout::before {
  content: "";
  position: absolute;
  right: 42px;
  bottom: -10px;
  width: 18px;
  height: 18px;
  border-right: 1px solid rgba(178, 108, 255, 0.74);
  border-bottom: 1px solid rgba(178, 108, 255, 0.74);
  background: rgba(30, 13, 58, 0.96);
  transform: rotate(45deg);
  box-shadow: 0 0 12px rgba(178, 108, 255, 0.28);
}

.github-flyout-title {
  margin: 0 0 10px;
  color: #ead8ff;
  font-size: 13px;
  font-weight: 900;
  letter-spacing: 0.06em;
  text-shadow: 0 0 8px rgba(178, 108, 255, 0.8);
}

.github-list {
  display: grid;
  gap: 8px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.github-list a {
  display: grid;
  grid-template-columns: 18px 1fr auto;
  gap: 8px;
  align-items: center;
  min-height: 30px;
  padding: 6px 9px;
  border: 1px solid rgba(178, 108, 255, 0.3);
  border-radius: 999px;
  background: rgba(7, 17, 38, 0.62);
  color: #f1e7ff;
  font-size: 12px;
  font-weight: 700;
  white-space: nowrap;
  box-shadow: inset 0 0 9px rgba(178, 108, 255, 0.08);
  transition:
    transform 0.18s ease,
    border-color 0.18s ease,
    background 0.18s ease;
}

.github-list a:hover,
.github-list a:focus-visible {
  transform: translateX(-3px);
  border-color: rgba(234, 255, 255, 0.7);
  background: rgba(32, 18, 62, 0.82);
  outline: none;
}

.github-list .work-icon {
  display: grid;
  place-items: center;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  color: #d9b8ff;
  background: rgba(178, 108, 255, 0.12);
  box-shadow: inset 0 0 8px rgba(178, 108, 255, 0.14);
}

.github-list .external {
  opacity: 0.72;
  font-size: 11px;
}

/* =========================
   BOTTOM PHILOSOPHY
========================= */

.philosophy-row {
  position: absolute;
  left: 50%;
  bottom: 22px;
  z-index: 24;
  display: flex;
  gap: 18px;
  transform: translateX(-50%);
}

.mini {
  width: 100px;
  color: var(--cyan);
  text-align: center;
  text-shadow: 0 0 7px rgba(77, 252, 255, 0.5);
  font-size: 12.5px;
  font-weight: 800;
}

.mini-icon {
  width: 46px;
  height: 46px;
  display: grid;
  place-items: center;
  margin: 0 auto 6px;
  border: 1px solid var(--glass-border);
  border-radius: 50%;
  background: rgba(4, 26, 43, 0.58);
  box-shadow:
    var(--shadow-cyan),
    inset 0 0 14px rgba(77, 252, 255, 0.12);
  font-size: 21px;
}

.mini small {
  display: block;
  margin-top: 2px;
  color: #7fe8f4;
  font-weight: 600;
}

/* =========================
   SIDE PANEL
========================= */

.side-panel {
  position: relative;
  overflow: hidden;
  padding: clamp(12px, 1.05vw, 16px) clamp(12px, 1.05vw, 16px);
  border: 1px solid var(--glass-border);
  border-radius: 22px;
  background:
    radial-gradient(circle at 50% 0%, rgba(77, 252, 255, 0.16), transparent 30%),
    linear-gradient(180deg, rgba(6, 35, 55, 0.8), rgba(1, 15, 28, 0.7));
  box-shadow:
    var(--shadow-cyan),
    inset 0 0 24px rgba(77, 252, 255, 0.09);
}

.side-panel::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  opacity: 0.34;
  background:
    radial-gradient(circle, rgba(77, 252, 255, 0.2) 0 1px, transparent 1.5px),
    linear-gradient(130deg, transparent, rgba(77, 252, 255, 0.06), transparent);
  background-size: 68px 68px, 100% 100%;
}

.side-panel::after {
  content: "";
  position: absolute;
  inset: 1px;
  pointer-events: none;
  border-radius: inherit;
  background:
    linear-gradient(115deg, rgba(255, 255, 255, 0.08), transparent 24% 70%, rgba(77, 252, 255, 0.08));
  opacity: 0.66;
}

.panel-section {
  position: relative;
  z-index: 2;
  padding-bottom: 11px;
  margin-bottom: 11px;
  border-bottom: 1px solid rgba(77, 252, 255, 0.34);
}

.panel-section:last-child {
  margin-bottom: 0;
  padding-bottom: 0;
  border-bottom: 0;
}

.panel-title {
  display: flex;
  gap: 8px;
  align-items: center;
  margin: 0 0 8px;
  color: var(--cyan);
  font-size: clamp(17px, 1.28vw, 21px);
  text-shadow: 0 0 10px rgba(77, 252, 255, 0.82);
}

.panel-title span {
  width: 32px;
  height: 32px;
  display: grid;
  place-items: center;
  flex: 0 0 auto;
  border: 1px solid var(--glass-border);
  border-radius: 50%;
  box-shadow:
    inset 0 0 10px rgba(77, 252, 255, 0.16),
    0 0 10px rgba(77, 252, 255, 0.32);
  font-size: 15px;
}

.side-panel ul {
  display: grid;
  gap: 6px;
  padding: 0;
  margin: 0;
  color: var(--text);
  font-size: clamp(11px, 0.82vw, 13px);
  line-height: 1.3;
  list-style: none;
}

.side-panel li {
  position: relative;
  padding-left: 16px;
}

.side-panel li::before {
  content: "💧";
  position: absolute;
  left: 0;
  top: 0;
  font-size: 10px;
  filter: drop-shadow(0 0 7px rgba(77, 252, 255, 0.7));
}

/* =========================
   DETAIL
========================= */

.detail-pop {
  position: absolute;
  left: 50%;
  top: 73.5%;
  z-index: 30;
  width: min(480px, 52%);
  min-height: 96px;
  padding: 15px 18px;
  border: 1px solid rgba(234, 255, 255, 0.48);
  border-radius: 20px;
  background: rgba(2, 16, 30, 0.78);
  backdrop-filter: blur(10px);
  box-shadow:
    var(--shadow-cyan),
    inset 0 0 20px rgba(77, 252, 255, 0.1);
  opacity: 0;
  pointer-events: none;
  transform: translateX(-50%);
  transition:
    opacity 0.2s ease,
    transform 0.2s ease;
}

.detail-pop.visible {
  opacity: 1;
  transform: translateX(-50%) translateY(-6px);
}

.detail-pop h3 {
  margin: 0 0 6px;
  color: var(--cyan);
  font-size: 18px;
}

.detail-pop p {
  margin: 0;
  color: #c9f7ff;
  font-size: 13px;
  line-height: 1.5;
}

/* =========================
   RESPONSIVE PC
========================= */

@media (max-width: 1500px), (max-height: 860px) {
  .stage {
    padding: 14px;
  }

  .layout {
    grid-template-columns: minmax(660px, 1fr) 300px;
    gap: 14px;
  }

  .globe-wrap {
    width: clamp(370px, 41vw, 560px);
    height: clamp(370px, 41vw, 560px);
  }

  .core-label {
    min-height: 86px;
    font-size: clamp(19px, 1.6vw, 23px);
  }

  .cluster.problem,
  .cluster.tech {
    left: 24px;
  }

  .cluster.work,
  .cluster.projects {
    right: 22px;
  }

  .cluster.problem {
    top: 7%;
    transform: scale(0.86);
    transform-origin: left top;
  }

  .cluster.tech {
    bottom: 2%;
    transform: scale(0.82);
    transform-origin: left bottom;
  }

  .cluster.work {
    transform: scale(0.9);
    transform-origin: right top;
  }

  .cluster.projects {
    transform: scale(0.9);
    transform-origin: right bottom;
  }

  .philosophy-row {
    transform: translateX(-50%) scale(0.86);
    bottom: 16px;
  }

  .side-panel {
    padding: 12px;
  }

  .panel-section {
    padding-bottom: 10px;
    margin-bottom: 10px;
  }

  .panel-title {
    margin-bottom: 7px;
    font-size: clamp(16px, 1.2vw, 20px);
  }

  .panel-title span {
    width: 30px;
    height: 30px;
  }

  .side-panel ul {
    gap: 5px;
    font-size: clamp(10.5px, 0.78vw, 12.5px);
    line-height: 1.28;
  }
}

@media (max-height: 740px) {
  .cluster.problem {
    top: 5%;
  }

  .cluster.tech {
    bottom: 1%;
  }

  .cluster.work {
    top: 7%;
  }

  .cluster.projects {
    bottom: 7%;
  }

  .skill-card,
  .project-card {
    min-height: 52px;
    font-size: 13px;
  }

  .card-icon {
    width: 37px;
    height: 37px;
    font-size: 17px;
  }

  .score {
    font-size: 21px;
  }

  .github-flyout {
    width: 285px;
    padding: 12px;
  }

  .github-list a {
    min-height: 27px;
    font-size: 11.5px;
  }

  .philosophy-row {
    display: none;
  }

  .detail-pop {
    top: 75%;
    width: min(440px, 48%);
  }

  .side-panel {
    padding: 10px;
  }

  .panel-section {
    padding-bottom: 8px;
    margin-bottom: 8px;
  }

  .panel-title {
    margin-bottom: 6px;
    font-size: 17px;
  }

  .panel-title span {
    width: 28px;
    height: 28px;
    font-size: 13px;
  }

  .side-panel ul {
    gap: 4px;
    font-size: 10.5px;
    line-height: 1.22;
  }

  .side-panel li {
    padding-left: 14px;
  }

  .side-panel li::before {
    font-size: 9px;
  }
}

@media (max-width: 1220px) {
  .stage {
    min-width: 960px;
  }

  .layout {
    grid-template-columns: minmax(640px, 1fr) 280px;
  }

  .cluster.problem,
  .cluster.tech {
    left: 22px;
  }

  .cluster.work,
  .cluster.projects {
    right: 22px;
  }

  .cluster.problem {
    transform: scale(0.78);
    transform-origin: left top;
  }

  .cluster.tech {
    transform: scale(0.76);
    transform-origin: left bottom;
  }

  .cluster.work,
  .cluster.projects {
    transform: scale(0.82);
  }

  .globe-wrap {
    width: clamp(360px, 40vw, 500px);
    height: clamp(360px, 40vw, 500px);
  }

  .side-panel {
    padding: 10px;
  }

  .side-panel ul {
    gap: 4px;
  }

  .panel-section {
    padding-bottom: 8px;
    margin-bottom: 8px;
  }
}

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