html,
body {
  width: 100%;
  height: 100%;
  margin: 0;
  overflow: hidden;
  overscroll-behavior: none;
  background: #183b36;
  font-family: -apple-system, BlinkMacSystemFont, "Microsoft YaHei", sans-serif;
}

body {
  display: grid;
  place-items: center;
  touch-action: none;
}

#game-shell {
  position: relative;
  width: min(100vw, 480px);
  height: 100dvh;
  max-height: 900px;
  overflow: hidden;
  background: #83b8a7;
  box-shadow: 0 0 60px rgba(0, 0, 0, 0.28);
}

#game-canvas {
  display: block;
  width: 100%;
  height: 100%;
  touch-action: none;
}

.login-panel {
  position: absolute;
  inset: 0;
  z-index: 10;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 12px;
  padding: 36px;
  color: #203e3b;
  background:
    radial-gradient(circle at 78% 18%, #f1d36b 0 8%, transparent 8.5%),
    linear-gradient(180deg, #f1edc9 0 40%, #86b9a8 40% 100%);
  transition: opacity 0.2s ease, visibility 0.2s ease;
}

.login-panel.hidden {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.brand {
  color: #bf683b;
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0.13em;
}

.login-panel h1 {
  margin: 0;
  font-size: 42px;
}

.login-panel p {
  margin: 0 0 12px;
  color: rgba(32, 62, 59, 0.62);
}

.login-panel label {
  display: grid;
  gap: 7px;
  color: #47645c;
  font-size: 13px;
  font-weight: 700;
}

.login-panel input {
  height: 44px;
  padding: 0 14px;
  border: 1px solid rgba(32, 62, 59, 0.16);
  border-radius: 13px;
  outline: none;
  background: rgba(255, 255, 255, 0.78);
  color: #203e3b;
  font: inherit;
}

.login-panel button {
  height: 48px;
  margin-top: 6px;
  border: 0;
  border-radius: 15px;
  background: #e8884c;
  color: #fff8e8;
  font: inherit;
  font-size: 16px;
  font-weight: 800;
  cursor: pointer;
}

.login-panel button:disabled {
  opacity: 0.58;
}

.error {
  min-height: 20px;
  color: #ad463d;
  font-size: 13px;
}
