/* TRON VIP 加载页样式：只使用 --tk-* 变量，颜色由 js/gate-theme.js 推导。
   页面专属背景/卡片质感写在 index.html 的 <style> 里，本文件保持通用。 */
#tk-gate {
  position: fixed;
  inset: 0;
  z-index: 2147483000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 18px;
  background: var(--tk-bg, #07080f);
  color: var(--tk-fg, #eef1ff);
  font-family: var(--tk-font, -apple-system, BlinkMacSystemFont, "PingFang SC", "Microsoft YaHei", Arial, sans-serif);
  font-size: 15px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  opacity: 1;
  transition: opacity .35s ease;
}
#tk-gate.tk-ready { opacity: 1; }
html[data-gate-ready="1"] #tk-gate {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity .4s ease, visibility 0s linear .4s;
}
#tk-gate *,
#tk-gate *::before,
#tk-gate *::after { box-sizing: border-box; }

#tk-gate .tk-wrap {
  width: 100%;
  max-width: 424px;
  background: var(--tk-card, #12141f);
  border: 1px solid var(--tk-line, rgba(255, 255, 255, .09));
  border-radius: 20px;
  padding: 30px 26px 22px;
  box-shadow: 0 34px 80px -34px rgba(0, 0, 0, .85);
  text-align: center;
}

#tk-gate .tk-logo {
  height: 38px;
  margin: 0 auto 18px;
  display: none;
  align-items: center;
  justify-content: center;
}
#tk-gate .tk-logo img {
  max-height: 38px;
  max-width: 190px;
  display: block;
}
#tk-gate.tk-has-logo .tk-logo { display: flex; }

#tk-gate .tk-title {
  font-size: 19px;
  font-weight: 650;
  letter-spacing: .01em;
  margin: 0 0 6px;
  line-height: 1.45;
}
#tk-gate .tk-sub {
  margin: 0 0 20px;
  font-size: 13px;
  color: var(--tk-muted, #9aa3b8);
}

#tk-gate .tk-bar {
  position: relative;
  height: 5px;
  border-radius: 999px;
  background: var(--tk-line, rgba(255, 255, 255, .1));
  overflow: hidden;
  margin: 0 0 7px;
}
#tk-gate .tk-bar > i {
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 2%;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--tk-accent, #7c5cff), var(--tk-accent-2, #22c1a4));
  box-shadow: 0 0 12px rgba(124, 92, 255, .55);
  transition: width .25s linear;
}
#tk-gate .tk-pct {
  font-size: 11px;
  color: var(--tk-dim, #6b7488);
  font-variant-numeric: tabular-nums;
  text-align: right;
  margin-bottom: 14px;
  letter-spacing: .02em;
}

#tk-gate .tk-steps {
  list-style: none;
  margin: 0;
  padding: 0;
  text-align: left;
}
#tk-gate.tk-rtl .tk-steps { text-align: right; }
#tk-gate .tk-steps li {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 7px 0;
  font-size: 13.5px;
  color: var(--tk-muted, #9aa3b8);
  transition: color .2s ease;
}
#tk-gate .tk-steps li .tk-dot {
  flex: 0 0 17px;
  width: 17px;
  height: 17px;
  border-radius: 50%;
  border: 1.5px solid var(--tk-line, rgba(255, 255, 255, .16));
  position: relative;
  transition: border-color .2s ease, background .2s ease;
}
#tk-gate .tk-steps li[data-state="run"] { color: var(--tk-fg, #eef1ff); }
#tk-gate .tk-steps li[data-state="run"] .tk-dot {
  border-color: var(--tk-accent, #7c5cff);
  box-shadow: 0 0 0 3px rgba(124, 92, 255, .16);
}
#tk-gate .tk-steps li[data-state="run"] .tk-dot::after {
  content: "";
  position: absolute;
  inset: 3px;
  border-radius: 50%;
  background: var(--tk-accent, #7c5cff);
  animation: tk-pulse 1s ease-in-out infinite;
}
#tk-gate .tk-steps li[data-state="ok"] { color: var(--tk-fg, #eef1ff); }
#tk-gate .tk-steps li[data-state="ok"] .tk-dot {
  border-color: var(--tk-accent, #7c5cff);
  background: var(--tk-accent, #7c5cff);
}
#tk-gate .tk-steps li[data-state="ok"] .tk-dot::after {
  content: "";
  position: absolute;
  left: 4.5px;
  top: 1.5px;
  width: 5px;
  height: 9px;
  border: solid #fff;
  border-width: 0 1.6px 1.6px 0;
  transform: rotate(42deg);
}
#tk-gate .tk-ok-label {
  margin-left: auto;
  font-size: 10.5px;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: var(--tk-accent, #7c5cff);
  opacity: 0;
  transition: opacity .2s ease;
}
#tk-gate.tk-rtl .tk-ok-label { margin-left: 0; margin-right: auto; }
#tk-gate .tk-steps li[data-state="ok"] .tk-ok-label { opacity: .95; }

