body { padding: 0; margin: 0 }
#unity-container { position: absolute }
#unity-container.unity-mobile { position: fixed; width: 100%; height: 100% }
#unity-canvas { opacity: 0; background: #231F20 }
.unity-mobile #unity-canvas { width: 100%; height: 100% }
#unity-footer { position: relative }
.unity-mobile #unity-footer { display: none }
#unity-warning { position: absolute; left: 50%; top: 5%; transform: translate(-50%); background: white; display: none }
#unity-background {
  position: absolute;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background-image: url('background.jpg');
  background-repeat: no-repeat;
  background-position: center;
  background-size: cover;
  background-color: #000;
}

#dialog-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: rgba(0, 0, 0, 0.5);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 9999;
}

#dialog-box {
  position: relative;
  background: #fff;
  color: #333;
  padding: 1rem 1rem;
  border-radius: 12px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.3);
  max-width: 80%;
  text-align: center;
  font-size: clamp(1.4rem, 2vw, 2.2rem);
}

#dialog-box p {
  margin-top: 64px;
}

#dialog-box .action-btn {
  margin-top: 1rem;
  padding: 0.5rem 0.5rem;
  background-color: #007bff;
  border: none;
  color: white;
  border-radius: 6px;
  cursor: pointer;
  width: 200px;
  font-size: clamp(1.2rem, 1.8vw, 2rem);
}

#dialog-box .action-btn:hover {
  background-color: #0056b3;
}

#dialog-box .close-btn {
  position: absolute;
  top: 12px;
  right: 12px;
  background-color: #fff;
  border: 2px solid #333;
  color: #333;
  border-radius: 6px;
  width: 40px;
  height: 40px;
  font-size: 2rem;
  font-weight: bold;
  cursor: pointer;
  line-height: 1;
  padding: 0;
  transition: background-color 0.2s ease, color 0.2s ease;
}

#dialog-box .close-btn:hover {
  background-color: #f0f0f0;
  color: #000;
}
