/*this file has common styling attributes for all of the components, they should be overwritten as needed*/
@import url('https://fonts.googleapis.com/css2?family=IBM+Plex+Mono:wght@400&family=IBM+Plex+Sans:wght@400;500;600;700&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Noto+Emoji:wght@300..700&display=swap'); 

:root {
  --back-color: #2c2c2c;
    --border-color: #303030;
  --secondary-color: #9e4e9e;
  --orange: #FFD666;
}

#main-base-box.background-brgf {
  background-position: 96% 125%;
  background-size: initial;
}

#main-base-box.background-fc {
  background-position: 0% 85%;
  background-size: initial;
}

#main-base-box.background-ll {
  background-position: 50% 30%;
  background-size: 125%;
}

#main-base-box.background-msl {
  background-position: 50% 80%;
  background-size: contain;
}

#main-base-box.background-aec {
  background-position: 10% 80%;
  background-size: initial;
}

#main-base-box.background-eg {
  background-position: 50% 130%;
  background-size: 130%;
}

#main-base-box.background-sse {
  background-position: 50% 80%;
  background-size: 120%;
}

.show-scroll {
  scrollbar-color: var(--orange) var(--secondary-color);
  scrollbar-width: auto;
  overflow-y: scroll;
}

.toast-component {
  display: none;
}

.toast {
  position: relative;
  background-color: var(--secondary-color);
  color: #ffffff;
  padding: 12px 16px;
  border-radius: 6px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
  align-items: center;
  gap: 12px;
  font-family: sans-serif;
  z-index: 1000;
}

.quest-done .toast-component {
  display: block;
}

.hidden {
  display: none !important;
}

.toast-close {
  background: none;
  border: none;
  color: #ffffff;
  cursor: pointer;
  padding: 0;
  opacity: 0.8;
}

.toast-close:hover {
  opacity: 1;
}

.standard-component {
  background-color: var(--back-color);
  border-radius: 25px;
  border-width: 1px;
  border-style: solid;
  border-color: var(--border-color);
  display: flex;
  overflow: hidden;
  text-overflow: clip;
  position: absolute;
  flex-direction: column;
  color: white;
}

.underlined {
  text-decoration: underline;
}

.text-component {
  font-family: IBM Plex Sans;
}

.center-text {
  text-align: center;
}

.center-text .text-component {
  text-align: center;
}

.left-text .text-component {
  text-align: left;
}

.right-text .text-component {
  text-align: right;
}

.right-text {
  text-align: right;
}

.border {
  border: 2px solid;
  box-sizing: border-box;
  padding: 2dvw;
}

.submit-component {
  background-color: var(--back-color);
  color: white;
  border-radius: 8px;
  opacity: 1;
  
  display: flex;
  /* justify-content: center; */
  align-items: center;
}

.submit-component-text {
  overflow-y: auto;
  max-height: 100%;
  margin: 10% 7%;
}

.submit-component:hover {
  background-color: var(--border-color);
}

.submit-component:active {
  background-color: #000000;
  transform: scale(0.99);
}

.border-component {
  border: 4px solid rgba(255, 255, 255, 0.85);
  box-sizing: border-box;
  border-radius: 4px;
  position: absolute;

  filter: url('#wiggle-stroke');
  z-index: -1;
}

.border-shadow .border-component {
  filter: url('#wiggle-stroke') drop-shadow(2px 4px 6px rgba(255, 255, 255, 1));
}

.shadow {
  text-shadow: 0px 4px 4px #FFFFFF;
}

.emoji-component {
  font-family: "Noto Emoji", sans-serif;
  font-optical-sizing: auto;
  font-weight: 400;
  font-style: normal;
  font-variant-emoji: text;
  font-palette: --monochrome;
  font-size-adjust: none;

  display: flex;
  justify-content: center;
  align-items: center;
}

.header-component {
    border-radius: 0 0 25px 25px;
    height: 100%;
    background-color: var(--back-color);
    display: flex;
    flex-direction: column;
}

.header-component img {
    width: 40%;
}

.progress-bar {
  flex: 1;
  height: 10px;
  border: 1.5px solid rgba(255, 255, 255, 0.5);
  /* background-color: transparent; */
  box-sizing: border-box;
  /* position: relative; */
    /* border-radius: 5%;
    background-color: var(--accent-1);  */
}

.bar-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  /* gap: 0.5dvw; */
}
.bars-container {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 0.5dvh;
}

