/* GTAGame Turnstile 1.0.2. Cloudflare iframe sizes are never distorted. */
.gtx-turnstile {
  display: block;
  box-sizing: border-box;
  width: 100%;
  min-width: 0;
  max-width: 100%;
  color: var(--gtx-text, inherit);
  text-align: left;
}
.gtx-turnstile[hidden] { display: none !important; }
.gtx-turnstile-widget { min-width: 0; max-width: 100%; }
.gtx-turnstile-status {
  margin: .5rem 0;
  max-width: 100%;
  color: inherit;
  font-size: .8rem;
  line-height: 1.45;
  overflow-wrap: anywhere;
}
.gtx-turnstile-status:focus {
  outline: 2px solid var(--gtx-accent, #087fa2);
  outline-offset: 3px;
  border-radius: 3px;
}
.gtx-turnstile-retry {
  box-sizing: border-box;
  max-width: 100%;
  min-height: 40px;
  padding: .5rem .75rem;
  border: 1px solid var(--gtx-border, #8494aa);
  border-radius: 8px;
  background: var(--gtx-surface-2, #edf2f9);
  color: var(--gtx-text, #172339);
  font: inherit;
  font-size: .8rem;
  font-weight: 700;
  cursor: pointer;
  white-space: normal;
}
.gtx-turnstile-retry[hidden] { display: none !important; }
.gtx-turnstile-retry:focus-visible { outline: 3px solid var(--gtx-accent, #087fa2); outline-offset: 3px; }
.gtx-turnstile-retry:hover { border-color: var(--gtx-accent, #087fa2); }
.gtx-turnstile[data-state="error"] .gtx-turnstile-status { font-weight: 600; }
.gtx-turnstile noscript { display: block; font-size: .8rem; line-height: 1.45; }
/* Native GTAGame templates retain their shortcode wrappers. Only the obsolete
   image-code input/label wrapper is hidden when it contains the Turnstile marker. */
body .gtx-login-captcha:has(.gtx-turnstile) .gtx-login-captcha__input,
body .gtx-login-page__captcha:has(.gtx-turnstile) .gtx-login-page__captcha-input { display: none !important; }
body .gtx-login-captcha:has(.gtx-turnstile),
body .gtx-login-page__captcha:has(.gtx-turnstile) {
  grid-template-columns: minmax(0, 1fr) !important;
  min-width: 0;
}

/* Login needs at least 300px for Cloudflare's horizontal flexible widget.
   Adapt only the header dropdown with an actual Turnstile marker.
   Sidebar columns retain their native widths; compact is expected there.
   The original size selector keeps compact on genuinely narrower screens.
   Never scale, clip or override the cross-origin widget iframe. */
body.gtx-site .gtx-auth-dropdown:has(.gtx-turnstile) {
  width: min(360px, calc(100vw - 1rem));
  max-width: min(360px, calc(100vw - 1rem));
}
