@media (max-width: 700px) {
    .system-modal {
      align-items: flex-start !important;
      justify-content: flex-start !important;
      padding-top: 0 !important;
      padding-bottom: 0 !important;
    }
  .nav-btn {
    font-size: 0.82em !important;
    padding: 0.28em 0.7em !important;
    margin: 0 0.08em !important;
  }
}
/* Unified navbar button style (matches credits/mute) */
.nav-btn {
  padding: 0.28em 0.8em;
  font-size: 0.92em;
  background: #0a1a2c;
  color: #00d4ff;
  border: 1.5px solid #00d4ff;
  border-radius: 0.7em;
  box-shadow: 0 0 8px #00d4ff55;
  opacity: 0.85;
  cursor: pointer;
  font-weight: 600;
  text-decoration: none;
  transition: background 0.18s, color 0.18s, opacity 0.18s, box-shadow 0.18s;
  letter-spacing: 0.03em;
  margin: 0 0.2em;
}
.nav-btn:hover, .nav-btn:focus {
  background: #00d4ff;
  color: #0a1a2c;
  opacity: 1;
  box-shadow: 0 0 12px #00d4ff99;
}
html, body {
  overscroll-behavior: contain;
  overscroll-behavior-y: contain;
  touch-action: pan-x pan-y;
  background: #0a1a2c !important;
  margin: 0 !important;
  padding: 0 !important;
  min-height: 100vh !important;
  width: 100vw !important;
  box-sizing: border-box;
}
.system-table th, .system-table td {
  padding: 0.7em 1.5em !important;
  text-align: center;
  font-size: 1.15em;
}
.system-table th {
  background: #0e1a2a;
  color: var(--neon-blue);
  font-weight: bold;
  letter-spacing: 0.04em;
}
.system-table td.rank-F { color: #aaa; font-weight: bold; }
.system-table td.rank-Fp { color: #bbb; font-weight: bold; }
.system-table td.rank-E { color: #7fd8ff; font-weight: bold; }
.system-table td.rank-Ep { color: #6ee7ff; font-weight: bold; }
.system-table td.rank-D { color: #00d4ff; font-weight: bold; }
.system-table td.rank-Dp { color: #00b8e6; font-weight: bold; }
.system-table td.rank-C { color: #6e7fff; font-weight: bold; }
.system-table td.rank-Cp { color: #a259ff; font-weight: bold; }
.system-table td.rank-B { color: #ffd700; font-weight: bold; }
.system-table td.rank-Bp { color: #ffaa00; font-weight: bold; }
.system-table td.rank-A { color: #ff4e6b; font-weight: bold; }
.system-table td.rank-Ap { color: #ff2a2a; font-weight: bold; }
.system-table td.rank-S { color: #ff2a2a; font-weight: bold; }
.system-table td.rank-Sp { color: #ff0033; font-weight: bold; }
.system-table td.rank-Spp { color: #ff0033; font-weight: bold; text-shadow: 0 0 8px #ff0033, 0 0 16px #ff0033; }
.system-table td.rank-Sppp {
  color: #ff4e6b;
  font-weight: bold;
  text-shadow: 0 0 24px #ff4e6b, 0 0 32px #7b2fff, 0 0 16px #00d4ff;
  animation: splus-text-glow 2.2s ease-in-out infinite alternate;
}
@keyframes splus-text-glow {
  0% { text-shadow: 0 0 24px #ff4e6b, 0 0 32px #7b2fff, 0 0 16px #00d4ff; }
  50% { text-shadow: 0 0 48px #ff4e6b, 0 0 64px #7b2fff, 0 0 32px #00d4ff; }
  100% { text-shadow: 0 0 24px #ff4e6b, 0 0 32px #7b2fff, 0 0 16px #00d4ff; }
}
@keyframes splus-glow {
  0% { box-shadow: 0 0 16px #ff4e6b, 0 0 24px #7b2fff, 0 0 8px #00d4ff; }
  50% { box-shadow: 0 0 32px #ff4e6b, 0 0 48px #7b2fff, 0 0 24px #00d4ff; }
  100% { box-shadow: 0 0 16px #ff4e6b, 0 0 24px #7b2fff, 0 0 8px #00d4ff; }
}
/* Center Best Builds grid on builds.html */
/* Move Best Builds grid slightly left */
.builds-grid {
  /* Positioning removed for builds-grid. Now uses default flow. */
}
}
@media (max-width: 900px) {
  .builds-grid {
    flex-direction: column !important;
    align-items: center !important;
    width: 100vw !important;
    max-width: 100vw !important;
  }
}
html, body {
  overscroll-behavior-y: contain;
  max-width: 100vw;
  overflow-x: hidden;
  box-sizing: border-box;
}
/* --- DUNGEON CARD OUTLINE & GLOW --- */
.dungeon-card {
  border: 3px solid #00d4ff;
  border-radius: 18px;
  box-shadow: 0 0 12px 2px #00d4ff33;
  transition: box-shadow 0.25s, border-color 0.25s;
  cursor: pointer;
}
.dungeon-card.recommended {
  border-color: #ffe47a;
  box-shadow: 0 0 24px 6px #ffe47a99, 0 0 40px 10px #ffe47a55;
  animation: dungeon-glow 1.2s ease-in-out infinite alternate;
}
@keyframes dungeon-glow {
  0% { box-shadow: 0 0 24px 6px #ffe47a99, 0 0 40px 10px #ffe47a55; }
  100% { box-shadow: 0 0 36px 12px #ffe47aee, 0 0 60px 18px #ffe47a88; }
}

/* Modal for dungeon map */
#dungeon-map-modal {
  display: none;
  position: fixed;
  z-index: 1002;
  left: 0; top: 0; width: 100vw; height: 100vh;
  background: rgba(10,18,32,0.92);
  align-items: center;
  justify-content: center;
}
#dungeon-map-modal.active {
  display: flex;
}
#dungeon-map-modal .map-modal-content {
  background: #181e2a;
  border-radius: 16px;
  box-shadow: 0 0 24px #00d4ff55;
  padding: 1.2em 1.2em 0.7em 1.2em;
  max-width: 96vw;
  max-height: 90vh;
  display: flex;
  flex-direction: column;
  align-items: center;
}
#dungeon-map-modal img {
  max-width: 90vw;
  max-height: 70vh;
  border-radius: 10px;
  box-shadow: 0 0 18px #00d4ff77;
}
#dungeon-map-modal .close-map-modal {
  margin-top: 1em;
  background: #00d4ff;
  color: #181e2a;
  border: none;
  border-radius: 8px;
  font-size: 1.1em;
  padding: 0.4em 1.2em;
  cursor: pointer;
  font-weight: 700;
  box-shadow: 0 0 8px #00d4ff55;
}
/* Remove all ...existing code... and unfinished/broken rules */
/* Remove ...existing code... lines and any rules that are not valid CSS selectors or are incomplete. */

/* Show Drops Button */
.show-drops-btn {
  margin-left: 1em;
  padding: 0.28em 1.1em;
  font-size: 1em;
  background: #0a1a2c;
  color: #00d4ff;
  border: 1.5px solid #00d4ff;
  border-radius: 0.7em;
  box-shadow: 0 0 8px #00d4ff55;
  opacity: 0.92;
  cursor: pointer;
  transition: background 0.18s, color 0.18s, opacity 0.18s;
}
.show-drops-btn:hover, .show-drops-btn:focus {
  background: #00d4ff;
  color: #0a1a2c;
  opacity: 1;
}
/* Gate Info (levelguide) page gate sections */
.gate-section {
  background: rgba(30, 32, 40, 0.92);
  border-radius: 18px;
  box-shadow: 0 2px 16px 0 #0008;
  margin: 2em auto 2.5em auto;
  padding: 1.5em 1.2em 1.2em 1.2em;
  max-width: 540px;
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: stretch;
}
.gate-header {
  display: flex;
  align-items: center;
  gap: 0.7em;
  font-size: 1.35em;
  font-weight: 700;
  margin-bottom: 0.7em;
  color: #e0e6ff;
  letter-spacing: 0.03em;
}
.gate-title {
  color: #7fd7ff;
  font-size: 1.1em;
  font-weight: 800;
  text-shadow: 0 1px 6px #0ff4, 0 0px 1px #000a;
}
.gate-lv {
  color: #ffd86b;
  font-size: 0.95em;
  font-weight: 600;
  background: #222b;
  border-radius: 8px;
  padding: 0.1em 0.7em;
  margin-left: 0.5em;
}
.page-wrapper {
  padding-top: 80px;
  padding-bottom: 60px;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}
  background: #1a1e2a88;
.container {
  position: relative;
  z-index: 2;
  max-width: 1200px;
  margin: 0 auto;
  padding: 2.5em 1.5em 2.5em 1.5em;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: 100%;
  min-height: 80vh;
  background: none !important;
  box-shadow: none !important;
}
@media (max-width: 700px) {
.page-header, .center-builds-wrapper, .build-card, .build-header, .center-build-row, .center-build-items, .center-build-stats {
  display: flex;
  flex-direction: column;
  align-items: center !important;
  justify-content: center !important;
  width: 100%;
}

.page-title, .page-subtitle, .system-tag {
  text-align: center !important;
  width: 100%;
}
  .gate-section {
    max-width: 98vw;
    padding: 1em 0.5em 1em 0.5em;
  }
  .gate-header {
    font-size: 1.08em;
  }
  .gate-title {
    font-size: 1em;
  }
  .gate-lv {
    font-size: 0.88em;
    padding: 0.1em 0.5em;
  }
  .gate-drops {
    font-size: 0.98em;
    padding: 0.4em 0.5em;
  }
}
/* Make the magic modal popup a bit smaller */
#magic-modal .system-modal-content {
  max-width: none !important;
  min-width: 0 !important;
  width: auto !important;
  padding: 1.2em 1em 1em 1em !important;
  display: inline-block !important;
}
/* --- Solo Leveling tier glow effects for weapons and tier lists --- */
.tier-label.s-tier {
  color: #ff4e6b;
  text-shadow: 0 0 14px #ff4e6b, 0 0 24px #ff4e6b;
  animation: s-tier-label-glow-weapons 2.5s ease-in-out infinite alternate;
}
.tier-label.a-tier {
  color: #6e7fff;
  text-shadow: 0 0 12px #6e7fff, 0 0 24px #6e7fff;
  animation: a-tier-label-glow 2.5s ease-in-out infinite alternate;
}
.tier-label.b-tier {
  color: #ffd700 !important;
  text-shadow: 0 0 12px #ffd700, 0 0 22px #ffd700 !important;
  animation: b-tier-label-glow 2.5s ease-in-out infinite alternate !important;
}
.tier-label.f-tier {
  color: #7fd8ff !important;
  text-shadow: 0 0 12px #7fd8ff, 0 0 22px #7fd8ff !important;
  animation: f-tier-label-glow-lightblue 2.5s ease-in-out infinite alternate !important;
}
.solo-slot.s-tier {
  border-color: #ff4e6b;
  box-shadow: 0 0 18px 5px #ff4e6bcc, 0 0 28px 10px #ff4e6baa;
  animation: float-glow-s-tier 7s ease-in-out infinite alternate, s-tier-pulse-magic 2.8s ease-in-out infinite alternate;
}
.solo-slot.a-tier {
  border-color: #6e7fff;
  box-shadow: 0 0 18px 4px #6e7fffcc, 0 0 32px 8px #6e7fff88;
  animation: float-glow-a-tier 7.5s ease-in-out infinite alternate;
}
.solo-slot.b-tier {
  border-color: #ffd700 !important;
  box-shadow: 0 0 16px 4px #ffd700cc, 0 0 28px 8px #ffd70088 !important;
  animation: float-glow-b-tier 7.5s ease-in-out infinite alternate !important;
}
.solo-slot.f-tier {
  border-color: #7fd8ff !important;
  box-shadow: 0 0 14px 4px #7fd8ffcc, 0 0 24px 8px #7fd8ff88 !important;
  animation: float-glow-f-tier 8.5s ease-in-out infinite alternate !important;
}
@keyframes float-glow-s-tier {
  0% { transform: translateY(0px) scale(1); box-shadow: 0 0 18px 5px #ff4e6bcc, 0 0 28px 10px #ff4e6baa; }
  50% { transform: translateY(-8px) scale(1.04); box-shadow: 0 0 28px 10px #ff4e6b, 0 0 40px 14px #ff4e6b; }
  100% { transform: translateY(0px) scale(1); box-shadow: 0 0 18px 5px #ff4e6bcc, 0 0 28px 10px #ff4e6baa; }
}
@keyframes float-glow-a-tier {
  0% { transform: translateY(0px) scale(1); box-shadow: 0 0 18px 4px #6e7fffcc, 0 0 32px 8px #6e7fff88; }
  50% { transform: translateY(-6px) scale(1.03); box-shadow: 0 0 32px 12px #6e7fff, 0 0 40px 16px #6e7fff; }
  100% { transform: translateY(0px) scale(1); box-shadow: 0 0 18px 4px #6e7fffcc, 0 0 32px 8px #6e7fff88; }
}
@keyframes s-tier-label-glow-weapons {
  0% { text-shadow: 0 0 14px #ff4e6b, 0 0 24px #ff4e6b; }
  50% { text-shadow: 0 0 24px #ff4e6b, 0 0 36px #ff4e6b; }
  100% { text-shadow: 0 0 14px #ff4e6b, 0 0 24px #ff4e6b; }
}
@keyframes a-tier-label-glow {
  0% { text-shadow: 0 0 12px #6e7fff, 0 0 24px #6e7fff; }
  50% { text-shadow: 0 0 24px #6e7fff, 0 0 36px #6e7fff; }
  100% { text-shadow: 0 0 12px #6e7fff, 0 0 24px #6e7fff; }
}
@keyframes b-tier-label-glow {
  0% { text-shadow: 0 0 12px #ffd700, 0 0 22px #ffd700; }
  50% { text-shadow: 0 0 22px #ffd700, 0 0 36px #ffd700; }
  100% { text-shadow: 0 0 12px #ffd700, 0 0 22px #ffd700; }
}
@keyframes f-tier-label-glow-lightblue {
  0% { text-shadow: 0 0 12px #7fd8ff, 0 0 22px #7fd8ff; }
  50% { text-shadow: 0 0 22px #7fd8ff, 0 0 32px #7fd8ff; }
  100% { text-shadow: 0 0 12px #7fd8ff, 0 0 22px #7fd8ff; }
}
@keyframes float-glow-b-tier {
  0% { transform: translateY(0px) scale(1); box-shadow: 0 0 16px 4px #ffd700cc, 0 0 28px 8px #ffd70088; }
  50% { transform: translateY(-4px) scale(1.02); box-shadow: 0 0 28px 12px #ffd700, 0 0 36px 16px #ffd700; }
  100% { transform: translateY(0px) scale(1); box-shadow: 0 0 16px 4px #ffd700cc, 0 0 28px 8px #ffd70088; }
}
@keyframes float-glow-f-tier {
  0% { transform: translateY(0px) scale(1); box-shadow: 0 0 14px 4px #7fd8ffcc, 0 0 24px 8px #7fd8ff88; }
  50% { transform: translateY(-2px) scale(1.01); box-shadow: 0 0 24px 12px #7fd8ff, 0 0 32px 16px #7fd8ff; }
  100% { transform: translateY(0px) scale(1); box-shadow: 0 0 14px 4px #7fd8ffcc, 0 0 24px 8px #7fd8ff88; }
}
/* --- COOL WEAPON INFO BUTTON --- */

/* --- SMALL WEAPON INFO BUTTON --- */
.weapon-info-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.25em;
  padding: 0.22em 0.7em;
  background: linear-gradient(90deg, #0e1a2a 60%, #101a2a 100%);
  border: 1.5px solid #00d4ff;
  border-radius: 0.5em;
  color: #00d4ff;
  font-family: 'Orbitron', 'Segoe UI', monospace;
  font-size: 0.78em;
  font-weight: 900;
  letter-spacing: 0.06em;
  text-shadow: 0 0 6px #00d4ff, 0 0 1px #fff;
  box-shadow: 0 0 12px #00d4ff33, 0 0 1px #fff2;
  cursor: pointer;
  position: relative;
  overflow: hidden;
  transition: color 0.18s, box-shadow 0.18s, border-color 0.18s, background 0.18s;
  z-index: 1;
}
.weapon-info-btn .system-btn-icon {
  font-size: 0.95em;
  filter: drop-shadow(0 0 3px #00d4ff);
  margin-right: 0.1em;
}
.weapon-info-btn:hover, .weapon-info-btn:focus {
  color: #0fffc1;
  border-color: #0fffc1;
  box-shadow: 0 0 18px #0fffc1cc, 0 0 3px #fff2;
  background: linear-gradient(90deg, #101a2a 60%, #0e1a2a 100%);
}
.weapon-info-btn::before {
  content: "";
  position: absolute;
  top: -1px; left: -1px; right: -1px; bottom: -1px;
  border-radius: 0.7em;
  background: linear-gradient(120deg, #00d4ff33 0%, #0fffc133 100%);
  opacity: 0.4;
  z-index: -1;
  filter: blur(3px);
  pointer-events: none;
  /* animation removed for performance */
}
@keyframes weapon-info-glow-small {
  0% { opacity: 0.4; filter: blur(3px); }
  50% { opacity: 0.7; filter: blur(6px); }
  100% { opacity: 0.4; filter: blur(3px); }
}
.commander-glow {
  box-shadow: 0 0 32px 8px #ff2a2a99, 0 0 12px 2px #ff2a2a55, 0 0 2px #fff2;
  border: 2.5px solid #ff2a2a;
}
@keyframes card-float {
  0% {
    transform: translateY(0) scale(1);
  }
  50% {
    transform: translateY(-12px) scale(1.04);
  }
  100% {
    transform: translateY(0) scale(1);
  }
}
.rarity-float {
  animation: rarity-float 2.2s ease-in-out infinite alternate;
  filter: drop-shadow(0 0 6px currentColor) drop-shadow(0 0 10px currentColor);
}
@keyframes rarity-float {
  0% {
    transform: translateY(0) scale(1);
    opacity: 1;
    filter: drop-shadow(0 0 6px currentColor) drop-shadow(0 0 10px currentColor);
  }
  50% {
    transform: translateY(-6px) scale(1.06);
    opacity: 0.96;
    filter: drop-shadow(0 0 12px currentColor) drop-shadow(0 0 18px currentColor);
  }
  100% {
    transform: translateY(0) scale(1);
    opacity: 1;
    filter: drop-shadow(0 0 6px currentColor) drop-shadow(0 0 10px currentColor);
  }
}
.floating-glow {
  animation: float-glow 2.2s ease-in-out infinite alternate;
  filter: drop-shadow(0 0 8px currentColor) drop-shadow(0 0 16px currentColor);
}
@keyframes float-glow {
  0% {
    transform: translateY(0) scale(1);
    opacity: 1;
    filter: drop-shadow(0 0 8px currentColor) drop-shadow(0 0 16px currentColor);
  }
  50% {
    transform: translateY(-8px) scale(1.07);
    opacity: 0.92;
    filter: drop-shadow(0 0 16px currentColor) drop-shadow(0 0 32px currentColor);
  }
  100% {
    transform: translateY(0) scale(1);
    opacity: 1;
    filter: drop-shadow(0 0 8px currentColor) drop-shadow(0 0 16px currentColor);
  }
}
.rarity-mythic {
  color: #00d4ff;
  font-weight: bold;
  text-shadow: 0 0 12px #00d4ff, 0 0 2px #fff;
  font-family: 'Orbitron', 'Segoe UI', monospace;
  letter-spacing: 0.07em;
  font-size: 1.08em;
  margin-bottom: 0.2em;
  display: block;
}
.rarity-epic {
  color: #a259ff;
  font-weight: bold;
  text-shadow: 0 0 12px #a259ff, 0 0 2px #fff;
  font-family: 'Orbitron', 'Segoe UI', monospace;
  letter-spacing: 0.07em;
  font-size: 1.08em;
  margin-bottom: 0.2em;
  display: block;
}
/* Mythic and Epic Glow for Armor Cards */
/* Legendary Glow for Magic Cards */
.magic-glow-legendary {
  box-shadow: 0 0 28px 7px #ffaa00cc, 0 0 0 3px #fff2, 0 0 18px 7px #ffaa0055 inset;
  border-radius: 1.2em 1.2em 0 0;
  background: linear-gradient(120deg, #ffaa0022 0%, #fff2 100%);
  position: relative;
}
/* === MOBILE FRIENDLY GLOBAL STYLES === */
@media (max-width: 900px) {
  html {
    font-size: 15px;
  }
  .container, .system-container, .page-wrapper {
    padding: 0.5em 0.5em !important;
    max-width: 100vw !important;
  }
  .menu-grid, .center-grid {
    flex-direction: column !important;
    gap: 1.2em !important;
    align-items: stretch !important;
  }
  .menu-btn {
    min-width: 0 !important;
    width: 100% !important;
    font-size: 1.08em !important;
    padding: 1.1em 0.5em !important;
  }
  .status-bar {
    flex-direction: column !important;
    gap: 0.5em !important;
    font-size: 1em !important;
  }
  .system-modal-content {
    min-width: 0 !important;
    max-width: 98vw !important;
    width: 98vw !important;
    padding: 1.1em 0.5em 1em 0.5em !important;
    font-size: 1.18em !important;
    box-sizing: border-box !important;
    overflow-x: auto !important;
  }
  .system-modal {
    align-items: center !important;
    justify-content: center !important;
    padding-bottom: 0 !important;
  }
  .dungeon-flex-row, .center-build-row {
    flex-direction: column !important;
    gap: 1.2em !important;
    align-items: stretch !important;
  }
  .dungeon-col, .dungeon-center-panel {
    min-width: 0 !important;
    max-width: 100vw !important;
    width: 100% !important;
    align-items: stretch !important;
  }
  .dungeon-card {
    min-width: 0 !important;
    max-width: 100vw !important;
    width: 100% !important;
    font-size: 1em !important;
  }
  .dropdown-table, .dropdown-content, .system-table {
    max-width: 100vw !important;
    overflow-x: auto !important;
    font-size: 0.98em !important;
  }
  .system-bg-circuit svg {
    width: 100vw !important;
    height: auto !important;
  }
  .hero-title, .page-title {
    font-size: 2em !important;
  }
  .site-footer {
    font-size: 0.98em !important;
    padding: 0.7em 0.2em !important;
  }
  .credits-modal-content {
    min-width: 0 !important;
    max-width: 95vw !important;
    font-size: 1em !important;
  }
}
/* Armor card glows by rarity, floating handled by .floaty-card */
/* Animated rarity glow for cards */
/* Red mythic glow for all weapon cards */
.item-card.mythic-glow {
  box-shadow: 0 0 32px 8px #ff2a2acc, 0 0 18px 4px #ff4e6b99, 0 0 2px #fff2 !important;
  border: 2.5px solid #ff2a2a !important;
  animation: mythic-glow-red-float 2.8s ease-in-out infinite alternate !important;
}
.item-card.epic-glow {
  box-shadow: 0 0 32px 8px #a259ffcc, 0 0 12px 2px #7b2fff99, 0 0 2px #fff2 !important;
  border: 2.5px solid #a259ff !important;
  animation: epic-glow-float 2.8s ease-in-out infinite alternate !important;
}
@keyframes mythic-glow-red-float {
  0% { box-shadow: 0 0 32px 8px #ff2a2acc, 0 0 18px 4px #ff4e6b99, 0 0 2px #fff2; }
  50% { box-shadow: 0 0 56px 20px #ff4e6b, 0 0 32px 12px #ff2a2a, 0 0 12px #fff2; }
  100% { box-shadow: 0 0 32px 8px #ff2a2acc, 0 0 18px 4px #ff4e6b99, 0 0 2px #fff2; }
}
@keyframes epic-glow-float {
  0% { box-shadow: 0 0 32px 8px #a259ffcc, 0 0 12px 2px #7b2fff99, 0 0 2px #fff2; }
  50% { box-shadow: 0 0 48px 16px #d1aaff, 0 0 24px 8px #7b2fff, 0 0 8px #fff2; }
  100% { box-shadow: 0 0 32px 8px #a259ffcc, 0 0 12px 2px #7b2fff99, 0 0 2px #fff2; }
}
body {
  background: linear-gradient(120deg, #0a1830 60%, #0e1a2a 100%) !important;
  min-height: 100vh;
  overflow-x: hidden;
  /* Allow vertical scrolling by default */
  overflow-y: auto;
}

@media (max-width: 900px) {
  html, body {
    /* Remove all overflow/overscroll/touch-action to restore default browser scrolling */
  }
}
body::before {
  content: '';
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  z-index: 0;
  pointer-events: none;
  background:
    repeating-linear-gradient(135deg, rgba(0,212,255,0.08) 0 2px, transparent 2px 40px),
    repeating-linear-gradient(-135deg, rgba(162,89,255,0.07) 0 2px, transparent 2px 40px),
    radial-gradient(ellipse at 60% 20%, rgba(0,212,255,0.13) 0%, transparent 70%),
    radial-gradient(ellipse at 30% 80%, rgba(162,89,255,0.10) 0%, transparent 70%),
    linear-gradient(120deg, rgba(10,26,47,0.95) 0%, rgba(14,42,71,0.98) 100%);
  animation: bg-move 18s linear infinite alternate;
}
@keyframes bg-move {
  0% { background-position: 0 0, 0 0, 0 0, 0 0, 0 0; }
  100% { background-position: 80px 40px, -80px -40px, 0 0, 0 0, 0 0; }
}
/* Clickable build links */
.clickable-link {
  cursor: pointer;
  text-decoration: none;
  color: #00d4ff;
  transition: color 0.18s, text-shadow 0.18s;
  font-weight: 600;
}
.clickable-link:hover {
  color: #ffaa00;
  text-shadow: 0 0 8px #ffaa00cc, 0 0 2px #fff;
}
.center-build-stats {
  font-size: 0.98em;
}
/* Center build content for builds page */
.center-build-row {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 1.2em;
  width: 100%;
}
.center-build-items {
  display: flex;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.5em;
  width: 100%;
}
.center-build-stats {
  display: flex;
  flex-direction: row;
  justify-content: center;
  align-items: center;
  gap: 1.2em;
  width: 100%;
  margin-bottom: 0.7em;
}
/* Stylish How to Obtain section for weapon info pages */
.obtain-section {
  margin-top: 1.7em;
  margin-bottom: 0.5em;
  background: linear-gradient(90deg, #181a2a 60%, #101a2a 100%);
  border-radius: 0.8em;
  box-shadow: 0 0 18px #00d4ff55, 0 0 2px #7b2fff44;
  padding: 1.1em 1.2em 1.2em 1.2em;
  text-align: center;
  max-width: 320px;
  margin-left: auto;
  margin-right: auto;
}
.obtain-title {
  color: #ffaa00;
  font-family: 'Orbitron', 'Segoe UI', monospace;
  font-size: 1.18em;
  font-weight: bold;
  letter-spacing: 0.09em;
  margin-bottom: 0.7em;
  text-shadow: 0 0 8px #ffaa00cc, 0 0 2px #fff;
}
.obtain-methods {
  display: flex;
  flex-direction: column;
  gap: 0.5em;
  align-items: center;
  justify-content: center;
}
.obtain-way {
  color: #eaf6ff;
  font-size: 1.08em;
  font-family: 'Orbitron', 'Segoe UI', monospace;
  background: rgba(0,212,255,0.08);
  border-radius: 0.5em;
  padding: 0.3em 1em;
  margin-bottom: 0.1em;
  box-shadow: 0 0 8px #00d4ff33;
  display: flex;
  align-items: center;
  gap: 0.7em;
  letter-spacing: 0.04em;
}
.obtain-icon {
  font-size: 1.25em;
  filter: drop-shadow(0 0 4px #00d4ff);
  margin-right: 0.3em;
}
/* System Modal for Artifacts Materials */
.system-modal {
  position: fixed;
  z-index: 9999;
  left: 0; top: 0; width: 100vw; height: 100vh;
  background: rgba(10,20,40,0.82);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: opacity 0.2s;
}
.system-modal-content {
  background: linear-gradient(120deg, #101a2a 80%, #1a2e4a 100%);
  border-radius: 1.2em;
  box-shadow: 0 0 32px #00d4ff55, 0 0 2px #fff2;
  padding: 2.2em 2.5em 1.5em 2.5em;
  min-width: 0;
  max-width: 98vw;
  width: 98vw;
  box-sizing: border-box;
    body, html {
      font-size: 15px !important;
      line-height: 1.7 !important;
      overscroll-behavior-y: contain;
    }
    .navbar {
      height: 60px !important;
      padding: 0 10px !important;
    }
    .nav-logo {
      font-size: 1.1em !important;
      max-width: 120px !important;
    }
    .nav-links a {
      font-size: 0.9em !important;
      padding: 6px 10px !important;
      min-width: 44px;
      min-height: 44px;
      display: flex;
      align-items: center;
      justify-content: center;
    }
    .menu-btn {
      font-size: 1em !important;
      padding: 0.8em 0.5em !important;
      min-width: 44px;
      min-height: 44px;
    }
    .system-modal-content, .credits-modal-content {
      font-size: 1em !important;
      padding: 0.8em 0.5em 0.8em 0.5em !important;
    }
    .dungeon-card, .item-card, .solo-slot {
      font-size: 0.98em !important;
      min-width: 0 !important;
      max-width: 98vw !important;
      width: 100% !important;
      min-height: 44px;
      min-width: 44px;
    }
    .build-card, .center-build-row, .center-build-items {
      font-size: 0.98em !important;
      padding: 0.5em !important;
      margin: 0.5em 0 !important;
    }
    .page-title, .hero-title {
      font-size: 1.5em !important;
      text-align: center !important;
    }
    .site-footer {
      font-size: 0.95em !important;
      padding: 0.5em 0.2em !important;
    }
    .dropdown-table, .system-table {
      font-size: 0.95em !important;
      padding: 0.5em !important;
    }
    .show-drops-btn, .clean-recommend-btn, .weapon-info-btn {
      font-size: 1em !important;
      padding: 0.7em 1.2em !important;
      min-width: 44px;
      min-height: 44px;
    }
    input, select, textarea, button {
      font-size: 1em !important;
      min-width: 44px;
      min-height: 44px;
      padding: 0.5em !important;
    }
    .centered-level-guide, .system-container, .page-wrapper {
      padding: 0.5em !important;
      max-width: 100vw !important;
    }
    .dungeon-flex-row, .center-build-row, .center-grid {
      flex-direction: column !important;
      gap: 1.2em !important;
      align-items: stretch !important;
    }
    .dungeon-col, .dungeon-center-panel {
      min-width: 0 !important;
      max-width: 100vw !important;
      width: 100% !important;
      align-items: stretch !important;
    }
    .dropdown-table, .dropdown-content, .system-table {
      max-width: 100vw !important;
      overflow-x: auto !important;
    }
    .system-bg-circuit svg {
      width: 100vw !important;
      height: auto !important;
    }
}
.system-modal-close {
  position: absolute;
  top: 0.7em;
  right: 1.2em;
  font-size: 2.1em;
  color: #00d4ff;
  cursor: pointer;
  font-weight: bold;
  text-shadow: 0 0 12px #00d4ff, 0 0 2px #fff;
  transition: color 0.18s;
}
.system-modal-close:hover {
  color: #0fffc1;
}
/* Remove number input spinners for all browsers */
input[type=number]::-webkit-inner-spin-button, 
input[type=number]::-webkit-outer-spin-button {
  -webkit-appearance: none;
  margin: 0;
}
input[type=number] {
  -moz-appearance: textfield;
}
/* === SYSTEM BACKGROUND RANDOM LINES & ORBS === */
.system-bg-lines {
  position: fixed;
  left: 0; top: 0; width: 100vw; height: 100vh;
  pointer-events: none;
  z-index: 2;
  overflow: hidden;
}
.system-bg-line {
  position: absolute;
  height: 2.5px;
  background: linear-gradient(90deg, transparent, #00d4ff 60%, #7b2fff 100%, transparent);
  border-radius: 2px;
  filter: blur(1.5px) brightness(1.2);
  box-shadow: 0 0 18px 2px #00d4ff55;
  animation: bg-line-move var(--line-speed, 7s) linear infinite alternate;
}
@keyframes bg-line-move {
  0% { transform: translateY(0) scaleX(1) rotate(var(--angle, 0deg)); }
  50% { transform: translateY(-18px) scaleX(1.08) rotate(var(--angle, 0deg)); }
  100% { transform: translateY(0) scaleX(1) rotate(var(--angle, 0deg)); }
}
.system-bg-orbs {
  position: fixed;
  left: 0; top: 0; width: 100vw; height: 100vh;
  pointer-events: none;
  z-index: 1;
  overflow: hidden;
}
/* Make orbs smaller and always behind content */
.system-bg-orb {
  position: absolute;
  border-radius: 50%;
  background: radial-gradient(circle, #00fff7 0%, #6e7fff 60%, transparent 100%);
  filter: blur(4px) brightness(1.1);
  /* animation removed for performance */
  width: 48px !important;
  height: 48px !important;
  min-width: 32px !important;
  min-height: 32px !important;
  max-width: 64px !important;
  max-height: 64px !important;
  z-index: 0 !important;
  pointer-events: none;
}
@keyframes orb-float {
  0% { transform: translateY(0) scale(1); }
  100% { transform: translateY(-40px) scale(1.08); }
}
.dungeon-flex-row {
  display: flex;
  flex-direction: row;
  justify-content: center;
  align-items: stretch;
  gap: 3em;
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
}
.dungeon-card styles already defined above, remove invalid ...existing code... */

.dungeon-col-left {
  align-items: flex-end;
}
.dungeon-col-right {
  align-items: flex-start;
}
.dungeon-center-panel {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-width: 320px;
  max-width: 420px;
  flex: 0 0 340px;
}
/* Solo Leveling themed background */
/* Clean recommend panel styles */
.clean-recommend-panel {
  display: flex;
  flex-direction: column;
  align-items: center;
  margin-bottom: 2em;
  margin-top: 1.2em;
  width: 100%;
}
.clean-recommend-form {
  display: flex;
  flex-direction: row;
  gap: 1em;
  align-items: center;
  justify-content: center;
  width: 100%;
  max-width: 420px;
  background: none !important;
  border: none !important;
  border-radius: 0;
  box-shadow: none !important;
  padding: 0;
  font-family: 'Orbitron', 'Segoe UI', monospace;
  font-size: 1.13em;
  letter-spacing: 0.04em;
}
  .clean-recommend-form input[type="number"] {
    padding: 0.7em 1em;
    border: 2px solid #00d4ff;
    appearance: textfield;
    -moz-appearance: textfield;
  }
  border-radius: 0.5em;
  font-size: 1.1em;
  width: 110px;
  outline: none;
  background: #0e1a2a;
  color: #eaf6ff;
  font-family: 'Orbitron', 'Segoe UI', monospace;
  box-shadow: 0 0 8px #00d4ff44;
  transition: border 0.2s, box-shadow 0.2s;
  text-align: center;
}
.clean-recommend-form input[type="number"]:focus {
  border: 2px solid #00d4ff;
  box-shadow: 0 0 16px #00d4ff99;
}
.clean-recommend-btn {
  padding: 0.7em 1.5em;
  background: linear-gradient(90deg, #00d4ff 60%, #0fffc1 100%);
  color: #0e1a2a;
  border: none;
  border-radius: 0.5em;
  font-size: 1.1em;
  font-weight: 900;
  font-family: 'Orbitron', 'Segoe UI', monospace;
  cursor: pointer;
  box-shadow: 0 0 16px #00d4ff99, 0 0 2px #fff2;
  letter-spacing: 0.04em;
  text-shadow: 0 0 8px #fff, 0 0 2px #00d4ff;
  transition: background 0.2s, box-shadow 0.2s;
}
.clean-recommend-btn:hover {
  background: linear-gradient(90deg, #0fffc1 60%, #00d4ff 100%);
  box-shadow: 0 0 32px #00d4ffcc;
}
.clean-recommend-result {
  margin-top: 1em;
  font-size: 1.1em;
  color: #00d4ff;
  text-align: center;
  min-height: 1.5em;
  font-family: 'Orbitron', 'Segoe UI', monospace;
  text-shadow: 0 0 8px #00d4ff99;
}
.clean-recommend-form {
  display: flex;
  flex-direction: row;
  gap: 1em;
  align-items: center;
  justify-content: center;
  width: 100%;
  max-width: 420px;
}
.clean-recommend-form input[type="number"] {
  padding: 0.7em 1em;
  border: 1.5px solid #b3eaff;
  border-radius: 0.5em;
  font-size: 1.1em;
  width: 110px;
  outline: none;
  background: #101a2a;
  color: #eaf6ff;
  transition: border 0.2s;
}
.clean-recommend-form input[type="number"]:focus {
  border: 1.5px solid #00d4ff;
}
.clean-recommend-btn {
  padding: 0.7em 1.5em;
  background: #00d4ff;
  color: #0e1a2a;
  border: none;
  border-radius: 0.5em;
  font-size: 1.1em;
  font-weight: 700;
  cursor: pointer;
  transition: background 0.2s;
}
.clean-recommend-btn:hover {
  background: #00b8e6;
}
.clean-recommend-result {
  margin-top: 1em;
  font-size: 1.1em;
  color: #00d4ff;
  text-align: center;
  min-height: 1.5em;
}
/* Center the entire level guide content under the title */
.centered-level-guide {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  width: 100%;
  margin: 0 auto;
  min-height: 60vh;
  margin-top: -16em;
}
/* Remove extra margin between header and content */
.page-header {
  margin-bottom: 0.5em;
}
.solo-bg {
  min-height: 100vh;
  width: 100vw;
  background: transparent !important;
  position: relative;
  overflow-x: hidden;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
}
.system-container {
  position: relative;
  z-index: 2;
  max-width: 1200px;
  margin: 0 auto;
  padding: 2.5em 1.5em 2.5em 1.5em;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: 100%;
  min-height: 80vh;
  background: none !important;
  box-shadow: none !important;
}
.system-main {
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2.5em;
  margin-top: -11em;
}
.center-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 2.5em;
  width: 100%;
  margin: 0 auto;
  max-width: 1200px;
}
.center-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: flex-start;
  gap: 2.5em;
  width: 100%;
  margin: 0 auto;
  max-width: 1200px;
}
.dungeon-card {
  cursor: pointer;
  transition: box-shadow 0.2s, transform 0.2s;
  margin: 0 auto;
}
.dungeon-card.clickable:hover, .dungeon-card.active {
  box-shadow: 0 0 32px var(--neon-blue), 0 0 2px #fff2;
  transform: translateY(-4px) scale(1.03);
  z-index: 3;
}
.dungeon-table-wrap {
  width: 100%;
  overflow-x: auto;
  max-height: 0;
  opacity: 0;
  pointer-events: none;
  transition: max-height 0.35s cubic-bezier(.4,2,.6,1), opacity 0.25s;
}
.dungeon-card.active .dungeon-table-wrap {
  max-height: 600px;
  opacity: 1;
  pointer-events: auto;
  margin-top: 1em;
}
.dropdown-content {
  display: block !important;
  background: none;
  box-shadow: none;
  padding: 0;
}
.progress-arrow {
  display: none !important;
}
/* SOLO LEVELING SYSTEM UI BACKGROUND */

.solo-bg {
  min-height: 100vh;
  width: 100vw;
  background: transparent !important;
  position: relative;
  overflow-x: hidden;
  box-shadow: none !important;
}


.system-container {
  position: relative;
  z-index: 2;
  max-width: 1200px;
  margin: 0 auto;
  padding: 2.5em 1.5em 2.5em 1.5em;
  display: flex;
  flex-direction: column;
  align-items: center;
}
.system-header {
  width: 100%;
  text-align: center;
  margin-bottom: 2.5em;
}
.system-title {
  font-size: 2.7em;
  font-family: 'Orbitron', 'Segoe UI', monospace;
  color: var(--neon-blue);
  letter-spacing: 0.09em;
  text-shadow: 0 0 24px #00d4ff, 0 0 48px #7b2fff, 0 0 8px #00d4ff;
  margin-bottom: 0.2em;
  font-weight: 900;
}
.system-desc {
  color: #b3eaff;
  font-size: 1.25em;
  font-family: 'Segoe UI', monospace;
  margin-bottom: 0.5em;
  opacity: 0.85;
  letter-spacing: 0.03em;
}

.system-main {
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2.5em;
}

.system-input-panel {
  background: none !important;
  border: none !important;
  box-shadow: none !important;
  padding: 0;
  margin-bottom: 1.5em;
  width: 100%;
  max-width: 420px;
  display: flex;
  flex-direction: column;
  align-items: center;
}
.centered-form {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.2em;
  width: 100%;
}
.input-row {
  display: flex;
  align-items: center;
  gap: 1em;
  width: 100%;
  justify-content: space-between;
}
.centered-form label {
  color: var(--neon-blue);
  font-size: 1.15em;
  font-weight: bold;
  font-family: 'Orbitron', 'Segoe UI', monospace;
}
.centered-form input[type="number"] {
  background: none;
  border: 1.5px solid var(--neon-blue);
  color: #fff;
  border-radius: 0.5em;
  padding: 0.4em 0.8em;
  font-size: 1.1em;
  width: 120px;
  outline: none;
  margin-bottom: 0.5em;
  font-family: 'Orbitron', 'Segoe UI', monospace;
}
.centered-form .recommend-btn {
  background: var(--neon-blue);
  color: #0e1a2a;
  border: none;
  border-radius: 0.5em;
  font-size: 1.1em;
  font-weight: bold;
  padding: 0.5em 1.5em;
  box-shadow: 0 0 12px #00d4ff55;
  cursor: pointer;
  transition: background 0.2s, color 0.2s;
  font-family: 'Orbitron', 'Segoe UI', monospace;
}
.recommend-result {
  text-align: center;
  margin-top: 1em;
  color: #fff;
  font-size: 1.1em;
  background: rgba(20,30,50,0.7);
  border-radius: 0.5em;
  padding: 0.7em 1em;
  margin-top: 0.5em;
  box-shadow: 0 0 8px #00d4ff33;
}
/* Input and recommend result are now plain and centered, see inline styles in HTML */
.dropdown-table {
  margin-bottom: 0.5em;
}
/* === Dropdown Menus for Dungeon Tables === */
.levelguide-dropdowns {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));

  /* Level Guide Flex Layout */
  .levelguide-flex {
    display: flex;
    flex-direction: row;
    justify-content: center;
    align-items: stretch;
    gap: 2.5em;
    margin-top: 2em;
  }
  .levelguide-sides {
    display: flex;
    flex-direction: column;
    gap: 2em;
    flex: 1 1 0;
    min-width: 320px;
    max-width: 350px;
  }
  .levelguide-sides.left {
    align-items: flex-end;
  }
  .levelguide-sides.right {
    align-items: flex-start;
  }
  .levelguide-center {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-width: 320px;
    @media (max-width: 900px) {
      html {
        font-size: 15px;
      }
      .container, .system-container, .page-wrapper {
        padding: 0.5em 0.5em !important;
        max-width: 100vw !important;
      }
      .menu-grid, .center-grid {
        flex-direction: column !important;
        gap: 1.2em !important;
        align-items: stretch !important;
      }
      .menu-btn {
        min-width: 0 !important;
        width: 100% !important;
        font-size: 1.08em !important;
        padding: 1.1em 0.5em !important;
      }
      .status-bar {
        flex-direction: column !important;
        gap: 0.5em !important;
        font-size: 1em !important;
      }
      .system-modal-content {
        min-width: 0 !important;
        max-width: 98vw !important;
        width: 98vw !important;
        padding: 1.1em 0.5em 1em 0.5em !important;
        font-size: 1em !important;
        box-sizing: border-box !important;
        overflow-x: auto !important;
      }
      .system-modal {
        align-items: flex-end !important;
        padding-bottom: 2em !important;
      }
      .credits-modal-content {
        min-width: 0 !important;
        max-width: 95vw !important;
        font-size: 1em !important;
      }
    }
    font-weight: bold;
    padding: 0.5em 1.5em;
    box-shadow: 0 0 12px #00d4ff55;
    cursor: pointer;
    transition: background 0.2s, color 0.2s;
  }
  .recommend-result {
    text-align: center;
    margin-bottom: 2em;
    color: #fff;
    font-size: 1.1em;
  }

  /* Dropdown Table Styles (color-coded) */
  .dropdown-table {
    background: rgba(20,30,50,0.92);
    border-radius: 1em;
    box-shadow: 0 0 16px #00d4ff33, 0 0 2px #fff2;
    margin-bottom: 2em;
    padding: 1.2em 1.2em 0.5em 1.2em;
    min-width: 320px;
    max-width: 340px;
    width: 100%;
    transition: box-shadow 0.2s;
    position: relative;
  }
  .dropdown-table .dropdown-toggle {
    width: 100%;
    background: none;
    border: none;
    font-size: 1.3em;
    font-weight: bold;
    text-align: left;
    padding: 0.2em 0 0.2em 0;
    margin-bottom: 0.7em;
    cursor: pointer;
    outline: none;
    transition: color 0.2s;
  }
  .dropdown-table .dropdown-toggle[aria-expanded="true"] {
    color: #fff;
    text-shadow: 0 0 8px var(--neon-blue), 0 0 2px #fff;
  }
  .dropdown-content {
    display: none;
    animation: fadeIn 0.3s;
  }
  .dropdown-table.open .dropdown-content {
    display: block;
  }
  .system-table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 0.5em;
  }
  .system-table th, .system-table td {
    border: 1px solid #00d4ff33;
    padding: 0.4em 0.7em;
    text-align: center;
    font-size: 1.15em;
  }
  .system-table th {
    background: #0e1a2a;
    color: var(--neon-blue);
    font-weight: bold;
  }
  .system-table td {
    color: #fff;
    background: rgba(20,30,50,0.7);
  }
  @keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
  }

  /* Dungeon Color Classes */
  .subway-color .dropdown-toggle {
    color: #00d4ff;
    text-shadow: 0 0 8px #00d4ff, 0 0 2px #fff;
  }
  .jungle-color .dropdown-toggle {
    color: #00ff7b;
    text-shadow: 0 0 8px #00ff7b, 0 0 2px #fff;
  }
  .caves-color .dropdown-toggle {
    color: #ffb300;
    text-shadow: 0 0 8px #ffb300, 0 0 2px #fff;
  }
  .desert-color .dropdown-toggle {
    color: #ff5e00;
    text-shadow: 0 0 8px #ff5e00, 0 0 2px #fff;
  }
  .snow-color .dropdown-toggle {
    color: #b3e0ff;
    text-shadow: 0 0 8px #b3e0ff, 0 0 2px #fff;
  }
  .spider-color .dropdown-toggle {
    color: #ff00c8;
    text-shadow: 0 0 8px #ff00c8, 0 0 2px #fff;
  }
  position: relative;
  z-index: 2;
}

/* Magic card image wrap with more system glow */
.magic-glow-mythic {
  box-shadow: 0 0 32px 8px #ff2e6e99, 0 0 0 4px #fff2, 0 0 24px 8px #ff2e6e55 inset;
  border-radius: 1.2em 1.2em 0 0;
  background: linear-gradient(120deg, #ff2e6e22 0%, #fff2 100%);
  position: relative;
}
.magic-glow-epic {
  box-shadow: 0 0 28px 6px #7e2eff99, 0 0 0 3px #fff2, 0 0 18px 6px #7e2eff55 inset;
  border-radius: 1.2em 1.2em 0 0;
  background: linear-gradient(120deg, #7e2eff22 0%, #fff2 100%);
  position: relative;
}
.magic-glow-rare {
  box-shadow: 0 0 20px 5px #2ecfff99, 0 0 0 2px #fff2, 0 0 12px 4px #2ecfff55 inset;
  border-radius: 1.2em 1.2em 0 0;
  background: linear-gradient(120deg, #2ecfff22 0%, #fff2 100%);
  position: relative;
}
.magic-glow-uncommon {
  box-shadow: 0 0 14px 3px #2eff7e99, 0 0 0 1.5px #fff2, 0 0 8px 2px #2eff7e55 inset;
  border-radius: 1.2em 1.2em 0 0;
  background: linear-gradient(120deg, #2eff7e22 0%, #fff2 100%);
  position: relative;
}

/* Add a digital scanline overlay to magic cards for more system feel */
.item-card[data-type="magic"]::before {
  content: "";
  display: block;
  position: absolute;
  left: 0; right: 0; top: 0; bottom: 0;
  pointer-events: none;
  opacity: 0.13;
  background: repeating-linear-gradient(
    to bottom,
    #b6e0ff11 0px,
    #b6e0ff11 1.5px,
    transparent 1.5px,
    transparent 4px
  );
  z-index: 1;
  border-radius: 1.2em;
}

/* Add a subtle animated shimmer to magic cards */
.item-card[data-type="magic"]::after {
  content: "";
  position: absolute;
  left: -60%;
  top: 0;
  width: 220%;
  height: 100%;
  background: linear-gradient(120deg, transparent 60%, #b6e0ff22 80%, transparent 100%);
  opacity: 0.18;
  pointer-events: none;
  z-index: 2;
  border-radius: 1.2em;
  animation: magic-shimmer 2.8s linear infinite;
}

@keyframes magic-shimmer {
  0% { left: -60%; }
  100% { left: 100%; }
}

/* Make the magic card grid more system-like */
.magic-cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 2.2em 1.7em;
  margin-top: 2.2em;
  margin-bottom: 2.2em;
  padding: 0 1.2em;
  background: none !important;
  border-radius: 0 !important;
  box-shadow: none !important;
  position: relative;
}
/* === MAGIC CARD RARITY GLOW === */
.item-card[data-type="magic"][data-rarity="mythic"] {
  box-shadow: 0 0 24px 8px #ff3366cc, 0 0 40px 16px #ff336688, var(--glow-panel);
  border-color: #ff3366;
  animation: magic-mythic-glow 6s ease-in-out infinite alternate;
}
@keyframes magic-mythic-glow {
  0% { box-shadow: 0 0 24px 8px #ff3366cc, 0 0 40px 16px #ff336688, var(--glow-panel); }
  50% { box-shadow: 0 0 40px 16px #ff3366, 0 0 64px 32px #ff3366aa, var(--glow-panel); }
  100% { box-shadow: 0 0 24px 8px #ff3366cc, 0 0 40px 16px #ff336688, var(--glow-panel); }
}
.item-card[data-type="magic"][data-rarity="epic"] {
  box-shadow: 0 0 18px 6px #aa44ffcc, 0 0 32px 12px #aa44ff88, var(--glow-panel);
  border-color: #aa44ff;
  animation: magic-epic-glow 6s ease-in-out infinite alternate;
}
@keyframes magic-epic-glow {
  0% { box-shadow: 0 0 18px 6px #aa44ffcc, 0 0 32px 12px #aa44ff88, var(--glow-panel); }
  50% { box-shadow: 0 0 32px 12px #aa44ff, 0 0 48px 24px #aa44ffaa, var(--glow-panel); }
  100% { box-shadow: 0 0 18px 6px #aa44ffcc, 0 0 32px 12px #aa44ff88, var(--glow-panel); }
}
.item-card[data-type="magic"][data-rarity="rare"] {
  box-shadow: 0 0 14px 4px #0088ffcc, 0 0 24px 8px #0088ff88, var(--glow-panel);
  border-color: #0088ff;
  animation: magic-rare-glow 6s ease-in-out infinite alternate;
}
@keyframes magic-rare-glow {
  0% { box-shadow: 0 0 14px 4px #0088ffcc, 0 0 24px 8px #0088ff88, var(--glow-panel); }
  50% { box-shadow: 0 0 24px 8px #0088ff, 0 0 36px 16px #0088ffaa, var(--glow-panel); }
  100% { box-shadow: 0 0 14px 4px #0088ffcc, 0 0 24px 8px #0088ff88, var(--glow-panel); }
}
.item-card[data-type="magic"][data-rarity="uncommon"] {
  box-shadow: 0 0 10px 3px #00cc44cc, 0 0 18px 6px #00cc4488, var(--glow-panel);
  border-color: #00cc44;
  animation: magic-uncommon-glow 6s ease-in-out infinite alternate;
}
@keyframes magic-uncommon-glow {
  0% { box-shadow: 0 0 10px 3px #00cc44cc, 0 0 18px 6px #00cc4488, var(--glow-panel); }
  50% { box-shadow: 0 0 18px 6px #00cc44, 0 0 28px 12px #00cc44aa, var(--glow-panel); }
  100% { box-shadow: 0 0 10px 3px #00cc44cc, 0 0 18px 6px #00cc4488, var(--glow-panel); }
}
/* === SYSTEM BACKGROUND RAYS & SHIMMER === */
.system-bg-rays {
  position: fixed;
  left: 0; top: 0; width: 100vw; height: 100vh;
  pointer-events: none;
  z-index: 2;
  overflow: hidden;
}
.system-ray {
  position: absolute;
  left: 0;
  width: 100vw;
  height: 2px;
  background: linear-gradient(90deg, transparent, #00d4ff 60%, transparent);
  opacity: 0.13;
  filter: blur(1.5px);
  animation: ray-move var(--ray-speed, 8s) linear infinite;
}
@keyframes ray-move {
  0% { left: -100vw; }
  100% { left: 100vw; }
}
.system-bg-shimmer {
  position: fixed;
  left: 0; top: 0; width: 100vw; height: 100vh;
  pointer-events: none;
  z-index: 5;
  background: linear-gradient(120deg, rgba(0,212,255,0.08) 10%, transparent 60%);
  opacity: 0.13;
  mix-blend-mode: lighten;
  animation: shimmer-scan 5.5s linear infinite;
}
@keyframes shimmer-scan {
  0% { opacity: 0.13; filter: blur(0.5px); }
  50% { opacity: 0.22; filter: blur(1.5px); }
  100% { opacity: 0.13; filter: blur(0.5px); }
}
/* === SYSTEM BACKGROUND PARTICLES & GLITCH === */
.system-bg-particles {
  position: fixed;
  left: 0; top: 0; width: 100vw; height: 100vh;
  pointer-events: none;
  z-index: 3;
  overflow: hidden;
}
.particle {
  position: absolute;
  width: 18px;
  height: 18px;
    height: 40px;
  background: radial-gradient(circle, #00fff7 0%, #6e7fff 60%, transparent 100%);
  filter: blur(2px) brightness(1.2);
  /* animation removed for performance */
}
@keyframes particle-float {
  0% { transform: translateY(0) scale(1); }
  100% { transform: translateY(-60px) scale(1.12); }
}
.system-bg-glitch {
  position: fixed;
  left: 0; top: 0; width: 100vw; height: 100vh;
  pointer-events: none;
  z-index: 4;
  background: repeating-linear-gradient(180deg, transparent, transparent 6px, #00d4ff0a 6px, #7b2fff0a 12px);
  opacity: 0.12;
  mix-blend-mode: lighten;
  transition: opacity 0.18s, transform 0.18s;
}
/* === SOLO HUNTERS SYSTEM OPENING OVERLAY === */
#system-opening-overlay {
  position: fixed;
  z-index: 99999;
  left: 0; top: 0; width: 100vw; height: 100vh;
  background: #050510;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  transition: opacity 1.1s cubic-bezier(.7,.2,.2,1);
  opacity: 1;
  pointer-events: all;
}
#system-opening-overlay.fade-out {
  opacity: 0;
  pointer-events: none;
}
.system-opening-bg {
  position: absolute;
  left: 0; top: 0; width: 100vw; height: 100vh;
  background:
    radial-gradient(ellipse at 60% 20%, rgba(0,212,255,0.10) 0%, transparent 70%),
    radial-gradient(ellipse at 20% 80%, rgba(123,47,255,0.10) 0%, transparent 70%),
    linear-gradient(180deg, #050510 0%, #0c0c1e 100%);
  z-index: 1;
}
.system-opening-glow {
  position: absolute;
  left: 0; top: 0; width: 100vw; height: 100vh;
  background: radial-gradient(ellipse at 50% 60%, rgba(0,212,255,0.18) 0%, transparent 70%);
  filter: blur(18px);
  opacity: 0.7;
  z-index: 2;
}
.system-opening-title {
  position: relative;
  z-index: 10;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
}
.system-opening-title .main {
  font-family: 'Courier New', 'Lucida Console', monospace;
  font-size: 3.2rem;
  font-weight: bold;
  color: #00d4ff;
  letter-spacing: 0.18em;
  text-shadow: 0 0 24px #00d4ff, 0 0 48px #7b2fff, 0 0 8px #00d4ff;
  animation: system-title-flicker 1.2s linear infinite alternate;
}
.system-opening-title .subtitle {
  font-size: 1.1rem;
  color: #b6eaff;
  margin-top: 18px;
  letter-spacing: 0.12em;
  opacity: 0.82;
  text-shadow: 0 0 8px #00d4ff;
}
@keyframes system-title-flicker {
  0% { opacity: 1; text-shadow: 0 0 24px #00d4ff, 0 0 48px #7b2fff, 0 0 8px #00d4ff; }
  40% { opacity: 0.92; text-shadow: 0 0 16px #00d4ff, 0 0 32px #7b2fff, 0 0 4px #00d4ff; }
  60% { opacity: 1; text-shadow: 0 0 32px #00d4ff, 0 0 64px #7b2fff, 0 0 12px #00d4ff; }
  100% { opacity: 0.96; text-shadow: 0 0 24px #00d4ff, 0 0 48px #7b2fff, 0 0 8px #00d4ff; }
}
.system-opening-scanline {
  position: absolute;
  left: 0; top: 0; width: 100vw; height: 100vh;
  background: repeating-linear-gradient(0deg, transparent, transparent 2px, rgba(0, 212, 255, 0.04) 2px, rgba(0, 212, 255, 0.04) 4px);
  pointer-events: none;
  z-index: 20;
  mix-blend-mode: lighten;
  animation: scanline-move 2.2s linear infinite;
}
@keyframes scanline-move {
  0% { background-position-y: 0; }
  100% { background-position-y: 16px; }
}
/* === SOLO HUNTERS HOMEPAGE: SYSTEM GRID & CIRCUIT BACKGROUND === */
.system-bg-grid {
  position: fixed;
  left: 0; top: 0; width: 100vw; height: 100vh;
  pointer-events: none;
  z-index: 0;
  background-image:
    linear-gradient(rgba(0,212,255,0.09) 1px, transparent 1px),
    linear-gradient(90deg, rgba(123,47,255,0.09) 1px, transparent 1px);
  background-size: 48px 48px;
  opacity: 0.32;
  mix-blend-mode: lighten;
  animation: grid-move 18s linear infinite alternate;
}
@keyframes grid-move {
  0% { background-position: 0 0, 0 0; }
  100% { background-position: 48px 48px, -48px -48px; }
}
.system-bg-circuit {
  position: fixed;
  left: 0; top: 0; width: 100vw; height: 100vh;
  pointer-events: none;
  z-index: 1;
  opacity: 0.7;
  mix-blend-mode: lighten;
}
.system-bg-circuit svg {
  width: 100vw;
  height: 100vh;
  display: block;
}
.system-bg-scanlines {
  position: fixed;
  left: 0; top: 0; width: 100vw; height: 100vh;
  pointer-events: none;
  z-index: 2;
  background: repeating-linear-gradient(0deg, transparent, transparent 2px, rgba(0, 212, 255, 0.04) 2px, rgba(0, 212, 255, 0.04) 4px);
  mix-blend-mode: lighten;
  animation: scanline-move 2.2s linear infinite;
  opacity: 0.22;
}
@keyframes scanline-move {
  0% { background-position-y: 0; }
  100% { background-position-y: 16px; }
}
/* === SOLO LEVELING SYSTEM UI BACKGROUND PANEL === */
.system-ui-panel {
  position: fixed;
  left: 50%;
  bottom: 0;
  transform: translateX(-50%);
  width: 92vw;
  max-width: 1400px;
  height: 38vh;
  min-height: 180px;
  background:
    linear-gradient(180deg, rgba(0,212,255,0.13) 0%, rgba(0,212,255,0.07) 60%, transparent 100%),
    repeating-linear-gradient(0deg, rgba(0,212,255,0.07) 0px, rgba(0,212,255,0.07) 2px, transparent 2px, transparent 8px),
    linear-gradient(120deg, rgba(0,212,255,0.08) 10%, transparent 60%),
    linear-gradient(90deg, rgba(123,47,255,0.06) 0%, transparent 80%);
  border-radius: 22px 22px 0 0;
  border: 2.5px solid rgba(0,212,255,0.22);
  box-shadow: 0 0 32px 8px rgba(0,212,255,0.13), 0 0 0 2px rgba(123,47,255,0.08) inset;
  opacity: 0.93;
  overflow: hidden;
  z-index: 3;
  pointer-events: none;
}
.system-ui-panel::before {
  content: '';
  position: absolute;
  left: 0; top: 0; width: 100%; height: 100%;
  background: repeating-linear-gradient(0deg, rgba(0,212,255,0.08) 0px, rgba(0,212,255,0.08) 2px, transparent 2px, transparent 8px);
  opacity: 0.22;
  pointer-events: none;
}
.system-ui-panel::after {
  content: '';
  position: absolute;
  left: 0; top: 0; width: 100%; height: 100%;
  background: linear-gradient(120deg, rgba(0,212,255,0.13) 10%, transparent 60%);
  opacity: 0.18;
  pointer-events: none;
  animation: shimmer-scan 3.5s linear infinite;
}
@keyframes shimmer-scan {
  0% { opacity: 0.18; filter: blur(0.5px); }
  50% { opacity: 0.32; filter: blur(1.5px); }
  100% { opacity: 0.18; filter: blur(0.5px); }
}
.system-ui-circuit {
  position: absolute;
  left: 0; top: 0; width: 100%; height: 100%;
  pointer-events: none;
  z-index: 4;
}
.system-ui-circuit svg {
  width: 100%; height: 100%;
  opacity: 0.13;
  filter: blur(0.5px);
}
/* === SOLO LEVELING SYSTEM ENERGY WAVE EFFECT === */

/* === SOLO LEVELING SYSTEM DIGITAL PANEL EFFECT === */
.system-bg-panel {
  position: fixed;
  left: 50%;
  bottom: 0;
  transform: translateX(-50%);
  width: 92vw;
  height: 38vh;
  max-width: 1400px;
  min-height: 180px;
  pointer-events: none;
  z-index: 3;
  background:
    linear-gradient(180deg, rgba(0,212,255,0.18) 0%, rgba(0,212,255,0.09) 60%, transparent 100%),
    repeating-linear-gradient(0deg, rgba(0,212,255,0.08) 0px, rgba(0,212,255,0.08) 2px, transparent 2px, transparent 8px);
  border-radius: 22px 22px 0 0;
  border: 2.5px solid rgba(0,212,255,0.22);
  box-shadow: 0 0 32px 8px rgba(0,212,255,0.13), 0 0 0 2px rgba(123,47,255,0.08) inset;
  opacity: 0.93;
  overflow: hidden;
  animation: system-panel-rise 4.5s cubic-bezier(.4,.2,.2,1) infinite alternate;
}
@keyframes system-panel-rise {
  0% {
    transform: translateX(-50%) translateY(60px) scaleY(0.98);
    opacity: 0.82;
  }
  60% {
    opacity: 1;
  }
  100% {
    transform: translateX(-50%) translateY(-18px) scaleY(1.04);
    opacity: 0.97;
  }
}
/* === SOLO LEVELING SYSTEM UI BACKGROUND ENHANCEMENTS === */
.system-bg-grid {
  position: fixed;
  left: 0; top: 0; width: 100vw; height: 100vh;
  pointer-events: none;
  z-index: 1;
  background-image:
    linear-gradient(rgba(0,212,255,0.07) 1px, transparent 1px),
    linear-gradient(90deg, rgba(123,47,255,0.07) 1px, transparent 1px);
  background-size: 48px 48px;
  opacity: 0.45;
  mix-blend-mode: lighten;
}
.system-bg-rays {
  position: fixed;
  left: 0; top: 0; width: 100vw; height: 100vh;
  pointer-events: none;
  z-index: 2;
  overflow: hidden;
}
.system-ray {
  position: absolute;
  left: 0;
  width: 100vw;
  height: 2px;
  background: linear-gradient(90deg, transparent, #00d4ff 60%, transparent);
  opacity: 0.12;
  filter: blur(1px);
  animation: ray-move 12s linear infinite;
}
@keyframes ray-move {
  0% { left: -100vw; }
  100% { left: 100vw; }
}
.system-bg-glow {
  position: fixed;
  left: 0; top: 0; width: 100vw; height: 100vh;
  pointer-events: none;
  z-index: 0;
  background:
    radial-gradient(ellipse at 60% 20%, rgba(0,212,255,0.10) 0%, transparent 70%),
    radial-gradient(ellipse at 20% 80%, rgba(123,47,255,0.10) 0%, transparent 70%);
  opacity: 0.7;
  mix-blend-mode: lighten;
}
/* Ensure emojis are horizontally aligned with text */
.emoji {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 1em;
  vertical-align: middle;
  margin-right: 0.32em;
}
.nav-logo {
  display: inline-flex;
  align-items: center;
  gap: 0.32em;
}
.nav-back {
  display: inline-flex;
  align-items: center;
  gap: 0.32em;
}
.menu-btn-label {
  display: flex;
  align-items: center;
  gap: 0.32em;
}
.menu-btn-icon {
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  position: absolute;
  left: 50%;
  top: 38%;
  transform: translate(-50%, -50%);
  width: 54px;
  height: 54px;
  pointer-events: none;
}
.menu-btn:hover .menu-btn-icon,
.menu-btn:focus .menu-btn-icon {
  transform: translate(-50%, -50%) !important;
  filter: drop-shadow(0 0 6px currentColor) !important;
}
/* Center the entire tierlists menu frame and its content on tierlists.html */
.tierlists-center-override {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  align-items: center;
  margin-top: 60px;
}
/* Magic Tier List: reversed tier colors and effects */
@keyframes s-tier-pulse-magic {
  0% { box-shadow: 0 0 18px 5px #ff4e6bcc, 0 0 28px 8px #ff4e6baa; }
  50% { box-shadow: 0 0 28px 10px #ff4e6b, 0 0 40px 14px #ff4e6b; }
  100% { box-shadow: 0 0 18px 5px #ff4e6bcc, 0 0 28px 8px #ff4e6baa; }
}
/* Unified S-tier (red) and F-tier (light blue) for all tier lists */
.s-tier .solo-slot, .magic-tier .s-tier .solo-slot {
  border-color: #ff4e6b;
  box-shadow: 0 0 18px 5px #ff4e6bcc, 0 0 28px 8px #ff4e6baa;
  animation: float-glow-s-tier 7s ease-in-out infinite alternate, s-tier-pulse-magic 2.8s ease-in-out infinite alternate;
}
.tier-label.s-tier, .magic-tier .tier-label.s-tier {
/* F Tier: always light blue */
.tier-label.f-tier, .magic-tier .tier-label.f-tier, .tierlist-block .tier-label.f-tier {
  color: #7fd8ff !important;
  text-shadow: 0 0 12px #7fd8ff, 0 0 22px #7fd8ff !important;
  animation: f-tier-label-glow-lightblue 2.5s ease-in-out infinite alternate !important;
}
/* B Tier: always gold */
.tier-label.b-tier, .magic-tier .tier-label.b-tier, .tierlist-block .tier-label.b-tier {
  color: #ffd700 !important;
  text-shadow: 0 0 12px #ffd700, 0 0 22px #ffd700 !important;
  animation: b-tier-label-glow 2.5s ease-in-out infinite alternate !important;
}
/* F Tier: always light blue slot */
.f-tier .solo-slot, .magic-tier .f-tier .solo-slot, .tierlist-block .f-tier .solo-slot {
  border-color: #7fd8ff !important;
  box-shadow: 0 0 14px 4px #7fd8ffcc, 0 0 24px 8px #7fd8ff88 !important;
  animation: float-glow-f-tier 8.5s ease-in-out infinite alternate !important;
}
/* B Tier: always gold slot */
.b-tier .solo-slot, .magic-tier .b-tier .solo-slot, .tierlist-block .b-tier .solo-slot {
  border-color: #ffd700 !important;
  box-shadow: 0 0 16px 4px #ffd700cc, 0 0 28px 8px #ffd70088 !important;
  animation: float-glow-b-tier 7.5s ease-in-out infinite alternate !important;
}
  color: #ff4e6b;
  text-shadow: 0 0 14px #ff4e6b, 0 0 24px #ff4e6b;
  animation: s-tier-label-glow-weapons 2.5s ease-in-out infinite alternate;
}
.f-tier .solo-slot, .magic-tier .f-tier .solo-slot {
  border-color: #7fd8ff;
  box-shadow: 0 0 14px 4px #7fd8ffcc, 0 0 24px 8px #7fd8ff88;
  animation: float-glow-f-tier 8.5s ease-in-out infinite alternate;
}
.tier-label.f-tier, .magic-tier .tier-label.f-tier {
  color: #7fd8ff;
  text-shadow: 0 0 12px #7fd8ff, 0 0 22px #7fd8ff;
  animation: f-tier-label-glow-lightblue 2.5s ease-in-out infinite alternate;
}
@keyframes float-glow-s-tier {
  0% {
    transform: translateY(0px) scale(1);
    box-shadow: 0 0 18px 5px #ff4e6bcc, 0 0 28px 10px #ff4e6baa;
  }
  50% {
    transform: translateY(-8px) scale(1.04);
    box-shadow: 0 0 28px 10px #ff4e6b, 0 0 40px 14px #ff4e6b;
  }
  100% {
    transform: translateY(0px) scale(1);
    box-shadow: 0 0 18px 5px #ff4e6bcc, 0 0 28px 10px #ff4e6baa;
  }
}
@keyframes s-tier-label-glow-weapons {
  0% { text-shadow: 0 0 14px #ff4e6b, 0 0 24px #ff4e6b; }
  50% { text-shadow: 0 0 24px #ff4e6b, 0 0 36px #ff4e6b; }
  100% { text-shadow: 0 0 14px #ff4e6b, 0 0 24px #ff4e6b; }
}
@keyframes float-glow-f-tier {
  0% {
    transform: translateY(0px) scale(1);
    box-shadow: 0 0 14px 4px #7fd8ffcc, 0 0 24px 8px #7fd8ff88;
  }
  50% {
    transform: translateY(-3px) scale(1.01);
    box-shadow: 0 0 24px 10px #7fd8ff, 0 0 32px 14px #7fd8ff;
  }
  100% {
    transform: translateY(0px) scale(1);
    box-shadow: 0 0 14px 4px #7fd8ffcc, 0 0 24px 8px #7fd8ff88;
  }
}
@keyframes f-tier-label-glow-lightblue {
  0% { text-shadow: 0 0 12px #7fd8ff, 0 0 22px #7fd8ff; }
  50% { text-shadow: 0 0 22px #7fd8ff, 0 0 32px #7fd8ff; }
  100% { text-shadow: 0 0 12px #7fd8ff, 0 0 22px #7fd8ff; }
}
.magic-tier .tier-label.a-tier {
  color: #6e7fff;
  text-shadow: 0 0 12px #6e7fff, 0 0 24px #6e7fff;
  animation: a-tier-label-glow 2.5s ease-in-out infinite alternate;
}


/* Animated glow for tier labels */
/* B Tier: gold/yellow for both lists */
.tier-label.b-tier {
  color: #ffd700 !important;
  text-shadow: 0 0 12px #ffd700, 0 0 22px #ffd700 !important;
  animation: b-tier-label-glow 2.5s ease-in-out infinite alternate !important;
}
@keyframes s-tier-label-glow {
  0% { text-shadow: 0 0 14px #ff4e6b, 0 0 24px #ff4e6b; }
  50% { text-shadow: 0 0 24px #ff4e6b, 0 0 36px #ff4e6b; }
  100% { text-shadow: 0 0 14px #ff4e6b, 0 0 24px #ff4e6b; }
}
.tier-label.a-tier {
  color: #6e7fff;
  text-shadow: 0 0 12px #6e7fff, 0 0 24px #6e7fff;
  animation: a-tier-label-glow 2.5s ease-in-out infinite alternate;
}
@keyframes a-tier-label-glow {
  0% { text-shadow: 0 0 12px #6e7fff, 0 0 24px #6e7fff; }
  50% { text-shadow: 0 0 24px #6e7fff, 0 0 36px #6e7fff; }
  100% { text-shadow: 0 0 12px #6e7fff, 0 0 24px #6e7fff; }
}
@keyframes b-tier-label-glow {
  0% { text-shadow: 0 0 10px #ffd700, 0 0 18px #ffd700; }
  50% { text-shadow: 0 0 18px #ffd700, 0 0 28px #ffd700; }
  100% { text-shadow: 0 0 10px #ffd700, 0 0 18px #ffd700; }
}
.tier-label.f-tier {
  color: #ff4e6b;
  color: #7fd8ff;
  text-shadow: 0 0 12px #7fd8ff, 0 0 22px #7fd8ff;
  animation: f-tier-label-glow-lightblue 2.5s ease-in-out infinite alternate;
@keyframes f-tier-label-glow {
  0% { text-shadow: 0 0 10px #ff4e6b, 0 0 18px #ff4e6b; }
  0% { text-shadow: 0 0 12px #7fd8ff, 0 0 22px #7fd8ff; }
  100% { text-shadow: 0 0 10px #ff4e6b, 0 0 18px #ff4e6b; }
}
  @keyframes s-tier-label-glow {
    0% { text-shadow: 0 0 14px #ff4e6b, 0 0 24px #ff4e6b; }
    50% { text-shadow: 0 0 24px #ff4e6b, 0 0 36px #ff4e6b; }
    100% { text-shadow: 0 0 14px #ff4e6b, 0 0 24px #ff4e6b; }
  }
    gap: 18px;
    justify-content: center;
  }
  .solo-slot {
    width: 90vw;
    max-width: 220px;
    height: 110px;
    margin: 0 0 12px 0;
  }
  .center-tierlist-menu {
    flex-direction: column;
    gap: 32px;
  }
  .center-tierlist-menu .menu-btn {
    width: 90vw;
    max-width: 260px;
    height: 120px;
  }
}
/* System UI animated background particles (Solo Leveling effect) */
.system-bg-particles {
  position: fixed;
  left: 0; top: 0; width: 100vw; height: 100vh;
  pointer-events: none;
  z-index: 0;
  overflow: hidden;
}
.particle {
  position: absolute;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: radial-gradient(circle, #00fff7 0%, #6e7fff 60%, transparent 100%);
  filter: blur(2px) brightness(1.2);
  animation: particle-float 10s linear infinite alternate;
}
@keyframes particle-float {
  0% { transform: translateY(0) scale(1); }
  100% { transform: translateY(-60px) scale(1.12); }
}
/* Add space between tier titles and weapon slots */
.tier-label {
  font-size: 2.2rem;
  font-weight: bold;
  margin-bottom: 8px;
  letter-spacing: 2px;
}
/* Solo Leveling Tierlist Weapon Slot Styles with floating animation and tier colors */
.solo-slot {
  /* ...existing code... */
  animation: float-glow-weapons 9s ease-in-out infinite alternate;
}
/* B Tier: gold/yellow border and glow */
.b-tier .solo-slot {
  border-color: #ffd700 !important;
  box-shadow: 0 0 16px 4px #ffd700cc, 0 0 28px 8px #ffd70088 !important;
  animation: float-glow-b-tier 7.5s ease-in-out infinite alternate !important;
}
@keyframes float-glow-a-tier {
  0% {
    transform: translateY(0px) scale(1);
    box-shadow: 0 0 18px 4px #6e7fffcc, 0 0 32px 8px #6e7fff88;
  }
  50% {
    transform: translateY(-6px) scale(1.03);
    box-shadow: 0 0 32px 12px #6e7fff, 0 0 40px 16px #6e7fff;
  }
  100% {
    transform: translateY(0px) scale(1);
    box-shadow: 0 0 18px 4px #6e7fffcc, 0 0 32px 8px #6e7fff88;
  }
}
  animation: float-glow-b-tier 7.5s ease-in-out infinite alternate;
}
@keyframes float-glow-b-tier {
  0% {
    transform: translateY(0px) scale(1);
    box-shadow: 0 0 16px 4px #ffd700cc, 0 0 28px 8px #ffd70088;
  }
  50% {
    transform: translateY(-4px) scale(1.02);
    box-shadow: 0 0 28px 12px #ffd700, 0 0 36px 16px #ffd700;
  }
  100% {
    transform: translateY(0px) scale(1);
    box-shadow: 0 0 16px 4px #ffd700cc, 0 0 28px 8px #ffd70088;
  }
}
/* S tier: red, C (F) tier: blue, with reduced S glow */
.s-tier .solo-slot {
  border-color: #ff4e6b;
  box-shadow: 0 0 14px 3px #ff4e6bcc, 0 0 20px 6px #ff4e6baa;
  animation: float-glow-weapons 9s ease-in-out infinite alternate, s-tier-pulse-weapons 2.8s ease-in-out infinite alternate;
}
  color: #6e7fff;
  text-shadow: 0 0 10px #6e7fff, 0 0 18px #6e7fff;
  animation: b-tier-label-glow-magic 2.5s ease-in-out infinite alternate;
}
  .tier-label.a-tier, .magic-tier .tier-label.a-tier, .tierlist-block .tier-label.a-tier {
    color: #6e7fff;
    text-shadow: 0 0 12px #6e7fff, 0 0 24px #6e7fff;
    animation: a-tier-label-glow 2.5s ease-in-out infinite alternate;
  }
.center-tierlist-menu .menu-btn {
  width: 260px;
  height: 180px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  margin: 0 24px;
  box-shadow: 0 0 14px 2px var(--neon-blue-dim), 0 0 24px 4px var(--neon-purple-dim);
  border-radius: 18px;
  background: var(--bg-card);
  position: relative;
  animation: float-glow 5s ease-in-out infinite alternate;
  transition: box-shadow 0.3s, transform 0.2s;
}
.center-tierlist-menu .menu-btn:hover, .center-tierlist-menu .menu-btn:focus {
  box-shadow: 0 0 48px 12px var(--neon-purple), 0 0 64px 16px var(--neon-blue);
  transform: scale(1.04) translateY(-6px);
  z-index: 2;
}
@keyframes float-glow {
  0% {
    transform: translateY(0px) scale(1);
   box-shadow: 0 0 14px 2px var(--neon-blue-dim), 0 0 24px 4px var(--neon-purple-dim);
  }
  50% {
   transform: translateY(-5px) scale(1.02);
   box-shadow: 0 0 20px 4px var(--neon-blue), 0 0 32px 8px var(--neon-purple);
  }
  100% {
    transform: translateY(0px) scale(1);
   box-shadow: 0 0 14px 2px var(--neon-blue-dim), 0 0 24px 4px var(--neon-purple-dim);
  }
}
/* Center and space tier list menu buttons on tierlists.html */
.center-tierlist-menu {
  display: flex;
  flex-direction: row;
  justify-content: center;
  align-items: center;
  gap: 48px;
}
/* Solo Leveling Tierlist Weapon Slot Styles */

/* Solo Leveling Tierlist Weapon Small Square Slot Styles */

/* Bigger, centered Solo Leveling weapon slots */
.solo-slot {
  background: var(--bg-card);
  border: 1.3px solid var(--neon-blue);
  border-radius: 14px;
  box-shadow: 0 0 18px 3px var(--neon-blue-dim), 0 0 32px 4px var(--neon-purple-dim);
  width: 128px;
  height: 128px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  margin: 0 16px 0 0;
  padding: 0;
  transition: border-color 0.3s, box-shadow 0.3s, transform 0.2s;
  position: relative;
  text-decoration: none;
  overflow: visible;
}
.solo-slot:hover, .solo-slot:focus {
  border-color: var(--neon-purple);
  box-shadow: 0 0 32px 8px var(--neon-purple-dim), 0 0 48px 12px var(--neon-blue-dim);
  transform: translateY(-6px) scale(1.08);
  z-index: 2;
}
.solo-slot .tier-img {
  width: 82px;
  height: 82px;
  object-fit: contain;
  filter: drop-shadow(0 0 18px var(--neon-blue));
  margin: 0 auto;
  display: block;
  transition: filter 0.3s, transform 0.2s;
}
.solo-slot:hover .tier-img, .solo-slot:focus .tier-img {
  filter: drop-shadow(0 0 28px var(--neon-purple));
  transform: scale(1.10);
}
.tier-slot-label {
  color: var(--neon-blue);
  font-size: 15px;
  font-weight: bold;
  letter-spacing: 1px;
  margin-top: 8px;
  text-align: center;
  text-shadow: 0 0 8px var(--neon-blue);
  background: rgba(0, 212, 255, 0.12);
  border-radius: 6px;
  padding: 4px 10px 2px 10px;
  box-shadow: 0 0 8px var(--neon-blue-dim);
  width: max-content;
  opacity: 0;
  pointer-events: none;
  position: absolute;
  left: 50%;
  top: 100%;
  transform: translate(-50%, -12px);
  transition: opacity 0.2s, transform 0.2s;
  z-index: 10;
}
.solo-slot:hover .tier-slot-label, .solo-slot:focus .tier-slot-label {
  opacity: 1;
  transform: translate(-50%, -4px) scale(1.08);
}
.tier-row {
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: center;
  gap: 24px;
  margin-bottom: 32px;
}
/* =============================================
   SOLO LEVELING SYSTEM DATABASE - Global Styles
   ============================================= */

/* --- Base & Reset --- */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

:root {
  --bg-primary: #060610;
  --bg-secondary: #0c0c1e;
  --bg-card: #0e0e22;
  --bg-card-hover: #12122a;
  --neon-blue: #00d4ff;
  --neon-purple: #7b2fff;
  --neon-blue-dim: rgba(0, 212, 255, 0.15);
  --neon-purple-dim: rgba(123, 47, 255, 0.15);
  --text-primary: #e0eeff;
  --text-secondary: #8899bb;
  --text-accent: #00d4ff;
  --border-color: rgba(0, 212, 255, 0.3);
  --border-glow: rgba(0, 212, 255, 0.6);
  --rarity-common: #aaaaaa;
  --rarity-uncommon: #00cc44;
  --rarity-rare: #0088ff;
  --rarity-epic: #aa44ff;
  --rarity-legendary: #ffaa00;
  --rarity-mythic: #ff3366;
  --font-main: 'Courier New', 'Lucida Console', monospace;
  --transition: 0.3s ease;
  --radius: 6px;
  --glow-blue: 0 0 10px rgba(0, 212, 255, 0.5), 0 0 20px rgba(0, 212, 255, 0.2);
  --glow-purple: 0 0 10px rgba(123, 47, 255, 0.5), 0 0 20px rgba(123, 47, 255, 0.2);
  --glow-panel: 0 0 15px rgba(0, 212, 255, 0.1), inset 0 0 30px rgba(0, 0, 30, 0.5);
}

html {
  scroll-behavior: smooth;
}

body {
  background-color: var(--bg-primary);
  color: var(--text-primary);
  font-family: var(--font-main);
  font-size: 14px;
  line-height: 1.6;
  min-height: 100vh;
  background-image:
    radial-gradient(ellipse at 20% 20%, rgba(0, 212, 255, 0.04) 0%, transparent 50%),
    radial-gradient(ellipse at 80% 80%, rgba(123, 47, 255, 0.04) 0%, transparent 50%),
    linear-gradient(180deg, #060610 0%, #080818 100%);
  overflow-x: hidden;
}

/* --- Scrollbar --- */
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: var(--bg-primary); }
::-webkit-scrollbar-thumb {
  background: var(--neon-purple);
  border-radius: 3px;
}
::-webkit-scrollbar-thumb:hover { background: var(--neon-blue); }

/* --- Scan-line overlay --- */
body::before {
  content: '';
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  background: repeating-linear-gradient(
    0deg,
    transparent,
    transparent 2px,
    rgba(0, 0, 0, 0.03) 2px,
    rgba(0, 0, 0, 0.03) 4px
  );
  pointer-events: none;
  z-index: 9999;
}

/* =============================================
   Navigation Bar
   ============================================= */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: 64px;
  background: rgba(6, 6, 16, 0.92);
  border-bottom: 1px solid var(--border-color);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 24px;
  z-index: 1000;
  box-shadow: 0 2px 20px rgba(0, 212, 255, 0.1);
}

.nav-logo {
  font-size: 13px;
  font-weight: bold;
  color: var(--neon-blue);
  text-decoration: none;
  letter-spacing: 2px;
  text-transform: uppercase;
  text-shadow: var(--glow-blue);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 220px;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 6px;
  list-style: none;
  flex-wrap: wrap;
}

.nav-links a {
  color: var(--text-secondary);
  text-decoration: none;
  font-size: 11px;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  padding: 3px 7px;
  border: 1px solid transparent;
  border-radius: 6px;
  transition: all var(--transition);
}

.nav-links a:hover,
.nav-links a.active {
  color: var(--neon-blue);
  border-color: var(--border-color);
  text-shadow: var(--glow-blue);
  background: var(--neon-blue-dim);
}

.nav-back {
  color: var(--neon-blue) !important;
  border-color: var(--border-color) !important;
  background: var(--neon-blue-dim) !important;
}

.nav-back:hover {
  background: rgba(0, 212, 255, 0.25) !important;
  box-shadow: var(--glow-blue);
}

/* =============================================
   Page Wrapper
   ============================================= */
.page-wrapper {
  padding-top: 80px;
  padding-bottom: 60px;
  min-height: 100vh;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

/* =============================================
   Page Header / Hero
   ============================================= */
.page-header {
  text-align: center;
  padding: 40px 20px 30px;
  position: relative;
}

.page-header::before {
  content: '';
  position: absolute;
  top: 0; left: 50%;
  transform: translateX(-50%);
  width: 200px;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--neon-blue), transparent);
}

.page-header::after {
  content: '';
  position: absolute;
  bottom: 0; left: 50%;
  transform: translateX(-50%);
  width: 300px;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--neon-purple), transparent);
}

.system-tag {
  display: inline-block;
  font-size: 10px;
  letter-spacing: 3px;
  color: var(--neon-blue);
  text-transform: uppercase;
  border: 1px solid rgba(0, 212, 255, 0.3);
  padding: 3px 12px;
  border-radius: 2px;
  margin-bottom: 12px;
  animation: pulseTag 2s ease-in-out infinite;
}

.page-title {
  font-size: clamp(26px, 5vw, 44px);
  font-weight: bold;
  letter-spacing: 4px;
  text-transform: uppercase;
  color: #fff;
  text-shadow: 0 0 20px rgba(0, 212, 255, 0.6), 0 0 40px rgba(0, 212, 255, 0.3);
  margin-bottom: 8px;
}

    color: #7fd8ff;
    text-shadow: 0 0 12px #7fd8ff, 0 0 22px #7fd8ff;
    animation: f-tier-label-glow-lightblue 2.5s ease-in-out infinite alternate;
  color: var(--text-secondary);
  text-transform: uppercase;
}

/* =============================================
   System Panels
   ============================================= */
.system-panel {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius);
  padding: 20px;
  position: relative;
  box-shadow: var(--glow-panel);
  transition: border-color var(--transition), box-shadow var(--transition);
}

.system-panel:hover {
  border-color: var(--border-glow);
  box-shadow: 0 0 20px rgba(0, 212, 255, 0.15), inset 0 0 30px rgba(0, 0, 30, 0.5);
}

.panel-corner {
  position: absolute;
  width: 12px;
  height: 12px;
}
.panel-corner.tl { top: -1px; left: -1px; border-top: 2px solid var(--neon-blue); border-left: 2px solid var(--neon-blue); }
.panel-corner.tr { top: -1px; right: -1px; border-top: 2px solid var(--neon-blue); border-right: 2px solid var(--neon-blue); }
.panel-corner.bl { bottom: -1px; left: -1px; border-bottom: 2px solid var(--neon-blue); border-left: 2px solid var(--neon-blue); }
.panel-corner.br { bottom: -1px; right: -1px; border-bottom: 2px solid var(--neon-blue); border-right: 2px solid var(--neon-blue); }

/* =============================================
   Homepage Hero
   ============================================= */
.hero {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: calc(100vh - 60px);
  text-align: center;
  padding: 40px 20px;
  position: relative;
}

.hero-decoration {
  position: absolute;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
}

.hero-ring {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  border-radius: 50%;
  border: 1px solid;
  animation: ringPulse 4s ease-in-out infinite;
}

.hero-ring:nth-child(1) {
  width: 300px; height: 300px;
  border-color: rgba(0, 212, 255, 0.08);
  animation-delay: 0s;
}
.hero-ring:nth-child(2) {
  width: 500px; height: 500px;
  border-color: rgba(123, 47, 255, 0.06);
  animation-delay: 0.5s;
}
.hero-ring:nth-child(3) {
  width: 700px; height: 700px;
  border-color: rgba(0, 212, 255, 0.04);
  animation-delay: 1s;
}
.hero-ring:nth-child(4) {
  width: 900px; height: 900px;
  border-color: rgba(123, 47, 255, 0.03);
  animation-delay: 1.5s;
}

.hero-system-text {
  font-size: 11px;
  letter-spacing: 5px;
  color: var(--neon-blue);
  text-transform: uppercase;
  margin-bottom: 16px;
  animation: fadeInDown 0.8s ease both;
  text-shadow: var(--glow-blue);
}

.hero-title {
  font-size: clamp(24px, 5vw, 52px);
  font-weight: bold;
  letter-spacing: 5px;
  text-transform: uppercase;
  color: #fff;
  line-height: 1.2;
  margin-bottom: 8px;
  text-shadow: 0 0 30px rgba(0, 212, 255, 0.7), 0 0 60px rgba(0, 212, 255, 0.3);
  animation: fadeInDown 0.8s ease 0.1s both;
}

.hero-title span {
  color: var(--neon-blue);
  display: block;
}

.hero-subtitle {
  font-size: 13px;
  letter-spacing: 4px;
  color: var(--text-secondary);
  text-transform: uppercase;
  margin-bottom: 48px;
  animation: fadeInDown 0.8s ease 0.2s both;
}

.hero-divider {
  width: 200px;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--neon-blue), transparent);
  margin: 0 auto 48px;
  animation: fadeIn 0.8s ease 0.3s both;
}

/* =============================================
   Menu Buttons (Homepage)
   ============================================= */
.menu-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
  max-width: 640px;
  width: 100%;
  animation: fadeInUp 0.8s ease 0.4s both;
}

.menu-btn {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 28px 20px;
  background: var(--bg-card);
  border: 1.5px solid var(--border-color);
  border-radius: var(--radius);
  color: var(--text-primary);
  text-decoration: none;
  font-family: var(--font-main);
  font-size: 12px;
  letter-spacing: 2px;
  text-transform: uppercase;
  cursor: pointer;
  position: relative;
  overflow: hidden;
  transition: all var(--transition);
  box-shadow: 0 0 24px 6px #00d4ff55, 0 0 40px 12px #7b2fff33, var(--glow-panel);
  animation: menu-btn-pulse 12s ease-in-out infinite alternate;
}
@keyframes menu-btn-pulse {
  0% { transform: scale(1); }
  50% { transform: scale(1.045); }
  100% { transform: scale(1); }
}
.menu-btn:hover, .menu-btn:focus {
  border-color: var(--neon-blue);
  color: var(--neon-blue);
  box-shadow: 0 0 48px 12px var(--neon-purple), 0 0 64px 16px var(--neon-blue), 0 0 32px 8px #00d4ff99;
  filter: brightness(1.18);
  animation: menu-btn-pulse 12s ease-in-out infinite alternate;
}

.menu-btn::before {
  content: '';
  position: absolute;
  top: 0; left: -100%;
  width: 100%; height: 100%;
  background: linear-gradient(90deg, transparent, rgba(0, 212, 255, 0.08), transparent);
  transition: left 0.5s ease;
}

.menu-btn:hover::before { left: 100%; }

.menu-btn:hover {
  border-color: var(--neon-blue);
  color: var(--neon-blue);
  box-shadow: 0 0 20px rgba(0, 212, 255, 0.25), inset 0 0 20px rgba(0, 212, 255, 0.05);
  transform: translateY(-3px);
}

.menu-btn:active {
  transform: translateY(0);
}

.menu-btn-icon {
  font-size: 44px;
  line-height: 1.1;
  filter: drop-shadow(0 0 6px currentColor);
  transition: transform var(--transition);
  position: absolute;
  left: 50%;
  top: 38%;
  transform: translate(-50%, -50%);
  width: 54px;
  height: 54px;
  display: flex;
  align-items: center;
  justify-content: center;
  pointer-events: none;
}
.menu-btn {
  position: relative;
  overflow: hidden;
}

.menu-btn:hover .menu-btn-icon {
  transform: scale(1.15);
}

.menu-btn-label {
  font-weight: bold;
}

.menu-btn-desc {
  font-size: 10px;
  color: var(--text-secondary);
  letter-spacing: 1px;
  font-weight: normal;
}

.menu-btn:hover .menu-btn-desc {
  color: rgba(0, 212, 255, 0.7);
}

/* Corner decorators on menu buttons */
.menu-btn .panel-corner { display: block; }

/* =============================================
   Status Bar (bottom of hero)
   ============================================= */
.status-bar {
  display: flex;
  gap: 30px;
  margin-top: 48px;
  animation: fadeInUp 0.8s ease 0.5s both;
  flex-wrap: wrap;
  justify-content: center;
}

.status-item {
  text-align: center;
}

.status-label {
  font-size: 9px;
  letter-spacing: 2px;
  color: var(--text-secondary);
  text-transform: uppercase;
  display: block;
}

.status-value {
  font-size: 16px;
  color: var(--neon-blue);
  text-shadow: var(--glow-blue);
  font-weight: bold;
}

/* =============================================
   Cards Grid
   ============================================= */
.cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 20px;
  margin-top: 30px;
}

/* =============================================
   Item Card (Armor / Weapon)
   ============================================= */
.item-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius);
  overflow: hidden;
  position: relative;
  transition: all var(--transition);
  box-shadow: var(--glow-panel);
  animation: cardFadeIn 0.5s ease both;
}

.item-card:hover {
  border-color: var(--neon-blue);
  transform: translateY(-4px);
  box-shadow: 0 8px 30px rgba(0, 212, 255, 0.15), inset 0 0 20px rgba(0, 0, 30, 0.4);
}

.card-image-wrap {
  width: 100%;
  height: 150px;
  background: linear-gradient(135deg, #0a0a20 0%, #12082a 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  border-bottom: 1px solid var(--border-color);
  position: relative;
}

.card-image-wrap::after {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at center, rgba(0, 212, 255, 0.05) 0%, transparent 70%);
}

.card-image {
  width: 120px;
  height: 120px;
  object-fit: contain;
  filter: drop-shadow(0 0 8px rgba(0, 212, 255, 0.4));
  transition: transform var(--transition), filter var(--transition);
}

.item-card:hover .card-image {
  transform: scale(1.08);
  filter: drop-shadow(0 0 14px rgba(0, 212, 255, 0.7));
}

.card-body {
  padding: 14px;
}

.card-name {
  font-size: 14px;
  font-weight: bold;
  color: #fff;
  letter-spacing: 1px;
  margin-bottom: 8px;
}

.card-rarity {
  display: inline-block;
  font-size: 9px;
  letter-spacing: 2px;
  text-transform: uppercase;
  padding: 2px 8px;
  border-radius: 2px;
  margin-bottom: 10px;
  border: 1px solid;
  font-weight: bold;
}

.rarity-common    { color: var(--rarity-common);    border: 1px solid #555;    background: rgba(170,170,170,0.08); }
.rarity-uncommon  { color: var(--rarity-uncommon);  border: 1px solid #00cc44; background: rgba(0,204,68,0.08); }
.rarity-rare      { color: var(--rarity-rare);      border: 1px solid #0088ff; background: rgba(0,136,255,0.08); }
.rarity-epic      { color: var(--rarity-epic);      border: 1px solid #aa44ff; background: rgba(170,68,255,0.08); }
.rarity-legendary { color: var(--rarity-legendary); border: 1px solid #ffaa00; background: rgba(255,170,0,0.08); }
.rarity-mythic    { color: var(--rarity-mythic);    border: 1px solid #ff3366; background: rgba(255,51,102,0.08); }

.card-stats {
  display: flex;
  flex-direction: column;
  gap: 5px;
  margin-bottom: 10px;
}

.stat-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 11px;
}

.tier-label.f-tier {
  color: #ffd700 !important;
  text-shadow: 0 0 12px #ffd700, 0 0 22px #ffd700 !important;
  animation: b-tier-label-glow 2.5s ease-in-out infinite alternate !important;
}
/* =============================================
   Section Titles
   ============================================= */
.section-title {
  font-size: 12px;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--neon-blue);
  text-shadow: var(--glow-blue);
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 20px;
  margin-top: 40px;
}

.section-title::before,
.section-title::after {
  content: '';
  flex: 1;
  height: 1px;
  background: linear-gradient(90deg, var(--neon-blue), transparent);
}

.section-title::after {
  background: linear-gradient(90deg, transparent, var(--neon-blue));
}

/* =============================================
   Builds Page
   ============================================= */
.builds-grid {
  display: flex;
  flex-direction: row;
  justify-content: flex-start;
  align-items: flex-start;
  gap: 3em;
  margin-top: 2.5em;
  width: fit-content;
  box-sizing: border-box;
}

.build-card {
  width: 700px;
  min-width: 400px;
  max-width: 98vw;
  margin: 2em auto;
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius);
  position: relative;
  transition: all var(--transition);
  box-shadow: var(--glow-panel);
  z-index: 1;
}

.build-card:hover {
  border-color: var(--neon-purple);
  transform: translateY(-3px);
  box-shadow: 0 8px 30px rgba(123, 47, 255, 0.15);
}

.build-header {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0;
  margin-bottom: 16px;
  padding-bottom: 14px;
  border-bottom: 1px solid rgba(0, 212, 255, 0.15);
  width: 100%;
  text-align: center;
}

.build-icon {
  font-size: 32px;
  filter: drop-shadow(0 0 8px currentColor);
  flex-shrink: 0;
  line-height: 1;
}

.build-name {
  font-size: 16px;
  font-weight: bold;
  color: #fff;
  letter-spacing: 1px;
  width: 100%;
  text-align: center;
}

.build-playstyle {
  font-size: 10px;
  color: var(--neon-blue);
  letter-spacing: 2px;
  text-transform: uppercase;
  margin-top: 2px;
  width: 100%;
  text-align: center;
}

.build-section-label {
  font-size: 9px;
  letter-spacing: 2px;
  color: var(--text-secondary);
  text-transform: uppercase;
  margin-bottom: 5px;
  margin-top: 12px;
}

.build-items {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
}

.build-tag {
  font-size: 10px;
  padding: 2px 8px;
  border-radius: 2px;
  background: rgba(0, 212, 255, 0.1);
  border: 1px solid rgba(0, 212, 255, 0.25);
  color: var(--neon-blue);
  letter-spacing: 0.5px;
}

.build-tag.weapon {
  background: rgba(123, 47, 255, 0.1);
  border-color: rgba(123, 47, 255, 0.25);
  color: var(--neon-purple);
}

.build-pros-cons {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-top: 12px;
}

.build-pros, .build-cons {
  padding: 8px;
  border-radius: 4px;
  font-size: 10px;
}

.build-pros {
  background: rgba(0, 204, 68, 0.07);
  border: 1px solid rgba(0, 204, 68, 0.2);
}

.build-cons {
  background: rgba(255, 51, 102, 0.07);
  border: 1px solid rgba(255, 51, 102, 0.2);
}

.build-pros-label {
  color: #00cc44;
  font-weight: bold;
  letter-spacing: 1px;
  margin-bottom: 5px;
  font-size: 9px;
  text-transform: uppercase;
}

.build-cons-label {
  color: #ff3366;
  font-weight: bold;
  letter-spacing: 1px;
  margin-bottom: 5px;
  font-size: 9px;
  text-transform: uppercase;
}

.build-pros li, .build-cons li {
  list-style: none;
  color: var(--text-secondary);
  padding-left: 10px;
  position: relative;
  line-height: 1.8;
}

.build-pros li::before {
  content: '+';
  position: absolute;
  left: 0;
  color: #00cc44;
}

.build-cons li::before {
  content: '-';
  position: absolute;
  left: 0;
  color: #ff3366;
}

/* =============================================
   Portals Page
   ============================================= */
.portals-list {
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin-top: 30px;
}

.portal-entry {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius);
  overflow: hidden;
  transition: border-color var(--transition);
}

.portal-entry.expanded {
  border-color: var(--neon-blue);
  box-shadow: 0 0 20px rgba(0, 212, 255, 0.1);
}

.portal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 20px;
  cursor: pointer;
  transition: background var(--transition);
  user-select: none;
  gap: 12px;
}

.portal-header:hover {
  background: rgba(0, 212, 255, 0.04);
}

.portal-header-left {
  display: flex;
  align-items: center;
  gap: 14px;
  flex: 1;
  min-width: 0;
}

.portal-icon {
  width: 50px;
  height: 50px;
  border-radius: var(--radius);
  overflow: hidden;
  flex-shrink: 0;
  border: 1px solid var(--border-color);
  background: linear-gradient(135deg, #0a0a20 0%, #12082a 100%);
  display: flex;
  align-items: center;
  justify-content: center;
}

.portal-icon img {
  width: 40px;
  height: 40px;
  object-fit: contain;
  filter: drop-shadow(0 0 5px rgba(0, 212, 255, 0.5));
}

.portal-info { min-width: 0; }

.portal-name {
  font-size: 15px;
  font-weight: bold;
  color: #fff;
  letter-spacing: 1px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.portal-meta {
  display: flex;
  gap: 14px;
  margin-top: 4px;
  flex-wrap: wrap;
}

.portal-meta-item {
  font-size: 10px;
  color: var(--text-secondary);
  letter-spacing: 1px;
}

.portal-meta-item span {
  color: var(--neon-blue);
}

.portal-rank {
  display: inline-block;
  font-size: 10px;
  font-weight: bold;
  padding: 3px 10px;
  border-radius: 2px;
  letter-spacing: 2px;
  text-transform: uppercase;
  flex-shrink: 0;
}

.rank-e  { color: #aaa;    border: 1px solid #555;    background: rgba(170,170,170,0.08); }
.rank-d  { color: #00cc44; border: 1px solid #00cc44; background: rgba(0,204,68,0.08); }
.rank-c  { color: #0088ff; border: 1px solid #0088ff; background: rgba(0,136,255,0.08); }
.rank-b  { color: #aa44ff; border: 1px solid #aa44ff; background: rgba(170,68,255,0.08); }
.rank-a  { color: #ffaa00; border: 1px solid #ffaa00; background: rgba(255,170,0,0.08); }
.rank-s  { color: #ff3366; border: 1px solid #ff3366; background: rgba(255,51,102,0.08); }
.rank-ss { color: #ff3366; border: 1px solid #ff3366; background: rgba(255,51,102,0.12); text-shadow: 0 0 8px #ff3366; }

.portal-chevron {
  color: var(--neon-blue);
  font-size: 18px;
  transition: transform var(--transition);
  flex-shrink: 0;
}

.portal-entry.expanded .portal-chevron {
  transform: rotate(180deg);
}

.portal-content {
  display: none;
  padding: 0 20px 20px;
  border-top: 1px solid rgba(0, 212, 255, 0.1);
  animation: expandDown 0.3s ease;
}

.portal-entry.expanded .portal-content {
  display: block;
}

.portal-details-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: 12px;
  margin-top: 16px;
}

.portal-detail-item {
  background: rgba(0, 0, 0, 0.3);
  border: 1px solid rgba(0, 212, 255, 0.1);
  border-radius: 4px;
  padding: 10px;
}

.portal-detail-label {
  font-size: 9px;
  letter-spacing: 2px;
  color: var(--text-secondary);
  text-transform: uppercase;
  margin-bottom: 4px;
}

.portal-detail-value {
  font-size: 12px;
  color: var(--text-primary);
}

.portal-detail-value.boss {
  color: var(--rarity-mythic);
  text-shadow: 0 0 6px rgba(255, 51, 102, 0.4);
}

/* Drop sections */
.drops-section-title {
  font-size: 10px;
  letter-spacing: 3px;
  color: var(--neon-blue);
  text-transform: uppercase;
  margin-top: 20px;
  margin-bottom: 12px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.drops-section-title::after {
  content: '';
  flex: 1;
  height: 1px;
  background: linear-gradient(90deg, rgba(0, 212, 255, 0.3), transparent);
}

.drops-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(130px, 1fr));
  gap: 10px;
}

.drop-card {
  background: rgba(0, 0, 0, 0.3);
  border: 1px solid var(--border-color);
  border-radius: 4px;
  padding: 10px;
  text-align: center;
  transition: all var(--transition);
}

.drop-card:hover {
  border-color: var(--neon-blue);
  transform: translateY(-2px);
  box-shadow: 0 4px 15px rgba(0, 212, 255, 0.1);
}

.drop-card img {
  width: 50px;
  height: 50px;
  object-fit: contain;
  filter: drop-shadow(0 0 5px rgba(0, 212, 255, 0.3));
  transition: filter var(--transition);
  margin-bottom: 6px;
}

.drop-name {
  font-size: 10px;
  color: var(--text-primary);
  margin-bottom: 3px;
  font-weight: bold;
}

.drop-type {
  font-size: 9px;
  color: var(--text-secondary);
  letter-spacing: 1px;
  text-transform: uppercase;
}

/* Materials */
.material-card {
  display: flex;
  align-items: center;
  gap: 10px;
  background: rgba(0, 0, 0, 0.3);
  border: 1px solid rgba(123, 47, 255, 0.2);
  border-radius: 4px;
  padding: 10px;
  transition: all var(--transition);
}

.material-card:hover {
  border-color: var(--neon-purple);
  transform: translateY(-2px);
  box-shadow: 0 4px 15px rgba(123, 47, 255, 0.1);
}

.material-card img {
  width: 40px;
  height: 40px;
  object-fit: contain;
  flex-shrink: 0;
  filter: drop-shadow(0 0 4px rgba(123, 47, 255, 0.5));
}

.material-info { min-width: 0; }

.material-name {
  font-size: 11px;
  font-weight: bold;
  color: var(--text-primary);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.material-use {
  font-size: 10px;
  color: var(--neon-purple);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* =============================================
   Filter Bar
   ============================================= */
.filter-bar {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 10px;
  align-items: center;
}

.filter-label {
  font-size: 10px;
  letter-spacing: 2px;
  color: var(--text-secondary);
  text-transform: uppercase;
  margin-right: 4px;
}

.filter-btn {
  font-family: var(--font-main);
  font-size: 10px;
  letter-spacing: 1px;
  text-transform: uppercase;
  padding: 4px 12px;
  background: transparent;
  border: 1px solid rgba(0, 212, 255, 0.2);
  border-radius: 2px;
  color: var(--text-secondary);
  cursor: pointer;
  transition: all var(--transition);
}

.filter-btn:hover,
.filter-btn.active {
  border-color: var(--neon-blue);
  color: var(--neon-blue);
  background: var(--neon-blue-dim);
  text-shadow: 0 0 6px rgba(0, 212, 255, 0.4);
}

/* =============================================
   Footer
   ============================================= */
.site-footer {
  border-top: 1px solid var(--border-color);
  padding: 20px;
  text-align: center;
  font-size: 10px;
  letter-spacing: 2px;
  color: var(--text-secondary);
  text-transform: uppercase;
  margin-top: 60px;
}

.site-footer span {
  color: var(--neon-blue);
}

/* =============================================
   Animations
   ============================================= */
@keyframes pulseTag {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.6; }
}

@keyframes ringPulse {
  0%, 100% { opacity: 1; transform: translate(-50%, -50%) scale(1); }
  50% { opacity: 0.5; transform: translate(-50%, -50%) scale(1.02); }
}

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

@keyframes fadeInDown {
  from { opacity: 0; transform: translateY(-20px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes cardFadeIn {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes expandDown {
  from { opacity: 0; transform: translateY(-8px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes glowPulse {
  0%, 100% { box-shadow: 0 0 5px rgba(0, 212, 255, 0.3); }
  50% { box-shadow: 0 0 20px rgba(0, 212, 255, 0.6), 0 0 40px rgba(0, 212, 255, 0.2); }
}

/* =============================================
   Responsive
   ============================================= */
@media (max-width: 768px) {
  .navbar {
    padding: 0 14px;
  }

  .nav-logo {
    font-size: 11px;
    max-width: 140px;
  }

  .nav-links a {
    font-size: 10px;
    padding: 4px 8px;
  }

  .menu-grid {
    grid-template-columns: 1fr 1fr;
    gap: 12px;
    max-width: 360px;
  }

  .menu-btn {
    padding: 20px 12px;
  }

  .menu-btn-icon { font-size: 22px; }

  .cards-grid {
    grid-template-columns: repeat(auto-fill, minmax(170px, 1fr));
    gap: 12px;
  }

  .builds-grid {
    flex-direction: column !important;
    gap: 1.2em !important;
    margin-left: 0 !important;
    align-items: center !important;
    width: 100vw !important;
    max-width: 100vw !important;
  }
  .builds-grid > .build-card {
    position: relative;
    left: -350px;
  }
}

/* =============================================
   Utility Classes
   ============================================= */
.text-blue   { color: var(--neon-blue); }
.text-purple { color: var(--neon-purple); }
.text-dim    { color: var(--text-secondary); }
.glow-blue   { text-shadow: var(--glow-blue); }
.glow-purple { text-shadow: var(--glow-purple); }
.mt-20 { margin-top: 20px; }
.mb-20 { margin-bottom: 20px; }

/* Mobile navigation button */
.nav-mobile-btn {
  display: block !important;
  position: absolute;
  right: 1.5em;
  top: 1.2em;
  background: none;
  border: none;
  z-index: 1100;
  cursor: pointer;
  overflow: hidden;
}

/* Global modal style for all .system-modal */
.system-modal {
  display: none;
  position: fixed !important;
  z-index: 1000 !important;
  left: 0;
  top: 0;
  width: 100vw;
  height: 100vh;
  align-items: center !important;
  justify-content: center !important;
  background: rgba(10,18,40,0.88);
  backdrop-filter: blur(2px);
}
.system-modal[style*="display: flex"] {
  display: flex !important;
}
.system-modal-content {
  background: rgba(10,18,40,0.98);
  border-radius: 1.2em;
  box-shadow: 0 0 32px #00d4ff55;
  padding: 1.2em 1.2em 1em 1.2em;
  max-width: 400px;
  max-height: 80vh;
  min-width: 220px;
  min-height: 80px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  overflow-y: auto;
}
@media (max-width: 600px) {
  .system-modal-content {
    max-width: 95vw;
    padding: 0.7em 0.5em 0.7em 0.5em;
  }
  .item-card, .armor-popup, .magic-popup, .build-card, .card-body, .card-image, .system-modal-content, .popup, .modal, .modal-content {
    max-width: 96vw !important;
    min-width: 0 !important;
    width: 96vw !important;
    font-size: 0.92em !important;
    padding: 0.5em 0.3em !important;
    box-sizing: border-box !important;
  }
  .card-image, .popup img, .modal img {
    max-width: 80px !important;
    max-height: 80px !important;
    width: 80px !important;
    height: auto !important;
  }
  .card-name, .modal-title, .popup-title {
    font-size: 1em !important;
  }
  .card-desc, .modal-desc, .popup-desc {
    font-size: 0.92em !important;
  }
  .system-modal {
    align-items: flex-end !important;
    padding-bottom: 1em !important;
  }
  .builds-grid, .cards-grid, .menu-grid {
    gap: 0.7em !important;
  }
  .menu-btn, .status-bar {
    font-size: 0.95em !important;
    padding: 0.7em 0.3em !important;
  }
}
/* Prevent background scroll when modal is open */
body.modal-open {
  overflow: hidden !important;
}