.bar-group {
  display: flex;
  flex-direction: column;
  gap: 0.5dvh;
}

.bar-emissions {
  font-size: 1.6dvh;
  opacity: 0.85;
  letter-spacing: 0.02em;
}

.bar-wrapper {
  position: relative;
  flex-grow: 1;
  height: 100%;
  display: flex;
  align-items: center;
}

.bar {
  height: 100%;
  background-color: #dedede;
  border-radius: 0.2dvh;
  animation: expandBar var(--duration) linear forwards;
  position: relative;
}

.bar-label {
  position: absolute;
  left: 0.6dvw;
  top: 50%;
  transform: translateY(-50%);
  font-size: 1dvh;
  line-height: 1;
  white-space: nowrap;
  color: #ffffff;
  pointer-events: none;
  z-index: 1;
}

.bar-label.inside {
  position: absolute;
  right: 6px;
  left: auto;
  top: 50%;
  transform: translateY(-50%);
  font-size: 0.8rem;
  color: var(--secondary-color);
  white-space: nowrap;
}

.bar-label.outside {
  position: static;
  transform: none;
  font-size: 0.8rem;
  color: white;
  white-space: nowrap;
}

.bar-fill {
  height: 100%;
  background-color: #ffa86b;
  width: 12%; /* Adjust progress percentage here */
}

.bar-header-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 6px;
    font-weight: 600;
}

.bar-prompts-title {
    font-size: 0.85rem;
    opacity: 0.8;
}

.bar-wrapper {
    display: flex;
    align-items: center;
    flex-grow: 1;
    position: relative;
    gap: 8px;
}


.methodology {
  color: white;
  font-size: 0.65rem;
  opacity: 0.65;
}

.methodology a {
  color: white;
}

.score-component {
  width: 100%;
  max-width: 600px;
  color: #ffffff;
}

@keyframes expandBar {
  from {
    width: 0%;
  }
  to {
    width: var(--target-width, 10%);
  }
}

.nav-menu {
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    padding-left: 5%;
    padding-right: 5%;
    padding-top: 3%;
}

.component-container {
    position: absolute;
    display: none;
    -webkit-user-select: none;
    user-select: none;
}

.component-container > div {
    width: 100%;
    height: 100%;
}

.typewriter-target {
  font-family: IBM Plex Mono;
}

.body_text .typewriter-target {
  font-size: 14px;
}

.center-horizontal {
  display: flex;
  justify-content: center;
  flex-direction: row;
}

.center-vertical {
  display: flex;
  align-items: center;
}

.center-all {
  display: flex;
  justify-content: center;
  align-items: center;
}

.center-all .text-component {
  display: flex;
  justify-content: center;
  align-items: center;
}

.center-vertical .text-component {
  display: flex;
  align-items: center;
}

.center-horizontal .text-component {
  display: flex;
  flex-direction: row;
  align-items: center;
}

.bottom-vertical .text-component {
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
}

.font-weight-600 {
  font-weight: 600;
}

ul {
  padding-inline-start: 5dvw;
}

/* copied from figma 17.8.2026 */
.title {
  font-family: IBM Plex Sans;
  font-weight: 700;
  font-style: Bold;
  font-size: 36px;
  /* leading-trim: NONE; */
  line-height: 44px;
  letter-spacing: -0.5%;

  text-align: center;
}

.h1 {
  font-family: IBM Plex Sans;
  font-weight: 700;
  font-style: Bold;
  font-size: 28px;
  /* leading-trim: NONE; */
  line-height: 36px;
  letter-spacing: -0.3%;
}

.h2 {
  font-family: IBM Plex Sans;
  font-weight: 600;
  font-style: SemiBold;
  font-size: 22px;
  /* leading-trim: NONE; */
  line-height: 29px;
  letter-spacing: -0.2%;

}

.h3 {
  font-family: IBM Plex Sans;
  font-weight: 600;
  font-style: SemiBold;
  font-size: 18px;
  /* leading-trim: NONE; */
  line-height: 24px;
  letter-spacing: 0%;

}

.body_text {
  font-family: IBM Plex Sans;
  font-weight: 400;
  font-style: Regular;
  font-size: 16px;
  /* leading-trim: NONE; */
  line-height: 24px;
  letter-spacing: 0%;

}
.emph_body {
  font-family: IBM Plex Sans;
  font-weight: 500;
  font-style: Medium;
  font-size: 16px;
  color: #FFFFFF;
  /* leading-trim: NONE; */
  line-height: 24px;
  letter-spacing: 0%;
}

