/* XYR V18 - only header logo hover & login navigation flash optimisation. */
/* Keep the circular logo completely stationary when hovered or focused. */
.logo-area img,
.logo-area:hover img,
.logo-area:focus-visible img {
  transform: none !important;
  transition: none !important;
}

/* The auth state is set by a tiny inline head script before first paint. */
html[data-xyr-auth="checking"] #login-btn,
html[data-xyr-auth="retry"] #login-btn,
html[data-xyr-auth="user"] #login-btn { display: none !important; }
html[data-xyr-auth="guest"] #user-profile,
html[data-xyr-auth="checking"] #user-profile,
html[data-xyr-auth="retry"] #user-profile { display: none !important; }

/* Neutral placeholder while Discord confirms a token: never show a false login. */
html[data-xyr-auth="checking"] #auth-container::after,
html[data-xyr-auth="retry"] #auth-container::after {
  content: "Oturum kontrol ediliyor…";
  display: flex;
  align-items: center;
  justify-content: center;
  box-sizing: border-box;
  min-height: 42px;
  min-width: 184px;
  padding: 8px 12px;
  border: 1px solid var(--border-color);
  border-radius: 12px;
  background: var(--card-bg);
  color: var(--text-sub);
  font-size: .77rem;
  font-weight: 600;
  text-align: center;
  pointer-events: none;
}
html[data-xyr-auth="retry"] #auth-container::after {
  content: "Oturum doğrulanamadı";
}
html[lang="en"][data-xyr-auth="checking"] #auth-container::after {
  content: "Checking session…";
}
html[lang="en"][data-xyr-auth="retry"] #auth-container::after {
  content: "Session unavailable";
}
@media (max-width: 900px) {
  html[data-xyr-auth="checking"] #auth-container::after,
  html[data-xyr-auth="retry"] #auth-container::after { width: 100%; }
}
