* { box-sizing: border-box; }
html, body {
  margin: 0;
  min-height: 100%;
  background: #fafbfc;
  color: #000;
  font-family: "Segoe UI", "PingFang SC", "Microsoft YaHei", "Hiragino Sans", "Yu Gothic UI", "Malgun Gothic", "Noto Sans", Arial, sans-serif;
}
html:not(.i18n-ready) .gate { visibility: hidden; }
body {
  min-height: 100vh;
  display: flex;
  align-items: flex-start;
  justify-content: center;
  padding: 18vh 24px 48px;
}
.gate {
  width: 420px;
  max-width: 100%;
  text-align: center;
}
.lock {
  width: 52px;
  height: 52px;
  margin: 0 auto 28px;
  border-radius: 50%;
  background: #fff1e8;
  display: flex;
  align-items: center;
  justify-content: center;
}
.lock svg { display: block; }
.hold {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 74px;
  margin: 0;
  padding: 0;
  border: 3px solid #1a1a1a;
  border-radius: 999px;
  background: #fff;
  color: #1a1a1a;
  font: inherit;
  font-size: 24px;
  font-weight: 700;
  letter-spacing: 0;
  cursor: pointer;
  overflow: hidden;
  container-type: inline-size;
  user-select: none;
  -webkit-user-select: none;
  touch-action: none;
  --hold-ease: cubic-bezier(0.23, 1, 0.32, 1);
  --hold-complete: 0;
}
html[lang|="zh"] .hold,
html[lang="ja"] .hold {
  font-size: 26px;
  letter-spacing: 0.04em;
}
.hold.is-long { font-size: 20px; letter-spacing: 0; }
.hold__fill {
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 0;
  overflow: hidden;
  background: #1a1a1a;
  pointer-events: none;
  z-index: 1;
  will-change: width;
}
html[dir="rtl"] .hold__fill { left: auto; right: 0; }
.hold__label {
  position: relative;
  z-index: 0;
  opacity: calc(1 - var(--hold-complete));
  transition: opacity 160ms var(--hold-ease);
}
.hold__invert {
  position: absolute;
  top: 0;
  bottom: 0;
  left: 0;
  width: 100cqi;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  opacity: calc(1 - var(--hold-complete));
  transition: opacity 160ms var(--hold-ease);
}
html[dir="rtl"] .hold__invert { left: auto; right: 0; }
.hold__mark {
  position: absolute;
  inset: 0;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: center;
  pointer-events: none;
  opacity: var(--hold-complete);
  transform: scale(calc(0.82 + var(--hold-complete) * 0.18));
  transition:
    opacity 160ms var(--hold-ease),
    transform 160ms var(--hold-ease);
}
.hold__mark svg {
  display: block;
  width: 28px;
  height: 28px;
}
.hold-wait {
  display: flex;
  justify-content: center;
  align-items: flex-end;
  gap: 9px;
  height: 24px;
  margin: 14px 0 0;
}
.hold-wait[hidden] { display: none !important; }
.hold-wait span {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #1a1a1a;
  animation: hold-dot-bounce 0.95s ease-in-out infinite;
}
.hold-wait span:nth-child(2) { animation-delay: 0.16s; }
.hold-wait span:nth-child(3) { animation-delay: 0.32s; }
@keyframes hold-dot-bounce {
  0%, 65%, 100% { transform: translateY(0); opacity: 0.28; }
  32% { transform: translateY(-8px); opacity: 1; }
}
.hold.is-busy {
  cursor: default;
  pointer-events: none;
}
.retry {
  margin: 14px 0 0;
  color: #e50e08;
  font-size: 16px;
  line-height: 1.4;
  font-weight: 500;
}
.retry[hidden] { display: none !important; }
.gate-modal {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  background: rgba(4, 8, 11, 0.48);
}
.gate-modal[hidden] { display: none !important; }
.gate-modal__panel {
  position: relative;
  width: 100%;
  max-width: 408px;
  padding: 32px 36px 28px;
  border-radius: 12px;
  background: #fff;
  text-align: center;
  box-shadow: 0 2px 9px -1px rgba(0, 0, 0, 0.13);
}
.gate-modal__panel::before {
  content: "";
  position: absolute;
  top: 0;
  left: 50%;
  width: 56px;
  height: 3px;
  border-radius: 0 0 3px 3px;
  background: #ff7200;
  transform: translateX(-50%);
}
.gate-modal__msg {
  margin: 0 0 22px;
  font-size: 16px;
  line-height: 1.5;
  color: #000;
  font-weight: 500;
}
.gate-modal__go {
  min-width: 200px;
  min-height: 44px;
  padding: 0 24px;
  border: 1px solid #c25700;
  border-radius: 8px;
  background: #c25700;
  color: #fff;
  font: inherit;
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.02em;
  cursor: pointer;
  transition: background-color 0.15s ease, border-color 0.15s ease, opacity 0.15s ease;
}
.gate-modal__go:hover:not(:disabled) {
  background: #a84a00;
  border-color: #a84a00;
}
.gate-modal__go:disabled {
  opacity: 0.88;
  cursor: wait;
}
.gate-modal__go.is-loading {
  min-width: 220px;
}
.tips {
  margin: 28px 0 0;
  padding: 16px 18px 14px 8px;
  border-radius: 8px;
  background: #f5f2f1;
  color: #626364;
  font-size: 14px;
  line-height: 1.45;
  text-align: left;
}
html[dir="rtl"] .tips { text-align: right; padding: 16px 8px 14px 18px; }
.tips ul {
  margin: 0;
  padding: 0 0 0 22px;
}
html[dir="rtl"] .tips ul { padding: 0 22px 0 0; }
.tips li { margin: 0 0 8px; }
.tips li:last-child { margin-bottom: 0; }
.tips a {
  color: #2867db;
  text-decoration: none;
}
.tips a:hover { text-decoration: underline; }
.ref {
  margin: 22px 0 0;
  color: #6b7280;
  font-size: 13px;
  line-height: 1.4;
  text-align: left;
}
html[dir="rtl"] .ref { text-align: right; }