.secondary_text {
  font-family: IBM Plex Sans;
  font-weight: 400;
  font-style: Regular;
  font-size: 14px;
  /* leading-trim: NONE; */
  line-height: 20px;
  letter-spacing: 0%;

}

.captions {
  font-family: IBM Plex Sans;
  font-weight: 500;
  font-style: Medium;
  font-size: 12px;
  /* leading-trim: NONE; */
  line-height: 16px;
  letter-spacing: 0.2%;

}

.legal {
  font-family: IBM Plex Sans;
  font-weight: 400;
  font-style: Regular;
  font-size: 11px;
  /* leading-trim: NONE; */
  line-height: 14px;
  letter-spacing: 0.2%;

}

.tap {
  font-family: IBM Plex Sans;
  font-weight: 400;
  font-style: Medium;
  font-size: 10px;
  /* leading-trim: NONE; */
  line-height: 12px;
  letter-spacing: 0.3%;

}

.prompt-text {
  font-size: 1.1rem;
  line-height: 1.4;
  margin-bottom: 2rem;
  color: #e2e4f6;
}

.option {
  display: flex;
  align-items: flex-start;
  margin-bottom: 1.5rem;
  cursor: pointer;
}

.orange {
  color: var(--orange);
}

.orange.nearby {
  color: var(--orange);
}

.offwhite {
  color: #DADADA;
}

.secondary-color {
  color: var(--secondary-color);
  font-weight: 500;
}

.faded {
  opacity: 0.3;
}

ul {
  padding-inline-start: 5dvw;
}

.checkbox-component {
  font-family: "IBM Plex Sans";
}

.checkbox-box {
  width: 40px;
  height: 40px;
  background-color: #d1d5db;
  flex-shrink: 0;
  margin-right: 15px;
  position: relative;
  transition: background-color 0.2s ease;
}

/* SVG Cross Overlay */
.checkbox-box svg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
}

.checkbox-box svg path {
  stroke: #1a1a2e;
  stroke-width: 4;
  stroke-linecap: round;
  stroke-dasharray: 60;
  stroke-dashoffset: 60;
  transition: stroke-dashoffset 0.25s ease-in-out;
}

/* Draw cross on selection */
.option.selected .checkbox-box svg path {
  stroke-dashoffset: 0;
}

.label-text {
  /* font-family: sans-serif; */
  font-size: 0.95rem;
  line-height: 1.35;
  color: #e2e4f6;
}

.option.disabled {
  pointer-events: none;
  opacity: 0.7;
}
/* ============================================================
   MAP COMPONENT STYLES
   ============================================================ */

/* ============================================================
   ENTRANCE MARKER
   ============================================================ */
.quest-entrance-marker {
    display: flex;
    flex-direction: column;
    align-items: center;
    pointer-events: none;          /* no interaction needed */
    z-index: 5;
}

.entrance-arrow {
    width: 24px;
    height: 24px;
    margin-bottom: 2px;
    /* rotation applied via inline style */
}

.entrance-arrow svg {
    width: 100%;
    height: 100%;
    filter: drop-shadow(0 0 4px rgba(255, 209, 102, 0.8));
}

.entrance-label {
    font-family: "IBM Plex Sans", sans-serif;
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 0.5px;
    color: #ffd166;
    text-shadow: 0 0 4px rgba(0,0,0,0.7);
    background: rgba(30, 22, 53, 0.8);
    border-radius: 4px;
    padding: 2px 6px;
    white-space: nowrap;
}

/* Main wrapper - fills entire component */
.quest-map-wrapper {
    width: 100%;
    height: 100%;
    position: relative;
}

/* Map frame - rectangular with rounded corners, NOT circular */
.quest-map-frame {
    position: relative;
    width: 100%;
    height: 100%;
    min-height: 100%;
    overflow: hidden;
    border-radius: 20px;
    /* rectangle, not circle */
    border: 2px solid rgba(235, 162, 207, 0.45);
    box-shadow:
        0 0 20px rgba(235, 162, 207, 0.25),
        inset 0 0 20px rgba(160, 32, 240, 0.12);
    background: #0e091d;
}

/* Map canvas - fills the frame, no border-radius clipping */
.quest-map-canvas {
    width: 100%;
    height: 100%;
    border-radius: 0;
    /* remove 50% circle */
    background: #0e091d;
}

