#stlg-gateway,
#stlg-gateway * { box-sizing: border-box; }

#stlg-gateway {
  position: fixed;
  inset: 0;
  z-index: 2147483000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 18px;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity .22s ease, visibility .22s ease;
}

#stlg-gateway.stlg-visible {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

/* Lighter overlay: the website remains clearly visible behind the gateway. */
.stlg-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(4, 10, 14, .44);
  backdrop-filter: blur(7px) saturate(108%);
  -webkit-backdrop-filter: blur(7px) saturate(108%);
}

.stlg-modal {
  position: relative;
  width: min(680px, 100%);
  padding: 30px 32px 32px;
  border: 1px solid rgba(255,255,255,.10);
  border-radius: 24px;
  background: rgba(15, 24, 30, .67);
  box-shadow: 0 26px 70px rgba(0,0,0,.34), inset 0 1px 0 rgba(255,255,255,.07);
  backdrop-filter: blur(18px) saturate(120%);
  -webkit-backdrop-filter: blur(18px) saturate(120%);
  color: #fff;
  transform: translateY(10px) scale(.985);
  transition: transform .28s cubic-bezier(.22,1,.36,1);
}

.stlg-visible .stlg-modal { transform: translateY(0) scale(1); }

.stlg-modal::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  pointer-events: none;
  background: linear-gradient(135deg, rgba(255,255,255,.055), transparent 40%);
}

.stlg-glow {
  position: absolute;
  border-radius: 999px;
  pointer-events: none;
  filter: blur(42px);
  opacity: .16;
  z-index: -1;
}
.stlg-glow-one { width: 150px; height: 150px; top: -85px; right: -45px; background: var(--stlg-accent); }
.stlg-glow-two { width: 110px; height: 110px; bottom: -65px; left: -45px; background: var(--stlg-accent); }

/* Brand is deliberately left aligned and given a stronger visual presence. */
.stlg-brand {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 18px;
  min-height: 94px;
  padding: 2px 0 22px;
  margin-bottom: 22px;
  border-bottom: 1px solid rgba(255,255,255,.09);
  text-align: left;
}

/* Natural logo presentation: no frame, border, background or artificial crop. */
.stlg-logo,
.stlg-logo-fallback {
  width: 200px;
  height: auto;
  max-height: 82px;
  flex: 0 0 auto;
  display: block;
  object-fit: contain;
  object-position: left center;
  background: transparent;
  border: 0;
  border-radius: 0;
  box-shadow: none;
}

.stlg-logo-fallback {
  width: 200px;
  height: 64px;
  display: flex;
  align-items: center;
  color: #fff;
  background: transparent;
  font-size: 30px;
  font-weight: 800;
}

.stlg-site-name {
  color: #fff;
  font-size: 26px;
  line-height: 1.05;
  font-weight: 800;
  letter-spacing: -.025em;
  white-space: nowrap;
}

.stlg-content { text-align: center; }

.stlg-eyebrow {
  margin: 0 0 18px;
  color: #fff;
  font-size: 11px;
  line-height: 1;
  font-weight: 700;
  letter-spacing: .16em;
  text-transform: uppercase;
}

#stlg-title,
.stlg-description { display: none; }

.stlg-languages {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(135px, 1fr));
  gap: 10px;
}

.stlg-language {
  min-width: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 48px;
  padding: 10px 14px;
  border: 1px solid rgba(255,255,255,.11);
  border-radius: 11px;
  color: #fff;
  text-decoration: none;
  background: rgba(255,255,255,.035);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.025);
  transition: background .18s ease, border-color .18s ease, transform .18s ease;
}

.stlg-language:hover,
.stlg-language:focus-visible {
  transform: translateY(-1px);
  border-color: rgba(41,162,179,.72);
  background: rgba(41,162,179,.12);
  outline: none;
}

.stlg-language-index,
.stlg-arrow { display: none; }

.stlg-language-copy {
  display: inline-flex;
  align-items: baseline;
  justify-content: center;
  gap: 6px;
  min-width: 0;
}

.stlg-language-name {
  color: #fff;
  font-size: 14px;
  font-weight: 700;
  white-space: nowrap;
}

.stlg-language-native {
  color: #fff;
  opacity: .70;
  font-size: 12px;
  white-space: nowrap;
}

html.stlg-gateway-open { overflow: hidden; }
body.stlg-lock-scroll { overflow: hidden !important; }

@media (max-width: 640px) {
  #stlg-gateway { padding: 12px; }
  .stlg-modal { width: 100%; padding: 22px 18px 18px; border-radius: 20px; }
  .stlg-brand { gap: 12px; min-height: 76px; padding-bottom: 16px; margin-bottom: 18px; }
  .stlg-logo, .stlg-logo-fallback { width: 138px; max-height: 58px; }
  .stlg-logo-fallback { height: 48px; font-size: 24px; }
  .stlg-site-name { font-size: 21px; }
  .stlg-eyebrow { margin-bottom: 15px; font-size: 10px; }
  .stlg-languages { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
  .stlg-language { min-height: 46px; padding: 9px 10px; border-radius: 10px; }
  .stlg-language-copy { gap: 5px; }
  .stlg-language-name { font-size: 13px; }
  .stlg-language-native { font-size: 11px; }
}

@media (prefers-reduced-motion: reduce) {
  #stlg-gateway, .stlg-modal, .stlg-language { transition: none; }
}
