
html {
  -ms-touch-action: none;
}

body, canvas, div {
  display: block;
  outline: none;
  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);
}

#Cocos2dGameContainer {
  position: absolute;
  margin: 0;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
}

canvas {
  width: 100% !important;
  height: 100% !important;
  background-color: rgba(0, 0, 0, 0);
  display: block;
  position: absolute;
}

html, body {
  width: 100%;
  height: 100%;
  height: -webkit-fill-available;
  margin: 0;
  padding: 0;
  background-color: black;
  overflow: hidden;
  padding-top: env(safe-area-inset-top, 0);
  padding-bottom: env(safe-area-inset-bottom, 0);
  padding-left: env(safe-area-inset-left, 0);
  padding-right: env(safe-area-inset-right, 0);
}
.selector{ 
  /* 利用css fallback机制，下面的代码可以兼容两种版本 */ 
  padding-top: env(safe-area-inset-top); 
  padding-top: constant(safe-area-inset-top); 
 }
a:link, a:visited {
  color: #666;
}

a:active, a:hover {
  color: #666;
}

p.header {
  font-size: small;
}

p.footer {
  font-size: x-small;
}


#splash {
  position: fixed;
  top: 0; left: 0;
  width: 100%; height: 100%;
  background-color: black;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}
.pc-style {
  background: #171717 url(./splash-mobile-k99.9b6d4.jpg) no-repeat center;
  background-size: contain;
}

.mobile-style {
  background: #171717 url(./splash-mobile-k99.9b6d4.jpg) no-repeat center center;
  background-size: cover;
}

.spinner {
  width: 100px;
  height: 100px;
  background: rgba(0, 0, 0, 0.6); /* 黑底 */
  border-radius: 12px; /* 圆角方形 */
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  margin-bottom: 10px;
  padding: 0; /* 移除 padding，保持正方形 */
}

.circle {
  width: 40px;
  height: 40px;
  border: 4px solid #f7cf56;
  border-top: 4px solid transparent;
  border-radius: 50%;
  animation: spin 1s linear infinite;
  margin-bottom: 4px; /* 缩小间距适配正方形布局 */
}
.loading-text {
  color: #f7cf56;;
  font-size: 14px;
  line-height: 1;
  margin-top: 10px;
}
.progress-bar {
  width: 50%;
  height: 8px;
  background: #333;
  border-radius: 4px;
  overflow: hidden;
}

.progress-bar span {
  display: block;
  height: 100%;
  width: 0%;
  background: #00ffcc;
  transition: width 0.3s;
}

@keyframes spin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}


.stripes span {
    background-size: 30px 30px;
    background-image: linear-gradient(135deg, rgba(255, 255, 255, .15) 25%, transparent 25%,
                        transparent 50%, rgba(255, 255, 255, .15) 50%, rgba(255, 255, 255, .15) 75%,
                        transparent 75%, transparent);            
    
    animation: animate-stripes 1s linear infinite;             
}

@keyframes animate-stripes {
    0% {background-position: 0 0;} 100% {background-position: 60px 0;}
}