.quest-location-label {
    z-index: 10;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    padding: 8px;
    border-radius: 12px;
    backdrop-filter: blur(4px);
    font-family: "IBM Plex Sans", sans-serif;
    max-width: 140px;
    text-align: center;
    cursor: pointer;
    pointer-events: auto;
    transition: border-color 0.2s ease, box-shadow 0.2s ease, opacity 0.12s ease, filter 0.2s ease;
}

.quest-location-label.visited {
    border: 1px solid #4b5563;
    background: rgba(16, 10, 31, 0.6);
    filter: grayscale(0.85);
    opacity: 0.65;
}

.quest-floating-node {
    z-index: 1;
}

.quest-location-label.visited .quest-location-name {
    color: #9ca3af;
}

.quest-location-label.not-visited .quest-location-name {
    color: #ffffff;
}

.quest-location-label.recommended {
  border: 2px solid var(--orange);
  background: rgba(24, 14, 42, 0.9);
  box-shadow: 0 0 12px rgba(255, 214, 102, 0.6), inset 0 0 6px rgba(255, 214, 102, 0.3);
  animation: recommendedGlow 2.5s ease-in-out infinite;
}

.quest-location-label.not-visited {
  border: 1.5px solid #ffffff;
  background: rgba(16, 10, 31, 0.85);
  box-shadow: 0 0 8px rgba(255, 255, 255, 0.3);
}

.quest-location-label.recommended .quest-location-name {
  color: #ffffff;
  text-shadow: 0 0 6px rgba(255, 214, 102, 0.8);
}
  
.quest-location-label.abandoned {
  border: 2px solid var(--secondary-color);
  background: rgba(24, 14, 42, 0.9);
  box-shadow: 0 0 12px rgba(158, 78, 158, 0.6), inset 0 0 6px rgba(158, 78, 158, 0.3);
}
  
.quest-location-label.abandoned .quest-location-name {
  color: #ffffff;
  text-shadow: 0 0 6px rgba(158, 78, 158, 0.8);
}

/* .quest-location-label:hover {
    opacity: 1;
    filter: grayscale(0);
}

.quest-location-label:hover .quest-location-photo img {
    transform: scale(1.08);
} */

/* Wraps the photo (not the marker root, and NOT overflow:hidden like
   .quest-location-photo) so the cluster badge has a clean place to anchor
   without being clipped by the photo's circular crop. */
.quest-location-anchor {
    position: relative;
}

.quest-location-photo {
    overflow: hidden;
    border-radius: 50%;
    box-sizing: border-box;
    border: 2px solid rgba(255, 255, 255, 0.85);
    background: #1b1330;
}

.quest-location-photo img {
    width: 44px;
    height: 44px;
    object-fit: cover;
    object-position: center;
    display: block;
    transition: transform 0.2s ease;
}

.quest-location-label.recommended .quest-location-photo {
    border-color: var(--orange);
}

.quest-location-label.not-visited .quest-location-photo {
    border-color: #eba2cf;
}

.quest-location-label.visited .quest-location-photo {
    border-color: #6b7280;
}

.quest-location-label.abandoned .quest-location-photo {
    border-color: #7a5a63;
}

@keyframes recommendedGlow {
    0%, 100% {
        box-shadow: 0 0 10px rgba(255, 214, 102, 0.5), inset 0 0 4px rgba(255, 214, 102, 0.2);
    }
    50% {
        box-shadow: 0 0 18px rgba(255, 214, 102, 0.9), inset 0 0 10px rgba(255, 214, 102, 0.5);
    }
}

.quest-location-name {
    font-family: "IBM Plex Sans", sans-serif;
    font-size: 12px;
    line-height: 14px;
    font-weight: 600;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 120px;
}

/* Zoom-dependent scaling for location labels. These only ever change
   padding/gap/max-width/font-size and the (non-root) photo's width/height -
   never `position` or `transform` on .quest-location-label itself, since
   that's the element MapLibre positions directly. */
.quest-location-label.zoom-medium {
    max-width: 90px;
    padding: 4px 5px;
    gap: 4px;
}
.quest-location-label.zoom-medium .quest-location-photo,
.quest-location-label.zoom-medium .quest-location-photo img {
    width: 30px;
    height: 30px;
}
.quest-location-label.zoom-medium .quest-location-name {
    font-size: 9px;
    line-height: 11px;
    max-width: 80px;
}

