:root {
  --void-black: #08080a;
  --hollow-gray: #1a1a20;
  --soul-white: #e2e8f0;
  --soul-glow: #a5f3fc;
  --pale-king-silver: #94a3b8;
  --grub-green: #a7d7c5;
}

body {
  background-color: var(--void-black);
  font-family: "Cormorant Garamond", serif;
  overflow-x: hidden;
  color: var(--soul-white);
  margin: 0;
  padding: 0;
  cursor: default;
}

h1,
h2,
h3,
.title-font {
  font-family: "Cinzel", serif;
}

.rotate-mobile {
  transform: rotate(90deg);
  width: 100vh !important;
  height: 100vw !important;
  max-width: 100vh !important;
  max-height: 100vw !important;
  object-fit: contain;
}

.ui-hidden {
  opacity: 0 !important;
  pointer-events: none !important;
}

@media (max-width: 768px) {
  .mobile-hidden-btns {
    display: none !important;
  }
}

.ghost-ring {
  width: 3.5rem;
  height: 3.5rem;
  border-radius: 50%;
  border: 1px solid rgba(165, 243, 252, 0.3);
  background: rgba(8, 8, 10, 0.4);
  backdrop-filter: blur(4px);
  box-shadow: 0 0 15px rgba(165, 243, 252, 0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
}

.ghost-core {
  width: 0.8rem;
  height: 0.8rem;
  background-color: var(--soul-glow);
  border-radius: 50%;
  box-shadow:
    0 0 10px var(--soul-glow),
    0 0 20px var(--soul-glow);
  opacity: 0.8;
}

@keyframes swipe-complex-gesture {
  0% {
    opacity: 0;
    transform: translate(0, 0);
  }
  10% {
    opacity: 1;
    transform: translate(0, 0);
  }
  30% {
    transform: translate(-40px, 0);
    opacity: 1;
  }
  40% {
    transform: translate(-40px, 0);
    opacity: 0;
  }
  41% {
    transform: translate(0, 0);
    opacity: 0;
  }
  50% {
    transform: translate(0, 0);
    opacity: 1;
  }
  70% {
    transform: translate(0, -40px);
    opacity: 1;
  }
  80% {
    transform: translate(0, -40px);
    opacity: 0;
  }
  100% {
    opacity: 0;
    transform: translate(0, 0);
  }
}

.run-swipe-anim {
  animation: swipe-complex-gesture 3.5s ease-in-out forwards;
}

#intro-screen {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: radial-gradient(circle at center, #1f2937 0%, #000000 100%);
  z-index: 100;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  transition:
    opacity 1.5s ease-in-out,
    visibility 1.5s;
}

.seal-container {
  position: relative;
  cursor: pointer;
  width: 200px;
  height: 200px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.3s ease;
}

.seal-container:hover {
  transform: scale(1.05);
}

.soul-circle {
  position: absolute;
  width: 100%;
  height: 100%;
  border-radius: 50%;
  border: 2px solid rgba(255, 255, 255, 0.1);
  box-shadow: 0 0 20px rgba(165, 243, 252, 0.05);
}

