/* 1. GLOBAL BASE & PAGE TRANSITIONS */
.font-sans-serif {
  font-family: "Inter", sans-serif;
}
.glass {
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid #e2e8f0;
}
/* --- APP TRANSITIONS --- */
/* --- PURE FADE TRANSITIONS --- */
/* --- FIXED GHOST FADE --- */
.page {
  display: none;
  opacity: 0;
}

/* This handles the INCOMING page */
.page.active {
  display: block;
  /* This animation is the secret to the slow appear */
  animation: slowFadeIn 0.8s ease-in-out forwards;
}

/* This handles the OUTGOING page */
.page.fading-out {
  display: block;
  animation: slowFadeOut 0.4s ease-in-out forwards;
  pointer-events: none;
}

/* The Animation "Recipes" */
@keyframes slowFadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

@keyframes slowFadeOut {
  from {
    opacity: 1;
  }
  to {
    opacity: 0;
  }
}
/* 2. NAVIGATION DOCK */
/* --- DISCORD SCROLLING NAV DOCK --- */
.nav-dock {
  background: #1e1f22 !important;
  border: 1px solid #3f4147 !important;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5) !important;

  position: fixed;
  bottom: 20px; /* Floating on desktop */
  left: 50%;
  transform: translateX(-50%); /* Centers the dock */

  width: auto;
  max-width: 95%; /* Prevents it from touching screen edges */
  border-radius: 24px; /* Fully rounded "Dock" look */

  padding: 12px 10px !important;

  display: flex;
  align-items: center; /* Keeps buttons perfectly centered at rest */

  /* Ensure the dock is tall enough for the lift */
  min-height: 64px;

  z-index: 1000;
  overflow-x: auto;
  scroll-behavior: smooth;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1), opacity 0.3s;
}

/* Hide scrollbar for Chrome/Safari */
.nav-dock::-webkit-scrollbar {
  display: none;
}

.nav-item {
  flex: 0 0 auto;
  padding: 10px 18px;
  border-radius: 12px !important;
  color: #949ba4;
  font-weight: 700;
  font-size: 11px;
  display: flex;
  align-items: center;
  gap: 8px;
  transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
  cursor: pointer;
  border: none;
  background: none;
  text-transform: uppercase;
}

/* 2. Hover State (Inactive Buttons) */
.nav-item:not(.active):hover {
  color: #ffffff !important;
  background-color: rgba(255, 255, 255, 0.1) !important;
  transform: translateY(-6px);
  box-shadow: 0 8px 15px rgba(0, 0, 0, 0.3);
}

.nav-item.active {
  background-color: #5865f2 !important; /* Discord Blurple */
  color: #ffffff !important;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(88, 101, 242, 0.4);
}

@media (max-width: 640px) {
  .nav-dock {
    bottom: 0;
    width: 100%;
    max-width: 100%;
    border-radius: 16px 16px 0 0;
    padding: 4px;
    transform: translateX(0); /* Reset centering for full-width mobile */
    left: 0;
  }

  .nav-dock.nav-hidden {
    transform: translateY(100%);
  }

  .nav-item {
    padding: 14px 22px; /* Slightly larger targets for thumbs */
  }
}

/* "Ready to Go" Hover Vibe */

/* Active State (Discord Blurple) */

/* Mobile Tweak: Ensure share button is above this new taller menu */
@media (max-width: 768px) {
  .share-fab {
    bottom: 80px !important;
  }
}

/* 3. HUB UTILITIES (Switcher & Progress) */
.platform-switcher {
  position: relative;
  display: flex;
  background: #1e1f22;
  padding: 4px;
  border-radius: 14px;
  width: 260px;
  margin: 0 auto 20px auto;
}
.platform-slider {
  position: absolute;
  top: 4px;
  left: 4px;
  width: calc(50% - 4px);
  height: calc(100% - 8px);
  background: #5865f2;
  border-radius: 10px;
  transition: all 0.4s cubic-bezier(0.18, 0.89, 0.32, 1.28);
  z-index: 1;
}
.platform-btn {
  position: relative;
  flex: 1;
  padding: 10px 0;
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
  cursor: pointer;
  z-index: 2;
  text-align: center;
  color: #64748b;
  border: none;
  background: none;
}
.platform-btn.active {
  color: white;
}
.fb-active .platform-slider {
  transform: translateX(100%);
}

.progress-bg {
  background: #1e1f22;
  height: 6px;
  border-radius: 10px;
  overflow: hidden;
}
.progress-fill {
  background: #5865f2;
  height: 100%;
  transition: width 0.5s ease;
}

.loot-row {
  background: #2b2d31 !important;
  border-radius: 18px;
  padding: 18px;
  margin-bottom: 12px;
  display: flex;
  align-items: center;
  gap: 16px;
  border: 1px solid #edf2f7;
  position: relative;
}
.loot-row.claimed {
  opacity: 0.5;
  filter: grayscale(1);
}
.gift-pic {
  width: 56px;
  height: 56px;
  background: #f8fafc;
  border-radius: 12px;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}
.gift-info {
  flex-grow: 1;
  min-width: 0;
}
.gift-name {
  font-weight: 700;
  color: #ffffff;
  font-size: 1rem;
}
.time-tag {
  position: absolute;
  top: 10px;
  right: 18px;
  font-size: 9px;
  font-weight: 800;
  color: #ef4444;
}

/* --- PRECISION TIMELINE CSS --- */
.timeline-container {
  position: relative;
  background: #2b2d31;
  border-radius: 12px;
  border: 1px solid #1e1f22;
  height: 60vh;
  overflow-y: auto;
  overflow-x: hidden;
}

.time-row {
  position: relative;
  height: 60px; /* ROW_HEIGHT */
  border-bottom: 1px solid rgba(255, 255, 255, 0.05); /* Very subtle floor line */
  width: 100%;
}

.time-label {
  position: absolute;
  left: 10px;
  bottom: -8px; /* Perfectly centered on the floor line */
  font-size: 10px;
  font-weight: 800;
  color: #949ba4;
  background: #313338; /* Matches Discord BG to mask the line */
  padding: 0 8px;
  z-index: 20;
  letter-spacing: 0.5px;
}