/* Zoomed out further: shrink to just the icon and drop the name label -
   text that small stops being legible anyway, so we keep the recognizable
   photo dot instead of clutter. */
.quest-location-label.zoom-small {
    max-width: none;
    padding: 0;
    gap: 0;
    border-radius: 50%;
    background: none;
    border: none;
    box-shadow: none;
    backdrop-filter: none;
}
.quest-location-label.zoom-small .quest-location-photo,
.quest-location-label.zoom-small .quest-location-photo img {
    width: 18px;
    height: 18px;
}
.quest-location-label.zoom-small .quest-location-name {
    display: none;
}

/* Grouping: when two or more labels overlap on screen, all but one ("the
   lead") fold away here. Nothing is ever destroyed or made unreachable -
   the lead grows a "+N" badge so the count is always visible, and panning
   or zooming back apart brings every label back on its own. Uses the
   `opacity` transition already declared on .quest-location-label above -
   deliberately NOT adding `transform` to that transition list, since this
   is the MapLibre-positioned element. */
.quest-location-label.is-cluster-hidden {
    opacity: 0;
    pointer-events: none;
}

.quest-location-label.is-cluster-lead {
    z-index: 11;
}

/* Anchored to .quest-location-anchor (a plain, non-clipping wrapper around
   the photo) - NOT .quest-location-photo, which needs overflow:hidden for
   its circular crop and would otherwise clip the badge. Sized and lit up
   to hold its own visually next to full, uncondensed labels nearby. */
.quest-cluster-badge {
    position: absolute;
    top: -8px;
    right: -8px;
    min-width: 24px;
    height: 24px;
    padding: 0 6px;
    border-radius: 999px;
    background: #ff007f;
    color: #ffffff;
    font-family: "IBM Plex Sans", sans-serif;
    font-size: 12px;
    line-height: 24px;
    font-weight: 700;
    text-align: center;
    border: 2px solid #100a1f;
    box-shadow: 0 0 10px rgba(255, 0, 127, 0.9), 0 0 0 2px #100a1f;
    z-index: 20;
    pointer-events: none;
    animation: clusterBadgePulse 1.6s ease-in-out infinite;
}

@keyframes clusterBadgePulse {
    0%, 100% {
        box-shadow: 0 0 8px rgba(255, 0, 127, 0.8), 0 0 0 2px #100a1f;
    }
    50% {
        box-shadow: 0 0 16px rgba(255, 0, 127, 1), 0 0 0 2px #100a1f;
    }
}

/* Ghost string popup styling */
.quest-ghost-string {
    font-family: "IBM Plex Sans", sans-serif;
    font-size: 14px;
    font-weight: 500;
    color: #ffffff;
    background: rgba(30, 22, 53, 0.8);
    border: 1px solid rgba(235, 162, 207, 0.6);
    border-radius: 12px;
    padding: 6px 12px;
    text-shadow: 0 0 6px rgba(255, 214, 102, 0.5);
    box-shadow: 0 0 12px rgba(255, 214, 102, 0.3);
    white-space: nowrap;
    pointer-events: none;
    z-index: 5;
    opacity: 1;
    transition: opacity 0.4s ease;
}

.quest-ghost-string-spawn,
.quest-ghost-string-hide {
    opacity: 0;
}

/* ============================================================
   COLLECTIBLE NODES - Pop animations
   ============================================================ */
.quest-floating-node {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    background: rgba(30, 22, 53, 0.8);
    border: 2px solid #ff007f;
    border-radius: 50%;
    box-shadow: 0 0 15px #ff007f;
    scale: 1;
    opacity: 1;
    transition: scale 0.28s ease, opacity 0.35s ease, filter 0.2s ease;
}

.quest-floating-node img {
    width: 24px;
    height: 24px;
    object-fit: contain;
}

/* Emoji collectibles - rendered as monochrome Noto Emoji text glyphs
   (via .emoji-component) instead of an <img>, so no icon asset is needed. */
.quest-floating-node .emoji-component {
    width: 100%;
    height: 100%;
    font-size: 22px;
    color: #ffffff;
    line-height: 1;
}

.quest-floating-node:hover {
    filter: brightness(1.2);
}

/* Spawn animation - starts small and fades in */
.quest-node-spawn {
    opacity: 0;
}

/* Hide animation - shrinks and fades out */
.quest-node-hide {
    opacity: 0;
}

/* Collected animation - pops and disappears */
.quest-floating-node.collected {
    scale: 1.5 !important;
    opacity: 0;
}

