/* =========================
   SKILL MAP
========================= */

#skillmap {
  position: relative;
}

.map-controls {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.map-viewport {
  height: 640px;
  position: relative;
  overflow: hidden;
  border-radius: 32px;
  background:
    radial-gradient(circle at 18% 25%, rgba(34, 211, 238, 0.18), transparent 24%),
    radial-gradient(circle at 80% 70%, rgba(167, 139, 250, 0.18), transparent 28%),
    rgba(15, 23, 42, 0.62);
  border: 1px solid rgba(148, 163, 184, 0.2);
  cursor: grab;
}

.map-viewport:active {
  cursor: grabbing;
}

.skill-map {
  width: 2300px;
  height: 1300px;
  position: relative;
  border-radius: 32px;
  padding: 40px;
  overflow: hidden;
  transition: transform 0.15s ease;
  user-select: none;
  transform: translate(0px, 0px);
}

.skill-map::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.035) 1px, transparent 1px);
  background-size: 48px 48px;
  mask-image: radial-gradient(circle, black 40%, transparent 90%);
}

.map-label {
  position: absolute;
  left: 1880px;
  top: 36px;
  color: #64748b;
  font-size: 13px;
  z-index: 2;
}

.map-path {
  position: absolute;
  height: 2px;
  background: linear-gradient(90deg, rgba(34, 211, 238, 0.35), rgba(167, 139, 250, 0.15));
  transform-origin: left center;
  z-index: 0;
  opacity: 0.6;
}

.path-one {
  width: 520px;
  left: 520px;
  top: 310px;
  transform: rotate(-14deg);
}

.path-two {
  width: 420px;
  left: 580px;
  top: 570px;
  transform: rotate(18deg);
}

.path-three {
  width: 360px;
  left: 1300px;
  top: 500px;
  transform: rotate(-28deg);
}

.path-four {
  width: 500px;
  left: 920px;
  top: 760px;
  transform: rotate(20deg);
}

.path-five {
  width: 460px;
  left: 1350px;
  top: 760px;
  transform: rotate(10deg);
}

.path-six {
  width: 390px;
  left: 430px;
  top: 880px;
  transform: rotate(-18deg);
}

.path-seven {
  width: 390px;
  left: 1500px;
  top: 930px;
  transform: rotate(-10deg);
}

.world-card {
  width: 255px;
  min-height: 220px;
  padding: 22px;
  border-radius: 28px;
  position: absolute;
  cursor: pointer;
  background: rgba(2, 6, 23, 0.76);
  border: 1px solid rgba(148, 163, 184, 0.24);
  box-shadow: 0 25px 70px rgba(0, 0, 0, 0.32);
  backdrop-filter: blur(18px);
  transition: 0.25s ease;
  z-index: 1;
}

.world-card:hover {
  transform: translateY(-8px) scale(1.02);
  border-color: rgba(34, 211, 238, 0.75);
}

.world-card.enumeration {
  left: 180px;
  top: 120px;

  border: 2px solid #22d3ee;
}

.world-card.linux {
  left: 700px;
  top: 420px;

  border: 2px solid #8119d6;
}

.world-card.web {
  left: 1480px;
  top: 95px;
}

.world-card.networking {
  left: 1620px;
  top: 440px;
}

.world-card.cryptography {
  left: 360px;
  top: 880px;
}

.world-card.forensics {
  left: 1080px;
  top: 900px;
}

.world-card.steganography {
  left: 1950px;
  top: 840px;
}

.world-card.password-attacks {
  left: 1190px;
  top: 170px;
}

.world-icon {
  font-size: 38px;
  margin-bottom: 12px;
}

.world-card h3 {
  font-size: 24px;
  margin: 8px 0;
}

.world-card p {
  color: #cbd5e1;
  line-height: 1.55;
}

.world-progress {
  margin: 16px 0 8px;
}

.world-progress span {
  display: block;
  height: 100%;
  background: linear-gradient(90deg, #22c55e, #22d3ee);
  transition: 0.45s ease;
}

.fog {
  opacity: 0.62;
  filter: grayscale(0.55);
}

.locked-world {
  box-shadow: inset 0 0 45px rgba(15, 23, 42, 0.55);
}

.unlocked-world {
  border-color: rgba(34, 211, 238, 0.45);
}

.world-unlocked {
  opacity: 1 !important;
  filter: none !important;
  border-color: rgba(34, 197, 94, 0.65) !important;
  box-shadow:
    0 25px 70px rgba(0, 0, 0, 0.32),
    0 0 35px rgba(34, 197, 94, 0.28) !important;
}

.world-detail {
  border-radius: 32px;
  padding: 30px;
  background: rgba(15, 23, 42, 0.72);
  border: 1px solid rgba(148, 163, 184, 0.2);
}

.world-content {
  animation: fade 0.25s ease;
}

.world-badge {
  padding: 14px 18px;
  border-radius: 999px;
  background: rgba(34, 211, 238, 0.14);
  border: 1px solid rgba(34, 211, 238, 0.35);
  color: #67e8f9;
  font-weight: 900;
}

.area-scroll{

    overflow-x:auto;

    padding-top: 10px;
padding-bottom: 10px;

    overflow-y:hidden;

    margin-bottom:22px;

    scrollbar-width:none;

}

.area-scroll::-webkit-scrollbar{

    display:none;

}

.area-grid{

    display:flex;

    gap:18px;

    width:max-content;

}

.area-card{

    width:420px;

    flex-shrink:0;

}

.area-card {
  padding: 22px;
  border-radius: 24px;
  background: rgba(2, 6, 23, 0.62);
  border: 1px solid rgba(148, 163, 184, 0.22);
  cursor: pointer;
  transition: 0.25s ease;
}

.area-card:hover {
  transform: translateY(-5px);
}

.unlocked-area {
  border-color: rgba(34, 197, 94, 0.55);
}

.locked-area{

    opacity:.6;

    cursor:not-allowed;

    border-style:dashed;

    border-color:rgba(250,204,21,.25);

    background:
        linear-gradient(
            135deg,
            rgba(120,53,15,.12),
            rgba(15,23,42,.82)
        );

}

.locked-area h4{

    color:#facc15;

}

.area-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.sub-icon {
  width: 28px;
  height: 28px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: rgba(34, 211, 238, 0.15);
  color: #67e8f9;
  font-weight: 900;
}

.subsection-panel {
  margin-top: 20px;
  padding: 26px;
  border-radius: 28px;
  background: rgba(2, 6, 23, 0.54);
  border: 1px solid rgba(34, 211, 238, 0.22);
}

.zone-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
  margin: 22px 0;
}