.event-bar-v {
  position: absolute;
  background: linear-gradient(
    180deg,
    #5865f2,
    #4752c4
  ); /* Discord Blue Gradient */
  width: 85px;
  border-radius: 8px; /* Smoother corners */
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 10;
  box-sizing: border-box;

  /* THE FIX: Professional Border instead of Red Lines */
  border: 1.5px solid rgba(255, 255, 255, 0.1);
  border-top: 3px solid rgba(255, 255, 255, 0.3); /* "Start" Highlight */
  border-bottom: 3px solid rgba(0, 0, 0, 0.3); /* "End" Shadow */

  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
  transition: transform 0.1s, filter 0.2s;
}

.event-text {
  font-size: 10px;
  font-weight: 800;
  color: white;
  text-align: center;
  line-height: 1.1;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.5); /* Makes name more readable */
  pointer-events: none;
}

.now-line {
  position: absolute;
  left: 0;
  width: 100%;
  height: 3px; /* Slightly thicker so you can't miss it */
  background: #f23f43 !important; /* Discord Red */
  z-index: 500; /* High z-index so it sits ABOVE the blue bars */
  pointer-events: none;
  display: none; /* JS will turn this to 'block' */
}

.now-tag {
  position: absolute;
  right: 10px;
  top: -18px;
  background: #f23f43;
  color: white;
  padding: 2px 6px;
  border-radius: 4px;
  font-size: 9px;
  font-weight: 900;
}

/* 5. WAR ROOM (Meta Grid) */
.meta-card {
  background: white;
  border-radius: 20px;
  padding: 24px;
  margin-bottom: 20px;
  border: 1px solid #edf2f7;
  display: flex;
  flex-direction: column;
  gap: 16px;
  position: relative;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.03);
}

