/* RESET */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

/* BASE */
html,
body {
  width: 100%;
  height: 100%;
}

body {
  font-family: Arial, sans-serif;
  color: white;
  overflow: hidden;
  overscroll-behavior-x: none;
  background:
    radial-gradient(circle at top, rgba(180, 140, 255, 0.18), transparent 60%),
    radial-gradient(circle at bottom, rgba(120, 90, 255, 0.15), transparent 60%),
    #020617;
}

/* PARTICLES */
#particles {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  pointer-events: none;
}

/* NAVBAR */
.navbar {
  position: fixed;
  top: 0;
  width: 100%;
  padding: 20px 30px;
  display: flex;
  justify-content: flex-end;
  z-index: 1000;
}

/* HAMBURGER */
.hamburger {
  width: 30px;
  height: 22px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  cursor: pointer;
  z-index: 1100;
}

.hamburger span {
  width: 100%;
  height: 3px;
  background: white;
  border-radius: 2px;
  transition: transform 0.3s ease, opacity 0.3s ease;
}

.hamburger.active span:nth-child(1) {
  transform: rotate(45deg) translateY(9px);
}

.hamburger.active span:nth-child(2) {
  opacity: 0;
}

.hamburger.active span:nth-child(3) {
  transform: rotate(-45deg) translateY(-9px);
}

/* MENU */
.menu {
  position: fixed;
  top: 80px;
  right: 30px;
  min-width: 180px;
  display: flex;
  flex-direction: column;
  padding: 10px 0;
  border-radius: 14px;
  background: rgba(20, 20, 40, 0.95);
  backdrop-filter: blur(12px);
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.5);
  opacity: 0;
  transform: translateY(-10px) scale(0.95);
  pointer-events: none;
  transition: all 0.25s ease;
}

.menu.active {
  opacity: 1;
  transform: translateY(0) scale(1);
  pointer-events: auto;
}

.menu a,
.menu-overview-btn {
  width: 100%;
  padding: 12px 20px;
  color: white;
  text-decoration: none;
  background: transparent;
  border: none;
  text-align: left;
  font: inherit;
  cursor: pointer;
  transition: background 0.2s ease;
}

.menu a:hover,
.menu-overview-btn:hover {
  background: rgba(255, 255, 255, 0.1);
}

/* HERO */
.hero {
  height: 100vh;
  display: flex;
  justify-content: center;
}

.center-content {
  position: relative;
  z-index: 2;
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 12px;
}

.ios-soon-banner {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 22px;
  border-radius: 999px;
  border: 1px solid rgba(255, 230, 170, 0.22);
  background:
    linear-gradient(180deg, rgba(255,255,255,0.12), rgba(255,255,255,0.04)),
    rgba(21, 24, 48, 0.72);
  box-shadow:
    0 0 0 1px rgba(255,255,255,0.04) inset,
    0 14px 38px rgba(0, 0, 0, 0.28),
    0 0 26px rgba(255, 194, 92, 0.18);
  color: #c9b2ff;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
}

.logo {
  height: 420px;
  max-width: min(90vw, 700px);
  object-fit: contain;
  filter: drop-shadow(0 0 12px rgba(255, 174, 0, 0.7));
}

.subtitle {
  font-size: 17px;
  color: #ab99db;
  opacity: 0.8;
  transform: translateY(-95px);
}

.status {
  font-size: 15px;
  color: #ab99db;
  opacity: 0.8;
  transform: translateY(-105px);
}

/* DISCORD */
.discord-link {
  display: flex;
  align-items: center;
  gap: 18px;
  transform: translate(5%, -107px);
}

.discord-creature {
  height: 85px;
  transition: filter 0.3s ease;
}

.discord-text {
  height: 55px;
  transform: translateX(-13%);
  transform-origin: center center;
}

.discord-link:hover .discord-creature {
  filter: drop-shadow(0 0 12px rgba(100, 23, 241, 0.6));
}

