html {
  -ms-touch-action: none;
  touch-action: none;
  height: 100%;
  background: #121a0e;
}

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: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  padding: 0;
  border: 0;
  margin: 0;

  cursor: default;
  color: #888;
  background-color: #121a0e;
  background-image:
    radial-gradient(120% 90% at 50% 30%, #2c3f24 0%, #182312 58%, #0d140a 100%);

  text-align: center;
  font-family: "Microsoft YaHei", "PingFang SC", "Noto Sans SC", Helvetica, Verdana, Arial, sans-serif;

  overflow: hidden;
  overscroll-behavior: none;
}

#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);
  touch-action: none;
}

a:link, a:visited,
a:active, a:hover {
  color: #666;
}

#splash {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 15;
  background-color: #1b2816;
  background-image:
    url(./logo.png),
    radial-gradient(120% 100% at 50% 30%, #33472a 0%, #1b2816 62%, #101a0c 100%);
  background-repeat: no-repeat, no-repeat;
  background-position: center 40%, center;
  background-size: min(58vw, 430px), cover;
}

.progress-bar {
  position: absolute;
  left: 50%;
  top: auto;
  bottom: 17%;
  height: 6px;
  width: 46vw;
  max-width: 220px;
  margin-left: -23vw;
  padding: 0;
  border-radius: 999px;
  background: rgba(243, 233, 201, .18);
  overflow: hidden;
}

.progress-bar span {
  display: block;
  height: 100%;
  border-radius: 999px;
  transition: width .4s ease-in-out;
  background-color: #e9dcb1;
}

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

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

#toy-vignette {
  position: fixed;
  inset: 0;
  z-index: 5;
  pointer-events: none;
  box-shadow: inset 0 0 7vmin rgba(0, 0, 0, .34);
}

#toy-frame {
  position: fixed;
  inset: 0;
  z-index: 4;
  display: none;
  pointer-events: none;
}

#toy-frame i {
  position: absolute;
  display: block;
  background: #15200f;
}

#toy-loading {
  position: fixed;
  inset: 0;
  z-index: 30;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  background:
    radial-gradient(120% 80% at 50% 26%, #35492b 0%, #1b2816 58%, #101a0c 100%);
  color: #f0e6c6;
  text-align: center;
  transition: opacity .45s ease;
}

#toy-loading.toy-hide {
  opacity: 0;
  pointer-events: none;
}

#toy-loading.toy-timeout {
  cursor: pointer;
}

#toy-loading.toy-timeout .tl-text {
  color: #ffb99f;
}

.tl-panel {
  display: flex;
  flex-direction: column;
  align-items: center;
  max-width: 90vw;
}

.tl-logo {
  display: block;
  width: min(60vw, 330px);
  height: auto;
  margin-bottom: 30px;
  filter: drop-shadow(0 8px 18px rgba(0, 0, 0, .28));
}

.tl-stack {
  position: relative;
  width: 132px;
  height: 96px;
  margin-bottom: 18px;
}

.tl-stack i {
  position: absolute;
  left: 50%;
  top: 4px;
  width: 62px;
  height: 84px;
  margin-left: -31px;
  border: 3px solid #2d3d24;
  border-radius: 9px;
  background: #f8f0d5;
  box-shadow: 0 6px 0 rgba(10, 16, 8, .25);
  animation: tl-stack 1.5s ease-in-out infinite;
}

.tl-stack i::after {
  content: "";
  position: absolute;
  left: 50%;
  top: 50%;
  width: 20px;
  height: 20px;
  margin: -10px 0 0 -10px;
  border: 2px solid #c9b98a;
  border-radius: 50%;
}

.tl-stack i:nth-child(1) {
  transform: translateX(-26px) rotate(-11deg);
  animation-delay: 0s;
  opacity: .72;
}

.tl-stack i:nth-child(2) {
  transform: rotate(0deg);
  animation-delay: .16s;
}

.tl-stack i:nth-child(3) {
  transform: translateX(26px) rotate(11deg);
  animation-delay: .32s;
  opacity: .72;
}

@keyframes tl-stack {
  0%, 100% { translate: 0 0; }
  45% { translate: 0 -8px; }
}