/* Rank Badges */
.rank-badge-new {
  background: #1e3a8a;
  color: #ffffff;
  width: 28px;
  height: 28px;
  border-radius: 8px;
  font-size: 12px;
  font-weight: 900;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.rank-1 {
  background: #5865f2 !important;
  color: white !important;
}
.rank-2,
.rank-3 {
  background: #4e5058 !important;
  color: white !important;
}
.rank-3 {
  background: linear-gradient(135deg, #cd7f32, #a0522d) !important;
  color: #fff !important;
}

/* The Grid System */
.team-grid {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
} /* Flex wrap added here */
.unit-box {
  width: 52px;
  height: 52px;
  background: #f8fafc;
  /*border: 2px solid #e2e8f0;*/
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  flex-shrink: 0;
}
.unit-box img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.pet-box-highlight {
  border: 2px solid #5865f2 !important;
  background: #fffdf5;
  position: relative;
}
.pet-box-highlight::after {
  content: "PET";
  position: absolute;
  bottom: 2px;
  width: 100%;
  text-align: center;
  font-size: 7px;
  font-weight: 900;
  color: #5865f2;
  background: rgba(255, 255, 255, 0.8);
}
.divider {
  width: 2px;
  height: 30px;
  background: #e2e8f0;
  margin: 0 2px;
}

/* MOBILE RESPONSIVE FIXES */
@media (max-width: 640px) {
  .share-fab {
    bottom: 90px; /* Moves it up above the menu bar level */
    right: 20px; /* Moves it slightly closer to the edge for better reach */
    width: 44px; /* Slightly smaller for mobile fingers */
    height: 44px;
  }

  /* Adjust tooltip position for mobile too */
  .share-tooltip {
    right: 55px;
    font-size: 9px;
  }
}

@media (max-width: 400px) {
  .unit-box {
    width: 38px;
    height: 38px;
  }
  .team-grid {
    gap: 4px;
  }
}
/* MOBILE FIX: Move share button higher to clear the menu */
@media (max-width: 768px) {
  .share-fab {
    bottom: 110px !important; /* Moves it significantly above the menu */
    right: 20px; /* Tucks it closer to the edge */
    width: 44px; /* Slightly smaller for mobile */
    height: 44px;
  }

  /* Move the tooltip text up with it */
  .share-tooltip {
    right: 55px;
    bottom: 5px;
  }
}
/* 6. PODIUM SECTION */
/* Animated Celestial Aura for Meta Leaders */
/* THE MOVING STAGE BACKGROUND */
.podium-section {
  position: relative;
  /* We use distinct Discord-friendly dark colors to make the movement visible */

  background-image: linear-gradient(to top, #000000, #5865f2);
  border-radius: 24px !important;
  padding: 30px 20px;
  margin-bottom: 40px;
  overflow: hidden;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.5) !important;
}

/* Decorative: Add a subtle 'sparkle' layer behind the heroes */

.podium-grid {
  display: flex;
  justify-content: center;
  align-items: flex-end;
  gap: 15px;
  margin-bottom: 25px;
}
.podium-spot {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}
.podium-rank-label {
  font-size: 10px;
  font-weight: 900;
  color: #949ba4;
  margin-top: 8px;
}
.podium-box {
  background: white;
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}
.spot-1 .podium-box {
  width: 70px;
  height: 70px;
  border: 3px solid #5865f2;
  box-shadow: 0 0 20px rgba(212, 175, 55, 0.3);
}
.spot-2 .podium-box,
.spot-3 .podium-box {
  width: 55px;
  height: 55px;
  border: 2px solid #cbd5e1;
}

.pet-highlight {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding-top: 15px;
  border-top: 1px solid #e2e8f0;
  width: 100px;
  margin: 0 auto;
}

/* Podium Mobile Fix */
@media (max-width: 480px) {
  .podium-grid {
    gap: 8px;
  }
  .spot-1 .podium-box {
    width: 60px;
    height: 60px;
  }
  .spot-2 .podium-box,
  .spot-3 .podium-box {
    width: 48px;
    height: 48px;
  }
}

/* 7. USAGE METER */
.usage-container {
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.usage-bar-bg {
  background: #f1f5f9;
  height: 6px;
  border-radius: 10px;
  overflow: hidden;
}
.usage-bar-fill {
  height: 100%;
  background: linear-gradient(90deg, #5865f2, #996515);
  border-radius: 10px;
}
.usage-count {
  font-size: 10px;
  font-weight: 800;
  color: #64748b;
}
/* Floating Share Button */
/* Floating Share Button - Updated to Vivid Blue */
.share-fab {
  position: fixed;
  bottom: 30px;
  right: 30px;
  width: 48px;
  height: 48px;
  background: #2563eb; /* Vivid Blue */
  border: none;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  box-shadow: 0 10px 25px rgba(37, 99, 235, 0.3);
  cursor: pointer;
  z-index: 100;
  transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.share-fab:hover {
  transform: scale(1.1);
  background: #1d4ed8; /* Darker blue on hover */
  box-shadow: 0 15px 30px rgba(37, 99, 235, 0.4);
}

.share-fab.copied {
  background: #22c55e; /* Success Green */
  box-shadow: 0 10px 25px rgba(34, 197, 94, 0.3);
}

/* Tooltip updated to match Blue theme */
.share-tooltip {
  position: absolute;
  right: 60px;
  background: #1e293b;
  color: white;
  padding: 6px 14px;
  border-radius: 10px;
  font-size: 10px;
  font-weight: 800;
  white-space: nowrap;
  opacity: 0;
  pointer-events: none;
  transition: all 0.3s ease;
  transform: translateX(10px);
}

.share-fab:hover .share-tooltip {
  opacity: 1;
  transform: translateX(0);
}

.meta-leaders-header {
  font-family: "Inter", sans-serif;
  font-size: 20px;
  font-weight: 700;
  letter-spacing: 4px;
  text-align: center;
  margin-bottom: 20px;
  display: block;
  width: 100%;
  color: #ffffff !important;
}

/* Adds a small gold underline like a real magazine header */
.meta-leaders-header::after {
  content: "";
  display: block;
  width: 40px;
  height: 2px;
  background: #1e1f22;
  margin: 8px auto 0 auto;
}

/* 1. Remove the gap between content and footer */
body {
  font-family: "Inter", sans-serif;
  background-color: #313338;
  color: #dbdee1;
  margin: 0;
  overflow-x: hidden;
  padding-bottom: 0 !important; /* Remove huge bottom padding */
}

main {
  padding-bottom: 50px; /* Small breathing room after last card */
}

/* 2. The Smart Menu Animation */

/* Fix Share Button to also hide at the bottom */
.share-fab {
  transition: transform 0.4s ease, opacity 0.3s;
}
.share-fab.nav-hidden {
  transform: scale(0);
  opacity: 0;
}
.disclaimer-text {
  color: #949ba4;
  font-size: 14px;
  line-height: 1.8;
  max-width: 700px;
  margin: 0 auto;
  letter-spacing: 0.5px;
}
.disclaimer-highlight {
  color: #f1f5f9; /* Bright off-white */
  font-weight: 700;
}

/* The Gold Scanning Laser */
.scan-line {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 4px;
  background: linear-gradient(90deg, transparent, #04e40f, transparent);
  box-shadow: 0 0 15px #23e00a, 0 0 5px white;
  animation: scanMove 2.5s infinite ease-in-out;
  z-index: 10;
}

@keyframes scanMove {
  0% {
    top: 0%;
    opacity: 0;
  }
  50% {
    opacity: 1;
  }
  100% {
    top: 100%;
    opacity: 0;
  }
}

/* Make the code look like a terminal */
.code-flicker {
  font-family: "Courier New", Courier, monospace;
  font-size: 10px;
  color: #4ade80; /* Matrix Green or Gold? Let's use subtle gold/grey */
  line-height: 1.4;
  user-select: none;
}

/* --- CLAIM BUTTONS RESTORED --- */
.claim-btn {
  background: #5865f2;
  color: white;
  padding: 8px 20px;
  border-radius: 10px;
  font-weight: 800;
  font-size: 11px;
  border: none;
  cursor: pointer;
  transition: all 0.2s;
  min-width: 80px;
  text-transform: uppercase;
}

.claim-btn:hover {
  background: #1146d8;
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(37, 99, 235, 0.2);
}

.claim-btn.is-claimed {
  background: #e2e8f0;
  color: #949ba4;
  cursor: not-allowed;
  transform: none;
  box-shadow: none;
}

/* Manual Radio/Checkmark button */
.mark-btn {
  background: none;
  border: none;
  cursor: pointer;
  color: #cbd5e1;
  transition: color 0.2s;
  display: flex;
  align-items: center;
}

.mark-btn:hover {
  color: #5865f2;
}

.mark-btn.active {
  color: #5865f2;
}

#adv-tabs-container {
  padding-right: 40px; /* Space for fade effect */
}

.elite-info-card {
  background: 2b2d31;
  border-radius: 24px;
  padding: 40px 20px;
  border: 2px solid #ef4444; /* Red border for danger/elite */
  box-shadow: 0 20px 40px rgba(239, 68, 68, 0.1);
  text-align: center;
}

/* 1. Hide Scrollbars everywhere */
.no-scrollbar {
  -ms-overflow-style: none; /* IE and Edge */
  scrollbar-width: none; /* Firefox */
  cursor: grab; /* Shows the "hand" icon to indicate you can pull it */
}
.no-scrollbar:active {
  cursor: grabbing;
}

.no-scrollbar::-webkit-scrollbar {
  display: none; /* Chrome, Safari and Opera */
}

/* 2. Prevent text selection when sliding */
.adv-tab {
  user-select: none;
  -webkit-user-select: none;
  -moz-user-select: none;
  -ms-user-select: none;
  padding: 10px 20px;
  background: white;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  font-size: 11px;
  font-weight: 800;
  color: #949ba4;
  white-space: nowrap;
  cursor: pointer;
  transition: 0.2s;
}
.adv-tab.active {
  background: #1e3a8a;
  color: white;
  border-color: #1e3a8a;
}

.var-btn {
  font-size: 10px;
  font-weight: 700;
  color: #64748b;
  padding: 6px 14px;
  border-radius: 8px;
  white-space: nowrap;
  cursor: pointer;
}
.var-btn.active {
  background: #5865f2;
  color: white;
}

/* Route Row Styling */
.route-row {
  padding: 10px 14px;
  background: white;
  border-radius: 12px;
  border: 1px solid #e2e8f0;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px;
  background: white;
  border-radius: 16px;
  border: 1px solid #e2e8f0;
  cursor: pointer;
  transition: 0.2s;
}
.route-row:hover {
  border-color: #5865f2;
  transform: translateX(4px);
}
.route-row:active {
  transform: scale(0.98);
}

.route-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  flex-shrink: 0;
}
.route-path {
  font-family: monospace;
  font-size: 12px;
  font-weight: 700;
  color: #1e293b;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

/* Route Colors */
.dot-blue {
  background: #3b82f6;
  box-shadow: 0 0 8px #3b82f6;
}
.dot-orange {
  background: #f97316;
  box-shadow: 0 0 8px #f97316;
}
.dot-green {
  background: #22c55e;
  box-shadow: 0 0 8px #22c55e;
}
/* --- DISCORD-FRIENDLY FOOTER --- */
.footer-container {
  color: #f2f3f5;
  border-radius: 15px 15px 0 0; /* Softer, rounded corners */
  padding: 60px 40px;
  margin-top: 80px;
  font-family: "Inter", sans-serif; /* Clean, non-pointy font */
  background: #1e1f22 !important;
  border-top: 1px solid #111214 !important;
  padding-top: 60px;
  padding-bottom: 120px;
}

.footer-layout {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr;
  gap: 40px;
  max-width: 1100px;
  margin: 0 auto;
}

/* Discord Branding Style */
.footer-logo-text {
  font-size: 22px;
  font-weight: 800;
  letter-spacing: -0.5px; /* Tighter, modern spacing */
  color: #fff;
  text-transform: none; /* No more all-caps screaming */
}

.footer-logo-sub {
  color: #5865f2; /* Discord Blurple */
  font-style: normal;
}

.footer-description {
  font-size: 14px;
  line-height: 1.5;
  color: #b5bac1; /* Discord "muted text" color */
  margin: 15px 0 25px 0;
}

.footer-column h4 {
  font-size: 12px;
  font-weight: 700;
  color: #949ba4; /* Discord header gray */
  margin-bottom: 20px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.footer-list {
  list-style: none;
  padding: 0;
}

.footer-list li {
  margin-bottom: 12px;
}

.footer-list a {
  color: #949ba4;
  text-decoration: none;
  font-size: 14px;
  font-weight: 500;
  transition: color 0.2s;
}

.footer-list a:hover {
  color: #ffffff; /* Blurple hover */
  text-decoration: underline;
}

/* Discord-style Button */
.back-top-btn {
  background: #4e5058; /* Discord button gray */
  color: #fff;
  border: none;
  border-radius: 8px;
  padding: 10px 20px;
  font-size: 13px;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
  transition: background 0.2s;
}

.back-top-btn:hover {
  background: #6d6f78;
}

/* Bottom Copyright Bar */
.footer-bottom {
  border-top: 1px solid #3f4147;
  margin-top: 50px;
  padding-top: 30px;
  text-align: center;
}

.disclaimer-box {
  font-size: 12px;
  color: #949ba4;
  max-width: 800px;
  margin: 0 auto 20px auto;
  line-height: 1.6;
}

/* Mobile Adjustments */
@media (max-width: 768px) {
  .footer-layout {
    grid-template-columns: 1fr;
    text-align: center;
  }
  .footer-main {
    display: flex;
    flex-direction: column;
    align-items: center;
  }
  .footer-description {
    max-width: 100%;
  }
}

h1,
h2,
h3,
h4,
.font-serif,
.meta-leaders-header {
  font-family: "Inter", sans-serif !important;
  font-weight: 800 !important;
  text-transform: none !important;
  letter-spacing: -0.02em !important;
}

h1,
h2,
h3,
h4,
.font-serif,
.text-slate-800,
#active-adv-name {
  color: #ffffff !important;
}

.loot-row,
.meta-card,
.card,
.elite-info-card {
  background: #2b2d31;
  border: 1px solid #232428 !important;
  border-radius: 8px !important;
}

.podium-section {
  border: 1px solid #232428 !important;
  border-radius: 8px !important;
}

.gift-pic,
.unit-box {
  background: #1e1f22 !important;
  border-radius: 8px !important;
}

.text-slate-400,
.text-slate-500,
.gift-desc {
  color: #949ba4 !important;
}

/* Change all white boxes to Discord Card Gray */
.loot-row,
.route-row,
.meta-card,
.elite-info-card,
.bg-white {
  background-color: #2b2d31 !important;
  border: 1px solid #1e1f22 !important;
  color: #dbdee1 !important;
}

/* Fix for the Map display area background */
#map-display-container,
.bg-slate-50,
.bg-slate-900 {
  background-color: #1e1f22 !important;
  border-color: #111214 !important;
}

/* Make Nav Dock dark and professional */
.nav-dock {
  background: #1e1f22 !important;
  border: 1px solid #2b2d31 !important;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5) !important;
}

/* Inactive icon colors */
.nav-item {
  color: #949ba4 !important;
}

.nav-item.active:hover {
  background-color: #5865f2 !important;
  transform: translateY(-2px); /* Keeps it at the same "active" height */
  box-shadow: 0 4px 12px rgba(88, 101, 242, 0.4);
  cursor: default; /* Tells user "You are already here" */
}
.nav-item:hover i {
  filter: drop-shadow(0 0 5px #5865f2);
}
/* Ensure the active 'Maps' or 'War' button stays Blurple */

.nav-item:not(.active):hover {
  color: #ffffff !important;
  background-color: rgba(255, 255, 255, 0.1) !important;
  transform: translateY(-6px);
  box-shadow: 0 8px 15px rgba(0, 0, 0, 0.3);
}

.claim-btn,
.share-fab {
  background: #5865f2 !important;
  border-radius: 4px !important;
}
.claim-btn:hover {
  background: #4752c4 !important;
}

header.glass {
  background: #1e1f22;
  border-bottom: 1px solid #111214;
  backdrop-filter: none;
}
.gift-desc {
  color: red;
}

/* Fix Top Left Logo Visibility */
header h1 span {
  color: #949ba4 !important; /* Muted Discord gray */
  font-weight: 300 !important;
  font-style: italic !important;
  margin-left: 4px;
}

/* Remove the white glare from Category Badges */
.badge {
  background-color: rgba(255, 255, 255, 0.05) !important;
  border: 1px solid rgba(255, 255, 255, 0.1) !important;
  padding: 2px 8px !important;
  border-radius: 4px !important;
}

/* Specifically style the Blue (Energy) and Green (Economy) text */
.text-blue-700 {
  color: #5865f2 !important; /* Discord Blurple */
  background-color: rgba(88, 101, 242, 0.15) !important;
}

.text-green-700 {
  color: #23a559 !important; /* Discord Green */
  background-color: rgba(35, 165, 89, 0.15) !important;
}

/* Top Right Badge Styling */
.rounded-full.border.text-slate-400 {
  border-color: #4e5058 !important;
  color: #dbdee1 !important;
  background: #1e1f22 !important;
  font-size: 9px !important;
}

/* Make inactive platform text readable */
.platform-btn {
  color: #949ba4 !important;
}
.platform-btn.active {
  color: #ffffff !important;
}

/* Sync Header Logo with Footer Style */
header h1 {
  text-transform: none !important; /* Changes HERO WARS to Hero Wars */
  letter-spacing: -0.5px !important;
  font-weight: 800 !important;
  color: #ffffff !important;
}

header h1 .logo-accent {
  color: #5865f2 !important; /* Discord Blurple matching the footer */
  font-weight: 700 !important;
  font-style: normal !important; /* Removes the old italic look */
  margin-left: 2px;
}

/* Ensure the header height and alignment stay perfect */
header.glass {
  height: 60px !important;
  display: flex;
  align-items: center;
}

/* Success State: When link is copied, turn button White */
.share-fab.copied {
  background: #ffffff !important;
  color: #5865f2 !important; /* Icon turns Blurple so it's visible on white */
  box-shadow: 0 0 20px rgba(255, 255, 255, 0.4) !important;
  transform: scale(1.15); /* Slightly bigger to feel "active" */
}

/* Ensure the checkmark icon also turns blue */
.share-fab.copied i {
  color: #5865f2 !important;
}

/* Make the tooltip match the new success color */
.share-fab.copied .share-tooltip {
  background: #ffffff !important;
  color: #5865f2 !important;
  font-weight: 900;
}

/* --- TACTILE HOVER VIBE --- */
.nav-item {
  /* Ensure transition includes transform for the lift effect */
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Ensure the active button doesn't jump too much but still feels reactive */

.nav-item:hover {
  background-color: rgba(255, 255, 255, 0.1) !important;
  transform: translateY(-4px);
  /* No need to add radius here, it inherits from above */
  color: #ffffff !important;
  background-color: rgba(255, 255, 255, 0.1) !important;

  /* The Lift */
  transform: translateY(-6px);

  /* THE TRICK: Add a subtle shadow underneath to emphasize the lift */
  box-shadow: 0 8px 15px rgba(0, 0, 0, 0.3);
}

/* THE CELESTIAL AURA PATCH */
.podium-section {
  position: relative;
  /* We use 4 colors for a deep, slow-moving space effect */

  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.4),
    inset 0 0 20px rgba(88, 101, 242, 0.1) !important;
  overflow: hidden;
}

/* This creates the slow "Breathing" movement of the colors */

/* Add a "Starfield" effect inside the box */
.podium-section::after {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-size: 40px 40px;
  opacity: 0.4;
  pointer-events: none;
}

/* Make the "META LEADERS" text glow like a star */
.meta-leaders-header {
  color: #ffffff !important;
  letter-spacing: 5px !important;
}

/* 1. Make the #1 Hero the "Celestial Star" */
.spot-1 .podium-box {
  border: 3px solid #f1c40f !important;
  box-shadow: 0 0 25px rgba(241, 196, 15, 0.6),
    inset 0 0 10px rgba(241, 196, 15, 0.4) !important;
  animation: heroPulse 3s ease-in-out infinite;
}

/* 2. Silver & Bronze Auras for #2 and #3 */
.spot-2 .podium-box {
  border: 2px solid #e2e2e2 !important;
  box-shadow: 0 0 15px rgba(226, 226, 226, 0.2) !important;
}
.spot-3 .podium-box {
  border: 2px solid #cd7f32 !important;
  box-shadow: 0 0 15px rgba(205, 127, 50, 0.2) !important;
}

/* 3. Make the Pet "Float" in the Nebula */
.pet-highlight .unit-box {
  animation: petFloat 4s ease-in-out infinite;
  border-color: rgba(88, 101, 242, 0.5) !important;
}

@keyframes petFloat {
  0%,
  100% {
    transform: translateY(0) rotate(0deg);
  }
  50% {
    transform: translateY(-8px) rotate(2deg);
  }
}

/* 4. Soften the Starfield dots so they look more like distant stars */

/* 5. Fix the Usage Bar to look cleaner in Dark Mode */
.usage-bar-bg {
  background: #1e1f22 !important;
  height: 4px !important;
}

/* This ensures all hero/pet images start invisible and fade in */
.unit-box img,
.podium-box img {
  opacity: 0;
  transition: opacity 0.5s ease-in-out;
}

.unit-box img.loaded,
.podium-box img.loaded {
  opacity: 1;
}

/* --- TOP PET ELITE GLOW --- */
.pet-highlight .pet-box-highlight {
  /* Solid Gold Border matching Rank 1 */
  border: 3px solid #ffffff !important;

  /* Radiant Gold Outer Glow */
  box-shadow: 0 0 20px #ffffff, inset 0 0 10px #9c9ead !important;

  /* Ensure the background stays dark to make the glow pop */
  background: #1e1f22 !important;

  /* Keep the floating animation we set earlier */
  animation: petFloat 4s ease-in-out infinite !important;
}

/* Remove the "PET" text overlay from earlier if it's blocking the face */
.pet-box-highlight::after {
  display: none !important;
}

/* Update the Label under the pet to look more premium */
.pet-highlight .podium-rank-label {
  color: #f1c40f !important;
  font-weight: 900;
  text-shadow: 0 0 10px rgba(241, 196, 15, 0.3);
}

.gift-pic img {
  opacity: 0;
  transition: opacity 0.4s ease-in-out;
}

.gift-pic img.loaded {
  opacity: 1;
}

/* Ensure the gift icon doesn't touch the edges of its box */
.gift-pic {
  background: #1e1f22; /* Match Discord dark sidebar */
  padding: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Middle Section Requirement Badges */
.req-badge {
  font-size: 8px;
  font-weight: 900;
  padding: 2px 4px;
  border-radius: 4px;
  text-transform: uppercase;
}

.vip-badge {
  background: rgba(241, 196, 15, 0.15);
  color: #f1c40f;
  border: 1px solid rgba(241, 196, 15, 0.3);
}

.valk-badge {
  background: rgba(88, 101, 242, 0.15);
  color: #5865f2;
  border: 1px solid rgba(88, 101, 242, 0.3);
}

/* Ensure the row looks balanced on Desktop */
.loot-row {
  display: grid;
  grid-template-columns: auto 1fr auto auto; /* Icon | Text | Middle | Action */
  align-items: center;
  gap: 20px;
}

@media (max-width: 768px) {
  .icons-rail {
    width: auto;
    margin-bottom: 10px;
  }
  .loot-row {
    flex-wrap: wrap;
  }
  .gift-info {
    width: 100%;
    margin-bottom: 10px;
  }
  .requirements-box {
    width: 100%;
    flex-direction: row;
    border-top: 1px solid #3f4147;
    padding-top: 10px;
  }
}
/* Layout for the row: Extras | Main | Info | Requirements | Action */
.loot-row {
  display: flex;
  align-items: center;
  background: #2b2d31;
  border-radius: 12px;
  padding: 12px 20px;
  margin-bottom: 12px;
  position: relative;
  gap: 20px;
}

/* Container for the items on the far left */
.extras-aside {
  display: flex;
  gap: 8px;
  flex-shrink: 0;
}

/* Style for the extra reward boxes on the left */
.extra-item-box {
  width: 48px;
  height: 48px;
  background: #1e1f22;
  border: 1px solid rgba(255, 255, 255, 0.05);
  border-radius: 8px;
  padding: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Middle/Right box for VIP/Favor */
.requirements-box {
  display: flex;
  flex-direction: column;
  gap: 4px;
  min-width: 60px;
  text-align: center;
}

/* Main Gift Pic sizing stays consistent */
.gift-pic {
  width: 56px;
  height: 56px;
  background: #1e1f22;
  border-radius: 8px;
  flex-shrink: 0;
}

/* Mobile Fix: Stack them neatly if screen is too small */
@media (max-width: 768px) {
  .loot-row {
    flex-wrap: wrap;
  }
  .extras-aside {
    order: 1;
  }
  .gift-pic {
    order: 2;
  }
  .gift-info {
    order: 3;
    width: calc(100% - 130px);
  }
  .requirements-box {
    order: 4;
    width: 100%;
    flex-direction: row;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    padding-top: 8px;
  }
}

.icons-rail {
  display: flex;
  align-items: center;
  gap: 8px;
  width: 220px; /* FIXED WIDTH: Keeps the text starting at the same point */
  flex-shrink: 0;
}

.requirements-box {
  display: flex;
  flex-direction: column;
  gap: 4px;
  width: 60px;
  text-align: center;
  flex-shrink: 0;
}

.main-slot {
  width: 54px;
  height: 54px;
  background: #1e1f22;
  border-radius: 8px;
  flex-shrink: 0;
}

.mini-slot {
  width: 44px;
  height: 44px;
  background: #1e1f22;
  border-radius: 8px;
  padding: 4px;
  flex-shrink: 0;
}

/* Dip Buttons */
.dip-btn {
  flex: 0 0 auto;
  padding: 8px 16px;
  background: #2b2d31;
  border: 1px solid #3f4147;
  border-radius: 12px;
  display: flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
  transition: all 0.2s;
}
.dip-btn:hover {
  border-color: #23a559;
  transform: translateY(-2px);
}
.dip-count {
  background: #23a559; /* Discord Success Green */
  color: white;
  font-size: 10px;
  font-weight: 900;
  padding: 2px 6px;
  border-radius: 6px;
}
.dip-label {
  font-size: 11px;
  font-weight: 700;
  color: #dbdee1;
}

/* The Green Dip Window Lines */
.dip-window-line {
  height: 2px;
  background: #23a559;
  box-shadow: 0 0 10px rgba(35, 165, 89, 0.4);
  width: 100%;
  transition: all 0.3s ease;
  position: absolute;
  left: 90px; /* Starts after the date labels */
  right: 0;
  z-index: 20;
  pointer-events: none;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.event-bar-v:hover {
  filter: brightness(1.2);
  transform: scale(1.02);
  z-index: 50;
}

/* --- ORACLE SWITCHER (Image 1 Style) --- */
.oracle-mode-switcher {
  display: flex;
  background: #1e1f22;
  padding: 4px;
  border-radius: 14px;
  width: 280px;
  margin: 0 auto 30px auto;
  border: 1px solid #111214;
}

.mode-btn {
  flex: 1;
  padding: 10px 0;
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
  color: #949ba4;
  cursor: pointer;
  border-radius: 10px;
  transition: all 0.3s ease;
}

.mode-btn.active {
  background: #5865f2; /* Discord Blurple from your screenshot */
  color: white;
  box-shadow: 0 4px 10px rgba(88, 101, 242, 0.3);
}

/* --- QUEST PILLS (Image 2 Style) --- */
.quest-pill {
  flex: 0 0 auto;
  padding: 10px 22px;
  background: white; /* White as per your screenshot */
  color: #64748b;
  border-radius: 12px;
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
  cursor: pointer;
  border: none;
  transition: all 0.2s;
}

.quest-pill.active {
  background: #4e5058; /* Discord dark gray when active */
  color: white;
}

.quest-pill:hover:not(.active) {
  background: #f1f5f9;
}

/* --- THE RGB DISCORD BUTTON --- */
.claim-btn-discord {
  position: relative;
  padding: 6px 20px;
  background: #404eed;
  border: none;
  border-radius: 5px;
  cursor: pointer;
  overflow: hidden;
  z-index: 1;
  /* Smoother transition for the hover "lift" */
  transition: transform 0.3s cubic-bezier(0.23, 1, 0.32, 1),
    box-shadow 0.3s ease, filter 0.3s ease;
  min-width: 100px;
}

/* 1. Dual Rotating Beams */
.claim-btn-discord::before {
  content: "";
  position: absolute;
  top: -150%;
  left: -50%;
  width: 200%;
  height: 400%;
  background: conic-gradient(
    transparent 0deg,
    rgba(255, 255, 255, 0.9) 10deg,
    rgba(88, 101, 242, 0.6) 30deg,
    transparent 60deg,
    transparent 180deg,
    rgba(255, 255, 255, 0.9) 190deg,
    rgba(88, 101, 242, 0.6) 210deg,
    transparent 240deg
  );
  animation: rotate-glow 2.5s linear infinite;
  filter: blur(2px);
  z-index: -2;
}

/* 2. Discord Blue Body Mask */
.claim-btn-discord::after {
  content: "";
  position: absolute;
  inset: 2px;
  background: linear-gradient(to bottom, #5865f2 0%, #404eed 100%);
  border-radius: 4px;
  box-shadow: inset 0 1px 1px rgba(255, 255, 255, 0.2);
  z-index: -1;
  transition: opacity 0.3s ease;
}

/* --- THE NEW HOVER VIBE --- */
.claim-btn-discord:hover:not(.is-claimed) {
  transform: translateY(-3px) scale(1.02); /* Lifts up and gets slightly bigger */
  filter: brightness(1.2); /* Lights up the whole button */
  box-shadow: 0 8px 20px rgba(88, 101, 242, 0.4); /* Blurple Glow */
}

/* Make the beams spin FASTER when hovered */
.claim-btn-discord:hover:not(.is-claimed)::before {
  animation-duration: 1s; /* Turbo speed! */
}

/* Visual squish when clicking */
.claim-btn-discord:active:not(.is-claimed) {
  transform: translateY(-1px) scale(0.98);
}

.btn-text {
  position: relative;
  display: block;
  font-size: 11px;
  font-weight: 900;
  color: #ffffff;
  text-shadow: 0px 1px 2px rgba(0, 0, 0, 0.4);
  z-index: 2;
  text-transform: uppercase;
  letter-spacing: 1px;
}

/* Shimmer Wipe */
.btn-text::before {
  content: "";
  position: absolute;
  top: -20px;
  left: -150%;
  width: 50%;
  height: 100px;
  background: linear-gradient(
    to right,
    transparent,
    rgba(255, 255, 255, 0.25),
    transparent
  );
  transform: rotate(25deg);
  animation: shimmer-wipe 2s infinite;
  pointer-events: none;
}

@keyframes rotate-glow {
  from {
    transform: rotate(0deg);
  }
  to {
    transform: rotate(360deg);
  }
}

@keyframes shimmer-wipe {
  0% {
    left: -150%;
  }
  15% {
    left: 150%;
  }
  100% {
    left: 150%;
  }
}

/* --- THE CLAIMED STATE FIX --- */
.claim-btn-discord.is-claimed {
  background: #2b2d31 !important;
  cursor: default;
  filter: grayscale(1);
  opacity: 0.6;
  transform: none !important;
  box-shadow: none !important;
}

/* Stop animations for claimed items */
.claim-btn-discord.is-claimed .btn-text::before {
  animation: none !important;
  display: none;
}
.claim-btn-discord.is-claimed::before {
  animation: none !important;
  display: none;
}

.claim-btn-discord.is-claimed::after {
  background: #4e5058 !important;
}

.claim-btn-discord:active:not(.is-claimed) {
  transform: scale(0.95);
}

/* --- SUBTLE ICON GLOW --- */
.icons-rail .unit-box {
  /* Soft Blurple aura that is visible but not distracting */
  box-shadow: 0 0 12px rgba(201, 202, 209, 0.45);

  /* Adds a thin "light-catching" edge */
  border: 1px solid rgba(201, 202, 209, 0.45) !important;

  transition: all 0.3s ease;
}

/* When the user hovers over the gift row, the icons glow a bit more */
.loot-row:hover .icons-rail .unit-box {
  box-shadow: 0 0 18px rgba(201, 202, 209, 0.45);
  border-color: rgba(201, 202, 209, 0.45) !important;
}

/* Make sure the images inside stay clean */
.icons-rail .unit-box img {
  filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.5));
}

/* --- GAME-STYLE UTILITY NODES --- */
.utility-node {
  position: relative;
  width: 60px;
  height: 60px;
  cursor: pointer;
  transition: transform 0.2s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.utility-node:hover {
  transform: scale(1.1) translateX(-5px);
}

.utility-icon-box {
  width: 100%;
  height: 100%;
  border-radius: 12px;
  border: 2px solid rgba(255, 255, 255, 0.2);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
}

.utility-label {
  position: absolute;
  bottom: -6px;
  left: 50%;
  transform: translateX(-50%);
  padding: 2px 6px;
  border-radius: 4px;
  font-size: 8px;
  font-weight: 900;
  color: white;
  white-space: nowrap;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

#utility-modal .bg-\[#2b2d31\] {
  max-width: 600px !important; /* Bigger width: from md to xl equivalent */
  width: 95%;
  max-height: 80vh;
  display: flex;
  flex-direction: column;
}

#modal-body {
  overflow-y: auto; /* Scrollable content for long lists */
  scrollbar-width: thin;
  scrollbar-color: #5865f2 transparent;
  scrollbar-width: thin;
  scrollbar-color: #5865f2 transparent;
}

/* Discord Style Scrollbar for the Modal */
#modal-body::-webkit-scrollbar {
  width: 6px;
}
#modal-body::-webkit-scrollbar-track {
  background: transparent;
}
#modal-body::-webkit-scrollbar-thumb {
  background: #1e1f22;
  border-radius: 10px;
}

/* --- COPY FEEDBACK ANIMATION --- */
.copy-success {
  background: #23a559 !important; /* Discord Green */
  transform: scale(1.05);
}

.promo-row {
  background: #1e1f22;
  border: 1px solid rgba(255, 255, 255, 0.05);
  transition: border-color 0.3s;
}

.promo-row:hover {
  border-color: #5865f2;
}

/* Ensure the modal doesn't break on tiny screens */
@media (max-height: 500px) {
  #utility-modal .bg-\[#2b2d31\] {
    max-height: 95vh;
  }
}

.utility-label {
  position: absolute;
  bottom: -6px;
  left: 50%;
  transform: translateX(-50%);
  padding: 2px 8px; /* Slightly wider for better text fit */
  border-radius: 4px;
  font-size: 8px;
  font-weight: 900;
  color: white;
  white-space: nowrap;
  /* This border makes it look like it's part of the icon box */
  border: 1px solid rgba(255, 255, 255, 0.2);
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.3);
  z-index: 10;
}

/* --- THE RED NOTIFICATION DOT --- */
.utility-node {
  position: relative; /* Container for the dot */
}

.red-dot {
  position: absolute;
  top: -2px;
  right: -2px;
  width: 14px;
  height: 14px;
  background: radial-gradient(
    circle at 30% 30%,
    #ff5f5f,
    #cc0000
  ); /* 3D Sphere Look */
  border: 2px solid #1e1f22; /* Discord background border to make it pop */
  border-radius: 50%;
  z-index: 20;
  box-shadow: 0 0 10px rgba(239, 68, 68, 0.8);
  pointer-events: none; /* User clicks the icon through the dot */
}

/* Pulsing effect to catch the eye */
.red-dot.pulse {
  animation: badge-pulse 2s infinite;
}

@keyframes badge-pulse {
  0% {
    transform: scale(1);
    box-shadow: 0 0 0 0 rgba(239, 68, 68, 0.7);
  }
  70% {
    transform: scale(1.2);
    box-shadow: 0 0 0 6px rgba(239, 68, 68, 0);
  }
  100% {
    transform: scale(1);
    box-shadow: 0 0 0 0 rgba(239, 68, 68, 0);
  }
}

/* Hide the up/down arrows in number inputs */
input::-webkit-outer-spin-button,
input::-webkit-inner-spin-button {
  -webkit-appearance: none;
  margin: 0;
}

/* Hide the up/down arrows in number inputs */
input::-webkit-outer-spin-button,
input::-webkit-inner-spin-button {
  -webkit-appearance: none;
  margin: 0;
}

input[type="number"] {
  -moz-appearance: textfield; /* For Firefox */
  appearance: none; /* THE FIX: Standard property */
}

#modal-body .grid-cols-2 {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
}

@media (max-width: 480px) {
  #modal-body .grid-cols-2 {
    grid-template-columns: 1fr; /* Stack on small phones */
  }
}

/* Force images to show up in the Utility Modals regardless of loading state */
#modal-body .unit-box img,
#modal-body .podium-box img {
  opacity: 1 !important;
  display: block !important;
}