/* INFO TOGGLE */
.info-wrapper {
  position: fixed;
  top: 5px;
  left: 5px;
  width: 96px;
  height: 96px;
  z-index: 1200;
  animation: infoFloat 4.2s ease-in-out infinite;
}

.info-label {
  position: absolute;
  top: 86px;
  left: 54%;
  transform: translateX(-50%);
  font-size: 12px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.7);
  pointer-events: none;
  z-index: 2;
  transition: opacity 0.4s ease, transform 0.4s ease;
}

.info-label.hidden {
  opacity: 0 !important;
  transform: translateX(-50%) translateY(-6px) !important;
}

.info-toggle {
  position: fixed;
  top: 5px;
  left: 5px;
  width: 96px;
  height: 96px;
  z-index: 1200;
  display: flex;
  align-items: center;
  justify-content: center;
  background: transparent;
  border: none;
  padding: 0;
  cursor: pointer;
  transform-origin: center center;
  will-change: transform, filter;
  transition: transform 0.22s ease, filter 0.22s ease;
  animation: infoPulse 3.2s ease-in-out infinite, infoFloat 4.2s ease-in-out infinite;
}

.info-toggle img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
  pointer-events: none;
}

.info-toggle:hover {
  transform: scale(1.08);
  filter:
    drop-shadow(0 0 10px rgba(130, 90, 255, 0.45))
    drop-shadow(0 0 24px rgba(160, 120, 255, 0.28));
}

.info-toggle:active {
  transform: scale(0.96);
}

/* INFO PANEL */
.info-panel {
  position: fixed;
  top: 15px;
  left: 90px;
  width: 490px;
  max-width: calc(100vw - 48px);
  height: min(78vh, 680px);
  z-index: 1190;
  opacity: 0;
  pointer-events: none;
  transform: translateY(-10px) scale(0.98);
  transition: opacity 0.28s ease, transform 0.28s ease;
  overflow: hidden;
}

.info-panel.active {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0) scale(1);
}

.info-panel-inner {
  width: 100%;
  height: 100%;
  background:
    radial-gradient(circle at top, rgba(180, 140, 255, 0.14), transparent 55%),
    rgba(10, 14, 30, 0.88);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 20px;
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  box-shadow:
    0 20px 50px rgba(0, 0, 0, 0.42),
    inset 0 1px 0 rgba(255, 255, 255, 0.04);
  overflow: hidden;
}

/* PANEL HEADER */
.info-panel-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  padding: 18px 18px 14px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.info-kicker {
  margin-bottom: 6px;
  font-size: 12px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: #ab99db;
  opacity: 0.9;
}

.info-panel-header h2 {
  font-size: 26px;
  line-height: 1;
  color: white;
}

.info-close {
  width: 34px;
  height: 34px;
  border: none;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.06);
  color: white;
  font-size: 24px;
  line-height: 1;
  cursor: pointer;
  transition: background 0.2s ease, transform 0.2s ease;
}

.info-close:hover {
  background: rgba(255, 255, 255, 0.12);
  transform: scale(1.05);
}

/* PANEL CONTENT */
.info-panel-content {
  height: calc(100% - 84px);
  overflow-y: auto;
  overflow-x: hidden;
  padding: 16px 20px 22px;
  -webkit-overflow-scrolling: touch;
}

.info-panel-content * {
  max-width: 100%;
}

.info-panel-content h3 {
  margin-top: 18px;
  margin-bottom: 8px;
  font-size: 15px;
  color: #d7c4ff;
}

.info-panel-content p {
  font-size: 14px;
  line-height: 1.65;
  color: rgba(255, 255, 255, 0.84);
}

/* SCROLLBAR */
.info-panel-content::-webkit-scrollbar {
  width: 8px;
}

.info-panel-content::-webkit-scrollbar-track {
  background: transparent;
}

.info-panel-content::-webkit-scrollbar-thumb {
  background: rgba(180, 140, 255, 0.32);
  border-radius: 999px;
}

