html {
  touch-action: none;
  -ms-touch-action: none;
}

.custom-publication-info {
  position: fixed;
  left: 50%;
  bottom: calc(14px + var(--safe-bottom, 0px));
  z-index: 1000;
  width: min(92vw, 720px);
  transform: translateX(-50%);
  padding: 8px 12px;
  border-radius: 8px;
  color: rgba(255, 255, 255, 0.92);
  /* background: rgba(0, 0, 0, 0.55); */
  font-size: clamp(11px, 2.7vw, 15px);
  line-height: 1.45;
  text-align: center;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.9);
  pointer-events: none;
}

.recharge-center {
  position: fixed;
  inset: 0;
  z-index: 2000;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.recharge-center.show {
  display: flex;
}

.recharge-mask {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.65);
}

.recharge-dialog {
  position: relative;
  width: min(92vw, 420px);
  padding: 22px;
  border: 3px solid #26384f;
  border-radius: 16px;
  color: #26384f;
  background: #fff8e6;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.35);
  text-align: left;
}

.recharge-dialog h2 {
  margin: 0 0 18px;
  text-align: center;
  font-size: 24px;
}

.recharge-close {
  position: absolute;
  top: 8px;
  right: 10px;
  border: 0;
  background: transparent;
  color: #26384f;
  font-size: 28px;
  line-height: 1;
  cursor: pointer;
}

.recharge-field {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin: 12px 0;
  font-size: 16px;
}

.recharge-field strong {
  color: #e56b00;
}

.recharge-input-field input {
  width: 150px;
  padding: 8px 10px;
  border: 2px solid #26384f;
  border-radius: 8px;
  color: #26384f;
  background: #fff;
  font-size: 18px;
  text-align: right;
}

.recharge-rate {
  margin: 10px 0 0;
  color: #6b7280;
  text-align: center;
}

.recharge-error {
  min-height: 22px;
  margin: 10px 0;
  color: #c62828;
  text-align: center;
  font-size: 14px;
}

.recharge-pay-btn {
  width: 100%;
  padding: 12px;
  border: 0;
  border-radius: 10px;
  color: #fff;
  background: linear-gradient(#ff9a3d, #e56b00);
  font-size: 18px;
  font-weight: bold;
  cursor: pointer;
}

.recharge-pay-btn:disabled {
  cursor: wait;
  opacity: 0.65;
}

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;
  -khtml-user-select: none;
  -webkit-tap-highlight-color: rgba(0, 0, 0, 0);
}

/* Remove spin of input type number */
input::-webkit-outer-spin-button,
input::-webkit-inner-spin-button {
    /* display: none; <- Crashes Chrome on hover */
    -webkit-appearance: none;
    margin: 0; /* <-- Apparently some margin are still there even though it's hidden */
}

body {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  padding: 0;
  border: 0;
  margin: 0;

  cursor: default;
  color: #888;
  background-color: #333;

  text-align: center;
  font-family: Helvetica, Verdana, Arial, sans-serif;

  display: flex;
  flex-direction: column;
}

canvas {
  background-color: rgba(0, 0, 0, 0);
}

#GameDiv, #Cocos3dGameContainer, #GameCanvas {
  width: 100%;
  height: 100%;
}

:root {
  --safe-top: env(safe-area-inset-top);
  --safe-right: env(safe-area-inset-right);
  --safe-bottom: env(safe-area-inset-bottom);
  --safe-left: env(safe-area-inset-left);
}