/* ============================================================
   GHOST WALKERS - Glowing dots on paths
   ============================================================ */
.quest-ghost-walker {
    width: 10px;
    height: 10px;
    background: #eba2cf;
    border-radius: 50%;
    box-shadow: 0 0 15px #eba2cf, 0 0 30px rgba(235, 162, 207, 0.5);
    border: 1px solid rgba(255, 255, 255, 0.3);
    animation: ghostPulse 1.5s ease-in-out infinite alternate;
}

@keyframes ghostPulse {
    0% {
        box-shadow: 0 0 10px #eba2cf, 0 0 20px rgba(235, 162, 207, 0.3);
        transform: scale(0.9);
    }
    100% {
        box-shadow: 0 0 25px #eba2cf, 0 0 50px rgba(235, 162, 207, 0.5);
        transform: scale(1.1);
    }
}

/* ============================================================
   USER LOCATION DOT
   ============================================================ */
.user-location-dot {
    width: 18px;
    height: 18px;
    background: #00f0ff;
    border: 2px solid #ffffff;
    border-radius: 50%;
    box-shadow: 0 0 15px #00f0ff, 0 0 30px #00f0ff;
    animation: userPulse 2s infinite;
}

@keyframes userPulse {
    0% {
        box-shadow: 0 0 0 0 rgba(0, 240, 255, 0.7);
    }
    70% {
        box-shadow: 0 0 0 14px rgba(0, 240, 255, 0);
    }
    100% {
        box-shadow: 0 0 0 0 rgba(0, 240, 255, 0);
    }
}

/* ============================================================
   DESTINATION MARKER
   ============================================================ */
.quest-destination-marker {
    width: 12px;
    height: 12px;
    background: #ff007f;
    border: 2px solid #ffffff;
    border-radius: 50%;
    box-shadow: 0 0 20px #ff007f, 0 0 40px rgba(255, 0, 127, 0.3);
}

/* ============================================================
   LOCATE ME BUTTON
   ============================================================ */
.quest-locate-btn {
    position: absolute;
    bottom: 3%;
    right: 4%;
    z-index: 30;
    background: rgba(23, 21, 40, 0.85);
    border: 1px solid rgba(235, 162, 207, 0.6);
    color: #eba2cf;
    width: 58px;
    height: 58px;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    cursor: pointer;
    backdrop-filter: blur(6px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.5);
    transition: background 0.2s ease, border-color 0.2s ease;
    pointer-events: auto;
}

.quest-locate-btn:hover {
    background: rgba(235, 162, 207, 0.3);
}

.quest-locate-btn.locating {
    animation: pulseBtn 1s infinite alternate;
}

.quest-locate-btn.active {
    border-color: #00f0ff;
    color: #00f0ff;
}

@keyframes pulseBtn {
    from {
        border-color: rgba(235, 162, 207, 0.4);
    }
    to {
        border-color: rgba(255, 0, 127, 1);
    }
}

/* ============================================================
   MAP SCREEN OVERRIDE
   ============================================================ */
.map-screen {
    background-color: #100a1f;
}

/* ============================================================
   RESPONSIVE ADJUSTMENTS
   ============================================================ */
@media (max-width: 480px) {
    .quest-location-label {
        max-width: 120px;
        padding: 4px 6px;
        font-size: 10px;
    }
    .quest-location-photo,
    .quest-location-photo img {
        width: 32px;
        height: 32px;
    }
    .quest-location-name {
        font-size: 10px;
        max-width: 90px;
    }
    .quest-location-label.zoom-medium .quest-location-photo,
    .quest-location-label.zoom-medium .quest-location-photo img {
        width: 24px;
        height: 24px;
    }
    .quest-location-label.zoom-small .quest-location-photo,
    .quest-location-label.zoom-small .quest-location-photo img {
        width: 16px;
        height: 16px;
    }
    .quest-floating-node {
        width: 32px;
        height: 32px;
    }
    .quest-floating-node img {
        width: 18px;
        height: 18px;
    }
    .quest-floating-node .emoji-component {
        font-size: 18px;
    }
    .quest-locate-btn {
        bottom: 2%;
        right: 3%;
        width: 42px;
        height: 42px;
    }
}

/* ============================================================
   DESTROYED MAP STYLES (prevent overflow)
   ============================================================ */
.quest-map-frame:empty,
.quest-map-canvas:empty {
    display: none;
}

.map-screen {
    background-color: #100a1f;
}