.tl-text {
  font-size: 16px;
  letter-spacing: 1.5px;
  color: #f0e6c6;
}

.tl-sub {
  margin-top: 9px;
  font-size: 12px;
  letter-spacing: 3px;
  color: #9fae8a;
}

#toy-rotate {
  position: fixed;
  inset: 0;
  z-index: 40;
  display: none;
  align-items: center;
  justify-content: center;
  padding:
    max(16px, env(safe-area-inset-top))
    max(16px, env(safe-area-inset-right))
    max(16px, env(safe-area-inset-bottom))
    max(16px, env(safe-area-inset-left));
  background:
    radial-gradient(120% 70% at 50% 0%, rgba(77, 103, 62, .5) 0%, rgba(27, 40, 22, 0) 62%),
    radial-gradient(120% 80% at 50% 100%, rgba(8, 13, 6, .85) 0%, rgba(27, 40, 22, 0) 68%),
    #1b2816;
}

#toy-rotate.toy-show {
  display: flex;
}

.tr-card {
  width: 100%;
  max-width: 350px;
  max-height: calc(100dvh - 32px);
  overflow: auto;
  padding: 26px 22px 22px;
  border: 2px solid rgba(243, 233, 201, .28);
  border-radius: 26px;
  background: rgba(24, 36, 19, .9);
  box-shadow: 0 24px 70px rgba(0, 0, 0, .45);
  text-align: center;
}

.tr-logo {
  display: block;
  width: 212px;
  height: auto;
  margin: 0 auto 18px;
}

.tr-icon {
  position: relative;
  width: 108px;
  height: 100px;
  margin: 0 auto 10px;
  color: #d9cfa8;
}

.tr-phone {
  position: absolute;
  left: 50%;
  top: 8px;
  width: 42px;
  height: 74px;
  margin-left: -21px;
  border: 3px solid #f0e6c6;
  border-radius: 9px;
  box-sizing: border-box;
  animation: tr-tilt 2.6s ease-in-out infinite;
}

.tr-phone::before {
  content: "";
  position: absolute;
  left: 50%;
  bottom: 5px;
  width: 12px;
  height: 2px;
  margin-left: -6px;
  border-radius: 2px;
  background: #f0e6c6;
}

.tr-arrow {
  position: absolute;
  right: 2px;
  bottom: 0;
  width: 26px;
  height: 26px;
  opacity: .8;
}

@keyframes tr-tilt {
  0%, 18% { transform: rotate(0deg); }
  52%, 78% { transform: rotate(90deg); }
  100% { transform: rotate(0deg); }
}

#toy-rotate h1 {
  margin: 8px 0 6px;
  color: #f7efd5;
  font-size: 24px;
  line-height: 1.25;
  letter-spacing: 1px;
}

#toy-rotate p {
  margin: 0 0 20px;
  color: #b9c6a2;
  font-size: 14px;
  line-height: 1.6;
  letter-spacing: .5px;
}

#toy-rotate-go {
  display: block;
  width: 100%;
  padding: 13px 16px;
  border: 3px solid #2d3d24;
  border-radius: 14px;
  background: #f3e9c9;
  color: #22301a;
  font-family: inherit;
  font-size: 17px;
  font-weight: 700;
  letter-spacing: 2px;
  box-shadow: 0 6px 0 rgba(45, 61, 36, .35);
  cursor: pointer;
}

#toy-rotate-go:active {
  transform: translateY(3px);
  box-shadow: 0 3px 0 rgba(45, 61, 36, .35);
}

#toy-rotate-skip {
  display: inline-block;
  margin-top: 16px;
  padding: 6px 10px;
  border: 0;
  background: transparent;
  color: #a8b692;
  font-family: inherit;
  font-size: 13px;
  text-decoration: underline;
  text-underline-offset: 3px;
  cursor: pointer;
}

@media (max-height: 560px) {
  .tr-card { padding: 18px 18px 16px; }
  .tr-logo { width: 170px; margin-bottom: 10px; }
  .tr-icon { height: 80px; margin-bottom: 4px; }
  .tr-phone { width: 36px; height: 62px; margin-left: -18px; }
  #toy-rotate h1 { font-size: 20px; }
  #toy-rotate p { margin-bottom: 14px; font-size: 13px; }
}
