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

body {
  min-height: 100vh;
  font-family: system-ui, sans-serif;
  color: white;
  background: black;
  overflow-x: hidden;
}

p {
  font-family: Nunito;
  font-size: larger;
}

h3 {
  font-family: Nunito;
}

.background {
  position: fixed;
  inset: 0;
  z-index: -2;
  background-image: url("/images/bg-meowcity.png");
  background-size: cover;
  background-position: center;
  filter: blur(8px);
  transform: scale(1.1);
}

.background::after {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,0.55);
}

.hero h1 {
  font-size: clamp(2.5rem, 5vw, 4.5rem);
  font-weight: 800;
}

/* center grid vertically on larger screens only */
@media (min-width: 992px) {
  main.container {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
  }
}

.landing-logo {
  max-height: 60px;
  margin-bottom: 2rem;
}

@font-face {
  font-family: 'Enchantment';
  src: url('/fonts/minecraft/minecraft-enchanting-table-sga.ttf');
}

.enchantment-text {
  font-family: 'Enchantment', sans-serif;
}

.minecraft-text {
  font-family: 'Minecraft', sans-serif;
}
.minecraft-text-meow {
  font-family: 'Minecraft', sans-serif;
  background: #04FFEB;
  background: linear-gradient(to right, #04FFEB 0%, #17998F 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

/* ---------------- CARD BASE ---------------- */

.portal-card {
  position: relative;
  display: flex;
  align-items: flex-end;
  height: 260px;
  border-radius: 22px;
  overflow: hidden;
  background-size: cover;
  background-position: center;
  text-decoration: none;
  color: white;
  will-change: transform;
  box-shadow: 0 10px 30px rgba(0,0,0,0.35);
  /* IMPORTANT: no transform transitions here anymore */
  /* transition: box-shadow 0.3s ease; */
  transition: transform 0.25s ease;
}

.portal-card:hover {
  box-shadow: 0 25px 60px rgba(0,0,0,0.55);
   transform: scale(1.1);
}

.portal-card::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0,0,0,0.75), rgba(0,0,0,0.1));
}

.overlay {
  position: relative;
  z-index: 2;
  padding: 1.5rem;
}

/* ---------------- SKELETON ---------------- */

.skeleton {
  background: #1a1a1a;
  position: relative;
  overflow: hidden;
}

/* shimmer stays isolated (does NOT affect transform) */
.skeleton::after {
  content: "";
  position: absolute;
  inset: 0;
  transform: translateX(-100%);
  background: linear-gradient(
    90deg,
    rgba(255,255,255,0) 0%,
    rgba(255,255,255,0.08) 50%,
    rgba(255,255,255,0) 100%
  );
  animation: shimmer 1.2s infinite;
}

@keyframes shimmer {
  100% {
    transform: translateX(100%);
  }
}

/* fade-in only uses opacity (safe with JS transform) */
.portal-card.loaded {
  animation: fadeIn 0.6s ease forwards;
}

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

/* ---------------- SCROLL REVEAL ---------------- */

.reveal {
  opacity: 0;
  transform: translateY(40px);
  transition: all 0.7s ease;
}

.reveal.active {
  opacity: 1;
  transform: translateY(0);
}

/* ---------------- idk ---------------- */

/* responsive */
@media (max-width: 768px) {
  .portal-card {
    height: 220px;
  }
}

/* ---------------- STATUS RIBBON ---------------- */

.status-ribbon {
  position: absolute;
  top: 22px;
  right: -20px;
  width: 260px;
  transform: rotate(25deg);
  background: rgba(255, 60, 60, 0.9);
  overflow: hidden;
  z-index: 5;
  box-shadow: 0 12px 30px rgba(0,0,0,0.3);
  padding: 5px;
  border-bottom: 4px solid #00000059;
}

.marquee-track {
  display: flex;
  width: max-content;
}

.marquee-content {
  display: inline-flex;
  /* white-space: nowrap; */
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 2px;

  padding-right: 5px;

  /* animation: scroll 6s linear infinite; */
  /* animation: scroll 6s cubic-bezier(0.49, 0.37, 0.49, 0.7) infinite; */
  animation: scroll 15s linear infinite;
  /* animation-direction: reverse; */
}

@keyframes scroll {
  0% {
    transform: translateX(0);
  }
  100% {
    transform: translateX(-100%);
  }
}

/* ---------------- LOADER ---------------- */

#loader {
  position: fixed !important;
  inset: 0;
  background: radial-gradient(circle, #001c1d, #04181d, #0a1419, #0d0f13, #0b0b0b);;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 9999;
  transition: opacity 0.6s ease, visibility 0.6s ease;
}

#loader.hide {
  opacity: 0;
  visibility: hidden;
}

/* center wrapper */
.loader-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 10px;
}

/* spinner */
.spinner {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  border: 2px solid rgba(255,255,255,0.2);
  position: relative;
}

.spinner::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 50%;
  border: 2px solid rgba(255,255,255,0.8);
  animation: pulseSpin 1.2s ease-in-out infinite;
}

@keyframes pulseSpin {
  0% {
    transform: scale(0.6);
    opacity: 0.2;
  }
  50% {
    opacity: 1;
  }
  100% {
    transform: scale(1.2);
    opacity: 0;
  }
}

/* loading text */
.loader-text {
  font-size: 12px;
  letter-spacing: 2px;
  text-transform: uppercase;

  color: rgba(255, 255, 255, 0.65);
}

/* page fade-in wrapper */
#page {
  opacity: 0;
  transition: opacity 0.8s ease;
}

#page.loaded {
  opacity: 1;
}

/* ---------------- STARS ---------------- */

#star-layer {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  pointer-events: none;
  overflow: hidden;
}

#star-canvas {
  width: 100%;
  height: 100%;
  display: block;
}

/* ensure your content sits above */
body > *:not(#star-layer) {
  position: relative;
  z-index: 1;
}