.zone-card {
  padding: 18px;
  border-radius: 22px;
  background: rgba(15, 23, 42, 0.85);
  border: 1px solid rgba(148, 163, 184, 0.2);
  cursor: pointer;
  transition: 0.2s ease;
}

.zone-card:hover,
.zone-card.expanded {
  border-color: rgba(167, 139, 250, 0.65);
  background: rgba(88, 28, 135, 0.22);
}

.zone-card h4 {
  display: flex;
  justify-content: space-between;
  margin-top: 0;
}

.zone-card p {
  color: #cbd5e1;
}

.mission-chain {
  display: grid;
  gap: 14px;
  margin-top: 22px;
}

.map-mission {
  display: grid;
  grid-template-columns: 54px 1fr 110px;
  align-items: center;
  gap: 12px;
  padding: 18px;
  border-radius: 22px;
  background: rgba(15, 23, 42, 0.9);
  border: 1px solid rgba(148, 163, 184, 0.18);
}

.map-mission span {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border-radius: 14px;
  background: rgba(34, 211, 238, 0.12);
}

.map-mission h5 {
  margin: 0 0 6px;
  font-size: 16px;
}

.map-mission p {
  margin: 0;
  color: #cbd5e1;
}

.map-mission button {
  border: none;
  border-radius: 12px;
  padding: 10px 14px;
  font-weight: 900;
  cursor: pointer;
  background: linear-gradient(135deg, #22d3ee, #a78bfa);
  color: #020617;
}

.map-mission button:disabled {
  opacity: 0.45;
  cursor: not-allowed;
}

.completed {
  border-color: rgba(34, 197, 94, 0.55);
}

.unlocked {
  border-color: rgba(34, 211, 238, 0.5);
}

.locked-map {
  opacity: 0.52;
}

/* =========================
   COMING SOON MISSIONS
========================= */

.coming-soon-mission{

    opacity:.85;

    border-style:dashed;

    border-color:rgba(250,204,21,.25);

    background:
        linear-gradient(
            135deg,
            rgba(120,53,15,.18),
            rgba(15,23,42,.92)
        );

}

.coming-soon-mission span{

    background:rgba(250,204,21,.12);

}

.coming-soon-mission h5{

    color:#facc15;

}

.coming-soon-mission button{

    background:#312e81;

    color:#c7d2fe;

    cursor:not-allowed;

}

.coming-soon-mission:hover{

    transform:none;

    border-color:rgba(250,204,21,.45);

}

.zoomed-map {
  transform: scale(1.04);
}

/* =========================
   LINUX WORLD UNLOCK
========================= */

.linux-unlock-glow{

    animation:linuxUnlockGlow 3.2s ease-in-out;

}

@keyframes linuxUnlockGlow{

    0%{

        transform:scale(1);

        box-shadow:
            0 0 0 rgba(34,197,94,0);

    }

    20%{

        transform:scale(1.03);

        box-shadow:
            0 0 22px rgba(34,197,94,.55),
            0 0 50px rgba(34,197,94,.35);

    }

    40%{

        transform:scale(1);

        box-shadow:
            0 0 10px rgba(34,197,94,.25);

    }

    60%{

        transform:scale(1.03);

        box-shadow:
            0 0 26px rgba(34,197,94,.65),
            0 0 60px rgba(34,197,94,.40);

    }

    80%{

        transform:scale(1);

        box-shadow:
            0 0 12px rgba(34,197,94,.20);

    }

    100%{

        transform:scale(1);

        box-shadow:none;

    }

  }

  /* =========================
   HORIZONTAL AREA SCROLLER
========================= */

.area-scroll-wrapper{

    display:flex;

    align-items:center;

    gap:18px;

    margin-bottom:26px;

}

.scroll-arrow{

    width:52px;

    height:52px;

    border-radius:50%;

    border:none;

    cursor:pointer;

    font-size:20px;

    font-weight:bold;

    background:#1e293b;

    color:white;

    transition:.25s;

}

.scroll-arrow:hover{

    background:#22d3ee;

    color:#020617;

    transform:scale(1.08);

}