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;
  -khtml-user-select: none;
}

input::-webkit-outer-spin-button,
input::-webkit-inner-spin-button {
  -webkit-appearance: none;
  margin: 0;
}

body {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  padding: 0;
  border: 0;
  margin: 0;
  cursor: default;
  color: #c9e8fb;
  background-color: #030a1a;
  text-align: center;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

#Cocos2dGameContainer {
  position: absolute;
  margin: 0;
  left: 0px;
  top: 0px;
  display: -webkit-box;
  -webkit-box-orient: horizontal;
  -webkit-box-align: center;
  -webkit-box-pack: center;
}

canvas {
  background-color: rgba(0, 0, 0, 0);
}

#splash {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: radial-gradient(circle at 50% 40%, #08214d 0%, #030d22 60%, #020713 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 9999;
}

.kc-loading-wrap {
  width: 86%;
  max-width: 420px;
  margin: auto;
  padding: 30px 20px;
  box-sizing: border-box;
  text-align: center;
}

.kc-loading-logo {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  margin-bottom: 8px;
}

.kc-badge {
  background: linear-gradient(135deg, #1be0ff 0%, #0077ff 100%);
  color: #fff;
  font-size: 26px;
  font-weight: 900;
  padding: 4px 14px;
  border-radius: 8px;
  letter-spacing: 2px;
  box-shadow: 0 0 18px rgba(27, 224, 255, 0.6);
}

.kc-title {
  color: #e5f6ff;
  font-size: 24px;
  font-weight: 700;
  letter-spacing: 3px;
  text-shadow: 0 0 12px rgba(27, 224, 255, 0.8);
}

.kc-loading-sub {
  color: #6593b8;
  font-size: 13px;
  letter-spacing: 1.5px;
  margin-bottom: 32px;
}

.progress-bar {
  position: relative;
  width: 100%;
  height: 8px;
  border-radius: 10px;
  background: rgba(8, 28, 62, 0.9);
  padding: 2px;
  box-shadow: inset 0 1px 4px rgba(0, 0, 0, 0.8), 0 0 12px rgba(27, 224, 255, 0.35);
  border: 1px solid rgba(27, 224, 255, 0.4);
  box-sizing: border-box;
  overflow: hidden;
}

.progress-bar span {
  display: block;
  height: 100%;
  border-radius: 6px;
  transition: width 0.3s ease-out;
  background: linear-gradient(90deg, #0077ff 0%, #1be0ff 70%, #f6c552 100%);
  box-shadow: 0 0 10px #1be0ff;
}

.stripes span {
  background-size: 24px 24px;
  background-image: linear-gradient(
    135deg,
    rgba(255, 255, 255, 0.25) 25%,
    transparent 25%,
    transparent 50%,
    rgba(255, 255, 255, 0.25) 50%,
    rgba(255, 255, 255, 0.25) 75%,
    transparent 75%,
    transparent
  );
  animation: animate-stripes 1.2s linear infinite;
}

@keyframes animate-stripes {
  0% { background-position: 0 0; }
  100% { background-position: 48px 0; }
}

.kc-loading-status {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin-top: 14px;
  font-size: 13px;
  color: #8bb3d6;
}

.kc-status-dot {
  width: 6px;
  height: 6px;
  background-color: #1be0ff;
  border-radius: 50%;
  box-shadow: 0 0 8px #1be0ff;
  animation: pulse-dot 1.2s infinite alternate;
}

@keyframes pulse-dot {
  0% { opacity: 0.3; transform: scale(0.8); }
  100% { opacity: 1; transform: scale(1.2); }
}

.kc-status-pct {
  color: #1be0ff;
  font-weight: 700;
  font-family: monospace, sans-serif;
}
