@font-face {
  font-family: "Pricedown";
  src: url("Pricedown Bl.otf") format("opentype");
}

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

body {
  font-family: "Arial Black", Arial, sans-serif;
  height: 100vh;
  height: 100dvh; /* Dynamic viewport height for mobile */
  overflow: hidden;
  position: relative;
  background-color: #000;
  -webkit-overflow-scrolling: touch;
  overscroll-behavior: none; /* Prevent pull-to-refresh */
  touch-action: pan-x pan-y; /* Better touch handling */
  -webkit-tap-highlight-color: transparent; /* Remove tap highlight on mobile */
}

.bg-layer {
  content: "";
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background-repeat: repeat;
  background-size: 382px 480px;
  transform: rotate(-30deg);
  z-index: -2;
  animation: moveDown 20s linear infinite;
  opacity: 0;
  transition: opacity 0.75s ease-in-out;
  filter: blur(3px);
}

.bg-layer.active {
  opacity: 1;
}

@keyframes moveDown {
  from {
    background-position: 0 0;
  }
  to {
    background-position: 0 480px;
  }
}

body::after {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.5);
  z-index: -1;
}

.container {
  height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  position: relative;
}

.header-text {
  color: white;
  font-family: "Pricedown", Arial, sans-serif;
  font-size: 3rem;
  text-transform: uppercase;
  letter-spacing: 2px;
  text-shadow: 3px 3px 6px rgba(0, 0, 0, 0.9);
}

.logo-container {
  position: relative;
  width: 600px;
  height: 600px;
}

.logo-tile {
  width: 100%;
  height: 100%;
  background-size: contain;
  background-position: center;
  background-repeat: no-repeat;
  opacity: 0.3;
  filter: drop-shadow(0 20px 45px rgba(0, 0, 0, 1));
}

.loading-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-size: contain;
  background-position: center;
  background-repeat: no-repeat;
  clip-path: inset(0 100% 0 0);
  transition: clip-path 0.3s linear;
}

.map-container {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  border: none;
  opacity: 0;
  pointer-events: none;
  transition: opacity 1s ease-in-out;
}

.map-container.loaded {
  opacity: 1;
  pointer-events: auto;
}