/* Ensure the grid works in the modal */
.grid-cols-1.sm\:grid-cols-2 {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 8px;
}

@media (max-width: 480px) {
  .grid-cols-1.sm\:grid-cols-2 {
    grid-template-columns: 1fr;
  }
}

/* --- ASSET LIBRARY STYLES --- */
.asset-item {
  background: #1e1f22;
  border: 1px solid #2b2d31;
  padding: 10px;
  border-radius: 8px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  cursor: pointer;
  transition: all 0.2s;
}

.asset-item:hover {
  border-color: #5865f2;
  background: #2b2d31;
  transform: translateY(-2px);
}

.asset-icon-preview {
  width: 40px;
  height: 40px;
  object-fit: contain;
}

.asset-name-label {
  font-size: 10px;
  font-weight: 700;
  color: #949ba4;
  text-align: center;
  word-break: break-all;
}

/* Success flash when name is copied */
.asset-item.copied {
  border-color: #23a559;
  background: rgba(35, 165, 89, 0.1);
}

.asset-icon-preview {
  width: 40px;
  height: 40px;
  display: block !important;
  opacity: 1 !important;
}



/* Mobile Fix: Ensure the sidebars hide correctly */
@media (max-width: 1024px) {
    #utility-sidebar, #intelligence-wing {
        display: none !important;
    }
}