#tk-gate .tk-foot {
  margin: 18px 0 0;
  padding-top: 14px;
  border-top: 1px solid var(--tk-line, rgba(255, 255, 255, .08));
  font-size: 10.5px;
  letter-spacing: .02em;
  color: var(--tk-dim, #6b7488);
}

#tk-gate .tk-hint {
  display: none;
  text-align: center;
  padding: 6px 0 2px;
}
#tk-gate[data-state="block"] .tk-loading { display: none; }
#tk-gate[data-state="block"] .tk-hint { display: block; }
#tk-gate .tk-hint h2 {
  font-size: 19px;
  font-weight: 650;
  margin: 0 0 8px;
  line-height: 1.4;
}
#tk-gate .tk-hint p {
  font-size: 13.5px;
  line-height: 1.7;
  color: var(--tk-muted, #9aa3b8);
  margin: 0 0 18px;
}
#tk-gate .tk-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  min-height: 42px;
  padding: 0 18px;
  border-radius: 10px;
  border: 1px solid transparent;
  background: var(--tk-accent, #7c5cff);
  color: #fff;
  font: inherit;
  font-size: 14px;
  font-weight: 550;
  cursor: pointer;
  transition: filter .18s ease, transform .18s ease;
}
#tk-gate .tk-btn:hover { filter: brightness(1.06); }
#tk-gate .tk-btn:active { transform: translateY(1px); }
#tk-gate .tk-btn.tk-ghost {
  background: transparent;
  border-color: var(--tk-line, rgba(255, 255, 255, .16));
  color: var(--tk-fg, #eef1ff);
  margin-top: 9px;
  min-height: 38px;
  font-size: 13px;
}
#tk-gate .tk-copied {
  font-size: 12px;
  color: var(--tk-accent-2, #22c1a4);
  margin-top: 9px;
  min-height: 17px;
}

body.tk-gate-lock { overflow: hidden !important; }
html[data-gate="checking"] body { overflow: hidden !important; }

@keyframes tk-pulse {
  0%, 100% { opacity: .35; }
  50% { opacity: 1; }
}

@media (prefers-reduced-motion: reduce) {
  #tk-gate, #tk-gate .tk-bar > i { transition: none; }
  #tk-gate .tk-steps li[data-state="run"] .tk-dot::after { animation: none; }
}
@media (max-height: 600px) {
  #tk-gate { align-items: flex-start; overflow-y: auto; padding-top: 20px; padding-bottom: 20px; }
  #tk-gate .tk-wrap { margin: 0 auto; }
}
@media (max-width: 420px) {
  #tk-gate { padding: 14px; }
  #tk-gate .tk-wrap { padding: 26px 20px 18px; border-radius: 18px; }
  #tk-gate .tk-title { font-size: 17.5px; }
  #tk-gate .tk-steps li { font-size: 13px; }
}
@media (max-width: 350px) {
  #tk-gate .tk-wrap { padding: 22px 16px 16px; }
  #tk-gate .tk-title { font-size: 16.5px; }
}
