* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  user-select: none;
  -webkit-user-select: none;
}

body, html {
  width: 100%;
  height: 100%;
  overflow: hidden;
  background: #000;
  font-family: Arial, "Helvetica Neue", Helvetica, sans-serif;
}

#GameWrapper {
  position: fixed;
  inset: 0;
  width: 100vw;
  height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #000;
  overflow: hidden;
}

#Game {
  position: relative;
  width: min(100vw, calc(100vh * (16 / 9)));
  height: min(100vh, calc(100vw * (9 / 16)));
  aspect-ratio: 16 / 9;
}

#egt-canvas {
  width: 100%;
  height: 100%;
  display: block;
}

/* Authentic EGT Device Rotation Screen for Mobile Portrait */
#RotateScreenOverlay {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 9999999;
  background: #000000 !important;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  color: #ffffff;
  font-family: Arial, "Helvetica Neue", Helvetica, sans-serif;
  text-align: center;
  padding: 24px;
}

@media screen and (orientation: portrait), screen and (max-aspect-ratio: 1/1) {
  #RotateScreenOverlay {
    display: flex !important;
  }
}

.rotate-close-btn {
  position: absolute;
  top: 16px;
  right: 20px;
  width: 44px;
  height: 44px;
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 215, 0, 0.4);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
  color: #ffd700;
  cursor: pointer;
}

.rotate-center-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.rotate-svg-container {
  margin-bottom: 28px;
}

.rotate-title {
  font-size: 20px;
  font-weight: 900;
  color: #ffd700;
  letter-spacing: 1.5px;
  margin-bottom: 8px;
}

.rotate-subtitle {
  font-size: 13px;
  font-weight: 600;
  color: #a0aec0;
  letter-spacing: 0.5px;
}
