@font-face {
  font-family: 'Outfit';
  src: url('OUTFIT-REGULAR.woff2') format('woff2');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'URW Geometrica Arabic';
  src: url('URWGEOMETRICARABIC-LIGHT.woff2') format('woff2');
  font-weight: 300;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'Outfit Black';
  src: url('Outfit-Black.woff2') format('woff2');
  font-weight: 900;
  font-style: normal;
  font-display: swap;
}

body,
html {
  margin: 0;
  padding: 0;
  background-color: #050403;
  overflow: hidden;
  font-family: 'Outfit', 'URW Geometrica Arabic', sans-serif;
}

#canvas-container {
  width: 100%;
  height: 100%;
  position: absolute;
  top: 0;
  left: 0;
  z-index: 1;
}

.ui-layer {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 10;
  display: flex;
  justify-content: center;
  align-items: center;
}

.scroll-indicator {
  font-family: 'Outfit', 'URW Geometrica Arabic', sans-serif;
  font-weight: 900;
  color: #bcaaa4;
  font-size: 20px;
  letter-spacing: 1px;
  opacity: 0;
  text-shadow: 0 0 5px rgba(0, 0, 0, 1);
}

#sound-btn {
  position: fixed;
  bottom: 75px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 501;
  color: #bcaaa4;
  font-family: 'Outfit', 'URW Geometrica Arabic', sans-serif;
  font-weight: 900;
  font-size: 10px;
  letter-spacing: 1px;
  cursor: pointer;
  opacity: 0;
  transition: opacity 0.3s;
  pointer-events: auto;
  user-select: none;
}

#sound-btn:hover {
  color: #ffffff;
}

#intro-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: #000;
  z-index: 200;
  display: flex;
  justify-content: center;
  align-items: center;
  pointer-events: none;
}

#intro-text {
  position: absolute;
  font-family: 'Outfit Black', 'URW Geometrica Arabic', sans-serif;
  font-weight: 900;
  font-size: 42px;
  color: #d7ccc8;
  text-align: center;
  opacity: 0;
  padding: 0 20px;
}

#intro-instructions {
  position: absolute;
  display: flex;
  flex-direction: row;
  justify-content: center;
  align-items: flex-start;
  gap: 80px;
  opacity: 0;
}

.instruction-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
}

.instruction-icon {
  width: 48px;
  height: 48px;
  object-fit: contain;
  opacity: 0.9;
}

.instruction-text {
  font-family: 'Outfit', sans-serif;
  font-weight: 400;
  font-size: 12px;
  color: #bcaaa4;
  letter-spacing: 2px;
  text-transform: uppercase;
  text-align: center;
}

@media (max-width: 768px) {
  #intro-text {
    font-size: 24px;
    line-height: 1.4;
    padding: 0 30px;
  }

  #intro-instructions {
    gap: 40px;
    padding: 0 20px;
  }

  .instruction-icon {
    width: 36px;
    height: 36px;
  }

  .instruction-text {
    font-size: 10px;
    letter-spacing: 1px;
  }
}

@media (max-width: 480px) {
  #intro-text {
    font-size: 20px;
  }

  #intro-instructions {
    gap: 30px;
  }

  .instruction-icon {
    width: 32px;
    height: 32px;
  }

  .instruction-text {
    font-size: 9px;
  }
}

#loading-text {
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  font-family: 'Outfit', 'URW Geometrica Arabic', sans-serif;
  font-weight: 900;
  font-size: 14px;
  color: #ffffff;
  letter-spacing: 2px;
  z-index: 301;
  text-align: center;
  line-height: 24px;
}

#start-container {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  z-index: 500;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 30px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.5s;
}

.start-logo {
  width: 540px;
  height: auto;
}

#start-btn {
  font-family: 'Outfit', 'URW Geometrica Arabic', sans-serif;
  font-weight: 900;
  font-size: 13px;
  color: #fff;
  letter-spacing: 3px;
  border: none;
  background: transparent;
  padding: 20px;
  opacity: 0.8;
  transition: opacity 0.3s;
  text-shadow: 0 0 10px rgba(0, 0, 0, 0.5);
  pointer-events: auto;
  cursor: pointer;
}

