/* ANTARA launch authentication gate
   Keeps the main journey locked until a PHP session is active. */
.launch-button[data-auth-locked="true"],
.launch-button[data-auth-checking="true"] {
  cursor: pointer;
  color: rgba(238, 226, 201, .9);
  border-color: rgba(219, 183, 116, .48);
  background:
    linear-gradient(180deg, rgba(25, 34, 40, .94), rgba(12, 20, 27, .96));
  box-shadow:
    0 16px 38px rgba(0,0,0,.36),
    0 0 0 1px rgba(226, 192, 126, .08) inset,
    0 0 24px rgba(220, 176, 92, .06);
}
.launch-button[data-auth-locked="true"]:hover,
.launch-button[data-auth-checking="true"]:hover {
  color: #f2dcae;
  border-color: rgba(231, 195, 126, .78);
  background: linear-gradient(180deg, rgba(31, 42, 48, .98), rgba(14, 23, 30, .98));
  box-shadow: 0 18px 42px rgba(0,0,0,.42), 0 0 26px rgba(222, 177, 87, .11);
}
.launch-auth-lock {
  position: relative;
  flex: 0 0 17px;
  width: 17px;
  height: 14px;
  border: 1px solid currentColor;
  border-radius: 2px;
  opacity: .9;
}
.launch-auth-lock::before {
  content: "";
  position: absolute;
  left: 50%;
  bottom: 10px;
  width: 9px;
  height: 8px;
  transform: translateX(-50%);
  border: 1px solid currentColor;
  border-bottom: 0;
  border-radius: 8px 8px 0 0;
}
.launch-button:not([data-auth-locked="true"]):not([data-auth-checking="true"]) .launch-auth-lock {
  display: none;
}
.launch-button[data-auth-locked="true"] .launch-button-arrow,
.launch-button[data-auth-checking="true"] .launch-button-arrow {
  display: none;
}
.launch-button[data-auth-locked="true"] .launch-button-copy small,
.launch-button[data-auth-checking="true"] .launch-button-copy small {
  color: rgba(229, 195, 129, .78);
}

.launch-auth-notice {
  position: absolute;
  z-index: 34;
  left: 50%;
  bottom: 18.3%;
  width: min(440px, 78vw);
  transform: translateX(-50%) translateY(7px);
  padding: 10px 16px 11px;
  border: 1px solid rgba(209, 174, 107, .3);
  background: rgba(5, 17, 27, .9);
  color: rgba(234, 239, 242, .88);
  box-shadow: 0 12px 34px rgba(0,0,0,.3);
  backdrop-filter: blur(12px);
  opacity: 0;
  pointer-events: none;
  transition: opacity .2s ease, transform .2s ease;
  font-size: 10px;
  line-height: 1.5;
  letter-spacing: .04em;
}
.launch-auth-notice[hidden] { display: block !important; visibility: hidden; }
.launch-auth-notice.is-visible {
  visibility: visible;
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}
.launch-auth-notice strong {
  display: block;
  margin-bottom: 2px;
  color: #e9c984;
  font-size: 9px;
  letter-spacing: .18em;
}
.launch-auth-notice span { display: block; }

#cockpit-profile-hud.auth-attention,
#cockpit-profile-hud.auth-attention .profile-hud-trigger,
#cockpit-profile-hud.auth-attention .profile-avatar-trigger {
  animation: antara-auth-attention .72s ease 2;
}
@keyframes antara-auth-attention {
  0%,100% { filter: none; }
  50% { filter: drop-shadow(0 0 11px rgba(234, 194, 111, .62)); }
}

@media (max-width: 700px) {
  .launch-button[data-auth-locked="true"],
  .launch-button[data-auth-checking="true"] {
    gap: 13px;
    padding-inline: 18px;
  }
  .launch-auth-notice {
    bottom: 10.5%;
    width: min(340px, 86vw);
    padding: 9px 12px 10px;
    font-size: 9px;
  }
}
@media (max-height: 700px) and (min-width: 701px) {
  .launch-auth-notice { bottom: 10.8%; }
}
@media (prefers-reduced-motion: reduce) {
  #cockpit-profile-hud.auth-attention,
  #cockpit-profile-hud.auth-attention .profile-hud-trigger,
  #cockpit-profile-hud.auth-attention .profile-avatar-trigger { animation: none; }
  .launch-auth-notice { transition: none; }
}
