
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: #000000;
  /* background-image: url('bg.jpg'); */
  /* background-size: 1068px 911px; */
  background-repeat: no-repeat;
  background-position: center center;
  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: 100vw;
  height: 100vh;
  background-color: #000000;
  background-size: cover;
  background-repeat: no-repeat;
  background-position: center center;
  display: block;
}
/* .pc-style {
  background: #171717 url(./splash-mobile.jpg) no-repeat center;
  background-size: contain;
}
 .mobile-style {
  background: #171717 url(./splash-mobile.jpg) no-repeat center center;
  background-size: cover;
} */


/* .pc-style,
.mobile-style {
  background-color: white;
} */


.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 white;;
  border-top: 4px solid transparent;
  border-radius: 50%;
  animation: spin 1s linear infinite;
  margin-bottom: 4px; /* 缩小间距适配正方形布局 */
}


.splash-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 22px;
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
}

.splash-logo {
  width: 274px;
  /* max-width: 460px;
  min-width: 240px; */
  height: 216px;
}

.progress-bar {
  width: 45vw;
  max-width: 360px;
  min-width: 220px;
  height: 10px;
  background-image: url('line_01.adf5c.png');
  background-repeat: no-repeat;
  background-size: 100% 100%;
  overflow: hidden;
}

.progress-bar span {
  display: block;
  height: 100%;
  width: 0%;
  background-image: url('line_02.9d473.png');
  background-repeat: no-repeat;
  background-size: 100% 100%;
  transition: width 0.2s ease-out;
}

@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;}
}
