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

html, body {
  height: 100%;
  background: #0e0b09;
  color: #f2e9df;
  font-family: "Segoe UI", "Helvetica Neue", Arial, sans-serif;
}

.loader {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 1.2rem;
  background: #0e0b09;
  transition: opacity 0.6s ease;
}

.loader-hidden {
  opacity: 0;
  pointer-events: none;
}

.loader-spinner {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  border: 3px solid rgba(185, 128, 63, 0.25);
  border-top-color: #d99a54;
  animation: spin 0.9s linear infinite;
}

.loader-text {
  font-size: 0.95rem;
  letter-spacing: 0.05em;
  color: #cbb8a4;
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

.hero {
  position: relative;
  width: 100%;
  height: 100vh;
  height: 100dvh;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  isolation: isolate;
  contain: paint;
}

.hero-video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 0;
  pointer-events: none;
  user-select: none;
  -webkit-user-select: none;
  transform: translateZ(0) scale(1.05);
  will-change: transform;
  backface-visibility: hidden;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to bottom,
    rgba(10, 8, 6, 0.55) 0%,
    rgba(10, 8, 6, 0.35) 40%,
    rgba(10, 8, 6, 0.75) 100%
  );
  z-index: 1;
}

.hero-content {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2rem;
  text-align: center;
  padding: 1rem;
}

.title {
  font-size: clamp(2.2rem, 6vw, 4.5rem);
  font-weight: 700;
  letter-spacing: 0.02em;
  text-shadow: 0 4px 24px rgba(0, 0, 0, 0.6);
}

.title-char {
  display: inline-block;
  opacity: 0;
  filter: blur(8px);
  transform: translateY(18px) scale(0.85);
  color: #f2e9df;
  text-shadow: 0 0 0 rgba(217, 154, 84, 0);
  animation: title-reveal 1.1s cubic-bezier(0.2, 0.7, 0.2, 1) forwards;
}

@keyframes title-reveal {
  0% {
    opacity: 0;
    filter: blur(8px);
    transform: translateY(18px) scale(0.85);
    text-shadow: 0 0 0 rgba(217, 154, 84, 0);
  }
  55% {
    opacity: 1;
    filter: blur(0);
    transform: translateY(-3px) scale(1.08);
    text-shadow: 0 0 18px rgba(217, 154, 84, 0.85), 0 0 34px rgba(185, 128, 63, 0.5);
  }
  100% {
    opacity: 1;
    filter: blur(0);
    transform: translateY(0) scale(1);
    text-shadow: 0 4px 24px rgba(0, 0, 0, 0.6);
  }
}

@media (prefers-reduced-motion: reduce) {
  .title-char {
    animation: none;
    opacity: 1;
    filter: none;
    transform: none;
  }
}

.wishlist-wrap {
  position: relative;
}

.spark {
  position: absolute;
  border-radius: 50%;
  pointer-events: none;
  box-shadow: 0 0 6px 1px rgba(255, 210, 140, 0.6);
  z-index: 5;
}

.wishlist-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.9rem 2.2rem;
  border-radius: 999px;
  background: linear-gradient(180deg, #b9803f, #8a5a2b);
  color: #fff8ef;
  font-size: 1.1rem;
  font-weight: 600;
  text-decoration: none;
  border: 1px solid rgba(255, 224, 179, 0.35);
  box-shadow: 0 6px 20px rgba(139, 90, 43, 0.45);
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.wishlist-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 28px rgba(139, 90, 43, 0.6);
  background: linear-gradient(180deg, #c98f4a, #96622f);
}

.steam-icon {
  width: 1.3rem;
  height: 1.3rem;
}

.site-footer {
  position: fixed;
  bottom: 0;
  left: 0;
  width: 100%;
  z-index: 3;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2rem 1.5rem calc(1.5rem + env(safe-area-inset-bottom, 0px));
  pointer-events: none;
}

.footer-right {
  position: fixed;
  right: 1.5rem;
  top: calc(1.5rem + env(safe-area-inset-top, 0px));
  z-index: 4;
  display: flex;
  align-items: center;
  gap: 0.8rem;
}

.footer-right,
.socials {
  pointer-events: auto;
}

.about-link {
  color: #f2e9df;
  text-decoration: none;
  font-weight: 600;
  letter-spacing: 0.03em;
  padding: 0.5rem 1.2rem;
  border: 1px solid rgba(185, 128, 63, 0.6);
  border-radius: 999px;
  background: rgba(14, 11, 9, 0.35);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.4);
  transition: background 0.2s ease, color 0.2s ease;
}