.spin-animate {
  animation: spin-bounce var(--duration) linear forwards;
}

.pop-animate {
  animation: pop-bounce var(--duration) linear 0ms 1 both;
}

@keyframes pop-bounce {
  0% {
    transform: scale(0);
  }
  80% {
    transform: scale(1.2);
  }
  
  100% {
    transform: scale(1);
  }
}

@keyframes spin-bounce {
  0% {
    opacity: 0;
    transform: translateY(-10dvh) rotate(0deg);
  }
  30% {
    opacity: 1;
    transform: translateY(2dvh) rotate(0deg);
  }
  38% {
    transform: translateY(-0.5dvh) rotate(0deg);
  }
  65% {
    transform: translateY(0.2dvh) rotate(130deg);
  }
  80% {
    transform: translateY(0) rotate(340deg);
  }
  
  100% {
    transform: rotate(360deg);
  }
}

.component-container .starsscore-container {
  display: flex;
  flex-direction: column;
  gap: clamp(12px, 2dvh, 24px);
  width: 100%;
  padding-left: 5dvh; 
  box-sizing: border-box;
}

.starcard {
  display: flex;
  align-items: flex-start;
  box-sizing: border-box;
  position: relative;
  padding-left: 5dvh;
  width: clamp(60%, calc(var(--bar-val) * 1% + 60%), 100%);
  height: 10dvh;
  transition: width 0.3s ease;
}

.star-icon {
  position: absolute;
  top: -0.5dvh;
  left: -6dvh;
  width: 10dvh;
  height: 10dvh;
  object-fit: contain;
  display: block;
  rotate: 90deg;
  transform-origin: center center;
  pointer-events: none;
}

.starcard-content {
  width: 100%;
  min-width: 0;
  }
  
.starcard-content .h1 {
  font-size: 3dvh;
  line-height: 110%;
}

.starcard-human {
  border-color: var(--orange);
  background: linear-gradient(180deg, rgba(73,73,73, 0.3) 0%, rgba(217,217,217,0.3) 100%);
}

.starcard-other {
  border-color: var(--orange);
  background: linear-gradient(180deg, rgba(255,66,196, 0.2) 18%, rgba(99,61,76,0.2) 100%);
}

/* .star-icon {
  position: absolute; */
  /* bottom: -10dvh;
  height: 10dvh;
  object-fit: contain;
  pointer-events: none;
} */

.star-animate {
  animation: spinIn var(--duration) linear forwards;
}

.slide-animate {
  animation: slideInFromBottom var(--duration) cubic-bezier(0.5, 0, 0.5, 1) 0ms 1 both;
}

@keyframes slideInFromBottom {
  from {
    transform: translateY(18vh);
  }
  to {
    transform: translateY(0);
    opacity: 1;
  }
}

@keyframes spinIn {
  0% {
    transform: scale(0) rotate(0deg);
    opacity: 0;
  }
  65% {
    transform: scale(1.4) rotate(540deg);
    opacity: 1;
  }
  100% {
    transform: scale(0) rotate(720deg);
    opacity: 0;
  }
}

    
@keyframes combined-jiggle {
  0%, 100% {
    transform: translate(0, 0);
    animation-timing-function: cubic-bezier(0.61, 1, 0.88, 1);
  }
  16.67% {
    transform: translate(-0.5dvw, -0.75dvh);
    animation-timing-function: cubic-bezier(0.37, 0, 0.63, 1);
  }
  33.34% {
    transform: translate(0.5dvw, -1.2dvh);
    animation-timing-function: ease-in-out;
  }
  50% {
    transform: translate(0dvw, -1.5dvh);
    /* animation-timing-function: cubic-bezier(0.37, 0, 0.63, 1); */
  }
  66.68% {
    transform: translate(-0.5dvw, -0.75dvh);
    animation-timing-function: cubic-bezier(0.37, 0, 0.63, 1);
  }
  83.35% {
    transform: translate(0.5dvw, -0.2dvh);
    animation-timing-function: cubic-bezier(0.12, 0, 0.39, 0);
  }
}

.nearby {
  color: rgba(255, 255, 255, 1);
  animation: combined-jiggle 5s linear infinite;
  transform-origin: center center;
  will-change: transform;
}

.gotpoints {
  opacity: 0;
  will-change: transform, opacity;
  display: block;

  animation: slide-up-fade 2.5s ease-in-out;
  animation-delay: var(--delay);
}