.soul-fill {
  position: absolute;
  width: 100%;
  height: 100%;
  border-radius: 50%;
  background: radial-gradient(
    circle,
    rgba(165, 243, 252, 0.2) 0%,
    transparent 70%
  );
  transform: scale(0);
  transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.character-head {
  width: 120px;
  height: 120px;
  object-fit: cover;
  border-radius: 50%;
  z-index: 10;
  filter: drop-shadow(0 0 10px rgba(255, 255, 255, 0.5));
  transition: filter 0.3s ease;
}

.seal-container:hover .character-head {
  filter: drop-shadow(0 0 20px var(--soul-glow));
}

.intro-text {
  margin-top: 2rem;
  color: var(--pale-king-silver);
  font-size: 1.2rem;
  letter-spacing: 0.1em;
  opacity: 0.7;
  animation: pulseText 3s infinite;
  text-align: center;
  padding-left: 1rem;
  padding-right: 1rem;
}

.shatter-anim {
  animation: shatterEffect 0.8s forwards ease-out;
}

@keyframes shatterEffect {
  0% {
    transform: scale(1);
    opacity: 1;
  }
  50% {
    transform: scale(1.4);
    opacity: 0.8;
    filter: blur(2px);
  }
  100% {
    transform: scale(3);
    opacity: 0;
    filter: blur(10px);
  }
}

@keyframes pulseText {
  0%,
  100% {
    opacity: 0.5;
  }
  50% {
    opacity: 1;
    text-shadow: 0 0 8px var(--soul-glow);
  }
}

.main-content-hidden {
  opacity: 0;
  pointer-events: none;
  transition: opacity 2.5s ease-in;
}

.reveal-content {
  opacity: 1;
  pointer-events: auto;
}

.background-layer {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: -1;
  background-image:
    linear-gradient(to bottom, rgba(0, 0, 0, 0.8), rgba(0, 0, 0, 0.2)),
    url("https://www.transparenttextures.com/patterns/dark-matter.png");
  opacity: 0.4;
}

.vignette {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: radial-gradient(circle, transparent 40%, #000000 100%);
  z-index: -1;
  pointer-events: none;
}

.particle-container {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 0;
  overflow: hidden;
}

.grub-bubble {
  position: absolute;
  border-radius: 50%;
  opacity: 0.7;
  background: radial-gradient(
    circle,
    rgba(255, 255, 255, 0.1) 0%,
    rgba(167, 215, 197, 0.3) 60%,
    rgba(167, 215, 197, 0.6) 100%
  );
  box-shadow:
    inset 0 0 10px rgba(255, 255, 255, 0.3),
    0 0 5px rgba(167, 215, 197, 0.4);
  border: 1px solid rgba(255, 255, 255, 0.2);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.grub-image {
  width: 80%;
  height: 80%;
  object-fit: contain;
  filter: drop-shadow(0 0 2px var(--grub-green));
  border-radius: 50%;
  color: #000;
  font-size: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.hk-card {
  background: rgba(20, 20, 25, 0.85);
  border: 1px solid #3f3f46;
  box-shadow:
    0 0 30px rgba(0, 0, 0, 0.8),
    inset 0 0 50px rgba(0, 0, 0, 0.5);
  position: relative;
  backdrop-filter: blur(4px);
}

.hk-border-top,
.hk-border-bottom {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  width: 80%;
  height: 2px;
  background: linear-gradient(
    90deg,
    transparent,
    var(--pale-king-silver),
    transparent
  );
}
.hk-border-top {
  top: 0;
}
.hk-border-bottom {
  bottom: 0;
}

.hk-btn {
  background: linear-gradient(to bottom, #1f2937, #111827);
  border: 1px solid #4b5563;
  color: var(--soul-white);
  font-family: "Cinzel", serif;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

.hk-btn:hover {
  border-color: var(--soul-glow);
  box-shadow: 0 0 15px rgba(165, 243, 252, 0.3);
  text-shadow: 0 0 5px var(--soul-glow);
}

.hk-btn::after {
  content: "";
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(255, 255, 255, 0.1),
    transparent
  );
  transition: 0.5s;
}

.hk-btn:hover::after {
  left: 100%;
}

.hk-btn-map {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
}

@keyframes floatUpBubble {
  0% {
    transform: translateY(0) scale(0.8);
    opacity: 0;
  }
  10% {
    opacity: 0.8;
  }
  90% {
    opacity: 0.8;
  }
  100% {
    transform: translateY(-120vh) scale(1);
    opacity: 0;
  }
}

.countdown-digit {
  font-family: "Cinzel", serif;
  background: -webkit-linear-gradient(#fff, #94a3b8);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  text-shadow: 0 2px 10px rgba(255, 255, 255, 0.1);
}

::-webkit-scrollbar {
  width: 8px;
}
::-webkit-scrollbar-track {
  background: #000;
}
::-webkit-scrollbar-thumb {
  background: #333;
  border-radius: 4px;
  border: 1px solid #555;
}
