 body {
    margin: 0;
  font-family: sans-serif;
  background: #dff4ff;
  overflow: hidden;
  }
h1 {
  position: absolute;
  top: 10px;
  left: 50%;
  transform: translateX(-50%);
  margin: 0;
  z-index: 10;
  color: #333;
  }
  #status {
    font-size: 24px;
    margin: 20px;
  }
  button {
    font-size: 20px;
    padding: 10px 20px;
  }
  #log {
    margin-top: 20px;
    height: 200px;
    overflow-y: auto;
    border: 1px solid #ccc;
    background: #fff;
    width: 80%;
    margin-left: auto;
    margin-right: auto;
    text-align: left;
    padding: 10px;
  }
.main {
  width: 100%;
  height: 100vh;
  position: relative;
  overflow: hidden;
  background: #eee;
  }
button {
  font-size: 20px;
  padding: 10px 20px;
  margin: 0 10px;
  border: none;
  border-radius: 10px;
  background: #4fc3f7;
  color: white;
  cursor: pointer;
  }

button:hover {
  background: #29b6f6;
  }

#bathroom {
  position: absolute;
  left: 20px;
  top: 50%;
  transform: translateY(-50%);
  width: 300px;
  }

#player {
  position: absolute;
  right: 100px;
  top: 50%;
  transform: translateY(-50%);
  width: 120px;
  }

.ball {
  position: absolute;
  width: 80px;
  text-align: center;
  pointer-events: none;
  }

.ball img {
  width: 100%;
  }

.ballLabel {
  font-size: 18px;
  font-weight: bold;
  color: #222;
  background: rgba(255,255,255,0.8);
  border-radius: 10px;
  padding: 4px;
  margin-bottom: 4px;
  }
#timer {
  position: absolute;
  top: 60px;
  left: 50%;
  transform: translateX(-50%);
  font-size: 40px;
  font-weight: bold;
  color: #222;
  z-index: 10;
  }

#startUI {
  position: absolute;
  top: 120px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 10;
  }

#goalLine {
  position: absolute;
  left: 320px; 
  top: 0;
  width: 4px;
  height: 100vh;
  background: repeating-linear-gradient(
    to bottom,
    #00bcd4,
    #00bcd4 10px,
    transparent 10px,
    transparent 20px
  );
  z-index: 5;
  opacity: 0.8;
  }

#result {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  font-size: 60px;
  font-weight: bold;
  color: #222;
  background: rgba(255,255,255,0.9);
  padding: 20px 40px;
  border-radius: 20px;
  display: none;
  z-index: 999;
  text-align: center;
  }