.info-panel-content::-webkit-scrollbar-thumb:hover {
  background: rgba(180, 140, 255, 0.48);
}

/* INFO IMAGE */
.info-img {
  width: 100%;
  max-width: 280px;
  margin: 12px auto 16px;
  display: block;
  border-radius: 12px;
  filter: drop-shadow(0 10px 20px rgba(0, 0, 0, 0.4));
  transition:
    transform 0.35s cubic-bezier(0.22, 1, 0.36, 1),
    filter 0.35s ease;
}

.info-img:hover {
  transform: scale(1.06) translateY(-10px);
  filter:
    drop-shadow(0 14px 28px rgba(0, 0, 0, 0.5))
    drop-shadow(0 0 18px rgba(140, 100, 255, 0.25));
}

.info-img:active {
  transform: scale(0.98);
}

/* CODEX BLOCK */
.codex-block {
  position: relative;
  min-height: 100px;
  margin: 6px 0;
}

.codex-img {
  position: absolute;
  top: -6px;
  right: 6px;
  width: 120px;
  max-width: 120px !important;
  margin: 0;
  z-index: 1;
}

.codex-text {
  position: relative;
  z-index: 2;
  padding-right: 110px;
  margin-top: 6px;
  pointer-events: none;
}

.codex-text p {
  margin-bottom: 6px;
}

/* EGGS */
.egg-row {
  display: flex;
  justify-content: center;
  gap: 0;
  margin: 12px 0;
}

.egg {
  width: 100px;
  height: 100px;
  object-fit: contain;
  will-change: transform, filter;
  transition:
    transform 0.35s cubic-bezier(0.22, 1, 0.36, 1),
    filter 0.35s ease;
}

.egg.common {
  filter: drop-shadow(0 0 6px rgba(200, 180, 140, 0.2));
}

.egg.rare {
  filter: drop-shadow(0 0 6px rgba(80, 140, 255, 0.25));
}

.egg.epic {
  filter: drop-shadow(0 0 6px rgba(170, 90, 255, 0.3));
}

.egg.legendary {
  filter: drop-shadow(0 0 6px rgba(255, 180, 60, 0.35));
}

.egg.common:hover {
  transform: scale(1.48);
  filter: drop-shadow(0 0 10px rgba(200, 180, 140, 0.5));
}

.egg.rare:hover {
  transform: scale(1.48);
  filter: drop-shadow(0 0 12px rgba(80, 140, 255, 0.7));
}

.egg.epic:hover {
  transform: scale(1.48);
  filter: drop-shadow(0 0 14px rgba(170, 90, 255, 0.75));
}

.egg.legendary:hover {
  transform: scale(1.48);
  filter: drop-shadow(0 0 16px rgba(255, 180, 60, 0.85));
}

/* ESSENCE */
.essence-row {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 16px;
  margin: 10px 0 18px;
}

.essence {
  width: 100px;
  height: 60px;
  object-fit: contain;
  will-change: transform, filter;
  transition:
    transform 0.35s cubic-bezier(0.22, 1, 0.36, 1),
    filter 0.35s ease;
  filter:
    drop-shadow(0 6px 12px rgba(0, 0, 0, 0.35))
    drop-shadow(0 0 8px rgba(120, 90, 255, 0.15));
}

.essence:hover {
  transform: scale(1.52);
}

.essence.fire {
  filter:
    drop-shadow(0 6px 12px rgba(0, 0, 0, 0.35))
    drop-shadow(0 0 6px rgba(255, 120, 40, 0.25));
}

.essence.water {
  filter:
    drop-shadow(0 6px 12px rgba(0, 0, 0, 0.35))
    drop-shadow(0 0 6px rgba(80, 160, 255, 0.25));
}

.essence.nature {
  filter:
    drop-shadow(0 6px 12px rgba(0, 0, 0, 0.35))
    drop-shadow(0 0 6px rgba(100, 220, 120, 0.25));
}

