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

body {
  overflow: hidden;
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
  font-size: 12px;
  background-color: #000;
}

#background {
  position: absolute;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  object-fit: contain;
  z-index: 0;
}

.video-container {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  z-index: 1;
  pointer-events: none;
  isolation: isolate; /* Create new stacking context for blend modes */
}

.video-canvas {
  position: absolute;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  pointer-events: auto;
  cursor: crosshair;
  touch-action: none;
  background: transparent; /* Ensure transparent background for blending */
  z-index: 1; /* Above VFX layer */
}

.anchor-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  z-index: 2;
  pointer-events: none;
}

.anchor-overlay svg {
  width: 100%;
  height: 100%;
  pointer-events: auto;
}

#logo {
  position: fixed;
  top: 20px;
  left: 20px;
  width: 100px;
  height: auto;
  z-index: 1001;
  pointer-events: none;
}

.loading-screen {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background-color: #000;
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
}

.loading-content {
  text-align: center;
  color: #fff;
}

.loading-percentage {
  font-size: 12px;
  font-weight: bold;
}

.start-button {
  padding: 15px 40px;
  font-size: 12px;
  background-color: transparent;
  color: #fff;
  border: 1px solid #fff;
  border-radius: 4px;
  cursor: pointer;
  font-weight: bold;
  transition: opacity 0.3s;
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
}

.start-button:hover {
  opacity: 0.7;
}

.start-button:active {
  transform: scale(0.98);
}
