html {
  -ms-touch-action: none;
}

body,
canvas,
div {
  display: block;
  outline: none;
  -webkit-tap-highlight-color: rgba(0, 0, 0, 0);
  user-select: none;
  -moz-user-select: none;
  -webkit-user-select: none;
  -ms-user-select: none;
}

html,
body {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  padding: 0;
  border: 0;
  margin: 0;
  overflow: hidden;
  cursor: default;
  color: #ddd;
  background: #050505;
  text-align: center;
  font-family: Helvetica, Verdana, Arial, "Microsoft YaHei", sans-serif;
}

#GameDiv {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 100%;
  height: 100%;
  transform: translate(-50%, -50%);
  margin: 0;
  overflow: hidden;
}

#GameCanvas {
  width: 100%;
  height: 100%;
  background: #000;
  touch-action: none;
}

#status {
  position: fixed;
  left: 12px;
  top: 12px;
  z-index: 10;
  max-width: min(680px, calc(100vw - 24px));
  padding: 8px 10px;
  border: 1px solid rgba(255, 218, 120, 0.28);
  border-radius: 6px;
  background: rgba(0, 0, 0, 0.72);
  color: #ffe7ba;
  font-size: 12px;
  line-height: 1.5;
  text-align: left;
  white-space: pre-wrap;
}

#activationGate {
  position: fixed;
  inset: 0;
  z-index: 10000;
  display: grid;
  place-items: center;
  padding: 24px;
  background:
    radial-gradient(circle at 50% 18%, rgba(154, 116, 43, 0.28), transparent 34%),
    rgba(3, 3, 3, 0.88);
}

.activation-card {
  width: min(360px, calc(100vw - 48px));
  padding: 24px;
  border: 1px solid rgba(255, 218, 120, 0.34);
  border-radius: 8px;
  background: rgba(17, 15, 11, 0.94);
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.55);
  text-align: left;
}

.activation-title {
  color: #ffe3a3;
  font-size: 28px;
  font-weight: 700;
  letter-spacing: 0;
  text-align: center;
}

.activation-subtitle {
  margin: 8px 0 18px;
  color: #d8c39a;
  font-size: 14px;
  text-align: center;
}

#activationForm {
  display: grid;
  gap: 12px;
}

#activationCode,
#activationSubmit {
  width: 100%;
  border-radius: 6px;
  font: inherit;
}

#activationCode {
  height: 44px;
  border: 1px solid rgba(255, 218, 120, 0.32);
  padding: 0 12px;
  background: rgba(0, 0, 0, 0.48);
  color: #fff4d6;
}

#activationCode:focus {
  border-color: #ffd36f;
}

#activationSubmit {
  height: 44px;
  border: 1px solid rgba(255, 218, 120, 0.55);
  background: linear-gradient(#8d6420, #5d3d12);
  color: #fff2c8;
  cursor: pointer;
}

#activationSubmit:disabled {
  cursor: default;
  opacity: 0.62;
}

.activation-message {
  min-height: 20px;
  margin-top: 12px;
  color: #ffcf86;
  font-size: 13px;
  line-height: 1.5;
  text-align: center;
}
