#jt-gate[hidden], html:not([data-app]) #root, html[data-app] .jt-hall, html[data-app] .jt-veil {
  display: none !important;
}

.jt-hall {
  z-index: 0;
  transform-origin: 50% 30%;
  pointer-events: none;
  background: #8c1224 url("/hero/pillars.jpg") 50% 18% / cover no-repeat;
  animation: 5.5s ease-in-out infinite alternate pillar-sway;
  position: fixed;
  top: 0;
  bottom: 0;
  left: 0;
  right: 0;
}

.jt-veil {
  z-index: 0;
  pointer-events: none;
  background: radial-gradient(at 50% 18%, #ffd27838, #0000 42%), linear-gradient(#50080e14 0%, #fbf6ee00 24%, #fbf6ee73 58%, #fbf6ee 82%);
  position: fixed;
  top: 0;
  bottom: 0;
  left: 0;
  right: 0;
}

#jt-gate {
  z-index: 8;
  padding: 108px 16px calc(56px + env(safe-area-inset-bottom, 0px));
  background: none;
  justify-content: center;
  align-items: flex-end;
  font-family: PingFang SC, Microsoft YaHei, Noto Sans SC, sans-serif;
  display: flex;
  position: fixed;
  top: 0;
  bottom: 0;
  left: 0;
  right: 0;
  overflow: auto;
}

#jt-gate.is-page {
  -webkit-overflow-scrolling: touch;
  padding-top: 36px;
  padding-bottom: calc(48px + env(safe-area-inset-bottom, 0px));
  display: block;
  overflow: hidden auto;
}

#jt-gate.is-page .jt-card {
  max-height: none;
  margin: 0 auto;
  overflow: visible;
}

#jt-gate.is-page h1 {
  letter-spacing: .12em;
  margin: 0;
  font-size: 22px;
}

#jt-gate.is-page .jt-field {
  margin-top: 8px;
  padding-top: 5px;
  padding-bottom: 5px;
}

#jt-gate.is-page .jt-sub {
  margin: 4px 0 8px;
}

.jt-nav {
  grid-template-columns: 76px 1fr 76px;
  align-items: center;
  margin: 0 0 6px;
  display: grid;
}

.jt-back {
  color: #8c1224;
  justify-self: start;
  padding: 6px 0;
  font-size: 18px;
}

.jt-nav h1 {
  text-align: center;
}

.jt-links {
  justify-content: space-between;
  align-items: center;
  margin: 12px 2px 0;
  display: flex;
}

.jt-links button {
  color: #8c1224;
  background: none;
  border: 0;
  padding: 4px 0;
  font-size: 16px;
  font-weight: 600;
}

