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

body {
  background: #ffffff;
  min-height: 100vh;
  margin: 0;
  padding: 0;
  overflow: hidden;
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  cursor: none;
  font-size: 16px; /* Base font size */
}

/* Mobile - screens smaller than 768px */
@media (max-width: 767px) {
  body {
    font-size: 11px; /* -5 from base 16px */
  }
}

/* Landscape orientation - only for mobile/tablet devices (not desktop) */
/* Using both orientation and aspect-ratio for better iOS Safari compatibility */
@media screen and (orientation: landscape) and (max-width: 1024px),
       screen and (min-aspect-ratio: 4/3) and (max-width: 1024px) {
  .humanoid-container {
    /* Adjust humanoid for landscape view */
    width: min(90vw, calc(80vh * var(--humanoid-aspect, 1)));
  }
}

* {
  cursor: none !important;
}

.custom-cursor {
  transition: opacity 0.2s ease;
}

/* Glitch canvas - positioned as full-page overlay */
#glitch-canvas {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100vh;
  z-index: 999;
  pointer-events: none;
  /* mix-blend-mode is now controlled by GUI */
}

/* Humanoid container - centered */
.humanoid-container {
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  z-index: 1;
  aspect-ratio: var(--humanoid-aspect, 1 / 1);
  width: min(90vw, calc(80vh * var(--humanoid-aspect, 1)));
  max-width: 100vw;
  max-height: 90vh;
}

@media (max-width: 767px) {
  .humanoid-container {
    width: min(100vw, calc(95vh * var(--humanoid-aspect, 1)));
    max-width: 100vw;
    max-height: 95vh;
  }

  .humanoid-container img,
  .humanoid-glow-container {
    width: 100%;
    height: 100%;
    object-fit: cover;
  }
}

.humanoid {
  display: block;
  max-width: 100%;
  height: auto;
}

/* dat.GUI styling */
.dg.ac {
  z-index: 9999 !important;
}