.essence.void {
  filter:
    drop-shadow(0 6px 12px rgba(0, 0, 0, 0.35))
    drop-shadow(0 0 8px rgba(170, 80, 255, 0.3));
}

.essence.lightning {
  filter:
    drop-shadow(0 6px 12px rgba(0, 0, 0, 0.35))
    drop-shadow(0 0 8px rgba(255, 220, 80, 0.3));
}

.essence.fire:hover {
  filter:
    drop-shadow(0 8px 16px rgba(0, 0, 0, 0.4))
    drop-shadow(0 0 18px rgba(255, 120, 40, 0.95));
}

.essence.water:hover {
  filter:
    drop-shadow(0 8px 16px rgba(0, 0, 0, 0.4))
    drop-shadow(0 0 18px rgba(80, 160, 255, 0.95));
}

.essence.nature:hover {
  filter:
    drop-shadow(0 8px 16px rgba(0, 0, 0, 0.4))
    drop-shadow(0 0 18px rgba(100, 220, 120, 0.95));
}

.essence.void:hover {
  filter:
    drop-shadow(0 8px 16px rgba(0, 0, 0, 0.4))
    drop-shadow(0 0 20px rgba(170, 80, 255, 1));
}

.essence.lightning:hover {
  filter:
    drop-shadow(0 8px 16px rgba(0, 0, 0, 0.4))
    drop-shadow(0 0 20px rgba(255, 220, 80, 1));
}

/* SOLRAEL */
.hero-character-link {
  position: fixed;
  bottom: 20px;
  right: 20px;
  width: 320px;
  height: 320px;
  display: block;
  z-index: 9999;
}

.hero-character {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: contain;
  pointer-events: none;
  animation: float 4s ease-in-out infinite;
}

.hero-character-link:hover .hero-character {
  filter: drop-shadow(0 0 8px rgba(255, 174, 0, 0.45));
}

/* DONATE */
.donate-link {
  position: fixed;
  bottom: -90px;
  left: 30px;
  width: 320px;
  height: 320px;
  display: block;
  z-index: 10000;
}

.donate-btn {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: contain;
  pointer-events: none;
  opacity: 0.92;
  transform: scale(0.96);
  transform-origin: center center;
  will-change: transform, filter, opacity;
  transition:
    transform 0.25s ease,
    filter 0.25s ease,
    opacity 0.25s ease;
}

.donate-link:hover .donate-btn {
  transform: scale(1.05);
  opacity: 1;
  filter:
    drop-shadow(0 0 3px rgba(255, 210, 120, 0.5))
    drop-shadow(0 0 8px rgba(255, 210, 120, 0.25));
}

/* FOOTER */
.footer {
  position: fixed;
  bottom: 0;
  left: 50%;
  transform: translate(-50%, 110px);
  z-index: 2;
}

.footer img {
  height: 230px;
}

.global-footer {
  position: fixed;
  right: -2px;
  bottom: -90px;
  z-index: 999;
  pointer-events: auto;
}

.global-footer img {
  width: 300px;
  height: auto;
  opacity: 0.5;
  transition: opacity 0.3s ease, transform 0.3s ease;
}

.global-footer:hover img {
  opacity: 1;
  transform: scale(1.18);
}

.site-legal-footer {
  position: absolute;
  top: 12px;
  left: 16px;
  transform: none;
  z-index: 10001;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  pointer-events: auto;
}

.site-legal-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 34px;
  padding: 0 14px;
  border-radius: 999px;
  background: rgba(18, 22, 42, 0.72);
  border: 1px solid rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(10px);
  box-shadow:
    0 8px 18px rgba(0, 0, 0, 0.18),
    inset 0 1px 0 rgba(255, 255, 255, 0.04);
  color: rgba(255, 255, 255, 0.76);
  text-decoration: none;
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  transition:
    transform 0.2s ease,
    color 0.2s ease,
    background 0.2s ease,
    border-color 0.2s ease,
    box-shadow 0.2s ease;
}

