/* AeroClub cloud layer — wallet connect + cloud save UI, styled to match
   the game's glass / Frutiger Aero theme. */

.ac-wallet-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  white-space: nowrap;
}

.ac-wallet-btn .ac-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #9fb3c8;
  box-shadow: inset 0 1px 1px rgba(255, 255, 255, 0.6);
}

.ac-wallet-btn.ac-connected .ac-dot {
  background: #37d67a;
  box-shadow: 0 0 6px rgba(55, 214, 122, 0.8);
}

.ac-overlay {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(20, 60, 90, 0.35);
  backdrop-filter: blur(6px);
}

.ac-overlay[hidden] {
  display: none;
}

.ac-modal {
  width: min(380px, calc(100vw - 48px));
  border-radius: 18px;
  padding: 20px;
  color: #16324a;
  background: linear-gradient(160deg, rgba(255, 255, 255, 0.92), rgba(190, 228, 250, 0.88));
  border: 1px solid rgba(255, 255, 255, 0.8);
  box-shadow:
    0 24px 60px rgba(10, 40, 70, 0.35),
    inset 0 1px 0 rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(16px);
  font-family: inherit;
  display: flex;
  flex-direction: column;
  align-items: stretch;
}

.ac-modal h2 {
  margin: 0 0 4px;
  font-size: 20px;
  letter-spacing: 0.01em;
}

.ac-modal p {
  margin: 0 0 14px;
  font-size: 13px;
  line-height: 1.45;
  color: #3d5a74;
}

.ac-wallet-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 12px;
}

.ac-modal-actions {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.ac-status-line {
  margin-top: 10px;
  font-size: 12px;
  color: #3d5a74;
  min-height: 16px;
}

.ac-guest-link {
  background: none;
  border: none;
  padding: 6px;
  font-size: 12px;
  color: #3d5a74;
  text-decoration: underline;
  cursor: pointer;
  align-self: center;
}

.ac-install-hint {
  font-size: 13px;
  padding: 10px 12px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.55);
  border: 1px dashed rgba(80, 130, 170, 0.5);
  margin-bottom: 12px;
}

.ac-install-hint a {
  color: #0b6cad;
  font-weight: 600;
}

.ac-profile-row {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 12px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.55);
  border: 1px solid rgba(255, 255, 255, 0.75);
  margin-bottom: 12px;
  font-size: 13px;
}

.ac-profile-row b {
  font-size: 15px;
}

.ac-profile-row code {
  font-size: 11px;
  word-break: break-all;
  color: #3d5a74;
}

/* Card injected into the Aero Pass / quest windows. */
.ac-pass-card {
  margin-top: 12px;
  padding: 12px 14px;
  border-radius: 14px;
  background: linear-gradient(160deg, rgba(255, 255, 255, 0.7), rgba(190, 228, 250, 0.6));
  border: 1px solid rgba(255, 255, 255, 0.75);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  font-size: 13px;
  color: #16324a;
}

.ac-pass-card .ac-pass-status {
  flex: 1;
  min-width: 140px;
  color: #3d5a74;
  font-size: 12px;
}

/* AeroClub polish layer — smooth dialog entrance + clean close button. */

@keyframes ac-dialog-in {
  from {
    opacity: 0;
    transform: translateY(16px) scale(0.95);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

@keyframes ac-backdrop-in {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

.a26-activity-dialog[open] {
  animation: ac-dialog-in 0.32s cubic-bezier(0.22, 1, 0.36, 1);
}

.a26-activity-dialog::backdrop {
  animation: ac-backdrop-in 0.28s ease;
}

/* Plain, centered × — no off-center circle. */
.a26-activity-dialog > .a26-dialog-close {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  padding: 0;
  border: none;
  border-radius: 0;
  background: transparent;
  color: #347393;
  font-size: 22px !important;
  font-weight: 400;
  line-height: 1;
  cursor: pointer;
  transition:
    color 0.15s ease,
    transform 0.15s ease;
}

.a26-dialog-close:hover {
  color: #0b5a86;
  transform: scale(1.15);
}

@media (prefers-reduced-motion: reduce) {
  .a26-activity-dialog[open],
  .a26-activity-dialog::backdrop {
    animation: none;
  }

  .a26-dialog-close {
    transition: none;
  }
}