#start-btn:hover {
  opacity: 1;
}

@keyframes pulse {
  0% {
    opacity: 0.6;
  }

  50% {
    opacity: 1;
  }

  100% {
    opacity: 0.6;
  }
}

#start-container.active #start-btn {
  animation: pulse 2s infinite;
}

#scene-blackout {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: #000;
  z-index: 150;
  pointer-events: none;
  opacity: 0;
}

#boot-blackout {
  position: fixed;
  inset: 0;
  background: #000;
  opacity: 1;
  /* start fully black */
  pointer-events: all;
  /* block clicks until you fade it */
  z-index: 99999;
  /* must be above canvas + overlays */
}

#white-flash {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: #fff;
  z-index: 155;
  pointer-events: none;
  opacity: 0;
}

#click-layer {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 400;
  cursor: pointer;
  display: none;
}

#final-reveal-container {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 160;
  pointer-events: none;
  opacity: 0;
}

@keyframes sheenOnce {
  0% {
    background-position: -50% center;
  }

  100% {
    background-position: 150% center;
  }
}

#ceremony-text-container {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 168;
  pointer-events: none;
  opacity: 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
}

.ceremony-logo {
  max-width: 312px;
  height: auto;
  margin-bottom: 40px;
}

.ceremony-text-arabic {
  font-family: 'URW Geometrica Arabic', 'Outfit', sans-serif;
  font-weight: 300;
  font-size: clamp(14px, 2.4vw, 29px);
  text-align: center;
  direction: rtl;
  margin-bottom: 12px;
  color: #d4af37;
  text-shadow: 0 0 25px rgba(212, 175, 55, 0.7);
  background: linear-gradient(90deg, #d4af37 0%, #d4af37 45%, #fff 50%, #d4af37 55%, #d4af37 100%);
  background-size: 300% auto;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  animation: sheenOnce 2.5s ease-in-out infinite;
}

.ceremony-text-english {
  font-family: 'Outfit', sans-serif;
  font-weight: 300;
  font-size: clamp(13px, 2vw, 26px);
  text-align: center;
  letter-spacing: 0.5em;
  text-transform: uppercase;
  color: #d4af37;
  text-shadow: 0 0 25px rgba(212, 175, 55, 0.7);
  background: linear-gradient(90deg, #d4af37 0%, #d4af37 45%, #fff 50%, #d4af37 55%, #d4af37 100%);
  background-size: 300% auto;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  animation: sheenOnce 2.5s ease-in-out infinite;
  animation-delay: 0.4s;
}

.ceremony-text-date {
  font-family: 'Outfit Black', 'Outfit', sans-serif;
  font-weight: 900;
  font-size: clamp(14px, 2.2vw, 28px);
  text-align: center;
  letter-spacing: 0.3em;
  color: #d4af37;
  margin-top: 80px;
  text-shadow: 0 0 25px rgba(212, 175, 55, 0.7);
  background: linear-gradient(90deg, #d4af37 0%, #d4af37 45%, #fff 50%, #d4af37 55%, #d4af37 100%);
  background-size: 300% auto;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  animation: sheenOnce 2.5s ease-in-out infinite;
  animation-delay: 0.6s;
}

#replay-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 170;
  pointer-events: none;
  opacity: 0;
  display: flex;
  justify-content: center;
  align-items: flex-start;
  padding-top: 80px;
  cursor: pointer;
  transition: opacity 0.5s ease;
}

#replay-text {
  font-family: 'Outfit', 'URW Geometrica Arabic', sans-serif;
  font-weight: 900;
  font-size: 13px;
  color: #ffffff;
  letter-spacing: 3px;
  text-shadow: 0 0 20px rgba(0, 0, 0, 0.8);
  animation: replayPulse 2s infinite;
}

@keyframes replayPulse {

  0%,
  100% {
    opacity: 0.6;
  }

  50% {
    opacity: 1;
  }
}