
:root {
  --bs-primary: #ffc107;
  --bs-primary-rgb: 255, 193, 7;

  --bs-primary-hover: #e0a800;
  --bs-primary-active: #d39e00;
  --bs-primary-text: #000; /* because yellow bg needs dark text */
}



/* BUTTONS */
.btn-primary {
  background-color: var(--bs-primary) !important;
  border-color: var(--bs-primary) !important;
  color: var(--bs-primary-text) !important;
}

.btn-primary:hover {
  background-color: var(--bs-primary-hover) !important;
  border-color: var(--bs-primary-hover) !important;
  color: var(--bs-primary-text) !important;
}

.btn-primary:focus,
.btn-primary:active,
.btn-primary:focus:active {
  background-color: var(--bs-primary-active) !important;
  border-color: var(--bs-primary-active) !important;
  color: var(--bs-primary-text) !important;
  box-shadow: 0 0 0 0.2rem rgba(var(--bs-primary-rgb), 0.5) !important;
}

/* ALERT LINKS + INTERACTIVE ELEMENTS */
a {
  color: var(--bs-primary);
}
a:hover {
  color: var(--bs-primary-hover);
}

/* Form focus ring (optional) */
.form-control:focus {
  border-color: var(--bs-primary);
  box-shadow: 0 0 0 0.2rem rgba(var(--bs-primary-rgb), 0.25);
}

 /* HUD Bar */
#hud-bar {
  position: absolute;
  top: 10px;
  left: 50%;
  transform: translateX(-50%);
  background: rgba(0, 0, 0, 0.65);
  padding: 8px 16px;
  border-radius: 12px;
  font-size: 0.95rem;
  font-weight: 500;
  color: white;
  display: flex;
  gap: 14px;
  z-index: 9998;
  white-space: nowrap;
  backdrop-filter: blur(4px);
}

@media (max-width: 768px) {
  #hud-bar {
    /* top: calc(env(safe-area-inset-top, 0px) + 50px); */
    top: calc(env(safe-area-inset-top, 0px));
  }
}

/* === Overlay Wrapper === */
#overlay-wrapper {
  position: fixed;
  right: 15px;
  bottom: 120px;
  z-index: 1000;
}

/* === Button Stack (menu) === */
#overlay-menu {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 15px;
  margin-bottom: 80px; /* ensures space for toggle button below */
}

/* === Toggle Button (☰) === */
#overlay-toggle {
  display: none; /* shown only on mobile */
  position: absolute;
  bottom: 0;
  right: 0;
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background-color: #000;
  color: #fff;
  font-size: 24px;
  border: none;
  box-shadow: 0 6px 12px rgba(0, 0, 0, 0.35);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1001;
  touch-action: manipulation;
  -webkit-tap-highlight-color: transparent;
  transition: background-color 0.2s ease, transform 0.2s ease;
}

/* Remove orange tap effect on iOS/Android */
#overlay-toggle:focus,
#overlay-toggle:active {
  background-color: #000 !important;
  outline: none;
  box-shadow: none;
}

/* === Action Buttons === */
.overlay-btn {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  font-size: 28px;
  background-color: #000;
  color: #fff;
  border: none;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 6px 12px rgba(0, 0, 0, 0.35);
  transition: all 0.2s ease;
  touch-action: manipulation;
  -webkit-tap-highlight-color: transparent;
}

.overlay-btn:hover {
  background-color: #e0a800;
  transform: scale(1.1);
}

.overlay-btn a {
  text-decoration: none;
  color: inherit;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
}

/* === Mobile-only behavior === */
@media (max-width: 768px) {
  #overlay-toggle {
    display: flex;
  }

  #overlay-menu {
    display: none;
  }

  #overlay-menu.show {
    display: flex;
  }
}

/* === Desktop === */
@media (min-width: 769px) {
  #overlay-toggle {
    display: none !important;
  }

  #overlay-menu {
    display: flex !important;
    margin-bottom: 0;
  }
}




/* XP Bar */
#xp-bar-tooltip {
  position: absolute;
  bottom: 25px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 999;
  background: rgba(0, 0, 0, 0.85);
  color: #fff;
  font-size: 0.9rem;
  padding: 10px 20px;
  border-radius: 10px;
  width: 320px;
  box-shadow: 0 0 10px rgba(0,0,0,0.6);
}

.progress-bar-text {
  position: absolute;
  width: 100%;
  text-align: center;
  font-weight: bold;
  color: #fff;
  top: 0;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  pointer-events: none;
}

@media (max-width: 768px) {
  #xp-bar-tooltip {
    bottom: 100px;
  }
}
