/* Android alpha invite modal */
.aa-modal {
  position: fixed;
  inset: 0;
  z-index: 3000;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  padding: 16px;
  padding-bottom: max(16px, env(safe-area-inset-bottom));
}

.aa-modal[hidden] {
  display: none;
}

@media (min-width: 560px) {
  .aa-modal {
    align-items: center;
  }
}

.aa-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(15, 23, 42, 0.72);
}

.aa-card {
  position: relative;
  width: min(100%, 400px);
  background: #1e293b;
  color: #f1f5f9;
  border: 1px solid #334155;
  border-radius: 14px;
  padding: 20px 18px 16px;
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.45);
}

.aa-card h2 {
  font-size: 1.15rem;
  margin: 0 0 8px;
  line-height: 1.3;
}

.aa-card > p {
  font-size: 0.92rem;
  color: #94a3b8;
  margin: 0 0 14px;
  line-height: 1.45;
}

.aa-play-hint {
  font-size: 0.85rem;
  color: #94a3b8;
  margin: 0 0 8px;
  line-height: 1.4;
}

.aa-card .btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 11px 16px;
  border-radius: 10px;
  border: none;
  font-size: 0.95rem;
  font-weight: 600;
  cursor: pointer;
  text-decoration: none;
  box-sizing: border-box;
}

.aa-card .btn-primary {
  background: #22c55e;
  color: #0f172a;
}

.aa-card .btn-primary:hover {
  background: #16a34a;
}

.aa-card .btn-secondary {
  background: #334155;
  color: #f1f5f9;
  border: 1px solid #475569;
}

.aa-card .btn-secondary:hover {
  background: #475569;
}

.aa-form {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.aa-form input[type="email"] {
  width: 100%;
  padding: 12px 14px;
  border-radius: 10px;
  border: 1px solid #475569;
  background: #0f172a;
  color: #f1f5f9;
  font-size: 16px;
}

.aa-consent {
  display: flex;
  gap: 8px;
  align-items: flex-start;
  font-size: 0.8rem;
  color: #94a3b8;
  line-height: 1.35;
}

.aa-consent input {
  margin-top: 3px;
  flex-shrink: 0;
}

.aa-actions {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-top: 4px;
}

.aa-actions .btn {
  width: 100%;
  justify-content: center;
  display: inline-flex;
  align-items: center;
  padding: 11px 14px;
  border-radius: 10px;
  border: none;
  font-size: 0.95rem;
  font-weight: 600;
  cursor: pointer;
  text-decoration: none;
  box-sizing: border-box;
}

.aa-actions .btn-primary {
  background: #22c55e;
  color: #0f172a;
}

.aa-actions .btn-primary:hover {
  background: #16a34a;
}

.aa-actions .btn-primary:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

.aa-later {
  background: transparent;
  border: 1px solid #475569;
  color: #e2e8f0;
  border-radius: 10px;
  padding: 11px 14px;
  font-size: 0.95rem;
  cursor: pointer;
}

.aa-later:hover {
  background: #334155;
}

.aa-status {
  font-size: 0.85rem;
  margin: 0;
}

.aa-status[data-state="success"] { color: #22c55e; }
.aa-status[data-state="error"] { color: #ef4444; }
.aa-status[data-state="pending"] { color: #94a3b8; }

.aa-honeypot {
  position: absolute;
  left: -9999px;
  opacity: 0;
  height: 0;
  width: 0;
  overflow: hidden;
}