.site-legal-link:hover {
  transform: translateY(-2px);
  color: rgba(255, 255, 255, 0.98);
  background: rgba(28, 34, 62, 0.88);
  border-color: rgba(180, 140, 255, 0.24);
  box-shadow:
    0 12px 22px rgba(0, 0, 0, 0.24),
    0 0 18px rgba(180, 140, 255, 0.12);
}

/* MOBILE */
@media (max-width: 700px) {
  .navbar {
    padding: 18px 18px;
  }

  .menu {
    top: 72px;
    right: 18px;
  }

  .logo {
      height: auto;
      width: min(44vw, 210px);
    }

  .ios-soon-banner {
      padding: 8px 14px;
      font-size: 10px;
      letter-spacing: 0.18em;
      transform: translateY(10px);
    }
  
  .subtitle {
      font-size: 14px;
      transform: translateY(-54px);
    text-align: center;
  }

  .status {
      font-size: 13px;
      transform: translateY(-62px);
      text-align: center;
    }

  .global-footer {
    pointer-events: none;
  }

  .global-footer img {
    opacity: 1;
    pointer-events: none;
  }

  .global-footer:hover img {
    opacity: 1;
    transform: none;
  }

  .landing-page .global-footer {
    position: absolute;
    top: -80px;
    right: 50px;
    bottom: auto;
    left: auto;
  }

    .discord-link {
    gap: 12px;
    transform: translate(0, -64px);
  }

  .discord-creature {
    height: 68px;
  }

  .discord-text {
    height: 42px;
    transform: translateX(-8%);
  }

  .info-wrapper {
    top: 12px;
    left: 12px;
    width: 76px;
    height: 76px;
  }

  .info-toggle {
    top: 12px;
    left: 12px;
    width: 70px;
    height: 70px;
  }

  .info-label {
    top: 50px;
    left: 30px;
    font-size: 10px;
  }

  .info-panel {
    top: 60px;
    left: 16px;
    width: calc(100vw - 32px);
    height: 62vh;
  }

  .info-panel-content {
    padding: 14px 16px 20px;
  }

  .egg {
    width: 85px;
    height: 85px;
  }

  .essence-row {
    gap: 10px;
    flex-wrap: wrap;
  }

  .essence {
    width: 84px;
    height: 52px;
  }

  .codex-img {
    width: 105px;
    max-width: 105px !important;
    top: -2px;
    right: 0;
  }

  .codex-text {
    padding-right: 96px;
    margin-top: 0;
  }

  .hero-character-link {
    width: 160px;
    height: 160px;
    right: 12px;
    bottom: 12px;
  }

  .donate-link {
    width: 180px;
    height: 180px;
    left: 10px;
    bottom: 0;
  }

  .footer img {
    height: 180px;
  }

  .site-legal-footer {
    position: absolute;
    top: 10px;
    left: 10px;
    gap: 8px;
  }

  .site-legal-link {
    min-height: 32px;
    padding: 0 12px;
    font-size: 10px;
  }
}

/* ANIMATIONS */
@keyframes infoFloat {
  0% { translate: 0 0; }
  50% { translate: 0 -4px; }
  100% { translate: 0 0; }
}

@keyframes infoPulse {
  0% {
    transform: scale(1);
    filter: drop-shadow(0 0 0 rgba(140, 100, 255, 0));
  }
  50% {
    transform: scale(1.035);
    filter:
      drop-shadow(0 0 8px rgba(130, 90, 255, 0.22))
      drop-shadow(0 0 18px rgba(160, 120, 255, 0.12));
  }
  100% {
    transform: scale(1);
    filter: drop-shadow(0 0 0 rgba(140, 100, 255, 0));
  }
}

@keyframes float {
  0% { transform: translateY(0); }
  50% { transform: translateY(-15px); }
  100% { transform: translateY(0); }
}