.jt-card {
  width: 100%;
  max-width: 420px;
  max-height: calc(100vh - 136px);
  color: #3a2218;
  backdrop-filter: blur(16px) saturate(1.15);
  background: linear-gradient(#fffaf3f0, #fff6eaeb) padding-box padding-box, linear-gradient(145deg, #f6e2a8, #b8862f 38%, #8c1224 62%, #f0d48a) border-box;
  border: 1.5px solid #0000;
  border-radius: 26px;
  max-height:calc(100vh - 136px);max-height:calc(100dvh - 136px);
  margin-top: auto;
  padding: 16px 18px 18px;
  overflow: auto;
  box-shadow: 0 18px 40px #46081047, inset 0 0 0 1px #fff8e6a6;
}

.jt-seal {
  z-index: 2;
  color: #fff8ea;
  background: radial-gradient(circle at 32% 28%, #f05a66, #c8102e 46%, #7d1020 100%);
  border-radius: 50%;
  place-items: center;
  width: 72px;
  height: 72px;
  margin: 2px auto 8px;
  font-size: 30px;
  font-weight: 700;
  display: grid;
  position: relative;
  box-shadow: 0 0 0 3px #f4d78a, 0 0 0 6px #8c122459, 0 10px 20px #500a1059;
}

.jt-kicker {
  text-align: center;
  color: #7a4e12;
  letter-spacing: .28em;
  margin: 4px 0 0;
  font-size: 14px;
  font-weight: 600;
}

.jt-card h1 {
  text-align: center;
  color: #8c1224;
  letter-spacing: .22em;
  margin: 2px 0 0;
  font-size: 34px;
  font-weight: 700;
}

.jt-rule {
  background: linear-gradient(90deg, #0000, #d4a24a, #0000);
  border-radius: 2px;
  width: 72px;
  height: 2px;
  margin: 10px auto 0;
}

.jt-sub {
  text-align: center;
  color: #3a2218;
  margin: 8px 0 14px;
  font-size: 15px;
  font-weight: 600;
}

.jt-field {
  background: linear-gradient(#fffcf6f5, #fff3e0e0);
  border-radius: 16px;
  margin: 12px 0 0;
  padding: 8px 14px 9px;
  display: block;
  box-shadow: inset 0 1px 2px #78301414, inset 0 0 0 1px #c69a4a8c;
}

.jt-field span {
  color: #8c1224;
  letter-spacing: .04em;
  font-size: 13px;
  font-weight: 600;
  display: block;
}

.jt-field input {
  width: 100%;
  min-height: 30px;
  box-shadow: none;
  color: #2a160f;
  font: inherit;
  background: none;
  border: 0;
  border-radius: 0;
  margin: 0;
  padding: 1px 0 0;
  font-size: 18px;
  font-weight: 600;
}

.jt-field input::placeholder {
  color: #8a6248;
}

.jt-field:focus-within {
  box-shadow: inset 0 1px 2px #7830140f, inset 0 0 0 1px #c6a15b, 0 0 0 3px #c6a15b47;
}

.jt-field input:focus {
  outline: none;
}

.jt-hint {
  color: #3a2218;
  margin: 10px 2px 0;
  font-size: 13px;
  line-height: 1.5;
}

.jt-err {
  text-align: center;
  color: #9d1828;
  min-height: 20px;
  margin: 8px 0 0;
  font-size: 14px;
}

.jt-err.is-on {
  color: #b0101f;
  background: #fff1f0;
  border-radius: 12px;
  padding: 10px 12px;
  font-size: 15px;
  font-weight: 700;
  line-height: 1.45;
  box-shadow: inset 0 0 0 1px #e8a3a3;
}

.jt-field.is-bad {
  background: #fff4f3;
  box-shadow: inset 0 0 0 2px #d0303f, 0 0 0 3px #d0303f29;
}

.jt-field.is-bad span {
  color: #c0101f;
}

.jt-go {
  color: #fff8ea;
  letter-spacing: .2em;
  background: linear-gradient(#ffe2aa61, #ffe2aa00 46%), linear-gradient(#e23b4c 0%, #c41e32 52%, #8e1526 100%);
  border: 1px solid #e8c56b;
  border-radius: 16px;
  width: 100%;
  min-height: 52px;
  margin-top: 14px;
  font-size: 18px;
  position: relative;
  overflow: hidden;
  box-shadow: inset 0 1px #ffecc48c, 0 10px 18px #8c122447;
}

.jt-go:disabled {
  opacity: .92;
}

.jt-go.is-busy span {
  visibility: hidden;
}

.jt-go.is-busy:before {
  content: "";
  background: linear-gradient(90deg, #0000, #ffecb4d9, #0000);
  width: 45%;
  animation: .9s ease-in-out infinite jt-sheen;
  position: absolute;
  top: -20%;
  bottom: -20%;
  left: 0;
  transform: translateX(-180%);
}

.jt-go.is-busy:after {
  content: "";
  z-index: 1;
  border: 3px solid #ffe7a3;
  border-color: #ffe7a3 #fff #fff8ea47 #fff8ea47;
  border-radius: 50%;
  width: 28px;
  height: 28px;
  margin: -14px 0 0 -14px;
  animation: .55s linear infinite jt-spin;
  position: absolute;
  top: 50%;
  left: 50%;
  box-shadow: 0 0 12px #ffd678e6;
}

.jt-go.is-busy {
  animation: .9s ease-in-out infinite jt-wait;
}

@keyframes jt-spin {
  to {
    transform: rotate(360deg);
  }
}

@keyframes jt-sheen {
  to {
    transform: translateX(420%);
  }
}

@keyframes jt-wait {
  0%, 100% {
    filter: brightness();
    box-shadow: inset 0 1px #ffecc48c, 0 10px 18px #8c122447;
  }

  50% {
    filter: brightness(1.22);
    box-shadow: inset 0 1px #ffecc4cc, 0 0 0 4px #ffd67859, 0 12px 24px #8c122466;
  }
}

.jt-pin {
  color: #5c4036;
  margin-top: 12px;
  font-size: 14px;
  display: block;
}

.jt-pin input {
  letter-spacing: .3em;
  background: #fffaf3;
  border: 1px solid #c69a4a8c;
  border-radius: 12px;
  width: 100%;
  min-height: 46px;
  margin-top: 6px;
  padding: 0 12px;
  font-size: 20px;
}
