/**
* @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: "GEETYPE";
  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;
}

:root {
  --mokugyo-surface: rgba(255, 248, 240, 0.96);
  --mokugyo-surface-soft: rgba(255, 255, 255, 0.08);
  --mokugyo-surface-border: rgba(255, 255, 255, 0.12);
  --mokugyo-ink: #1f160f;
  --mokugyo-ink-soft: rgba(31, 22, 15, 0.68);
  --mokugyo-accent: #f4d5b4;
  --mokugyo-accent-strong: #f2b36d;
  --mokugyo-shadow: 0 18px 48px rgba(0, 0, 0, 0.28);
}

.textButton {
  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;
}

.textButton .text {
  margin-left: 0.4rem;
}

.centerContent {
  height: calc(100% - 0.5rem);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 0.25rem;
}

.buttonRow {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
}

.mokugyoTopAction {
  position: fixed;
  top: 18px;
  right: 18px;
  z-index: 20;
  appearance: none;
  border: 1px solid var(--mokugyo-surface-border);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  color: #f7efe8;
  padding: 10px 16px;
  font-family: inherit;
  font-size: 13px;
  line-height: 1;
  cursor: pointer;
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.22);
}

.mokugyoTopAction:hover {
  border-color: rgba(255, 255, 255, 0.22);
  background: rgba(255, 255, 255, 0.12);
}

.mokugyoButton {
  appearance: none;
  border: 1px solid var(--mokugyo-surface-border);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.12), rgba(255, 255, 255, 0.05));
  color: #f7efe8;
  border-radius: 999px;
  padding: 11px 18px;
  min-width: 120px;
  font-family: inherit;
  font-size: 14px;
  line-height: 1;
  font-weight: 500;
  cursor: pointer;
  transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease, background 0.18s ease;
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.22);
}

.mokugyoButton:hover {
  transform: translateY(-1px);
  border-color: rgba(255, 255, 255, 0.22);
  box-shadow: 0 14px 30px rgba(0, 0, 0, 0.28);
}

.mokugyoButton:active {
  transform: translateY(0);
}

.mokugyoButtonPrimary {
  background: linear-gradient(180deg, #f7d8b2, #f0bc7d);
  border-color: rgba(255, 214, 168, 0.72);
  color: #2b1a0c;
}

.mokugyoButtonPrimary:hover {
  border-color: rgba(255, 225, 194, 0.95);
}

.mokugyoButtonDark {
  background: rgba(255, 255, 255, 0.05);
  border-color: rgba(255, 255, 255, 0.12);
  color: #f7efe8;
}

.mokugyoButtonDark:hover {
  border-color: rgba(255, 255, 255, 0.22);
}

.mokugyoButtonGhost {
  background: rgba(63, 43, 27, 0.08);
  border-color: rgba(80, 56, 32, 0.12);
  color: #2b1a0c;
}

.mokugyoDialog {
  border: none;
  border-radius: 28px;
  padding: 0;
  width: min(460px, calc(100% - 32px));
  overflow: hidden;
  box-shadow: var(--mokugyo-shadow);
  background: transparent;
}

.mokugyoDialog::backdrop {
  background: rgba(12, 9, 7, 0.6);
  backdrop-filter: blur(10px);
}

.mokugyoDialogCard {
  padding: 24px;
  background: var(--mokugyo-surface);
  color: var(--mokugyo-ink);
}

.mokugyoDialogTitle {
  font-size: 22px;
  line-height: 1.2;
  font-weight: 700;
}

.mokugyoDialogDescription {
  margin-top: 12px;
  color: var(--mokugyo-ink-soft);
  font-size: 14px;
  line-height: 1.7;
}

.mokugyoForm {
  margin-top: 18px;
}

.mokugyoField {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-top: 14px;
}

.mokugyoFieldLabel {
  font-size: 14px;
  line-height: 1.35;
  font-weight: 600;
  color: #2d1c11;
}

.mokugyoFieldHint {
  margin-top: 16px;
  color: rgba(31, 22, 15, 0.58);
  font-size: 12px;
  line-height: 1.7;
}

.mokugyoInput,
.mokugyoTextarea {
  width: 100%;
  box-sizing: border-box;
  border-radius: 18px;
  border: 1px solid rgba(80, 56, 32, 0.14);
  background: rgba(255, 255, 255, 0.78);
  color: #21150d;
  font: inherit;
  font-size: 14px;
  line-height: 1.5;
  padding: 13px 15px;
  outline: none;
  transition: border-color 0.18s ease, box-shadow 0.18s ease, background 0.18s ease;
}

.mokugyoTextarea {
  min-height: 108px;
  resize: vertical;
}

.mokugyoInput:focus,
.mokugyoTextarea:focus {
  border-color: rgba(219, 145, 68, 0.72);
  box-shadow: 0 0 0 4px rgba(242, 179, 109, 0.18);
  background: #fffdfb;
}

.mokugyoDialogActions {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  margin-top: 20px;
}

.mokugyoPreviewWatermarkLayer {
  position: fixed;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
  z-index: 2000;
  opacity: 1;
}

.mokugyoPreviewWatermarkGrid {
  position: absolute;
  left: 50%;
  top: 50%;
  display: flex;
  flex-direction: column;
  gap: 34px;
  transform: translate(-50%, -50%) rotate(-45deg);
}

.mokugyoPreviewWatermarkText {
  width: 300vw;
  color: rgba(255, 255, 255, 0.08);
  font-size: clamp(52px, 9vw, 112px);
  letter-spacing: 0.22em;
  white-space: nowrap;
  line-height: 1;
  text-align: center;
}

#top {
  display: flex;
  flex-direction: column;
}

#top .logo {
  font-weight: normal;
  cursor: pointer;
  text-align: left;
}

#top .logo .text {
  position: relative;
  font-size: 0.5rem;
}

#center {
  display: flex;
  align-items: center;
}

.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: 0.88rem;
}

.score .subtitle {
  font-size: 0.35rem;
  color: #ccc;
  font-style: italic;
  text-align: center;
  margin-top: 0.2rem;
}

#center {
  display: flex;
  justify-content: center;
}

#center .woodenFish {
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.1s cubic-bezier(0.5, 0.35, 0.15, 1.4);
  transform: scale(1);
}

#bottom {
  color: #444;
  font-size: 0.2rem;
  padding: 0 0.08rem;
  position: relative;
  text-align: center;
}

#bottom .tips {
  display: flex;
  justify-content: center;
  align-items: center;
  margin: 4px;
}

#bottom .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 .leftRight {
  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 .textButton:hover {
  color: #eee;
}

.autoClick {
  margin-left: 0.17rem;
  text-decoration: underline;
  padding: 0.08rem;
  border: 1px solid transparent;
  cursor: pointer;
}

.autoClick.confirm {
  text-decoration: none;
  color: #ffffff;
  border: 1px solid #ffffff;
  border-radius: 0.06rem;
}

.subtitleCountTip {
  height: 0.6rem;
  line-height: 0.6rem;
  color: #ffffff;
  position: absolute;
  left: 50%;
  font-size: 0.27rem;
  animation: countTipMove 1s;
  opacity: 0;
}

@keyframes countTipMove {
  from {
    top: -0.68rem;
    opacity: 1;
  }
  to {
    top: -1.37rem;
    opacity: 0;
  }
}

.centerContent #center {
  position: relative;
}

@font-face {
  font-family: GEETYPE;
  src: url(/mokugyo/static/asset/GEETYPE.ttf);
}

#loading {
  position: absolute;
  left: 0;
  bottom: 0;
  width: 100%;
  height: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
  background: rgba(0, 0, 0, 0.8);
  z-index: 999;
  color: #eee;
  font-size: 0.34rem;
}

.advert {
  z-index: 998;
  position: fixed;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background: rgba(255, 255, 255, 1);
  cursor: pointer;
  display: none;
  justify-content: center;
  align-items: center;
  align-content: center;
  flex-wrap: wrap;
  flex-direction: column-reverse;
}

@keyframes shake {
  0% {
      transform: perspective(500px) rotateX(0) rotateY(0) rotateZ(0) scale(1);
  }
  25% {
      transform: perspective(500px) rotateX(5deg) rotateY(-5deg)
          rotateZ(-5deg) scale(0.95);
  }
  50% {
      transform: perspective(500px) rotateX(0) rotateY(0) rotateZ(0) scale(1);
  }
  75% {
      transform: perspective(500px) rotateX(-5deg) rotateY(5deg) rotateZ(5deg)
          scale(0.95);
  }
  100% {
      transform: perspective(500px) rotateX(0) rotateY(0) rotateZ(0) scale(1);
  }
}

.advert .img {
  text-align: center;
}

.advert .img img {
  animation: shake 2s infinite;
  box-shadow: #e6e6e6 1px 3px 3px 1px;
}

.advert .close {
  width: 100%;
  margin-bottom: 30px;
  text-align: center;
}

.advert .close .text {
  display: inline-block;
  border: 1px solid #000000;
  font-size: 16px;
  color: #000000;
  padding: 10px;
  border-radius: 5px;
}

@media screen and (min-width: 768px) {
  .advert .img img {
    width: 600px;
  }
}

@media screen and (max-width: 768px) {
  .centerContent {
    height: auto;
    min-height: calc(100% - 0.5rem);
  }

  .mokugyoButton {
    min-width: 0;
    width: 100%;
  }

  .buttonRow {
    gap: 10px;
  }

  .mokugyoDialogCard {
    padding: 20px;
  }

  .mokugyoDialogActions {
    flex-direction: column-reverse;
  }

  .advert .img img {
    width: 80%;
  }
}
