


body:has(.motivational-sky-page),
html.theme-dark body:has(.motivational-sky-page) {
  background: #070b13;
}

body:has(.motivational-sky-page) #nav-rail-portal-host .nav-rail {
  background: color-mix(in srgb, rgb(20 20 22) 85%, transparent);
  border-top-color: color-mix(in srgb, #fff 12%, transparent);
  
  color: rgb(228 228 230);
}


.motivational-sky-page { --gt-soft-bg: #0a0f1b; }


@keyframes skymap-twinkle {
  0% { opacity: .45; opacity: var(--tw1, .45); transform: scale(1); }
  50% { opacity: 1; opacity: var(--tw2, 1); transform: scale(1.06); }
  100% { opacity: .45; opacity: var(--tw1, .45); transform: scale(1); }
}

@keyframes skymap-drift {
  0% { transform: translate(calc(-1 * 0px), calc(-1 * 0px)); transform: translate(calc(-1 * var(--dx, 0px)), calc(-1 * var(--dy, 0px))); }
  50% { transform: translate(0px, 0px); transform: translate(var(--dx, 0px), var(--dy, 0px)); }
  100% { transform: translate(calc(-1 * 0px), calc(-1 * 0px)); transform: translate(calc(-1 * var(--dx, 0px)), calc(-1 * var(--dy, 0px))); }
}


.skymap-sky-svg { display: block; width: 100%; height: 100%; cursor: pointer; }
.skymap-bg-grad {  }

.skymap-star-glow { fill: url(#skymapStarGlow); pointer-events: none; }
.skymap-star-tw { animation: skymap-twinkle 3.4s ease-in-out infinite; animation: skymap-twinkle var(--twDur, 3.4s) ease-in-out infinite; }
.skymap-star-tw-slow { animation: skymap-twinkle 16s ease-in-out infinite; animation: skymap-twinkle var(--twDur, 16s) ease-in-out infinite; }
.skymap-star-flare { pointer-events: none; mix-blend-mode: screen; }
.skymap-star-glow-outer { fill: url(#skymapStarGlowOuter); pointer-events: none; }
.skymap-drift { animation: skymap-drift 120s linear infinite; animation: skymap-drift var(--driftDur, 120s) linear infinite; will-change: transform; }


.skymap-const-line {
  vector-effect: non-scaling-stroke;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.skymap-const-line--core {
  stroke: #e5f0ff;
  stroke-width: 1.6;
  opacity: 0.95;
}

.skymap-const-line--glow {
  stroke: #93c5ff;
  stroke-width: 3;
  opacity: 0.35;
}


.skymap-grid-line { opacity: .08; }

.skymap-area-label {
  font: 600 11px/1.2 ui-sans-serif, system-ui;
  fill: #fff;
  opacity: .5;
  paint-order: stroke;
  stroke: rgba(0, 0, 0, .35);
  stroke-width: 2px;
  -webkit-user-select: none;
          user-select: none;
}

.skymap-area-group { cursor: pointer; transition: all 0.3s ease; }

.skymap-area-hover {
  fill: transparent;
  stroke: rgba(255, 255, 255, 0.05);
  stroke-width: 1px;
  transition: fill 0.4s ease, stroke 0.4s ease;
}

.skymap-area-group:hover .skymap-area-hover {
  fill: rgba(255, 255, 255, 0.06);
  stroke: rgba(255, 255, 255, 0.25);
  stroke-width: 1.5px;
}

.skymap-area-group:hover .skymap-area-label {
  font-size: 1.25em;
  fill: #fff;
  text-shadow: 0 0 6px rgba(255, 255, 255, 0.8);
}


.skymap-overlay {
  position: fixed;
  inset: 0;
  display: grid;
  place-items: center;
  background: transparent;
  opacity: 0;
  pointer-events: none;
  transition: opacity .28s ease;
  z-index: 2000;
  color: whitesmoke;
  font-weight: 700;
}
.skymap-overlay--show { opacity: 1; pointer-events: auto; }


.skymap-close-btn {
  position: relative;
  -webkit-appearance: none;
          appearance: none;
  border: 0;
  background: none;
  padding: 0;
  margin: 0;

  font-size: 18px;
  line-height: 1;
  color: inherit;
  opacity: 0.7;
  cursor: pointer;
}


.skymap-close-btn::before {
  content: "";
  position: absolute;
  inset: -38px; 
}


.skymap-close-btn:active {
  transform: scale(0.92);
}


.skymap-card {
  max-width: min(95vw, 740px);
  border-radius: 16px;
  padding: 18px;
  background: rgba(0, 0, 0, 0.45);
  backdrop-filter: blur(8px) saturate(1.6);
  -webkit-backdrop-filter: blur(8px) saturate(1.6);
  border: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: 0 6px 28px rgba(0, 0, 0, 0.18);
  transform: scale(.98);
  opacity: .96;
  transition: transform .28s ease, opacity .28s ease;
  line-height: 1.25;
}
@media (min-width: 410px) {
.skymap-card {
max-width: min(95vw, 740px);
}
}

.skymap-overlay--show .skymap-card { 
  transform: scale(1); opacity: 1;
 }
 
 .skymap-overlay--show .skymap-card {
  overflow-y: auto;
  height: calc(100svh - 200px); 
  margin-top: 50px;           
  max-height: fit-content;
  overflow-x: hidden;
}


@media (orientation: landscape) and (max-height: 500px) {
  .skymap-overlay--show .skymap-card.skymap-card--substances, .skymap-card.intro{
    -webkit-mask-image: linear-gradient(
      to bottom,
      black 85%,
      transparent 100%
    );
    mask-image: linear-gradient(
      to bottom,
      black 85%,
      transparent 100%
    );
    box-shadow: inset 0 -20px 24px rgba(0,0,0,.55);
  }
   .skymap-overlay--show .skymap-card {
  overflow-y: auto;

  height: calc(100svh - 100px); 
  max-height: fit-content;
}
}


@media (orientation: portrait) and (max-height: 700px) {
  .skymap-overlay--show .skymap-card.skymap-card--substances, .skymap-card.intro {
    -webkit-mask-image: linear-gradient(
      to bottom,
      black 85%,
      transparent 100%
    );
    mask-image: linear-gradient(
      to bottom,
      black 85%,
      transparent 100%
    );
    box-shadow: inset 0 -20px 24px rgba(0,0,0,.55);
  }
}


.skymap-sky-wrap { position: relative; }
.skymap-sky-wrap .skymap-sky-svg { transition: opacity .28s ease; will-change: opacity; }
.skymap-sky-backdrop {
  position: absolute;
  inset: 0;
  background: #0a0f1b;
  opacity: 0;
  transition: opacity .28s ease;
  will-change: opacity;
}
.skymap-sky-wrap--dim .skymap-sky-svg {
  opacity: 0.8;
  filter: blur(3px) saturate(1.1);
  transition: opacity .4s ease, filter .4s ease;
}
.skymap-sky-wrap--dim .skymap-sky-backdrop {
  opacity: 1;
  background: rgba(0, 0, 0, 0.35);
  backdrop-filter: blur(4px) brightness(0.9);
  -webkit-backdrop-filter: blur(4px) brightness(0.9);
  transition: background .4s ease, -webkit-backdrop-filter .4s ease;
  transition: background .4s ease, backdrop-filter .4s ease;
  transition: background .4s ease, backdrop-filter .4s ease, -webkit-backdrop-filter .4s ease;
}


.skymap-scale {
  display: flex;
  justify-content: space-between;
  gap: 8px;
  margin-top: 12px;
}

.skymap-scale-btn {
  flex: 1 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  min-width: 0;
  max-width: calc(100vw / 6);
  padding: 10px 6px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: #fff;
  font-size: 11px;
  cursor: pointer;
  transition: all 0.2s ease;
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
}
.skymap-scale-btn:hover {
  background: rgba(255, 255, 255, 0.12);
  border-color: rgba(255, 255, 255, 0.25);
}
.skymap-scale-btn.active {
  background: rgba(255, 255, 255, 0.22);
  border-color: rgba(255, 255, 255, 0.5);
  box-shadow: 0 0 10px rgba(255, 255, 255, 0.4);
}
.skymap-scale-val {
  font-weight: 600;
  font-size: 14px;
  margin-bottom: 2px;
}
.skymap-scale-label {
  width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  opacity: 0.75;
  text-align: center;
  line-height: 1.1;
}


.skymap-actions {
  display: flex;
  gap: 10px;
  justify-content: flex-end;
  min-width: 0;
  margin-top: 12px;
}
.skymap-btn {
  --glow: rgba(140, 180, 255, 0.45);

  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 0;
  max-width: 25vw;
  padding: 10px 18px;
  border-radius: 12px;
  border: 1px solid rgba(255,255,255,.18);
  cursor: pointer;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;

  background: linear-gradient(
    180deg,
    rgba(255,255,255,.28),
    rgba(255,255,255,.08)
  );

  color: #0c1222;
  font-weight: 600;
  letter-spacing: .2px;

  backdrop-filter: blur(6px) saturate(1.2);
  -webkit-backdrop-filter: blur(6px) saturate(1.2);

  box-shadow:
    0 6px 18px rgba(0,0,0,.25),
    inset 0 0 0 1px rgba(255,255,255,.25);

  transition:
    transform .18s ease,
    box-shadow .18s ease,
    background .18s ease;
}

.skymap-btn:hover {
  transform: translateY(-1px) scale(1.02);
  box-shadow:
    0 10px 28px rgba(0,0,0,.35),
    0 0 14px var(--glow),
    inset 0 0 0 1px rgba(255,255,255,.45);
}

.skymap-btn:active {
  transform: translateY(0) scale(.985);
  box-shadow:
    0 6px 16px rgba(0,0,0,.35),
    inset 0 0 0 1px rgba(255,255,255,.35);
}


.skymap-btn--ghost {
  background: linear-gradient(
    180deg,
    rgba(255,255,255,.85),
    rgba(255,255,255,.55)
  );
  color: #0c1222;
}


.skymap-btn--solid {
  background: linear-gradient(
    180deg,
    #0b1224,
    #050912
  );
  color: #e8f0ff;
  --glow: rgba(120, 170, 255, 0.65);
}


.skymap-hit { fill: transparent; pointer-events: auto; cursor: pointer; }


.skymap-scale-btn:focus,
.skymap-scale-btn:focus-visible {
  outline: none;
  box-shadow: none;
}





.skymap-goal-overlay {
  position: absolute;
  top: 20%;
  left: 50%;
  transform: translateX(-50%);
  z-index: 100;
  color: #fff;
  padding: 16px 22px;
  border-radius: 16px;
  max-width: 90%;
  width: 480px;
  font-size: 14px;
  line-height: 1.45;
  text-align: left;
  pointer-events: auto;
  box-shadow: 0 0 20px rgba(0, 0, 0, 0.4);
}

.skymap-goal-overlay h3 {
  margin: 0 0 8px;
  font-size: 16px;
}

.skymap-goal-overlay p {
  margin: 8px 0;
  opacity: 0.9;
}


.skymap-sky-backdrop {
  z-index: 0;
}
.skymap-sky-svg {
  position: relative;
  z-index: 1;
}








.page-shell[data-route="needs"] {
  
  height: 100vh;
  height: 100svh;
  height: 100dvh;
}

.skymap-content {
  flex: 1 1 auto;
  min-height: 0;
  display: flex;
  flex-direction: column;
  box-sizing: border-box;
}

.motivational-sky-page {
  position: relative;
  width: 100%;

  
  flex: 1 1 auto;
  min-height: 0;

  overflow: hidden;

  
  background: linear-gradient(
    180deg,
    #0d1424 0%,
    #0a0f1b 60%,
    #070b13 100%
  );

  
  --skymap-chrome-top: max(
    0px,
    var(--topbar-h, 0px) - var(--app-content-top-offset, var(--topbar-h, 0px))
  );
  --skymap-chrome-bottom: var(--app-bottom-safe-reserve, 0px);
}



.skymap-sky-wrap {
  position: absolute;
  inset: 0px 0 0px 0;
  inset: var(--skymap-chrome-top, 0px) 0 var(--skymap-chrome-bottom, 0px) 0;
  width: auto;
  height: auto;
}

.skymap-sky-svg {
  width: 100%;
  height: 100%;
  display: block;
}





.skymap-area-label-layer {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 3;

  
}

.skymap-area-label-html {
  position: absolute;
  transform: translateZ(0);
  pointer-events: auto;

  font-weight: 600;
  font-size: clamp(13px, 1.4vw, 18px);
  letter-spacing: 0.02em;

  color: rgba(210, 235, 255, 0.85);
  text-shadow:
    0 1px 6px rgba(0,0,0,.45),
    0 0 12px rgba(160,200,255,.25);

  -webkit-user-select: none;

          user-select: none;
  cursor: pointer;
}

.skymap-const-label-layer {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 2;
}

.skymap-const-label {
  position: absolute;
   transform: translate(-50%, 0);

  transform-origin: top center;
  text-align: center;
  white-space: nowrap;
  z-index: 1;
}

.skymap-const-title {
  font-weight: 600;
  font-size: 13px;
  color: #bdf;
}

.skymap-const-area {
  font-size: 11px;
  color: #9dc;
  opacity: 0.85;
}


.skymap-sky-svg {
  shape-rendering: geometricPrecision;
  transform: translateZ(0);
}

.skymap-sky-svg {
  will-change: transform;
}

.skymap-star-glow,
.skymap-star-core {
  shape-rendering: geometricPrecision;
}

.skymap-sky-svg {
  min-height: 0 !important;
  min-width: 0 !important;
}




 .skymap-area-label-layer *, .skymap-const-label-layer *, .skymap-noselect,
.skymap-noselect *, .skymap-sky-wrap, .skymap-sky-wrap * {
  -webkit-user-select: none !important;
  user-select: none !important;
  -webkit-touch-callout: none !important;
}


.skymap-allow-select,
.skymap-allow-select * {
  -webkit-user-select: text !important;
  user-select: text !important;
}



.skymap-star-question {
  fill: rgba(230,240,255,0.92);
  font-size: 12px;
  font-weight: 500;
  pointer-events: none;
  text-shadow:
    0 1px 2px rgba(0,0,0,.6),
    0 0 6px rgba(120,160,255,.35);
  line-height: 1.15;
  opacity: 0.9;
  pointer-events: none;
}

.skymap-star-question {
  opacity: 0;
  transition: opacity 140ms ease-out;
  pointer-events: none;
  will-change: opacity;
}

.skymap-star-question.is-visible {
  opacity: 0.95;
}

.skymap-overlay.skymap-noselect{
  pointer-events: none;   
}

.skymap-overlay.skymap-noselect .skymap-card{
  pointer-events: auto;   
}


@media (hover: hover) and (pointer: fine) {
  .skymap-overlay.skymap-noselect .skymap-card .skymap-btn {
    display: none;
  }
}




.motivational-sky-page:has(.skymap-overlay--modal.skymap-overlay--show)
  .skymap-overlay--area-hover {
  display: none;
}



body:has(
  #drugspro-app-web
    > div
    > div
    > main
    > div.skymap-content.skymap-content--motiv
)
.glass-toast-card {
  color: #fafafa !important;
}



.skymap-sky-wrap.is-eagle::after {
  content: "";
  position: absolute;
  inset: -18px;
  pointer-events: none;

mask-image: url(/drugspro/static/media/eagle.9dbf1d77a783e1088c41.svg);
  mask-repeat: no-repeat;
  mask-position: center;
  mask-size: contain;


-webkit-mask-image: url(/drugspro/static/media/eagle.9dbf1d77a783e1088c41.svg);
  -webkit-mask-repeat: no-repeat;
  -webkit-mask-position: center;
  -webkit-mask-size: contain;

  border: 2px solid rgba(255, 255, 255, 0.85);
  filter: drop-shadow(0 0 10px rgba(255,255,255,0.35));
  z-index: 999999 !important;
  background: #9dc;
  opacity: .1;
    transform-origin: center;
  
  }


  @media (orientation: portrait) {
  .skymap-sky-wrap.is-eagle::after {
    transform: rotate(-90deg);
  }
}

