* {
  box-sizing: border-box;
  -webkit-touch-callout: none !important;
  -webkit-user-select: none !important;
  user-select: none !important;
  -webkit-tap-highlight-color: transparent !important;
  outline: none !important;
}

html, body {
  width: 100%;
  height: 100%;
  margin: 0;
  padding: 0;
  overflow: hidden;
  background-color: #000;
  position: fixed;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  -webkit-tap-highlight-color: transparent !important;
}

#unity-container {
  width: 100vw;
  height: 100vh;
  position: fixed;
  top: 0;
  left: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #000;
  -webkit-tap-highlight-color: transparent !important;
}

#unity-canvas {
  width: 100%;
  height: 100%;
  display: block;
  background: #000;
  touch-action: none;
  -webkit-tap-highlight-color: transparent !important;
  outline: none !important;
}

#unity-loading-bar {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  z-index: 10;
}

#unity-logo {
  width: 154px;
  height: 130px;
  background: url('unity-logo-dark.png') no-repeat center;
  background-size: contain;
}

#unity-progress-bar-empty {
  width: 220px;
  height: 16px;
  margin-top: 15px;
  background: rgba(255, 255, 255, 0.2);
  border-radius: 8px;
  overflow: hidden;
  box-shadow: inset 0 1px 3px rgba(0,0,0,0.5);
}

#unity-progress-bar-full {
  width: 0%;
  height: 100%;
  background: linear-gradient(90deg, #ff9900, #ff4400);
  border-radius: 8px;
  transition: width 0.2s ease-out;
}

#unity-loading-text {
  color: #fff;
  font-size: 14px;
  margin-top: 10px;
  text-shadow: 0 1px 3px rgba(0,0,0,0.8);
  font-weight: 500;
}

#unity-warning {
  position: absolute;
  left: 50%;
  top: 5%;
  transform: translate(-50%);
  background: rgba(255, 255, 255, 0.95);
  padding: 10px 20px;
  border-radius: 6px;
  display: none;
  z-index: 9999;
  font-size: 13px;
  color: #333;
}

/* Portrait Orientation Prompt */
#rotate-overlay {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(10, 10, 15, 0.96);
  color: #ffffff;
  z-index: 99999;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 24px;
}

.rotate-phone {
  position: relative;
  width: 80px;
  height: 80px;
  margin-bottom: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.phone-icon {
  width: 46px;
  height: 46px;
  animation: rotatePhone 2.2s ease-in-out infinite;
  transform-origin: center;
}

.arrow-icon {
  position: absolute;
  width: 74px;
  height: 74px;
  color: #ff9900;
  opacity: 0.8;
}

@keyframes rotatePhone {
  0% { transform: rotate(0deg); }
  35% { transform: rotate(-90deg); }
  65% { transform: rotate(-90deg); }
  100% { transform: rotate(0deg); }
}

.rotate-title {
  font-size: 20px;
  font-weight: bold;
  margin-bottom: 8px;
  letter-spacing: 0.5px;
}

.rotate-subtitle {
  font-size: 14px;
  color: #aaa;
  max-width: 290px;
  line-height: 1.4;
}

/* Show rotate overlay on mobile when in portrait mode */
@media screen and (orientation: portrait) and (max-width: 900px) {
  #rotate-overlay {
    display: flex;
  }
}