.about-link:hover {
  background: #b9803f;
  color: #0e0b09;
}

.discord-link {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  color: #f2e9df;
  text-decoration: none;
  font-weight: 600;
  letter-spacing: 0.03em;
  padding: 0.5rem 1.2rem;
  border: 1px solid rgba(114, 137, 218, 0.6);
  border-radius: 999px;
  background: rgba(14, 11, 9, 0.35);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.4);
  transition: background 0.2s ease, color 0.2s ease;
}

.discord-link svg {
  width: 1.1rem;
  height: 1.1rem;
}

.discord-link:hover {
  background: #7289da;
  color: #fff;
}

.socials {
  display: flex;
  gap: 0.54rem;
}

.socials a {
  color: #f2e9df;
  opacity: 0.9;
  filter: drop-shadow(0 2px 6px rgba(0, 0, 0, 0.6));
  transition: opacity 0.2s ease, color 0.2s ease, transform 0.2s ease;
}

.socials a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.75rem;
  height: 2.75rem;
}

.socials a svg {
  width: 1.4rem;
  height: 1.4rem;
}

.socials a:hover {
  opacity: 1;
  color: #d99a54;
  transform: translateY(-2px);
}

/* Tablets and small laptops */
@media (max-width: 900px) {
  .hero-content {
    gap: 1.5rem;
  }

  .wishlist-btn {
    padding: 0.85rem 2rem;
    font-size: 1.05rem;
  }
}

/* Phones */
@media (max-width: 600px) {
  .title {
    font-size: clamp(1.8rem, 8vw, 2.8rem);
  }

  .wishlist-btn {
    padding: 0.8rem 1.7rem;
    font-size: 1rem;
  }

  .site-footer {
    padding-top: 1.4rem;
  }

  .footer-right {
    right: 0.75rem;
    top: calc(0.75rem + env(safe-area-inset-top, 0px));
    gap: 0.5rem;
  }

  .about-link,
  .discord-link {
    padding: 0.4rem 0.8rem;
    font-size: 0.8rem;
  }

  .discord-link svg {
    width: 0.95rem;
    height: 0.95rem;
  }

  .socials {
    gap: 0.25rem;
  }

  .loader-spinner {
    width: 40px;
    height: 40px;
  }
}

/* Very small phones */
@media (max-width: 360px) {
  .title {
    font-size: clamp(1.5rem, 9vw, 2.2rem);
  }

  .socials a {
    width: 2.4rem;
    height: 2.4rem;
  }

  .footer-right {
    flex-direction: column;
    align-items: flex-end;
    gap: 0.4rem;
  }

  .discord-link span,
  .discord-link {
    white-space: nowrap;
  }
}

/* Short/landscape viewports (phones rotated) */
@media (max-height: 480px) {
  .hero-content {
    gap: 1rem;
  }

  .title {
    font-size: clamp(1.4rem, 6vh, 2.4rem);
  }

  .wishlist-btn {
    padding: 0.6rem 1.5rem;
  }

  .site-footer {
    padding: 1rem 1rem calc(0.8rem + env(safe-area-inset-bottom, 0px));
    gap: 1rem;
  }
}

/* Respect users who prefer less motion */
@media (prefers-reduced-motion: reduce) {
  .loader-spinner {
    animation-duration: 1.6s;
  }

  .wishlist-btn:hover,
  .socials a:hover,
  .about-link:hover {
    transition: none;
  }
}
