html,
body {
  width: 100%;
  height: 100%;
  margin: 0;
  overflow: hidden;
  background: #111;
}

#GameDiv {
  position: fixed;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}

#GameCanvas {
  width: 100vw;
  height: 100vh;
  outline: none;
  background: #000;
}

#xhdj-login-panel {
  position: fixed;
  left: 50%;
  bottom: clamp(190px, 21vh, 260px);
  z-index: 25;
  width: min(360px, calc(100vw - 96px));
  transform: translateX(-50%);
  pointer-events: none;
  font-family: Arial, "Microsoft YaHei", sans-serif;
}

#xhdj-login-panel.xhdj-login-panel-hidden {
  display: none;
}

.xhdj-login-card {
  display: grid;
  gap: 8px;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  pointer-events: auto;
  backdrop-filter: none;
}

.xhdj-login-input {
  width: 100%;
  height: 34px;
  box-sizing: border-box;
  border: 1px solid rgba(234, 205, 142, 0.58);
  border-radius: 6px;
  padding: 0 10px;
  outline: none;
  background: rgba(8, 15, 26, 0.38);
  color: #fff7df;
  font-size: 14px;
  box-shadow: inset 0 0 0 1px rgba(255, 244, 201, 0.08), 0 2px 8px rgba(0, 0, 0, 0.18);
  backdrop-filter: blur(2px);
}

.xhdj-login-input::placeholder {
  color: rgba(255, 247, 223, 0.68);
}

.xhdj-login-input:focus {
  border-color: #f0c35c;
  background: rgba(10, 18, 30, 0.52);
  box-shadow: 0 0 0 2px rgba(240, 195, 92, 0.22);
}

.xhdj-login-message {
  min-height: 18px;
  color: #ffd4c8;
  font-size: 13px;
  font-weight: 700;
  line-height: 18px;
  text-align: center;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.72);
}

@media (max-height: 740px) {
  #xhdj-login-panel {
    bottom: 142px;
  }

  .xhdj-login-card {
    grid-template-columns: 1fr 1fr;
  }

  .xhdj-login-message {
    grid-column: 1 / -1;
  }
}
