/**
* @description: 
* nickName: Lei钟意
* email: lxfleixiaofeng@163.com
* wechat: ConsoleWarn
* 尊重原创，请保留版权！
* @author Lei Xiaofeng
* @date 2023/05/10
*/
html,
body {
  background-color: #111;
  color: #eee;
  font-family: "楷体", "黑体", "宋体";
  overflow: hidden;
  margin: 0;
  padding: 0;
  border: 0;
  box-sizing: border-box;
  text-decoration: none;
  user-select: none;
  height: 100%;
  -webkit-tap-highlight-color: transparent;
}

.text-button {
  display: flex;
  align-content: center;
  color: #444;
  border: none;
  cursor: pointer;
  height: min-content;
  width: min-content;
  text-align: center;
  font-size: 0.27rem;
  transition: 0.125s;
}

.text-button .text {
  margin-left: 0.4rem;
}

.center-content {
  height: calc(100% - 0.5rem);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 0.25rem;
}

#top {
  display: flex;
  flex-direction: column;
}

#top .logo {
  font-weight: normal;
  text-align: left;
  display: flex;
  justify-content: space-between;
}

#top .logo .text {
  position: relative;
  font-size: 0.7rem;
}

#top .logo .action-button {
  font-size: 0.24rem;
}

#top .logo .action-button #instructions,
#top .logo .action-button #share {
  background-color: #FFFFFF;
  border-radius: 5px;
  color: #333333;
  padding: 7px 12px;
  cursor: pointer;
}

#top .logo .action-button #instructions {
  margin-bottom: 0.2rem;
}

.score {
  text-align: center;
  width: 100%;
  z-index: 10;
  margin-top: 0.7rem;
}

.score .count {
  width: min-content;
  transition: all 0.1s cubic-bezier(0.5, 0.35, 0.15, 1.4);
  transform: scale(1);
  margin: 0 auto;
  font-size: 1.5rem;
}

.score .subtitle {
  font-size: 0.5rem;
  color: #444;
  line-height: 0.7rem;
}

#center .wooden-fish {
  transition: all 0.1s cubic-bezier(0.5, 0.35, 0.15, 1.4);
  transform: scale(1);
  background-image: url(../images/muyu.webp);
  background-size: 100% 100%;
  cursor: pointer;
}

#center .wooden-hammer {
  position: absolute;
  cursor: pointer;
  width: 1.36rem;
  height: 0.54rem;
  background-image: url(../images/hammer.png);
  background-size: 100% 100%;
}

#center .hammer-start {
  animation: mymuyu 0.1s;
}

#bottom {
  color: #444;
  font-size: 0.2rem;
  padding: 0 0.08rem;
  position: relative;
  text-align: center;
}

#bottom .key-tips {
  display: flex;
  justify-content: center;
  align-items: center;
}

#bottom .key-tips key {
  color: #111;
  background-color: #444;
  margin: 0.09rem 0.12rem;
  border-radius: 0.09rem;
  padding: 0.05rem 0.13rem;
  line-height: 0.2rem;
}

#bottom .left-right {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 0.24rem;
}

#bottom .left {
  font-size: 0.2rem;
}

#bottom .left:hover {
  color: #eee;
}

#bottom .right a {
  width: 100%;
}

#bottom .text-button:hover {
  color: #eee;
}

#bottom .immersion-switch {
  transform: scale(0.8);
}

#bottom .wish-diy {
  cursor: pointer;
  margin: 0 0.17rem;
  font-size: 0.2rem;
  text-decoration: underline;
}

.auto-click {
  text-decoration: underline;
  padding: 0.08rem;
  border: 1px solid transparent;
  cursor: pointer;
}

.auto-click.confirm {
  text-decoration: none;
  color: #ffffff;
  border: 1px solid #ffffff;
  border-radius: 0.06rem;
}

.subtitle-countTip {
  height: 0.6rem;
  line-height: 0.6rem;
  color: #ffffff;
  position: absolute;
  left: 0;
  width: auto;
  white-space: nowrap;
  font-size: 0.34rem;
  animation: countTipMove 1s;
  opacity: 0;
}

.diy-main .diy-item {
  margin-bottom: 0.24rem;
}

.diy-main .diy-item:last-child {
  margin-bottom: 0;
}

.diy-main .diy-item #diyContent {
  width: 100%;
}

@keyframes countTipMove {
  from {
    top: -0.68rem;
    opacity: 1;
  }

  to {
    top: -1.37rem;
    opacity: 0;
  }
}

.center-content #center {
  position: relative;
  display: flex;
  align-items: center;
  margin: 0 auto;
}

#loading {
  position: absolute;
  left: 0;
  bottom: 0;
  width: 100%;
  height: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;
  background: rgba(0, 0, 0, 0.8);
  z-index: 999;
  color: #eee;
  font-size: 0.34rem;
}

#loading .loading-text {
  width: 100%;
  margin-top: 20px;
}

@media screen and (min-width: 640px) {
  #top .logo .action-button #instructions,
  #top .logo .action-button #share {
    display: inline-block;
    margin: 0 10px 0 0;
  }

  #center .wooden-fish {
    width: 2rem;
    height: 1.64rem;
  }

  #center .wooden-hammer {
    top: -0.26rem;
    right: -0.37rem;
  }
}

@media screen and (max-width: 640px) {
  #center .wooden-fish {
    width: 2.5rem;
    height: 2.05rem;
  }

  #center .wooden-hammer {
    top: -0.13rem;
    right: -0.37rem;
  }
}

@keyframes mymuyu {
	from {
		transform: rotate(0);
	}

	to {
		transform: rotate(30deg);
		transform-origin: 100% 100%;
	}
}

.progress-bar {
  width: 50%;
  height: 8px;
  background-color: rgba(255, 255, 255, 0.1);
  border-radius: 3px;
  overflow: hidden;
  position: relative;
  box-shadow: 0 0 10px rgba(0, 191, 255, 0.5);
  margin: 10px auto 0 auto;
}

.progress-bar-inner {
  width: 100%;
  height: 100%;
  background-color: #FFFFFF;
  border-radius: 3px;
  position: absolute;
  top: 0;
  left: 0;
  overflow: hidden;
}

.progress-bar-inner::before {
  content: "";
  width: 25%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(11, 207, 21, 0.8), transparent);
  position: absolute;
  top: 0;
  left: -25%;
  animation: loadingPulse 1.5s infinite ease-in-out;
}

@keyframes loadingPulse {
  0% { left: -25%; }
  50% { left: 50%; }
  100% { left: 100%; }
}