* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html,
body {
  width: 100%;
  height: 100%;
  background: black;
  overflow: hidden;
}

/* Background */
.bg {
  position: fixed;
  inset: 0;
  background: url("bg.jpg") center / cover no-repeat;
  animation: zoomBg 20s ease-in-out infinite alternate;
}

@keyframes zoomBg {
  from {
    transform: scale(1);
  }

  to {
    transform: scale(1.06);
  }
}

/* Click Zones */
.zone {
  position: fixed;
  z-index: 2;
  cursor: pointer;
  transition: box-shadow 0.3s;
}

/* ========================= */
/* 🖥 Desktop (mouse)        */
/* ========================= */
@media (pointer: fine) {

  .left {
    left: 0;
    top: 0;
    width: 50%;
    height: 100%;
  }

  .right {
    right: 0;
    top: 0;
    width: 50%;
    height: 100%;
  }

  .left:hover {
    box-shadow: inset -180px 0 180px rgba(255, 140, 0, 0.25);
  }

  .right:hover {
    box-shadow: inset 180px 0 180px rgba(0, 160, 255, 0.25);
  }
}

/* ========================= */
/* 📱 Mobile / Tablet (touch) */
/* ========================= */
@media (pointer: coarse) {

  .bg {
    background-size: contain;
    background-position: center;
    background-repeat: no-repeat;
    animation: none;
  }

  .left {
    top: 0;
    left: 0;
    width: 100%;
    height: 50%;
  }

  .right {
    top: 50%;
    left: 0;
    width: 100%;
    height: 50%;
  }

  .left:active {
    box-shadow: inset 0 -180px 180px rgba(255, 140, 0, 0.35);
  }

  .right:active {
    box-shadow: inset 0 180px 180px rgba(0, 160, 255, 0.35);
  }
}

/* Fade */
#fade {
  position: fixed;
  inset: 0;
  background: black;
  opacity: 0;
  pointer-events: none;
  transition: 0.8s;
  z-index: 9;
}

#fade.show {
  opacity: 1;
}