* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
  width: 100vw;
  height: 100vh;
  overflow: hidden;
  background: black;
}

.scene {
  position: relative;

  width: 100vw;
  height: 56.25vw;   /* 16:9 ratio */

  max-height: 100vh;
  margin: auto;

  overflow: hidden;
}


#background {
  position: absolute;
  inset: 0;
  pointer-events: none;

  background-image: url("/assets/images/courtyard.jpg");
  background-size: cover;
  background-position: center;

  z-index: 0;
}

/* =========================
   HOTSPOTS
========================= */

.hotspot {
  position: absolute;
  cursor: pointer;
  z-index: 50;

  /* invisible by default */
  background: rgba(255, 0, 0, 0);
}

/* =========================
   TOOLTIP
========================= */
#tooltip {
    position: absolute;
    padding: 6px 10px;
    background: rgba(0,0,0,0.7);
    color: white;
    font-size: 12px;
    pointer-events: none;
    opacity: 0;
    transition: 0.2s;
    border: 1px solid rgba(255,255,255,0.2);
    z-index: 9999;
}


#gallery {
  top: 0%;
  left: 0%;
  width: 30vw;
  height: 40vw;
}

#shrine {
  top: 15%;
  left: 62%;
  width: 25vw;
  height: 30vw;
}

#kitchen {
    top: 5%;
    left: 82%;
    width: 20vw;
    height: 40vw;
}

#foyer {
    top: 80%;
    left: 0%;
    width: 100vw;
    height: 30vw;
}

    

/* ================= FOUNTAIN ================= */

#fountain {
  position: absolute;
  color: rgba(255,255,255,0.85);

  left: 30%;
  top: 73%;

  transform: translate(-50%, -50%); 
  text-align: center;
  z-index: 10;
}

#water {
  position: relative;
  align-self: center;
  width: 33vw;
  height: 7vw;
  margin: 0 auto;

  background: radial-gradient(circle at center, rgba(0,80,120,0.4), rgba(0,0,0,0.6));
  border-radius: 50%;
  overflow: hidden;

  box-shadow: 0 0 30px rgba(0,0,0,0.6);
}

/* coin */
#coin {
  position: absolute;
  left: 50%;
  top: 10%;
  transform: translateX(-50%);
  font-size: 40px;
  transition: transform 0.8s ease, top 0.8s ease, opacity 0.8s ease;
}

/* toss animation */
#coin.flip {
  transform: translateX(-50%) rotateY(720deg) rotateX(360deg);
}

/* sinking animation */
#coin.sink {
  top: 80%;
  opacity: 0;
}

/* ripples */
#ripples {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.ripple {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 10px;
  height: 10px;
  border: 2px solid rgba(255,255,255,0.4);
  border-radius: 50%;
  transform: translate(-50%, -50%);
  animation: ripple 1.2s ease-out forwards;
}

@keyframes ripple {
  0% {
    width: 10px;
    height: 10px;
    opacity: 1;
  }
  100% {
    width: 200px;
    height: 200px;
    opacity: 0;
  }
}

/* button */
#flipBtn {
  font-family: "Cinzel Decorative", serif;
  padding: 8px 14px;
  background: rgba(0,0,0,0.4);
  color: white;
  cursor: pointer;
  margin: 2.5vw;
}

#flipBtn:hover {
  color: #73080d;
}
#result {
  position: absolute;

  left: 50%;
  top: 95%; /* below water */

  transform: translateX(-50%);

  width: 33vw;
  height: 7vw;
  
  padding: 8px;

  text-align: center;

  font-size: 14px;
  line-height: 1.3;

  background: radial-gradient(circle, rgba(0,0,0, 0.5) 0%, rgba(80, 80, 80, 0.0) );
  color: rgba(255,255,255,0.85);

  opacity: 0;
  overflow: hidden;    /* 👈 prevents layout growth */
  pointer-events: none;
}