@keyframes slide-up-fade {
  /* Start hidden below */
  0% {
    opacity: 0;
    transform: translateY(400%);
  }
  
  /* Enter: slide up & fade in */
  20% {
    opacity: 1;
    /* transform: translateY(200%); */
  }
  60% {
    opacity: 1;
    /* transform: translateY(200%); */
  }
  
  100% {
    opacity: 0;
    transform: translateY(0%);
  }
}


/* ============================================================
   PLACE INPUT & DROPDOWN COMPONENT STYLES
   ============================================================ */

.input-component {
    position: relative;
    width: 100%;
}

/* Style the text input field */
.input-component .input-field {
    background-color: #ffffff;
    color: #000000;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    font-family: "IBM Plex Sans", sans-serif;
    font-size: 16px;
    outline: none;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.input-component .input-field:focus {
    border-color: var(--orange);
    box-shadow: 0 0 8px rgba(244, 152, 79, 0.3);
}

.input-component .input-field::placeholder {
    color: #888888;
}

/* Custom Dropdown List Container */
.place-dropdown {
    position: absolute;
    top: calc(100% + 6px);
    left: 0;
    right: 0;
    background-color: var(--back-color);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    list-style: none;
    margin: 0;
    padding: 6px 0;
    z-index: 1000;
    max-height: 220px;
    overflow-y: auto;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.6);
}

/* Dropdown Items */
.place-dropdown li {
    font-family: "IBM Plex Sans", sans-serif;
    font-size: 14px;
    line-height: 20px;
    color: #ffffff;
    padding: 10px 16px;
    cursor: pointer;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    transition: background-color 0.15s ease, color 0.15s ease;
}

.place-dropdown li:last-child {
    border-bottom: none;
}

/* Hover & Focus State */
.place-dropdown li:hover,
.place-dropdown li.active {
    background-color: var(--border-color);
    color: var(--orange);
}

/* Scrollbar styling for dark mode */
.place-dropdown::-webkit-scrollbar {
    width: 6px;
}

.place-dropdown::-webkit-scrollbar-track {
    background: var(--back-color);
    border-radius: 0 8px 8px 0;
}

.place-dropdown::-webkit-scrollbar-thumb {
    background: var(--border-color);
    border-radius: 3px;
}

.place-dropdown::-webkit-scrollbar-thumb:hover {
    background: #4a4a4a;
}


.carbon_disclaimer {
    font-size: 0.75rem;
    opacity: 0.75;
}

.carbon_disclaimer a {
    text-decoration: none;
}

.maplibregl-ctrl-attrib {
    background-color: #0e091d !important;
    border-width: 1px;
    border-color: rebeccapurple;
    color: white;
}

.maplibregl-ctrl-attrib a {
    color: white;
}

.maplibregl-ctrl-attrib-button {
    background-color: #9e4e9e !important;
}

.maplibregl-ctrl-attrib.maplibregl-compact {
    margin: 4px !important;
    font-size: 0.65rem !important;
}





/* check over */
/* Question mark icon styling */
    .help-icon {
      display: inline-flex;
      align-items: center;
      justify-content: center;
      width: 20px;
      height: 20px;
      border-radius: 50%;
      background-color: #007bff;
      color: white;
      font-weight: bold;
      font-size: 14px;
      cursor: pointer;
      user-select: none;
      transition: background-color 0.2s;
    }

    .help-icon:hover {
      background-color: #0056b3;
    }

    /* Modal Backdrop */
    .modal-overlay {
      display: none; /* Hidden by default */
      position: fixed;
      top: 0;
      left: 0;
      width: 100%;
      height: 100%;
      background-color: rgba(0, 0, 0, 0.5);
      justify-content: center;
      align-items: center;
      z-index: 1000;
    }

    /* Modal Content Box */
    .modal-content {
      background-color: #ffffff;
      padding: 24px;
      border-radius: 8px;
      max-width: 400px;
      width: 90%;
      box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
      position: relative;
    }

    .modal-header {
      font-size: 18px;
      font-weight: bold;
      margin-bottom: 12px;
    }

    .modal-body {
      font-size: 14px;
      color: #333;
      line-height: 1.5;
      margin-bottom: 20px;
    }

    /* Close Button */
    .close-btn {
      background-color: #007bff;
      color: white;
      border: none;
      padding: 8px 16px;
      border-radius: 4px;
      cursor: pointer;
      float: right;
    }

    .close-btn:hover {
      background-color: #0056b3;
    }