#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;
}

/* Registration and identity-photo cards */
#jt-gate.is-register { background: linear-gradient(160deg,#f5e9dd 0%,#fcf7f0 52%,#f3e3d4 100%); padding: 18px 16px calc(28px + env(safe-area-inset-bottom,0px)); }
#jt-gate.is-register .jt-card { box-sizing: border-box; max-width: 480px; padding: 22px 22px 24px; background: #fffdf8; border: 1px solid #e7d6c2; border-radius: 22px; box-shadow: 0 12px 36px #67372212; }
.jt-reg-top { display:flex; justify-content:space-between; align-items:center; gap:12px; color:#8d7160; font-size:13px; }
.jt-reg-top .jt-back { min-height:44px; font-size:14px; border:0; background:none; cursor:pointer; }
.jt-reg-header { margin:20px 0 26px; }
#jt-gate.is-register .jt-reg-header h1 { font-size:28px; letter-spacing:.02em; font-weight:700; color:#681624; text-align:left; }
.jt-reg-header p { font-size:14px; line-height:1.7; color:#806855; margin:10px 0 0; }
.jt-reg-section { border:0; padding:0; margin:0 0 24px; min-width:0; }
.jt-reg-section legend { display:flex; align-items:center; gap:9px; padding:0; margin:0 0 12px; font-size:17px; font-weight:700; color:#4b3025; }
.jt-reg-section legend span { display:inline-grid; place-items:center; width:26px;height:26px; background:#f4e6d8; border-radius:8px;color:#8c2634;font-size:12px; }
#jt-gate.is-register .jt-field { margin:10px 0 0; padding:10px 13px; border:1px solid #e8ded1; border-radius:12px; background:#fff; box-shadow:none; }
#jt-gate.is-register .jt-field span { font-size:12px; color:#765b4b; font-weight:500; }
#jt-gate.is-register .jt-field input { min-height:32px; font-size:16px; font-weight:500; }
#jt-gate.is-register .jt-field input::placeholder { color:#a38c7c; font-weight:400; }
#jt-gate.is-register .jt-field:focus-within { border-color:#a73443;box-shadow:0 0 0 3px #a7344314; }
#jt-gate.is-register .jt-field.is-bad { border-color:#bd2539; }
#jt-gate.is-register .jt-go { margin-top:12px; min-height:50px;border-radius:12px; font-size:16px; }
.jt-reg-foot { margin:14px 0 0; text-align:center; color:#826b5b;font-size:12px;line-height:1.7; }
.kyc-upload-section { margin-top:20px; }
.kyc-upload-heading { display:flex;justify-content:space-between;align-items:baseline;gap:8px;margin-bottom:12px; }
.kyc-upload-heading h3 { margin:0;font-size:15px;font-weight:600;color:#53372b; }
.kyc-upload-heading>span { font-size:11px;color:#8d7463; }
.kyc-upload-grid { display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px; }
.kyc-upload { box-sizing:border-box;position:relative;display:flex !important;flex-direction:column;align-items:center;min-width:0;margin:0 !important;padding:14px 8px 10px;border:1px dashed #c9aa87;border-radius:14px;background:#fcf7f0;cursor:pointer;text-align:center; }
.kyc-upload input[type=file] { position:absolute;top:0;right:0;bottom:0;left:0;width:100%;height:100%;opacity:0;cursor:pointer;z-index:1;margin:0 !important; }
.kyc-upload:focus-within { outline:3px solid #a7344350;outline-offset:2px; }
.kyc-upload-art { display:flex;justify-content:center;align-items:center;height:78px;width:100%;margin-bottom:10px;color:#bc9472; }
.kyc-upload-art svg { width:112px;max-width:100%;height:74px; }
.kyc-upload-art img { width:100%;height:78px;object-fit:contain;border-radius:6px; }
.kyc-upload-art img[hidden],.kyc-upload.has-photo .kyc-upload-art svg { display:none; }
.kyc-upload.has-photo { border-style:solid;border-color:#b69472;background:#fffbf5; }
.kyc-upload-title { font-size:14px;font-weight:600;color:#55382d; }
.kyc-upload-desc { margin-top:4px;font-size:11px;line-height:1.5;color:#8e7564; }
.kyc-upload-action { display:block;margin-top:12px;padding:6px 13px;border-radius:20px;background:#f1e0ce;color:#872335;font-size:12px;font-weight:600; }
.kyc-upload-status { min-height:16px;font-size:10px;line-height:1.5;color:#805b38;margin-top:6px; }
.kyc-upload-help { color:#8a7260;font-size:12px;line-height:1.7;margin:12px 0 !important; }
.kyc-upload-privacy { display:flex;align-items:flex-start;gap:7px;color:#80664d;background:#f7f0e7;border-radius:8px;padding:10px;font-size:11px;line-height:1.6;margin:0 !important; }
.kyc-upload-privacy svg { flex:0 0 16px;width:16px;height:18px; }
@media(max-width:360px){#jt-gate.is-register{padding-left:10px;padding-right:10px}#jt-gate.is-register .jt-card{padding:16px 14px}.kyc-upload-grid{gap:8px}.kyc-upload-desc{font-size:10px}}
