/* ==============================
   GLOBAL
============================== */
body {
  margin: 0;
  background: black;
  height: 100vh;
  display: flex;
  justify-content: center;
  align-items: center;
}

/* ==============================
   SCENE
============================== */
.radial-scene {
  position: relative;
  width: 320px;
  height: 420px;
}

/* ==============================
   SPRITE
============================== */
.portrait-sprite {
  position: absolute;
  bottom: 0;
  left: 50%;
  width: 360px;                 /* one frame width */
  height: 500px;
  transform: translateX(-50%);
  background-image: url("https://charlieclaverie.neocities.org/clock.png");
  background-repeat: no-repeat;
  background-size: 600% 100%;   /* 6 frames */
  background-position: 0% 0%;
  transition: background-position 0.15s steps(1);
  z-index: 1;
}

/* ==============================
   NAV CONTAINER
============================== */
.umbrella {
  position: absolute;
  top: -155px; /* move buttons upward */
  left: 50%;
  width: 780px;   /* wider arc */
  height: 150px;  /* taller arc */
  transform: translateX(-50%);
  z-index: 2;
}

/* ==============================
   BUTTONS (INVISIBLE HOTSPOTS)
============================== */
.btn {
  position: absolute;
  width: 60px;
  height: 60px;
  border-radius: 50%;
  cursor: pointer;
  background: transparent;
  
  background: rgba(0, 255, 255, 0.5);
  box-shadow: 0 0 12px rgba(0, 255, 255, 0.9);

}

/* --- DEBUG (optional) --- */
/*
.btn {
  background: rgba(255, 0, 255, 0.4);
  box-shadow: 0 0 12px rgba(255, 0, 255, 0.7);
}
*/

/* ==============================
   HALF CIRCLE POSITIONS
============================== */
.btn-1 { left: 5%;   top: 120%; }
.btn-2 { left: 25%;  top: 52%; }
.btn-3 { left: 50%;  top: 0%;   transform: translateX(-50%); }
.btn-4 { left: 67%;  top: 55%; }
.btn-5 { left: 95%;  top: 127%; transform: translateX(-100%); }

/* ==============================
   SPRITE STATE MACHINE
============================== */
.radial-scene:has(.btn-1:hover) .portrait-sprite {
  background-position: 20% 0;
}

.radial-scene:has(.btn-2:hover) .portrait-sprite {
  background-position: 40% 0;
}

.radial-scene:has(.btn-3:hover) .portrait-sprite {
  background-position: 60% 0;
}

.radial-scene:has(.btn-4:hover) .portrait-sprite {
  background-position: 80% 0;
}

.radial-scene:has(.btn-5:hover) .portrait-sprite {
  background-position: 100% 0;
}

/* ==============================
   RESET TO NEUTRAL
============================== */
.radial-scene:not(:has(.btn:hover)) .portrait-sprite {
  background-position: 0% 0%;
}