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

html,
body {
  width: 100%;
  height: 100%;
}

body {
  min-height: 100dvh;
  overflow: hidden;
  display: flex;
  justify-content: center;
  align-items: center;
  color: white;
  background-color: black;
  font-family: Oswald, sans-serif;
}

body * {
    cursor: default !important;
}

#rotating-bg {
  width: 100%;
  height: 100vh;
  /* Ensure the background looks correct */
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  /* Smooth transition effect when the image changes */
  transition: background-image 0.5s ease-in-out; 
  transition: opacity 0.5s ease-in-out; 
}

main {
  position: relative;
  z-index: 100;
  text-align: center;
  animation: fadeUp 2s ease;
}

h1 {
  font-family: Cinzel, serif;
  font-size: clamp(4rem, 9vw, 8rem);
  letter-spacing: 0.4em;
  font-weight: 600;
  text-shadow:
    0 0 10px rgba(255, 255, 255, 0.5),
    0 0 30px rgba(120, 0, 0, 0.8),
    0 0 70px rgba(120, 0, 0, 0.7);
}

.line {
  width: 220px;
  height: 2px;
  margin: 35px auto;
  background: #721111;
  box-shadow: 0 0 20px #8d0000;
}

h2 {
  font-weight: 600;
  letter-spacing: 0.35em;
  font-size: clamp(0.8rem, 2vw, 1rem);
  color: #ccc;
  text-transform: uppercase;
}

.coming-soon {
  margin-top: 70px;
  display: inline-block;
  padding: 18px 50px;
  border: 1px solid rgba(255, 255, 255, 0.15);

  border-radius: 40px;
  letter-spacing: 0.4em;
  font-size: 1.1rem;
  backdrop-filter: blur(8px);
  background: rgba(255, 255, 255, 0.04);
  text-transform: uppercase;
  box-shadow: 0 0 25px rgba(90, 0, 0, 0.5);
}

.vignette {
  position: absolute;
  z-index: 95;
  inset: 0;
  background: radial-gradient(
    circle,
    transparent 35%,
    rgba(0, 0, 0, 0.88) 100%
  );
  pointer-events: none;
}

.stroke {
  /* -webkit-text-stroke: 1px rgb(65, 65, 65); */
}

.red {
  color: red !important;
  position: relative;
  vertical-align: center;
  /* top: 2px; */
  font-size: 12px;
  font-weight: 600 !important;
  line-height: 12px;
}

.grain {
  position: absolute;
  inset: 0;
  /* Grain overlay: use subtle multiply/overlay for a film look */
  /* Prefer 2x image if available for high-DPI screens */
  background-image: image-set(
    url("assets/grain.png") 1x,
    url("assets/grain@2x.png") 2x
  );
  background-repeat: repeat;
  background-size: auto 100%; /* preserve detail */
  mix-blend-mode: multiply;
  opacity: 0.12; /* stronger, grainier look */
  /* Layered grain technique: two grain layers, one fine, one coarse */
  background-image:
    image-set(url("assets/grain.png") 1x, url("assets/grain@2x.png") 2x),
    linear-gradient(rgba(0, 0, 0, 0), rgba(0, 0, 0, 0));
  background-blend-mode: normal;
  will-change: transform, opacity;
  animation: grain 10s linear infinite;
  pointer-events: none;
}

.grain {
  z-index: 20;
}

.fog {
  position: absolute;
  /* Expand coverage to avoid visible seams and use vertical overflow */
  inset: -30% -40%;
  background-image: image-set(
    url("assets/fog.png") 1x,
    url("assets/fog@2x.png") 2x
  );
  background-repeat: repeat-x;
  background-position: left top;
  background-size: auto 160%;
  opacity: 0.16;
  mix-blend-mode: screen;
  filter: blur(6px) saturate(1.05);
  will-change: transform, opacity;
  pointer-events: none;
}

.fog {
  z-index: 10;
}

.fog1 {
  animation: fogOne 70s linear infinite;
  transform-origin: left center;
}

.fog2 {
  animation: fogTwo 110s linear infinite reverse;
  transform-origin: right center;
  /* Make fog2 heavier and fully cover background to avoid seam */
  opacity: 0.22;
  background-position: center top;
  background-size: cover;
}

.light {
  position: absolute;
  top: -20%;
  left: 50%;
  transform: translateX(-50%);
  width: 900px;
  height: 900px;
  background: radial-gradient(
    circle at 50% 40%,
    rgba(180, 40, 40, 0.16),
    rgba(120, 0, 0, 0.06) 35%,
    transparent 60%
  );
  filter: blur(18px);
  opacity: 0.9;
  animation: pulse 6s ease-in-out infinite;
}

.light {
  z-index: 12;
}

@keyframes fogOne {
  from {
    transform: translateX(0);
  }
  to {
    transform: translateX(-700px);
  }
}

@keyframes fogTwo {
  from {
    transform: translateX(0);
  }
  to {
    transform: translateX(700px);
  }
}

@keyframes pulse {
  50% {
    opacity: 0.55;
  }
}

@keyframes grain {
  0% {
    transform: translate(0, 0);
  }
  50% {
    transform: translate(-0.6%, 0.4%);
  }
  100% {
    transform: translate(0, 0);
  }
}
/* Respect reduced motion and save-power */
@media (prefers-reduced-motion: reduce), (prefers-reduced-data: reduce) {
  .grain,
  .fog,
  .light {
    animation: none !important;
  }
  .grain {
    opacity: 0.04;
  }
}
/* Reduce intensity on battery-saver / low-power devices (user agent hint not widely available) */
@media (hover: none) and (pointer: coarse) {
  .grain {
    opacity: 0.05;
  }
  .fog {
    opacity: 0.08;
  }
  .light {
    opacity: 0.6;
    filter: blur(12px);
  }
}
@keyframes fadeUp {
  from {
    opacity: 0;
    transform: translateY(25px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}
/* Tablets */
@media (max-width: 900px) {
  body {
    background-attachment: scroll;
  }
  .light {
    width: 650px;
    height: 650px;
  }
}
/* Phones */
@media (max-width: 600px) {
  main {
    padding: 1rem;
  }
  h1 {
    font-size: 3.25rem;
    letter-spacing: 0.12em;
  }
  h2 {
    letter-spacing: 0.2em;
    font-size: 0.75rem;
  }
  .coming-soon {
    width: 100%;
    max-width: 320px;
    padding: 16px;
    letter-spacing: 0.18em;
    font-size: 0.9rem;
  }
  .line {
    margin: 1.25rem auto;
  }
  .fog {
    background-size: 800px;
  }
}