@media (min-width: 1024px) {
    /* This balances the 3-column layout so the middle stays centered */
    #utility-sidebar {
        /* We add a fake margin to the left of the icons 
           to push the middle content back toward the center */
        margin-left: auto; 
    }
    
    #intelligence-wing {
        margin-right: auto;
    }
}

/* Ensure the Schedule titles and Oracle Switcher are centered */
#oracle .oracle-mode-switcher,
#oracle h2 {
    margin-left: auto;
    margin-right: auto;
}



/* This adds a soft dark shadow behind the text to make it pop against the image */
.gift-name, .gift-desc, h2.font-serif {
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.8), 0 0 20px rgba(0, 0, 0, 0.5);
}

/* This dims the background image ONLY in the center to help the cards stand out */
main::before {
    content: '';
    position: fixed;
    top: 0; left: 0; width: 100%; height: 100%;
    /* A radial gradient: transparent in the corners, dark in the middle */
    background: radial-gradient(circle, rgba(49, 51, 56, 0.2) 0%, rgba(49, 51, 56, 0.5) 100%);
    z-index: -1;
    pointer-events: none;
}





/* Ensure main content is clearly on top */
main {
    position: relative;
    z-index: 10;
}

/* Mobile Performance: Hide video on very weak devices to save battery */
@media (max-width: 640px) {
    .bg-video {
        display: none; /* Mobile users prefer speed over video backgrounds */
    }
}

.utility-icon-box {
    /* Add a stronger border so they don't disappear into the character art */
    border: 2px solid rgba(255, 255, 255, 0.3) !important;
    backdrop-filter: blur(5px); /* Makes the icon box look like glass */
}

/* --- STATIC BACKGROUND SYSTEM --- */
.bg-engine {
    position: fixed;
    inset: 0;
    z-index: -1;
    background-color: #313338; /* The Discord Anchor Color */
    overflow: hidden;
}

.bg-static-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.5; /* Keeps it subtle */
    transition: opacity 0.5s ease;
}

.bg-mask {
    position: absolute;
    inset: 0;
    /* THE MAGIC: 
       - Center is transparent to show the art.
       - Edges fade into the exact Discord BG color (#313338).
    */
    background: radial-gradient(
        circle at 50% 45%, 
        transparent 10%, 
        rgba(49, 51, 56, 0.3) 40%, 
        #313338 85%
    );
}

/* Ensure content on top is easy to read */
.loot-row, .meta-card, aside {
    backdrop-filter: blur(8px); /* Optional: Adds a "Frosted Glass" feel to cards */
}