/* Site password gate */
html.gate-lock, html.gate-lock body {
  overflow: hidden !important;
}
.site-gate {
  position: fixed;
  inset: 0;
  z-index: 100000;
  display: flex;
  align-items: center;
  justify-content: center;
  background:
    radial-gradient(ellipse 70% 50% at 50% 30%, rgba(80,40,10,0.35), transparent 60%),
    #06040a;
  padding: 20px;
  transition: opacity 0.35s ease, visibility 0.35s ease;
}
.site-gate.sg-out {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}
.site-gate.sg-shake {
  animation: sgShake 0.4s ease;
}
@keyframes sgShake {
  0%,100% { transform: translateX(0); }
  20% { transform: translateX(-8px); }
  40% { transform: translateX(8px); }
  60% { transform: translateX(-5px); }
  80% { transform: translateX(5px); }
}
.sg-card {
  width: min(380px, 100%);
  background: linear-gradient(165deg, #1a1220, #0c0812);
  border: 1.5px solid rgba(240,215,140,0.35);
  border-radius: 20px;
  padding: 32px 26px 28px;
  text-align: center;
  box-shadow: 0 24px 60px rgba(0,0,0,0.55), 0 0 40px rgba(240,215,140,0.08);
}
.sg-mark {
  font-size: 36px;
  margin-bottom: 8px;
  filter: drop-shadow(0 0 12px rgba(240,215,140,0.5));
}
.sg-card > small {
  display: block;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.28em;
  color: rgba(240,215,140,0.7);
  margin-bottom: 10px;
}
.sg-card h1 {
  margin: 0 0 10px;
  font-family: 'Cormorant Garamond', 'Noto Serif KR', serif;
  font-size: 28px;
  font-weight: 600;
  color: #fff;
}
.sg-card h1 em {
  font-style: italic;
  background: linear-gradient(90deg, #fff8e0, #f0d78c);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.sg-card > p {
  margin: 0 0 22px;
  font-size: 13px;
  color: rgba(255,255,255,0.5);
  line-height: 1.5;
}
.sg-label {
  display: block;
  text-align: left;
  margin-bottom: 12px;
}
.sg-label span {
  display: block;
  font-size: 9px;
  font-weight: 800;
  letter-spacing: 0.16em;
  color: rgba(240,215,140,0.65);
  margin-bottom: 6px;
}
.sg-label input {
  width: 100%;
  box-sizing: border-box;
  padding: 14px 16px;
  border-radius: 12px;
  border: 1px solid rgba(240,215,140,0.25);
  background: rgba(0,0,0,0.4);
  color: #fff;
  font-size: 16px;
  outline: none;
}
.sg-label input:focus {
  border-color: rgba(240,215,140,0.6);
  box-shadow: 0 0 0 3px rgba(240,215,140,0.12);
}
.sg-err {
  color: #ff6b8a;
  font-size: 12px;
  font-weight: 700;
  margin-bottom: 10px;
  text-align: left;
}
.sg-btn {
  width: 100%;
  border: none;
  cursor: pointer;
  padding: 14px 18px;
  border-radius: 999px;
  font: 800 14px/1 'Noto Sans KR', sans-serif;
  letter-spacing: 0.06em;
  background: linear-gradient(135deg, #f0d78c, #c9a84c);
  color: #1a1208;
  box-shadow: 0 6px 20px rgba(240,215,140,0.35);
  margin-top: 4px;
}
.sg-btn:active { transform: scale(0.98); }

html.lite .sg-mark { filter: none; }
html.inapp .site-gate,
html.soft .site-gate {
  background: #06040a !important;
}
html.inapp .sg-card,
html.soft .sg-card {
  background: #14101a !important;
  box-shadow: 0 12px 36px rgba(0,0,0,0.5) !important;
}
